/* ═══════════════════════════════════════════════════════
   PRODUCT PAGE — concept redesign_live_site_product.html
   ═══════════════════════════════════════════════════════ */

.pd-page { background: #f0f2f5; min-height: 80vh; padding-bottom: 60px; }

/* ── 2-column grid ───────────────────────────────── */
.pd-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  margin: 20px 0 40px;
  align-items: start;
}

/* ════════ GALLERY ════════ */
.pd-gallery {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  position: relative;
  border: 1px solid rgba(15,23,42,.06);
}
.pd-gallery-badges {
  position: absolute;
  top: 16px; left: 16px;
  display: flex; flex-direction: column; gap: 6px;
  z-index: 3;
}
.pd-gallery-actions {
  position: absolute;
  top: 16px; right: 16px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 3;
}
.pd-act-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569; font-size: 15px;
  cursor: pointer;
  display: grid; place-items: center;
  transition: all .25s;
}
.pd-act-btn:hover { background: #0284c7; color: #fff; border-color: #0284c7; }

.pd-main-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 380px;
  overflow: hidden;
}
.pd-main-img {
  max-height: 340px;
  max-width: 90%;
  object-fit: contain;
  transition: transform .5s cubic-bezier(.34,1.56,.64,1);
}
.pd-main-img:hover { transform: scale(1.05); }
.pd-img-placeholder {
  font-size: 120px; color: #e2e8f0;
  display: grid; place-items: center;
  width: 100%; height: 100%;
}

/* Thumbnails */
.pd-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.pd-thumb {
  width: 72px; height: 72px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f8fafc;
  cursor: pointer;
  transition: all .25s;
}
.pd-thumb:hover, .pd-thumb.active {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2,132,199,.15);
}

/* ════════ INFO PANEL ════════ */
.pd-info {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  border: 1px solid rgba(15,23,42,.06);
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.pd-info::-webkit-scrollbar { width: 4px; }
.pd-info::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 2px; }

/* Meta */
.pd-meta { margin-bottom: 12px; }
.pd-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.pd-brand-name {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700;
  color: #475569; text-transform: uppercase; letter-spacing: .5px;
}
.pd-stock {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700;
}
.pd-stock-dot {
  width: 7px; height: 7px; border-radius: 50; flex-shrink: 0;
}
.pd-stock--ok  { color: #10b981; }
.pd-stock--ok  .pd-stock-dot { background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,.15); border-radius: 50%; }
.pd-stock--low { color: #f59e0b; }
.pd-stock--low .pd-stock-dot { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.15); border-radius: 50%; }
.pd-stock--out { color: #94a3b8; }
.pd-stock--out .pd-stock-dot { background: #94a3b8; border-radius: 50%; }
/* Під замовлення — очікується */
.pd-stock--preorder { color: #f59e0b; font-size: 12px; }
.pd-stock--preorder .pd-stock-dot { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.15); border-radius: 50%; animation: pulse-amber .9s ease-in-out infinite; }
@keyframes pulse-amber {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(245,158,11,.15); }
  50%       { opacity: .7; box-shadow: 0 0 0 5px rgba(245,158,11,.05); }
}
/* Кнопка кошика для pre-order */
.pd-btn-cart--preorder {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  box-shadow: 0 6px 20px rgba(245,158,11,.35) !important;
}
.pd-btn-cart--preorder:hover {
  background: linear-gradient(135deg, #d97706, #b45309) !important;
  box-shadow: 0 10px 28px rgba(245,158,11,.45) !important;
}
.pd-sku { font-size: 12px; color: #94a3b8; }
.pd-sku strong { color: #64748b; }
/* Дата відвантаження — під кнопкою "В кошик" */
.pd-ship-date {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #92400e;
}
.pd-ship-date i { color: #f59e0b; font-size: 14px; }
.pd-ship-date strong { color: #b45309; }

/* Title */
.pd-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #1d1d1f;
  line-height: 1.3;
  letter-spacing: -.3px;
  margin-bottom: 14px;
}

/* Stars */
.pd-ratings {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
}
.pd-stars { color: #f59e0b; font-size: 14px; display: flex; gap: 2px; }
.pd-rating-val { font-weight: 800; font-size: 15px; color: #1d1d1f; }
.pd-rating-cnt { font-size: 13px; color: #0284c7; font-weight: 600; }
.pd-rating-cnt:hover { text-decoration: underline; }

/* Spec chips */
.pd-spec-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 20px;
}
.pd-chip {
  padding: 5px 12px;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 12px;
  color: #475569;
}
.pd-chip strong { color: #1d1d1f; }

/* Price */
.pd-price-block { margin-bottom: 22px; }
.pd-price-old {
  font-size: 15px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
  margin-bottom: 2px;
}
.pd-price {
  font-family: 'Outfit', sans-serif;
  font-size: 38px;
  font-weight: 900;
  color: #1d1d1f;
  letter-spacing: -1px;
  line-height: 1;
}
.pd-price--sale { color: #ef4444; }
.pd-save-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  background: #fef2f2;
  color: #ef4444;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

/* Buy row */
.pd-buy-row {
  display: flex; gap: 12px; align-items: stretch;
  margin-bottom: 12px;
}
.pd-qty {
  display: flex; align-items: center;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}
.qty-btn {
  width: 40px; height: 48px;
  background: #f8fafc; border: none;
  color: #475569; font-size: 13px;
  cursor: pointer; transition: background .2s;
}
.qty-btn:hover { background: #e2e8f0; }
.qty-input {
  width: 50px; text-align: center;
  border: none; border-left: 1.5px solid #e2e8f0; border-right: 1.5px solid #e2e8f0;
  font-size: 16px; font-weight: 700;
  color: #1d1d1f; font-family: 'Outfit', sans-serif;
  outline: none; height: 48px;
  -moz-appearance: textfield;
}
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.pd-btn-cart {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px;
  background: #0284c7;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all .35s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 6px 20px rgba(2,132,199,.3);
}
.pd-btn-cart:hover {
  background: #0369a1;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(2,132,199,.4);
}

.pd-btn-oneclick {
  width: 100%;
  height: 46px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: #475569;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .25s;
  margin-bottom: 20px;
}
.pd-btn-oneclick:hover { background: #1d1d1f; color: #fff; border-color: #1d1d1f; }
.pd-btn-oneclick i { color: #f59e0b; }

/* Installment */
.pd-installment {
  display: flex; gap: 10px;
  padding: 14px;
  background: #f8fafc;
  border-radius: 12px;
  margin-bottom: 16px;
}
.pd-inst-item {
  flex: 1;
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}
.pd-inst-logo { height: 28px; width: auto; object-fit: contain; }
.pd-inst-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center; flex-shrink: 0;
}
.pd-inst-name { font-size: 13px; font-weight: 700; color: #1d1d1f; }
.pd-inst-detail { font-size: 11px; color: #94a3b8; font-weight: 500; }

/* Delivery */
.pd-delivery { display: flex; flex-direction: column; gap: 12px; }
.pd-del-item {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 13px;
}
.pd-del-item > i {
  width: 36px; height: 36px; border-radius: 10px;
  background: #f0f9ff;
  color: #0284c7;
  font-size: 15px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.pd-del-item strong { display: block; font-size: 13px; color: #1d1d1f; font-weight: 700; margin-bottom: 2px; }
.pd-del-item span { color: #94a3b8; line-height: 1.4; }

/* ════════ TABS ════════ */
.pd-tabs-section { margin-top: 16px; }
.pd-tabs {
  display: flex;
  border-bottom: 2px solid #e2e8f0;
  gap: 4px;
  margin-bottom: 0;
}
.pd-tab {
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  color: #64748b;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all .25s;
}
.pd-tab:hover { color: #0284c7; }
.pd-tab.active { color: #0284c7; border-bottom-color: #0284c7; }

.pd-tab-pane { display: none; padding: 32px 0; }
.pd-tab-pane.active { display: block; }

/* Specs */
.pd-specs-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
.specs-group-title {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #1d1d1f;
  padding: 16px 0 8px;
  border-bottom: 1.5px solid #e2e8f0;
  margin-bottom: 8px;
}
.specs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  gap: 16px;
}
.specs-key { font-size: 14px; color: #64748b; font-weight: 500; }
.specs-val { font-size: 14px; color: #1d1d1f; font-weight: 600; }

/* Aside cards */
.pd-specs-aside { display: flex; flex-direction: column; gap: 14px; }
.pd-aside-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #e2e8f0;
}
.pd-aside-icon {
  font-size: 24px;
  color: #0284c7;
  margin-bottom: 12px;
  display: block;
}
.pd-aside-card h4 { font-size: 15px; font-weight: 800; margin-bottom: 6px; font-family: 'Outfit', sans-serif; }
.pd-aside-card p  { font-size: 13px; color: #64748b; line-height: 1.5; }

/* Description */
.pd-description {
  max-width: 800px;
  font-size: 15px;
  color: #334155;
  line-height: 1.8;
}

/* Reviews empty */
.pd-reviews-empty {
  text-align: center;
  padding: 60px 20px;
}
.pd-reviews-empty i { font-size: 56px; color: #e2e8f0; margin-bottom: 16px; display: block; }
.pd-reviews-empty h3 { font-size: 20px; font-weight: 800; font-family: 'Outfit', sans-serif; margin-bottom: 8px; }
.pd-reviews-empty p { color: #94a3b8; }

/* Related — Carousel */
.pd-related { margin-top: 48px; }

.pd-related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.pd-related-header .section-title { margin: 0; }

.pd-carousel-nav { display: flex; gap: 8px; }
.pd-carousel-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-size: 14px;
  cursor: pointer;
  display: grid; place-items: center;
  transition: all .25s;
  flex-shrink: 0;
}
.pd-carousel-btn:hover:not(:disabled) {
  background: #0284c7;
  border-color: #0284c7;
  color: #fff;
  box-shadow: 0 4px 12px rgba(2,132,199,.3);
}
.pd-carousel-btn:disabled { cursor: default; }

.pd-carousel-wrap {
  overflow: hidden;
  border-radius: 16px;
}
.pd-carousel-track {
  display: flex;
  gap: 0;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  cursor: grab;
  user-select: none;
}
.pd-carousel-track:active { cursor: grabbing; }
.pd-carousel-slide {
  flex: 0 0 calc(25% - 0px);
  padding: 0 8px;
  box-sizing: border-box;
}
@media (max-width: 1100px) { .pd-carousel-slide { flex: 0 0 33.333%; } }
@media (max-width: 800px)  { .pd-carousel-slide { flex: 0 0 50%; } }
@media (max-width: 500px)  { .pd-carousel-slide { flex: 0 0 100%; } }

/* ════════ RESPONSIVE ════════ */
@media (max-width: 1100px) {
  .pd-grid { grid-template-columns: 1fr 380px; }
  .pd-specs-layout { grid-template-columns: 1fr; }
  .pd-specs-aside { display: none; }
}
@media (max-width: 900px) {
  .pd-grid { grid-template-columns: 1fr; }
  .pd-info { position: static; max-height: none; }
}
@media (max-width: 540px) {
  .pd-title { font-size: 18px; }
  .pd-price { font-size: 30px; }
  .pd-buy-row { flex-direction: column; }
  .pd-tabs { overflow-x: auto; }
  .pd-tab { padding: 12px 16px; font-size: 13px; white-space: nowrap; }
}
