:root {
  --color-primary: #1F3A3D;
  --color-primary-dark: #162A2C;
  --color-accent: #C96F4A;
  --color-gold: #D8B76A;
  --color-bg: #FAF7F2;
  --color-surface: #FFFFFF;
  --color-border: #E8E1D8;
  --color-text: #1E1E1E;
  --color-muted: #6F6A64;
  --color-success: #2E7D5B;
  --color-danger: #D94F3D;
  --shadow-soft: 0 16px 40px rgba(31, 58, 61, .08);
  --shadow-hover: 0 22px 55px rgba(31, 58, 61, .14);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Vazirmatn", "IRANSans", Tahoma, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
}

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

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.section-gap {
  padding: 44px 0;
}

.top-strip {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, .88);
  text-align: center;
  font-size: .9rem;
  padding: 8px 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 10px 30px rgba(22, 42, 44, .18);
}

.header-shell {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto auto 1fr minmax(220px, 300px) auto;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.08rem;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--color-primary);
  background: var(--color-gold);
  font-weight: 900;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: .94rem;
  color: rgba(255, 255, 255, .86);
}

.main-nav a,
.header-actions a {
  transition: color .2s ease, opacity .2s ease;
}

.main-nav a:hover,
.header-actions a:hover {
  color: #fff;
}

.sale-link {
  color: var(--color-gold);
  font-weight: 700;
}

.search-box {
  min-height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.search-box input {
  flex: 1;
  background: transparent;
  border: 0;
  color: #fff;
  outline: 0;
  padding: 0 16px;
  min-width: 0;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, .68);
}

.search-box button {
  width: 46px;
  height: 44px;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.login-link {
  background: var(--color-accent);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
}

.icon-link,
.cart-link {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
}

.cart-count {
  position: absolute;
  top: -6px;
  left: -5px;
  background: var(--color-accent);
  color: #fff;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: .72rem;
}

.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  padding: 9px;
}

.hamburger span {
  height: 2px;
  background: #fff;
  display: block;
  margin: 5px 0;
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.mobile-menu.is-open {
  display: grid;
  gap: 12px;
}

.mobile-menu a {
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.mobile-search input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.1);
  color: #fff;
  min-height: 46px;
  border-radius: 14px;
  padding: 0 14px;
  outline: 0;
}

.hero {
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr .95fr;
  gap: 44px;
  align-items: center;
}

.hero-content {
  padding: 34px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
}

.badge-gold {
  background: rgba(216, 183, 106, .22);
  color: #80601d;
  border: 1px solid rgba(216, 183, 106, .42);
}

.badge-danger {
  background: rgba(217, 79, 61, .12);
  color: var(--color-danger);
  border: 1px solid rgba(217, 79, 61, .22);
}

.badge-success {
  background: rgba(46, 125, 91, .12);
  color: var(--color-success);
  border: 1px solid rgba(46, 125, 91, .22);
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.15rem, 5vw, 4.4rem);
  line-height: 1.18;
  letter-spacing: -1.6px;
  color: var(--color-primary);
}

.hero p {
  max-width: 620px;
  color: var(--color-muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 10px 22px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary,
.btn-cart {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 14px 24px rgba(201, 111, 74, .22);
}

.btn-primary:hover,
.btn-cart:hover {
  background: #b96140;
}

.btn-outline {
  color: var(--color-primary);
  background: transparent;
  border: 1px solid var(--color-border);
}

.hero-stats {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hero-stats div {
  background: rgba(255,255,255,.62);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.hero-stats strong {
  display: block;
  color: var(--color-primary);
  font-size: 1.12rem;
}

.hero-stats span {
  color: var(--color-muted);
  font-size: .84rem;
}

.hero-media {
  position: relative;
  min-height: 540px;
}

.hero-card {
  position: absolute;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 10px solid rgba(255,255,255,.9);
  background: #fff;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-main {
  inset: 0 0 70px 118px;
}

.hero-card-small {
  left: 0;
  bottom: 0;
  width: 260px;
  height: 300px;
}

.floating-label {
  position: absolute;
  right: 18px;
  bottom: 18px;
  background: rgba(250, 247, 242, .92);
  color: var(--color-primary);
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.floating-label.dark {
  background: rgba(31, 58, 61, .92);
  color: #fff;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.eyebrow {
  color: var(--color-accent);
  font-weight: 800;
  font-size: .9rem;
}

.section-head h2,
.newsletter h2,
.sale-banner h2 {
  margin: 4px 0 0;
  color: var(--color-primary);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.35;
}

.view-all {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 18px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 800;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.category-card {
  min-height: 230px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  isolation: isolate;
  transition: transform .2s ease, box-shadow .2s ease;
}

.category-card:hover,
.product-card:hover,
.collection-card:hover,
.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(31,58,61,.82), transparent 65%);
  z-index: 1;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.category-card div {
  position: absolute;
  z-index: 2;
  right: 16px;
  left: 16px;
  bottom: 16px;
  color: #fff;
}

.category-card h3 {
  margin: 0 0 2px;
}

.category-card span {
  font-size: .85rem;
  color: rgba(255,255,255,.78);
}

.category-sale::after {
  background: linear-gradient(to top, rgba(217,79,61,.82), transparent 65%);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 4.7;
  background: #eee;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-media .badge {
  position: absolute;
  right: 12px;
  top: 12px;
  background: #fff;
}

.product-body {
  padding: 16px;
}

.product-brand {
  color: var(--color-muted);
  font-size: .82rem;
}

.product-body h3 {
  margin: 5px 0 6px;
  font-size: 1rem;
  line-height: 1.55;
}

.rating {
  color: var(--color-gold);
  font-size: .86rem;
}

.rating span {
  color: var(--color-muted);
}

.price-row {
  margin: 12px 0 14px;
  display: grid;
  gap: 2px;
}

.old-price {
  min-height: 18px;
  color: var(--color-muted);
  text-decoration: line-through;
  font-size: .83rem;
}

.price-row strong {
  color: var(--color-accent);
}

.btn-cart {
  width: 100%;
  min-height: 43px;
}

.sale-banner {
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 20% 20%, rgba(216,183,106,.28), transparent 34%),
    linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 5vw, 54px);
  overflow: hidden;
}

.sale-banner h2 {
  color: #fff;
}

.sale-banner p {
  color: rgba(255,255,255,.76);
  max-width: 620px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.collection-card {
  min-height: 390px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}

.collection-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(31,58,61,.82), transparent 62%);
}

.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.collection-card div {
  position: absolute;
  z-index: 1;
  right: 22px;
  left: 22px;
  bottom: 22px;
  color: #fff;
}

.collection-card h3 {
  margin: 12px 0 4px;
  font-size: 1.3rem;
}

.collection-card p {
  margin: 0;
  color: rgba(255,255,255,.78);
}

.brand-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.brand-row span {
  min-height: 86px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-weight: 900;
  letter-spacing: 1px;
  box-shadow: var(--shadow-soft);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.benefit-item {
  background: rgba(255,255,255,.72);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.benefit-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(201,111,74,.1);
  margin-bottom: 12px;
}

.benefit-item h3 {
  margin: 0 0 4px;
  color: var(--color-primary);
}

.benefit-item p {
  margin: 0;
  color: var(--color-muted);
  font-size: .92rem;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.offer-card {
  position: relative;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}

.offer-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 22px;
}

.discount {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--color-danger);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  z-index: 1;
}

.offer-card h3 {
  margin: 8px 0 4px;
  color: var(--color-primary);
}

.offer-card p {
  color: var(--color-muted);
  margin: 0 0 10px;
}

.offer-card strong {
  display: block;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.newsletter-box {
  background: linear-gradient(135deg, rgba(31,58,61,.08), rgba(216,183,106,.16));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr minmax(300px, 460px);
  align-items: center;
  gap: 28px;
  padding: clamp(26px, 5vw, 46px);
}

.newsletter-box p {
  color: var(--color-muted);
  margin: 8px 0 0;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  background: var(--color-surface);
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
}

.newsletter-form input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 14px;
  min-width: 0;
}

.site-footer {
  margin-top: 48px;
  background: var(--color-primary);
  color: #fff;
  padding: 54px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 34px;
}

.footer-grid h3 {
  margin: 0 0 16px;
  color: var(--color-gold);
}

.footer-grid a {
  display: block;
  color: rgba(255,255,255,.75);
  margin-bottom: 8px;
}

.footer-grid p {
  color: rgba(255,255,255,.72);
  margin: 0 0 10px;
}

.footer-brand {
  margin-bottom: 14px;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.socials a,
.trust-row span {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  border-radius: 14px;
}

.socials a {
  width: 42px;
  height: 42px;
  margin-bottom: 0;
}

.trust-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.trust-row span {
  min-height: 54px;
  min-width: 92px;
  color: rgba(255,255,255,.75);
  font-size: .82rem;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255,255,255,.58);
  font-size: .88rem;
}

/* Tablet */
@media (max-width: 1024px) {
  .header-shell {
    grid-template-columns: auto auto 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .search-box {
    max-width: 280px;
    margin-inline-start: auto;
  }

  .hamburger {
    display: block;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 460px;
  }

  .hero-card-main {
    inset: 0 0 60px 150px;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .collection-grid {
    grid-template-columns: 1fr;
  }

  .collection-card {
    min-height: 320px;
  }

  .brand-row,
  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .offer-card {
    grid-template-columns: 1fr;
  }

  .offer-card img {
    height: 250px;
  }

  .newsletter-box,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile */
@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .section-gap {
    padding: 32px 0;
  }

  .top-strip {
    font-size: .78rem;
  }

  .header-shell {
    min-height: 68px;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .brand {
    font-size: .96rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .search-box,
  .login-link,
  .icon-link {
    display: none;
  }

  .header-actions {
    justify-content: end;
  }

  .cart-link {
    width: 38px;
    height: 38px;
  }

  .hero-content {
    padding: 12px 0 0;
  }

  .hero h1 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .hero p {
    font-size: .98rem;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 390px;
  }

  .hero-card-main {
    inset: 0 0 82px 54px;
  }

  .hero-card-small {
    width: 180px;
    height: 220px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .view-all {
    width: 100%;
    justify-content: center;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .category-card {
    min-height: 180px;
    border-radius: 18px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-body {
    padding: 12px;
  }

  .product-body h3 {
    font-size: .92rem;
  }

  .btn-cart {
    padding-inline: 10px;
    min-height: 42px;
    font-size: .86rem;
  }

  .sale-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .sale-banner .btn {
    width: 100%;
  }

  .collection-card {
    min-height: 280px;
    border-radius: 22px;
  }

  .brand-row,
  .benefit-grid,
  .offer-grid,
  .newsletter-box,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .brand-row {
    gap: 10px;
  }

  .brand-row span {
    min-height: 68px;
  }

  .offer-card {
    border-radius: 22px;
  }

  .newsletter-form {
    flex-direction: column;
    border-radius: 20px;
  }

  .newsletter-form input {
    min-height: 46px;
  }

  .newsletter-form .btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .category-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-card-main {
    inset: 0 0 92px 32px;
  }

  .hero-card-small {
    width: 154px;
    height: 190px;
  }
}
