/* =================================================================
   BP Shop Core – Single Product Page
   Brand: #D7AE01 gold + #000000 black | Poppins
================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ── Body & page reset ───────────────────────────────────────── */
body.bpsc-single-product-page {
    background: #f5f5f5 !important;
    font-family: var(--bpsc-font-family, 'Poppins', sans-serif) !important;
    color: #222 !important;
}

body.bpsc-single-product-page .site-main,
body.bpsc-single-product-page #primary,
body.bpsc-single-product-page #main {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

body.bpsc-single-product-page .woocommerce-notices-wrapper {
    max-width: 1550px;
    margin: 0 auto;
    padding: 12px 24px 0;
}

/* Hide default WC single product output if theme still renders it */
/* body.bpsc-single-product-page .woocommerce div.product {
    display: none !important;
} */

/* ── Wrapper ─────────────────────────────────────────────────── */
#bpsc-single-product-wrap {
    padding-top: 24px;
    padding-bottom: 60px;
}

#bpsc-single-product-wrap .bpsc-container {
    max-width: 1550px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
    display: block !important;
}

/* ── Main product layout: 50/50 split ────────────────────────── */
.bpsc-sp-main {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 48px !important;
    background: #fff !important;
    border: 1px solid #e8e8e8 !important;
    padding: 36px !important;
    margin-bottom: 24px !important;
    box-sizing: border-box !important;
    align-items: flex-start !important;
}

/* ── Gallery column (left half) ──────────────────────────────── */
.bpsc-sp-gallery-col {
    display: flex !important;
    flex-direction: row !important;
    gap: 14px !important;
    align-items: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* Vertical thumbnail strip — LEFT side of main image */
.bpsc-sp-thumbs {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 76px !important;
    min-width: 76px !important;
    flex-shrink: 0 !important;
    max-height: 500px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 2px !important;
    order: 0 !important;
}

.bpsc-sp-thumbs::-webkit-scrollbar {
    width: 3px;
}
.bpsc-sp-thumbs::-webkit-scrollbar-track {
    background: transparent;
}
.bpsc-sp-thumbs::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

.bpsc-sp-thumb {
    position: relative !important;
    flex-shrink: 0 !important;
    width: 72px !important;
    height: 72px !important;
    border: 1.5px solid #e0e0e0 !important;
    background: #fff !important;
    padding: 5px !important;
    cursor: pointer !important;
    border-radius: 4px !important;
    transition: border-color 0.2s ease !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.bpsc-sp-thumb:hover {
    border-color: #D7AE01 !important;
}

.bpsc-sp-thumb.is-active {
    border-color: #D7AE01 !important;
    border-width: 2px !important;
}

/* Active thumb – small gold dot indicator at bottom */
.bpsc-sp-thumb.is-active::after {
    content: '' !important;
    position: absolute !important;
    bottom: 3px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 14px !important;
    height: 3px !important;
    background: #D7AE01 !important;
    border-radius: 2px !important;
    z-index: 2 !important;
}

.bpsc-sp-thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* Main image area — RIGHT of thumbnails, fills remaining width */
.bpsc-sp-main-image {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    border: 1px solid #e5e7eb !important;
    background: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 500px !important;
    padding: 20px !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    position: relative !important;
    /* Subtle shadow for depth */
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06) !important;
    order: 1 !important;
    transition: box-shadow 0.2s ease !important;
}

.bpsc-sp-main-image:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10) !important;
}

.bpsc-sp-featured-img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}

.bpsc-sp-main-image:hover .bpsc-sp-featured-img {
    transform: scale(1.03) !important;
}

/* ── Summary column (right half) ─────────────────────────────── */
.bpsc-sp-summary {
    min-width: 0;
    box-sizing: border-box;
}

.bpsc-sp-title {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #111 !important;
    margin: 0 0 14px !important;
    line-height: 1.35 !important;
    font-family: var(--bpsc-font-family, 'Poppins', sans-serif) !important;
}

/* ── Rating ──────────────────────────────────────────────────── */
.bpsc-sp-rating {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
}

.bpsc-sp-rating .star-rating {
    color: #D7AE01 !important;
}

.bpsc-sp-review-link {
    font-size: 13px !important;
    color: #666 !important;
    text-decoration: none !important;
}

.bpsc-sp-review-link:hover {
    color: #D7AE01 !important;
}

/* ── Price row ───────────────────────────────────────────────── */
.bpsc-sp-price-row {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-bottom: 18px !important;
}

.bpsc-sp-price {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #D7AE01 !important;
}

.bpsc-sp-price ins {
    text-decoration: none !important;
    color: #D7AE01 !important;
}

.bpsc-sp-price del {
    color: #999 !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    margin-right: 6px !important;
    text-decoration: line-through !important;
}

.bpsc-sp-save-badge {
    display: inline-flex !important;
    align-items: center !important;
    background: #22c55e !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
}

.bpsc-sp-short-desc {
    font-size: 13.5px !important;
    color: #555 !important;
    line-height: 1.7 !important;
    margin-bottom: 20px !important;
}

/* ── Quantity ─────────────────────────────────────────────────── */
.bpsc-sp-qty-row {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
}

.bpsc-sp-qty-label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #444 !important;
}

.bpsc-sp-qty {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    background: #fff !important;
}

.bpsc-sp-qty-btn {
    width: 36px !important;
    height: 36px !important;
    border: none !important;
    background: #f5f5f5 !important;
    font-size: 17px !important;
    cursor: pointer !important;
    color: #333 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s !important;
    font-weight: 400 !important;
}

.bpsc-sp-qty-btn:hover {
    background: #e8e8e8 !important;
    color: #000 !important;
}

.bpsc-sp-qty-input {
    width: 48px !important;
    height: 36px !important;
    border: none !important;
    border-left: 1px solid #ddd !important;
    border-right: 1px solid #ddd !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #111 !important;
    background: #fff !important;
    -moz-appearance: textfield !important;
}

.bpsc-sp-qty-input::-webkit-outer-spin-button,
.bpsc-sp-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* ── Variable product overrides ──────────────────────────────── */
.bpsc-sp-variations-wrap .variations {
    margin-bottom: 16px;
}

.bpsc-sp-variations-wrap .variations td,
.bpsc-sp-variations-wrap .variations th {
    padding: 6px 0;
    vertical-align: middle;
}

.bpsc-sp-variations-wrap .variations label {
    font-weight: 600;
    font-size: 13px;
}

.bpsc-sp-variations-wrap .variations select {
    min-width: 180px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.bpsc-sp-variations-wrap .woocommerce-variation-price {
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 700;
    color: #D7AE01;
}

.bpsc-sp-variations-wrap .single_variation_wrap .quantity {
    display: none !important;
}

.bpsc-sp-variations-wrap .single_variation_wrap .single_add_to_cart_button {
    display: none !important;
}

/* ── Action buttons grid ─────────────────────────────────────── */
.bpsc-sp-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-top: 16px !important;
    margin-bottom: 20px !important;
}

.bpsc-sp-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 13px 18px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    text-decoration: none !important;
    cursor: pointer !important;
    border: none !important;
    transition: background 0.2s ease, transform 0.15s ease !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

.bpsc-sp-btn:hover {
    transform: translateY(-1px) !important;
}

.bpsc-sp-btn svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
}

/* Add to Cart — Gold */
.bpsc-sp-btn-cart {
    background: #D7AE01 !important;
    color: #111111 !important;
}

.bpsc-sp-btn-cart svg {
    stroke: #111111 !important;
    fill: none !important;
}

.bpsc-sp-btn-cart:hover {
    background: #c5a000 !important;
}

/* Buy Now — Black */
.bpsc-sp-btn-buy {
    background: #111111 !important;
    color: #ffffff !important;
}

.bpsc-sp-btn-buy:hover {
    background: #333333 !important;
}

/* WhatsApp — brand green */
.bpsc-sp-btn-whatsapp {
    background: #25D366 !important;
    color: #ffffff !important;
    text-transform: none !important;
    font-size: 12.5px !important;
    letter-spacing: 0 !important;
}

.bpsc-sp-btn-whatsapp svg {
    fill: #ffffff !important;
    stroke: none !important;
}

.bpsc-sp-btn-whatsapp:hover {
    background: #1ebe57 !important;
}

/* Call For Order — dark blue */
.bpsc-sp-btn-call {
    background: #1a3c6e !important;
    color: #ffffff !important;
    text-transform: none !important;
    font-size: 12.5px !important;
    letter-spacing: 0 !important;
}

.bpsc-sp-btn-call svg {
    stroke: #ffffff !important;
    fill: none !important;
}

.bpsc-sp-btn-call:hover {
    background: #122a4e !important;
}

/* Facebook — span full width */
.bpsc-sp-btn-facebook {
    background: #1877F2 !important;
    color: #ffffff !important;
    grid-column: 1 / -1 !important;
    text-transform: none !important;
}

.bpsc-sp-btn-facebook svg {
    fill: #ffffff !important;
}

.bpsc-sp-btn-facebook:hover {
    background: #166FE5 !important;
}

.bpsc-sp-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.bpsc-sp-btn.is-loading {
    opacity: 0.7 !important;
    pointer-events: none !important;
}

/* ── Brand & meta ────────────────────────────────────────────── */
.bpsc-sp-brand,
.bpsc-sp-meta {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

.bpsc-sp-brand-label {
    color: #666;
    margin-right: 6px;
}

.bpsc-sp-brand-name {
    font-weight: 600;
    color: #D7AE01;
}

/* ── Frequently Bought Together ──────────────────────────────── */
.bpsc-sp-fbt {
    background: #fff;
    border: 1px solid #e8e8e8;
    padding: 28px 0;
    margin-bottom: 24px;
}

.bpsc-sp-section-title {
    font-size: 19px;
    font-weight: 700;
    color: #111;
    margin: 0 0 18px;
}

.bpsc-sp-fbt-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.bpsc-sp-fbt-items {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.bpsc-sp-fbt-plus {
    font-size: 22px;
    font-weight: 700;
    color: #999;
}

.bpsc-sp-fbt-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    max-width: 120px;
    text-align: center;
    cursor: pointer;
}

.bpsc-sp-fbt-check { margin: 0; }

.bpsc-sp-fbt-thumb img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border: 1px solid #eee;
}

.bpsc-sp-fbt-name {
    font-size: 12px;
    line-height: 1.3;
    color: #333;
}

.bpsc-sp-fbt-price {
    font-size: 13px;
    font-weight: 600;
    color: #D7AE01;
}

.bpsc-sp-fbt-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.bpsc-sp-fbt-total {
    font-size: 14px;
    color: #666;
}

.bpsc-sp-fbt-total strong {
    font-size: 20px;
    color: #111;
    margin-left: 6px;
}

/* ── Tabs ────────────────────────────────────────────────────── */
.bpsc-sp-tabs-section {
    background: transparent !important;
    border: none !important;
    margin-top: 28px !important;
    margin-bottom: 28px !important;
}

.bpsc-sp-tabs-nav {
    display: flex !important;
    gap: 10px !important;
    border-bottom: none !important;
    padding: 0 !important;
    margin-bottom: 14px !important;
}

.bpsc-sp-tab-btn {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    padding: 10px 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #555 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.bpsc-sp-tab-btn.is-active {
    background: #ffffff !important;
    border-color: #D7AE01 !important;
    color: #D7AE01 !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
}

.bpsc-sp-tab-btn:hover:not(.is-active) {
    border-color: #ccc !important;
    color: #111 !important;
}

.bpsc-sp-tab-pane {
    display: none;
    background: #ffffff !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 8px !important;
    padding: 32px !important;
}

.bpsc-sp-tab-pane.is-active {
    display: block !important;
}

.bpsc-sp-tab-pane-title {
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #111 !important;
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.bpsc-sp-tab-content {
    font-size: 14px !important;
    line-height: 1.8 !important;
    color: #444 !important;
}

.bpsc-sp-tab-content h2,
.bpsc-sp-tab-content h3 {
    color: #111 !important;
    margin: 18px 0 10px !important;
}

/* ── Reviews ─────────────────────────────────────────────────── */
.bpsc-sp-reviews-wrap .woocommerce-Reviews-title { display: none !important; }

.bpsc-sp-reviews-wrap #reviews {
    display: grid !important;
    grid-template-columns: 1.2fr 1.8fr !important;
    gap: 40px !important;
    align-items: flex-start !important;
}

.bpsc-sp-reviews-wrap #comments { margin: 0 !important; }

.bpsc-sp-reviews-wrap #comments h2 {
    font-size: 17px !important;
    font-weight: 600 !important;
    color: #111 !important;
    margin: 0 0 14px !important;
}

.bpsc-sp-reviews-wrap .commentlist {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.bpsc-sp-reviews-wrap .commentlist li {
    padding: 18px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.bpsc-sp-reviews-wrap .commentlist li:last-child { border-bottom: none !important; }

.bpsc-sp-reviews-wrap .commentlist li .avatar {
    float: left !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    margin-right: 14px !important;
}

.bpsc-sp-reviews-wrap .commentlist li .comment-text {
    margin-left: 58px !important;
    border: none !important;
    padding: 0 !important;
}

.bpsc-sp-reviews-wrap .commentlist li .meta {
    font-size: 12px !important;
    color: #888 !important;
    margin-bottom: 6px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.bpsc-sp-reviews-wrap .commentlist li .meta strong {
    color: #222 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.bpsc-sp-reviews-wrap .commentlist li .description {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #444 !important;
}

.bpsc-sp-reviews-wrap .commentlist li .star-rating {
    color: #D7AE01 !important;
    font-size: 12px !important;
}

.bpsc-sp-reviews-wrap #review_form_wrapper {
    margin: 0 !important;
    padding: 24px !important;
    background: #fbfbfb !important;
    border: 1px solid #eee !important;
    border-radius: 8px !important;
}

.bpsc-sp-reviews-wrap #respond {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.bpsc-sp-reviews-wrap #respond #reply-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #111 !important;
    margin: 0 0 14px !important;
    display: block !important;
}

.bpsc-sp-reviews-wrap #respond p { margin-bottom: 12px !important; }

.bpsc-sp-reviews-wrap #respond label {
    display: block !important;
    margin-bottom: 5px !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    color: #444 !important;
}

.bpsc-sp-reviews-wrap .comment-form-rating {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.bpsc-sp-reviews-wrap .comment-form-rating label { margin-bottom: 0 !important; }

.bpsc-sp-reviews-wrap #respond input[type="text"],
.bpsc-sp-reviews-wrap #respond input[type="email"],
.bpsc-sp-reviews-wrap #respond textarea {
    width: 100% !important;
    border: 1px solid #dcdcdc !important;
    border-radius: 4px !important;
    padding: 9px 12px !important;
    font-size: 13px !important;
    background: #fff !important;
    color: #222 !important;
    outline: none !important;
    transition: border-color 0.2s !important;
}

.bpsc-sp-reviews-wrap #respond input[type="text"]:focus,
.bpsc-sp-reviews-wrap #respond input[type="email"]:focus,
.bpsc-sp-reviews-wrap #respond textarea:focus {
    border-color: #D7AE01 !important;
}

.bpsc-sp-reviews-wrap #respond input[type="submit"] {
    background: #111 !important;
    color: #fff !important;
    border: none !important;
    padding: 11px 26px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    text-transform: uppercase !important;
}

.bpsc-sp-reviews-wrap #respond input[type="submit"]:hover {
    background: #333 !important;
}

/* ── Related / Cross-sell product sections ───────────────────── */
.bpsc-sp-products-section {
    background: #fff;
    border: 1px solid #e8e8e8;
    padding: 28px 24px;
    margin-bottom: 24px;
}

.bpsc-sp-section-head {
    margin-bottom: 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

.bpsc-sp-section-more {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #D7AE01 !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.bpsc-sp-section-more:hover {
    color: #111 !important;
}

.bpsc-sp-products-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 18px !important;
    width: 100% !important;
}

/* Related product cards inherit styles directly from shop.css since single product page now has bpsc-shop-page body class. */

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .bpsc-sp-main {
        gap: 32px !important;
    }
    .bpsc-sp-products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 1024px) {
    .bpsc-sp-main {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    .bpsc-sp-products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    #bpsc-single-product-wrap {
        padding-top: calc(var(--bpsc-header-height, 120px) + 8px);
    }

    .bpsc-sp-main {
        padding: 20px !important;
    }

    .bpsc-sp-gallery-col {
        flex-direction: column !important;
        gap: 14px !important;
    }

    /* On mobile thumbs move below main image as horizontal strip */
    .bpsc-sp-thumbs {
        flex-direction: row !important;
        width: 100% !important;
        min-width: 0 !important;
        max-height: none !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding-bottom: 4px !important;
        padding-right: 0 !important;
        order: 1 !important;
    }

    .bpsc-sp-main-image {
        width: 100% !important;
        height: auto !important;
        min-height: 280px !important;
        max-height: 360px !important;
        order: 0 !important;
    }

    .bpsc-sp-thumb {
        min-width: 60px !important;
        width: 60px !important;
        height: 60px !important;
    }

    .bpsc-sp-actions {
        grid-template-columns: 1fr !important;
    }

    .bpsc-sp-btn-facebook {
        grid-column: auto !important;
    }

    .bpsc-sp-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .bpsc-sp-fbt-inner {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .bpsc-sp-fbt-action {
        align-items: stretch !important;
    }
}

@media (max-width: 480px) {
    .bpsc-sp-products-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }

    .bpsc-sp-title {
        font-size: 19px !important;
    }
}
