/* ===== EPOKA GLOBAL - PRODUCT DETAIL PAGE STYLESHEET ===== */
/* Depends on css/style.css for: CSS variables, navbar, footer, CTA,
   .reveal-on-scroll, back-to-top, .page-wrapper, .btn-primary-honey */


/* ============================================================
   BREADCRUMB SECTION START
   ============================================================ */
.pd-breadcrumb-section {
    background: var(--bg-cream);
    border-bottom: 1.5px solid var(--border);
    padding: 14px 0;
}

.pd-breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.pd-breadcrumb .breadcrumb-item a {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    transition: color 0.2s;
}

.pd-breadcrumb .breadcrumb-item a:hover {
    color: var(--primary-dark);
}

.pd-breadcrumb .breadcrumb-item.active {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-light);
}

.pd-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: var(--border);
    font-size: 12px;
}
/* ============================================================
   BREADCRUMB SECTION END
   ============================================================ */


/* ============================================================
   PRODUCT DETAIL MAIN SECTION START
   ============================================================ */
.pd-main-section {
    padding: 44px 0 56px;
    /* background: var(--bg-light); */
    background: white;
}

/* Two-column layout */
.pd-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: start;
}

/* ===== GALLERY COLUMN START ===== */
.pd-gallery-col {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    position: sticky;
    top: 110px;
}

/* Thumbnail strip — vertical column on the left */
.pd-thumb-strip {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.pd-thumb {
    width: 68px;
    height: 68px;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    background: var(--bg-cream);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.22s, box-shadow 0.22s;
    flex-shrink: 0;
}

.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    transition: transform 0.2s;
}

.pd-thumb:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.pd-thumb.pd-thumb--active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

/* Main image container */
.pd-main-img-wrap {
    flex: 1;
    background: var(--bg-cream);
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.pd-main-img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.pd-main-img-wrap:hover .pd-main-img {
    transform: scale(1.05);
}

/* Badge on main image */
.pd-img-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    pointer-events: none;
}

.pd-img-badge.badge--new { background: var(--secondary); color: #fff; }
.pd-img-badge.badge--bestseller { background: var(--primary); color: var(--text-dark); }
.pd-img-badge.badge--sale { background: #e74c3c; color: #fff; }
/* ===== GALLERY COLUMN END ===== */


/* ===== INFO COLUMN START ===== */
.pd-info-col {
    padding-top: 4px;
}

/* Category tag */
.pd-category-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--bg-warm);
    border: 1.2px solid var(--border);
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 14px;
}

/* Product title */
.pd-product-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

/* Rating row */
.pd-rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.pd-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.pd-stars i {
    color: var(--primary);
    font-size: 14px;
}

.pd-reviews-count {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-light);
}

.pd-rating-divider {
    color: var(--border);
    font-size: 14px;
}

.pd-in-stock {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: #27ae60;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pd-in-stock i {
    font-size: 13px;
}

/* Price block */
.pd-price-block {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.pd-price-old {
    font-family: var(--font-subheading);
    font-size: 16px;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 400;
}

.pd-price-main {
    font-family: var(--font-subheading);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.pd-discount-badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

/* Short description */
.pd-short-desc {
    font-family: var(--font-subheading);
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Divider */
.pd-divider {
    height: 1.5px;
    background: var(--border);
    margin: 22px 0;
    border-radius: 2px;
}

/* Option group wrapper */
.pd-option-group {
    margin-bottom: 20px;
}

.pd-option-label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 10px;
}

/* Weight/size pills */
.pd-weight-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pd-weight-btn {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-mid);
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 8px 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.pd-weight-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-warm);
}

.pd-weight-btn.pd-weight-btn--active {
    background: var(--secondary);
    border-color: var(--primary);
    color: white;
    font-weight: 700;
}

/* Quantity selector */
.pd-qty-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    width: fit-content;
    overflow: hidden;
    background: var(--white);
}

.pd-qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-dark);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s;
}

.pd-qty-btn:hover {
    background: var(--bg-cream);
    color: var(--primary);
}

.pd-qty-value {
    min-width: 44px;
    text-align: center;
    font-family: var(--font-subheading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    border-left: 1.5px solid var(--border);
    border-right: 1.5px solid var(--border);
    padding: 8px 4px;
    user-select: none;
}

/* CTA row */
.pd-cta-row {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

/* Add to Cart button */
.pd-btn-cart {
    flex: 1;
    background: var(--secondary);
    color: #fff;
    border: none;
    border-radius: 40px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s;
    box-shadow: 0 4px 18px rgba(33, 56, 38, 0.3);
    letter-spacing: 0.3px;
}

.pd-btn-cart:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(33, 56, 38, 0.4);
}


/* Meta grid */
.pd-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.pd-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--bg-cream);
    border: 1.2px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
}

.pd-meta-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--bg-warm);
    border: 1.2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 15px;
    flex-shrink: 0;
}

.pd-meta-label {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-light);
    margin-bottom: 2px;
}

.pd-meta-value {
    font-family: var(--font-subheading);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}
/* ===== INFO COLUMN END ===== */
/* ============================================================
   PRODUCT DETAIL MAIN SECTION END
   ============================================================ */


/* ============================================================
   PRODUCT TABS SECTION START
   ============================================================ */
.pd-tabs-section {
    padding: 0 0 60px;
    /* background: var(--bg-light); */
    background: white;
}

/* Tab nav */
.pd-tab-nav {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 36px;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.pd-tab-nav::-webkit-scrollbar { display: none; }

.pd-tab-btn {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-light);
    background: transparent;
    border: none;
    border-bottom: 2.5px solid transparent;
    padding: 14px 28px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    margin-bottom: -2px;
}

.pd-tab-btn:hover {
    color: var(--text-dark);
}

.pd-tab-btn--active {
    color: var(--primary) !important;
    border-bottom-color: var(--primary) !important;
}

/* Tab panels */
.pd-tab-panel {
    display: none;
}

.pd-tab-panel--active {
    display: block;
}

/* Description panel */
.pd-tab-content {
    font-family: var(--font-subheading);
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.8;
    max-width: 780px;
}

.pd-tab-content p {
    margin-bottom: 16px;
}

/* Benefits grid */
.pd-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pd-benefit-card {
    background: var(--white);
    border-right: 3.5px solid var(--border);
    border-bottom: 3.5px solid var(--border);

    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
}

.pd-benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(200, 140, 0, 0.12);
    border-color: var(--primary);
}

.pd-benefit-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--bg-warm);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 22px;
    color: var(--primary);
}

.pd-benefit-card h5 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.pd-benefit-card p {
    font-family: var(--font-subheading);
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Usage list */
.pd-usage-list {
    max-width: 680px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pd-usage-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
}

.pd-usage-step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.pd-usage-text {
    font-family: var(--font-subheading);
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.6;
}

/* Certifications grid */
.pd-cert-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.pd-cert-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 20px;
    min-width: 200px;
}

.pd-cert-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-warm);
    border: 1.2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

.pd-cert-name {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}

.pd-cert-body {
    font-family: var(--font-subheading);
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
}
/* ============================================================
   PRODUCT TABS SECTION END
   ============================================================ */


/* ============================================================
   WHY CHOOSE SECTION START
   ============================================================ */
.pd-why-section {
    padding: 64px 0;
    /* background: var(--bg-cream); */
    background: var(--bg-light);
    border-top: 1.5px solid var(--border);
    border-bottom: 1.5px solid var(--border);
}

.pd-section-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}

.pd-section-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0;
    line-height: 1.3;
}

.pd-why-card {
    background: var(--white);
    border-top: 3.5px solid var(--border);
    border-left: 3.5px solid var(--border);

    border-radius: var(--radius-lg);
    padding: 28px 22px;
    text-align: center;
    height: 100%;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.pd-why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 32px rgba(200, 140, 0, 0.13);
    border-color: var(--primary);
}

.pd-why-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--bg-warm);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    margin: 0 auto 16px;
}

.pd-why-card h5 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.pd-why-card p {
    font-family: var(--font-subheading);
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.65;
    margin: 0;
}
/* ============================================================
   WHY CHOOSE SECTION END
   ============================================================ */


/* ============================================================
   RELATED PRODUCTS SECTION START
   ============================================================ */
.pd-related-section {
    padding: 64px 0;
    /* background: var(--bg-light); */
    background: white;
}

.pd-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

/* Related product card — same style as listing page cards */
.pd-related-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.pd-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 32px rgba(200, 140, 0, 0.15);
    border-color: var(--primary);
}

.pd-related-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 20px;
    pointer-events: none;
}

.pd-related-badge--new { background: var(--secondary); color: #fff; }
.pd-related-badge--bestseller { background: var(--primary); color: var(--text-dark); }

.pd-related-img-wrap {
    width: 100%;
    height: 180px;
    background: var(--bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pd-related-img-wrap img {
    max-height: 130px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.pd-related-card:hover .pd-related-img-wrap img {
    transform: scale(1.07);
}

.pd-related-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pd-related-type {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 4px;
}

.pd-related-name {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.35;
}

.pd-related-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 8px;
}

.pd-related-price {
    font-family: var(--font-subheading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

.pd-related-btn {
    background: var(--secondary);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.pd-related-btn:hover {
    background: var(--secondary-hover);
}
/* ============================================================
   RELATED PRODUCTS SECTION END
   ============================================================ */


/* ============================================================
   RESPONSIVE — TABLET START (≤ 991px)
   ============================================================ */
@media (max-width: 991px) {
    .pd-main-section { padding: 36px 0 48px; }

    /* Stack gallery and info */
    .pd-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    /* Gallery — unstick, horizontal row */
    .pd-gallery-col {
        position: static;
        flex-direction: column-reverse;
    }

    /* Thumbs go horizontal below main image */
    .pd-thumb-strip {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .pd-thumb {
        width: 60px;
        height: 60px;
    }

    /* Main image less tall on tablet */
    .pd-main-img-wrap {
        max-height: 400px;
    }

    /* Benefits — 2 columns */
    .pd-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Related — 2 columns */
    .pd-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ============================================================
   RESPONSIVE — TABLET END
   ============================================================ */


/* ============================================================
   RESPONSIVE — MOBILE START (≤ 575px)
   ============================================================ */
@media (max-width: 575px) {
    .pd-main-section { padding: 24px 0 40px; }

    .pd-product-title { font-size: 1.5rem; }
    .pd-price-main { font-size: 22px; }

    /* Meta grid — single column */
    .pd-meta-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .pd-meta-item {
        padding: 10px 12px;
    }

    /* Thumb strip — smaller */
    .pd-thumb {
        width: 52px;
        height: 52px;
    }

    /* CTA row — stack on very small */
    .pd-cta-row {
        flex-direction: row;
    }

    .pd-btn-cart {
        font-size: 14px;
        padding: 12px 18px;
    }

    /* Tabs — scrollable */
    .pd-tab-btn {
        font-size: 13px;
        padding: 12px 18px;
    }

    /* Benefits — 1 column */
    .pd-benefits-grid {
        grid-template-columns: 1fr;
    }

    /* Related — 2 columns */
    .pd-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .pd-related-img-wrap {
        height: 140px;
    }

    .pd-related-img-wrap img {
        max-height: 100px;
    }

    .pd-related-name { font-size: 13px; }
    .pd-related-price { font-size: 13px; }

    .pd-related-btn {
        padding: 5px 10px;
        font-size: 10px;
    }

    /* Why section */
    .pd-why-section { padding: 48px 0; }

    .pd-cert-grid { gap: 12px; }
    .pd-cert-card { min-width: 160px; }
}

@media (max-width: 400px) {
    .pd-related-grid {
        grid-template-columns: 1fr;
    }

    .pd-meta-grid {
        grid-template-columns: 1fr;
    }
}
/* ============================================================
   RESPONSIVE — MOBILE END
   ============================================================ */