/* Auto-split from woocommerce.css on 2026-07-16 for conditional per-page-type loading. */

/* Unscoped price-contrast fallback (loads on every page): the homepage "Oferte
   Speciale" slider (front-page.php) renders cards as div.product, not
   ul.products > li.product, so the scoped rules in woocommerce-product-shop.css
   never match it there. opacity:1 guards against dimming that would otherwise
   still fail contrast even with an accessible color value. */
.price del {
    color: #b91c1c !important;
    opacity: 1 !important;
}
.price ins {
    color: var(--v-color-primary, #0061f2) !important;
    opacity: 1 !important;
}
.woocommerce-Price-amount.amount,
.woocommerce-Price-currencySymbol {
    color: var(--v-color-primary, #0061f2) !important;
}

/*
--------------------------------------------------------------------------------
WOOCOMMERCE PRODUCT BUNDLES PREMIUM COMPACT DESIGN SYSTEM
--------------------------------------------------------------------------------
*/

/* Highlight the bundle ("PACHET") container row in the mini-cart — not its
   individual bundled component rows below it. */
.widget_shopping_cart_content ul.cart_list li.bundle_container_mini_cart_item {
    background: #fff3e8 !important;
}

/* Per-item "Expediere [date]" text is redundant with the single delivery
   estimate banner shown once at the bottom of cart/checkout, and was only
   hidden on the cart/checkout pages themselves — not in the mini-cart drawer,
   which is available (and can show this stale markup) on every page. */
.v-date-attr {
    display: none !important;
}

.bundled_products {
    margin: 15px 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
}

.bundled_product,
.bundled_item {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px dashed #e2e8f0 !important;
    border-radius: 0 !important;
    padding: 12px 0 !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 16px !important;
    align-items: flex-start !important;
    box-shadow: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    float: none !important;
}

.bundled_product:last-child,
.bundled_item:last-child {
    border-bottom: none !important;
    padding-bottom: 5px !important;
}

/* Compact Image Container */
.bundled_product_images,
.bundled_item_images,
.bundled_product_image,
.bundled_item_image {
    width: 72px !important;
    max-width: 72px !important;
    height: 72px !important;
    flex-shrink: 0 !important;
    background: #fafafa !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 10px !important;
    padding: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    float: none !important;
    margin: 0 !important;
}

.bundled_product_images img,
.bundled_item_images img,
.bundled_product_image img,
.bundled_item_image img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 100% !important;
    object-fit: contain !important;
    border-radius: 6px !important;
    margin: 0 !important;
    display: block !important;
}

/* Bundled Product Summary / Details */
.bundled_product_summary,
.bundled_item_summary {
    flex-grow: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    text-align: left !important;
    align-items: flex-start !important;
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.bundled_product_title,
.bundled_item_title {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    color: #1e293b !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    border: none !important;
    padding: 0 !important;
}

.bundled_product_title a,
.bundled_item_title a {
    color: #1e293b !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.bundled_product_title a:hover,
.bundled_item_title a:hover {
    color: var(--v-color-primary) !important;
}

.bundled_product_excerpt,
.bundled_item_excerpt,
.bundled_item_description {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.825rem !important;
    color: #64748b !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

/* Override standard variations tables for bundle items */
.bundled_product .variations,
.bundled_item .variations {
    width: 100% !important;
    display: block !important;
    border: none !important;
    margin: 4px 0 0 0 !important;
    background: transparent !important;
    clear: none !important;
}

.bundled_product .variations tr,
.bundled_product .variations td,
.bundled_item .variations tr,
.bundled_item .variations td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    text-align: left !important;
    clear: none !important;
}

.bundled_product .variations td.label,
.bundled_item .variations td.label {
    display: none !important;
}

/* Bundle: anulează padding-bottom: 65px care vine din ul.products li.product */
ul.bundled_products li.bundled_product.product {
    padding-bottom: 10px !important;
    position: static !important;
}

/* Bundle: swatches — identic cu produsele normale */
.bundled_item_cart_content .v-swatches-container {
    display: block !important;
}

.bundled_product .v-swatch-box svg,
.bundled_item .v-swatch-box svg {
    width: 12px !important;
    height: 12px !important;
}

/* Compact dynamic variation price for bundle items */
.bundled_product .woocommerce-variation,
.bundled_item .woocommerce-variation {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 4px 0 !important;
    text-align: left !important;
    width: 100% !important;
    clear: none !important;
}

.bundled_product .woocommerce-variation-price,
.bundled_item .woocommerce-variation-price {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.bundled_product .woocommerce-variation-price .price,
.bundled_item .woocommerce-variation-price .price {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 5px !important;
    justify-content: flex-start !important;
    font-size: 1.05rem !important;
}

.bundled_product .woocommerce-variation-price .price::before,
.bundled_item .woocommerce-variation-price .price::before {
    content: "Preț pachet:" !important;
    display: inline-block !important;
    font-size: 0.78rem !important;
    color: #64748b !important;
    text-transform: none !important;
    font-weight: 700 !important;
    margin-right: 2px !important;
    margin-bottom: 0 !important;
    letter-spacing: 0 !important;
}

.bundled_product .woocommerce-variation-price .price ins,
.bundled_item .woocommerce-variation-price .price ins,
.bundled_product .woocommerce-variation-price .price > .amount,
.bundled_item .woocommerce-variation-price .price > .amount {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: var(--v-color-primary) !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.bundled_product .woocommerce-variation-price .price del,
.bundled_item .woocommerce-variation-price .price del {
    font-size: 0.85rem !important;
    color: #94a3b8 !important;
    display: inline-block !important;
}

/* Bundled Quantity & Optional controls (Compact) */
.bundled_product_optional_checkbox,
.bundled_item_optional {
    margin-right: 6px !important;
    cursor: pointer !important;
    accent-color: var(--v-color-primary) !important;
}

.bundled_item_cart_details,
.bundled_product_cart_details {
    margin-top: 4px !important;
    width: 100% !important;
}

.bundled_item_cart_details .quantity,
.bundled_product_summary .quantity,
.bundled_product_cart_details .quantity {
    height: 36px !important;
    min-width: 90px !important;
    border-radius: 6px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.bundled_item_cart_details .quantity .qty,
.bundled_product_summary .quantity .qty,
.bundled_product_cart_details .quantity .qty {
    font-size: 0.85rem !important;
    width: 32px !important;
    color: #1e293b !important;
}

.bundled_item_cart_details .quantity .v-qty-btn,
.bundled_product_summary .quantity .v-qty-btn,
.bundled_product_cart_details .quantity .v-qty-btn {
    width: 28px !important;
    font-size: 1rem !important;
}

/* Responsive compact stacking for mobile */
@media (max-width: 576px) {
    .bundled_product,
    .bundled_item {
        gap: 12px !important;
        padding: 10px 0 !important;
    }
    
    .bundled_product_images,
    .bundled_item_images,
    .bundled_product_image,
    .bundled_item_image {
        width: 60px !important;
        max-width: 60px !important;
        height: 60px !important;
    }
    
    .bundled_product_summary,
    .bundled_item_summary {
        gap: 2px !important;
    }
    
    .bundled_product_title,
    .bundled_item_title {
        font-size: 0.95rem !important;
    }
}

/* Standardize WooCommerce Bundle Page Add to Cart Button 100% */
.bundle_add_to_cart_button,
.bundle_button .single_add_to_cart_button,
.bundle_form .single_add_to_cart_button,
.bundle_form .bundle_add_to_cart_button {
    background-color: var(--v-color-primary) !important;
    color: #ffffff !important;
    height: 62px !important;
    padding: 0 2.5rem !important;
    border-radius: var(--v-radius-md) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 1.125rem !important;
    letter-spacing: 0.5px !important;
    margin: 15px 0 0 0 !important;
    width: 100% !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    flex: none !important;
}

.bundle_add_to_cart_button:hover,
.bundle_button .single_add_to_cart_button:hover,
.bundle_form .single_add_to_cart_button:hover,
.bundle_form .bundle_add_to_cart_button:hover {
    background-color: var(--v-color-primary-hover) !important;
    box-shadow: 0 8px 20px rgba(var(--v-color-primary-rgb), 0.3) !important;
    transform: translateY(-2px) !important;
}

.bundle_add_to_cart_button:active,
.bundle_button .single_add_to_cart_button:active,
.bundle_form .single_add_to_cart_button:active {
    transform: translateY(0) !important;
}

.bundle_add_to_cart_button::before,
.bundle_button .single_add_to_cart_button::before,
.bundle_form .single_add_to_cart_button::before,
.bundle_form .bundle_add_to_cart_button::before {
    content: "" !important;
    width: 22px !important;
    height: 22px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3Cpath d='M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    display: inline-block !important;
}

/* 
--------------------------------------------------------------------------------
MINI-CART QUANTITY & PRICE LAYOUT FIX
--------------------------------------------------------------------------------
Reset the general .quantity styles (used for single product add-to-cart +/- input boxes) 
when they are applied inside the mini-cart drawer to prevent clipping and alignment bugs.
*/
.widget_shopping_cart_content .quantity,
.woocommerce-mini-cart-item .quantity {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 10px !important;
    padding: 10px 14px !important;
    background: #f1f5f9 !important;
    border-radius: 10px !important;
    font-size: 0.95rem !important;
    color: var(--v-color-heading) !important;
    font-weight: 700 !important;
    border: none !important;

    /* Absolute overrides to ignore fixed +/- input size constraints */
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    flex-shrink: 1 !important;
    overflow: visible !important;
}

/* Highlight price inside mini-cart quantity row */
.widget_shopping_cart_content .quantity .amount,
.woocommerce-mini-cart-item .quantity .amount {
    color: var(--v-color-primary) !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
}

/* ── Mini-coș: ascunde dl dacă nu există .v-combined-attr (produs fără variante, doar data) ── */
#v-side-cart dl.variation:not(:has(.v-combined-attr)) {
    display: none !important;
}

/* ── Mini-coș: ascunde dt-urile goale (apar ca ":" fără etichetă) ── */
#v-side-cart dl.variation dt {
    display: none !important;
}

/* ── Buton ștergere produs în mini-coș ── */
#v-side-cart a.remove,
#v-side-cart a.remove_from_cart_button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    background: #fce7f3 !important;
    color: #ef4444 !important;
    border-radius: 50% !important;
    font-size: 18px !important;
    line-height: 1 !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s !important;
    flex-shrink: 0 !important;
    border: none !important;
    opacity: 1 !important;
}

#v-side-cart a.remove:hover,
#v-side-cart a.remove_from_cart_button:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
}

/* End of Vopsinel Theme Styles */

