/* =========================================================================
 * product-page.css -- product detail page layout (modern theme)
 *
 * Two-column page: large image grid on the left, details on the right,
 * similar products underneath. Colours come from the theme: --pdp-accent is
 * set in include-css.php from the active theme colour file.
 * ========================================================================= */

:root {
    --pdp-accent: #3f78e0;
    --pdp-ink: #282c3f;
    --pdp-muted: #535766;
    --pdp-soft: #7e818c;
    --pdp-line: #d4d5d9;
    --pdp-line-soft: #eaeaec;
    --pdp-good: #14958f;
    --pdp-tile: #f5f5f6;
}

/* ---------- Page frame ---------- */
.pdp-wrap { max-width: 1480px; padding-left: 30px; padding-right: 30px; }
.pdp-crumbs .breadcrumb { font-size: 14px; flex-wrap: wrap; }
.pdp-crumbs .breadcrumb-item,
.pdp-crumbs .breadcrumb-item a { color: var(--pdp-ink) !important; text-decoration: none; }
.pdp-crumbs .breadcrumb-item:last-child a { font-weight: 700; }
.pdp-crumbs .breadcrumb-item + .breadcrumb-item::before { color: var(--pdp-ink); }

/* ---------- Image grid (left) ---------- */
.pdp .pdp-gallery { padding-right: 12px; }
.pdp .pv-grid {
    gap: 12px;
    max-height: none;
    overflow: visible;
    padding-right: 0;
}
.pdp .pv-grid-item { border-radius: 0; }
.pdp .pv-grid-item:hover img { transform: scale(1.02); }

/* ---------- Details (right) ---------- */
.pdp .pdp-info { padding-left: 24px; color: var(--pdp-ink); }
.pdp-head { padding-bottom: 14px; border-bottom: 1px solid var(--pdp-line); }
.pdp-brand { font-size: 24px; font-weight: 700; line-height: 1.25; color: var(--pdp-ink); }
.pdp-name { font-size: 20px; font-weight: 400; line-height: 1.4; color: var(--pdp-muted); margin: 4px 0 8px; }
.pdp-short { font-size: 14px; line-height: 1.5; color: var(--pdp-soft); margin-bottom: 10px; }
/* Sellers paste headings into the short description: keep it small text */
.pdp-short * { font-size: 14px !important; font-weight: 400 !important; line-height: 1.5 !important; color: inherit !important; margin: 0 0 4px !important; }

.pdp-rating-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border: 1px solid var(--pdp-line-soft); border-radius: 2px;
    font-size: 14px; color: var(--pdp-ink) !important; text-decoration: none;
}
.pdp-rating-chip:hover { border-color: var(--pdp-ink); }
.pdp-rating-chip .fa-star { color: var(--pdp-good); font-size: 12px; }
.pdp-chip-sep { width: 1px; height: 14px; background: var(--pdp-line); margin: 0 4px; }

.pdp-block { padding: 22px 0; border-top: 1px solid var(--pdp-line); }
.pdp-head + .pdp-block { border-top: 0; }
.pdp-h {
    display: flex; align-items: center; gap: 8px;
    font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px;
    color: var(--pdp-ink); margin-bottom: 14px;
}
.pdp-h i { font-size: 20px; font-weight: 400; }
.pdp-sub { font-size: 16px; font-weight: 700; color: var(--pdp-ink); margin: 18px 0 10px; }
.pdp-muted { color: var(--pdp-soft); font-size: 14px; }
.pdp-label { font-size: 14px; font-weight: 700; text-transform: uppercase; color: var(--pdp-ink); }

/* Price */
.pdp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; }
.pdp-now { font-size: 24px; font-weight: 700; color: var(--pdp-ink); }
.pdp-mrp { font-size: 20px; color: var(--pdp-muted); }
.pdp-mrp s { color: var(--pdp-muted); }
.pdp-off { font-size: 20px; font-weight: 700; color: var(--pdp-accent); }
.pdp-tax { font-size: 14px; font-weight: 700; color: var(--pdp-good); margin: 6px 0 4px; }
.pdp-buy .badge { margin-bottom: 8px; }

/* Size / colour options */
.pdp .pv-attribute-group { margin: 22px 0 6px; }
.pdp .pv-attribute-title {
    font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px;
    color: var(--pdp-ink); margin-bottom: 14px;
}
.pdp .pv-options,
.pdp .pv-options.btn-group {
    display: flex !important; flex-wrap: wrap; gap: 12px; width: auto; height: auto;
    border: 0; box-shadow: none; background: transparent; padding: 0;
}
.pdp .pv-options > label.pv-option {
    position: relative; display: inline-flex; flex-direction: column; align-items: center;
    flex: 0 0 auto; margin: 0; padding: 0; border: 0; border-radius: 0;
    background: transparent; box-shadow: none; cursor: pointer;
}
.pdp .pv-option input[type="radio"] {
    position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer;
}
.pdp .pv-size {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 50px; height: 50px; padding: 0 14px;
    border: 1px solid #bfc0c6; border-radius: 25px; background: #fff;
    color: var(--pdp-ink); font-size: 14px; font-weight: 700; white-space: nowrap;
    transition: border-color .15s ease, color .15s ease;
}
.pdp .pv-option:hover .pv-size { border-color: var(--pdp-accent); }
.pdp .pv-option.active .pv-size,
.pdp .pv-option:has(input:checked) .pv-size { border-color: var(--pdp-accent); color: var(--pdp-accent); }
.pdp .pv-color {
    display: block; width: 36px; height: 36px; border: 1px solid #d5d5d5; border-radius: 50%;
}
.pdp .pv-option.active .pv-color,
.pdp .pv-option:has(input:checked) .pv-color { outline: 2px solid var(--pdp-accent); outline-offset: 2px; }
.pdp .pv-image { width: 48px; height: 48px; object-fit: cover; border: 1px solid var(--pdp-line); border-radius: 4px; }
.pdp .pv-option.active .pv-image,
.pdp .pv-option:has(input:checked) .pv-image { border-color: var(--pdp-accent); }
/* Sold out / not made in this colour: greyed chip with a strike */
.pdp .pv-option.pv-unavailable { cursor: not-allowed; }
.pdp .pv-option.pv-unavailable .pv-size,
.pdp .pv-option.pv-unavailable .pv-color,
.pdp .pv-option.pv-unavailable .pv-image { opacity: .4; border-color: var(--pdp-line); color: var(--pdp-soft); }
.pdp .pv-option.pv-unavailable .pv-size {
    background: linear-gradient(to top left, transparent calc(50% - .6px), #b5b5b5 calc(50% - .6px),
        #b5b5b5 calc(50% + .6px), transparent calc(50% + .6px)) #fff;
}
.pdp .pv-stock-badge { margin-top: 4px; }

/* Quantity */
.pdp-qty { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.pdp-qty .num-block { padding: 0 !important; margin: 0 !important; }
.pdp-buy .bg-gray:empty { display: none; }

/* Buttons */
.pdp .pdp-actions {
    display: flex; flex-wrap: wrap; gap: 12px; width: 100%; max-width: none;
    margin-top: 22px; padding: 0;
}
.pdp .pdp-actions .pdp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 54px; margin: 0; padding: 0 22px; border-radius: 4px;
    font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1;
    text-transform: uppercase; letter-spacing: .3px; box-shadow: none; white-space: nowrap;
}
.pdp .pdp-actions .pdp-btn i { font-size: 20px; margin: 0 !important; }
/* Row 1: Add to cart + Buy now. Row 2: Wishlist + compare / WhatsApp. */
.pdp .pdp-actions .pdp-btn-bag,
.pdp .pdp-actions .pdp-btn-buy { flex: 1 1 calc(50% - 6px); }
.pdp .pdp-actions .pdp-btn-wish {
    flex: 1 1 200px; background: #fff; color: var(--pdp-ink) !important;
    border: 1px solid var(--pdp-line); font-size: 18px; /* heart size; text set below */
}
.pdp .pdp-actions .pdp-btn-wish:hover { border-color: var(--pdp-ink); }
/* The heart is the button's own FontAwesome ::before glyph */
.pdp .pdp-actions .pdp-btn-wish::before { font-family: FontAwesome; font-weight: 400; }
.pdp .pdp-actions .pdp-btn-wish.fa-heart::before { color: #ff3f6c; }
.pdp .pdp-wish-text { font-family: Manrope, sans-serif; font-size: 16px; font-weight: 700; }
.pdp .pdp-actions .pdp-btn-icon {
    flex: 0 0 54px; width: 54px; padding: 0; background: #fff;
    color: var(--pdp-ink); border: 1px solid var(--pdp-line);
}
.pdp .pdp-actions .pdp-btn-icon:hover { border-color: var(--pdp-ink); }
.pdp .pdp-actions .pdp-btn-wa { color: #25d366; }
.pdp .pdp-actions .pdp-btn[disabled] { opacity: .55; }

/* Delivery */
.pdp #validate-zipcode-form,
.pdp #validate-city-form { max-width: 360px; margin: 0 0 12px !important; }
.pdp-points { list-style: none; padding: 0; margin: 0; }
.pdp-points li { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 15px; color: var(--pdp-ink); }
.pdp-points i { font-size: 18px; color: var(--pdp-soft); }

/* Product details */
.pdp-desc { font-size: 15px; line-height: 1.6; color: var(--pdp-ink); }
.pdp-desc img { max-width: 100%; height: auto; }
.pdp-desc h1, .pdp-desc h2, .pdp-desc h3, .pdp-desc h4, .pdp-desc h5, .pdp-desc h6 {
    font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--pdp-ink); margin: 12px 0 6px;
}
.pdp-desc > :first-child { margin-top: 0; }
.pdp-desc ul, .pdp-desc ol { padding-left: 18px; }
.pdp-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.pdp-spec { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--pdp-line-soft); }
.pdp-spec span { font-size: 12px; color: var(--pdp-soft); }
.pdp-spec b { font-size: 16px; font-weight: 400; color: var(--pdp-ink); }
.pdp-spec b a { color: var(--pdp-ink); }
#product-desc .d-flex.gap-2 { margin-top: 16px; align-items: center; }

/* Ratings */
.pdp-rating-summary { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; margin-bottom: 10px; }
.pdp-rating-avg { padding-right: 32px; border-right: 1px solid var(--pdp-line); }
.pdp-rating-avg b { font-size: 48px; font-weight: 400; line-height: 1; color: var(--pdp-ink); }
.pdp-rating-avg .fa-star { font-size: 24px; color: var(--pdp-good); }
.pdp-rating-avg span { display: block; margin-top: 10px; font-size: 14px; color: var(--pdp-muted); }
.pdp-rating-bars { flex: 1 1 220px; max-width: 320px; }
.pdp-bar { display: grid; grid-template-columns: 28px 1fr 40px; align-items: center; gap: 8px; font-size: 12px; color: var(--pdp-soft); }
.pdp-bar .fa-star { font-size: 9px; }
.pdp-bar-track { display: block; height: 4px; background: var(--pdp-tile); font-style: normal; }
.pdp-bar-track i { display: block; height: 100%; background: var(--pdp-good); }
.pdp-bar-3 .pdp-bar-track i { background: #72bfbc; }
.pdp-bar-2 .pdp-bar-track i { background: #fcb301; }
.pdp-bar-1 .pdp-bar-track i { background: #f16565; }
.pdp-photos { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.pdp-photo .review-img img,
.pdp-photo img { width: 80px; height: 80px; object-fit: cover; border-radius: 2px; }
.pdp-reviews > hr { display: none; }
.pdp-reviews .row.mt-10 { margin-top: 0 !important; }
.pdp-review-form { margin-top: 14px; }
.pdp-review-form .sidebar,
.pdp-review-form aside { width: 100%; max-width: 100%; flex: 0 0 100%; padding: 0; }
.pdp-review-form [id="rating-box"] { border-radius: 4px; margin-bottom: 14px; }
.pdp #comments .commentlist { padding-left: 0; margin-bottom: 0; }
.pdp #comments .comment { padding: 14px 0; margin: 0 !important; border-bottom: 1px solid var(--pdp-line-soft); }
.pdp #comments .comment:last-child { border-bottom: 0; }
.pdp #comments .comment p { font-size: 15px; color: var(--pdp-ink); }
.pdp #comments .comment-author { font-size: 14px; margin: 0; }
.pdp #comments .user-avatar { margin-right: 10px; }
.pdp #comments .row.reviews { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.pdp #comments .row.reviews > .pdp-photo { padding: 0; width: auto; }

/* FAQs */
.pdp #product-faq .accordion-wrapper .card { border: 0; border-bottom: 1px solid var(--pdp-line-soft); border-radius: 0; box-shadow: none; }
.pdp #product-faq .accordion-wrapper .card-header { padding: 12px 0; background: transparent; }
.pdp #product-faq .accordion-wrapper .card-body { padding: 0 0 14px; }
.pdp #product-faq .add-faqs-form { float: none !important; margin-bottom: 8px; }
.pdp #product-faq img[alt="No Faq"] { width: 110px; }
.pdp #product-faq h4 { font-size: 15px; font-weight: 400; color: var(--pdp-soft); }

/* Product code / seller */
.pdp-meta p { font-size: 16px; color: var(--pdp-ink); margin-bottom: 8px; }
.pdp-link { color: var(--pdp-ink); text-decoration: none; }
.pdp-link:hover { color: var(--pdp-accent); }
.pdp-seller summary { font-size: 16px; font-weight: 700; color: var(--pdp-ink); cursor: pointer; list-style: none; }
.pdp-seller summary::-webkit-details-marker { display: none; }
.pdp-seller summary::after { content: " \203A"; }
.pdp-seller[open] summary { margin-bottom: 14px; }
.pdp-seller .container { padding: 0; }
.pdp-seller .seller-image-container img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; }

/* ---------- Similar products ---------- */
.pdp-similar { border-top: 1px solid var(--pdp-line-soft); }
.pdp-similar-title {
    font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px;
    color: var(--pdp-ink); margin: 32px 0 20px;
}
.pdp-card { position: relative; height: 100%; }
.pdp-card:hover { box-shadow: 0 2px 16px 4px rgba(40, 44, 63, .07); }
.pdp-card-img { display: block; aspect-ratio: 3 / 4; background: var(--pdp-tile); overflow: hidden; }
.pdp-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-card-fav {
    position: absolute; top: 8px; right: 8px; width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92);
    color: var(--pdp-ink); font-size: 16px; cursor: pointer;
}
.pdp-card-fav.fa-heart { color: #ff3f6c !important; }
.pdp-card-body { display: block; padding: 10px 10px 14px; text-decoration: none; }
.pdp-card-brand,
.pdp-card-name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdp-card-brand { font-size: 16px; font-weight: 700; color: var(--pdp-ink); line-height: 1.3; }
.pdp-card-name { font-size: 14px; color: var(--pdp-muted); margin-top: 2px; }
.pdp-card-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin-top: 6px; font-size: 14px; }
.pdp-card-price b { color: var(--pdp-ink); }
.pdp-card-price s { font-size: 12px; color: var(--pdp-soft); }
.pdp-card-price em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--pdp-accent); }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1199.98px) {
    .pdp-wrap { padding-left: 20px; padding-right: 20px; }
    .pdp .pdp-info { padding-left: 12px; }
}
@media (max-width: 767.98px) {
    .pdp-wrap { padding-left: 16px; padding-right: 16px; }
    .pdp .pdp-gallery { padding-right: 12px; margin-bottom: 18px; }
    .pdp .pdp-info { padding-left: 12px; }
    .pdp-brand { font-size: 20px; }
    .pdp-name { font-size: 16px; }
    .pdp-now { font-size: 20px; }
    .pdp-mrp, .pdp-off { font-size: 16px; }
    .pdp .pdp-actions .pdp-btn { height: 48px; font-size: 14px; padding: 0 14px; }
    .pdp .pdp-wish-text { font-size: 14px; }
    .pdp .pdp-actions .pdp-btn-icon { flex-basis: 48px; width: 48px; }
    .pdp .pv-size { min-width: 46px; height: 46px; }
    .pdp-specs { column-gap: 20px; }
    .pdp-rating-summary { gap: 20px; }
    .pdp-rating-avg { padding-right: 20px; }
    .pdp-rating-avg b { font-size: 38px; }
    .pdp-similar-title { margin-top: 24px; }
    .pdp-card-brand { font-size: 14px; }
    .pdp-card-name { font-size: 13px; }
}
@media (max-width: 374.98px) {
    .pdp-specs { grid-template-columns: 1fr; }
    .pdp .pdp-actions .pdp-btn-bag,
    .pdp .pdp-actions .pdp-btn-buy { flex-basis: 100%; }
}

/* No reviews yet: the "0 Reviews" heading adds nothing */
.pdp-no-reviews #comments > h5 { display: none; }
