/* =========================
   PDP IMAGE SLIDER
========================= */

.pdp-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.pdp-track {
  display: flex;
  transition: transform 0.3s ease;
}

.pdp-slide {
  min-width: 100%;
  aspect-ratio: 1/1;
}

.pdp-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp-prev,
.pdp-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
}

.pdp-prev { left: 8px; }
.pdp-next { right: 8px; }

.pdp-dots {
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

.pdp-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}

.pdp-dot.active {
  background: white;
}


/* =========================
   PDP CONTAINER
========================= */

.pdp {
  padding: var(--page-padding);
  background: var(--background, #f9f9f9);
  min-height: 100vh;
}

/* =========================
   TITLE
========================= */

.pdp h1 {
  font-size: 20px;
  font-weight: 600;
  margin: 16px 0 8px;
  color: var(--text-primary, #111);
}

/* =========================
   PRICE
========================= */

.pdp-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary, #000);
  margin-bottom: 12px;
}

/* =========================
   VARIANT SELECT
========================= */

.pdp-variant-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: white;
  font-size: 14px;
  margin-bottom: 16px;
}

/* =========================
   QUANTITY
========================= */

.qty-wrapper {
  display: flex;
  align-items: center;
  width: 140px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

.qty-wrapper button {
  flex: 1;
  padding: 8px;
  background: white;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.qty-wrapper span {
  flex: 1;
  text-align: center;
  font-weight: 600;
}

/* =========================
   ADD TO CART
========================= */

.pdp-add {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;

  background: var(--accent, #000);
  color: white;

  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}

.pdp-add:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

/* =========================
   DESCRIPTION
========================= */

.pdp-description {
  margin-top: 20px;
  padding: 14px;
  background: white;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary, #555);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* =========================
   PRICE BLOCK
========================= */

.pdp-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 18px;
}

.pdp-final {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
}

.pdp-old {
  font-size: 16px;
  text-decoration: line-through;
  color: #888;
}

.pdp-discount {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--text-primary);
}

/* =========================
   PDP Sticky Action Bar
========================= */

.pdp.pdp-sticky-enabled .pdp-add {
  position: sticky;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 50;
}


/* =========================
   DELIVERY CARD
========================= */

.pdp-delivery {
  margin: 14px 0 18px;
}

.delivery-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.delivery-row {
  display: flex;
  align-items: center;
  gap: 10px;
}


.delivery-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

.delivery-icon {
  font-size: 16px;
}


.delivery-input {
  flex: 1;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #ddd;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.delivery-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}


.delivery-status {
  font-size: 14px;
  line-height: 1.4;
  color: #444;
}

.delivery-status b {
  font-weight: 600;
}

.delivery-success {
  color: #1a7f37;
  font-weight: 500;
}

.delivery-error {
  color: #c62828;
  font-weight: 500;
}


/* =========================
   PDP CUSTOM TEXT
========================= */

.pdp-custom {
  margin-top: 14px;
}

.pdp-custom-inner {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;

  box-shadow:
    0 2px 10px rgba(0,0,0,0.05);

  border: 1px solid rgba(0,0,0,0.04);

  transition: transform .15s ease,
              box-shadow .15s ease;
}

.pdp-custom-inner:hover {
  transform: translateY(-1px);
  box-shadow:
    0 6px 18px rgba(0,0,0,0.08);
}

.pdp-custom-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text, #111);
}


.pdp-custom-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

/* =========================
   VARIANT BUTTONS
========================= */

.pdp-variant-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px,1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.variant-btn {
  border: 1px solid #ddd;
  background: white;
  padding: 10px 6px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
}

.variant-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}


/* =========================
   VARIANT CHIPS
========================= */

.pdp-variant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.variant-chip {
  border: 1px solid #ddd;
  background: white;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s ease;
}

.variant-chip.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}