/* 
 * Elementor Custom CSS for Premium Decant Theme
 * Add this to Elementor Site Settings > Custom CSS or via a Child Theme style.css
 */

:root {
    --bg-main: #0a0a0c;
    /* Elementor Global Background */
    --bg-card: #15111c;
    --bg-card-hover: #1d1828;
    --text-primary: #ffffff;
    /* Elementor Global Primary Text */
    --text-secondary: #a09d9d;
    /* Elementor Global Secondary Text */
    --accent: #ff4500;
    /* Elementor Global Primary Color */
    --accent-text: #ff6b4a;
    --accent-hover: #cc3700;
    --border-color: #2a2533;
    --border-active: #ff4500;
}

/* Apply global dark theme only inside this specific Elementor Template */
.decant-dark-theme-wrapper {
    background-color: var(--bg-main) !important;
    color: var(--text-primary) !important;
}

.decant-dark-theme-wrapper h1,
.decant-dark-theme-wrapper h2,
.decant-dark-theme-wrapper h3,
.decant-dark-theme-wrapper h4,
.decant-dark-theme-wrapper h5,
.decant-dark-theme-wrapper h6,
.decant-dark-theme-wrapper p,
.decant-dark-theme-wrapper span,
.decant-dark-theme-wrapper div {
    color: var(--text-primary);
}

/* ==========================================
   Badges (Use with Elementor Image Overlay)
   ========================================== */
.custom-badges {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.custom-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.custom-badge.authentic {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    color: white !important;
}

.custom-badge.refillable {
    background: linear-gradient(135deg, #ff4c8b, var(--accent)) !important;
    color: white !important;
}

/* ==========================================
   Custom WooCommerce Variations (Radio UI)
   ========================================== */
.selection-container .section-title {
    font-size: 0.8rem !important;
    color: var(--text-secondary) !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 15px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
}

.custom-radio-variations {
    display: flex !important;
    flex-direction: column !important;
}

.custom-radio-variations .size-option {
    display: flex !important;
    align-items: center !important;
    padding: 16px 20px !important;
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px !important;
    margin-bottom: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.custom-radio-variations .size-option:hover {
    background-color: var(--bg-card-hover) !important;
    border-color: #3b334a !important;
}

.custom-radio-variations .size-option.selected {
    border-color: var(--border-active) !important;
    /* Use a solid dark color instead of rgba to prevent white bleed from theme backgrounds */
    background-color: #291510 !important;
}

.custom-radio-variations .size-option input[type="radio"],
.custom-radio-variations .size-option input {
    display: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    opacity: 0 !important;
    position: absolute !important;
    z-index: -1 !important;
}

.custom-radio-variations .size-option .radio-circle {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    border: 2px solid var(--border-color) !important;
    margin-right: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    background: transparent !important;
}

.custom-radio-variations .size-option.selected .radio-circle {
    border-color: var(--accent) !important;
}

.custom-radio-variations .size-option.selected .radio-circle::after {
    content: '' !important;
    width: 10px !important;
    height: 10px !important;
    background-color: var(--accent) !important;
    border-radius: 50% !important;
}

.custom-radio-variations .size-option .size-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.custom-radio-variations .size-option .size-name {
    font-weight: 600 !important;
    font-size: 1rem !important;
    color: var(--text-primary) !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.custom-radio-variations .size-option .size-sprays {
    font-size: 0.8rem !important;
    color: var(--text-secondary) !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

/* Hide default WooCommerce variation table */
.woocommerce div.product form.cart .variations {
    margin-bottom: 1em !important;
    border: 0 !important;
    width: 100% !important;
}

.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
}

/* ==========================================
   Elementor WooCommerce Button Overrides
   ========================================== */
.woocommerce button.button.alt.single_add_to_cart_button {
    background-color: var(--accent) !important;
    color: white !important;
    border-radius: 10px !important;
    padding: 18px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
    width: 100% !important;
    border: none !important;
}

.woocommerce button.button.alt.single_add_to_cart_button:hover {
    background-color: var(--accent-hover) !important;
}

/* ==========================================
   Scent Profile Icons (Add as Custom HTML Widget)
   ========================================== */
.scent-profile .note-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.scent-profile .icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-card);
}

.scent-profile .color-orange-red {
    color: #ff8a65;
    background-color: rgba(255, 138, 101, 0.1);
}

.scent-profile .color-dark-orange {
    color: #f4511e;
    background-color: rgba(244, 81, 30, 0.1);
}

.scent-profile .color-blue {
    color: #8c9eff;
    background-color: rgba(140, 158, 255, 0.1);
}

/* ==========================================
   Review Cards Grid
   ========================================== */
.review-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.review-card {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 24px !important;
}

.review-card .card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-card .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.review-card .card-stars {
    color: var(--accent-text);
    letter-spacing: 2px;
    margin-bottom: 15px;
}