/* ============================================================
   PRODUCT PAGE — PREMIUM VARIATION CARDS
   ============================================================ */

/* Hide Native Dropdowns */
.ab-single-product .ab-single-cart-wrap .variations select {
    display: none !important;
}

.ab-single-product .ab-single-cart-wrap .variations .value {
    padding: 0 !important;
}

.ab-single-product .ab-single-cart-wrap .variations th.label {
    display: block !important;
    padding: 0 0 0.5rem 0 !important;
    text-align: left !important;
}

.ab-single-product .ab-single-cart-wrap .variations th.label label {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    color: #8B7B6B !important;
}

/* The Custom Cards */
.ab-single-product .ab-custom-cards-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    margin-bottom: 1.5rem !important;
}

.ab-single-product .ab-custom-card {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 90px !important;
    padding: 0.85rem 1.25rem !important;
    background: #FBF7F0 !important;
    border: 1px solid #E5DCC9 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: #2A1F14 !important;
    position: relative !important;
}

.ab-single-product .ab-custom-card:hover {
    border-color: #B8935E !important;
}

.ab-single-product .ab-custom-card.is-selected {
    border-color: #B8935E !important;
    box-shadow: inset 0 0 0 1px #B8935E !important;
    background: #F6EFE2 !important;
}

.ab-single-product .ab-custom-card.is-selected::after {
    content: '' !important;
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    width: 12px !important;
    height: 12px !important;
    background-color: #B8935E !important;
    border-radius: 50% !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='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-size: 8px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Reset Link */
.ab-single-product .ab-single-cart-wrap .reset_variations {
    display: inline-block !important;
    margin-top: 0.5rem !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.7rem !important;
    color: #8B7B6B !important;
    text-transform: uppercase !important;
    text-decoration: underline !important;
}

/* Quantity & Add to Cart Layout */
.ab-single-product .ab-single-cart-wrap .ab-simple-cart-actions,
.ab-single-product .ab-single-cart-wrap .variations_button {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    gap: 1.5rem !important;
    align-items: end !important;
    width: 100% !important;
    margin-top: 2rem !important;
}

.ab-single-product .ab-single-cart-wrap .quantity {
    float: none !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid #E5DCC9 !important;
    border-radius: 4px !important;
    background: #FBF7F0 !important;
    height: 52px !important;
    overflow: hidden !important;
}

.ab-single-product .ab-single-cart-wrap .quantity .ab-qty-btn {
    width: 44px !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    font-size: 1.2rem !important;
    color: #2A1F14 !important;
    cursor: pointer !important;
}

.ab-single-product .ab-single-cart-wrap .quantity input.qty {
    width: 56px !important;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-size: 1rem !important;
    color: #2A1F14 !important;
    -moz-appearance: textfield !important;
}

.ab-single-product .ab-single-cart-wrap .single_add_to_cart_button {
    width: 100% !important;
    height: 52px !important;
    background: #B8935E !important;
    color: #fff !important;
    border: none !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
}

@media (max-width: 600px) {
    .ab-single-product .ab-single-cart-wrap .ab-simple-cart-actions,
    .ab-single-product .ab-single-cart-wrap .variations_button {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }
    .ab-single-product .ab-single-cart-wrap .quantity {
        width: 100% !important;
        justify-content: space-between !important;
    }
}

/* ============================================================
   ENSURE CARDS ARE CLICKABLE
   ============================================================ */
.ab-single-product .ab-custom-cards-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    margin-bottom: 1.5rem !important;
    position: relative !important;
    z-index: 20 !important;
    pointer-events: auto !important;
}

.ab-single-product .ab-custom-card {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 21 !important;
}

.ab-single-product .ab-custom-card * {
    pointer-events: none !important; /* Prevents inner elements from stealing the click */
}

/* ============================================================
   PRODUCT PAGE PRICE TYPOGRAPHY FIX
   ============================================================ */

/* Force the price to use Inter, not the stylized serif */
.ab-single-product .ab-single-price,
.ab-single-product .ab-single-price .ab-price-inner,
.ab-single-product .ab-single-price .woocommerce-Price-amount {
    font-family: 'Inter', sans-serif !important;
}

/* Clean, bold, readable number */
.ab-single-product .ab-single-price .woocommerce-Price-amount bdi {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.75rem !important;
    font-weight: 500 !important;
    color: #2A1F14 !important;
    letter-spacing: -0.02em !important;
}

/* Smaller gold "AED" prefix */
.ab-single-product .ab-single-price .woocommerce-Price-currencySymbol {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #B8935E !important;
    letter-spacing: 0.05em !important;
    margin-right: 0.25rem !important;
    vertical-align: middle !important;
}

/* Range separator (—) styling for variable products */
.ab-single-product .ab-single-price .ab-price-sep {
    font-family: 'Inter', sans-serif !important;
    color: #8B7B6B !important;
    font-size: 1.2rem !important;
    margin: 0 0.5rem !important;
}
