/* Shriftlar Google Fonts orqali (inc/layout.php) */
html.fonts {
  --font-display: "Literata";
  --font-body: "Source Sans 3";
}

/* JS yashirgan elementlar klass display'idan qat'i nazar yashirin tursin */
[hidden] { display: none !important; }

:root {
  --spruce: #102820;
  --pine: #1c4638;
  --brass: #a68445;
  --brass-deep: #7c6230;
  --paper: #dfe7e2;
  --snow: #f4f7f5;
  --ink: #14241c;
  --muted: #3f564c;
  --line: #c5d2cb;
  --cranberry: #7d3040;
  --font-display: Georgia, serif;
  --font-body: "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body), "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
}

/* Footer doim sahifa pastida turishi uchun */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }

img { max-width: 100%; }

a { color: var(--pine); }

button,
input,
select,
textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--brass-deep);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: white;
  padding: 0.4rem 0.6rem;
  z-index: 5;
}

.skip:focus { left: 1rem; top: 1rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

:root { --header-h: 4.25rem; }

.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  color: var(--snow);
  background: rgba(16, 40, 32, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(226, 201, 138, 0.3);
}

.masthead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass) 20%, #e2c98a 50%, var(--brass) 80%, transparent);
  opacity: 0.8;
}

.masthead-inner {
  max-width: 1120px;
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cranberry);
}

.masthead .eyebrow { color: #e2c98a; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--snow);
  text-decoration: none;
  min-width: 0;
}

.logo-mark {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  fill: none;
  stroke: #e2c98a;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.6s ease;
}

.logo-ring { stroke: var(--brass); stroke-width: 2.5; fill: rgba(166, 132, 69, 0.12); }

.brand:hover .logo-mark { transform: rotate(-8deg); }

.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }

.brand-name {
  font-family: var(--font-display), Georgia, serif;
  font-size: 1.3rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e2c98a;
  white-space: nowrap;
}

.shop-nav { display: flex; gap: 0.35rem; align-items: center; }

.nav-link {
  position: relative;
  color: rgba(244, 247, 245, 0.8);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  font-size: 0.97rem;
  transition: color 0.15s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.25rem;
  height: 1px;
  background: #e2c98a;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] { color: var(--snow); }

.nav-link:hover::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.4rem;
  padding: 0.5rem 0.95rem;
  color: #1a1408;
  background: var(--brass);
  border: 1px solid var(--brass-deep);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.97rem;
  transition: background 0.15s;
}

.cart-link:hover { background: #c4a15a; }
.cart-link[aria-current="page"] { box-shadow: 0 0 0 2px rgba(226, 201, 138, 0.45); }

.cart-icon {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-count {
  min-width: 1.45rem;
  height: 1.45rem;
  padding: 0 0.35rem;
  display: inline-grid;
  place-items: center;
  font-size: 0.8rem;
  line-height: 1;
  color: var(--snow);
  background: var(--spruce);
  border-radius: 999px;
  animation: pop 0.3s ease;
}

@keyframes pop {
  0% { transform: scale(0.6); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.wrap.narrow { max-width: 760px; }

.page-title {
  font-family: var(--font-display), Georgia, serif;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.12;
  margin: 0 0 0.45rem;
}

.deck { margin: 0 0 0.4rem; max-width: 40rem; color: var(--muted); }

.legend { margin: 0 0 1.2rem; color: var(--muted); font-size: 0.95rem; }

.plate {
  display: inline-block;
  background: var(--brass);
  color: #1a1408;
  font-family: var(--font-display), Georgia, serif;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 0.18rem 0.45rem;
}

.gallery-stage .plate {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 1;
}

.price { font-weight: 700; }
.price-lg { font-size: 1.45rem; font-weight: 700; margin: 0.2rem 0 0.8rem; }

.btn {
  appearance: none;
  border-radius: 8px;
  border: 1px solid var(--pine);
  background: var(--pine);
  color: var(--snow);
  font-weight: 600;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.btn:hover { background: var(--spruce); }

.btn-brass {
  background: var(--brass);
  border-color: var(--brass-deep);
  color: #1a1408;
}

.btn-brass:hover { background: #c4a15a; }

.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: #9aada4;
}

.btn-quiet:hover { background: #e7eeea; }

.btn-danger {
  background: transparent;
  color: var(--cranberry);
  border-color: var(--cranberry);
}

.btn-danger:hover { background: #f8ecec; }

.btn:disabled { opacity: 0.65; cursor: wait; }

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}

.gallery-stage {
  position: relative;
  background: #0e241c;
  aspect-ratio: 1;
}

.gallery-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gallery-empty {
  display: grid;
  place-items: center;
  color: #d5e2db;
  min-height: 280px;
}

.gallery-empty p { margin: 0; }

.thumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.55rem; }

.thumbs button {
  width: 92px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--snow);
  cursor: pointer;
}

.thumbs button[aria-current="true"] { border-color: var(--brass-deep); outline: 2px solid var(--brass); }

.thumbs img { width: 100%; height: 68px; object-fit: cover; display: block; }

.thumbs span {
  display: block;
  font-size: 0.75rem;
  padding: 0.2rem 0.25rem 0.35rem;
  text-align: center;
}

.video-block { margin-top: 1rem; }
.video-block figcaption { font-weight: 700; margin-bottom: 0.4rem; }
.video-block video { width: 100%; background: #0e241c; max-height: 420px; }

.back-link { display: inline-block; margin-bottom: 0.8rem; }

.field { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.9rem; }
.field span { font-weight: 700; font-size: 0.95rem; }
.hint { margin: 0; color: var(--muted); font-size: 0.92rem; font-weight: 400; }

input[type="text"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid #9aada4;
  background: white;
}

textarea { min-height: 7rem; resize: vertical; }
.qty input[type="number"] { width: 5rem; }
.qty { display: flex; align-items: center; gap: 0.45rem; }

.alert {
  background: #f8ecec;
  color: #6d2434;
  padding: 0.7rem 0.8rem;
  border: 1px solid #e4c4c4;
  margin: 0 0 0.9rem;
}

.ok-note {
  background: #e5f0ea;
  border: 1px solid #b7d0c4;
  padding: 0.7rem 0.8rem;
  margin-top: 0.8rem;
}

.line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  background: var(--snow);
  border: 1px solid var(--line);
  padding: 0.75rem;
  margin-bottom: 0.6rem;
}

.line img, .line-fallback {
  width: 72px;
  height: 72px;
  object-fit: cover;
  background: #0e241c;
}

.line-fallback { display: block; }
.line h2 { font-size: 1.05rem; margin: 0 0 0.2rem; font-weight: 700; }
.line-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; }

.totals {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1rem 0;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.empty {
  background: var(--snow);
  border: 1px solid var(--line);
  padding: 1rem;
}

.site-footer {
  position: relative;
  color: rgba(244, 247, 245, 0.72);
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(166, 132, 69, 0.16), transparent 70%),
    linear-gradient(180deg, var(--spruce) 0%, #0b1d17 100%);
  border-top: 3px solid var(--brass);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(244, 247, 245, 0.5) 0 1px, transparent 1.5px);
  background-size: 120px 120px;
  opacity: 0.18;
}

.footer-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1.1fr);
  gap: 2.5rem;
}

.footer-brand .eyebrow { color: #e2c98a; }

.footer-logo {
  font-family: var(--font-display), Georgia, serif;
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--snow);
  text-decoration: none;
}

.footer-about { margin: 0.7rem 0 0; max-width: 26rem; }

.footer-col h2 {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e2c98a;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }

.site-footer a { color: var(--snow); text-decoration: none; }
.site-footer a:hover { color: #e2c98a; text-decoration: underline; text-underline-offset: 3px; }

.footer-notes li { position: relative; padding-left: 1.1rem; }

.footer-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--brass);
  transform: rotate(45deg);
}

.footer-bottom { position: relative; border-top: 1px solid rgba(226, 201, 138, 0.2); }

.footer-bottom-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.25rem 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: rgba(244, 247, 245, 0.55);
}

.footer-bottom-inner a { color: rgba(244, 247, 245, 0.7); }

.order-list { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.muted { color: var(--muted); }

/* ---------- Bosh sahifa ---------- */

html { scroll-behavior: smooth; }

.home-hero {
  position: relative;
  overflow: hidden;
  color: var(--snow);
  background:
    radial-gradient(ellipse 60% 70% at 85% 10%, rgba(166, 132, 69, 0.22), transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(28, 70, 56, 0.9), transparent 70%),
    linear-gradient(180deg, var(--spruce) 0%, #0b1d17 100%);
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(244, 247, 245, 0.55) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(226, 201, 138, 0.45) 0 1px, transparent 1.5px);
  background-size: 140px 140px, 90px 90px;
  background-position: 0 0, 45px 60px;
  opacity: 0.35;
  mask-image: linear-gradient(180deg, black, transparent 85%);
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(2.8rem, 6vw, 4.8rem) 1.25rem clamp(5.5rem, 9vw, 7rem);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-kicker {
  display: inline-block;
  margin: 0 0 1.1rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(226, 201, 138, 0.45);
  border-radius: 999px;
  background: rgba(226, 201, 138, 0.08);
  font-size: 0.85rem;
  font-weight: 700;
  color: #e2c98a;
}

.hero-title {
  font-family: var(--font-display), Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 1.1rem;
  padding-bottom: 0.1em;
  max-width: 15ch;
  text-wrap: balance;
}

.hero-title em { font-style: italic; color: #e2c98a; }

.hero-lead {
  margin: 0 0 1.8rem;
  max-width: 32rem;
  font-size: 1.12rem;
  color: rgba(244, 247, 245, 0.8);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.btn-lg { padding: 0.8rem 1.35rem; font-size: 1.02rem; border-radius: 10px; }

.btn-ghost {
  background: transparent;
  color: var(--snow);
  border-color: rgba(244, 247, 245, 0.4);
}

.btn-ghost:hover { background: rgba(244, 247, 245, 0.08); border-color: rgba(244, 247, 245, 0.7); }

.hero-facts {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.hero-facts > div {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(226, 201, 138, 0.25);
  border-radius: 14px;
  background: rgba(244, 247, 245, 0.05);
  backdrop-filter: blur(4px);
}

.hero-facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }

.hero-facts dt {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(244, 247, 245, 0.62);
  margin-bottom: 0.25rem;
}

.hero-facts dd {
  margin: 0;
  font-family: var(--font-display), Georgia, serif;
  font-size: 2.2rem;
  line-height: 1.1;
  color: var(--snow);
}

.fact-small { display: block; font-size: 1.15rem; line-height: 1.3; }
.fact-note { display: block; font-family: var(--font-body), sans-serif; font-size: 0.85rem; color: rgba(244, 247, 245, 0.6); }

.ornament {
  position: absolute;
  fill: none;
  stroke: #e2c98a;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.ornament-a { width: 260px; right: -60px; top: -70px; opacity: 0.16; animation: drift 60s linear infinite; }
.ornament-b { width: 90px; right: 34%; top: 14%; opacity: 0.22; animation: drift 40s linear infinite reverse; }
.ornament-c { width: 150px; left: -40px; bottom: -50px; opacity: 0.1; stroke: var(--snow); animation: drift 80s linear infinite; }

@keyframes drift { to { transform: rotate(360deg); } }

/* Qadamlar: hero ustiga chiqib turadi */
.home-steps {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: -3.6rem auto 0;
  padding: 0 1.25rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.steps li {
  display: flex;
  gap: 0.9rem;
  padding: 1.2rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 28px -18px rgba(16, 40, 32, 0.45);
}

.step-num {
  flex: none;
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f4ecdb;
  color: var(--brass-deep);
  font-family: var(--font-display), Georgia, serif;
  font-weight: 700;
}

.steps h3 { margin: 0.15rem 0 0.2rem; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* Katalog */
#katalog { scroll-margin-top: var(--header-h); padding-top: 3rem; }

.catalog-head { display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 1rem; }

.catalog-head h2 {
  margin: 0;
  font-family: var(--font-display), Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  line-height: 1.15;
}

.catalog-count {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.cat-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 3;
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.7rem 0;
  margin: 0 0 0.5rem;
  background: linear-gradient(180deg, var(--paper) 80%, transparent);
  scrollbar-width: thin;
}

.cat-nav a {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem 0.45rem 0.95rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.cat-nav a:hover { background: var(--spruce); border-color: var(--spruce); color: var(--snow); }

.cat-nav-count {
  min-width: 1.6rem;
  padding: 0 0.4rem;
  text-align: center;
  font-size: 0.8rem;
  background: var(--paper);
  color: var(--muted);
  border-radius: 999px;
}

.cat-nav a:hover .cat-nav-count { background: var(--brass); color: #1a1408; }

.cat-section { scroll-margin-top: calc(var(--header-h) + 4rem); margin-bottom: 1.5rem; }

.cat-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.8rem 0 1rem;
}

.cat-head h2 {
  margin: 0;
  font-family: var(--font-display), Georgia, serif;
  font-weight: 500;
  font-size: 1.6rem;
}

.cat-num {
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  background: var(--brass);
  color: #1a1408;
  font-weight: 700;
  font-size: 0.85rem;
}

.cat-rule { flex: 1; height: 1px; background: var(--line); }
.cat-count { color: var(--muted); font-size: 0.92rem; white-space: nowrap; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

/* Tovar kartasi */
.pcard {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 40, 32, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pcard:hover {
  transform: translateY(-3px);
  border-color: #b4c3bb;
  box-shadow: 0 18px 36px -22px rgba(16, 40, 32, 0.5);
}

.pcard-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e4ebe7;
  text-decoration: none;
}

.pcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.pcard:hover .pcard-media img { transform: scale(1.04); }

.pcard-noimg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 100%;
  color: rgba(244, 247, 245, 0.7);
  font-size: 0.88rem;
  font-weight: 600;
  background:
    radial-gradient(circle at 70% 20%, rgba(166, 132, 69, 0.3), transparent 55%),
    linear-gradient(160deg, var(--pine), var(--spruce));
}

.pcard-noimg span {
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  border: 1px solid rgba(226, 201, 138, 0.5);
  color: #e2c98a;
  font-family: var(--font-display), Georgia, serif;
  font-size: 1.7rem;
}

.pcard-num,
.pcard-photos {
  position: absolute;
  top: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
}

.pcard-num { left: 0.7rem; background: var(--brass); color: #1a1408; }
.pcard-photos { right: 0.7rem; background: rgba(16, 40, 32, 0.75); color: var(--snow); }

.pcard-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.1rem 1.1rem; }

.pcard-cat {
  margin: 0 0 0.3rem;
  color: var(--brass-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.pcard-body h3 {
  margin: 0;
  font-family: var(--font-display), Georgia, serif;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.25;
}

.pcard-body h3 a { color: inherit; text-decoration: none; }
.pcard-body h3 a:hover { color: var(--pine); text-decoration: underline; text-underline-offset: 3px; }

.pcard-desc {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pcard-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
}

.pcard-price-label { display: block; color: var(--muted); font-size: 0.8rem; }
.pcard-price { font-size: 1.2rem; white-space: nowrap; }

.pcard-add {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--brass-deep);
  border-radius: 10px;
  background: var(--brass);
  color: #1a1408;
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.pcard-add span {
  display: grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: rgba(26, 20, 8, 0.12);
  font-size: 1rem;
  line-height: 1;
}

.pcard-add:hover { background: #c4a15a; }
.pcard-add:active { transform: translateY(1px); }
.pcard-add.is-in { background: var(--pine); border-color: var(--spruce); color: var(--snow); }
.pcard-add.is-in span { background: rgba(244, 247, 245, 0.18); }
.pcard-add.is-in:hover { background: var(--spruce); }

/* Pastki taklif */
.home-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding: 1.8rem 2rem;
  border-radius: 18px;
  color: var(--snow);
  background:
    radial-gradient(ellipse 50% 90% at 100% 0%, rgba(166, 132, 69, 0.28), transparent 70%),
    linear-gradient(135deg, var(--pine), var(--spruce));
}

.home-cta h2 { margin: 0 0 0.3rem; font-family: var(--font-display), Georgia, serif; font-weight: 500; font-size: 1.6rem; }
.home-cta p { margin: 0; max-width: 34rem; color: rgba(244, 247, 245, 0.78); }

.empty-home {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.empty-home h2 { font-family: var(--font-display), Georgia, serif; font-weight: 500; margin: 0.6rem 0 0.3rem; }
.empty-home p { margin: 0; color: var(--muted); }

.empty-ornament {
  width: 64px;
  fill: none;
  stroke: var(--brass);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ornament, .pcard, .pcard-media img, .logo-mark, .cart-count { animation: none; transition: none; }
  .brand:hover .logo-mark { transform: none; }
  .pcard:hover, .pcard:hover .pcard-media img { transform: none; }
}

@media (max-width: 900px) {
  .home-hero-inner { grid-template-columns: 1fr; align-items: start; }
  .hero-facts { max-width: 34rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .ornament-b { display: none; }
  .steps li { padding: 1rem; }
  .catalog-grid { grid-template-columns: 1fr 1fr; }
  .product-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0.6rem; }
  .home-steps { margin-top: -3rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .home-cta { flex-direction: column; align-items: stretch; padding: 1.5rem; }
  .cat-count { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; padding-top: 2.4rem; }
  .line { grid-template-columns: 1fr; display: flex; flex-direction: column; align-items: stretch; }
  :root { --header-h: 3.75rem; }
  .nav-link, .brand-sub { display: none; }
  .brand-name { font-size: 1.1rem; }
  .logo-mark { width: 2.1rem; height: 2.1rem; }
  .cart-link { margin-left: 0.1rem; padding: 0.45rem 0.75rem; }
  .line { display: grid; grid-template-columns: 72px minmax(0, 1fr); }
  .line-actions { grid-column: 1 / -1; align-items: flex-start; }
}
