/*
 * FILE: assets/css/bk-frontend-styles.css
 * DESCRIPTION: Basanti's FINAL Master Sajawat Book.
 * VERSION: Chummi Wali Performance Edition
 */

/* ============================
   1. BUNDLE WRAPPER & HEADER
============================ */
.bundle-king-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 2em;
    background-color: #ffffff;
}

.bk-bundle-header h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 2em;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

/* ============================
   2. LIST LAYOUT STYLES
============================ */
.bundle-list-layout .bk-product-card-container {
    border: 1px solid #e9e9e9;
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s ease-in-out;
}

.bundle-list-layout .bk-product-card-container:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.bundle-list-layout .bk-product-card {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 25px;
}

.bundle-list-layout .bk-product-image {
    flex: 0 0 120px;
}

.bundle-list-layout .bk-product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.bundle-list-layout .bk-product-details {
    flex-grow: 1;
}

/* ============================
   3. GRID LAYOUT STYLES
============================ */
.bundle-grid-layout .bk-products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.bundle-grid-layout .bk-product-card-container {
    border: 1px solid #e9e9e9;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease-in-out;
    padding: 15px; /* Added padding to the container for grid */
}

.bundle-grid-layout .bk-product-card-container:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.bundle-grid-layout .bk-product-card {
    padding: 0; /* Removed padding from inner card */
    display: flex;
    flex-direction: column;
    text-align: center;
    flex-grow: 1; /* Make card take full height */
}

.bundle-grid-layout .bk-product-image {
    margin-bottom: 15px;
}

.bundle-grid-layout .bk-product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.bundle-grid-layout .bk-product-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Make details take remaining space */
}

.bundle-grid-layout .bk-color-swatches {
    justify-content: center;
}

.bundle-grid-layout .bk-color-selections-wrapper {
    border-top: 1px solid #e9e9e9;
    padding: 15px 0 0 0; /* Adjusted padding */
    margin-top: auto;
}

/* ============================
   4. COMMON PRODUCT ELEMENTS
============================ */
.bk-product-details h3 {
    margin-top: 0;
    font-size: 1.4em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bk-quantity-tag {
    font-size: 0.8em;
    font-weight: bold;
    color: #555;
    background-color: #f0f0f0;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
    min-width: 40px;
    text-align: center;
}

.bk-quantity-tag.complete {
    background-color: #d4edda;
    color: #155724;
}

.bk-color-swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; margin-bottom: 15px; }
.bk-color-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #ccc; cursor: pointer; transition: all 0.2s; position: relative; }
.bk-color-swatch:hover { transform: scale(1.1); }
.bk-color-swatch.active { border-color: #0073e6; box-shadow: 0 0 8px rgba(0, 115, 230, 0.6); }
.bk-color-swatch.active::after { content: '✔'; color: white; font-size: 14px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-shadow: 0 0 3px rgba(0,0,0,0.6); }
.bk-product-links { font-size: 0.9em; margin-top: 15px; }
.bk-product-links a { color: #0073e6; text-decoration: none; }

/* ============================
   5. SELECTED COLOR ROW
============================ */
.bk-selected-color-row { display: flex; align-items: center; gap: 15px; padding: 12px 20px; background-color: #f9f9f9; border-top: 1px solid #e9e9e9; }
.bk-selected-color-row .color-name { font-weight: bold; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.color-indicator { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.1); display: inline-block; }
.size-selection-details { flex-grow: 1; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.bk-size-summary-text { color: #555; font-size: 0.9em; }

/* ============================
   6. BUNDLE FOOTER
============================ */
.bk-bundle-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 25px; padding-top: 25px; border-top: 2px solid #f0f0f0; }
.bk-price-and-basket { display: flex; align-items: center; gap: 20px; }
.bk-bundle-price { font-size: 2em; font-weight: bold; color: #333; }

/*
 * ================================================================
 *    7. BASANTI'S FINAL BUTTON MAKEOVER (DADAGIRI PROOF)
 * ================================================================
 * Humne har rule ke aage .bundle-king-wrapper laga diya hai
 * taaki theme ke rules ispar haavi na ho sakein.
 */

/* --- Base Style for ALL Buttons --- */
.bundle-king-wrapper .bk-select-quantity-button,
.bundle-king-wrapper .bk-edit-btn,
.bundle-king-wrapper .bk-delete-btn,
.bundle-king-wrapper .bk-add-logo-button,
.bundle-king-wrapper .bk-add-to-basket-button {
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.2s ease-in-out;
    line-height: 1;
    text-align: center;
    border-radius: 28.5px; /* Pill shape */
    padding: 8px 18px;
    font-size: 11px;
    letter-spacing: 0.5px;
    box-shadow: none; /* Remove theme's default shadow */
}

/* --- PRIMARY BUTTONS (Edit, Select, Add to Basket) --- */
.bundle-king-wrapper .bk-select-quantity-button,
.bundle-king-wrapper .bk-edit-btn,
.bundle-king-wrapper .bk-add-to-basket-button {
    background-color: #e6f2ff !important; /* Very light blue background */
    color: #005bb7 !important; /* Dark blue text */
    border-color: #b3d7ff !important; /* Light blue border */
}
.bundle-king-wrapper .bk-select-quantity-button:hover,
.bundle-king-wrapper .bk-edit-btn:hover,
.bundle-king-wrapper .bk-add-to-basket-button:hover {
    background-color: #cce4ff !important; /* Slightly darker light blue */
    border-color: #80bfff !important;
    color: #004a99 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 91, 183, 0.1);
}

/* --- SECONDARY BUTTON (Delete) --- */
.bundle-king-wrapper .bk-delete-btn {
    background-color: #f8f9fa !important; /* Light grey background */
    color: #dc3545 !important; /* Red text */
    border-color: #dee2e6 !important; /* Grey border */
}
.bundle-king-wrapper .bk-delete-btn:hover {
    background-color: #f1f3f5 !important;
    border-color: #ced4da !important;
    color: #c82333 !important;
}

/* --- Special SELECT QUANTITY button in Grid --- */
.bundle-grid-layout .bk-select-quantity-button {
    display: block;
    width: 100%;
}
.bundle-grid-layout .bk-selected-color-row .size-selection-details {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}
.bundle-grid-layout .bk-selected-color-row .bk-size-summary-text {
    text-align: center;
}

/* --- Footer Buttons --- */
.bundle-king-wrapper .bk-add-to-basket-button,
.bundle-king-wrapper .bk-add-logo-button {
    padding: 10px 22px;
    font-size: 13px;
}

/* --- Disabled State --- */
.bundle-king-wrapper .bk-add-to-basket-button:disabled,
.bundle-king-wrapper .bk-add-logo-button:disabled {
    background-color: #e9ecef !important;
    border-color: #dee2e6 !important;
    color: #adb5bd !important;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}



/*
 * ================================================================
 *    8. BASANTI'S POPUP MAKEOVER (DIL KHUSH KARNE WALI SAJAWAT)
 * ================================================================
 */

#bk-popup-container {
    /* This container is added to the footer */
}

#bk-popup-container .bk-popup-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.6); 
    z-index: 99999; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
#bk-popup-container .bk-popup-content {
    background: #fff; 
    border-radius: 12px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.2); 
    max-width: 420px; 
    width: 100%; 
    max-height: 90vh; 
    display: flex; 
    flex-direction: column;
    animation: bk-popup-fadein 0.3s ease-out;
}
@keyframes bk-popup-fadein { 
    from { opacity: 0; transform: translateY(10px) scale(0.98); } 
    to { opacity: 1; transform: translateY(0) scale(1); } 
}

/* -- Header -- */
#bk-popup-container .bk-popup-header {
    padding: 20px 25px; 
    border-bottom: 1px solid #eee; 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start;
    gap: 15px;
}
#bk-popup-container .bk-popup-title-wrapper {
    flex-grow: 1;
}
#bk-popup-container .bk-popup-title-wrapper h3 { 
    margin: 0; 
    font-size: 1.5em; 
    color: #222; 
    line-height: 1.2;
}
#bk-popup-container .bk-popup-subtitle { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    margin-top: 5px; 
    color: #666; 
    font-size: 0.9em; 
}
#bk-popup-container .bk-popup-color-indicator { 
    width: 14px; 
    height: 14px; 
    border-radius: 50%; 
    border: 1px solid rgba(0,0,0,0.1); 
}
#bk-popup-container .bk-popup-quantity-counter { 
    background-color: #e6f2ff; 
    color: #005bb7; 
    padding: 5px 12px; 
    border-radius: 15px; 
    font-size: 0.85em; 
    font-weight: 600; 
    white-space: nowrap; 
    flex-shrink: 0;
}
#bk-popup-container .bk-popup-close { 
    background: none; 
    border: none; 
    font-size: 32px; 
    cursor: pointer; 
    color: #aaa; 
    line-height: 0.5; 
    padding: 0; 
}
#bk-popup-container .bk-popup-close:hover { 
    color: #333; 
}

/* -- Body -- */
#bk-popup-container .bk-popup-body { 
    padding: 10px 25px; 
    overflow-y: auto; 
}
#bk-popup-container .bk-size-row { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 15px 0; 
    border-bottom: 1px solid #f0f0f0; 
}
#bk-popup-container .bk-size-row:last-child { 
    border-bottom: none; 
}
#bk-popup-container .bk-size-label { 
    font-weight: 600; 
    font-size: 1em; 
    color: #444; 
    margin-right: 20px; 
}
#bk-popup-container .bk-quantity-control { 
    display: flex; 
    align-items: center; 
}
#bk-popup-container .bk-quantity-control .bk-quantity-btn { 
    background: #f0f0f0; 
    border: 1px solid #ddd; 
    width: 32px; 
    height: 32px; 
    cursor: pointer; 
    font-size: 20px; 
    color: #555; 
    border-radius: 50%;
    transition: background-color 0.2s;
}
#bk-popup-container .bk-quantity-control .bk-quantity-btn:hover {
    background-color: #e0e0e0;
}
#bk-popup-container .bk-quantity-control .bk-quantity-input { 
    width: 50px; 
    height: 32px; 
    text-align: center; 
    border: none; 
    background: transparent; 
    font-weight: bold;
    color: #333;
    font-size: 1em;
    padding: 0;
    -moz-appearance: textfield;
}
#bk-popup-container .bk-quantity-input::-webkit-outer-spin-button,
#bk-popup-container .bk-quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none; 
  margin: 0;
}
#bk-popup-container .is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* -- Footer & Buttons -- */
#bk-popup-container .bk-popup-footer {
    padding: 15px 25px; 
    border-top: 1px solid #eee; 
    display: flex; 
    justify-content: flex-end; 
    gap: 10px; 
    background-color: #f9f9f9;
}
#bk-popup-container .bk-popup-btn {
    border: 1px solid transparent; 
    cursor: pointer; 
    font-weight: 600;
    text-transform: uppercase; 
    transition: all 0.2s ease-in-out;
    line-height: 1; 
    text-align: center; 
    border-radius: 28.5px;
    padding: 10px 22px; 
    font-size: 12px; 
    letter-spacing: 0.5px;
}
#bk-popup-container .bk-confirm-selections-btn {
    background-color: #e6f2ff !important; 
    color: #005bb7 !important; 
    border-color: #b3d7ff !important;
}
#bk-popup-container .bk-confirm-selections-btn:hover {
    background-color: #cce4ff !important; 
    border-color: #80bfff !important; 
    color: #004a99 !important;
}
#bk-popup-container .bk-confirm-selections-btn:disabled {
    background-color: #e9ecef !important; 
    border-color: #dee2e6 !important;
    color: #adb5bd !important; 
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
#bk-popup-container .bk-cancel-btn {
    background-color: #f8f9fa !important; 
    color: #555 !important; 
    border-color: #dee2e6 !important;
}
#bk-popup-container .bk-cancel-btn:hover {
    background-color: #f1f3f5 !important; 
    border-color: #ced4da !important;
}


/*
 * ================================================================
 *    9. BASANTI'S GRAND POPUP REDESIGN (AALISHAN KAMRA)
 * ================================================================
 */

/* Main Split Layout */
#bk-popup-container .bk-popup-layout-split {
    flex-direction: row;
    max-width: 650px; /* Make popup wider */
    padding: 0; /* Remove padding from main content to allow columns to touch edges */
}
#bk-popup-container .bk-popup-image-column {
    flex: 0 0 220px; /* Fixed width for the image */
}
#bk-popup-container .bk-popup-image-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px 0 0 12px;
}
#bk-popup-container .bk-popup-details-column {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Repositioned Quantity Counter */
#bk-popup-container .bk-popup-title-wrapper .bk-popup-quantity-counter {
    margin-top: 10px;
    margin-left: 0;
    display: inline-block; /* Allows it to sit below the color */
    background-color: #f0f1f3;
    color: #5f6368;
}

/* Minor adjustments */
#bk-popup-container .bk-popup-header {
    align-items: flex-start;
}
#bk-popup-container .bk-popup-body {
    flex-grow: 1; /* Make the body take up available space */
}
#bk-popup-container .bk-popup-footer {
    border-radius: 0 0 12px 0;
}


/*
 * ================================================================
 *    9. BASANTI'S GRAND POPUP REDESIGN (FINAL & COMPLETE CSS)
 * ================================================================
 */

/* Main container for the popup */
#bk-popup-container {
    /* This is the root element in the footer */
}

#bk-popup-container .bk-popup-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.6); 
    z-index: 99999; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* The main content box with a split layout */
#bk-popup-container .bk-popup-content.bk-popup-layout-split {
    background: #fff; 
    border-radius: 12px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.2); 
    max-width: 680px; /* A bit wider for the image */
    width: 100%; 
    max-height: 90vh; 
    display: flex; 
    flex-direction: row; /* This creates the split view */
    animation: bk-popup-fadein 0.3s ease-out;
    overflow: hidden; /* Hide anything that goes outside the rounded corners */
}

@keyframes bk-popup-fadein { 
    from { opacity: 0; transform: translateY(10px) scale(0.98); } 
    to { opacity: 1; transform: translateY(0) scale(1); } 
}

/* Left Column: Image */
#bk-popup-container .bk-popup-image-column {
    flex: 0 0 250px; /* Fixed width for the image column */
    background-color: #f0f0f0;
}
#bk-popup-container .bk-popup-image-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right Column: Details */
#bk-popup-container .bk-popup-details-column {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* -- Header -- */
#bk-popup-container .bk-popup-header {
    padding: 20px 25px; 
    border-bottom: 1px solid #eee; 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start;
    gap: 15px;
}
#bk-popup-container .bk-popup-title-wrapper { flex-grow: 1; }
#bk-popup-container .bk-popup-title-wrapper h3 { margin: 0; font-size: 1.5em; color: #222; line-height: 1.2; }
#bk-popup-container .bk-popup-subtitle { display: flex; align-items: center; gap: 8px; margin-top: 5px; color: #666; font-size: 0.9em; }

/* BASANTI'S FIX: Real Color Shade */
#bk-popup-container .bk-popup-color-indicator { 
    width: 14px; 
    height: 14px; 
    border-radius: 50%; 
    border: 1px solid rgba(0,0,0,0.1); 
}

/* BASANTI'S FIX: Colored and Styled Quantity Counter */
#bk-popup-container .bk-popup-quantity-counter {
    margin-top: 10px;
    margin-left: 0;
    display: inline-block;
    background-color: #e6f2ff !important;
    color: #005bb7 !important;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    white-space: nowrap;
}

#bk-popup-container .bk-popup-close { background: none; border: none; font-size: 32px; cursor: pointer; color: #aaa; line-height: 0.5; padding: 0; }
#bk-popup-container .bk-popup-close:hover { color: #333; }

/* -- Body -- */
#bk-popup-container .bk-popup-body { padding: 10px 25px; overflow-y: auto; flex-grow: 1; }
#bk-popup-container .bk-size-row { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid #f0f0f0; }
#bk-popup-container .bk-size-row:last-child { border-bottom: none; }
#bk-popup-container .bk-size-label { font-weight: 600; font-size: 1em; color: #444; margin-right: 20px; }
#bk-popup-container .bk-quantity-control { display: flex; align-items: center; }
#bk-popup-container .bk-quantity-control .bk-quantity-btn { background: #f0f0f0; border: 1px solid #ddd; width: 32px; height: 32px; cursor: pointer; font-size: 20px; color: #555; border-radius: 50%; transition: background-color 0.2s; }
#bk-popup-container .bk-quantity-control .bk-quantity-btn:hover { background-color: #e0e0e0; }
#bk-popup-container .bk-quantity-control .bk-quantity-input { width: 50px; height: 32px; text-align: center; border: none; background: transparent; font-weight: bold; color: #333; font-size: 1em; padding: 0; -moz-appearance: textfield; }
#bk-popup-container .bk-quantity-input::-webkit-outer-spin-button, #bk-popup-container .bk-quantity-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#bk-popup-container .is-disabled { opacity: 0.5; pointer-events: none; }

/* -- Footer & Buttons -- */
#bk-popup-container .bk-popup-footer {
    padding: 15px 25px; 
    border-top: 1px solid #eee; 
    display: flex; 
    justify-content: flex-end; 
    gap: 10px; 
    background-color: #f9f9f9;
}
#bk-popup-container .bk-popup-btn {
    border: 1px solid transparent; cursor: pointer; font-weight: 600;
    text-transform: uppercase; transition: all 0.2s ease-in-out;
    line-height: 1; text-align: center; border-radius: 28.5px;
    padding: 10px 22px; font-size: 12px; letter-spacing: 0.5px;
}
#bk-popup-container .bk-confirm-selections-btn {
    background-color: #e6f2ff !important; color: #005bb7 !important; border-color: #b3d7ff !important;
}
#bk-popup-container .bk-confirm-selections-btn:hover {
    background-color: #cce4ff !important; border-color: #80bfff !important; color: #004a99 !important;
}
#bk-popup-container .bk-confirm-selections-btn:disabled {
    background-color: #e9ecef !important; border-color: #dee2e6 !important;
    color: #adb5bd !important; cursor: not-allowed; transform: none; box-shadow: none;
}
#bk-popup-container .bk-cancel-btn {
    background-color: #f8f9fa !important; color: #555 !important; border-color: #dee2e6 !important;
}
#bk-popup-container .bk-cancel-btn:hover {
    background-color: #f1f3f5 !important; border-color: #ced4da !important;
}

.bk-preview-box {
background-color: #333333; /* Default dark background */
    color: #ffffff; /* Default white text */
}

.bk-text-preview-thumb{
background-color: #333333; /* Default dark background */
    color: #ffffff; /* Default white text */
}


/* ... poora purana code waisa hi rahega ... */

/* -- BASANTI KA JAADU: Yeh aakhri do line add karni hai -- */
#bk-popup-container .bk-cancel-btn:hover {
    background-color: #f1f3f5 !important; 
    border-color: #ced4da !important;
}

/*
 * ================================================================
 *    10. BASANTI'S FINAL TOUCH: Footer ki keemat ko chhupana
 * ================================================================
 */
.bk-bundle-footer .bk-bundle-price {
    display: none; /* User se keemat chhupa do, lekin yeh HTML mein maujood rahegi */
}


/* ... poora purana code waisa hi rahega ... */

/*
 * ================================================================
 *    11. BASANTI KA JAADU: Naye Quantity Counter ki Shaan!
 * ================================================================
 */
.bk-quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 28.5px; /* Pill shape jaisa gol */
}

.bk-quantity-selector button {
    background-color: transparent !important;
    border: none !important;
    color: #555 !important;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    padding: 5px 15px !important;
    line-height: 1;
    box-shadow: none !important;
}

.bk-quantity-selector button:hover {
    color: #000 !important;
    background-color: #f0f0f0 !important;
}

.bk-quantity-selector .minus {
    border-radius: 28.5px 0 0 28.5px;
}

.bk-quantity-selector .plus {
    border-radius: 0 28.5px 28.5px 0;
}

.bk-quantity-selector .bk-bundle-quantity-input {
    width: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-weight: bold;
    color: #333;
    background-color: transparent;
    box-shadow: none;
    padding: 8px 0 !important;
    height: auto;
    min-height: unset;
}

/* Yeh Chrome/Safari mein number input ke chote arrows ko hata dega */
.bk-bundle-quantity-input::-webkit-outer-spin-button,
.bk-bundle-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Yeh Firefox mein number input ke chote arrows ko hata dega */
.bk-bundle-quantity-input[type=number] {
    -moz-appearance: textfield;
}


/*
 * ================================================================
 *    11. BASANTI KA JAADU: Naya, Patla aur Professional Counter!
 * ================================================================
 */
.bk-quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;      /* Patla grey border */
    border-radius: 99px;         /* Poori tarah gol (pill shape) */
    overflow: hidden;
    background-color: #fff;      /* Safed (white) background */
    max-width: 120px;            /* Thoda chhota size */
}

.bk-quantity-selector button {
    background-color: transparent !important;
    border: none !important;
    color: #666 !important;     /* Halka grey text */
    cursor: pointer;
    font-size: 18px;
    font-weight: 400;
    /* BASANTI'S FIX: Padding kam kar di height theek karne ke liye */
    padding: 4px 12px !important; 
    line-height: 1;
    transition: background-color 0.2s;
    box-shadow: none !important;
}

.bk-quantity-selector button:hover {
    background-color: #f5f5f5 !important;
    color: #000 !important;
}

.bk-quantity-selector .bk-bundle-quantity-input {
    width: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;     /* Beech ki line */
    border-right: 1px solid #ddd;    /* Beech ki line */
    font-weight: 600;
    color: #333;
    background-color: transparent;
    /* BASANTI'S FIX: Padding kam kar di height theek karne ke liye */
    padding: 4px 0 !important; 
    height: auto;
    min-height: unset;
    border-radius: 0;
    box-shadow: none;
    font-size: 14px;
}

/* Yeh Chrome/Safari mein number input ke chote arrows ko hata dega */
.bk-bundle-quantity-input::-webkit-outer-spin-button,
.bk-bundle-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Yeh Firefox mein number input ke chote arrows ko hata dega */
.bk-bundle-quantity-input[type=number] {
    -moz-appearance: textfield;
}



/*
 * ================================================================
 *    12. BASANTI'S ULTIMATE MOBILE FIX (AB YEH KAAM KAREGA!)
 * ================================================================
 */
@media (max-width: 768px) {

    /* --- 1. POPUP FIX (This is the one that matters) --- */

    /* Hide the image column with absolute priority */
    #bk-popup-container .bk-popup-image-column {
        display: none !important;
    }

    /* Make the details column take up all the space */
    #bk-popup-container .bk-popup-details-column {
        width: 100% !important;
        flex: 1 1 100% !important;
    }

    /* Adjust the main popup container for mobile */
    #bk-popup-container .bk-popup-content.bk-popup-layout-split {
        max-width: 450px !important;
        width: 90vw !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
    }


    /* --- 2. FOOTER BUTTONS FIX (Copied from previous step) --- */

    .bk-bundle-footer {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .bk-price-and-basket {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .bk-bundle-footer .bk-add-logo-button,
    .bk-bundle-footer .bk-quantity-selector,
    .bk-bundle-footer .bk-add-to-basket-button {
        width: 100% !important;
        margin-right: 0 !important;
        justify-content: center !important;
    }

    .bk-bundle-footer .bk-quantity-selector {
        height: 50px !important;
    }
    
    .bk-bundle-footer .bk-quantity-selector .bk-bundle-quantity-input {
        line-height: 50px !important;
    }
}