@font-face { font-family: Peyda; src: url(../fonts/PeydaFaNum-Regular.ttf); font-weight: 400 500; font-display: swap; }
@font-face { font-family: Peyda; src: url(../fonts/PeydaFaNum-Bold.ttf); font-weight: 700 900; font-display: swap; }

:root {
    --cream: #FEF8F3;
    --surface: #fff;
    --plum-900: #2E1A3D;
    --plum: #5B3470;
    --plum-600: #72478C;
    --lav: #B899D9;
    --lilac: #F1E9F8;
    --lilac-2: #E6D9F3;
    --ink: #2B2233;
    --muted: #7C7286;
    --line: #EFE7EE;
    --accent: #FF7A45;
    --accent-soft: #FFE9DF;
    --good: #1F9D74;
    --good-soft: #E2F4EC;
    --bad: #D6455D;
    --bad-soft: #FDE8EC;
    --star: #F5B301;
    --r: 20px;
    --r-sm: 12px;
    --shadow: 0 8px 28px rgba(91, 52, 112, .09);
    --shadow-lg: 0 18px 50px rgba(91, 52, 112, .16);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Peyda, Tahoma, sans-serif; font-size: 15px; line-height: 1.9; color: var(--ink); background: var(--cream); padding-bottom: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.5; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; vertical-align: middle; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
small { font-size: .8em; font-weight: 400; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--lav); outline-offset: 2px; border-radius: 6px; }

.i { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i-fill { fill: currentColor; stroke: none; }
.wrap { width: min(1280px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(860px, 100% - 40px); }
main { min-height: 55vh; padding-bottom: 64px; }
main > section, main > .wrap > section { margin-top: 52px; }
.muted { color: var(--muted); }
.only-mobile { display: none !important; }
/* فرزندان گرید نباید به خاطر محتوای اسکرولی از صفحه بیرون بزنند */
.listing > *, .pdp > *, .checkout > *, .account > *, .reviews > *, .auth > *, .offers > * { min-width: 0; }

/* ---------- دکمه و فرم ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 22px; border-radius: 14px; background: var(--plum); color: #fff; font-weight: 700; font-size: 14.5px; transition: .2s; white-space: nowrap; }
.btn:hover { background: var(--plum-600); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(91, 52, 112, .25); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 16px; }
.btn-soft { background: var(--lilac); color: var(--plum); }
.btn-soft:hover { background: var(--lilac-2); box-shadow: none; }
.btn-light { background: #fff; color: var(--plum); }
.btn-light:hover { background: var(--lilac); }
.btn-block { width: 100%; }
.btn-grow { flex: 1; min-width: 0; padding-inline: 12px; font-size: 15px; }
.link { color: var(--plum-600); font-weight: 500; font-size: 14px; }
.link:hover { text-decoration: underline; }
.link.center { display: block; text-align: center; margin-top: 12px; }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 12px; color: var(--plum); }
.icon-btn:hover { background: var(--lilac); }

label { display: block; font-size: 13.5px; font-weight: 500; color: #4a4052; }
input:not([type=radio], [type=checkbox], [type=file]), select, textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; font-size: 15px; transition: .15s; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--lav); box-shadow: 0 0 0 4px rgba(184, 153, 217, .22); }
input:disabled { background: #f6f2f6; color: var(--muted); }
textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.form-grid .full { grid-column: 1 / -1; }

.card { background: var(--surface); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.card-title { display: flex; align-items: center; gap: 8px; font-size: 17px; margin-bottom: 18px; color: var(--plum-900); }
.card-title .i { color: var(--lav); }

.alert { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 14px; font-size: 14px; font-weight: 500; }
.alert-error { background: var(--bad-soft); color: #a02a40; }
.alert-info { background: var(--lilac); color: var(--plum); }
.alert-success { background: var(--good-soft); color: #14694d; }

.toasts { position: fixed; inset-inline: 0; top: 18px; z-index: 200; display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.toast { background: var(--plum-900); color: #fff; padding: 11px 22px; border-radius: 99px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); animation: toast .35s both; max-width: calc(100% - 32px); }
.toast-error { background: var(--bad); }
.toast-success { background: var(--good); }
.toast.out { opacity: 0; transform: translateY(-12px); transition: .3s; }
@keyframes toast { from { opacity: 0; transform: translateY(-16px); } }

/* ---------- سربرگ ---------- */
.topbar { background: var(--plum); color: #fff; text-align: center; font-size: 13px; padding: 6px 12px; display: flex; gap: 8px; justify-content: center; align-items: center; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(254, 248, 243, .94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-main { display: flex; align-items: center; gap: 22px; padding-block: 12px; }
.logo img { height: 50px; width: auto; display: block; }
.search { position: relative; flex: 1; max-width: 560px; margin-inline: auto; }
.search > .i { position: absolute; inset-inline-start: 16px; top: 50%; translate: 0 -50%; color: var(--lav); pointer-events: none; }
.search input { margin: 0; padding: 12px 46px 12px 16px; border-radius: 16px; border-color: transparent; background: #fff; box-shadow: 0 2px 12px rgba(91, 52, 112, .07); }
.suggest { position: absolute; inset-inline: 0; top: calc(100% + 8px); background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 60; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; font-size: 14px; }
.suggest a:hover { background: var(--lilac); }
.suggest .art { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.suggest b { margin-inline-start: auto; white-space: nowrap; font-size: 13px; color: var(--plum); }
.suggest .none { padding: 14px; text-align: center; color: var(--muted); font-size: 14px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.hbtn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 14px; background: #fff; color: var(--plum); font-weight: 500; font-size: 14px; box-shadow: 0 2px 12px rgba(91, 52, 112, .07); transition: .2s; }
.hbtn:hover { background: var(--lilac); }
.hbtn-icon, .hbtn-cart { width: 46px; padding: 0; justify-content: center; }
.hbtn-cart { background: var(--plum); color: #fff; }
.hbtn-cart:hover { background: var(--plum-600); }
.cart-count { position: absolute; top: -7px; inset-inline-end: -7px; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; border: 2px solid var(--cream); }

.nav-row { display: flex; align-items: center; gap: 4px; position: relative; }
.nav-item > a { display: flex; align-items: center; gap: 5px; padding: 10px 14px; font-weight: 500; font-size: 14.5px; border-radius: 12px 12px 0 0; color: #4a3b56; }
.nav-item:hover > a { color: var(--plum); background: var(--lilac); }
.nav-offer { color: var(--accent) !important; }
.nav-phone { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--plum); }
.mega { position: absolute; inset-inline: 0; top: 100%; background: #fff; border-radius: 0 0 24px 24px; box-shadow: var(--shadow-lg); padding: 22px; opacity: 0; visibility: hidden; translate: 0 8px; transition: .18s; z-index: 55; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; translate: 0; }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.mega-grid a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; font-weight: 500; font-size: 14px; }
.mega-grid a:hover { background: var(--lilac); }
.mega-grid .art { width: 52px; height: 52px; border-radius: 12px; flex: none; }
.mega-all { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; color: var(--plum-600); font-weight: 700; font-size: 14px; }

.drawer { position: fixed; inset: 0; z-index: 100; background: rgba(46, 26, 61, .45); }
.drawer-panel { position: absolute; inset-block: 0; inset-inline-start: 0; width: min(330px, 86%); background: var(--cream); padding: 16px; overflow-y: auto; animation: slide .25s both; }
@keyframes slide { from { transform: translateX(100%); } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.drawer details { background: #fff; border-radius: 16px; padding: 4px 14px; margin-bottom: 10px; }
.drawer summary { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-weight: 700; color: var(--plum); cursor: pointer; list-style: none; }
.drawer details a { display: block; padding: 7px 10px; font-size: 14.5px; border-radius: 10px; }
.drawer-link { display: block; padding: 12px 14px; font-weight: 500; }
.tabbar { display: none; }

/* ---------- صفحه اصلی ---------- */
.hero { display: grid; margin-top: 24px; position: relative; }
.slide { grid-area: 1 / 1; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 24px; min-height: 400px; padding: 40px 64px; border-radius: 32px; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.slide.on { opacity: 1; visibility: visible; }
.slide h1 { font-size: clamp(26px, 3.4vw, 44px); font-weight: 900; line-height: 1.45; }
.slide p { font-size: 17px; margin: 12px 0 26px; max-width: 30em; opacity: .85; }
.theme-lilac { background: linear-gradient(135deg, #EDE2F7, #DCC9EF); color: var(--plum-900); }
.theme-plum { background: linear-gradient(135deg, #5B3470, #3D2350); color: #fff; }
.theme-plum .btn { background: #fff; color: var(--plum); }
.theme-apricot { background: linear-gradient(135deg, #FFEADF, #FFD3BD); color: #5a2a14; }
.theme-apricot .btn { background: var(--accent); }
.theme-mint { background: linear-gradient(135deg, #E4F5EC, #C3E8D6); color: #154a37; }
.theme-mint .btn { background: #1c7a5b; }
.slide-art { position: relative; height: 320px; display: grid; place-items: center; }
.slide-art > img { max-height: 320px; border-radius: 24px; object-fit: contain; }
.blob { position: absolute; width: 300px; height: 300px; border-radius: 46% 54% 58% 42% / 48% 44% 56% 52%; background: rgba(255, 255, 255, .45); animation: blob 12s linear infinite; }
.theme-plum .blob { background: rgba(255, 255, 255, .13); }
@keyframes blob { 50% { border-radius: 58% 42% 44% 56% / 54% 58% 42% 46%; rotate: 8deg; } }
.slide-art .pet-face { position: relative; width: 210px; filter: drop-shadow(0 14px 24px rgba(46, 26, 61, .2)); }
.float { position: absolute; width: 96px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); animation: bob 5s ease-in-out infinite; }
.float .art { display: block; }
.f0 { inset-inline-start: 4%; top: 6%; rotate: -8deg; }
.f1 { inset-inline-end: 2%; top: 22%; rotate: 9deg; animation-delay: -1.6s; }
.f2 { inset-inline-start: 12%; bottom: 0; rotate: 6deg; animation-delay: -3s; width: 80px; }
@keyframes bob { 50% { translate: 0 -10px; } }
.dots { position: absolute; bottom: 18px; inset-inline-start: 64px; display: flex; gap: 6px; z-index: 2; }
.dots button { width: 9px; height: 9px; border-radius: 99px; background: rgba(91, 52, 112, .28); transition: .3s; }
.dots button.on { width: 28px; background: var(--plum); }

.pets { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.pet-card { display: flex; align-items: center; justify-content: space-between; padding: 26px 34px; border-radius: 28px; transition: .25s; overflow: hidden; }
.pet-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pet-a { background: #FFE9DF; color: #5a2a14; }
.pet-b { background: var(--lilac-2); color: var(--plum-900); }
.pet-card small { opacity: .7; font-size: 13px; }
.pet-card h3 { font-size: 26px; font-weight: 900; margin-bottom: 12px; }
.pet-card .pet-face { width: 130px; margin-block: -6px -34px; transition: .3s; }
.pet-card:hover .pet-face { translate: 0 -8px; rotate: -4deg; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; border-radius: 99px; background: rgba(255, 255, 255, .7); font-size: 13.5px; font-weight: 700; }

.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.sec-head h2 { font-size: 22px; font-weight: 900; color: var(--plum-900); position: relative; padding-inline-start: 16px; }
.sec-head h2::before { content: ""; position: absolute; inset-inline-start: 0; top: 18%; height: 64%; width: 6px; border-radius: 6px; background: var(--lav); }
.more { display: inline-flex; align-items: center; gap: 4px; color: var(--plum-600); font-weight: 700; font-size: 14px; }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px; }
.cat { display: grid; justify-items: center; gap: 8px; text-align: center; font-weight: 500; font-size: 14px; }
.cat .art { width: 100%; aspect-ratio: 1; border-radius: 26px; transition: .25s; }
.cat:hover .art { transform: translateY(-4px) scale(1.03); box-shadow: var(--shadow); }

.rail { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 18px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--lilac-2) transparent; }
.rail > * { flex: 0 0 228px; scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 16px; }

.pcard { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 22px; padding: 10px; box-shadow: 0 2px 14px rgba(91, 52, 112, .06); transition: .25s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pcard-media { position: relative; display: block; border-radius: 16px; overflow: hidden; }
.art { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: inherit; }
.pcard .art { transition: .35s; }
.pcard:hover .art { scale: 1.05; }
.is-out .art { filter: grayscale(.7); opacity: .7; }
.badge-off { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; font-size: 12.5px; padding: 1px 9px; border-radius: 99px; }
.pcard .badge-off { position: absolute; top: 10px; inset-inline-start: 10px; }
.badge-out { position: absolute; bottom: 10px; inset-inline-start: 10px; background: rgba(46, 26, 61, .82); color: #fff; font-size: 12px; padding: 1px 10px; border-radius: 99px; }
.wish { position: absolute; top: 18px; inset-inline-end: 18px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--muted); transition: .2s; z-index: 2; }
.wish:hover { color: var(--bad); scale: 1.1; }
.wish.on { color: var(--bad); }
.wish.on .i { fill: currentColor; }
.pcard-body { display: flex; flex-direction: column; flex: 1; padding: 12px 6px 4px; }
.pcard-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.pcard-brand { font-weight: 500; }
.rate { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.rate .i { color: var(--star); }
.rate i { font-style: normal; font-weight: 400; color: var(--muted); }
.pcard-title { font-weight: 500; font-size: 14px; line-height: 1.8; margin: 4px 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.6em; }
.pcard-title:hover { color: var(--plum); }
.pcard-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.price { display: grid; line-height: 1.5; }
.price del { color: #b5acbb; font-size: 12.5px; }
.price b { font-size: 16.5px; font-weight: 900; color: var(--plum-900); }
.price small { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.add { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: var(--lilac); color: var(--plum); transition: .2s; }
.add:hover { background: var(--plum); color: #fff; rotate: 90deg; }
.add.busy { opacity: .5; pointer-events: none; }

.offers { display: flex; gap: 8px; background: linear-gradient(135deg, #5B3470, #3D2350); border-radius: 32px; padding: 22px 22px 6px; }
.offers-side { flex: 0 0 190px; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding-bottom: 16px; }
.offers-side .i { color: var(--lav); }
.offers-side h2 { font-size: 25px; font-weight: 900; line-height: 1.5; }
.offers .rail { flex: 1; min-width: 0; scrollbar-color: rgba(255, 255, 255, .3) transparent; }
.countdown { display: flex; gap: 6px; direction: rtl; }
.countdown span { display: grid; font-size: 10.5px; opacity: .9; }
.countdown b { display: grid; place-items: center; min-width: 38px; height: 38px; background: #fff; color: var(--plum); border-radius: 10px; font-size: 16px; }

.promo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.promo-card { display: flex; align-items: center; gap: 18px; padding: 26px 28px; border-radius: 26px; transition: .25s; }
.promo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.promo-card h3 { font-size: 18px; }
.promo-card p { font-size: 14px; opacity: .85; }
.promo-a { background: var(--good-soft); color: #154a37; }
.promo-b { background: #FFF3D1; color: #5e4306; }

.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.brand { display: grid; place-items: center; gap: 2px; padding: 18px 10px; background: #fff; border-radius: 20px; text-align: center; box-shadow: 0 2px 14px rgba(91, 52, 112, .06); transition: .2s; }
.brand:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.brand b { font-size: 16px; color: var(--plum); letter-spacing: .5px; font-family: Arial, sans-serif; }
.brand img { height: 44px; object-fit: contain; }
.brand span { font-size: 12.5px; color: var(--muted); }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 2px 14px rgba(91, 52, 112, .06); transition: .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-img { height: 180px; display: grid; place-items: center; overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; }
.post-img .pet-face { width: 120px; }
.tone-0 { background: var(--lilac-2); } .tone-1 { background: #FFE9DF; } .tone-2 { background: var(--good-soft); }
.post-body { padding: 18px 20px 22px; }
.post-body time { font-size: 12.5px; color: var(--muted); }
.post-body h3 { font-size: 16.5px; margin: 4px 0 6px; }
.post-body p { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- لیست محصولات ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); padding-top: 22px; }
.crumbs a::after { content: "‹"; margin-inline-start: 6px; }
.crumbs a:hover { color: var(--plum); }
.list-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 18px 0 16px; }
.list-head h1 { font-size: 26px; font-weight: 900; color: var(--plum-900); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 14px; scrollbar-width: none; }
.chip { flex: none; padding: 6px 16px; border-radius: 99px; background: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 2px 10px rgba(91, 52, 112, .06); }
.chip:hover { background: var(--lilac); }
.chip.on { background: var(--plum); color: #fff; }
.listing { display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: start; }
.filters { position: sticky; top: 140px; background: #fff; border-radius: var(--r); padding: 8px 20px; box-shadow: var(--shadow); max-height: calc(100vh - 160px); overflow-y: auto; }
.fbox { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.fbox:last-of-type { border: 0; }
.fbox h4 { font-size: 14.5px; }
.fscroll { max-height: 220px; overflow-y: auto; display: grid; gap: 6px; padding-inline-end: 4px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 400; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--plum); margin: 0; }
.check i { margin-inline: auto 6px; font-style: normal; font-size: 12px; color: var(--muted); }
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 40px; height: 23px; border-radius: 99px; background: #ddd3e0; position: relative; transition: .2s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + span { background: var(--plum); }
.switch input:checked + span::after { inset-inline-start: 20px; }
.switch input:focus-visible + span { outline: 3px solid var(--lav); }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 6px; }
.range input { margin: 0; text-align: center; }
.clear { display: block; text-align: center; padding: 12px; color: var(--bad); font-size: 13.5px; font-weight: 500; }
.sortbar { display: flex; align-items: center; gap: 4px; background: #fff; border-radius: 16px; padding: 8px 14px; margin-bottom: 16px; font-size: 14px; box-shadow: 0 2px 12px rgba(91, 52, 112, .06); overflow-x: auto; scrollbar-width: none; }
.sort-label { display: flex; align-items: center; gap: 6px; font-weight: 700; margin-inline-end: 6px; white-space: nowrap; }
.sortbar a { padding: 4px 12px; border-radius: 10px; color: var(--muted); white-space: nowrap; }
.sortbar a:hover { color: var(--plum); }
.sortbar a.on { background: var(--lilac); color: var(--plum); font-weight: 700; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border-radius: 12px; background: #fff; font-weight: 500; font-size: 14px; }
.pager a:hover { background: var(--lilac); }
.pager a.on { background: var(--plum); color: #fff; }
.empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 56px 20px; background: #fff; border-radius: var(--r); }
.empty .pet-face { width: 120px; }
.empty p { color: var(--muted); margin-bottom: 8px; }

/* ---------- صفحه محصول ---------- */
.pdp { display: grid; grid-template-columns: 420px 1fr 340px; gap: 28px; align-items: start; margin-top: 18px; }
.gallery-main { position: relative; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.thumbs button { width: 70px; height: 70px; flex: none; border-radius: 14px; overflow: hidden; border: 2px solid transparent; opacity: .7; }
.thumbs button.on { border-color: var(--plum); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-brand { color: var(--plum-600); font-weight: 700; font-size: 14px; }
.pdp-info h1 { font-size: 23px; line-height: 1.7; margin: 4px 0 10px; color: var(--plum-900); }
.pdp-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 13.5px; color: var(--muted); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.pdp-meta a:hover { color: var(--plum); }
.tagline { background: var(--lilac); color: var(--plum); padding: 0 12px; border-radius: 99px; font-weight: 500; }
.pdp-short { margin: 16px 0; color: #51465a; }
.pdp-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pdp-keys li { background: #fff; border-radius: 14px; padding: 10px 14px; display: grid; font-size: 13.5px; }
.pdp-keys span { color: var(--muted); font-size: 12.5px; }
.buybox { position: sticky; top: 140px; background: #fff; border-radius: 26px; padding: 22px; box-shadow: var(--shadow); }
.buybox h4 { font-size: 14px; margin-bottom: 10px; }
.variants { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.variant input { position: absolute; opacity: 0; }
.variant span { display: block; padding: 6px 16px; border-radius: 12px; border: 1.5px solid var(--line); font-size: 14px; font-weight: 500; cursor: pointer; transition: .15s; }
.variant span i { font-style: normal; font-size: 11.5px; color: var(--muted); }
.variant input:checked + span { border-color: var(--plum); background: var(--lilac); color: var(--plum); }
.variant input:focus-visible + span { outline: 3px solid var(--lav); }
.variant.off span { opacity: .5; cursor: not-allowed; text-decoration: line-through; }
.buy-price { display: grid; justify-items: end; margin-bottom: 8px; }
.buy-price .old { display: flex; align-items: center; gap: 8px; color: #b5acbb; }
.buy-price .now { font-size: 15px; color: var(--muted); }
.buy-price .now b { font-size: 28px; font-weight: 900; color: var(--plum-900); }
.stock-note { color: var(--accent); font-size: 13px; font-weight: 500; text-align: end; }
.buy-row { display: flex; gap: 10px; margin-top: 12px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; padding: 3px; }
.qty button { width: 32px; height: 40px; display: grid; place-items: center; color: var(--plum); border-radius: 10px; }
.qty button:hover { background: var(--lilac); }
.qty button:disabled { opacity: .3; pointer-events: none; }
.qty input, .qty output { width: 30px; margin: 0; padding: 0; border: 0; text-align: center; font-weight: 700; background: none; box-shadow: none !important; }
.soldout { background: #f6f2f6; border-radius: 16px; padding: 16px; display: grid; text-align: center; color: var(--muted); font-size: 14px; }
.soldout b { font-size: 18px; color: var(--ink); }
.buy-perks { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 13px; color: #5d5268; }
.buy-perks li { display: flex; align-items: center; gap: 8px; }
.buy-perks .i { color: var(--lav); }

.tabs-card { background: #fff; border-radius: 28px; padding: 8px 32px; margin-top: 36px; box-shadow: var(--shadow); }
.tabs-card > section { padding: 26px 0; border-bottom: 1px solid var(--line); }
.tabs-card > section:last-child { border: 0; }
.tabs-card h2 { font-size: 19px; margin-bottom: 14px; color: var(--plum-900); }
.prose { line-height: 2.15; color: #40364a; }
.prose p, .prose ul, .prose ol { margin-bottom: 14px; }
.prose h2, .prose h3 { margin: 22px 0 8px; font-size: 18px; color: var(--plum-900); }
.prose ul { list-style: disc; padding-inline-start: 22px; }
.prose ol { list-style: decimal; padding-inline-start: 22px; }
.prose a { color: var(--plum-600); text-decoration: underline; }
.specs { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.specs th, .specs td { text-align: start; padding: 11px 14px; }
.specs th { width: 220px; color: var(--muted); font-weight: 500; }
.specs tr:nth-child(odd) { background: #faf6fb; }
.reviews { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.review { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.review-head { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.review-head time { margin-inline-start: auto; font-size: 12.5px; color: var(--muted); }
.rate-stars { direction: ltr; unicode-bidi: bidi-override; font-size: 15px; background: linear-gradient(90deg, var(--star) calc(var(--r) * 20%), #ddd 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.review p { font-size: 14.5px; color: #4a4052; margin-top: 4px; }
.review-form { background: var(--cream); border-radius: 20px; padding: 20px; display: grid; gap: 10px; }
.review-form textarea { margin: 0; }
.rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; direction: ltr; }
.rating-input input { position: absolute; opacity: 0; }
.rating-input label { font-size: 30px; line-height: 1; color: #ddd; cursor: pointer; padding: 0 2px; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: var(--star); }

/* ---------- سبد و تسویه ---------- */
.checkout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.summary { position: sticky; top: 140px; }
.shipbar { background: var(--good-soft); color: #14694d; border-radius: 16px; padding: 12px 16px; margin-bottom: 14px; font-size: 14px; font-weight: 500; }
.shipbar span { display: flex; align-items: center; gap: 8px; }
.bar { height: 7px; border-radius: 99px; background: rgba(31, 157, 116, .18); margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--good); }
.cart-list { padding: 6px 22px; }
.cart-item { display: grid; grid-template-columns: 84px 1fr auto 120px; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border: 0; }
.cart-thumb { border-radius: 16px; overflow: hidden; }
.cart-info { display: grid; font-size: 14.5px; font-weight: 500; }
.cart-info .muted, .cart-info .unit { font-size: 13px; font-weight: 400; }
.cart-info .unit { color: var(--muted); }
.line { text-align: end; font-size: 15.5px; }
.coupon { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.coupon input { margin: 0; flex: 1; }
.coupon-on { display: flex; align-items: center; gap: 6px; flex: 1; color: var(--good); font-size: 14px; }
.totals { margin: 0 0 16px; display: grid; gap: 8px; font-size: 14.5px; }
.totals div { display: flex; justify-content: space-between; }
.totals dd { margin: 0; font-weight: 700; }
.totals .good { color: var(--good); }
.totals .grand { border-top: 1px dashed #dccfe0; padding-top: 12px; margin-top: 4px; font-size: 16px; font-weight: 700; }
.totals .grand dd { font-size: 19px; font-weight: 900; color: var(--plum-900); }
.free { color: var(--good); }
.mini-items { display: grid; gap: 8px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.mini-items li { display: flex; justify-content: space-between; gap: 12px; }
.mini-items i { font-style: normal; color: var(--muted); }
.mini-items b { white-space: nowrap; }
.mini-items.big { font-size: 15px; gap: 12px; }
.steps { display: flex; justify-content: center; gap: 8px; margin: 26px 0; font-size: 14px; font-weight: 500; color: var(--muted); }
.steps span { padding: 6px 18px; border-radius: 99px; background: #fff; }
.steps .on { background: var(--plum); color: #fff; }
.steps .done { background: var(--good-soft); color: var(--good); }
.pay-methods { display: grid; gap: 10px; }
.pay-method { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 16px; cursor: pointer; transition: .15s; }
.pay-method:has(input:checked) { border-color: var(--plum); background: var(--lilac); }
.pay-method input { width: 19px; height: 19px; accent-color: var(--plum); margin: 0; }
.pay-method span { display: grid; line-height: 1.7; }
.pay-method small { color: var(--muted); font-size: 13px; }

.order-hero { display: flex; align-items: center; gap: 18px; background: var(--good-soft); color: #14694d; padding: 24px 28px; border-radius: 26px; margin: 28px 0 20px; }
.order-hero.bad { background: var(--bad-soft); color: #a02a40; }
.order-hero > .i { width: 60px; height: 60px; padding: 13px; background: #fff; border-radius: 50%; }
.order-hero h1 { font-size: 20px; }
.track { display: flex; justify-content: space-between; margin-bottom: 20px; background: #fff; border-radius: var(--r); padding: 18px 26px; box-shadow: var(--shadow); font-size: 13.5px; color: var(--muted); }
.track li { display: grid; justify-items: center; gap: 6px; flex: 1; position: relative; text-align: center; }
.track li + li::before { content: ""; position: absolute; top: 12px; inset-inline-start: 50%; width: 100%; height: 3px; background: var(--line); translate: 0 -50%; z-index: 0; }
[dir=rtl] .track li + li::before { inset-inline-start: auto; inset-inline-end: 50%; }
.track li i { position: relative; z-index: 1; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--line); color: #fff; }
.track li.on { color: var(--plum); font-weight: 700; }
.track li.on i, .track li.on::before { background: var(--plum); }
.pay-box { display: grid; gap: 14px; justify-items: start; }
.bank-card { display: grid; background: linear-gradient(135deg, #5B3470, #3D2350); color: #fff; padding: 18px 26px; border-radius: 18px; }
.bank-card b { font-size: 22px; letter-spacing: 2px; }
.bank-card span { font-size: 13px; opacity: .85; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-grid .full { grid-column: 1 / -1; }
.info-grid span { display: block; font-size: 12.5px; color: var(--muted); }
.info-grid b { font-weight: 500; }
.center-row { display: flex; justify-content: center; gap: 12px; margin-top: 8px; }
.status { display: inline-block; padding: 2px 14px; border-radius: 99px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.st-pending { background: #FFF3D1; color: #8a6206; }
.st-processing { background: #E1EEFB; color: #2C5F97; }
.st-shipped { background: var(--lilac-2); color: var(--plum); }
.st-delivered { background: var(--good-soft); color: #14694d; }
.st-canceled { background: var(--bad-soft); color: #a02a40; }

/* ---------- حساب کاربری ---------- */
.auth { display: grid; grid-template-columns: 1fr 440px; gap: 40px; align-items: center; padding-top: 48px; }
.auth-art { background: var(--lilac-2); border-radius: 32px; padding: 48px; text-align: center; color: var(--plum-900); }
.auth-art .pet-face { width: 130px; margin: 0 6px 18px; }
.auth-art h2 { font-size: 24px; font-weight: 900; }
.auth-art p { max-width: 26em; margin: 8px auto 0; opacity: .8; }
.auth-form { display: grid; gap: 16px; padding: 32px; margin: 0; }
.auth-form h1 { font-size: 24px; font-weight: 900; color: var(--plum-900); }
.auth-switch { text-align: center; font-size: 14px; color: var(--muted); }
.auth-switch a { color: var(--plum); font-weight: 700; }
.account { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; padding-top: 28px; }
.account-nav { padding: 14px; display: grid; gap: 2px; position: sticky; top: 140px; }
.account-user { display: flex; align-items: center; gap: 12px; padding: 8px 8px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.account-user div { display: grid; line-height: 1.6; }
.account-user small { color: var(--muted); }
.avatar { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: var(--lilac); color: var(--plum); }
.account-nav a, .account-nav button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 12px; font-weight: 500; font-size: 14.5px; color: #4a4052; }
.account-nav a:hover, .account-nav button:hover { background: var(--cream); }
.account-nav a.on { background: var(--lilac); color: var(--plum); font-weight: 700; }
.account-nav button { color: var(--bad); }
.h-page { font-size: 22px; font-weight: 900; margin-bottom: 16px; color: var(--plum-900); }
.order-row { display: grid; grid-template-columns: 1fr 1fr auto 20px; align-items: center; gap: 16px; padding: 16px 22px; margin-bottom: 12px; transition: .2s; }
.order-row:hover { transform: translateX(-4px); }
.order-row div { display: grid; line-height: 1.6; }
.order-row small { color: var(--muted); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.article { padding: 36px 44px; margin-top: 18px; }
.article time { color: var(--muted); font-size: 13px; }
.article h1 { font-size: 27px; font-weight: 900; color: var(--plum-900); margin-bottom: 16px; }
.article-img { border-radius: 20px; margin-bottom: 20px; width: 100%; }
.lead { font-size: 17px; font-weight: 500; color: var(--plum); margin-bottom: 16px; }
.contact-grid { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- پابرگ ---------- */
.footer { background: var(--plum-900); color: #d9cde3; margin-top: 30px; padding: 0 0 18px; font-size: 14px; }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; background: #fff; color: var(--ink); border-radius: 26px; padding: 22px 26px; box-shadow: var(--shadow-lg); translate: 0 -40px; }
.trust div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; line-height: 1.6; }
.trust .i { grid-row: span 2; color: var(--plum); background: var(--lilac); width: 54px; height: 54px; padding: 12px; border-radius: 16px; }
.trust span { font-size: 12.5px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 32px; padding-bottom: 28px; }
.footer-logo { display: inline-block; background: var(--cream); padding: 8px 16px; border-radius: 16px; margin-bottom: 14px; }
.footer-logo img { height: 46px; width: auto; }
.footer h4 { color: #fff; font-size: 15.5px; margin-bottom: 12px; }
.footer-grid a, .f-line { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.footer-grid a:hover { color: #fff; }
.social { display: flex; gap: 8px; margin-top: 14px; }
.social a { width: 40px; height: 40px; justify-content: center; border-radius: 12px; background: rgba(255, 255, 255, .1); }
.copy { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 16px; text-align: center; font-size: 13px; opacity: .7; }

/* ---------- واکنش گرا ---------- */
@media (max-width: 1100px) {
    .pdp { grid-template-columns: 360px 1fr; }
    .buybox { grid-column: 1 / -1; position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .trust { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    body { padding-bottom: 68px; font-size: 14.5px; }
    .only-mobile { display: inline-flex !important; }
    .filters-head.only-mobile { display: flex !important; }
    .wrap, .wrap.narrow { width: calc(100% - 28px); }
    main > section, main > .wrap > section { margin-top: 36px; }
    .nav, .header-actions .hbtn:not(.hbtn-cart) { display: none; }
    .header-main { flex-wrap: wrap; gap: 10px; padding-block: 10px; }
    .logo { margin-inline-end: auto; }
    .logo img { height: 40px; }
    .search { order: 5; flex-basis: 100%; max-width: none; }
    .tabbar { position: fixed; bottom: 0; inset-inline: 0; z-index: 60; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -6px 24px rgba(91, 52, 112, .12); padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); }
    .tabbar a, .tabbar button { position: relative; display: grid; justify-items: center; font-size: 11.5px; color: var(--muted); font-weight: 500; line-height: 1.6; }
    .tabbar .cart-count { top: -5px; inset-inline: calc(50% - 26px) auto; border-color: #fff; }
    .slide { grid-template-columns: 1fr; padding: 28px 24px 44px; min-height: 0; text-align: center; border-radius: 26px; }
    .slide p { margin-inline: auto; font-size: 15px; }
    .slide-art { height: 210px; order: -1; }
    .slide-art .pet-face { width: 150px; }
    .blob { width: 200px; height: 200px; }
    .float { width: 68px; border-radius: 16px; } .f2 { width: 58px; }
    .dots { inset-inline: 0; justify-content: center; }
    .pets, .promo { grid-template-columns: 1fr; gap: 12px; }
    .pet-card { padding: 20px 22px; }
    .pet-card h3 { font-size: 21px; }
    .pet-card .pet-face { width: 100px; }
    .sec-head h2 { font-size: 19px; }
    .rail > * { flex-basis: 172px; }
    .grid, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .pcard { padding: 8px; border-radius: 18px; }
    .price b { font-size: 15px; }
    .add { width: 36px; height: 36px; }
    .offers { flex-direction: column; padding: 18px 14px 4px; border-radius: 26px; }
    .offers-side { flex: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; padding-bottom: 6px; }
    .offers-side > .i, .offers-side br { display: none; }
    .offers-side h2 { font-size: 19px; }
    .posts { grid-template-columns: 1fr; }
    .listing { grid-template-columns: minmax(0, 1fr); }
    .filters { position: fixed; inset: 0; z-index: 110; border-radius: 0; max-height: none; display: none; padding-bottom: 30px; }
    .filters.open { display: block; }
    .filters-head { justify-content: space-between; align-items: center; padding-top: 10px; }
    .sort-label { display: none; }
    .pdp { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .pdp-info h1 { font-size: 19px; }
    .gallery-main { max-width: 300px; margin-inline: auto; border-radius: 24px; }
    .thumbs { justify-content: center; }
    .thumbs button { width: 58px; height: 58px; }
    .pdp-keys li { padding: 8px 12px; }
    .buybox { padding: 18px; border-radius: 22px; }
    /* نوار خرید ثابت بالای نوار پایین */
    .buy-bar { position: fixed; inset-inline: 0; bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 58; display: flex; align-items: center; gap: 14px; background: #fff; padding: 10px 14px 16px; border-radius: 20px 20px 0 0; box-shadow: 0 -8px 24px rgba(91, 52, 112, .14); }
    .buy-bar .buy-price { margin: 0; justify-items: start; line-height: 1.4; }
    .buy-bar .buy-price .now b { font-size: 21px; }
    .buy-bar .buy-price .old { font-size: 12.5px; gap: 6px; }
    .buy-bar .buy-row { flex: 1; margin: 0; }
    .buy-bar .qty { display: none; }
    body:has(.buy-bar) main { padding-bottom: 130px; }
    body:has(.buy-bar) .tabbar { border-radius: 0; box-shadow: none; border-top: 1px solid var(--line); }
    .stock-note { text-align: start; }
    .tabs-card { padding: 4px 20px; border-radius: 22px; }
    .reviews, .checkout, .auth, .account { grid-template-columns: minmax(0, 1fr); }
    .summary, .account-nav { position: static; }
    .account { gap: 14px; padding-top: 16px; }
    main > .account > section { margin-top: 0; }
    .account-nav { display: flex; gap: 6px; padding: 8px; overflow-x: auto; scrollbar-width: none; border-radius: 16px; margin-bottom: 0; }
    .account-user { display: none; }
    .account-nav form { display: contents; }
    .account-nav a, .account-nav button { flex: none; width: auto; white-space: nowrap; padding: 8px 14px; font-size: 14px; }
    .auth { padding-top: 20px; gap: 16px; }
    .auth-art { display: none; }
    .cart-item { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start; }
    .cart-item .qty { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
    .cart-item .line { grid-column: 1 / -1; grid-row: 2; justify-self: end; align-self: center; font-size: 16px; }
    .cart-info { font-size: 14px; line-height: 1.8; }
    .cart-info .unit { white-space: nowrap; }
    .coupon .btn { padding-inline: 16px; }
    .cart-list { padding: 4px 16px; }
    .card { padding: 18px; }
    .form-grid, .info-grid { grid-template-columns: 1fr; }
    .order-row { grid-template-columns: 1fr auto; }
    .order-row > .i { display: none; }
    .track { padding: 14px 8px; font-size: 11.5px; }
    .article { padding: 24px 20px; }
    .trust { grid-template-columns: 1fr 1fr; padding: 16px; gap: 14px; }
    .trust .i { width: 42px; height: 42px; padding: 9px; }
    .trust span { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
    .footer-about { grid-column: 1 / -1; }
    .steps span:not(.on) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
