/* =========================================================
   PRODUCT DETAIL (DESKTOP)
   ========================================================= */

   .pd-page {
    padding: 80px 0 60px;
    background: #ffffff;
}

.pd-inner {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Breadcrumb */

.pd-breadcrumb {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 18px;
}

.pd-breadcrumb a {
    color: #555;
    text-decoration: none;
}

.pd-breadcrumb a:hover {
    text-decoration: underline;
}

/* Main layout */

.pd-main {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 44px;
    align-items: flex-start;
}

/* Gallery */

.pd-gallery {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pd-main-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f5f5f5;
    border-radius: 2px;
    overflow: hidden;
}

.pd-main-image img {
    width: 100%;
    height: 100%;
    object-fit:cover;
    display: block;
    transform: scale(1.02);
    transition:
        transform 1.1s cubic-bezier(0.19, 1, 0.22, 1),
        filter 0.8s ease;
}

.pd-main-image img:hover {
    transform: scale(1.05);
    filter: brightness(1.03);
}

.pd-main-placeholder {
    width: 100%;
    height: 100%;
    background: #e3e3e3;
}

/* Thumbnails */

.pd-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.pd-thumbs::-webkit-scrollbar {
    height: 4px;
}
.pd-thumbs::-webkit-scrollbar-track {
    background: transparent;
}
.pd-thumbs::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.18);
    border-radius: 999px;
}

.pd-thumb-btn {
    flex: 0 0 80px;
    padding: 0;
    border: none;
    outline: none;
    background: transparent;
    cursor: pointer;
    border-radius: 2px;
    overflow: hidden;
}

.pd-thumb-btn img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    display: block;
    transition:
        transform 0.4s ease,
        filter 0.4s ease,
        opacity 0.4s ease;
    opacity: 0.75;
}

.pd-thumb-btn:hover img {
    transform: scale(1.06);
    filter: brightness(1.04);
    opacity: 1;
}

/* Info panel */

.pd-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pd-collection {
    font-family: "Cinzel", serif;
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #777;
    margin: 0;
}

.pd-name {
    font-family: "Cinzel", serif;
    font-size: 1.9rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #222;
    margin: 2px 0 2px;
}

.pd-category {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #999;
    margin: 0 0 6px;
}

.pd-description {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
    max-width: 520px;
    margin: 0;
}

.pd-description--placeholder {
    color: #b0b0b0;
}

/* Meta grid */

.pd-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 520px;
}

.pd-meta-card {
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.06);
    padding: 12px 14px;
    background: #fafafa;
}

.pd-meta-label {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #888;
    margin: 0 0 4px;
}

.pd-meta-value {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.92rem;
    color: #444;
    margin: 0;
}

/* CTA */

.pd-actions {
    margin-top: 12px;
}

.pd-cta-btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 999px;
    border: 1px solid #111;
    text-decoration: none;
    color: #111;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.pd-cta-btn:hover {
    background: #111;
    color: #ffffff;
}

.pd-note {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #777;
}

/* Related section */

.pd-related {
    padding: 0 0 80px;
    background: #ffffff;
}

.pd-related-inner {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 32px;
}

.pd-related-header {
    margin-bottom: 16px;
}

.pd-related-kicker {
    font-family: "Cinzel", serif;
    font-size: 0.75rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    opacity: 0.6;
    margin: 0 0 6px;
}

.pd-related-title {
    font-family: "Cinzel", serif;
    font-size: 1.2rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #222;
    margin: 0;
}

.pd-related-track {
    margin-top: 10px;
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
}

.pd-related-track::-webkit-scrollbar {
    height: 6px;
}
.pd-related-track::-webkit-scrollbar-track {
    background: #f0f0f0;
}
.pd-related-track::-webkit-scrollbar-thumb {
    background: #c2c2c2;
}

.pd-related-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;

    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;

    display: flex;
    flex-direction: column;
}

.pd-related-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f5f5f5;
    overflow: hidden;
}

.pd-related-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-related-info {
    padding: 8px 10px 10px;
}

.pd-related-collection {
    font-family: "Cinzel", serif;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #888;
    margin: 0 0 3px;
}

.pd-related-name {
    font-family: "Cinzel", serif;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #222;
    margin: 0 0 2px;
}

.pd-related-meta {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.8rem;
    color: #777;
    margin: 0;
}

/* =========================================
   PRODUCT DETAIL – IMAGE CAROUSEL
   ========================================= */

/* Main image wrapper */
.pd-main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f5f5f5;
    border-radius: 2px;
    overflow: hidden;
}

/* Main image */
.pd-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    transform: scale(1.02);
    transition:
        transform 1s cubic-bezier(0.19, 1, 0.22, 1),
        filter 0.6s ease;
}

.pd-main-image img:hover {
    transform: scale(1.05);
    filter: brightness(1.03);
}

/* Navigation arrows */
.pd-main-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;

    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.25);
    background: rgba(255,255,255,0.9);
    color: #111;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
    cursor: pointer;
    padding: 0;

    z-index: 3;
    opacity: 0;
    pointer-events: none;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        background 0.25s ease;
}

/* show arrows on hover */
.pd-main-image:hover .pd-main-nav {
    opacity: 1;
    pointer-events: auto;
}

/* Arrow positions */
.pd-main-nav--prev {
    left: 14px;
}

.pd-main-nav--next {
    right: 14px;
}

/* Arrow hover */
.pd-main-nav:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.08);
}

/* -----------------------------------------
   THUMBNAILS
   ----------------------------------------- */

.pd-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.pd-thumbs::-webkit-scrollbar {
    height: 4px;
}
.pd-thumbs::-webkit-scrollbar-track {
    background: transparent;
}
.pd-thumbs::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.18);
    border-radius: 999px;
}

/* Thumbnail button */
.pd-thumb-btn {
    flex: 0 0 80px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 2px;
    overflow: hidden;
}

/* Thumbnail image */
.pd-thumb-btn img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    display: block;

    opacity: 0.6;
    transition:
        opacity 0.25s ease,
        transform 0.35s ease,
        box-shadow 0.25s ease;
}

/* Hover thumb */
.pd-thumb-btn:hover img {
    opacity: 0.9;
    transform: scale(1.05);
}

/* Active thumbnail */
.pd-thumb-btn.is-active img {
    opacity: 1;
    box-shadow: 0 0 0 2px #111;
}


/* WhatsApp CTA enhancement */

.pd-cta-whatsapp {
    border-color: #1f1f1f;
    background: #ffffff;
    color: #1f1f1f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pd-cta-whatsapp:hover {
    background: #1f1f1f;
    color: #ffffff;
}
/* =========================================
   PRODUCT DETAIL – RESPONSIVE
   ========================================= */

   @media (max-width: 1024px) {
    .pd-main {
      grid-template-columns: minmax(0, 1fr);
      gap: 28px;
    }
  
    .pd-inner {
      padding: 0 20px;
    }
  
    .pd-info {
      max-width: 640px;
    }
  
    .pd-name {
      font-size: 1.6rem;
      letter-spacing: 0.12em;
    }
  }
  
  @media (max-width: 768px) {
    .pd-page {
      padding: 60px 0 50px;
    }
  
    .pd-inner {
      padding: 0 16px;
    }
  
    .pd-breadcrumb {
      font-size: 0.78rem;
    }
  
    .pd-main-image {
      aspect-ratio: 4 / 3;
    }
  
    .pd-main-nav {
      width: 32px;
      height: 32px;
      font-size: 16px;
    }
  
    .pd-thumbs {
      gap: 6px;
    }
  
    .pd-thumb-btn {
      flex: 0 0 68px;
    }
  
    .pd-thumb-btn img {
      height: 60px;
    }
  
    .pd-meta-grid {
      grid-template-columns: minmax(0, 1fr);
    }
  
    .pd-related-inner {
      padding: 0 16px;
    }
  
    .pd-related-card {
      flex: 0 0 200px;
    }
  }

  /* =========================================
   PRODUCT DETAIL – FABRIC SWATCHES
   ========================================= */

.pd-fabrics {
    margin-top: 16px;
    max-width: 520px;
}

.pd-fabrics-label {
    font-family: "Cinzel", serif;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #666;
    margin: 0 0 6px;
}

.pd-fabrics-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pd-fabric-swatch {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #fafafa;

    cursor: pointer;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.8rem;
    color: #444;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.pd-fabric-swatch:hover {
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}

.pd-fabric-swatch.is-active {
    border-color: #111;
    background: #ffffff;
}

.pd-swatch-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--swatch-color, #ddd);
    border: 1px solid rgba(0,0,0,0.15);
}

.pd-swatch-name {
    white-space: nowrap;
}


/* ============================================
   PRODUCT DETAIL – TABLET (768px – 1024px)
   ============================================ */
@media (max-width: 1024px) and (min-width: 768px) {

  .pd-inner {
    padding: 40px 32px 80px;
  }

  .pd-main {
    column-gap: 32px;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: flex-start;
  }

  .pd-main-image {
    max-height: 420px;
  }

  .pd-name {
    font-size: 1.8rem;
  }

  .pd-description {
    font-size: 0.95rem;
  }

  .pd-meta-grid {
    gap: 14px;
  }

  .pd-related-inner {
    padding: 40px 32px 70px;
  }
}

/* When tablet is narrow (e.g. 768–880px) stack gallery above info */
@media (max-width: 880px) and (min-width: 768px) {

  .pd-main {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .pd-gallery,
  .pd-info {
    max-width: 640px;
    margin: 0 auto;
  }

  .pd-thumbs {
    justify-content: center;
  }
}
