/* Core Variables mimicking the image */
:root {
    --aeon-orange: #d46b34;
    --aeon-dark: #121212;
    --aeon-text-main: #ffffff;
    --aeon-text-muted: #888888;
    --aeon-border: #333333;
}

/* Wrapper to ensure dark mode formatting overrides default Woo */
.aeon-dark-ui-wrapper {
    color: var(--aeon-text-main);
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* --- SWATCH CONTAINERS --- */
.aeon-swatch-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

/* --- SIZE SWATCHES (CIRCLES) --- */
.aeon-swatch-size {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--aeon-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--aeon-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.aeon-swatch-size:hover {
    border-color: var(--aeon-text-muted);
    color: var(--aeon-text-main);
}

.aeon-swatch-size.active {
    background-color: var(--aeon-orange);
    border-color: var(--aeon-orange);
    color: #fff;
}

/* Size Guide Link */
.aeon-size-guide {
    display: inline-block;
    font-size: 11px;
    color: var(--aeon-text-muted);
    text-decoration: underline;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- COLOR SWATCHES (IMAGE BLOCKS) --- */
.aeon-swatch-color {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.aeon-swatch-color:hover, 
.aeon-swatch-color.active {
    opacity: 1;
}

.aeon-color-img {
    width: 50px;
    height: 60px;
    border-radius: 6px;
    background-color: #2a2a2a; /* Fallback color */
    background-size: cover;
    background-position: center;
    border: 1px solid transparent;
}

.aeon-swatch-color.active .aeon-color-img {
    border: 1px solid var(--aeon-orange);
}

.aeon-color-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--aeon-text-muted);
}

.aeon-swatch-color.active .aeon-color-label {
    color: var(--aeon-text-main);
}

/* HOW TO ADD YOUR COLOR IMAGES:
   The JS converts color names to lowercase classes (e.g., "Beige" becomes ".bg-beige").
   Add your image URLs below for each color you sell: */
.bg-beige { background-image: url('link-to-beige-jacket.jpg'); }
.bg-red   { background-image: url('link-to-red-jacket.jpg'); }
.bg-black { background-image: url('link-to-black-jacket.jpg'); }

/* --- BUTTONS (PILL SHAPE) --- */
.woocommerce-variation-add-to-cart {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.aeon-btn,
.single_add_to_cart_button {
    width: 100%;
    padding: 16px;
    border-radius: 50px; /* Perfect pill shape */
    text-transform: uppercase;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1;
}

/* Favorite Button (Outline) */
.aeon-favorite-btn {
    background: transparent;
    color: var(--aeon-text-main);
    border: 1px solid var(--aeon-border);
}

.aeon-favorite-btn:hover,
.aeon-favorite-btn.active {
    border-color: var(--aeon-orange);
    color: var(--aeon-orange);
}

/* Add to Bag Button (Solid Orange) */
.single_add_to_cart_button {
    background-color: var(--aeon-orange) !important;
    color: #fff !important;
    border: none !important;
}

.single_add_to_cart_button:hover {
    background-color: #b85a2a !important; /* Slightly darker orange on hover */
}

/* Hide labels and default Woo elements to match design */
.woocommerce-variation-add-to-cart .quantity,
.variations .label {
    display: none !important; 
}