/*!
 * Fırsat Pazarı — tema stilleri
 * Kampanya odaklı: sayaç, kupon galerisi, satıcı rozetleri, stok aciliyeti.
 */

:root {
  --brand: #7c2d92;
  --brand-dark: #641f77;
  --brand-soft: #f8eefc;
  --accent: #e11d74;
  --accent-soft: #fdf0f7;
  --ink: #1a1523;
  --ink-2: #453d52;
  --ink-3: #786f85;
  --line: #e7e3ec;
  --line-2: #f4f1f7;
  --bg: #f7f5f9;
  --surface: #ffffff;
  --ok: #0f7a4f;
  --ok-soft: #e8f7f0;
  --danger: #d0342c;
  --star: #f0a020;
  --r: 12px;
  --shadow: 0 1px 2px rgba(26, 21, 35, .05), 0 10px 26px -12px rgba(26, 21, 35, .2);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; overflow-x: clip; }
.container { width: min(1280px, 100% - 2rem); margin-inline: auto; }
.muted { color: var(--ink-3); }
.tiny { font-size: 12px; }
.sm { font-size: 13.5px; }
.bold { font-weight: 600; }
.mono { font-family: var(--mono); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .62rem 1.05rem; border-radius: 10px; font-weight: 600; font-size: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: background .14s, border-color .14s, transform .1s; white-space: nowrap; }
.btn:hover { background: var(--line-2); }
.btn:active { transform: scale(.98); }
.btn--brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent:hover { background: #c2185f; border-color: #c2185f; }
.btn--block { width: 100%; }
.btn--lg { padding: .8rem 1.4rem; font-size: 15px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.linkbtn { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.linkbtn:hover { color: var(--danger); }

.chip { display: inline-flex; align-items: center; gap: .25rem; padding: .2rem .5rem; border-radius: 6px; font-size: 11.5px; font-weight: 700; background: var(--line-2); color: var(--ink-2); }
.chip--sale { background: var(--accent); color: #fff; }
.chip--flash { background: linear-gradient(90deg, #e11d74, #f97316); color: #fff; }
.chip--ok { background: var(--ok-soft); color: var(--ok); }
.chip--brand { background: var(--brand-soft); color: var(--brand); }
.badge-platin { background: #ede9fe; color: #6d28d9; }
.badge-altin { background: #fef3c7; color: #a16207; }
.badge-gumus { background: #f1f5f9; color: #475569; }

/* ---------------- Başlık ---------------- */
.promoline { background: linear-gradient(90deg, var(--brand), var(--accent)); color: #fff; text-align: center; font-size: 13px; font-weight: 600; padding: .45rem 1rem; }
.promoline b { font-family: var(--mono); letter-spacing: .08em; padding: .1rem .35rem; border-radius: 4px; background: rgba(255, 255, 255, .2); }

.hdr { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.hdr__top { display: flex; align-items: center; gap: 1rem; padding: .75rem 0; }
.hdr__logo { display: flex; align-items: center; gap: .45rem; font-size: 20px; font-weight: 800; letter-spacing: -.03em; flex: none; }
.hdr__logo svg { width: 26px; height: 26px; color: var(--accent); }
.hdr__logo b { color: var(--accent); }

.search { flex: 1 1 auto; position: relative; min-width: 0; }
.search input { width: 100%; height: 44px; padding: 0 2.6rem 0 1rem; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); }
.search input:focus { outline: none; border-color: var(--brand); }
.search__go { position: absolute; right: 5px; top: 5px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; }
.search__go:hover { background: var(--brand-dark); }
.sugg { position: absolute; inset-inline: 0; top: calc(100% + 6px); z-index: 80; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; max-height: 380px; overflow-y: auto; }
.sugg a { display: flex; align-items: center; gap: .65rem; padding: .55rem .8rem; }
.sugg a:hover { background: var(--line-2); }
.sugg img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex: none; }
.sugg__n { font-size: 13.5px; line-height: 1.25; }
.sugg__c { font-size: 11.5px; color: var(--ink-3); }
.sugg__empty { padding: .9rem .8rem; font-size: 13.5px; color: var(--ink-3); }

.hdr__acts { display: flex; align-items: center; gap: .2rem; flex: none; }
.iconbtn { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: .08rem; padding: .35rem .6rem; border-radius: 10px; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.iconbtn:hover { background: var(--brand-soft); color: var(--brand); }
.iconbtn svg { width: 21px; height: 21px; }
.iconbtn__n { position: absolute; top: .05rem; right: .28rem; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; }
.iconbtn__n[data-zero] { display: none; }

.catbar { border-top: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: none; }
.catbar::-webkit-scrollbar { display: none; }
.catbar ul { display: flex; }
.catbar a { display: block; padding: .6rem .75rem; font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; border-bottom: 2px solid transparent; }
.catbar a:hover, .catbar a.on { color: var(--brand); border-bottom-color: var(--brand); }

/* ---------------- Bölüm ---------------- */
.sec { padding: 1.5rem 0; }
.sec__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; flex-wrap: wrap; }
.sec__head h2 { font-size: clamp(18px, 2.4vw, 22px); letter-spacing: -.025em; display: flex; align-items: center; gap: .5rem; }
.sec__head a { font-size: 13.5px; font-weight: 600; color: var(--brand); }

/* ---------------- Flash kuşağı ---------------- */
.flashband {
  border-radius: 16px; padding: 1.1rem 1.2rem; margin-top: 1rem; color: #fff;
  background: linear-gradient(115deg, #4a1259 0%, #7c2d92 45%, #e11d74 100%);
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.flashband h2 { font-size: clamp(19px, 3vw, 26px); letter-spacing: -.03em; }
.flashband p { font-size: 13.5px; opacity: .9; }
.countdown { display: flex; gap: .35rem; align-items: center; margin-left: auto; }
.countdown span { min-width: 46px; padding: .4rem .3rem; border-radius: 8px; background: rgba(255, 255, 255, .16); text-align: center; font: 800 18px/1.1 var(--mono); letter-spacing: -.02em; }
.countdown span small { display: block; font: 500 9.5px/1.4 var(--font); opacity: .8; letter-spacing: .04em; text-transform: uppercase; }
.countdown i { font-style: normal; font-weight: 800; opacity: .55; }

/* ---------------- Kupon galerisi ---------------- */
.coupons { display: grid; grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); gap: .8rem; }
.coupons > * { min-width: 0; }
.coupon {
  position: relative; display: flex; flex-direction: column; gap: .15rem;
  padding: .95rem 1rem; border-radius: var(--r); background: var(--surface);
  border: 1.5px dashed var(--brand); overflow: hidden;
}
.coupon::before, .coupon::after {
  content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 1.5px dashed var(--brand); left: -9px;
}
.coupon::before { top: -9px; } .coupon::after { bottom: -9px; }
.coupon strong { font-size: 17px; letter-spacing: -.02em; color: var(--brand); }
.coupon span { font-size: 12.5px; color: var(--ink-3); }
.coupon__code { margin-top: .5rem; display: flex; gap: .4rem; align-items: center; }
.coupon__code code { flex: 1; min-width: 0; padding: .3rem .55rem; border-radius: 6px; background: var(--brand-soft); color: var(--brand); font: 700 13px/1.4 var(--mono); letter-spacing: .08em; text-align: center; }

/* Kategori kutuları */
.cattiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .7rem; }
.cattile { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1rem .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font-size: 13px; font-weight: 600; text-align: center; transition: border-color .14s, transform .14s; }
.cattile:hover { border-color: var(--brand); transform: translateY(-2px); }
.cattile__ph {
  width: 62px; height: 62px; border-radius: 50%; overflow: hidden; background: #fff;
  display: block; flex: none; border: 1px solid var(--line);
}
.cattile__ph img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- Ürün kartı ---------------- */
.grid { display: grid; gap: .85rem; }
.grid--p { grid-template-columns: repeat(auto-fill, minmax(198px, 1fr)); }
.grid--p > * { min-width: 0; }

.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .14s, box-shadow .14s; }
.card:hover { border-color: #d6cfe0; box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 1/1; background: #fff; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__pct { position: absolute; left: 0; top: .5rem; padding: .22rem .55rem .22rem .5rem; border-radius: 0 6px 6px 0; background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: -.01em; }
.card__flash { position: absolute; left: .5rem; bottom: .5rem; }
.card__fav { position: absolute; right: .45rem; top: .45rem; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .93); color: var(--ink-3); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.card__fav svg { width: 17px; height: 17px; }
.card__fav.on { color: var(--accent); } .card__fav.on svg { fill: currentColor; }
.card__body { display: flex; flex-direction: column; gap: .28rem; padding: .7rem .75rem .8rem; flex: 1 1 auto; }
.card__seller { display: flex; align-items: center; gap: .3rem; font-size: 11px; color: var(--ink-3); }
.card__name { font-size: 13.5px; line-height: 1.35; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__rate { display: flex; align-items: center; gap: .3rem; font-size: 12px; color: var(--ink-3); }
.card__rate .mz-stars { color: var(--star); }
.card__price { margin-top: auto; padding-top: .35rem; }
.card__old { font-size: 12.5px; color: var(--ink-3); text-decoration: line-through; }
.card__now { font-size: 19px; font-weight: 800; letter-spacing: -.03em; color: var(--accent); display: block; }
.stockbar { margin-top: .45rem; }
.stockbar__track { height: 5px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.stockbar__fill { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #f97316, #e11d74); }
.stockbar__t { font-size: 11px; color: var(--ink-3); margin-top: .22rem; }
.card__add { margin-top: .5rem; }
.card__link { position: absolute; inset: 0; z-index: 1; }
/* .card__fav absolute kalmalı; burada sadece yığın sırası veriliyor. */
.card__body .btn { position: relative; z-index: 2; }
.card__fav, .card__pct, .card__flash { z-index: 2; }

/* ---------------- Liste ---------------- */
.listing { display: grid; grid-template-columns: 248px 1fr; gap: 1.3rem; align-items: start; padding-block: 1.1rem; }
.listing > * { min-width: 0; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); position: sticky; top: 122px; }
.fgrp { padding: .9rem 1rem; border-bottom: 1px solid var(--line-2); }
.fgrp:last-child { border-bottom: 0; }
.fgrp h3 { font-size: 12.5px; font-weight: 700; margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.fopt { display: flex; align-items: center; gap: .5rem; padding: .2rem 0; font-size: 13.5px; cursor: pointer; }
.fopt input { accent-color: var(--brand); width: 15px; height: 15px; flex: none; }
.fopt span:last-child { color: var(--ink-3); font-size: 12px; margin-left: auto; }
.frange { display: flex; align-items: center; gap: .4rem; }
.frange input { width: 100%; min-width: 0; height: 34px; padding: 0 .5rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.frange input:focus { outline: none; border-color: var(--brand); }

.listing__head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-bottom: .8rem; }
.listing__head h1 { font-size: clamp(18px, 2.5vw, 23px); letter-spacing: -.025em; }
.sortbar { display: flex; align-items: center; gap: .5rem; }
.sortbar select { height: 38px; padding: 0 2rem 0 .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 13.5px; font-weight: 600; }
.actchips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.actchip { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .6rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 12.5px; font-weight: 600; }
.actchip button { color: inherit; font-size: 15px; line-height: 1; }
.filters-toggle { display: none; }
.empty { padding: 3rem 1rem; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.empty h3 { font-size: 17px; margin-bottom: .4rem; }
.pager { display: flex; justify-content: center; gap: .3rem; margin-top: 1.5rem; flex-wrap: wrap; }
.pager button { min-width: 38px; height: 38px; padding: 0 .6rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; }
.pager button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager button:disabled { opacity: .45; }

/* ---------------- Ürün detay ---------------- */
.crumb { display: flex; flex-wrap: wrap; gap: .3rem; padding: .85rem 0; font-size: 13px; color: var(--ink-3); }
.crumb a:hover { color: var(--brand); }
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 306px; gap: 1.3rem; align-items: start; }
.pdp > * { min-width: 0; }
.gal__main { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; aspect-ratio: 1/1; }
.gal__main img { width: 100%; height: 100%; object-fit: cover; }
.gal__thumbs { display: flex; gap: .45rem; margin-top: .45rem; }
.gal__thumbs button { width: 62px; height: 62px; border-radius: 10px; overflow: hidden; border: 2px solid var(--line); background: var(--surface); }
.gal__thumbs button.on { border-color: var(--brand); }
.gal__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp h1 { font-size: clamp(19px, 2.6vw, 25px); letter-spacing: -.026em; line-height: 1.24; margin: .25rem 0 .5rem; }
.pdp__brand { font-size: 12.5px; font-weight: 700; color: var(--brand); }
.pdp__meta { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.pdp__meta .mz-stars { color: var(--star); }
.urgency { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem; margin-top: 1rem; }
.urgency > * { min-width: 0; }
.urgency div { padding: .65rem .8rem; border-radius: 10px; background: var(--accent-soft); border: 1px solid #f7d6e6; font-size: 13px; }
.urgency b { display: block; font-size: 16px; letter-spacing: -.02em; color: var(--accent); }

.buybox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; position: sticky; top: 122px; }
.buybox__pct { display: inline-block; padding: .2rem .5rem; border-radius: 6px; background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 800; }
.buybox__old { font-size: 14px; color: var(--ink-3); text-decoration: line-through; }
.buybox__price { font-size: 29px; font-weight: 800; letter-spacing: -.035em; color: var(--accent); }
.buybox__row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .5rem 0; font-size: 13px; border-bottom: 1px solid var(--line-2); }
.buybox__row:last-of-type { border-bottom: 0; }
.buybox .mz-qty { border: 1px solid var(--line); border-radius: 10px; }
.pdpcount { display: flex; gap: .3rem; justify-content: center; margin: .6rem 0 .2rem; }
.pdpcount span { min-width: 42px; padding: .35rem .25rem; border-radius: 8px; background: var(--ink); color: #fff; text-align: center; font: 800 16px/1.1 var(--mono); }
.pdpcount span small { display: block; font: 500 9px/1.5 var(--font); opacity: .7; text-transform: uppercase; }

.sellercard { display: flex; align-items: center; gap: .65rem; padding: .75rem; background: var(--bg); border-radius: 10px; margin-bottom: .8rem; }
.sellercard__av { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; flex: none; }
.sellerstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-top: .5rem; }
.sellerstats > * { min-width: 0; }
.sellerstats div { text-align: center; padding: .45rem .3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.sellerstats b { display: block; font-size: 14px; }
.sellerstats span { font-size: 10.5px; color: var(--ink-3); }

.tabs { display: flex; border-bottom: 1px solid var(--line); margin-top: 2rem; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { padding: .7rem .95rem; font-size: 14px; font-weight: 600; color: var(--ink-3); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }
.tabpane { padding: 1.1rem 0; }
.spec { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .5rem; }
.spec > * { min-width: 0; }
.spec div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; }
.spec dt { color: var(--ink-3); } .spec dd { margin: 0; font-weight: 600; text-align: right; }
.rev { display: flex; gap: .8rem; padding: .85rem 0; border-bottom: 1px solid var(--line-2); }
.rev__av { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); display: grid; place-items: center; font-weight: 700; color: var(--brand); flex: none; }
.rev__head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: 13px; }
.rev__head .mz-stars { color: var(--star); }
.rev p { margin-top: .25rem; font-size: 14px; color: var(--ink-2); }

/* ---------------- Sepet & ödeme ---------------- */
.cartpage { display: grid; grid-template-columns: 1fr 340px; gap: 1.3rem; align-items: start; padding-block: 1.1rem; }
.cartpage > * { min-width: 0; }
.cartlist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cartrow { display: grid; grid-template-columns: 82px 1fr auto; gap: .9rem; padding: .9rem; border-bottom: 1px solid var(--line-2); align-items: start; }
.cartrow > * { min-width: 0; }
.cartrow:last-child { border-bottom: 0; }
.cartrow img { width: 82px; height: 82px; border-radius: 10px; object-fit: cover; }
.cartrow__name { font-size: 14px; font-weight: 600; line-height: 1.35; }
.cartrow__var { font-size: 12.5px; color: var(--ink-3); margin-top: .12rem; }
.cartrow__acts { display: flex; align-items: center; gap: .6rem; margin-top: .5rem; }
.cartrow .mz-qty { border: 1px solid var(--line); border-radius: 10px; }
.cartrow__price { text-align: right; font-weight: 800; font-size: 16px; white-space: nowrap; color: var(--accent); }

.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; position: sticky; top: 122px; }
.summary h3 { font-size: 15.5px; margin-bottom: .7rem; }
.sumrow { display: flex; justify-content: space-between; gap: 1rem; padding: .38rem 0; font-size: 14px; }
.sumrow.total { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .65rem; font-size: 19px; font-weight: 800; letter-spacing: -.025em; }
.sumrow .free { color: var(--ok); font-weight: 700; }
.saveline { padding: .55rem .7rem; border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-size: 13px; font-weight: 700; text-align: center; margin-bottom: .6rem; }
.couponbox { display: flex; gap: .4rem; margin: .6rem 0; }
.couponbox input { flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); text-transform: uppercase; }
.couponbox input:focus { outline: none; border-color: var(--brand); }
.shipbar { margin: .55rem 0; }
.shipbar__track { height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.shipbar__fill { height: 100%; background: var(--ok); border-radius: 3px; transition: width .3s; }

.steps { display: flex; align-items: center; gap: .5rem; padding: 1.1rem 0; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: .45rem; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.step i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); font-style: normal; font-size: 12.5px; }
.step.on { color: var(--ink); } .step.on i { background: var(--brand); color: #fff; }
.step.done i { background: var(--ok); color: #fff; }
.step__sep { flex: 1 1 20px; height: 1px; background: var(--line); min-width: 12px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.05rem; margin-bottom: .9rem; }
.panel h2 { font-size: 15.5px; margin-bottom: .85rem; }
.formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .75rem; }
.formgrid > * { min-width: 0; }
.field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: .28rem; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; height: 42px; padding: 0 .75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.field textarea { height: auto; padding: .6rem .75rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124, 45, 146, .12); }
.field.err input, .field.err select, .field.err textarea { border-color: var(--danger); }
.field__err { font-size: 12px; color: var(--danger); margin-top: .22rem; }
.field--full { grid-column: 1 / -1; }
.pick { display: flex; flex-direction: column; gap: .45rem; }
.pick label { display: flex; align-items: center; gap: .65rem; padding: .72rem .85rem; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 14px; }
.pick label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pick input { accent-color: var(--brand); width: 17px; height: 17px; flex: none; }
.pick .r { margin-left: auto; font-weight: 700; white-space: nowrap; }

.okbox { text-align: center; padding: 2.3rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.okbox__ic { width: 60px; height: 60px; margin: 0 auto .85rem; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.okbox__ic svg { width: 29px; height: 29px; }
.okbox h1 { font-size: 22px; letter-spacing: -.02em; }
.okno { display: inline-block; margin-top: .55rem; padding: .35rem .8rem; border-radius: 8px; background: var(--bg); font: 700 15px/1 var(--mono); letter-spacing: .06em; }

.ftr { background: var(--surface); border-top: 1px solid var(--line); margin-top: 2.4rem; padding: 2rem 0 1.2rem; }
.ftr__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.4rem; }
.ftr__grid > * { min-width: 0; }
.ftr h4 { font-size: 13px; margin-bottom: .55rem; }
.ftr li { padding: .18rem 0; font-size: 13.5px; color: var(--ink-3); }
.ftr__bot { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 1080px) {
  .pdp { grid-template-columns: minmax(0, 1fr) 306px; }
  .pdp__info { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 900px) {
  .listing { grid-template-columns: 1fr !important; }
  .filters { position: static; display: none; } .filters.open { display: block; }
  .filters-toggle { display: inline-flex; }
  .cartpage { grid-template-columns: 1fr !important; }
  .summary { position: static; }
  .countdown { margin-left: 0; }
}
@media (max-width: 760px) {
  .pdp { grid-template-columns: 1fr !important; }
  .buybox { position: static; }
  .hdr__top { flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; }
  .grid--p { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); }
  .cartrow { grid-template-columns: 68px 1fr; }
  .cartrow img { width: 68px; height: 68px; }
  .cartrow__price { grid-column: 2; text-align: left; }
  .promoline { font-size: 12px; }
}
@media (max-width: 420px) {
  .grid--p { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .countdown span { min-width: 40px; font-size: 16px; }
}
