/* Final interaction polish */
.detail-page { padding-bottom: 150px; }
.hidden { display:none !important; }

.nav {
  gap: 8px;
  padding-left: 16px;
  padding-right: 16px;
  box-shadow: 0 -8px 24px rgba(31, 41, 68, .06);
}

.nav button {
  min-height: 47px;
  grid-auto-flow: column;
  grid-template-columns: 20px auto;
  justify-content: center;
  gap: 5px;
  border-radius: 13px;
  font-size: 12px;
}

.nav .nav-icon { font-size: 19px; line-height: 1; }

.nav button.active {
  color: var(--blue);
  background: var(--blue-soft);
}

.phone-row { display: block; }

.phone-row input {
  width: 100%;
  padding: 3px 0 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 16px;
  font-weight: 750;
}

.phone-row input::placeholder { color: #a5adbc; font-weight: 500; }
.phone-row input.invalid { color: var(--red); }
.input-error { display:block; min-height:16px; margin-top:5px; color:var(--red); font-size:12px; font-weight:650; }
.contact-switch { display:grid; grid-template-columns:1fr 1fr; gap:7px; margin:13px 0 4px; padding:4px; border-radius:12px; background:#f4f6fb; }
.contact-help { margin:16px 0 7px; }.contact-help b,.contact-help span { display:block; }.contact-help b { font-size:14px; }.contact-help span { margin-top:3px; color:var(--muted); font-size:12px; line-height:1.35; }
.contact-switch button { padding:9px; border-radius:9px; background:transparent; color:var(--muted); font-size:13px; font-weight:750; }
.contact-switch button.active { color:var(--blue); background:#fff; box-shadow:0 2px 8px rgba(35,60,110,.1); }

.price s, .detail-price s { margin-left: 7px; color: #9aa3b3; font-size: .75em; font-weight: 650; }
.color-label b { color: var(--ink); }
.colors { overflow-x: auto; padding: 1px; }
.description-card { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 17px; }
.description-card p { margin: 0; color: var(--muted); line-height: 1.5; }

.option-label { margin: 18px 0 10px; color: var(--muted); font-size: 14px; }
.option-label b { color: var(--ink); }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.option { padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff; font-size: 13px; font-weight: 700; }
.option.active { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }

/* Product photos are prepared in 1080 × 1440, so the detail view keeps the full portrait visible. */
.detail-visual { display: grid; place-items: center; aspect-ratio: 3 / 4; background: #f6f7f9; }
.detail-image { height: 100%; object-fit: contain; }
.detail-gallery { display: flex; gap: 8px; overflow-x: auto; padding: 2px 1px; margin: -8px 0 18px; }
.detail-thumb { flex: 0 0 auto; width: 58px; height: 76px; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.detail-thumb.active { border: 2px solid var(--blue); }
.detail-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-visual { aspect-ratio: 3 / 4; display:grid; place-items:center; }
.product-image { object-fit:contain; }
.product-quantity { display:flex; align-items:center; justify-content:space-between; margin-top:20px; padding:13px 14px; border:1px solid var(--line); border-radius:15px; background:#fbfcff; }
.product-quantity span b,.product-quantity span small { display:block; }.product-quantity span b { font-size:14px; }.product-quantity span small { margin-top:3px; color:var(--muted); font-size:11px; }.product-quantity > div { display:flex; align-items:center; gap:16px; }.product-quantity button { display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:var(--blue-soft);color:var(--blue);font-size:19px; }.product-quantity strong { min-width:12px;text-align:center; }
.home-hero { position:relative; overflow:hidden; margin:20px 0 26px; padding:20px; border-radius:23px; color:#fff; background:linear-gradient(135deg,#2457d6,#4c78e6); box-shadow:0 13px 28px rgba(36,87,214,.2); }.home-hero:after { content:""; position:absolute; width:170px;height:170px;right:-70px;top:-76px;border:30px solid rgba(255,255,255,.13);border-radius:50%; }.home-hero .eyebrow { margin:0 0 7px;color:#dce8ff; }.home-hero h1 { position:relative; z-index:1;font-size:29px; }.home-hero p:not(.eyebrow) { position:relative;z-index:1;max-width:255px;margin:11px 0 17px;color:#eaf0ff;line-height:1.35;font-size:13px; }.home-hero button { position:relative;z-index:1;padding:10px 12px;border-radius:10px;background:#fff;color:var(--blue);font-size:13px;font-weight:850; }.home-hero button span{margin-left:7px;font-size:16px; }
.topbar + .section-head { margin-top:30px; }
.products .product-card { padding:7px; border:1px solid #edf0f6; border-radius:19px; box-shadow:0 5px 16px rgba(28,43,72,.035); }.products .product-visual { margin-bottom:10px; border-radius:14px; }.products .product-name,.products .price { margin-left:3px;margin-right:3px; }.products .price { padding-bottom:4px; }
.delivery-note { margin: -8px 0 18px; color: #376254; font-size: 13px; font-weight: 700; }
.quantity-row,.order-total { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.quantity-row > div { display: flex; align-items: center; gap: 13px; }.quantity-row button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); font-size: 18px; }.order-total b { color: var(--blue); font-size: 16px; }.success-actions { display: grid; gap: 9px; }.secondary { width: 100%; padding: 13px; border: 1px solid var(--blue); border-radius: 12px; color: var(--blue); background: #fff; font-size: 15px; font-weight: 800; }
