/* =====================================================
   AQUASOFT — Product Detail Page
   ===================================================== */

body { overflow-x: hidden; }

/* ─── BREADCRUMB ─── */
.pd-bc { max-width: 1200px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); overflow: hidden; }
.pd-bc a { color: var(--muted); text-decoration: none; }
.pd-bc a:hover { color: var(--teal); }
.pd-bc-sep { color: #d1d5db; }
.pd-rating-sep { color: #d1d5db; }

/* ─── MAIN GRID ─── */
.pd-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px 48px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 36px; align-items: start; }
@media (max-width: 820px) { .pd-wrap { grid-template-columns: 1fr; gap: 0; padding: 0 0 40px; } }

/* ─── GALLERY ─── */
.pd-gallery { position: sticky; top: 80px; width: 100%; min-width: 0; }
@media (max-width: 820px) { .pd-gallery { position: static; padding: 12px 16px 0; } }
.pd-gallery .f-carousel { border: 1.5px solid var(--border); border-radius: 16px; overflow: hidden; background: #fafffe; width: 100%; }
.pd-gallery .f-carousel__track { width: 100% !important; }
.pd-gallery .f-carousel__slide { display: flex; align-items: center; justify-content: center; height: 340px; cursor: zoom-in; padding: 16px; width: 100% !important; min-width: 0; }
@media (max-width: 820px) { .pd-gallery .f-carousel__slide { height: 260px; } }
.pd-gallery .f-carousel__slide img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.f-thumbs { padding: 6px 6px 0 !important; width: 100% !important; overflow: hidden !important; }
.f-thumbs__slide { border-radius: 6px !important; overflow: hidden; border: 2px solid transparent !important; opacity: .6; transition: opacity .15s, border-color .15s !important; }
.f-thumbs__slide.is-nav-selected, .f-thumbs__slide:hover { border-color: var(--teal) !important; opacity: 1 !important; }

/* ─── INFO CARD ─── */
.pd-info {
  background: #fff; border: 1.5px solid var(--border); border-radius: 20px;
  padding: 28px 28px 24px;
  display: flex; flex-direction: column; gap: 0;
}
@media (max-width: 820px) { .pd-info { border-radius: 12px; border: 1.5px solid var(--border); margin: 12px 16px 0; padding: 20px 16px 18px; } }
@media (max-width: 480px) { .pd-info { margin: 10px 12px 0; padding: 18px 14px 16px; } }
.pd-divider { height: 1px; background: var(--border); margin: 18px 0; }

/* Status + category row */
.pd-top-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pd-status { display: inline-flex; align-items: center; gap: 5px; font-size: .73rem; font-weight: 700; color: #16a34a; background: #f0fdf4; border: 1px solid #bbf7d0; padding: 3px 10px; border-radius: 20px; }
.pd-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }
.pd-cat-badge { font-size: .73rem; font-weight: 600; color: var(--teal); background: var(--light); border: 1px solid var(--border); padding: 3px 10px; border-radius: 20px; }

/* Name */
.pd-name { font-size: clamp(1.15rem,2.5vw,1.5rem); font-weight: 900; color: var(--deep) !important; margin: 0 0 10px; line-height: 1.35; }

/* Rating row */
.pd-rating { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pd-stars { color: #f59e0b; font-size: 1rem; letter-spacing: 1px; }
.pd-rating-val { font-size: .82rem; font-weight: 700; color: #374151; }
.pd-rating-link { font-size: .8rem; color: var(--teal); text-decoration: none; cursor: pointer; }
.pd-rating-link:hover { text-decoration: underline; }

/* Price block */
.pd-price-block { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pd-price { font-size: 2.2rem; font-weight: 900; color: var(--deep); line-height: 1; }
.pd-cur { font-size: 1.1rem; font-weight: 700; color: var(--muted); align-self: flex-end; padding-bottom: 3px; }
.pd-old { font-size: .95rem; color: #b0b8c1; text-decoration: line-through; align-self: flex-end; padding-bottom: 4px; }
.pd-sale-badge { background: linear-gradient(135deg,#FF7A45,#FF6B35); color: #fff; font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 20px; letter-spacing: .02em; }

/* Kaspi */
.pd-kaspi { background: var(--light); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; margin-top: 10px; }

/* Quick features */
.pd-features { display: flex; flex-direction: column; gap: 6px; }
.pd-feature { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: #374151; }
.pd-feature::before { content: '✓'; color: var(--teal); font-weight: 900; font-size: .8rem; flex-shrink: 0; }

/* Qty + Buy */
.pd-qty-label { font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.pd-qty-block { display: flex; gap: 10px; align-items: stretch; }
.pd-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; flex-shrink: 0; }
.pd-qty button { width: 42px; height: 52px; background: none; border: none; cursor: pointer; font-size: 1.25rem; font-weight: 700; color: var(--muted); display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s; }
.pd-qty button:hover:not(:disabled) { background: var(--light); color: var(--deep); }
.pd-qty button:disabled { opacity: .35; cursor: default; }
.pd-qty-val { width: 46px; height: 52px; text-align: center; font-size: 1.05rem; font-weight: 800; color: var(--deep); border: none; border-left: 1.5px solid var(--border); border-right: 1.5px solid var(--border); outline: none; background: #fff; font-family: inherit; }
.pd-form-hidden { display: none; }
.pd-buy-btn { flex: 1; height: 52px; background: linear-gradient(135deg,#22c55e,#16a34a); color: #fff; font-size: 1rem; font-weight: 800; border: none; border-radius: 10px; cursor: pointer; box-shadow: 0 6px 20px rgba(34,197,94,.35); transition: opacity .15s, transform .1s; font-family: inherit; white-space: nowrap; letter-spacing: .01em; }
.pd-buy-btn:hover { opacity: .92; transform: translateY(-1px); }

/* Trust row */
.pd-trust { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
@media (max-width: 560px) { .pd-qty-block { flex-direction: column; } .pd-buy-btn { height: 48px; width: 100%; } }
@media (max-width: 480px) { .pd-trust { grid-template-columns: 1fr; } .pd-price { font-size: 1.8rem; } .pd-breadcrumb-wrap { overflow: hidden; } }
.pd-trust-item { display: flex; align-items: center; gap: 8px; background: var(--light); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.pd-trust-icon { flex-shrink: 0; }
.pd-trust-title { font-size: .75rem; font-weight: 700; color: var(--deep); line-height: 1.2; }
.pd-trust-sub { font-size: .69rem; color: var(--muted); margin-top: 1px; }

/* ─── TABS ─── */
.pd-tabs-outer { background: var(--light); border-top: 1px solid var(--border); margin-top: 20px; }
.pd-tabs { max-width: 1200px; margin: 0 auto; padding: 28px 20px 60px; overflow: hidden; }
@media (max-width: 820px) { .pd-tabs { padding: 20px 12px 50px; } }

/* Tab nav — pill style */
.pd-tab-nav {
  display: flex; gap: 6px; margin-bottom: 28px;
  background: #fff; border: 1.5px solid var(--border); border-radius: 12px;
  padding: 5px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  flex-wrap: nowrap;
}
.pd-tab-nav::-webkit-scrollbar { display: none; }
.pd-tab-nav .nav-item { flex: 1; min-width: 0; }
.pd-tab-nav .nav-link {
  display: block; text-align: center;
  padding: 10px 12px; font-size: .85rem; font-weight: 600;
  color: var(--muted); border: none; background: none;
  white-space: nowrap; border-radius: 8px;
  transition: color .15s, background .15s; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis;
}
.pd-tab-nav .nav-link:hover { color: var(--teal); background: var(--light); }
.pd-tab-nav .nav-link.active { color: #fff; background: var(--teal); box-shadow: 0 2px 10px rgba(8,164,147,.3); }
@media (max-width: 480px) { .pd-tab-nav .nav-link { padding: 9px 6px; font-size: .78rem; } }

/* Description */
.pd-desc { font-size: .9rem; line-height: 1.8; color: #374151; max-width: 760px; }
.pd-desc h3 { font-size: 1.05rem; font-weight: 800; color: var(--deep); margin: 0 0 14px; }

/* Specs */
.pd-specs-wrap { overflow-x: auto; }
.pd-specs { width: 100%; border-collapse: collapse; font-size: .88rem; border-radius: var(--r); overflow: hidden; box-shadow: 0 4px 18px rgba(8,164,147,.07); }
.pd-specs thead th { background: var(--light); color: var(--deep); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 11px 16px; text-align: left; border-bottom: 2px solid var(--border); }
.pd-specs tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: #374151; vertical-align: top; }
.pd-specs tbody tr:last-child td { border-bottom: none; }
.pd-specs tbody tr:hover td { background: #fafffe; }
.pd-specs td:first-child { color: var(--muted); font-weight: 600; width: 50%; }

/* Reviews */
.pd-rev-summary {
  display: flex; align-items: center; gap: 20px; margin-bottom: 24px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--deep) 0%, #0a5e57 100%);
  border-radius: 16px; padding: 24px 28px;
  box-shadow: 0 6px 24px rgba(8,164,147,.18);
}
.pd-rev-score { font-size: 3.2rem; font-weight: 900; color: #fff; line-height: 1; }
.pd-rev-stars-big { color: #f59e0b; font-size: 1.5rem; letter-spacing: 3px; }
.pd-rev-count-text { font-size: .83rem; color: rgba(255,255,255,.7); margin-top: 2px; }
.pd-rev-kaspi-wrap { margin-left: auto; }
.pd-rev-kaspi-wrap img { width: 52px; height: 52px; object-fit: contain; display: block; border-radius: 12px; }
.pd-reviews { display: flex; flex-direction: column; gap: 12px; }
.pd-review { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 18px 20px; }
.pd-rev-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.pd-rev-logo { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; width: 60px; }
.pd-rev-logo img { width: 44px; height: 44px; object-fit: contain; display: block; border-radius: 10px; }
.pd-rev-meta { flex: 1; }
.pd-rev-author { font-weight: 700; color: var(--deep); font-size: .88rem; }
.pd-rev-date { font-size: .72rem; color: var(--muted); margin-top: 1px; }
.pd-rev-stars { color: #f59e0b; font-size: .9rem; letter-spacing: 1px; }
.pd-rev-text { font-size: .87rem; color: #374151; line-height: 1.65; }
.pd-rev-helpful { font-size: .72rem; color: #b0b8c1; margin-top: 8px; }
.pd-no-reviews { text-align: center; padding: 48px 20px; background: var(--light); border-radius: var(--r); }
.pd-no-reviews p { margin: 0; font-size: .9rem; color: var(--muted); }
