:root {
  --ivory: #f7f2ea;
  --paper: #fffcf8;
  --blush: #f6dde3;
  --blush-deep: #ddabb7;
  --gold: #c8a47a;
  --charcoal: #151515;
  --muted: #746d66;
  --line: rgba(21, 21, 21, 0.13);
  --shadow: 0 18px 60px rgba(92, 64, 50, 0.12);
  --serif: "Gilda Display", Georgia, serif;
  --sans: "Vazirmatn", "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
}
html[lang="en"] body { font-family: "DM Sans", sans-serif; }
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] .brand strong { font-family: var(--serif); font-weight: 400; }
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; inset-inline-start: 16px; top: -100px; z-index: 100; background: var(--charcoal); color: white; padding: 10px 16px; }
.skip-link:focus { top: 12px; }

.announcement {
  min-height: 32px; display: grid; place-items: center; padding: 4px 20px;
  background: var(--charcoal); color: #fff; font-size: 11px; letter-spacing: .03em; text-align: center;
}
.site-header { height: 88px; background: rgba(255, 252, 248, .94); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header.is-scrolled { position: sticky; top: 0; box-shadow: 0 8px 30px rgba(21, 21, 21, .06); }
.header-inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.15; }
.brand strong { font-size: 24px; font-weight: 500; letter-spacing: -.04em; }
.brand small { margin-top: 6px; color: var(--muted); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 32px; font-size: 13px; }
.main-nav a { position: relative; }
.main-nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: -8px; height: 1px; background: var(--charcoal); transform: scaleX(0); transition: .25s; }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 22px; }
[dir="rtl"] .header-actions { justify-content: flex-start; }
.language-link { font-size: 12px; color: var(--muted); }
.account-link { font-size: 12px; white-space: nowrap; }
.cart-button { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; cursor: pointer; }
.cart-count { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--blush); font-size: 11px; }
.icon-button { border: 0; background: transparent; cursor: pointer; }
.menu-button { display: none; width: 34px; padding: 8px 2px; }
.menu-button span:not(.sr-only) { display: block; width: 23px; height: 1px; background: var(--charcoal); margin-block: 6px; }

.hero { position: relative; min-height: min(690px, calc(100vh - 120px)); background: #e9d2bd; overflow: hidden; }
.hero-media { position: absolute; inset: 0; background: url("../images/hero-handmade.webp") center / cover no-repeat; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(244, 220, 199, .94) 2%, rgba(244, 220, 199, .5) 43%, transparent 66%); }
[dir="rtl"] .hero-media::after { background: linear-gradient(270deg, rgba(244, 220, 199, .94) 2%, rgba(244, 220, 199, .5) 43%, transparent 66%); }
.hero-content { position: relative; min-height: inherit; display: flex; align-items: center; }
.hero-copy { width: min(500px, 46%); padding-block: 70px; animation: enter .8s ease both; }
.eyebrow { margin: 0 0 16px; color: #815d50; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { max-width: 520px; margin: 0; font-size: clamp(42px, 5.3vw, 74px); font-weight: 300; line-height: 1.22; letter-spacing: -.055em; }
html[lang="fa"] .hero h1 { font-size: clamp(39px, 4.8vw, 66px); line-height: 1.45; }
.hero-text { max-width: 460px; margin: 22px 0 30px; color: #5f554e; font-size: 16px; line-height: 2; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; border: 1px solid var(--charcoal); border-radius: 2px; cursor: pointer; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--charcoal); color: #fff; }
.button-full { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(21, 21, 21, .4); font-size: 13px; }
[dir="ltr"] .text-link span { transform: rotate(180deg); }
.hero-scroll { position: absolute; bottom: 28px; inset-inline-end: 30px; color: rgba(21, 21, 21, .55); font-size: 10px; letter-spacing: .16em; }

.benefits { background: var(--ivory); border-bottom: 1px solid var(--line); }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.benefits article { display: flex; gap: 18px; align-items: center; min-height: 132px; padding: 26px 34px; border-inline-end: 1px solid var(--line); }
.benefits article:last-child { border-inline-end: 0; }
.line-icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: #9a7147; font-size: 20px; }
.benefits h2 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.benefits p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }

.section { padding-block: 110px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 40px; }
.section-heading h2, .newsletter h2 { margin: 0; font-size: clamp(31px, 4vw, 48px); font-weight: 300; letter-spacing: -.045em; line-height: 1.35; }
.section-heading > p { max-width: 390px; margin: 0 0 5px; color: var(--muted); }
.filters { display: flex; gap: 10px; padding-bottom: 26px; overflow-x: auto; }
.filter-button { white-space: nowrap; padding: 8px 18px; border: 1px solid var(--line); border-radius: 50px; background: transparent; color: var(--muted); cursor: pointer; transition: .2s; }
.filter-button:hover, .filter-button.is-active { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { min-width: 0; transition: opacity .25s, transform .25s; }
.product-card.is-hidden { display: none; }
.product-visual { position: relative; aspect-ratio: .82; overflow: hidden; background: var(--ivory); }
.product-visual > a { display: block; width: 100%; height: 100%; }
.product-visual img { width: 100%; height: 100%; object-fit: cover; object-position: var(--image-position); transform: scale(2.25); transition: transform .6s ease; }
.product-card:hover img { transform: scale(2.36); }
.product-visual img[src*="product-handmade"] { transform: scale(1); }
.product-card:hover img[src*="product-handmade"] { transform: scale(1.035); }
.product-badge { position: absolute; z-index: 2; top: 13px; inset-inline-start: 13px; padding: 4px 10px; background: var(--paper); border-radius: 30px; font-size: 10px; }
.product-badge.is-sale { background: var(--blush); }
.quick-add { position: absolute; z-index: 2; inset-inline: 12px; bottom: 12px; min-height: 43px; border: 0; background: rgba(255, 252, 248, .94); transform: translateY(62px); opacity: 0; cursor: pointer; transition: .25s; }
.product-card:hover .quick-add, .quick-add:focus { transform: translateY(0); opacity: 1; }
.unavailable-label { position: absolute; z-index: 2; inset-inline: 12px; bottom: 12px; padding: 11px; background: rgba(21, 21, 21, .72); color: white; text-align: center; font-size: 12px; }
.product-info { padding-top: 16px; }
.product-info h3 { margin: 0 0 6px; font-size: 14px; font-weight: 500; }
.product-price { display: flex; gap: 9px; color: #665a52; font-size: 12px; }
.product-price del { color: #a49c96; }

.newsletter { padding-block: 80px; background: var(--blush); }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.newsletter-inner > div { max-width: 580px; }
.newsletter-mark { color: #a77964; }
.newsletter h2 { margin-top: 8px; font-size: clamp(28px, 3.3vw, 42px); }
.newsletter p { margin: 12px 0 0; color: #715e59; }
.newsletter-form { width: min(420px, 100%); display: flex; border-bottom: 1px solid var(--charcoal); }
.newsletter-form input { width: 100%; padding: 14px 2px; border: 0; outline: 0; background: transparent; }
.newsletter-form button { border: 0; background: transparent; font-weight: 600; cursor: pointer; }

.site-footer { padding: 72px 0 24px; background: var(--charcoal); color: #eee8e1; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 60px; }
.brand-footer { align-items: flex-start; width: max-content; }
.brand-footer small { color: #aaa19a; }
.footer-brand p { max-width: 290px; color: #aaa19a; font-size: 13px; }
.footer-grid h3 { margin: 0 0 17px; color: #8e847d; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; }
.footer-grid > div:not(:first-child) a { display: block; margin-bottom: 10px; font-size: 13px; color: #d9d1ca; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 65px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #847c76; font-size: 10px; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(21, 21, 21, .35); opacity: 0; visibility: hidden; transition: .3s; }
.drawer-backdrop.is-visible { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; z-index: 51; top: 0; bottom: 0; inset-inline-end: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--paper); box-shadow: var(--shadow); transform: translateX(105%); transition: transform .35s ease; }
[dir="rtl"] .cart-drawer { transform: translateX(-105%); }
.cart-drawer.is-open { transform: translateX(0); }
.cart-header { height: 82px; padding-inline: 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.cart-header h2 { margin: 0; font-size: 21px; font-weight: 500; }
.close-button { font-size: 30px; font-weight: 200; }
.cart-body { flex: 1; overflow-y: auto; padding: 22px; }
.empty-cart { height: 100%; min-height: 350px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-cart-icon { font-size: 42px; color: var(--gold); }
.empty-cart p { margin: 16px 0 0; }
.empty-cart small { color: var(--muted); }
.text-button { margin-top: 24px; padding: 5px 0; border: 0; border-bottom: 1px solid; background: transparent; cursor: pointer; }
.cart-item { display: grid; grid-template-columns: 82px 1fr auto; gap: 14px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.cart-item-image { height: 100px; overflow: hidden; background: var(--ivory); }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; object-position: var(--image-position); transform: scale(2.3); }
.cart-item h3 { margin: 4px 0 4px; font-size: 13px; font-weight: 500; }
.cart-item-price { color: var(--muted); font-size: 11px; }
.quantity { width: max-content; display: flex; align-items: center; gap: 12px; margin-top: 12px; border: 1px solid var(--line); }
.quantity button { width: 27px; height: 26px; border: 0; background: transparent; cursor: pointer; }
.quantity span { font-size: 11px; }
.remove-item { align-self: start; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; }
.cart-footer { padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 4px; }
.cart-footer small { display: block; margin-bottom: 16px; color: var(--muted); font-size: 10px; }
.toast { position: fixed; z-index: 80; bottom: 24px; left: 50%; padding: 12px 22px; border-radius: 40px; background: var(--charcoal); color: white; font-size: 12px; opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: .25s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.page-main { min-height: 65vh; padding-block: 80px 110px; }
.page-main h1 { margin: 0; font-size: clamp(36px, 5vw, 60px); font-weight: 300; line-height: 1.35; letter-spacing: -.04em; }
.form-card { padding: 34px; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 50px rgba(82, 58, 44, .07); }
.auth-page { display: grid; place-items: center; padding-inline: 16px; background: var(--ivory); }
.auth-card { width: min(480px, 100%); text-align: center; }
.auth-card > p:not(.eyebrow) { color: var(--muted); }
.stack-form { display: grid; gap: 10px; margin-top: 26px; text-align: start; }
.stack-form .button { margin-top: 10px; }
label > span, .stack-form > label { display: block; margin-bottom: 6px; color: #5f5751; font-size: 12px; }
input, textarea, select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 2px; background: #fff; color: var(--charcoal); outline: none; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 164, 122, .12); }
.otp-input { direction: ltr; text-align: center; font-size: 26px; letter-spacing: .35em; }
.inline-form { display: flex; justify-content: center; }
.development-code { margin: 20px 0 0; padding: 10px; background: var(--blush); border: 1px dashed var(--blush-deep); }
.alert { margin-bottom: 20px; padding: 12px 16px; border: 1px solid; }
.alert-error { background: #fff1f0; color: #8d2c2c; border-color: #e6b5b1; }
.alert-success { background: #eff8f0; color: #306c3b; border-color: #bad8c0; }
.home-alert { position: relative; z-index: 5; margin-top: 18px; margin-bottom: 18px; }
.success-card { width: min(600px, 100%); text-align: center; }
.success-mark { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 22px; border-radius: 50%; background: #e5f3e7; color: #32733e; font-size: 25px; }
.story-page { padding-top: 0; }
.story-hero { padding: 110px 0 170px; background: var(--blush); text-align: center; }
.narrow { max-width: 850px; }
.story-hero .lead { max-width: 700px; margin: 22px auto 0; color: #665853; font-size: 18px; }
.story-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 85px; margin-top: -100px; }
.story-image { aspect-ratio: .9; overflow: hidden; box-shadow: var(--shadow); }
.story-image img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; transform: scale(1.7); }
.story-image img[src*="product-handmade"] { object-position: center; transform: scale(1); }
.story-copy { padding-top: 120px; }
.story-copy p { color: var(--muted); font-size: 16px; line-height: 2.1; }
.story-copy h2 { margin: 38px 0 10px; font-size: 28px; font-weight: 400; }
.story-copy .button { margin-top: 20px; }
.account-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.account-heading p { color: var(--muted); }
.account-orders { display: grid; gap: 14px; }
.order-card { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; align-items: center; gap: 24px; padding: 24px; border: 1px solid var(--line); background: #fff; }
.order-card > div { display: flex; flex-direction: column; }
.order-card small { color: var(--muted); }
.status { display: inline-flex; width: max-content; padding: 5px 10px; border-radius: 30px; font-size: 11px; white-space: nowrap; }
.status-payment-review { background: #fff1c9; color: #76540a; }
.status-pending-payment { background: #eeeae6; color: #665d56; }
.status-approved { background: #e3f3e6; color: #276c35; }
.status-rejected { background: #fde7e4; color: #8c302a; }
.status-preparing { background: #f3e9ff; color: #69418a; }
.status-shipped { background: #e3effc; color: #285f92; }
.status-delivered { background: #dff4e4; color: #276c35; }
.empty-state { padding: 70px 20px; border: 1px solid var(--line); text-align: center; }
.checkout-heading { margin-bottom: 36px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .75fr); align-items: start; gap: 28px; }
.checkout-fields { display: grid; gap: 24px; }
.form-card h2 { margin: 0 0 24px; font-size: 23px; font-weight: 500; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-full { grid-column: 1 / -1; }
.payment-card > p { color: var(--muted); }
.bank-card { display: flex; flex-direction: column; gap: 6px; margin: 24px 0; padding: 24px; border-radius: 14px; background: linear-gradient(135deg, #1b1b1b, #3b302c); color: #fff; }
.bank-card strong { font-size: clamp(20px, 4vw, 28px); letter-spacing: .12em; }
.bank-card span, .bank-card small { color: #d8cec8; }
.checkout-summary { position: sticky; top: 100px; }
.checkout-item, .summary-line { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: 12px; }
.checkout-item strong { white-space: nowrap; }
.summary-total { margin-bottom: 20px; border-bottom: 0; font-size: 15px; }
.checkout-empty-message { color: #8d2c2c; text-align: center; }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.product-detail { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 75px; }
.product-detail-image { aspect-ratio: .9; overflow: hidden; background: var(--ivory); }
.product-detail-image img { width: 100%; height: 100%; object-fit: cover; object-position: var(--image-position); }
.product-detail-copy { max-width: 470px; }
.detail-price { display: flex; gap: 12px; margin: 18px 0 28px; color: #665a52; }
.detail-price del { color: #a49c96; }
.product-description { padding-bottom: 25px; color: var(--muted); line-height: 2; border-bottom: 1px solid var(--line); }
.availability { display: flex; justify-content: space-between; gap: 20px; margin: 24px 0; font-size: 12px; }
.availability span { color: var(--muted); }
.product-back { margin-top: 24px; }
.profile-card { width: min(640px, 100%); text-align: start; }
.account-actions { display: flex; align-items: center; gap: 10px; }
.account-actions form { margin: 0; }
.order-detail-page { display: grid; gap: 28px; }
.order-detail-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.order-detail-heading h1 { font-size: clamp(28px, 4vw, 46px); }
.shipment-notice { padding: 20px 24px; border-inline-start: 3px solid var(--gold); background: var(--ivory); }
.shipment-notice p { margin: 5px 0 0; color: var(--muted); }
.order-detail-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 24px; }
.order-meta dl { display: grid; gap: 16px; margin: 0 0 24px; }
.order-meta dl > div { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.order-meta dt { color: var(--muted); font-size: 12px; }
.order-meta dd { margin: 0; }
.contact-page { background: var(--ivory); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; gap: 70px; }
.contact-intro { padding-top: 45px; }
.contact-intro > p:not(.eyebrow) { max-width: 470px; color: var(--muted); font-size: 16px; line-height: 2; }
.contact-details { display: grid; gap: 14px; margin-top: 38px; }
.contact-details a { display: flex; flex-direction: column; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.contact-details small { color: var(--muted); }

@keyframes enter { from { opacity: 0; transform: translateY(20px); } }
@media (max-width: 900px) {
  .site-header { height: 72px; }
  .header-inner { grid-template-columns: 1fr auto 1fr; }
  .menu-button { display: block; }
  .main-nav { position: absolute; top: 72px; inset-inline: 0; padding: 24px; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s; }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .header-actions .language-link { display: none; }
  .header-actions .account-link { display: none; }
  .cart-button > span:first-child { display: none; }
  .hero { min-height: 640px; }
  .hero-media { background-position: 58% center; }
  .hero-media::after, [dir="rtl"] .hero-media::after { background: linear-gradient(90deg, rgba(244,220,199,.9), rgba(244,220,199,.35) 75%); }
  .hero-copy { width: 56%; }
  .benefits article { padding: 24px 14px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); row-gap: 38px; }
  .quick-add { transform: none; opacity: 1; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-grid > div:last-child { display: none; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 32px, 1180px); }
  .announcement { font-size: 9px; }
  .brand strong { font-size: 20px; }
  .brand small { font-size: 7px; }
  .hero { min-height: 660px; display: flex; align-items: flex-end; }
  .hero-media { background-position: 65% center; }
  .hero-media::after, [dir="rtl"] .hero-media::after { background: linear-gradient(0deg, rgba(241,214,191,.98) 7%, rgba(241,214,191,.65) 50%, transparent 78%); }
  .hero-content { align-items: flex-end; min-height: 660px; }
  .hero-copy { width: 100%; padding: 80px 0 62px; }
  .hero h1, html[lang="fa"] .hero h1 { max-width: 390px; font-size: 39px; }
  .hero-text { max-width: 420px; margin: 14px 0 22px; font-size: 14px; }
  .hero-scroll { display: none; }
  .benefits-grid { grid-template-columns: 1fr; padding-block: 14px; }
  .benefits article { min-height: auto; padding: 18px 0; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .benefits article:last-child { border-bottom: 0; }
  .section { padding-block: 74px; }
  .section-heading { display: block; margin-bottom: 26px; }
  .section-heading > p { margin-top: 12px; }
  .product-grid { gap: 14px; row-gap: 32px; }
  .product-visual { aspect-ratio: .78; }
  .quick-add { inset-inline: 7px; bottom: 7px; font-size: 11px; }
  .newsletter { padding-block: 60px; }
  .newsletter-inner { display: block; }
  .newsletter-form { margin-top: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 42px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .remove-item { grid-column: 2; justify-self: start; }
  .story-hero { padding: 75px 0 120px; }
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .story-copy { padding-top: 55px; }
  .account-heading { align-items: start; flex-direction: column; }
  .order-card { grid-template-columns: 1fr 1fr; gap: 16px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .form-card { padding: 24px 18px; }
  .checkout-summary { position: static; }
  .product-detail { grid-template-columns: 1fr; gap: 40px; }
  .product-detail-copy { max-width: none; }
  .account-actions { align-items: stretch; flex-direction: column; }
  .order-detail-heading { align-items: flex-start; flex-direction: column; }
  .order-detail-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-intro { padding-top: 0; }
  .order-meta dl > div { grid-template-columns: 1fr; gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Premium storefront refinement */
:root {
  --paper: #fdfbf7;
  --ivory: #f6f0e8;
  --blush: #f2dce0;
  --blush-deep: #d9a8b1;
  --gold: #b99062;
  --charcoal: #181614;
  --muted: #746c64;
  --line: rgba(38, 29, 22, .11);
  --soft-line: rgba(38, 29, 22, .07);
  --shadow: 0 30px 90px rgba(63, 42, 27, .12);
  --shadow-soft: 0 14px 45px rgba(63, 42, 27, .075);
  --radius: 18px;
}

html { color-scheme: light; scroll-padding-top: 110px; }
body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 24%, rgba(246, 221, 227, .18), transparent 24rem),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--blush); color: var(--charcoal); }
a, button, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.announcement {
  min-height: 35px;
  background: #1b1816;
  color: rgba(255,255,255,.82);
  letter-spacing: .08em;
}
.site-header {
  position: sticky;
  top: 0;
  height: 92px;
  z-index: 40;
  background: rgba(253, 251, 247, .86);
  border-color: var(--soft-line);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  transition: height .3s ease, box-shadow .3s ease, background .3s ease;
}
.site-header.is-scrolled {
  position: sticky;
  height: 76px;
  background: rgba(253, 251, 247, .95);
  box-shadow: 0 12px 36px rgba(41, 30, 22, .055);
}
.brand { flex-direction: row; gap: 11px; }
.brand-logo { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; box-shadow: 0 5px 18px rgba(42,28,24,.1); }
.brand-copy { display: flex; flex-direction: column; align-items: flex-start; }
[dir="rtl"] .brand-copy { align-items: flex-end; }
.brand strong { font-size: 25px; letter-spacing: -.055em; }
.brand small { margin-top: 5px; color: #8b7f75; letter-spacing: .24em; }
.main-nav { gap: clamp(20px, 2.6vw, 38px); }
.main-nav a, .account-link, .language-link { transition: color .2s ease, opacity .2s ease; }
.main-nav a { font-size: 12px; letter-spacing: .025em; }
.main-nav a::after { bottom: -10px; background: var(--gold); }
.main-nav a:hover, .account-link:hover, .language-link:hover { color: #9a7047; }
.header-actions { gap: 18px; }
.language-link {
  padding-inline-end: 18px;
  border-inline-end: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: .04em;
}
.cart-button {
  position: relative;
  min-height: 42px;
  padding: 7px 9px 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  transition: border-color .2s, background .2s, transform .2s;
}
[dir="rtl"] .cart-button { padding: 7px 13px 7px 9px; }
.cart-button:hover { transform: translateY(-1px); border-color: rgba(185,144,98,.5); background: #fff; }
.cart-icon { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.cart-label { font-size: 11px; }
.cart-count { width: 25px; height: 25px; background: var(--charcoal); color: #fff; }

.hero {
  min-height: min(755px, calc(100svh - 127px));
  isolation: isolate;
  background: #dfc5ad;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 22px;
  border: 1px solid rgba(255,255,255,.34);
  pointer-events: none;
}
.hero-media { transform: scale(1.005); animation: heroReveal 1.35s cubic-bezier(.22,.75,.2,1) both; }
[dir="rtl"] .hero-media { transform: scaleX(-1) scale(1.005); animation: heroRevealRtl 1.35s cubic-bezier(.22,.75,.2,1) both; }
.hero-media::after {
  background: linear-gradient(90deg, rgba(235,212,193,.97) 0%, rgba(235,212,193,.78) 37%, rgba(235,212,193,.1) 70%);
}
[dir="rtl"] .hero-media::after {
  background: linear-gradient(270deg, rgba(235,212,193,.97) 0%, rgba(235,212,193,.78) 37%, rgba(235,212,193,.1) 70%);
}
.hero-copy { width: min(535px, 49%); animation: enter 1s .12s cubic-bezier(.22,.75,.2,1) both; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #86664f;
  font-size: 10px;
  letter-spacing: .2em;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; opacity: .65; }
.hero h1 { font-size: clamp(48px, 5.7vw, 82px); line-height: 1.08; letter-spacing: -.06em; }
html[lang="fa"] .hero h1 { font-size: clamp(44px, 5vw, 72px); line-height: 1.36; }
.hero-text { max-width: 440px; margin: 25px 0 34px; color: #5e5148; font-size: 15px; }
.button {
  min-height: 53px;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .025em;
  transition: transform .25s, background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.button:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 11px 24px rgba(39,29,22,.1); }
.button-dark { background: var(--charcoal); border-color: var(--charcoal); }
.button-dark:hover { background: #9d754f; border-color: #9d754f; }
.text-link { gap: 10px; padding-block: 6px; border-bottom-color: rgba(21,21,21,.26); transition: color .2s, border-color .2s; }
.text-link:hover { color: #8e6543; border-color: #8e6543; }
.text-link svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .25s; }
[dir="ltr"] .text-link svg { transform: rotate(180deg); }
.text-link:hover svg { transform: translateX(-3px); }
[dir="ltr"] .text-link:hover svg { transform: rotate(180deg) translateX(-3px); }
.hero-scroll { z-index: 3; bottom: 41px; inset-inline-end: 48px; display: flex; align-items: center; gap: 11px; color: rgba(21,21,21,.5); }
.hero-scroll i { display: block; width: 38px; height: 1px; background: currentColor; }

.benefits { background: #f7f1e9; }
.benefits article { min-height: 126px; transition: background .25s; }
.benefits article:hover { background: rgba(255,255,255,.5); }
.line-icon { width: 46px; height: 46px; border-color: rgba(185,144,98,.55); background: rgba(255,255,255,.42); }
.benefits h2 { letter-spacing: -.015em; }

.section { padding-block: 128px; }
.section-heading { margin-bottom: 50px; }
.section-heading h2, .newsletter h2 { font-size: clamp(35px, 4.2vw, 54px); }
.section-heading > p { line-height: 2; }
.filters { gap: 8px; margin-bottom: 2px; }
.filter-button { padding: 9px 20px; background: rgba(255,255,255,.55); font-size: 11px; transition: .25s; }
.filter-button:hover, .filter-button.is-active { transform: translateY(-1px); }
.product-grid { gap: clamp(16px, 2.1vw, 28px); row-gap: 54px; }
.product-card { position: relative; }
.product-visual { border-radius: var(--radius); box-shadow: inset 0 0 0 1px rgba(33,25,19,.035); }
.product-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 -70px 70px -65px rgba(20,15,12,.24);
  pointer-events: none;
}
.product-visual img { transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s; }
.product-card:hover img { transform: scale(2.33); filter: saturate(.96) contrast(1.02); }
.product-badge { top: 15px; inset-inline-start: 15px; padding: 6px 12px; box-shadow: 0 5px 16px rgba(34,24,18,.07); letter-spacing: .04em; }
.quick-add {
  z-index: 3;
  inset-inline: 14px;
  bottom: 14px;
  min-height: 47px;
  border-radius: 999px;
  background: rgba(253,251,247,.92);
  box-shadow: 0 12px 32px rgba(35,25,18,.13);
  backdrop-filter: blur(12px);
}
.quick-add:hover { background: var(--charcoal); color: white; }
.product-info { padding: 18px 5px 0; }
.product-info h3 { margin-bottom: 7px; font-size: 14px; }
.product-info h3 a { transition: color .2s; }
.product-info h3 a:hover { color: #936a47; }
.product-price { font-size: 11px; }

.newsletter { position: relative; overflow: hidden; padding-block: 96px; background: #ead2d6; }
.newsletter::before, .newsletter::after {
  content: "";
  position: absolute;
  width: 330px;
  aspect-ratio: 1;
  border: 1px solid rgba(120,80,70,.12);
  border-radius: 50%;
}
.newsletter::before { inset-inline-start: -145px; top: -190px; }
.newsletter::after { inset-inline-end: -210px; bottom: -220px; }
.newsletter-inner { position: relative; z-index: 1; }
.newsletter-form { padding: 5px 0; border-bottom-color: rgba(21,21,21,.65); }
.newsletter-form input { min-height: 52px; }
.newsletter-form button { padding-inline: 14px; transition: color .2s; }
.newsletter-form button:hover { color: #8d6246; }

.site-footer { padding-top: 88px; background: #191715; }
.brand-footer { flex-direction: row; align-items: center; }
.brand-footer .brand-logo { width: 56px; height: 56px; }
.brand-footer strong { font-size: 28px; color: #fff; }
.footer-grid > div:not(:first-child) a { width: max-content; transition: color .2s, transform .2s; }
.footer-grid > div:not(:first-child) a:hover { color: #fff; transform: translateX(-3px); }
[dir="ltr"] .footer-grid > div:not(:first-child) a:hover { transform: translateX(3px); }
.footer-bottom { margin-top: 74px; }

.drawer-backdrop { background: rgba(26,20,16,.42); backdrop-filter: blur(4px); }
.cart-drawer { box-shadow: -25px 0 90px rgba(35,24,17,.18); }
.cart-header { height: 90px; }
.cart-header h2 { font-size: 24px; font-weight: 400; }
.cart-body { padding: 24px; }
.cart-item-image { border-radius: 10px; }
.quantity { overflow: hidden; border-radius: 999px; }
.cart-item-image img[src*="product-handmade"] { transform: scale(1.02); }
.toast { bottom: 30px; padding: 14px 25px; box-shadow: 0 16px 45px rgba(20,15,12,.2); }

.page-main { padding-block: 98px 125px; }
.page-main h1 { font-size: clamp(40px, 5vw, 66px); }
.form-card {
  border-color: var(--soft-line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-soft);
}
.auth-page { position: relative; background: linear-gradient(145deg, #f7f1e9, #f1dfe1); }
.auth-page::before {
  content: "";
  position: absolute;
  width: min(520px, 75vw);
  aspect-ratio: 1;
  border: 1px solid rgba(149,104,77,.13);
  border-radius: 50%;
}
.auth-card, .profile-card, .success-card { position: relative; z-index: 1; }
input, textarea, select {
  min-height: 50px;
  padding: 11px 14px;
  border-color: var(--line);
  border-radius: 10px;
  background-color: rgba(255,255,255,.88);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input:hover, textarea:hover, select:hover { border-color: rgba(185,144,98,.5); }
input:focus, textarea:focus, select:focus { background: #fff; }
.alert { border-radius: 10px; }
.bank-card { position: relative; overflow: hidden; padding: 30px; border-radius: 18px; background: linear-gradient(135deg, #171513, #3c3029); box-shadow: 0 20px 45px rgba(30,22,17,.2); }
.bank-card::after { content: "✦"; position: absolute; inset-inline-end: 26px; top: 21px; color: #d5b083; font-size: 20px; }
.order-card { border-color: var(--soft-line); border-radius: 14px; box-shadow: 0 8px 28px rgba(51,37,27,.045); transition: transform .25s, box-shadow .25s, border-color .25s; }
.order-card:hover { transform: translateY(-2px); border-color: rgba(185,144,98,.35); box-shadow: var(--shadow-soft); }
.status { padding: 6px 12px; }
.empty-state { border-radius: var(--radius); background: rgba(255,255,255,.55); }
.product-detail-image { position: relative; border-radius: var(--radius); box-shadow: var(--shadow); }
.product-detail-copy { padding: 20px 0; }
.detail-price { font-size: 16px; }
.story-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #eed8dc, #f5e5e4); }
.story-hero::after { content: ""; position: absolute; width: 450px; aspect-ratio: 1; inset-inline-end: -220px; top: -260px; border: 1px solid rgba(130,91,69,.13); border-radius: 50%; }
.story-image { border-radius: var(--radius); }
.contact-page { background: linear-gradient(155deg, var(--ivory), var(--paper) 65%); }

@keyframes heroReveal {
  from { opacity: .65; transform: scale(1.06); }
  to { opacity: 1; transform: scale(1.005); }
}
@keyframes heroRevealRtl {
  from { opacity: .65; transform: scaleX(-1) scale(1.06); }
  to { opacity: 1; transform: scaleX(-1) scale(1.005); }
}

@media (max-width: 900px) {
  .site-header, .site-header.is-scrolled { height: 74px; }
  .main-nav {
    top: 74px;
    gap: 4px;
    padding: 18px 24px 25px;
    background: rgba(253,251,247,.97);
    box-shadow: 0 20px 45px rgba(40,29,21,.08);
    backdrop-filter: blur(18px);
  }
  .main-nav a { padding: 11px 4px; }
  .main-nav a::after { bottom: 5px; }
  .cart-button { padding: 7px; }
  [dir="rtl"] .cart-button { padding: 7px; }
  .cart-label { display: none; }
  .hero-copy { width: 58%; }
}

@media (max-width: 620px) {
  .site-header, .site-header.is-scrolled { height: 69px; }
  .main-nav { top: 69px; }
  .header-inner { gap: 10px; }
  .brand { gap: 7px; }
  .brand-logo { width: 40px; height: 40px; }
  .brand strong { font-size: 18px; }
  .brand small { font-size: 6px; letter-spacing: .16em; }
  .hero { min-height: 690px; }
  .hero::before { inset: 12px; }
  .hero-content { min-height: 690px; }
  .hero-copy { padding-bottom: 68px; }
  .hero h1, html[lang="fa"] .hero h1 { font-size: 41px; }
  .hero-actions { gap: 20px; }
  .section { padding-block: 86px; }
  .product-grid { row-gap: 38px; }
  .product-visual { border-radius: 13px; }
  .product-info { padding: 13px 2px 0; }
  .quick-add { min-height: 41px; border-radius: 9px; }
  .newsletter { padding-block: 72px; }
  .page-main { padding-block: 72px 92px; }
  .page-main h1 { font-size: clamp(36px, 11vw, 49px); }
  .form-card { border-radius: 14px; }
  .product-detail-image { border-radius: 14px; }
}
