:root {
  --bg: #f4efe8;
  --bg-2: #ebe6dd;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-solid: #fffdf9;
  --surface-soft: rgba(252, 249, 244, 0.86);
  --ink: #18171a;
  --muted: #68636b;
  --line: rgba(45, 39, 34, 0.1);
  --bronze: #a86834;
  --bronze-dark: #74401f;
  --navy: #28354a;
  --sage: #79816c;
  --emerald: #2e6558;
  --danger: #b52f3d;
  --success: #2d7b68;
  --warning: #b8792e;
  --shadow: 0 22px 58px rgba(56, 43, 31, 0.12);
  --shadow-soft: 0 12px 30px rgba(56, 43, 31, 0.09);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --content: 1180px;
  --header-h: 84px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 9%, rgba(184, 151, 113, 0.17), transparent 27rem),
    radial-gradient(circle at 92% 42%, rgba(121, 129, 108, 0.17), transparent 30rem),
    linear-gradient(145deg, #f7f3ee 0%, var(--bg) 48%, #eee9e1 100%);
  overflow-x: hidden;
}
body.motion-off *, body.motion-off *::before, body.motion-off *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 1.35rem; height: 1.35rem; display: block; }

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(1px);
  pointer-events: none;
}
.ambient-one {
  width: 430px;
  height: 430px;
  left: -210px;
  top: -120px;
  background: rgba(192, 164, 129, 0.16);
}
.ambient-two {
  width: 520px;
  height: 520px;
  right: -280px;
  top: 42vh;
  background: rgba(123, 130, 111, 0.14);
}

.glass-shell,
.glass-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px) saturate(118%);
  -webkit-backdrop-filter: blur(20px) saturate(118%);
}

.site-header {
  position: sticky;
  z-index: 60;
  top: 12px;
  width: min(calc(100% - 32px), var(--content));
  height: var(--header-h);
  margin: 12px auto 0;
  padding: 12px 14px 12px 18px;
  border-radius: 26px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
.brand { display: flex; gap: 12px; align-items: center; min-width: 240px; }
.brand img { width: 52px; height: 52px; border-radius: 17px; box-shadow: 0 8px 20px rgba(96, 56, 27, 0.2); }
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-copy strong { font-family: Georgia, "Times New Roman", serif; letter-spacing: 0.08em; font-size: 0.96rem; }
.brand-copy small { color: var(--muted); font-size: 0.76rem; }
.desktop-nav { display: flex; justify-content: center; gap: 5px; }
.desktop-nav a {
  padding: 11px 16px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
  transition: 180ms ease;
}
.desktop-nav a:hover,
.desktop-nav a.active { color: var(--ink); background: rgba(255,255,255,0.84); box-shadow: 0 5px 16px rgba(40,30,22,0.08); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-button {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 15px;
  background: rgba(255,255,255,0.62);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}
.icon-button:hover { transform: translateY(-2px); background: #fff; }
.action-badge,
.mobile-bag b {
  position: absolute;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  background: var(--danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  border: 2px solid #fff;
}
.action-badge { top: -3px; right: -3px; }

.app-main {
  width: min(calc(100% - 32px), var(--content));
  margin: 28px auto 72px;
  min-height: 65vh;
  outline: none;
}
.page-enter { animation: pageIn 420ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.page-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 24px;
}
.page-head h1,
.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.page-head h1 { font-size: clamp(2.25rem, 4vw, 4rem); }
.page-kicker {
  margin: 0 0 9px;
  color: var(--bronze-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.78rem;
}
.page-subtitle { margin: 9px 0 0; max-width: 670px; color: var(--muted); font-size: 1.04rem; line-height: 1.65; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.hero {
  min-height: 570px;
  border-radius: 42px;
  padding: clamp(28px, 5vw, 68px);
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.hero::before { width: 410px; height: 410px; left: -180px; top: -170px; background: rgba(174, 139, 98, 0.17); }
.hero::after { width: 380px; height: 380px; right: -150px; bottom: -210px; background: rgba(99, 112, 89, 0.14); }
.hero-copy { position: relative; z-index: 2; }
.hero-copy p { max-width: 560px; font-size: 1.1rem; color: var(--muted); line-height: 1.7; margin: 22px 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 34px; color: var(--muted); font-size: 0.9rem; }
.hero-meta span { display: flex; align-items: center; gap: 8px; }
.hero-meta svg { color: var(--bronze); width: 1.1rem; }
.hero-visual { min-height: 430px; position: relative; z-index: 2; }
.hero-icon {
  width: min(300px, 62%);
  position: absolute;
  right: 1%;
  top: 3%;
  border-radius: 30%;
  transform: rotate(4deg);
  box-shadow: 0 35px 70px rgba(50, 36, 24, 0.22);
  animation: iconFloat 4.8s ease-in-out infinite;
}
@keyframes iconFloat { 0%,100% { transform: translateY(0) rotate(4deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
.fabric-stack {
  position: absolute;
  width: 78%;
  height: 63%;
  left: 2%;
  bottom: 3%;
}
.fabric-layer {
  position: absolute;
  inset: auto;
  width: 78%;
  height: 70%;
  border-radius: 32px;
  object-fit: cover;
  box-shadow: 0 24px 45px rgba(27, 25, 24, 0.25);
  border: 8px solid rgba(255,255,255,0.54);
}
.fabric-layer.one { left: 4%; bottom: 3%; transform: rotate(-8deg); }
.fabric-layer.two { left: 18%; bottom: 8%; transform: rotate(2deg); }
.fabric-layer.three { left: 30%; bottom: 16%; transform: rotate(10deg); }

.btn {
  min-height: 48px;
  padding: 0 19px;
  border: 0;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.48; cursor: not-allowed; transform: none; }
.btn-primary { color: #fff; background: linear-gradient(100deg, #161419 0%, #74401f 58%, #ad7040 100%); box-shadow: 0 13px 24px rgba(86, 48, 24, 0.22); }
.btn-secondary { background: rgba(255,255,255,0.76); color: var(--ink); border: 1px solid rgba(255,255,255,0.96); }
.btn-ghost { background: transparent; color: var(--bronze-dark); }
.btn-danger { background: rgba(181,47,61,0.1); color: var(--danger); }
.btn-success { background: rgba(45,123,104,0.12); color: var(--success); }
.btn-wide { width: 100%; }
.btn-sm { min-height: 39px; border-radius: 13px; padding: 0 14px; font-size: 0.88rem; }

.section { margin-top: 42px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: clamp(1.55rem, 2.5vw, 2.3rem); letter-spacing: -0.04em; }
.section-head p { color: var(--muted); margin: 6px 0 0; }
.section-link { color: var(--bronze-dark); font-weight: 800; }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.category-card {
  min-height: 180px;
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.category-card::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -40px;
  bottom: -55px;
  border-radius: 45px;
  background: var(--accent, #28354a);
  opacity: 0.16;
  transform: rotate(18deg);
}
.category-swatch { width: 52px; height: 52px; border-radius: 16px; background: var(--accent, #28354a); margin-bottom: 27px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); }
.category-card h3 { margin: 0; font-size: 1.16rem; }
.category-card p { color: var(--muted); margin: 7px 0 0; line-height: 1.5; }
.category-card small { display: block; margin-top: 12px; color: var(--bronze-dark); font-weight: 800; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: transform 190ms ease, box-shadow 190ms ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-image-link { display: block; padding: 12px 12px 0; }
.product-image {
  width: 100%;
  aspect-ratio: 1.32 / 1;
  border-radius: 22px;
  object-fit: cover;
  background: #ddd;
}
.product-content { padding: 17px 18px 19px; }
.product-content h3 { font-size: 1.17rem; margin: 0 42px 4px 0; letter-spacing: -0.025em; }
.product-content h3 a:hover { color: var(--bronze-dark); }
.product-meta { color: var(--muted); margin: 0 0 13px; font-size: 0.91rem; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.price { color: var(--bronze-dark); font-size: 1.32rem; font-weight: 850; }
.old-price { color: var(--muted); text-decoration: line-through; font-size: 0.85rem; }
.favorite-button {
  position: absolute;
  top: 27px;
  right: 27px;
  width: 43px;
  height: 43px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.8);
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(12px);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(28,22,18,0.12);
}
.favorite-button.active { color: var(--danger); background: #fff; }
.product-card-actions { display: flex; gap: 8px; margin-top: 15px; }
.product-card-actions .btn { flex: 1; min-height: 42px; }

.search-panel { padding: 18px; border-radius: var(--radius-lg); margin-bottom: 18px; }
.search-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; }
.search-field { position: relative; }
.search-field > svg { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: #54525c; }
.search-field input,
.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid rgba(55,47,40,0.09);
  background: rgba(255,255,255,0.78);
  color: var(--ink);
  border-radius: 17px;
  outline: none;
  transition: border 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.search-field input { min-height: 58px; padding: 0 18px 0 53px; }
.input, .select { min-height: 50px; padding: 0 15px; }
.textarea { min-height: 125px; padding: 14px 15px; resize: vertical; }
.search-field input:focus, .input:focus, .select:focus, .textarea:focus { border-color: rgba(168,104,52,0.45); background: #fff; box-shadow: 0 0 0 4px rgba(168,104,52,0.09); }
.chip-row { display: flex; gap: 9px; overflow-x: auto; padding: 4px 2px 5px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  border: 0;
  min-height: 42px;
  padding: 0 17px;
  border-radius: 99px;
  background: rgba(255,255,255,0.78);
  font-weight: 750;
  cursor: pointer;
}
.chip.active { background: #17161a; color: #fff; }
.results-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 28px 0 16px; }
.results-toolbar h2 { margin: 0; font-size: 1.6rem; }
.results-toolbar span { color: var(--bronze-dark); font-weight: 800; }

.empty-state {
  min-height: 360px;
  border-radius: 34px;
  padding: 44px 24px;
  display: grid;
  place-items: center;
  text-align: center;
}
.empty-art { width: 95px; height: 95px; display: grid; place-items: center; border-radius: 31px; background: rgba(168,104,52,0.1); color: var(--bronze-dark); margin: 0 auto 18px; }
.empty-art svg { width: 2.7rem; height: 2.7rem; }
.empty-state h2 { margin: 0; font-size: 1.8rem; }
.empty-state p { color: var(--muted); max-width: 470px; line-height: 1.6; margin: 10px auto 20px; }

.product-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr); gap: 25px; align-items: start; }
.product-gallery { padding: 18px; border-radius: 36px; position: sticky; top: 116px; }
.product-gallery img { width: 100%; aspect-ratio: 1.15; border-radius: 27px; object-fit: cover; }
.product-detail-card { padding: clamp(24px, 4vw, 38px); border-radius: 36px; }
.product-detail-card h1 { font-size: clamp(2.1rem, 4vw, 3.8rem); line-height: 1; letter-spacing: -0.055em; margin: 5px 0 14px; }
.product-detail-card .price { font-size: 1.75rem; }
.product-description { color: var(--muted); line-height: 1.7; font-size: 1rem; margin: 20px 0; }
.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.detail-tags span { padding: 9px 12px; border-radius: 12px; background: rgba(40,53,74,0.06); color: #41424a; font-weight: 700; font-size: 0.86rem; }
.quantity-control { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px; border-radius: 19px; background: rgba(255,255,255,0.65); margin: 20px 0 14px; }
.quantity-control button { width: 44px; height: 44px; border: 0; border-radius: 14px; background: #fff; cursor: pointer; box-shadow: 0 5px 14px rgba(30,25,21,0.08); }
.quantity-control strong { font-size: 1.17rem; }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 24px; }
.spec { padding: 15px; background: rgba(255,255,255,0.59); border-radius: 17px; }
.spec small { color: var(--muted); display: block; margin-bottom: 4px; }
.spec strong { font-size: 0.94rem; }
.stock-note { display: flex; gap: 8px; align-items: center; color: var(--success); font-weight: 750; margin-top: 14px; }

.cart-layout,
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr); gap: 22px; align-items: start; }
.cart-list { display: grid; gap: 15px; }
.cart-item { border-radius: 28px; padding: 17px; display: grid; grid-template-columns: 150px 1fr auto; gap: 20px; align-items: center; }
.cart-item img { width: 150px; height: 130px; border-radius: 22px; object-fit: cover; }
.cart-item h3 { margin: 0 0 6px; font-size: 1.25rem; }
.cart-item p { color: var(--muted); margin: 0 0 14px; }
.cart-item .quantity-control { margin: 0; max-width: 230px; padding: 8px; }
.cart-price { text-align: right; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.cart-price strong { color: var(--bronze-dark); font-size: 1.25rem; }
.remove-button { border: 0; background: rgba(181,47,61,0.08); color: var(--danger); border-radius: 13px; width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer; }
.summary-card { padding: 24px; border-radius: 30px; position: sticky; top: 116px; }
.summary-card h2 { margin: 0 0 18px; }
.summary-line { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; color: var(--muted); }
.summary-line strong { color: var(--ink); }
.summary-total { margin: 9px 0 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 1.3rem; color: var(--ink); }
.summary-total strong { color: var(--bronze-dark); font-size: 1.55rem; }
.summary-note { display: flex; gap: 9px; color: var(--muted); font-size: 0.88rem; line-height: 1.5; margin-top: 14px; }

.form-card { border-radius: 30px; padding: 24px; }
.form-card h2 { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.form-group { display: grid; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.87rem; font-weight: 800; }
.form-error { color: var(--danger); font-size: 0.8rem; min-height: 1em; }
.address-options { display: grid; gap: 11px; }
.address-option { border: 1px solid transparent; padding: 17px; border-radius: 20px; background: rgba(255,255,255,0.62); display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: start; cursor: pointer; }
.address-option.selected { border-color: rgba(168,104,52,0.42); background: #fff; box-shadow: 0 8px 24px rgba(62,41,25,0.08); }
.address-option input { margin-top: 4px; accent-color: var(--bronze); }
.address-option h3 { margin: 0 0 4px; font-size: 1rem; }
.address-option p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 0.9rem; }
.cash-panel { margin-top: 18px; padding: 18px; border-radius: 20px; display: flex; align-items: center; gap: 13px; background: linear-gradient(120deg, rgba(23,22,26,0.96), rgba(116,64,31,0.94)); color: #fff; }
.cash-panel svg { width: 1.8rem; height: 1.8rem; }
.cash-panel p { margin: 4px 0 0; color: rgba(255,255,255,0.72); font-size: 0.85rem; }

.success-card { min-height: 620px; border-radius: 40px; text-align: center; padding: 54px 24px; display: grid; place-items: center; overflow: hidden; position: relative; }
.success-card::before, .success-card::after { content: ""; position: absolute; border-radius: 999px; }
.success-card::before { width: 330px; height: 330px; background: rgba(45,123,104,0.1); top: -160px; right: -80px; }
.success-card::after { width: 250px; height: 250px; background: rgba(168,104,52,0.1); bottom: -130px; left: -90px; }
.success-icon { width: 112px; height: 112px; border-radius: 36px; background: rgba(45,123,104,0.12); color: var(--success); display: grid; place-items: center; margin: 0 auto 23px; animation: successPop 600ms cubic-bezier(.2,1.4,.4,1) both; }
.success-icon svg { width: 3.5rem; height: 3.5rem; }
@keyframes successPop { from { opacity: 0; transform: scale(.55) rotate(-12deg); } to { opacity: 1; transform: none; } }
.success-card h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); letter-spacing: -0.06em; margin: 0; }
.success-card p { max-width: 560px; color: var(--muted); line-height: 1.7; }
.success-ref { display: inline-flex; padding: 11px 16px; border-radius: 13px; background: rgba(255,255,255,0.72); font-weight: 850; margin: 7px 0 22px; }

.tab-row { display: flex; gap: 9px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 3px; }
.tab-row button { min-width: max-content; }
.order-list { display: grid; gap: 15px; }
.order-card { border-radius: 28px; padding: 21px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.order-card h3 { margin: 0 0 6px; }
.order-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.order-card strong { color: var(--bronze-dark); }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 99px; font-size: 0.8rem; font-weight: 850; margin-bottom: 10px; }
.status-processing { color: var(--warning); background: rgba(184,121,46,0.1); }
.status-delivered { color: var(--success); background: rgba(45,123,104,0.1); }
.status-cancelled { color: var(--danger); background: rgba(181,47,61,0.1); }
.status-pending { color: #4a5b79; background: rgba(74,91,121,0.1); }

.order-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .62fr); gap: 20px; align-items: start; }
.order-status-hero { padding: 27px; border-radius: 30px; text-align: center; margin-bottom: 18px; }
.order-status-hero h2 { margin: 14px 0 7px; font-size: 2rem; }
.order-status-hero p { margin: 0; color: var(--muted); line-height: 1.6; }
.timeline-card { padding: 25px; border-radius: 30px; }
.timeline-card h2 { margin-top: 0; }
.timeline { display: grid; gap: 0; }
.timeline-step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; min-height: 86px; position: relative; }
.timeline-step:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 43px; bottom: -3px; width: 2px; background: #d8d6d1; }
.timeline-step.done:not(:last-child)::after { background: rgba(45,123,104,0.35); }
.timeline-dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #ecebe8; color: #aaa; z-index: 1; }
.timeline-step.done .timeline-dot { color: var(--success); background: rgba(45,123,104,0.1); }
.timeline-step h3 { margin: 9px 0 0; font-size: 1rem; }
.order-items-card, .order-side-card { padding: 23px; border-radius: 30px; }
.order-item-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.order-item-row:last-child { border-bottom: 0; }
.order-item-row img { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; }
.order-item-row h3 { margin: 0 0 4px; font-size: 0.98rem; }
.order-item-row p { margin: 0; color: var(--muted); font-size: 0.87rem; }
.order-item-row strong { color: var(--bronze-dark); }

.account-grid { display: grid; grid-template-columns: .83fr 1.17fr; gap: 22px; align-items: start; }
.profile-card { border-radius: 34px; padding: 28px; position: sticky; top: 116px; }
.avatar { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; font-weight: 800; color: #fff; background: linear-gradient(130deg, #687566, #a86c3a); box-shadow: 0 16px 35px rgba(83,63,42,0.22); margin-bottom: 22px; }
.profile-card h1 { margin: 0; font-size: 2.2rem; letter-spacing: -0.04em; }
.profile-card p { color: var(--muted); line-height: 1.6; }
.profile-meta { display: grid; gap: 10px; margin: 20px 0; }
.profile-meta span { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 15px; background: rgba(255,255,255,0.56); }
.account-sections { display: grid; gap: 20px; }
.menu-card { border-radius: 30px; padding: 12px; }
.menu-card h2 { padding: 8px 10px 12px; margin: 0; }
.menu-row { width: 100%; min-height: 74px; padding: 11px 12px; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 13px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.menu-row:last-child { border-bottom: 0; }
.menu-icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: var(--bronze-dark); background: rgba(168,104,52,0.08); }
.menu-row h3 { margin: 0 0 3px; font-size: 1rem; }
.menu-row p { margin: 0; color: var(--muted); font-size: 0.86rem; }

.address-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.address-card { border-radius: 27px; padding: 21px; position: relative; }
.address-card.selected { outline: 2px solid rgba(168,104,52,0.36); }
.address-card h3 { margin: 0 0 8px; }
.address-card p { margin: 5px 0; color: var(--muted); line-height: 1.55; }
.address-card-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.address-label { display: inline-flex; padding: 6px 9px; border-radius: 9px; color: var(--bronze-dark); background: rgba(168,104,52,0.08); font-weight: 850; font-size: .77rem; margin-bottom: 12px; }

.settings-list { display: grid; gap: 13px; }
.setting-row { border-radius: 24px; padding: 20px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.setting-row h3 { margin: 0 0 4px; }
.setting-row p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 0.9rem; }
.switch { position: relative; display: inline-block; width: 55px; height: 32px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #d6d3cf; border-radius: 99px; transition: 180ms; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 25px; height: 25px; left: 4px; top: 3.5px; background: #fff; border-radius: 50%; box-shadow: 0 3px 8px rgba(0,0,0,.14); transition: 180ms; }
.switch input:checked + span { background: var(--bronze); }
.switch input:checked + span::before { transform: translateX(22px); }

.notification-list { display: grid; gap: 13px; }
.notification-card { border-radius: 24px; padding: 20px; display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: start; cursor: pointer; }
.notification-card.unread { box-shadow: inset 4px 0 0 var(--bronze), var(--shadow-soft); }
.notification-icon { width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center; background: rgba(168,104,52,0.09); color: var(--bronze-dark); }
.notification-card h3 { margin: 2px 0 5px; }
.notification-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.notification-card time { color: var(--muted); font-size: .8rem; }
.unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bronze); margin-top: 4px; }

.support-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 22px; align-items: start; }
.contact-card { padding: 25px; border-radius: 30px; }
.contact-list { display: grid; gap: 10px; margin-top: 20px; }
.contact-link { display: flex; align-items: center; gap: 12px; border-radius: 17px; background: rgba(255,255,255,.61); padding: 14px; }
.contact-link span:first-child { color: var(--bronze-dark); }
.faq-list { display: grid; gap: 10px; }
.faq-item { border-radius: 20px; overflow: hidden; }
.faq-question { width: 100%; min-height: 64px; border: 0; background: transparent; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; text-align: left; font-weight: 800; cursor: pointer; }
.faq-answer { display: none; padding: 0 18px 18px; color: var(--muted); line-height: 1.65; }
.faq-item.open .faq-answer { display: block; animation: pageIn 220ms ease both; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }

.policy-page { border-radius: 34px; padding: clamp(24px, 5vw, 58px); }
.policy-page h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); letter-spacing: -0.055em; margin: 0 0 12px; }
.policy-page .policy-meta { color: var(--muted); margin-bottom: 34px; }
.policy-page h2 { margin-top: 32px; font-size: 1.35rem; }
.policy-page p, .policy-page li { color: #565158; line-height: 1.75; }
.policy-page ul { padding-left: 22px; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(21,19,20,0.42);
  backdrop-filter: blur(8px);
  animation: fadeIn 180ms ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: min(620px, 100%);
  max-height: min(820px, calc(100vh - 40px));
  overflow: auto;
  border-radius: 30px;
  background: rgba(250,247,242,0.97);
  box-shadow: 0 28px 80px rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.8);
  padding: 24px;
  animation: modalUp 250ms cubic-bezier(.2,.8,.2,1) both;
}
@keyframes modalUp { from { opacity: 0; transform: translateY(25px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.modal-head h2 { margin: 0; }
.modal-close { width: 42px; height: 42px; border: 0; border-radius: 14px; background: rgba(255,255,255,.8); display: grid; place-items: center; cursor: pointer; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.filter-grid { display: grid; gap: 15px; }
.range-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.onboarding-modal { width: min(900px, 100%); padding: 0; overflow: hidden; }
.onboarding-slide { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.onboarding-image { position: relative; min-height: 360px; overflow: hidden; }
.onboarding-image img { width: 100%; height: 100%; object-fit: cover; }
.onboarding-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 45%, rgba(250,247,242,.7)); }
.onboarding-copy { padding: 48px 38px; display: flex; flex-direction: column; justify-content: center; }
.onboarding-copy img { width: 76px; height: 76px; border-radius: 24px; margin-bottom: 28px; }
.onboarding-copy h2 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -.055em; }
.onboarding-copy p { color: var(--muted); line-height: 1.7; font-size: 1.03rem; }
.onboarding-dots { display: flex; gap: 7px; margin: 18px 0 22px; }
.onboarding-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: #c9c4bd; cursor: pointer; transition: width 180ms ease; }
.onboarding-dots button.active { width: 28px; background: var(--bronze); }

.toast-stack { position: fixed; z-index: 140; right: 20px; bottom: 24px; display: grid; gap: 10px; width: min(390px, calc(100% - 40px)); }
.toast { padding: 15px 17px; border-radius: 18px; color: #fff; background: rgba(25,23,25,.94); box-shadow: 0 18px 45px rgba(0,0,0,.24); display: flex; gap: 11px; align-items: center; animation: toastIn 240ms ease both; }
.toast.success { background: rgba(35,105,88,.96); }
.toast.error { background: rgba(163,41,55,.96); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.site-footer {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto 28px;
  padding: 26px 4px 10px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  color: var(--muted);
}
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand img { border-radius: 14px; }
.footer-brand div { display: grid; gap: 3px; }
.footer-brand strong { color: var(--ink); font-family: Georgia, serif; letter-spacing: .07em; font-size: .87rem; }
.footer-brand span { font-size: .82rem; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a:hover { color: var(--bronze-dark); }
.site-footer > p { grid-column: 1 / -1; margin: 0; font-size: .8rem; }
.mobile-nav { display: none; }
.noscript { padding: 18px; background: #fff3cd; color: #5d4810; text-align: center; }

.skeleton { border-radius: 18px; min-height: 160px; background: linear-gradient(90deg, rgba(255,255,255,.45), rgba(255,255,255,.92), rgba(255,255,255,.45)); background-size: 210% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -210% 0; } }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .brand { min-width: 0; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { min-height: 470px; }
  .category-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail, .cart-layout, .checkout-layout, .account-grid, .support-grid, .order-detail-grid { grid-template-columns: 1fr; }
  .product-gallery, .summary-card, .profile-card { position: static; }
  .profile-card { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
  .profile-card .avatar { margin: 0; }
  .profile-card .profile-actions, .profile-card .profile-meta { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  :root { --header-h: 70px; --radius-xl: 28px; }
  body { padding-bottom: 94px; }
  .ambient-one { width: 330px; height: 330px; }
  .site-header { top: 8px; width: calc(100% - 20px); height: 70px; margin-top: 8px; padding: 9px 10px 9px 12px; border-radius: 22px; }
  .brand img { width: 44px; height: 44px; border-radius: 14px; }
  .brand-copy strong { font-size: .78rem; }
  .brand-copy small { font-size: .67rem; }
  .header-actions .icon-button:nth-child(2), .header-actions .icon-button:nth-child(3) { display: none; }
  .icon-button { width: 40px; height: 40px; border-radius: 13px; }
  .app-main { width: calc(100% - 20px); margin: 18px auto 34px; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 15px; }
  .page-actions { justify-content: flex-start; }
  .page-head h1 { font-size: 2.65rem; }
  .hero { padding: 28px 20px 23px; border-radius: 30px; gap: 25px; }
  .hero-copy h1 { font-size: 3.25rem; }
  .hero-copy p { font-size: .98rem; margin: 17px 0 22px; }
  .hero-meta { gap: 12px; margin-top: 22px; }
  .hero-visual { min-height: 360px; }
  .hero-icon { width: 58%; }
  .fabric-stack { width: 94%; height: 66%; }
  .category-grid, .product-grid, .address-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 158px; }
  .search-row { grid-template-columns: 1fr auto; }
  .search-row .select { grid-column: 1 / -1; }
  .product-detail-card { padding: 23px 19px; }
  .product-detail-card h1 { font-size: 2.6rem; }
  .spec-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 105px 1fr; gap: 13px; }
  .cart-item img { width: 105px; height: 112px; }
  .cart-price { grid-column: 2; flex-direction: row; align-items: center; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: auto; }
  .order-card { grid-template-columns: 1fr; }
  .order-card .btn { justify-self: start; }
  .profile-card { grid-template-columns: 80px 1fr; padding: 22px; }
  .avatar { width: 80px; height: 80px; font-size: 1.5rem; }
  .profile-card h1 { font-size: 1.65rem; }
  .notification-card { grid-template-columns: 46px 1fr; }
  .notification-card time { grid-column: 2; }
  .onboarding-slide { grid-template-columns: 1fr; }
  .onboarding-image { min-height: 240px; max-height: 260px; }
  .onboarding-image::after { background: linear-gradient(0deg, rgba(250,247,242,.92), transparent 52%); }
  .onboarding-copy { padding: 24px 22px 28px; }
  .onboarding-copy img { width: 60px; height: 60px; margin-bottom: 16px; }
  .onboarding-copy h2 { font-size: 2.45rem; }
  .mobile-nav {
    position: fixed;
    z-index: 80;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    right: 10px;
    min-height: 72px;
    border-radius: 24px;
    padding: 7px 8px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
  }
  .mobile-nav a { min-height: 58px; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #4e4c55; position: relative; }
  .mobile-nav a.active { color: var(--bronze-dark); background: rgba(168,104,52,0.09); }
  .mobile-nav a svg { width: 1.45rem; height: 1.45rem; }
  .mobile-nav small { font-size: .66rem; font-weight: 750; }
  .mobile-bag b { top: 3px; right: 18%; }
  .site-footer { margin-bottom: 108px; grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 420px) {
  .brand-copy small { display: none; }
  .brand-copy strong { max-width: 125px; line-height: 1.15; }
  .header-actions { gap: 3px; }
  .hero-copy h1 { font-size: 2.75rem; }
  .hero-visual { min-height: 320px; }
  .page-head h1 { font-size: 2.35rem; }
  .search-panel { padding: 12px; }
  .search-row { gap: 7px; }
  .search-field input { min-height: 54px; }
  .cart-item { grid-template-columns: 88px 1fr; padding: 13px; }
  .cart-item img { width: 88px; height: 98px; border-radius: 18px; }
  .cart-item .quantity-control { max-width: 190px; }
  .cart-item .quantity-control button { width: 37px; height: 37px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
}

.compact-cards .product-grid { grid-template-columns: repeat(4, 1fr); gap: 15px; }
.compact-cards .product-content { padding: 14px; }
.compact-cards .product-image-link { padding: 9px 9px 0; }

.legal-static-wrap { width: min(calc(100% - 28px), 980px); margin: 32px auto; }
.legal-static-home { display: inline-flex; margin-bottom: 16px; }

@media (max-width: 980px) {
  .compact-cards .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .compact-cards .product-grid { grid-template-columns: 1fr; }
}

@media print {
  body { background: #fff !important; padding: 0; }
  .site-header, .site-footer, .mobile-nav, .page-actions, .toast-stack, .ambient { display: none !important; }
  .app-main { width: 100%; margin: 0; }
  .glass-card { background: #fff; box-shadow: none; border: 1px solid #ddd; backdrop-filter: none; }
  .order-detail-grid { grid-template-columns: 1fr; }
  .order-side-card button { display: none; }
}
