@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

:root { --ink: #17221f; --muted: #71807b; --paper: #f8f7f2; --surface: #fff; --line: #e4e9e3; --accent: #e85d3f; --mint: #d9efe5; --yellow: #f5d36a; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Vazirmatn, Tahoma, sans-serif; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar { display: flex; align-items: center; gap: 24px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.2rem; font-weight: 800; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px 4px 12px 4px; background: var(--accent); color: white; }
.search { display: flex; flex: 1; max-width: 620px; margin-inline: auto; background: #f2f5f1; border: 1px solid transparent; border-radius: 14px; transition: .2s; }
.search:focus-within { border-color: var(--accent); background: white; }
.search input { min-width: 0; flex: 1; padding: 12px 16px; border: 0; outline: 0; background: transparent; font: inherit; }
.search button { width: 48px; border: 0; background: transparent; color: var(--accent); font-size: 1.6rem; cursor: pointer; }
.header-actions { display: flex; align-items: center; gap: 16px; font-size: .9rem; white-space: nowrap; }
.cart-link { padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; }
.cart-link span { color: var(--accent); font-weight: 800; }
.category-bar { overflow-x: auto; border-top: 1px solid #f2f3ef; }
.category-bar-inner { display: flex; align-items: center; gap: 24px; min-height: 46px; white-space: nowrap; color: var(--muted); font-size: .88rem; }
.category-label { color: var(--ink); font-weight: 700; }
.category-bar a:hover, .text-link:hover { color: var(--accent); }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 390px; margin-top: 28px; overflow: hidden; border-radius: 24px; background: var(--mint); }
.hero-copy { align-self: center; padding: 48px; z-index: 1; }
.eyebrow { display: block; color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .04em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(2rem, 5vw, 4.25rem); line-height: 1.18; letter-spacing: -.04em; }
h1 em { color: var(--accent); font-style: normal; }
.hero-copy p { max-width: 440px; margin-bottom: 28px; color: #52625c; }
.button { display: inline-flex; align-items: center; gap: 12px; padding: 11px 18px; border-radius: 11px; font-weight: 700; }
.button-primary { background: var(--ink); color: white; }
.hero-art { position: relative; min-height: 300px; background: var(--yellow); overflow: hidden; }
.hero-orbit { position: absolute; border: 2px solid rgba(23,34,31,.24); border-radius: 50%; transform: rotate(-25deg); }
.orbit-one { width: 390px; height: 210px; inset: 90px -20px auto auto; }
.orbit-two { width: 280px; height: 160px; inset: 125px 45px auto auto; }
.hero-note { position: absolute; top: 54px; right: 22%; display: grid; place-items: center; width: 126px; height: 126px; border-radius: 50%; background: var(--accent); color: white; text-align: center; transform: rotate(9deg); }
.hero-note strong { font-size: 1.65rem; }
.section-block { padding-block: 54px; }
.section-band { background: #edf5ee; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
h2 { margin: 3px 0 0; font-size: 1.7rem; letter-spacing: -.03em; }
.text-link { color: var(--accent); font-size: .9rem; font-weight: 700; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.category-tile { display: flex; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: transform .2s, box-shadow .2s; }
.category-tile:hover, .product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(23,34,31,.08); }
.category-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--mint); color: var(--accent); font-size: 1.2rem; font-weight: 800; }
.product-scroller { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: transform .2s, box-shadow .2s; }
.product-image { position: relative; display: grid; place-items: center; aspect-ratio: 1 / .86; background: #f1eee5; color: var(--accent); font-size: 4rem; font-weight: 800; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.discount-badge { position: absolute; top: 10px; right: 10px; padding: 2px 7px; border-radius: 6px; background: var(--accent); color: white; font-size: .72rem; }
.product-info { padding: 14px; }
.product-category, .stock-label { color: var(--muted); font-size: .73rem; }
.product-info h3 { min-height: 52px; margin: 5px 0 11px; font-size: .98rem; line-height: 1.55; }
.product-price { display: flex; align-items: baseline; gap: 5px; }
.product-price strong { font-size: 1.15rem; }
.product-price span { color: var(--muted); font-size: .72rem; }
.product-price del { color: var(--muted); font-size: .72rem; }
.stock-label { display: block; margin-top: 4px; color: #37906b; }
.stock-label.unavailable { color: var(--accent); }
.timer { padding: 6px 11px; border-radius: 8px; background: var(--ink); color: white; direction: ltr; font-variant-numeric: tabular-nums; }
.empty-state { grid-column: 1 / -1; padding: 28px; border: 1px dashed #cbd8cf; border-radius: 14px; color: var(--muted); text-align: center; }
.catalog-page { padding-block: 42px 70px; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.catalog-heading h1 { margin: 4px 0 0; font-size: clamp(2rem, 4vw, 3.2rem); }
.muted, .result-count { color: var(--muted); font-size: .86rem; }
.catalog-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; }
.filters-panel { position: sticky; top: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.filter-group { margin-bottom: 17px; }
.filter-group label { display: block; margin-bottom: 6px; font-size: .8rem; font-weight: 700; }
.filter-group input, .filter-group select, .catalog-toolbar select { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fcfdfb; font: inherit; font-size: .82rem; }
.price-filter div { display: flex; gap: 6px; }
.checkbox-label { display: flex; align-items: center; gap: 7px; margin-bottom: 17px; color: var(--muted); font-size: .78rem; }
.checkbox-label input { accent-color: var(--accent); }
.filter-submit { width: 100%; justify-content: center; border: 0; cursor: pointer; font: inherit; }
.clear-filters { display: block; margin-top: 10px; color: var(--accent); font-size: .76rem; text-align: center; }
.catalog-toolbar { display: flex; align-items: center; justify-content: end; gap: 9px; margin-bottom: 14px; }
.catalog-toolbar form { min-width: 150px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; color: var(--muted); font-size: .85rem; }
.pagination a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--accent); }
.detail-page { padding-block: 24px 70px; }
.breadcrumbs { display: flex; align-items: center; gap: 9px; margin-bottom: 22px; color: var(--muted); font-size: .8rem; overflow: hidden; white-space: nowrap; }
.breadcrumbs strong { overflow: hidden; color: var(--ink); text-overflow: ellipsis; }
.product-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 46px; align-items: start; }
.gallery-main { position: relative; display: grid; place-items: center; aspect-ratio: 1 / .86; overflow: hidden; border-radius: 20px; background: #f1eee5; color: var(--accent); font-size: 7rem; font-weight: 800; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 9px; margin-top: 12px; overflow-x: auto; }
.gallery-thumb { flex: 0 0 70px; padding: 3px; aspect-ratio: 1; border: 2px solid transparent; border-radius: 10px; background: var(--surface); cursor: pointer; }
.gallery-thumb.is-active { border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; border-radius: 6px; object-fit: cover; }
.product-detail-info { padding-top: 10px; }
.detail-meta { display: flex; gap: 8px; color: var(--accent); font-size: .8rem; font-weight: 700; }
.product-detail-info h1 { margin: 10px 0 4px; font-size: clamp(1.8rem, 4vw, 3rem); }
.detail-sku { color: var(--muted); font-size: .75rem; }
.detail-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; margin-block: 22px; }
.detail-price strong { font-size: 2rem; }
.detail-price span { color: var(--muted); font-size: .8rem; }
.detail-price del { width: 100%; color: var(--muted); font-size: .82rem; }
.detail-description { margin-bottom: 22px; color: #53635d; }
.variant-picker { margin: 0 0 20px; padding: 0; border: 0; }
.variant-picker legend { margin-bottom: 9px; font-weight: 700; }
.variant-picker > div { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-option input { position: absolute; opacity: 0; }
.variant-option span { display: block; padding: 7px 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: .84rem; cursor: pointer; }
.variant-option input:checked + span { border-color: var(--accent); color: var(--accent); background: #fff7f3; }
.variant-option input:disabled + span { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.stock-box { display: flex; align-items: center; gap: 7px; margin-bottom: 18px; color: #37906b; font-size: .85rem; }
.stock-box.is-unavailable { color: var(--accent); }
.stock-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.add-to-cart-button { border: 0; cursor: pointer; font: inherit; }
.add-to-cart-button:disabled { opacity: .5; cursor: not-allowed; }
.delivery-note { margin: 12px 0 0; color: var(--muted); font-size: .75rem; }
.wishlist-form { margin-bottom: 12px; }
.wishlist-form .text-button { color: var(--accent); font-size: .82rem; }
.review-item { padding-block: 10px; border-bottom: 1px solid var(--line); font-size: .82rem; }
.review-item span { margin-inline-start: 8px; color: var(--accent); font-size: .75rem; }
.review-item p { margin: 4px 0 0; color: var(--muted); }
.review-form { margin-top: 18px; }
.detail-lower-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 18px; margin-top: 58px; }
.detail-content-block { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.detail-content-block h2 { margin-bottom: 18px; }
.spec-list { margin: 0; }
.spec-list div { display: grid; grid-template-columns: 1fr 1fr; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
.spec-list div:last-child { border-bottom: 0; }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; font-weight: 600; }
.related-section { padding-bottom: 0; }
.add-to-cart-form { display: flex; align-items: center; gap: 9px; }
.quantity-input { width: 64px; padding: 11px 8px; border: 1px solid var(--line); border-radius: 10px; font: inherit; text-align: center; }
.cart-page { padding-block: 42px 70px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 22px; align-items: start; }
.cart-items { display: grid; gap: 10px; }
.cart-item { display: grid; grid-template-columns: 92px minmax(0, 1fr) 92px 130px; gap: 15px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.cart-item-image { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: #f1eee5; color: var(--accent); font-size: 2.3rem; font-weight: 800; }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info h2 { margin: 3px 0; font-size: .98rem; }
.cart-item-quantity label { display: block; margin-bottom: 4px; color: var(--muted); font-size: .7rem; }
.cart-item-quantity input { width: 70px; padding: 7px; border: 1px solid var(--line); border-radius: 8px; font: inherit; text-align: center; }
.cart-item-price { text-align: left; }
.cart-item-price strong { display: block; font-size: .95rem; }
.cart-item-price span { color: var(--muted); font-size: .7rem; }
.remove-button { display: block; margin-top: 6px; padding: 0; border: 0; background: none; color: var(--accent); cursor: pointer; font: inherit; font-size: .72rem; }
.button-secondary { border: 1px solid var(--line); background: var(--surface); cursor: pointer; font: inherit; }
.update-cart-button { justify-self: start; margin-top: 5px; }
.cart-summary { padding: 21px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.cart-summary h2 { margin-bottom: 19px; font-size: 1.2rem; }
.cart-summary > div { display: flex; justify-content: space-between; gap: 12px; margin: 11px 0; color: var(--muted); font-size: .83rem; }
.cart-summary strong { color: var(--ink); }
.cart-summary hr { border: 0; border-top: 1px solid var(--line); }
.cart-summary .cart-total { color: var(--ink); font-size: .95rem; font-weight: 700; }
.checkout-button { width: 100%; justify-content: center; margin-top: 17px; border: 0; cursor: not-allowed; font: inherit; opacity: .5; }
.cart-summary p { margin: 12px 0 0; font-size: .72rem; text-align: center; }
.cart-empty { padding: 75px 20px; border: 1px dashed #cbd8cf; border-radius: 18px; text-align: center; }
.cart-empty > span { display: inline-grid; place-items: center; width: 76px; height: 76px; margin-bottom: 12px; border-radius: 24px; background: var(--mint); color: var(--accent); font-weight: 800; }
.cart-empty h2 { margin-bottom: 8px; }
.cart-empty .button { margin-top: 12px; }
.account-narrow { max-width: 560px; padding-block: 48px 70px; }
.account-page { padding-block: 42px 70px; }
.account-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.account-form-panel { padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.account-form-panel h1 { margin: 7px 0 24px; font-size: 2rem; }
.account-form-panel h2 { margin-bottom: 20px; font-size: 1.2rem; }
.account-form { display: grid; gap: 14px; }
.form-field label { display: block; margin-bottom: 5px; font-size: .82rem; font-weight: 700; }
.form-field input, .form-field textarea, .form-field select { width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fcfdfb; font: inherit; }
.form-field textarea { min-height: 100px; resize: vertical; }
.form-error { display: block; margin-top: 4px; color: var(--accent); font-size: .75rem; }
.account-form-footer { margin: 18px 0 0; color: var(--muted); font-size: .85rem; text-align: center; }
.account-form-footer a, .text-button { color: var(--accent); }
.text-button { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; }
.account-section-heading, .address-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.address-preview { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .82rem; }
.address-preview span { color: var(--muted); }
.account-form-panel .button-secondary { margin-top: 16px; }
.address-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.address-card { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.address-card h2 { font-size: 1.05rem; }
.address-card p { color: var(--muted); font-size: .82rem; }
.default-badge { padding: 2px 7px; border-radius: 6px; background: var(--mint); color: #37906b; font-size: .7rem; }
.checkbox-field { display: flex; align-items: center; gap: 8px; }
.checkbox-field label { order: 2; margin: 0; }
.checkbox-field input { width: auto; order: 1; accent-color: var(--accent); }
.site-footer { padding-block: 42px; background: var(--ink); color: white; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; }
.footer-grid strong { display: block; margin-bottom: 8px; }
.footer-grid p, .footer-grid a { display: block; margin: 0 0 5px; color: #b9c9c2; font-size: .86rem; }
@media (max-width: 760px) { .topbar { flex-wrap: wrap; gap: 12px; padding-block: 12px; } .search { order: 3; flex-basis: 100%; } .header-actions { margin-inline-start: auto; } .hero { display: block; min-height: 0; } .hero-copy { padding: 36px 24px; } .hero-art { min-height: 190px; } .hero-note { top: 25px; right: 30%; width: 105px; height: 105px; } .category-grid { grid-template-columns: repeat(2, 1fr); } .product-scroller { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; } .product-card { flex: 0 0 74%; scroll-snap-align: start; } .section-block { padding-block: 38px; } .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } .catalog-page { padding-block: 26px 48px; } .catalog-layout { display: block; } .filters-panel { position: static; margin-bottom: 24px; } .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .catalog-grid .product-info { padding: 10px; } .catalog-grid .product-info h3 { min-height: 48px; font-size: .85rem; } .catalog-heading h1 { font-size: 2rem; } .product-detail-layout { grid-template-columns: 1fr; gap: 24px; } .product-detail-info { padding-top: 0; } .detail-lower-grid { grid-template-columns: 1fr; margin-top: 36px; } .detail-page { padding-top: 18px; } .gallery-main { aspect-ratio: 1 / .9; } .cart-page { padding-block: 26px 48px; } .cart-layout { grid-template-columns: 1fr; } .cart-item { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; } .cart-item-quantity { grid-column: 2; } .cart-item-price { grid-column: 2; text-align: right; } .update-cart-button { justify-self: stretch; justify-content: center; } .add-to-cart-form { align-items: stretch; } .account-page { padding-block: 26px 48px; } .account-layout, .address-grid { grid-template-columns: 1fr; } .account-narrow { padding-block: 26px 48px; } }