:root {
  --brand: #7b243f; --brand-dark: #561629; --cream: #fbf6f0; --paper: #fffdfa;
  --ink: #24191d; --muted: #74686c; --line: #eadfe1; --gold: #b58b43;
  --radius: 22px; --shadow: 0 16px 48px rgba(62, 27, 38, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Tahoma, Arial, sans-serif; line-height: 1.75; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(1040px, calc(100% - 40px)); }
.announcement { background: var(--brand); color: #fff; text-align: center; padding: 7px 20px; font-size: 13px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,253,250,.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-row { height: 82px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 205px; }
.brand img, .brand-mark { width: 48px; height: 48px; border-radius: 16px; object-fit: cover; }
.brand-mark { display: grid; place-items: center; background: var(--brand); color: #fff; font: 28px Georgia, serif; }
.brand span { display: flex; flex-direction: column; line-height: 1.25; }
.brand strong { font-size: 21px; }
.brand small { font-size: 10px; color: var(--muted); margin-top: 5px; }
.header-search { flex: 1; display: flex; border: 1px solid var(--line); background: #fff; border-radius: 16px; overflow: hidden; }
.header-search input { border: 0; background: transparent; padding: 12px 18px; outline: 0; width: 100%; }
.header-search button { border: 0; background: transparent; padding: 0 18px; font-size: 25px; color: var(--brand); cursor: pointer; }
.search-toggle { display: none; border: 0; background: transparent; color: var(--brand); font-size: 25px; cursor: pointer; }
.mobile-search { display: none; padding-bottom: 12px; gap: 8px; }
.mobile-search input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; outline: 0; }
.mobile-search button { border: 0; border-radius: 12px; background: var(--brand); color: #fff; padding: 8px 16px; }
.account-link { color: var(--brand); font-size: 13px; font-weight: 800; white-space: nowrap; }
.cart-link { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.cart-link b { display: grid; place-items: center; width: 25px; height: 25px; background: var(--brand); color: #fff; border-radius: 50%; font-size: 12px; }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 26px; }
.nav { border-top: 1px solid #f4eaec; }
.nav-inner { min-height: 46px; display: flex; align-items: center; gap: 30px; font-size: 14px; }
.nav a:hover { color: var(--brand); }
.messages { position: relative; z-index: 60; }
.message { margin: 14px 0 -2px; padding: 12px 16px; border-radius: 12px; background: #f2eee9; }
.message.success { background: #e8f7ed; color: #1f6a37; }
.message.error { background: #fdebed; color: #9b2032; }
.message.warning { background: #fff2d6; color: #795300; }
.hero { overflow: hidden; background: radial-gradient(circle at 15% 0, #f6dfe3, transparent 37%), var(--cream); }
.hero-grid { min-height: 620px; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 60px; padding-block: 62px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: inline-block; color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: .04em; margin-bottom: 10px; }
.hero h1 { font-size: clamp(46px, 6vw, 78px); line-height: 1.12; margin: 0 0 22px; letter-spacing: -.035em; }
.hero h1 em { font-family: Georgia, serif; font-style: italic; color: var(--brand); }
.hero-copy > p { font-size: 18px; color: var(--muted); max-width: 560px; margin: 0 0 28px; }
.hero-actions { display: flex; align-items: center; gap: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 14px; padding: 13px 22px; font-weight: 800; cursor: pointer; transition: .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 26px rgba(123,36,63,.23); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: #f5ebed; color: var(--brand); }
.btn-disabled { background: #eee; color: #999; }
.btn-block { width: 100%; }
.text-link { color: var(--brand); font-weight: 800; }
.hero-points { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 34px; font-size: 12px; color: var(--muted); }
.hero-art { position: relative; min-height: 470px; }
.hero-art::before { content: ""; position: absolute; inset: 25px -30px -35px 45px; border: 1px solid rgba(123,36,63,.18); border-radius: 48% 48% 20% 20%; transform: rotate(3deg); }
.hero-art img { position: relative; width: 100%; height: 500px; object-fit: cover; border-radius: 48% 48% 22px 22px; box-shadow: var(--shadow); }
.floating-note { position: absolute; left: -28px; bottom: 35px; background: #fff; padding: 16px 20px; border-radius: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.floating-note b { color: var(--brand); }
.floating-note small { color: var(--muted); }
.section { padding: 88px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 30px; }
.section-head h2 { font-size: 34px; line-height: 1.2; margin: 0; }
.section-head > a { color: var(--brand); font-weight: 700; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.category-card { border: 1px solid var(--line); border-radius: var(--radius); min-height: 190px; padding: 26px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: .25s; }
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.category-card img { width: 92px; height: 92px; object-fit: cover; border-radius: 50%; margin-bottom: 13px; }
.category-icon { width: 82px; height: 82px; display: grid; place-items: center; border-radius: 50%; background: var(--cream); color: var(--gold); font-size: 31px; margin-bottom: 15px; }
.category-card span { font-size: 18px; font-weight: 800; }
.category-card small { color: var(--muted); }
.featured-section { background: #faf6f3; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .25s; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.product-image { height: 285px; display: block; position: relative; background: #f6f1ed; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: .45s; }
.product-card:hover .product-image img { transform: scale(1.035); }
.image-placeholder { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 7px; color: var(--gold); background: radial-gradient(circle, #fff 0, #f6ede7 68%); }
.image-placeholder span { font-size: 45px; }
.image-placeholder small { color: var(--muted); }
.sale-badge { position: absolute; top: 14px; right: 14px; background: var(--brand); color: #fff; padding: 5px 10px; border-radius: 999px; font-size: 11px; }
.product-body { padding: 18px; }
.product-body > small { color: var(--muted); }
.product-body h3 { font-size: 17px; min-height: 55px; margin: 3px 0 12px; }
.price-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.price-row strong { font-size: 17px; color: var(--brand); }
.price-row strong span, .price-row del { font-size: 11px; }
.price-row del { color: #aaa; }
.benefits { padding: 30px 0; background: var(--brand); color: #fff; }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefits-grid div { display: flex; flex-direction: column; border-left: 1px solid rgba(255,255,255,.2); }
.benefits-grid div:last-child { border-left: 0; }
.benefits-grid b { font-size: 16px; }
.benefits-grid span { font-size: 12px; opacity: .75; }
.footer { padding: 64px 0 20px; background: #24191d; color: #eee; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 50px; }
.footer h3 { font-size: 15px; color: #fff; }
.footer a, .footer span { display: block; margin: 7px 0; color: #c7bbbf; font-size: 14px; }
.footer-brand { font-size: 28px; font-weight: 800; }
.footer p { color: #d5c9cc; }
.footer .muted { color: #9f9296; font-size: 13px; }
.trust-placeholder { border: 1px dashed #65555a; border-radius: 14px; padding: 18px; text-align: center; color: #9f9296; font-size: 12px; }
.copyright { border-top: 1px solid #3e3035; margin-top: 40px; padding-top: 18px; font-size: 12px; color: #93878b; }
.catalog-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 35px; }
.catalog-head h1, .page-title h1 { font-size: 42px; margin: 0; }
.catalog-head p { color: var(--muted); margin: 3px 0; }
.sort-form { display: flex; align-items: center; gap: 10px; }
.sort-form select, .form-control { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 11px 13px; outline: 0; }
.sort-form select:focus, .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(123,36,63,.09); }
.breadcrumb { display: flex; gap: 10px; color: var(--muted); font-size: 13px; margin-bottom: 25px; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 65px; }
.detail-main { height: 590px; border-radius: 30px; overflow: hidden; background: #f7f1ec; }
.detail-main img { width: 100%; height: 100%; object-fit: cover; }
.image-placeholder.large { height: 100%; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumbs img { width: 80px; height: 80px; border-radius: 13px; object-fit: cover; border: 1px solid var(--line); }
.detail-copy { padding-top: 25px; }
.detail-copy h1 { font-size: 40px; line-height: 1.25; margin: 0 0 10px; }
.sku { font-size: 12px; color: var(--muted); }
.detail-price { display: flex; align-items: center; gap: 18px; margin: 26px 0; }
.detail-price strong { font-size: 30px; color: var(--brand); }
.detail-price small { font-size: 13px; }
.detail-price del { color: #aaa; }
.description { color: var(--muted); border-top: 1px solid var(--line); padding-top: 22px; }
.stock { margin: 22px 0; font-weight: 700; }
.in-stock { color: #26743c; } .out-stock { color: #a63b48; }
.buy-box { display: flex; gap: 12px; }
.buy-box label { display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); padding: 8px 13px; border-radius: 14px; }
.buy-box input { width: 55px; border: 0; outline: 0; }
.buy-box .btn { flex: 1; }
.detail-assurances { display: grid; gap: 8px; margin-top: 25px; color: var(--muted); font-size: 13px; }
.related { margin-top: 90px; }
.checkout-layout { display: grid; grid-template-columns: 1.65fr .85fr; gap: 28px; align-items: start; }
.page-title { margin-bottom: 28px; }
.cart-items, .checkout-form { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 24px; }
.cart-item { display: grid; grid-template-columns: 86px 1fr auto auto; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item img, .cart-placeholder { width: 86px; height: 86px; border-radius: 14px; object-fit: cover; }
.cart-placeholder { display: grid; place-items: center; background: var(--cream); color: var(--gold); font-size: 28px; }
.cart-item > div:nth-child(2) { display: flex; flex-direction: column; }
.cart-item small { color: var(--muted); }
.cart-item form { display: flex; flex-direction: column; align-items: center; }
.cart-item input { width: 65px; border: 1px solid var(--line); border-radius: 10px; padding: 7px; }
.text-button { border: 0; background: transparent; color: var(--brand); font-size: 11px; cursor: pointer; }
.summary { position: sticky; top: 150px; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; box-shadow: var(--shadow); }
.summary h2, .checkout-form h2 { margin-top: 0; }
.summary > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; color: var(--muted); font-size: 13px; }
.summary > div b { color: var(--ink); }
.summary-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 18px !important; font-size: 15px !important; }
.summary-total b { color: var(--brand) !important; font-size: 18px; }
.secure-note { display: block; text-align: center; color: var(--muted); margin-top: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; }
.field select { width: 100%; }
.error { color: #a82538; }
.form-errors { background: #fdebed; color: #8d2334; padding: 12px; border-radius: 12px; }
.empty-state { grid-column: 1 / -1; border: 1px dashed var(--line); border-radius: var(--radius); padding: 45px; text-align: center; color: var(--muted); }
.large-empty { display: flex; flex-direction: column; align-items: center; }
.large-empty > span { font-size: 55px; }
.large-empty h2 { margin-bottom: 0; color: var(--ink); }
.order-box { max-width: 730px !important; text-align: center; }
.status-icon { width: 84px; height: 84px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; background: #fff1d4; color: #99701d; font-size: 36px; }
.status-icon.success { background: #e3f7e9; color: #26743c; }
.order-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 30px 0; }
.order-meta div { border: 1px solid var(--line); border-radius: 15px; padding: 14px; display: flex; flex-direction: column; }
.order-meta span { font-size: 11px; color: var(--muted); }
.receipt-box { margin: 35px 0; padding: 25px; text-align: right; background: var(--cream); border-radius: var(--radius); }
.card-number { background: #fff; border: 1px solid var(--line); padding: 18px; border-radius: 15px; display: grid; grid-template-columns: 1fr auto; align-items: center; margin: 15px 0; }
.card-number span { font-size: 22px; letter-spacing: .08em; }
.card-number small { grid-column: 1; }
.card-number button { grid-column: 2; grid-row: 1 / 3; border: 0; background: var(--brand); color: #fff; border-radius: 10px; padding: 9px 12px; cursor: pointer; }
.upload-box { display: flex; align-items: center; gap: 12px; padding: 20px; background: #fff; border: 1px dashed var(--brand); border-radius: 14px; margin-bottom: 12px; }
.auth-shell { display: grid; place-items: center; }
.auth-card { width: min(100%, 510px); border: 1px solid var(--line); border-radius: 28px; background: #fff; padding: 34px; box-shadow: var(--shadow); }
.auth-card h1 { margin: 0 0 8px; font-size: 32px; }
.auth-card > p { color: var(--muted); }
.auth-card form { display: grid; gap: 14px; margin-top: 24px; }
.auth-card input { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; outline: 0; }
.auth-card input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(123,36,63,.09); }
.auth-card.center { text-align: center; }
.auth-foot { text-align: center; margin: 20px 0 0; }
.auth-foot a, .auth-links a { color: var(--brand); font-weight: 800; }
.auth-links { display: flex; justify-content: space-between; gap: 15px; margin-top: 20px; font-size: 13px; }
.account-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.account-head h1 { margin: 0; font-size: 40px; }
.account-head p { color: var(--muted); margin: 3px 0 0; }
.my-order-card { display: grid; grid-template-columns: 1fr auto; gap: 10px 25px; border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 20px; margin-bottom: 14px; transition: .2s; }
.my-order-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.my-order-card > div { display: flex; flex-direction: column; gap: 5px; }
.my-order-card > div:nth-child(2) { align-items: end; }
.my-order-card span, .my-order-card small { color: var(--muted); font-size: 12px; }
.my-order-card small { grid-column: 1 / -1; color: var(--brand); }
.order-status { width: fit-content; border-radius: 999px; padding: 3px 10px; background: #f2eee9; }
.status-review { background: #fff1d4; color: #8a651d !important; }
.status-paid, .status-processing { background: #e5f4ea; color: #23673a !important; }
.status-shipped { background: #e4effb; color: #205b95 !important; }
.status-cancelled { background: #fdebed; color: #9b2032 !important; }
.tracking-box { display: grid; gap: 10px; place-items: center; margin: 28px 0; padding: 24px; border: 1px solid #cce0f5; border-radius: 20px; background: #f1f7fd; }
.tracking-box span { color: var(--muted); font-size: 13px; }
.tracking-box strong { direction: ltr; font-size: 25px; letter-spacing: .06em; }
.order-timeline { margin: 32px 0; text-align: right; }
.order-timeline h2 { font-size: 21px; }
.timeline-item { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding-bottom: 22px; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; right: 7px; top: 15px; bottom: -1px; width: 2px; background: var(--line); }
.timeline-item i { position: relative; z-index: 1; width: 16px; height: 16px; margin-top: 5px; border-radius: 50%; background: var(--brand); border: 4px solid #f4e8ec; }
.timeline-item div { display: flex; flex-direction: column; }
.timeline-item small { color: var(--muted); }
.timeline-item p { margin: 3px 0 0; color: var(--muted); }
.prose { max-width: 800px; }
.prose h1 { font-size: 42px; }
.prose p, .prose li { color: var(--muted); font-size: 16px; }
.prose li { margin: 9px 0; }
@media (max-width: 900px) {
  .header-search { display: none; } .search-toggle { display: block; margin-right: auto; } .search-open .mobile-search { display: flex; } .header-row { height: 70px; } .menu-toggle { display: block; }
  .cart-link span { display: none; } .nav { display: none; } .menu-open .nav { display: block; }
  .nav-inner { height: auto; padding: 15px 0; display: grid; gap: 12px; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; padding-block: 50px; }
  .hero-art { min-height: 390px; } .hero-art img { height: 410px; }
  .category-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail { grid-template-columns: 1fr; gap: 20px; } .detail-main { height: 480px; }
  .checkout-layout { grid-template-columns: 1fr; } .summary { position: static; }
  .order-meta { grid-template-columns: 1fr; } .product-image { height: 320px; }
}
@media (max-width: 600px) {
  .container, .narrow { width: min(calc(100% - 24px), 1180px); } .announcement { font-size: 11px; }
  .brand { min-width: 0; } .brand small { display: none; } .brand strong { font-size: 17px; } .account-link { font-size: 0; } .account-link::after { content: "حساب"; font-size: 12px; } .hero h1 { font-size: 46px; }
  .hero-grid { gap: 28px; } .hero-art { min-height: 320px; } .hero-art img { height: 340px; }
  .floating-note { left: 10px; bottom: 15px; } .hero-actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .hero-points { gap: 10px; } .section { padding: 58px 0; } .section-head { align-items: start; }
  .section-head h2 { font-size: 28px; } .category-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .category-card { min-height: 150px; padding: 16px; } .category-icon { width: 65px; height: 65px; }
  .product-image { height: 190px; } .product-body { padding: 12px; } .product-body h3 { font-size: 14px; min-height: 48px; }
  .price-row { align-items: start; flex-direction: column; } .benefits-grid { grid-template-columns: 1fr 1fr; }
  .benefits-grid div { border-left: 0; } .footer-grid { grid-template-columns: 1fr; gap: 25px; }
  .catalog-head { align-items: start; flex-direction: column; } .catalog-head h1, .page-title h1 { font-size: 34px; }
  .sort-form { margin-top: 15px; } .detail-main { height: 390px; } .detail-copy h1 { font-size: 32px; }
  .buy-box { flex-direction: column; } .cart-items { padding: 14px; }
  .cart-item { grid-template-columns: 68px 1fr auto; } .cart-item img, .cart-placeholder { width: 68px; height: 68px; }
  .cart-item form { grid-column: 2; } .cart-item > strong { grid-column: 3; grid-row: 1; }
  .form-grid { grid-template-columns: 1fr; } .field.full { grid-column: 1; }
  .card-number { grid-template-columns: 1fr; } .card-number button { grid-row: auto; grid-column: 1; margin-top: 12px; }
  .order-box { padding-inline: 18px; } .prose h1 { font-size: 34px; } .auth-card { padding: 24px 18px; } .auth-links, .account-head { align-items: stretch; flex-direction: column; } .my-order-card { grid-template-columns: 1fr; } .my-order-card > div:nth-child(2) { align-items: start; } .my-order-card small { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* ===== Storefront V2: mobile-first navigation, slider and merchandising ===== */
.header-icon-btn svg, .header-action svg, .mobile-bottom-nav svg, .header-search svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header-action { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; color: var(--ink); }
.header-action:hover { background: var(--cream); color: var(--brand); }
.header-action > span:last-child { font-size: 12px; font-weight: 800; }
.cart-icon-wrap { position: relative; display: grid; place-items: center; }
.cart-link b { position: absolute; top: -10px; left: -10px; width: 20px; height: 20px; font-size: 10px; border: 2px solid #fff; }
.header-search button svg { width: 22px; height: 22px; }
.header-icon-btn { background: transparent; border: 0; color: var(--ink); }

.hero-slider { position: relative; height: min(620px, 67vw); min-height: 470px; overflow: hidden; background: #2a2023; }
.hero-track, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; visibility: hidden; transition: opacity .65s ease, visibility .65s ease; }
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.hero-slide picture, .hero-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,12,15,.12), rgba(20,12,15,.68)); }
.hero-slide-copy { position: relative; z-index: 3; height: 100%; display: flex; justify-content: center; align-items: flex-start; flex-direction: column; color: #fff; }
.hero-slide-copy h1 { max-width: 720px; margin: 5px 0 16px; font-size: clamp(44px,6vw,78px); line-height: 1.15; text-shadow: 0 3px 24px rgba(0,0,0,.18); }
.hero-slide-copy p { max-width: 610px; margin: 0 0 24px; font-size: 17px; color: rgba(255,255,255,.9); }
.eyebrow.light { color: #fff; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.25); padding: 5px 12px; border-radius: 999px; }
.hero-btn { background: #fff; color: var(--ink); }
.hero-btn:hover { background: var(--brand); color: #fff; }
.slider-arrow { position: absolute; z-index: 5; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(8px); font-size: 30px; cursor: pointer; }
.slider-arrow.prev { left: 26px; } .slider-arrow.next { right: 26px; }
.slider-dots { position: absolute; z-index: 5; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; }
.slider-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.5); transition: .2s; }
.slider-dots button.active { width: 28px; background: #fff; }

.category-scroll { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.category-pill-card { min-width: 0; border-radius: 20px; padding: 16px 10px; text-align: center; background: #fff; border: 1px solid var(--line); transition: .2s; }
.category-pill-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.category-pill-card img, .category-pill-card .category-icon { margin: 0 auto 10px; width: 92px; height: 92px; border-radius: 50%; object-fit: cover; }
.category-pill-card strong, .category-pill-card small { display: block; }
.category-pill-card strong { font-size: 14px; } .category-pill-card small { color: var(--muted); font-size: 10px; }

.amazing-section { padding-top: 45px; padding-bottom: 45px; }
.amazing-shell { padding: 24px; border-radius: 30px; background: linear-gradient(135deg, var(--brand), #4f182b); display: grid; grid-template-columns: 180px 1fr; gap: 20px; overflow: hidden; }
.amazing-head { color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; }
.amazing-head > div { display: flex; flex-direction: column; }
.amazing-head > div > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: #fff; color: var(--brand); font-size: 24px; font-weight: 900; margin-bottom: 14px; }
.amazing-head strong { font-size: 24px; line-height: 1.3; }
.amazing-head small { color: rgba(255,255,255,.7); }
.amazing-head > a { margin-top: 16px; font-size: 12px; border-bottom: 1px solid rgba(255,255,255,.4); }
.horizontal-products { display: flex; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 3px; }
.horizontal-product-item { min-width: 225px; max-width: 225px; scroll-snap-align: start; }
.horizontal-product-item .product-image { height: 220px; }

.coupon-box { margin-top: 22px; border-radius: 18px; background: var(--cream); padding: 18px; }
.coupon-box > div:first-child { display: flex; flex-direction: column; margin-bottom: 12px; }
.coupon-box small { color: var(--muted); }
.coupon-form { display: flex; flex-direction: row !important; align-items: stretch !important; gap: 8px; }
.coupon-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; direction: ltr; text-transform: uppercase; }
.active-coupon { display: flex; align-items: center; justify-content: space-between; border: 1px dashed var(--brand); background: #fff; color: var(--brand); padding: 10px 13px; border-radius: 12px; font-weight: 800; }
.active-coupon form { margin: 0; }
.active-coupon button { border: 0; background: transparent; color: #a82538; cursor: pointer; }
.discount-row b { color: #16803b !important; }
.form-intro { color: var(--muted); margin-top: -8px; margin-bottom: 24px; }
.content-card { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 34px; }
.content-body { font-size: 16px; color: var(--muted); }
.contact-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.contact-chips a, .address-box { padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--cream); }
.address-box { margin-top: 25px; }
.mobile-bottom-nav { display: none; }

@media (max-width: 900px) {
  .header-row { gap: 10px; }
  .menu-toggle { order: 5; }
  .brand { order: 4; margin-left: auto; }
  .search-toggle { order: 3; margin-right: 0; }
  .account-link { order: 2; }
  .cart-link { order: 1; }
  .header-action { width: 46px; height: 46px; }
  .header-action > span:last-child { display: none; }
  .category-scroll { grid-template-columns: repeat(4,1fr); }
  .hero-slider { height: 540px; }
}

@media (max-width: 600px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); background: #fffdfa; }
  .announcement { min-height: 34px; display: grid; place-items: center; padding: 5px 12px; line-height: 1.4; }
  .site-header { top: 0; background: rgba(255,255,255,.97); }
  .header-row { width: 100%; padding: 0 12px; height: 66px; gap: 4px; border-bottom: 0; }
  .brand { min-width: 0; flex: 1; justify-content: flex-start; gap: 8px; margin: 0; }
  .brand img, .brand-mark { width: 42px; height: 42px; border-radius: 13px; flex: 0 0 42px; }
  .brand > span { max-width: 110px; overflow: hidden; }
  .brand strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; }
  .menu-toggle, .search-toggle, .account-link, .cart-link { width: 42px; height: 42px; min-width: 42px; border-radius: 12px; display: grid; place-items: center; padding: 0; }
  .menu-toggle { display: grid; }
  .account-link::after { content: none !important; }
  .cart-link b { top: -8px; left: -9px; }
  .mobile-search { width: calc(100% - 24px); padding: 0 0 12px; }
  .mobile-search input { height: 45px; background: #fff; }
  .nav { position: fixed; top: 100px; right: 12px; left: 12px; z-index: 80; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
  .nav-inner { width: 100%; max-height: 55vh; overflow-y: auto; padding: 12px; grid-template-columns: 1fr 1fr; }
  .nav-inner a { padding: 11px 10px; border-radius: 11px; background: var(--cream); font-size: 12px; text-align: center; }

  .mobile-bottom-nav { position: fixed; z-index: 100; right: 0; left: 0; bottom: 0; height: calc(68px + env(safe-area-inset-bottom)); padding: 7px 8px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5,1fr); background: rgba(255,255,255,.97); backdrop-filter: blur(16px); border-top: 1px solid var(--line); box-shadow: 0 -8px 30px rgba(40,20,27,.08); }
  .mobile-bottom-nav a, .mobile-bottom-nav button { position: relative; border: 0; background: transparent; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: inherit; }
  .mobile-bottom-nav svg { width: 23px; height: 23px; }
  .mobile-bottom-nav span:last-child { font-size: 10px; font-weight: 800; }
  .mobile-cart-icon { position: relative; display: grid; place-items: center; }
  .mobile-cart-icon b { position: absolute; top: -8px; left: -11px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 9px; border: 2px solid #fff; }

  .hero-slider { height: 475px; min-height: 475px; }
  .hero-overlay { background: linear-gradient(0deg, rgba(25,15,19,.76), rgba(25,15,19,.08) 70%); }
  .hero-slide-copy { justify-content: flex-end; padding-bottom: 54px; align-items: flex-start; }
  .hero-slide-copy h1 { font-size: 37px; max-width: 95%; margin-bottom: 10px; }
  .hero-slide-copy p { font-size: 13px; line-height: 1.8; max-width: 90%; margin-bottom: 16px; }
  .hero-btn { padding: 11px 18px; font-size: 12px; }
  .slider-arrow { display: none; }
  .slider-dots { bottom: 17px; }

  .section { padding: 44px 0; }
  .section-head { margin-bottom: 20px; }
  .section-head h2 { font-size: 24px; }
  .section-head > a { font-size: 11px; }
  .category-scroll { display: flex; overflow-x: auto; gap: 11px; margin-left: -12px; padding-left: 12px; scrollbar-width: none; }
  .category-scroll::-webkit-scrollbar { display: none; }
  .category-pill-card { min-width: 110px; padding: 12px 8px; border-radius: 17px; }
  .category-pill-card img, .category-pill-card .category-icon { width: 72px; height: 72px; }
  .category-pill-card strong { font-size: 12px; }

  .amazing-section { padding: 20px 0 36px; }
  .amazing-shell { width: calc(100% - 16px); padding: 16px; border-radius: 24px; grid-template-columns: 1fr; gap: 14px; }
  .amazing-head { flex-direction: row; align-items: center; justify-content: space-between; }
  .amazing-head > div { display: grid; grid-template-columns: 42px 1fr; column-gap: 9px; }
  .amazing-head > div > span { grid-row: 1 / 3; width: 42px; height: 42px; margin: 0; }
  .amazing-head strong { font-size: 17px; }
  .amazing-head small { font-size: 10px; }
  .amazing-head > a { margin: 0; font-size: 10px; }
  .horizontal-product-item { min-width: 168px; max-width: 168px; }
  .horizontal-product-item .product-image { height: 170px; }

  .product-grid { gap: 9px; }
  .product-card { border-radius: 17px; }
  .product-image { height: 180px; }
  .product-body { padding: 11px; }
  .product-body > small { font-size: 9px; }
  .product-body h3 { font-size: 12px; min-height: 42px; line-height: 1.7; }
  .price-row strong { font-size: 13px; }

  .checkout-page .page-title h1, .page-title h1 { font-size: 27px; line-height: 1.4; }
  .checkout-form, .cart-items, .summary { border-radius: 20px; padding: 16px; }
  .field label { font-size: 13px; color: var(--ink); }
  .form-control, .field input, .field textarea, .field select { min-height: 48px; font-size: 16px; border-radius: 13px; background: #fff; }
  .field textarea { min-height: 95px; }
  .form-intro { font-size: 12px; }
  .cart-item { grid-template-columns: 64px 1fr; gap: 10px; position: relative; padding: 14px 0; }
  .cart-item img, .cart-placeholder { width: 64px; height: 64px; }
  .cart-item form { grid-column: 2; align-items: flex-start; flex-direction: row; gap: 7px; }
  .cart-item > strong { grid-column: 2; grid-row: auto; color: var(--brand); font-size: 13px; }
  .coupon-form { flex-direction: column !important; }
  .coupon-form .btn { width: 100%; }
  .summary { box-shadow: none; }
  .content-card { padding: 22px 18px; border-radius: 20px; }
  .content-card h1 { font-size: 30px; }
  .footer { padding-bottom: 30px; }
}

/* ===== Storefront V3: footer socials, smart auth, cleaner mobile header ===== */
.hero-slider { touch-action: pan-y; user-select: none; -webkit-user-select: none; }

.footer {
  background: #fff;
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding: 54px 0 22px;
}
.footer-modern {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1.4fr .7fr;
  align-items: center;
  gap: 34px;
}
.footer-brand-block p { margin: 5px 0; color: var(--muted); }
.footer-brand-block .muted { color: #9b9195; font-size: 12px; }
.footer-page-links {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 10px 18px;
}
.footer-page-links a {
  display: inline-flex;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.footer-page-links a:hover { color: var(--brand); border-bottom-color: var(--brand); }
.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
}
.social-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  min-width: 50px;
}
.social-links img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: #f7f5f5;
  padding: 4px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.social-links a:hover img { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(40,20,27,.1); }
.trust { display: flex; justify-content: center; align-items: center; min-height: 120px; }
.trust img { max-width: 120px; max-height: 120px; object-fit: contain; }
.trust-placeholder-empty {
  width: 120px;
  height: 120px;
  border: 0;
  padding: 0;
  background: transparent;
}
.copyright {
  border-top: 1px solid var(--line);
  color: #8f8589;
  text-align: center;
  margin-top: 38px;
  padding-top: 18px;
}

.smart-auth-card { max-width: 530px; }
.account-email-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
  direction: ltr;
}
.account-email-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.account-email-chip a { flex: 0 0 auto; color: var(--brand); font-size: 11px; font-weight: 800; direction: rtl; }
.auth-links.single { justify-content: center; }
.field-help { color: var(--muted); font-size: 10px; line-height: 1.7; }
.field-help ul { margin: 4px 0; padding-right: 18px; }

@media (max-width: 900px) {
  /* جستجو و حساب در موبایل فقط در نوار پایین هستند. */
  .account-link { display: none !important; }
  .header-row { gap: 8px; }
  .brand { margin-left: auto; }
  .footer-modern { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .header-row { justify-content: space-between; }
  .brand { order: 2; flex: 1; margin: 0; }
  .cart-link { order: 1; }
  .menu-toggle { order: 3; }
  .footer { padding: 40px 0 20px; }
  .footer-modern { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .footer-brand-block { display: flex; flex-direction: column; align-items: center; }
  .footer-page-links { justify-content: center; gap: 9px 16px; }
  .footer-page-links a { font-size: 12px; }
  .social-links { gap: 13px; }
  .social-links img { width: 46px; height: 46px; border-radius: 14px; }
  .trust { min-height: 115px; }
  .trust-placeholder-empty { width: 110px; height: 110px; }
  .copyright { margin-top: 26px; font-size: 10px; line-height: 1.8; }
  .smart-auth-card { padding: 24px 18px; }
  .smart-auth-card h1 { font-size: 27px; }
  .smart-auth-card > p { font-size: 12px; }
}
.social-links span { display: block; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.4; }

/* ===== Storefront V4: floating account dialog ===== */
.account-open-btn { border: 0; background: transparent; cursor: pointer; font: inherit; }
.account-dialog {
  width: min(92vw, 560px);
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(60, 35, 44, .10);
  border-radius: 30px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(30, 15, 21, .25);
  overflow: visible;
}
.account-dialog::backdrop {
  background: rgba(255, 255, 255, .60);
  backdrop-filter: blur(10px) saturate(.78);
  -webkit-backdrop-filter: blur(10px) saturate(.78);
}
.account-dialog-card { padding: 46px 46px 42px; text-align: center; }
.account-dialog-card h2 { margin: 0 0 12px; font-size: 31px; line-height: 1.45; }
.account-dialog-card > p { margin: 0 0 28px; color: var(--muted); font-size: 15px; }
.account-dialog-form { display: grid; gap: 18px; }
.account-dialog-form input[type="email"] {
  width: 100%;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 0 18px;
  outline: 0;
  direction: ltr;
  text-align: left;
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.account-dialog-form input[type="email"]:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(123,36,63,.08); }
.account-dialog-form .btn { min-height: 58px; border-radius: 18px; font-size: 16px; }
.account-dialog-close {
  position: absolute;
  top: -18px;
  left: -10px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #edf0f3;
  color: #20252b;
  font-size: 37px;
  line-height: 1;
  font-weight: 300;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(30, 30, 30, .08);
}
@media (max-width: 600px) {
  .account-dialog { width: calc(100vw - 32px); border-radius: 28px; }
  .account-dialog-card { padding: 42px 24px 30px; }
  .account-dialog-card h2 { font-size: 27px; }
  .account-dialog-card > p { font-size: 14px; margin-bottom: 24px; }
  .account-dialog-form input[type="email"] { min-height: 60px; border-radius: 17px; }
  .account-dialog-form .btn { min-height: 56px; }
  .account-dialog-close { top: -17px; left: -6px; width: 50px; height: 50px; font-size: 34px; }
}
.auth-minimal-card { text-align: center; }
.auth-minimal-card h1 { margin-bottom: 10px; }
.auth-minimal-card > p { margin: 0 0 22px; color: var(--muted); }
.auth-minimal-card .field { text-align: right; }
.auth-minimal-card .field input { min-height: 58px; font-size: 16px; }
.auth-current-email { direction: ltr; font-weight: 700; }
.auth-minimal-card .auth-links { justify-content: center; flex-wrap: wrap; gap: 12px 22px; }
