/* Single Product Premium Layout */

.bp-single-product-wrapper {
    margin-top: 20px;
    font-family: inherit;
}

.bp-product-top-container {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

.bp-product-gallery-column {
    flex: 0 0 45%;
    max-width: 45%;
}

.bp-product-info-column {
    flex: 1;
}

/* Force Gallery to take full width of its column */
.woocommerce-product-gallery {
    width: 100% !important;
    float: none !important;
    margin-bottom: 0 !important;
}

/* Typography & Titles */
.bp-product-info-column .product_title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

.bp-product-review-summary {
    margin-bottom: 20px;
}

.bp-product-review-summary a {
    color: #888;
    font-size: 14px;
    text-decoration: none;
}

.bp-product-review-summary a:hover {
    color: #FF2A61;
}

/* Price */
.bp-product-price-row {
    margin-bottom: 20px;
}

.bp-single-price {
    font-size: 24px;
    font-weight: 700;
    color: #222;
}

.bp-single-price ins {
    text-decoration: none;
}

.bp-single-price del {
    color: #999;
    font-size: 18px;
    margin-right: 10px;
}

/* Meta Row (Stock & SKU) */
.bp-product-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 25px;
    font-size: 14px;
}

.bp-stock-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.bp-stock-status.in-stock {
    color: #00A650;
}

.bp-stock-status.out-of-stock {
    color: #cc0000;
}

.bp-stock-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bp-sku-row strong {
    color: #666;
}

/* Overview / Short Description */
.bp-product-overview {
    margin-bottom: 25px;
}

.bp-product-overview h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.bp-short-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.bp-short-description ul {
    margin: 10px 0;
    padding-left: 20px;
}

.bp-short-description li {
    margin-bottom: 8px;
}

/* Price Drop Notify */
.bp-price-drop-notify {
    margin-bottom: 25px;
}

.bp-notify-link {
    color: #FF2A61;
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.bp-notify-link:hover {
    opacity: 0.8;
}

/* Low-stock urgency message — appears inside .bp-stock-status.in-stock */
.bp-stock-status.in-stock {
    flex-wrap: wrap;
}
.bp-low-stock-urgency {
    flex-basis: 100%;
    font-size: 12px;
    font-weight: 700;
    color: #e44d26;
    line-height: 1.4;
    margin-top: 3px;
}

/* Override WooCommerce's default 2em bottom margin on the add-to-cart form */
.woocommerce div.product form.cart {
    margin-bottom: 0 !important;
}

/* Add to Cart Section — JS pins this via position:fixed; see single-product.js */
.bp-single-add-to-cart {
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    padding: 8px 12px;
}

.cart {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bp-qty-label {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: #333;
}

.bp-quantity-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 48px;
    overflow: hidden;
    width: 120px;
}

.bp-qty-btn {
    background: #fff;
    border: none;
    width: 40px;
    height: 100%;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    transition: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.bp-qty-btn:hover,
.bp-qty-btn:focus,
.bp-qty-btn:active {
    background: #fff !important;
    color: #FF2A61 !important;
    outline: none !important;
    box-shadow: none !important;
}

.bp-quantity-wrapper input.qty {
    flex: 1;
    width: 40px !important;
    height: 100% !important;
    border: none !important;
    border-left: 1px solid #ddd !important;
    border-right: 1px solid #ddd !important;
    text-align: center;
    font-weight: 600;
    background: #fff !important;
    color: #333 !important;
    appearance: auto;
    -moz-appearance: textfield;
    padding: 0 !important;
    margin: 0 !important;
    display: block;
}

.bp-quantity-wrapper input.qty::-webkit-outer-spin-button,
.bp-quantity-wrapper input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.single_add_to_cart_button {
    background-color: #FF2A61 !important;
    color: #fff !important;
    height: 48px;
    padding: 0 40px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    border-radius: 4px !important;
    transition: background 0.3s !important;
}

.single_add_to_cart_button:hover {
    background-color: #d81b4d !important;
}

/* Delivery Info Box */
.bp-delivery-info-box {
    background: #f7f7f7;
    padding: 20px;
    border-radius: 4px;
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
}

.bp-delivery-icon {
    color: #222;
}

.bp-delivery-text h4 {
    margin: 0 0 5px;
    font-size: 15px;
    font-weight: 700;
}

.bp-delivery-text p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

/* Action Links */
.bp-product-actions-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.bp-action-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.bp-action-link:hover {
    color: #FF2A61;
}

/* Bottom Container (Description, Reviews, Sliders) */
.bp-product-bottom-container {
    padding-top: 40px;
    border-top: 1px solid #f0f0f0;
}

.bp-tab-content {
    margin-bottom: 50px;
}

.bp-tab-content .bp-section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #222;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .bp-product-top-container {
        flex-direction: column;
    }

    .bp-product-gallery-column,
    .bp-product-info-column {
        max-width: 100%;
        flex: none;
    }
}

@media (max-width: 600px) {
    /* Keep qty + button in a single row on mobile */
    .cart {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .bp-quantity-wrapper {
        width: 110px;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .single_add_to_cart_button {
        flex: 1;
        width: auto !important;
        padding: 0 12px !important;
        font-size: 14px !important;
        white-space: nowrap;
    }

    .bp-product-actions-links {
        justify-content: center;
    }
}

/* ── Sticky Add to Cart — mobile adjustments (≤ 767px) ───────────────────── */
@media (max-width: 767px) {
    .bp-single-add-to-cart {
        padding: 6px 10px;
    }

    /* Also keep the variation form's qty + button inline on mobile */
    .woocommerce-variation-add-to-cart.variations_button {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: 10px;
    }
}

/* -------------------------------------------------------------------------
   Videos Section
   ------------------------------------------------------------------------- */

.bp-videos-section {
    margin-bottom: 50px;
}

.bp-videos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.bp-video-thumb {
    position: relative;
    width: 220px;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
}

.bp-video-thumb video {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
    pointer-events: none;
}

.bp-video-thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.bp-video-thumb-play svg {
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
    color: #fff;
    transition: transform 0.15s;
}

.bp-video-thumb:hover .bp-video-thumb-play {
    background: rgba(255, 42, 97, 0.5);
}

.bp-video-thumb:hover .bp-video-thumb-play svg {
    transform: scale(1.15);
}

/* Video Modal */

.bp-video-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bp-video-modal[hidden] {
    display: none;
}

.bp-video-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.bp-video-modal-content {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 920px;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
}

.bp-video-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    font-size: 26px;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bp-video-modal-close:hover {
    background: #FF2A61;
}

.bp-video-player {
    display: block;
    width: 100%;
    max-height: 80vh;
}

@media (max-width: 600px) {
    .bp-video-thumb {
        width: 100%;
    }
}

/* -------------------------------------------------------------------------
   Variable Product – Variation Selection
   ------------------------------------------------------------------------- */

/* The variations_form also carries .cart, which is display:flex.
   Stack the table, reset link, and add-to-cart strip vertically. */
.variations_form.cart {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

/* Variations table */
.bp-variations-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 6px;
}

.bp-variations-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

.bp-variations-table tbody tr:first-child {
    border-top: 1px solid #f0f0f0;
}

/* Label column */
.bp-variation-label {
    padding: 12px 16px 12px 0;
    width: 100px;
    vertical-align: middle;
    white-space: nowrap;
}

.bp-variation-label label {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: default;
}

/* Value column */
.bp-variation-value {
    padding: 10px 0;
    vertical-align: middle;
}

/* Variation select dropdown – matches bp-quantity-wrapper height and border */
.bp-variations-table select {
    height: 48px;
    padding: 0 36px 0 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s;
    outline: none;
    min-width: 180px;
    max-width: 260px;
}

.bp-variations-table select:focus {
    border-color: #FF2A61;
}

/* Reset / Clear link – WooCommerce JS sets visibility:visible when a choice exists */
.reset_variations {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 13px;
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
    visibility: hidden;
}

.reset_variations:hover {
    color: #FF2A61;
}

/* Wrapper WooCommerce JS shows/hides while choices are being made */
.single_variation_wrap {
    width: 100%;
}

/* Dynamic price/stock injected by WooCommerce JS */
.woocommerce-variation.single_variation {
    margin-bottom: 15px;
    min-height: 0;
}

.woocommerce-variation .woocommerce-variation-price .price {
    font-size: 24px;
    font-weight: 700;
    color: #222;
}

.woocommerce-variation .woocommerce-variation-price .price del {
    color: #999;
    font-size: 18px;
    margin-right: 10px;
}

.woocommerce-variation .woocommerce-variation-price .price ins {
    text-decoration: none;
}

.woocommerce-variation-availability {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
}

.woocommerce-variation-availability .stock.in-stock {
    color: #00A650;
}

.woocommerce-variation-availability .stock.out-of-stock {
    color: #cc0000;
}

/* Qty + Add-to-cart button row inside the variation form */
.woocommerce-variation-add-to-cart.variations_button {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .woocommerce-variation-add-to-cart.variations_button {
        flex-direction: column;
        align-items: stretch;
    }

    .bp-variations-table select {
        max-width: 100%;
        width: 100%;
    }
}