:root {
  --ink: #1f2933;
  --text: #344054;
  --muted: #667085;
  --line: #eadfd8;
  --bg: #fff8f4;
  --surface: #ffffff;
  --rose: #be3455;
  --rose-dark: #942844;
  --coral: #f06f55;
  --mint: #147d73;
  --cream: #fff3dc;
  --blush: #ffe9e5;
  --shadow: 0 20px 50px rgba(97, 52, 43, .12);
  --radius: 18px;
  --radius-lg: 30px;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  direction: rtl;
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fffaf7 0, #fff8f4 420px, #fff 100%);
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.shop-topline { background: #3a2021; color: #ffe7dc; font-size: 12px; }
.topline-inner {
  max-width: 1240px;
  margin: auto;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(234,223,216,.9);
}
.header-inner {
  max-width: 1240px;
  margin: auto;
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 15px 20px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(145deg, var(--coral), var(--rose));
  box-shadow: 0 10px 24px rgba(190,52,85,.22);
}
.brand-copy strong { display: block; font-size: 17px; }
.brand-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }

.site-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.site-search input {
  height: 40px;
  border: 0;
  padding: 0 16px;
  background: transparent;
}
.site-search input:focus { outline: none; }
.search-button {
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #fff;
  background: var(--ink);
  cursor: pointer;
}

.nav { display: flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--text); }
.nav a { padding: 10px 11px; border-radius: 999px; }
.nav a:hover { background: var(--blush); color: var(--rose-dark); }
.cart-link { color: #fff !important; background: var(--rose); }

main { min-height: 60vh; }
.shop-hero, .benefit-strip, .category-band, .shop-section, .catalog-hero, .product-detail {
  max-width: 1240px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 20px;
  padding-left: 20px;
}

.shop-hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  gap: 34px;
  align-items: center;
  padding-top: 34px;
  padding-bottom: 28px;
}
.hero-content h1 {
  max-width: 680px;
  margin: 10px 0 18px;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.28;
  letter-spacing: 0;
}
.hero-content p {
  max-width: 610px;
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 2;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 900;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 800;
}
.btn.primary { color: #fff; background: linear-gradient(135deg, var(--rose), var(--coral)); box-shadow: 0 16px 34px rgba(190,52,85,.25); }
.btn.ghost, .btn.outline { color: var(--rose-dark); background: #fff; border: 1px solid var(--line); }
.btn.danger { color: #b42318; background: #fff0ed; border: 1px solid #ffc9be; }
.btn.wide { width: 100%; margin: 16px 0 20px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.hero-trust span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--mint);
  background: #e8f7f2;
  font-size: 12px;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  min-height: 500px;
  border-radius: 36px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.1), rgba(40,18,21,.18)),
    url("https://images.unsplash.com/photo-1483985988355-763728e1935b?auto=format&fit=crop&w=1200&q=80") center/cover;
  box-shadow: var(--shadow);
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(58,32,33,.18), rgba(255,248,244,.08));
}
.lookbook-card {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 24px;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 38px rgba(58,32,33,.18);
}
.lookbook-main { right: 28px; bottom: 28px; width: 310px; padding: 22px; }
.lookbook-main span { color: var(--rose); font-size: 12px; font-weight: 900; }
.lookbook-main strong { display: block; margin: 7px 0; font-size: 24px; }
.lookbook-main small, .lookbook-side small { color: var(--muted); line-height: 1.8; }
.lookbook-side { left: 28px; top: 28px; padding: 18px; }
.lookbook-side strong { display: block; margin-bottom: 5px; }

.benefit-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 8px;
  padding-bottom: 24px;
}
.benefit-strip article {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(97,52,43,.06);
}
.benefit-strip strong, .benefit-strip span { display: block; }
.benefit-strip span { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.8; }

.category-band {
  display: grid;
  grid-template-columns: minmax(260px,.8fr) 1.2fr;
  gap: 20px;
  align-items: center;
  padding-top: 22px;
  padding-bottom: 16px;
}
.section-title h2, .section-head h2, .catalog-hero h1 { margin: 0; line-height: 1.5; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.category-grid a {
  min-height: 112px;
  display: flex;
  align-items: end;
  padding: 18px;
  border-radius: 24px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(145deg, var(--rose), var(--coral));
  box-shadow: 0 14px 34px rgba(190,52,85,.16);
}
.category-grid a:nth-child(2) { background: linear-gradient(145deg, #2f6f73, #64a692); }
.category-grid a:nth-child(3) { background: linear-gradient(145deg, #9f5f3f, #f2a15e); }
.category-grid a:nth-child(4) { background: linear-gradient(145deg, #5d4a8f, #c07096); }

.shop-section { padding-top: 24px; padding-bottom: 26px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(97,52,43,.07);
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.empty-shop {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 34px;
  border: 1px dashed #d8b8ad;
  border-radius: 28px;
  color: var(--text);
  background: linear-gradient(145deg, #fff, #fff3ec);
}
.empty-shop strong { font-size: 20px; color: var(--ink); }
.empty-shop span { color: var(--muted); line-height: 1.9; }
.product-media {
  position: relative;
  height: 250px;
  display: grid;
  place-items: center;
  color: #9a6b61;
  background:
    linear-gradient(145deg, #fff0e8, #f7d8cc);
  background-size: cover;
  background-position: center;
}
.product-media em {
  position: absolute;
  right: 13px;
  top: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--rose-dark);
  background: rgba(255,255,255,.86);
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}
.product-body { padding: 16px; }
.product-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.product-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--muted);
  background: #f8eee9;
  font-size: 11px;
}
.product-body h3 { min-height: 54px; margin: 0 0 10px; font-size: 16px; line-height: 1.7; }
.price-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin: 12px 0 14px; }
.price-row strong { color: var(--mint); }
.price-row small { color: var(--muted); }
.add-cart {
  width: 100%;
  min-height: 42px;
  border: 1px solid #f1c6be;
  border-radius: 999px;
  color: var(--rose-dark);
  background: #fff6f2;
  cursor: pointer;
  font-weight: 900;
}
.add-cart:hover { background: var(--rose); color: #fff; }

.catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(300px, .75fr);
  gap: 24px;
  align-items: center;
  padding-top: 34px;
  padding-bottom: 24px;
}
.catalog-hero p { color: var(--muted); line-height: 2; }
.catalog-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(97,52,43,.07);
}
input, textarea, select {
  width: 100%;
  border: 1px solid #dccbc3;
  border-radius: 16px;
  padding: 12px 14px;
  background: #fff;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(190,52,85,.1);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(360px, .95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: start;
  padding-top: 34px;
  padding-bottom: 36px;
}
.product-gallery {
  position: sticky;
  top: 98px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}
.gallery-main {
  min-height: 560px;
  display: grid;
  place-items: center;
  color: #9a6b61;
  background: linear-gradient(145deg, #fff0e8, #f7d8cc);
  background-size: cover;
  background-position: center;
}
.gallery-note { padding: 15px 18px; color: var(--muted); background: #fff; font-size: 12px; }
.product-info {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(97,52,43,.07);
}
.product-info h1 { margin: 12px 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.45; }
.lead { color: var(--text); line-height: 2; }
.buy-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0 4px;
}
.buy-box div {
  padding: 16px;
  border-radius: 20px;
  background: var(--cream);
}
.buy-box span, .buy-box strong { display: block; }
.buy-box span { margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.buy-box strong { color: var(--rose-dark); font-size: 20px; }
.color-list { display: grid; gap: 12px; }
.color-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: #fffdfb;
}
.color-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 15px 16px;
}
.color-card h3 { margin: 0; display: flex; gap: 9px; align-items: center; }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); display: inline-block; }
.tier-table { border-top: 1px solid var(--line); }
.tier-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tier-row:last-child { border-bottom: 0; }
.tier-row strong { color: var(--mint); }
.color-buy-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
}

.panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(97,52,43,.07);
  margin-bottom: 18px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row { margin-bottom: 14px; }
label { display: block; margin-bottom: 7px; color: var(--text); font-weight: 800; font-size: 12px; }
textarea { min-height: 120px; }
.cart-page { max-width: 1240px; margin: 0 auto; padding: 32px 20px 10px; }
.cart-title { max-width: 760px; margin-bottom: 18px; }
.cart-title h1 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 44px); line-height: 1.45; }
.cart-title p { color: var(--muted); line-height: 2; }
.cart-layout, .account-layout { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 20px; }
.cart-summary { position: sticky; top: 98px; align-self: start; }
.cart-empty { display: grid; gap: 10px; justify-items: center; padding: 36px; text-align: center; color: var(--muted); border: 1px dashed #dccbc3; border-radius: 24px; background: #fffaf7; }
.cart-empty strong { color: var(--ink); font-size: 20px; }
.checkout-line {
  display: grid;
  grid-template-columns: 110px minmax(0,1fr) 110px 150px;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.checkout-line:first-child { padding-top: 0; }
.checkout-line:last-child { border-bottom: 0; padding-bottom: 0; }
.line-warning { background: #fff8f5; margin: 0 -12px; padding-right: 12px; padding-left: 12px; border-radius: 20px; }
.line-image { height: 110px; border-radius: 18px; display: grid; place-items: center; color: #9a6b61; background: linear-gradient(145deg, #fff0e8, #f7d8cc); background-size: cover; background-position: center; }
.line-main h2 { margin: 0 0 8px; font-size: 16px; line-height: 1.6; }
.line-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; }
.line-meta span { display: inline-flex; align-items: center; gap: 6px; }
.line-qty label { margin-bottom: 6px; }
.line-price { display: grid; gap: 4px; justify-items: start; }
.line-price small { color: var(--muted); }
.line-price strong { color: var(--mint); }
.line-error { margin: 8px 0 0; color: var(--rose-dark); line-height: 1.8; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.summary-row.total strong { color: var(--rose-dark); font-size: 20px; }
.summary-help { color: var(--muted); line-height: 1.9; font-size: 12px; }
.btn[disabled] { opacity: .48; cursor: not-allowed; }
.checkout-address { display: grid; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.checkout-address h3 { margin: 0; }
.manual-address-fields { display: grid; gap: 10px; }
.is-hidden { display: none !important; }
.check-row { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 14px; }
.check-row input { width: auto; }
.address-card { display: grid; gap: 12px; }
.invoice-page { max-width: 980px; margin: 34px auto; padding: 0 20px; }
.invoice-card { overflow: hidden; }
.invoice-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 20px; }
.invoice-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-bottom: 20px; }
.invoice-grid div { padding: 14px; border-radius: 18px; background: #fff8f4; }
.invoice-grid span, .invoice-grid small { display: block; color: var(--muted); line-height: 1.8; }
.invoice-grid strong { display: block; color: var(--ink); }
.invoice-total { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-top: 18px; padding: 18px; border-radius: 20px; background: var(--cream); }
.invoice-total strong { color: var(--rose-dark); font-size: 22px; }
.cart-row { display: grid; grid-template-columns: 1fr 100px 90px; gap: 12px; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.login-shell { max-width: 1040px; margin: 7vh auto; display: grid; grid-template-columns: .9fr 1fr; overflow: hidden; border-radius: 34px; background: #fff; box-shadow: var(--shadow); }
.login-side { padding: 48px; color: #fff; background: linear-gradient(145deg, #3a2021, var(--rose)); }
.login-side h1 { font-size: 38px; line-height: 1.5; }
.login-form { padding: 42px; }
.notice { padding: 12px; border-radius: 14px; background: #e8f7f2; color: var(--mint); }
.error { padding: 12px; border-radius: 14px; background: #fff0ed; color: var(--rose-dark); }

.site-footer { margin-top: 54px; color: #ffe8df; background: #3a2021; }
.footer-inner {
  max-width: 1240px;
  margin: auto;
  padding: 34px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
}
.footer-inner p { color: #f4cfc1; line-height: 1.9; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .header-inner { grid-template-columns: 1fr; }
  .nav { overflow: auto; }
  .shop-hero, .category-band, .catalog-hero, .product-detail, .cart-layout, .account-layout, .login-shell { grid-template-columns: 1fr; }
  .product-gallery, .cart-summary { position: static; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkout-line { grid-template-columns: 96px minmax(0,1fr); }
  .line-qty, .line-price { grid-column: 2; }
}
@media (max-width: 680px) {
  .topline-inner { display: grid; }
  .shop-hero, .benefit-strip, .category-band, .shop-section, .catalog-hero, .product-detail { padding-right: 14px; padding-left: 14px; }
  .benefit-strip, .category-grid, .product-grid, .form-grid, .buy-box { grid-template-columns: 1fr; }
  .hero-visual { min-height: 360px; }
  .hero-content h1 { font-size: 32px; }
  .section-head, .footer-inner { display: flex; flex-direction: column; align-items: stretch; }
  .catalog-search, .site-search { grid-template-columns: 1fr; border-radius: 22px; }
  .search-button { min-height: 40px; }
  .cart-row { grid-template-columns: 1fr; }
  .checkout-line { grid-template-columns: 1fr; }
  .line-qty, .line-price { grid-column: auto; }
  .line-image { height: 210px; }
  .color-buy-row { grid-template-columns: 1fr; }
  .gallery-main { min-height: 360px; }
}
