/* ===== Anfora Gold — asosiy uslublar ===== */
:root {
  --ink: #111113;
  --bg: #ecebee;
  --white: #ffffff;
  --soft: #f3f2f0;
  --muted: #86868b;
  --line: #e2e2e5;
  --gold: #c9a45c;
  --r-lg: 36px;
  --r-md: 28px;
  --r-sm: 20px;
  --shadow: 0 24px 60px rgba(50, 35, 25, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
img { max-width: 100%; display: block; }
.i { width: 20px; height: 20px; flex: none; }
.i.gold { color: var(--gold); }
.muted { color: var(--muted); }

/* Fon dog'lari */
.blobs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blobs span { position: absolute; border-radius: 50%; filter: blur(140px); opacity: 0.55; }
.blobs span:nth-child(1) { width: 700px; height: 700px; background: #fbcbb3; left: -250px; top: -200px; }
.blobs span:nth-child(2) { width: 600px; height: 600px; background: #f5bcc6; right: -200px; top: 25%; }
.blobs span:nth-child(3) { width: 700px; height: 700px; background: #fae2a8; left: 20%; bottom: -350px; }

/* Shisha effekti */
.glass {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

/* Tugmalar */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 56px; padding: 0 28px; border-radius: 100px;
  background: var(--ink); color: var(--white);
  font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: transform 0.2s, opacity 0.2s;
}
.pill:hover { transform: translateY(-2px); }
.pill.light { background: var(--white); color: var(--ink); }
.pill.ghost { background: transparent; color: var(--white); border: 1.2px solid rgba(255,255,255,.5); }
.pill.outline { background: transparent; color: var(--ink); border: 1.2px solid var(--ink); }
.pill.sm { height: 40px; padding: 0 20px; font-size: 13px; }
.pill.block { width: 100%; display: flex; flex-direction: row; justify-content: space-between; flex: none; }
.pill-ic { flex: none; }
.pill:has(.pill-ic) { padding-right: 8px; }
.pill-ic {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--white);
}
.pill-ic.inv { background: var(--white); color: var(--ink); }
.pill-ic .i { width: 18px; height: 18px; }

.cbtn {
  position: relative; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); flex: none;
  transition: transform .2s;
}
.cbtn:hover { transform: scale(1.06); }
.cbtn.dark { background: var(--ink); color: var(--white); }
.cbtn.soft { background: var(--soft); }
.cbtn.lg { width: 56px; height: 56px; }
.cbtn.sm { width: 40px; height: 40px; }
.cbtn.xs { width: 30px; height: 30px; }
.cbtn.xs .i { width: 14px; height: 14px; }
.badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--gold); color: var(--ink);
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.badge:empty, .badge[data-zero] { display: none; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); display: inline-block; }
.chip-dark, .chip-ink {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 8px 16px; border-radius: 100px; font-size: 12px; font-weight: 600;
}
.chip-dark { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: var(--white); }
.chip-ink { background: var(--ink); color: var(--white); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ===== Menyu ===== */
.nav {
  position: sticky; top: 20px; z-index: 50;
  margin: 24px 64px 0; padding: 10px 10px 10px 28px; border-radius: 100px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo .i { width: 28px; height: 28px; color: var(--gold); }
.logo span { font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 24px; letter-spacing: .12em; }
.logo.light { color: var(--white); }
.menu { display: flex; gap: 36px; font-weight: 500; font-size: 14px; color: var(--muted); }
.menu a.active, .menu a:hover { color: var(--ink); font-weight: 600; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.search {
  display: flex; align-items: center; gap: 10px; height: 48px; width: 280px;
  padding: 0 20px; border-radius: 100px; background: var(--white); color: var(--muted);
}
.search .i { width: 18px; height: 18px; }
.search input { border: 0; outline: 0; background: none; font: inherit; font-size: 13px; width: 100%; color: var(--ink); }

/* ===== Asosiy bloklar ===== */
main { padding: 28px 64px 0; display: flex; flex-direction: column; gap: 88px; }
.block { display: flex; flex-direction: column; gap: 28px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
h2 { font-size: 36px; font-weight: 700; letter-spacing: -0.03em; }
.link { font-weight: 600; font-size: 14px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 390px; gap: 24px; min-height: 580px; }
.hero-card {
  border-radius: var(--r-lg); padding: 56px; color: var(--white);
  background: radial-gradient(circle at 70% 50%, #4f4533 0%, #1f1f21 70%);
  display: grid; grid-template-columns: 1fr 300px; align-items: center; gap: 24px;
}
.hero-text { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; }
.hero-text p { opacity: .7; line-height: 1.6; max-width: 480px; }
.hero-img { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.i.big { width: 240px; height: 240px; }
.orbit { width: 240px; height: 36px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); }
.orbit.dark { border-color: rgba(17,17,19,.3); width: 340px; height: 48px; }
.hero-side { display: flex; flex-direction: column; gap: 24px; }
.side-card { border-radius: 32px; padding: 28px; display: flex; gap: 16px; transition: transform .2s; }
.side-card:hover { transform: translateY(-3px); }
.side-card.white { background: var(--white); flex: 1; }
.side-card.white > div:first-child { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.side-card.white .pill { margin-top: auto; width: fit-content; }
.side-card h3 { font-size: 26px; line-height: 1.15; }
.side-card p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.side-card.glass { align-items: center; justify-content: space-between; }
.side-card h4 { font-size: 18px; margin-bottom: 4px; }
.ph {
  width: 150px; border-radius: 22px; display: grid; place-items: center;
  background: radial-gradient(circle, #fff3dc 0%, var(--soft) 70%);
}
.ph .i { width: 90px; height: 90px; color: #2a2a2c; }

/* Kategoriyalar */
.cats { display: flex; gap: 48px; flex-wrap: wrap; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; }
.cat .circle {
  width: 84px; height: 84px; border-radius: 50%; background: var(--white);
  display: grid; place-items: center; transition: .2s;
}
.cat .circle .i { width: 40px; height: 40px; }
.cat:hover .circle { transform: translateY(-3px); }
.cat.active .circle { background: var(--ink); color: var(--gold); }
.cat.active { font-weight: 600; }

/* Filtr chiplari */
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  padding: 10px 20px; border-radius: 100px; background: var(--white);
  border: 1px solid var(--line); font-size: 13px; font-weight: 600;
}
.chip.active { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Mahsulot kartalari */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: var(--white); border-radius: var(--r-md); padding: 12px 12px 18px;
  display: flex; flex-direction: column; gap: 14px; transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .img {
  position: relative; aspect-ratio: 1 / 0.95; border-radius: var(--r-sm); overflow: hidden;
  background: radial-gradient(circle, #fff3dc 0%, var(--soft) 70%);
  display: grid; place-items: center; color: #2a2a2c;
}
.card .img .i { width: 42%; height: 42%; }
.card .img img { width: 100%; height: 100%; object-fit: cover; }
.card .new {
  position: absolute; top: 14px; left: 12px; padding: 6px 12px; border-radius: 100px;
  background: var(--ink); color: var(--white); font-size: 11px; font-weight: 600;
}
.card .fav { position: absolute; top: 12px; right: 12px; }
.card .fav.on { background: var(--ink); color: var(--white); }
.card .body { padding: 0 8px; display: flex; flex-direction: column; gap: 6px; }
.card h3 { font-size: 18px; font-weight: 600; }
.card .meta { font-size: 13px; color: var(--muted); }
.card .foot { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; }
.card .foot b { font-size: 15px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Kun mahsuloti */
.featured {
  border-radius: 40px; padding: 40px; display: grid; grid-template-columns: 560px 1fr;
  gap: 56px; align-items: center;
}
.f-main {
  height: 480px; border-radius: 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: radial-gradient(circle, #fff3dc 0%, var(--soft) 70%); color: #2a2a2c;
}
.i.huge { width: 280px; height: 280px; }
.f-info { display: flex; flex-direction: column; gap: 22px; }
.f-info h2 { font-size: 44px; }
.f-info p { line-height: 1.65; font-size: 15px; }
.opt { display: flex; flex-direction: column; gap: 12px; }
.label { font-size: 13px; font-weight: 600; color: var(--muted); }
.round-chips { display: flex; gap: 8px; }
.round-chips button {
  min-width: 64px; height: 48px; padding: 0 16px; border-radius: 100px; background: var(--white);
  font-size: 13px; font-weight: 600;
}
.round-chips button.active { background: var(--ink); color: var(--white); }
.f-weight { font-size: 15px; }
hr { border: 0; height: 1px; background: rgba(17,17,19,.1); }
.buy { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.price { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.price small { color: var(--muted); font-size: 13px; }
.price b { font-size: 24px; }

/* Qadamlar */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--white); border-radius: 32px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.step.dark { background: var(--ink); color: var(--white); }
.step.dark p { color: rgba(255,255,255,.7); }
.step.dark .cbtn { color: var(--ink); }
.step-top { display: flex; justify-content: space-between; align-items: center; }
.step em { font-style: normal; font-size: 32px; font-weight: 700; opacity: .25; }
.step h3 { font-size: 24px; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* Footer */
.footer {
  margin: 88px 64px 48px; padding: 56px; border-radius: 40px; color: var(--white);
  background: radial-gradient(circle at 50% 30%, #4a4030 0%, #1f1f21 70%);
  display: flex; flex-direction: column; gap: 48px;
}
.f-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.f-cta h2 { font-size: 44px; line-height: 1.12; margin-bottom: 12px; }
.f-cta p { opacity: .65; font-size: 15px; }
.f-cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 40px;
}
.f-cols > div { display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.f-cols a, .f-cols span, .small { color: rgba(255,255,255,.55); }
.f-cols a:hover { color: var(--white); }
.f-cols h5 { font-size: 14px; font-weight: 600; }

/* Savat */
.overlay { position: fixed; inset: 0; background: rgba(17,17,19,.35); opacity: 0; pointer-events: none; transition: .3s; z-index: 90; }
.drawer {
  position: fixed; top: 16px; right: 16px; bottom: 16px; width: min(420px, calc(100% - 32px));
  background: var(--bg); border-radius: 32px; padding: 24px; z-index: 100;
  display: flex; flex-direction: column; gap: 16px;
  transform: translateX(110%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.cart-open #overlay { opacity: 1; pointer-events: auto; }
.cart-open .drawer { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-head h3 { font-size: 26px; }
.drawer-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.c-item { background: var(--white); border-radius: 22px; padding: 10px; display: flex; gap: 12px; align-items: center; }
.c-item .ph { width: 72px; height: 72px; border-radius: 16px; flex: none; }
.c-item .ph .i { width: 40px; height: 40px; }
.c-item .txt { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.c-item h4 { font-size: 15px; }
.c-item small { color: var(--muted); font-size: 11px; }
.qty { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; }
.cart-empty { color: var(--muted); text-align: center; margin: auto; }
.summary { background: var(--white); border-radius: 24px; padding: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.summary div { display: flex; justify-content: space-between; }
.summary span { color: var(--muted); }
.note { text-align: center; color: var(--muted); font-size: 11px; }

.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 140px);
  background: var(--ink); color: var(--white); padding: 14px 24px; border-radius: 100px;
  font-size: 13px; font-weight: 600; transition: transform .3s, opacity .3s; z-index: 120; opacity: 0;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.tabbar { display: none; }

/* ===== Planshet ===== */
@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side { flex-direction: row; }
  .hero-side > * { flex: 1; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .featured { grid-template-columns: 1fr; }
  .f-main { height: 380px; }
  .menu { display: none; }
}

/* ===== Telefon (ilova ko'rinishi) ===== */
@media (max-width: 760px) {
  body { background: #f6f5f7; }
  .nav { margin: 12px 16px 0; top: 12px; padding: 8px 8px 8px 18px; }
  .logo span { font-size: 20px; }
  .search { display: none; }
  .nav .cart-btn { display: none; }
  main { padding: 20px 16px 0; gap: 48px; }
  h2 { font-size: 26px; }
  .hero-card { grid-template-columns: 1fr; padding: 32px 24px; border-radius: 28px; }
  .hero-img { display: none; }
  .hero-side { flex-direction: column; }
  .side-card.white .ph { width: 120px; }
  .cats { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; scrollbar-width: none; }
  .cat .circle { width: 72px; height: 72px; }
  .block-head .chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .chip { white-space: nowrap; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card { border-radius: 22px; padding: 8px 8px 12px; gap: 10px; }
  .card .img { border-radius: 16px; }
  .card .body { padding: 0 4px; }
  .card h3 { font-size: 14px; }
  .card .meta { font-size: 11px; }
  .card .foot b { font-size: 12px; }
  .card .foot .cbtn { width: 32px; height: 32px; }
  .card .fav { width: 30px; height: 30px; top: 8px; right: 8px; }
  .card .new { top: 10px; left: 8px; font-size: 10px; }
  .featured { padding: 16px; border-radius: 32px; gap: 20px; }
  .f-main { height: 280px; }
  .i.huge { width: 190px; height: 190px; }
  .orbit.dark { width: 220px; height: 30px; }
  .f-info { padding: 4px 8px 8px; gap: 16px; }
  .f-info h2 { font-size: 28px; }
  .price { flex-basis: 100%; }
  .buy .pill { flex: 1; }
  .pill.block { font-size: 13px; }
  .cats { gap: 20px; }
  .steps { grid-template-columns: 1fr; }
  .footer { margin: 48px 16px 120px; padding: 32px 24px; border-radius: 32px; }
  .f-cta h2 { font-size: 30px; }
  .f-cols { grid-template-columns: 1fr 1fr; }
  .tabbar {
    display: flex; position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60;
    gap: 14px; padding: 8px; border-radius: 100px; background: rgba(255,255,255,.75);
  }
  .tabbar > * { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #6e6e73; }
  .tabbar > .active { background: var(--ink); color: var(--white); }
  .tabbar .badge { top: 2px; right: 2px; }
}

/* ===== Haqiqiy rasmlar ===== */
.hero-img img { width: 300px; height: 420px; object-fit: cover; border-radius: 28px; border: 1px solid rgba(255,255,255,.2); }
.ph { overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.cat .circle { overflow: hidden; }
.cat .circle img { width: 100%; height: 100%; object-fit: cover; }
.cat.active .circle { outline: 3px solid var(--ink); outline-offset: 3px; }
.f-main { overflow: hidden; }
.f-main img { width: 100%; height: 100%; object-fit: cover; }
.card { cursor: pointer; }
.card .img img { transition: transform .4s; }
.card:hover .img img { transform: scale(1.05); }
.card .foot b { font-size: 13px; color: var(--muted); font-weight: 600; }
.small-dark { font-size: 13px; margin-top: 4px; }
.c-img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; flex: none; }
.pill.disabled { opacity: .4; pointer-events: none; }
.price-note { font-size: 12px; }

/* Mahsulot oynasi */
.modal {
  position: fixed; left: 50%; top: 50%; z-index: 110; width: min(920px, calc(100% - 32px)); max-height: calc(100% - 32px);
  overflow-y: auto; background: var(--bg); border-radius: 36px; padding: 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
  opacity: 0; pointer-events: none; transform: translate(-50%, -46%); transition: .3s;
}
.modal-open .modal { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.modal-open #mOverlay { opacity: 1; pointer-events: auto; }
#mOverlay { z-index: 105; }
.m-close { position: absolute; top: 16px; right: 16px; z-index: 2; }
.m-img { aspect-ratio: 1; border-radius: 28px; overflow: hidden; background: var(--soft); }
.m-img img { width: 100%; height: 100%; object-fit: cover; }
.m-info { display: flex; flex-direction: column; gap: 16px; padding-right: 8px; }
.m-info h2 { font-size: 34px; }
.m-info .round-chips { flex-wrap: wrap; }
.spec { list-style: none; background: var(--white); border-radius: 20px; padding: 6px 18px; }
.spec li { display: flex; justify-content: space-between; padding: 12px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.spec li:last-child { border: 0; }
.spec span { color: var(--muted); }

@media (max-width: 1180px) {
  .hero-img img { width: 240px; height: 340px; }
}
@media (max-width: 760px) {
  .modal { grid-template-columns: 1fr; gap: 16px; padding: 14px; border-radius: 28px; top: auto; bottom: 0; left: 0; width: 100%;
    transform: translateY(100%); border-bottom-left-radius: 0; border-bottom-right-radius: 0; max-height: 92%; }
  .modal-open .modal { transform: none; }
  .m-img { aspect-ratio: 4/3; }
  .m-info { padding: 0 6px 12px; }
  .m-info h2 { font-size: 26px; }
  .cats { gap: 14px; }
  .cat { font-size: 12px; text-align: center; width: 84px; flex: none; }
}
.featured > *, .hero > *, .modal > * { min-width: 0; }
.round-chips { flex-wrap: wrap; }

/* Holat va narx */
.status { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 100px; font-size: 12px; font-weight: 600; }
.status.ok { background: #e3f4e6; color: #1d6b31; }
.status.ask { background: #fbf0dc; color: #8a5a00; }
.status.sold { background: #ececee; color: #6e6e73; }
.card.sold { opacity: .55; }
.card.sold .img img { filter: grayscale(1); }
.new.sold-b { background: #6e6e73; }
.price-b { color: var(--ink) !important; }
.price-note b { font-size: 20px; }
.price-note small { color: var(--muted); font-size: 12px; line-height: 1.5; display: inline-block; margin-top: 4px; }
.m-date { font-size: 12px; }

.more-wrap { display: flex; justify-content: center; }
.m-gal { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.m-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.m-thumbs:empty { display: none; }
.m-thumbs button { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; flex: none; }
.m-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.c-item { position: relative; }
.c-link { font-size: 11px; color: var(--gold); text-decoration: underline; margin-top: 2px; }
.c-del { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.c-del .i { width: 12px; height: 12px; }
.c-del:hover { background: var(--soft); color: var(--ink); }
.c-item .qty { margin-top: 14px; }
.link-btn { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: underline; margin-left: auto; margin-right: 12px; }
.m-date a { text-decoration: underline; color: var(--ink); }
.cart-open .toast { bottom: 110px; }
