/* Appily Twentysix — product detail (PDP) */

.sv-pdp {
  padding: 28px 0 56px;
  background: var(--sv-white);
}

.sv-pdp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

/* ── Gallery (single image, no thumbnails) ── */
.sv-pdp-gallery-frame {
  position: relative;
  background: #F3F5F4;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 24px;
}

.sv-pdp-gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.sv-pdp-gallery-frame:hover img {
  transform: scale(1.03);
}

.sv-pdp-gallery-zoom {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--sv-border);
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  color: var(--sv-ink);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(20, 20, 20, 0.06);
}

/* ── Info panel ── */
.sv-pdp-info {
  padding-top: 8px;
}

.sv-pdp-title {
  margin: 0 0 10px;
  font-family: var(--sv-sans);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--sv-ink);
}

.sv-pdp-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #C0392B;
}

.sv-pdp-social-icon {
  font-size: 1rem;
  line-height: 1;
}

.sv-pdp-price-block {
  margin-bottom: 20px;
}

.sv-pdp-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
}

.sv-pdp-price-old {
  font-size: 1.15rem;
  color: #9A9A9A;
  text-decoration: line-through;
  font-weight: 500;
}

.sv-pdp-price-current {
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--sv-ink);
  letter-spacing: -0.02em;
}

.sv-pdp-discount {
  margin: 8px 0 0;
  font-size: 0.92rem;
  color: var(--sv-muted);
}

.sv-pdp-discount strong {
  color: var(--sv-ink);
  font-weight: 700;
}

.sv-pdp-desc {
  margin: 0 0 22px;
  color: #555;
  line-height: 1.65;
  font-size: 0.95rem;
}

.sv-pdp-desc p {
  margin: 0 0 12px;
}

.sv-pdp-desc p:last-child {
  margin-bottom: 0;
}

.sv-pdp-variant {
  margin-bottom: 22px;
}

.sv-pdp-variant-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sv-ink);
}

.sv-pdp-variant-value {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid var(--sv-ink);
  background: var(--sv-white);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--sv-ink);
}

.sv-pdp-urgency {
  margin: 0 0 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #C0392B;
}

.sv-pdp-availability {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--sv-border);
  border-bottom: 1px solid var(--sv-border);
  margin-bottom: 22px;
  font-size: 0.95rem;
}

.sv-pdp-availability dt {
  font-weight: 600;
  color: var(--sv-muted);
}

.sv-pdp-availability dd {
  margin: 0;
  font-weight: 700;
  color: var(--sv-primary);
}

.sv-pdp-purchase {
  display: grid;
  gap: 16px;
}

.sv-pdp-qty-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sv-ink);
}

.sv-pdp-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--sv-border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--sv-white);
}

.sv-pdp-qty button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--sv-ink);
  transition: background 0.15s ease;
}

.sv-pdp-qty button:hover {
  background: var(--sv-surface);
}

.sv-pdp-qty input {
  width: 52px;
  height: 44px;
  border: 0;
  border-left: 1px solid var(--sv-border);
  border-right: 1px solid var(--sv-border);
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  outline: none;
  -moz-appearance: textfield;
}

.sv-pdp-qty input::-webkit-outer-spin-button,
.sv-pdp-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.sv-pdp-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sv-pdp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.15s ease;
  text-decoration: none;
}

.sv-pdp-btn-cart {
  background: #F0F0F0;
  color: var(--sv-ink);
  border-color: #F0F0F0;
}

.sv-pdp-btn-cart:hover {
  background: #E4E4E4;
  border-color: #E4E4E4;
}

.sv-pdp-btn-buy {
  background: var(--sv-ink);
  color: #fff;
  border-color: var(--sv-ink);
}

.sv-pdp-btn-buy:hover {
  background: #000;
  border-color: #000;
}

.sv-pdp-note {
  margin: 18px 0 0;
  font-size: 0.82rem;
  color: var(--sv-muted);
  line-height: 1.5;
}

/* ── Tabs below main block ── */
.sv-pdp-tabs {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--sv-border);
}

.sv-pdp-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.sv-pdp-tab-nav button {
  padding: 10px 18px;
  border: 1px solid var(--sv-border);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--sv-muted);
  transition: 0.15s ease;
}

.sv-pdp-tab-nav button.is-active {
  background: var(--sv-primary);
  color: #fff;
  border-color: var(--sv-primary);
}

.sv-pdp-tab-panel {
  display: none;
  color: #444;
  line-height: 1.65;
  font-size: 0.95rem;
}

.sv-pdp-tab-panel.is-active {
  display: block;
}

.sv-pdp-tab-panel h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: var(--sv-ink);
}

/* ── Related products ── */
.sv-pdp-related {
  padding: 48px 0 56px;
  background: #E4EBE7;
}

.sv-pdp-related-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.sv-pdp-related-head h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sv-pdp-related-head a {
  font-weight: 700;
  color: var(--sv-primary);
  text-decoration: none;
}

.sv-pdp-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.sv-pdp-card {
  background: var(--sv-white);
  border-radius: var(--sv-radius);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(20, 20, 20, 0.05);
}

.sv-pdp-card-img {
  display: block;
  aspect-ratio: 1;
  padding: 16px;
  background: var(--sv-surface);
}

.sv-pdp-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sv-pdp-card-body {
  padding: 14px;
}

.sv-pdp-card-cat {
  font-size: 0.75rem;
  color: var(--sv-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sv-pdp-card-body h3 {
  margin: 6px 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.sv-pdp-card-body h3 a {
  color: inherit;
  text-decoration: none;
}

.sv-pdp-card-body h3 a:hover {
  color: var(--sv-primary);
}

.sv-pdp-card-price {
  font-weight: 800;
  color: var(--sv-accent);
}

.sv-pdp-card-add {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sv-primary);
  text-decoration: none;
}

@media (max-width: 980px) {
  .sv-pdp-grid {
    grid-template-columns: 1fr;
  }

  .sv-pdp-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .sv-pdp-actions {
    grid-template-columns: 1fr;
  }

  .sv-pdp-related-grid {
    grid-template-columns: 1fr;
  }
}
