:root {
  --primary: var(--color-primary, #4279d9);
  --primary-dark: var(--color-secondary, #f65d74);
  --secondary: var(--color-secondary, #f65d74);
  --ink: var(--color-title, #26345c);
  --muted: var(--color-text, #7c879f);
  --line: var(--color-border, #dce7f8);
  --soft: var(--color-background-secondary, #f3f7ff);
  --content-background: var(--soft);
  --surface: var(--color-background, #fff);
  --danger: var(--secondary);
  --gold: #f7b733;
  --shop-radius: var(--radius, 18px);
  --shop-shadow: var(--box-shadow, 0 12px 30px rgba(42, 76, 128, 0.06));
}

* {
  letter-spacing: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: var(--site-font-family, Tahoma, Arial, sans-serif);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.text-secondary {
  color: var(--muted) !important;
}

.template-title {
  color: var(--ink) !important;
}

.template-text {
  color: var(--muted) !important;
}

.template-subtitle {
  color: var(--muted) !important;
}

.hero-card,
.benefit-card,
.product-card,
.sale-banner {
  color: var(--ink);
}

.hero-card .text-secondary,
.benefit-card .text-secondary,
.product-card .text-secondary,
.sale-banner .text-secondary,
.hero-card .template-subtitle,
.benefit-card .template-subtitle,
.product-card .template-subtitle,
.sale-banner .template-subtitle,
.product-card .product-sub {
  color: var(--ink) !important;
}
.mobile-nav-container {
  display: none !important;
}

.site-container {
  width: 100%;
  margin-inline: auto;
}

.cont {
  width: min(100% - 48px, 1440px);
  margin-inline: auto;
}

.main-menu {
  display: flex;
  position: sticky;
  top: var(--shop-topbar-height, 118px);
  z-index: 1020;
  width: 100%;
  max-width: 100%;
  min-width: 0;

  overflow-x: auto;
  overflow-y: hidden;

  flex-wrap: nowrap;
  justify-content: flex-start !important;
  white-space: nowrap;

  padding: 14px 0 12px;
  gap: 10px;

  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--soft);

  -webkit-overflow-scrolling: touch;
  background: var(--surface);
}

.main-menu a {
  flex: 0 0 auto;
  padding: 8px 10px;
}

/* Chrome، Edge و Safari */
.main-menu::-webkit-scrollbar {
  display: block;
  height: 7px;
}

.main-menu::-webkit-scrollbar-track {
  background: var(--soft);
  border-radius: 20px;
}

.main-menu::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 20px;
}

.main-menu::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

.fw-black {
  font-weight: 950;
}

@media (min-width: 992px) {
  .row-cols-lg-7 > * {
    flex: 0 0 auto;
    width: 14.285714%;
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: var(--shop-shadow);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  color: var(--primary);
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  border: 3px solid var(--primary);
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: var(--secondary);
  border-radius: calc(var(--shop-radius) / 3);
}

.brand-mark::before {
  width: 22px;
  height: 6px;
  top: 16px;
  right: 7px;
}

.brand-mark::after {
  width: 6px;
  height: 22px;
  top: 8px;
  right: 15px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  margin-top: 4px;
}

.search-shell {
  height: 58px;
  border: 1px solid var(--line);
  border-radius: var(--shop-radius);
  width: 650px;
  background: var(--surface);
  overflow: hidden;
}

.mobile-search-submit {
  display: none;
}

.search-shell input {
  height: 100%;
  border: 0;
  outline: 0;
  width: 580px;
  color: var(--ink);
  min-width: 0;
  font-size: 0.95rem;
}

.search-shell i {
  cursor: pointer;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
}

.icon-link i {
  font-size: 1.6rem;
}

.cart-badge {
  position: absolute;
  top: -9px;
  right: -10px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--secondary);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 900;
}

.main-menu {
  position: sticky;
  top: var(--shop-topbar-height, 118px);
  z-index: 1020;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 14px 0;
  color: var(--muted);
  font-weight: 800;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  flex-wrap: nowrap;
  background: var(--surface);
}

.main-menu a {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: calc(var(--shop-radius) * 0.6);
  transition: 0.2s ease;
}

.main-menu a.active,
.main-menu a:hover {
  color: var(--primary);
  background: var(--soft);
}

.hero-slider {
  position: relative;
}

.hero-slider-track {
  display: grid;
}

.hero-slide {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.hero-slider-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-title);
  background: var(--color-background);
  border: var(--border);
  border-radius: 50%;
  box-shadow: var(--box-shadow);
  transform: translateY(-50%);
}

.hero-slider-next {
  right: 18px;
}

.hero-slider-prev {
  left: 18px;
}

.hero-slider-dots {
  position: absolute;
  right: 50%;
  bottom: 18px;
  z-index: 3;
  display: flex;
  gap: 8px;
  transform: translateX(50%);
}

.hero-slider-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-background);
  box-shadow: 0 0 0 1px var(--color-border);
  opacity: 0.7;
}

.hero-slider-dot.is-active {
  width: 28px;
  border-radius: var(--border-radius);
  background: var(--color-primary);
  opacity: 1;
}

.hero-card {
  min-height: 430px;
  overflow: hidden;
  border-radius: var(--shop-radius);
  color: var(--ink);
  background-color: var(--content-background);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  isolation: isolate;
  box-shadow: inset 0 0 0 1px var(--line);
}

.hero-card::before {
  content: none;
}

.hero-products {
  position: relative;
  min-height: 360px;
}

.product-bottle,
.product-box {
  position: absolute;
  bottom: 38px;
  border-radius: var(--shop-radius);
  box-shadow: var(--shop-shadow);
}

.product-bottle.one {
  right: 20px;
  width: 115px;
  height: 250px;
  background: var(--content-background);
}

.product-bottle.one::before {
  content: "";
  position: absolute;
  top: -45px;
  right: 28px;
  width: 58px;
  height: 56px;
  border-radius: 10px 10px 2px 2px;
  border-top: 12px solid var(--surface);
  border-right: 12px solid var(--surface);
}

.product-bottle.two {
  right: 164px;
  width: 92px;
  height: 170px;
  background: var(--primary);
}

.product-bottle.three {
  right: 284px;
  width: 72px;
  height: 190px;
  border-radius: 30px 30px 16px 16px;
  background: var(--content-background);
}

.product-box {
  right: 385px;
  width: 145px;
  height: 170px;
  background: var(--content-background);
}

.podium {
  position: absolute;
  right: 95px;
  bottom: 16px;
  width: 410px;
  height: 70px;
  border-radius: 50%;
  background: var(--content-background);
  box-shadow: var(--shop-shadow);
  z-index: -1;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 950;
  line-height: 1.75;
}

.hero-text {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 2.1;
}

.btn-primary-soft {
  min-width: 190px;
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ink);
  background: var(--primary);
  border: 0;
  border-radius: calc(var(--shop-radius) * 0.7);
  font-weight: 900;
  box-shadow: var(--shop-shadow);
}

.dynamic-action-btn {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--ink) !important;
  border-radius: calc(var(--shop-radius) * 0.7) !important;
  box-shadow: var(--shop-shadow);
}

.hero-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-note i {
  color: var(--primary);
  font-size: 1.6rem;
}

.benefit-card {
  min-height: 146px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--shop-radius);
  color: var(--ink);
  background: var(--content-background);
  box-shadow: var(--shop-shadow);
  height: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.benefit-icon,
.category-icon {
  flex: 0 0 auto;
  
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: var(--shop-radius);
  color: var(--primary);
  background: var(--content-background);
  font-size: 2rem;
}

.category-icon{
  width: 100px !important;
  height: auto !important;
}

.section-head {
  margin: 42px 0 24px;
}

.section-head h2 {
  margin: 0;
  font-weight: 950;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.view-all {
  height: 42px;
  padding-inline: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  background: var(--primary);
  border-radius: calc(var(--shop-radius) * 0.55);
  font-weight: 800;
  font-size: 0.9rem;
}

.category-card {
  text-align: center;
  color: var(--ink);
  font-weight: 900;
}

.category-card p {
  margin-top: 25px !important;
}

.category-card:nth-child(2n) .category-icon {
  background: var(--content-background);
}

.category-card:nth-child(3n) .category-icon {
  background: var(--content-background);
}

.category-card:nth-child(4n) .category-icon {
  background: var(--content-background);
}

.product-card {
  position: relative;
  min-height: 385px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--shop-radius);
  height: 100%;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shop-shadow);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shop-shadow);
}

.favorite {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--content-background);
}

.product-image {
  position: relative;
  height: 250px;
  width: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  margin-bottom: 14px;
}

.product-discount-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 5px 9px;
  border-radius: var(--shop-radius);
  color: var(--color-background);
  background: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 800;
}

.product-old-price {
  min-height: 22px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  text-decoration: line-through;
}

.product-pack {
  width: 82px;
  height: 138px;
  border-radius: 10px 10px 16px 16px;
  background: var(--content-background);
  box-shadow: var(--shop-shadow);
  position: relative;
}

.product-pack.wide {
  width: 112px;
  height: 128px;
  border-radius: var(--shop-radius);
}

.product-pack.drop {
  width: 54px;
  height: 142px;
  border-radius: 28px 28px 12px 12px;
}

.product-title {
  min-height: 44px;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.8;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.product-sub {
  color: var(--muted);
  font-size: 0.86rem;
  min-height: 22px;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.stars {
  color: var(--gold);
  font-size: 0.85rem;
}

.rating-count {
  color: var(--muted);
  font-size: 0.84rem;
}

.price {
  color: var(--ink);
  font-weight: 950;
  margin: 8px 0 12px;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.add-cart {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: calc(var(--shop-radius) * 0.6);
  font-weight: 900;
  background: var(--primary);
}

.btn-primary-soft:hover,
.add-cart:hover,
.view-all:hover,
.dynamic-action-btn:hover {
  color: var(--ink);
  background: var(--secondary) !important;
  border-color: var(--secondary) !important;
}

.sale-banner {
  min-height: 245px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--shop-radius);
  color: var(--ink);
  background: var(--content-background);
  position: relative;
}

.newsletter-footer {
  border: 1px solid var(--line);
  border-radius: var(--shop-radius);
  overflow: hidden;
  background: #fff;
}

.newsletter-box {
  background: var(--secondary);
  min-height: 210px;
  padding: 30px;
}

.footer-links {
  padding: 30px;
}

.footer-links h4,
.newsletter-box h4 {
  font-weight: 950;
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.footer-links a {
  display: block;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 700;
  padding-top:9px;
}

.email-row {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.email-row input {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: calc(var(--shop-radius) * 0.6);
  padding: 0 16px;
  flex: 1;
  min-width: 0;
}

.email-row button {
  min-width: 96px;
  border: 0;
  border-radius: calc(var(--shop-radius) * 0.6);
  color: var(--ink);
  background: var(--primary);
  font-weight: 900;
}

.email-row button:hover {
  color: var(--ink);
  background: var(--secondary);
}

.consult-box {
  min-height: 210px;
  background: var(--color-background-secondary);
}

.consult-art {
  width: 148px;
  height: 118px;
  border-radius: var(--shop-radius);
  background: linear-gradient(135deg, #bdd5ff, #eaf2ff);
  position: relative;
}

.consult-art::before,
.consult-art::after {
  content: "";
  position: absolute;
  border: 8px solid var(--primary);
  border-radius: 50%;
}

.consult-art::before {
  width: 78px;
  height: 78px;
  right: -20px;
  bottom: -20px;
}

.consult-art::after {
  width: 42px;
  height: 42px;
  right: 44px;
  bottom: -5px;
}

.mobile-bottom {
  display: none;
}

.menu-toggler {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  color: var(--primary);
  border: 1px solid var(--line);
  border-radius: calc(var(--shop-radius) * 0.7);
  background: var(--soft);
}

.top-actions-panel {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.actions-panel-close {
  display: none;
}

.cont {
  padding-left: 7px !important;
  padding-right: 7px !important;
}

@media (max-width: 991.98px) {
  .cont {
    width: min(100% - 28px, 1440px);
  }

  .topbar {
    padding-top: 16px;
  }

  .menu-toggler {
    display: grid;
  }

  .top-actions-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1045;
    width: min(82vw, 310px);
    height: 100vh;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px !important;
    background: color-mix(in srgb, var(--surface) 98%, transparent);
    border-right: 1px solid var(--line);
    box-shadow: var(--shop-shadow);
    backdrop-filter: blur(14px);
  }

  .top-actions-panel.is-visible {
    display: flex;
  }

  .top-actions-panel.is-open {
    transform: translateX(0);
  }

  .actions-panel-close {
    display: flex;
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border: 1px solid var(--line);
    border-radius: calc(var(--shop-radius) * 0.7);
    background: var(--soft);
  }

  .top-actions-panel .icon-link {
    width: 100%;
    min-height: 54px;
    padding: 10px 12px;
    justify-content: flex-start;
    border: 1px solid var(--line);
    border-radius: calc(var(--shop-radius) * 0.8);
    background: var(--soft);
  }

  .top-actions-panel .icon-link img {
    width: 34px !important;
    height: 32px !important;
    object-fit: contain;
  }

  .search-shell {
    order: 3;
    width: 100%;
    margin-top: 14px;
    position: relative;
  }

  .main-menu {
    display: flex !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-bottom: 12px;
    justify-content: flex-start !important;
    gap: 10px !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scroll-snap-type: x proximity;
  }

  .main-menu a {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .hero-card {
    min-height: auto;
  }

  .hero-products {
    min-height: 285px;
    transform: scale(0.82);
    transform-origin: center bottom;
  }

  .benefit-card {
    min-height: 126px;
  }

  .sale-banner > .d-flex {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .sale-banner img {
    width: min(100%, 280px) !important;
    height: auto !important;
    max-height: 230px;
    object-fit: contain;
  }

  .sale-banner .btn {
    width: 100%;
    max-width: 260px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 18px !important;
    font-size: 0.95rem;
  }
}

@media (max-width: 575.98px) {
  .cont {
    width: min(100% - 22px, 1440px);
  }

  .topbar.px-5 {
    padding-inline: 12px !important;
  }

  .brand img {
    width: 92px !important;
    height: 62px !important;
  }

  .mobile-nav-container {
    display: none !important;
  }

  .search-shell input {
    width: calc(100% - 80px);
    padding-top: 0;
    padding-left: 52px;
  }

  .search-shell .col-md-10 {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
  }

  .search-shell .col-md-2 {
    display: none;
  }

  .mobile-search-submit {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    border: 0;
    border-radius: calc(var(--shop-radius) * 0.7);
    background: var(--primary);
    box-shadow: var(--shop-shadow);
    z-index: 2;
  }

  .mobile-search-submit:hover {
    color: var(--ink);
    background: var(--secondary);
  }

  .search-shell {
    margin: auto;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-slider-control {
    top: auto;
    bottom: 12px;
    width: 38px;
    height: 38px;
    transform: none;
  }

  .hero-slider-next {
    right: 12px;
  }

  .hero-slider-prev {
    left: 12px;
  }

  .hero-products {
    margin-inline: -90px;
  }

  .product-card {
    min-height: 360px;
    padding: 18px 10px 16px;
  }
  .product-card img {
    width: 185px !important;
    height: 230px !important;
  }
  .email-row {
    flex-direction: column;
  }

  .newsletter-box,
  .footer-links {
    padding: 22px;
  }

  .footer-links .row > [class*="col"] {
    width: 100%;
    margin-bottom: 18px;
  }

  .consult-box {
    min-height: auto;
  }

  .mobile-bottom {
    position: fixed;
    right: 12px;
    left: 12px;
    bottom: 12px;
    z-index: 1040;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--shop-radius);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: var(--shop-shadow);
    backdrop-filter: blur(12px);
  }

  .mobile-bottom a {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 1.25rem;
  }
  .dy {
    display: none;
  }
}
