/* ============================================
   BUTTON WIDTH FIX - CONSTRAIN TO IMAGE COLUMN
   Ensure buttons stay within image column width
   ============================================ */

/* CRITICAL: Product actions left - constrain to image wrapper width */
html body main.product-main .product-container .product-content .product-images-wrapper .product-actions-left,
html body main.product-main .product-container #productContent .product-images-wrapper .product-actions-left,
html body .product-main .product-container .product-content .product-images-wrapper .product-actions-left,
html body .product-main .product-container #productContent .product-images-wrapper .product-actions-left,
body main.product-main .product-container .product-content .product-images-wrapper .product-actions-left,
body main.product-main .product-container #productContent .product-images-wrapper .product-actions-left,
body .product-main .product-container .product-content .product-images-wrapper .product-actions-left,
body .product-main .product-container #productContent .product-images-wrapper .product-actions-left,
.product-images-wrapper .product-actions-left,
.product-actions-left {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    padding: 0 24px 24px 24px !important;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: 100% !important; /* 100% of parent (product-images-wrapper) */
    max-width: 100% !important; /* Don't exceed parent width */
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 101 !important;
    background: white !important;
    /* Ensure it doesn't break out of grid column */
    overflow: hidden !important;
}

/* CRITICAL: Ensure product-images-wrapper constrains width */
html body main.product-main .product-container .product-content .product-images-wrapper,
html body main.product-main .product-container #productContent .product-images-wrapper,
html body .product-main .product-container .product-content .product-images-wrapper,
html body .product-main .product-container #productContent .product-images-wrapper,
body main.product-main .product-container .product-content .product-images-wrapper,
body main.product-main .product-container #productContent .product-images-wrapper,
body .product-main .product-container .product-content .product-images-wrapper,
body .product-main .product-container #productContent .product-images-wrapper,
.product-content .product-images-wrapper,
#productContent .product-images-wrapper,
.product-images-wrapper {
    width: 100% !important; /* 100% of grid column (37.3%) */
    max-width: 100% !important;
    overflow: visible !important; /* Allow content to be visible but constrain width */
    box-sizing: border-box !important;
}

/* CRITICAL: Buttons - ensure they stay within container */
.product-actions-left .btn-add-cart,
.product-actions-left .btn-buy-now {
    flex: 1 !important; /* Equal width within container */
    min-width: 0 !important; /* Allow flex shrinking */
    max-width: 100% !important; /* Don't exceed container */
    padding: 18px 24px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border: none !important;
    border-radius: 2px !important;
    font-family: 'Roboto', sans-serif !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* CRITICAL: Ensure product-content grid doesn't allow overflow */
.product-content,
#productContent {
    overflow-x: hidden !important; /* Prevent horizontal overflow */
    overflow-y: visible !important;
}

/* Responsive - ensure buttons stay constrained on mobile too */
@media (max-width: 768px) {
    .product-actions-left {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .product-actions-left .btn-add-cart,
    .product-actions-left .btn-buy-now {
        flex: 1 !important;
        min-width: 0 !important;
        max-width: 100% !important;
        font-size: 14px !important;
        padding: 16px 12px !important;
    }
}













