/*
Theme Name:   Astra Child Theme
Theme URI:    https://wpastra.com/
Description:  A child theme for Astra with custom cosmetic modifications
Author:       Your Name
Author URI:   https://wpastra.com/about/
Template:     astra
Version:      1.3.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  astra-child
*/

/* ============================================================================
   TABLE OF CONTENTS
   ============================================================================
   1. Sticky Header
   2. Category Buttons (Homepage) – from button.html design
   3. Catalog / Category Pages – product grid padding
   4. Product Cards – color swatches + add-to-cart on image
   ============================================================================ */

/* ===================================
   1. STICKY HEADER
   =================================== */

/* Make header sticky on all pages */
.site-header,
#masthead {
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Adjust for WordPress admin bar when logged in */
body.admin-bar .site-header,
body.admin-bar #masthead {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header,
    body.admin-bar #masthead {
        top: 46px !important;
    }
}

/* Ensure mobile header is also sticky */
#ast-mobile-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

body.admin-bar #ast-mobile-header {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar #ast-mobile-header {
        top: 46px !important;
    }
}

/* ===================================
   2. CATEGORY BUTTONS (HOMEPAGE)
   Exact design from button.html, assets from theme /assets
   =================================== */

/* Let parent and ancestors show overflow so full-bleed isn't clipped */
.astra-child-category-bleed-parent {
    overflow: visible !important;
}
.entry-content:has(.astra-child-category-squares-wrapper),
.elementor:has(.astra-child-category-squares-wrapper),
.e-con:has(.astra-child-category-squares-wrapper) {
    overflow: visible !important;
}

/* Full-bleed: squares span edge-to-edge and sit right under banner */
.astra-child-category-squares-wrapper,
body .astra-child-category-squares-wrapper,
.astra-child-category-bleed-parent .astra-child-category-squares-wrapper {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 4px !important;
    margin-bottom: 0 !important;
    background: #ffffff !important;
    padding: 0 6px !important;
    clear: both !important;
    z-index: 10 !important;
    display: block !important;
    box-sizing: border-box !important;
}

.astra-child-category-squares-wrapper .astra-child-category-buttons-container,
body .astra-child-category-squares-wrapper .astra-child-category-buttons-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-template-rows: repeat(2, auto) !important;
    gap: 16px !important;
    width: 100% !important;
    padding: 0 2px !important;
    box-sizing: border-box !important;
    max-width: none !important;
    margin: 0 auto !important;
}

.astra-child-category-squares-wrapper .category-button,
.astra-child-category-squares-wrapper a.category-button,
.astra-child-category-squares-wrapper .category-button.button-jews,
.astra-child-category-squares-wrapper .category-button.button-liberals,
.astra-child-category-squares-wrapper .category-button.button-black-people,
.astra-child-category-squares-wrapper .category-button.button-woman {
    display: flex;
    align-items: stretch;
    gap: 14px;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 130px;
    background: linear-gradient(135deg, #212529 0%, #343a40 50%, #495057 100%) !important;
    border: 3px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(33, 37, 41, 0.15) !important;
    text-decoration: none;
    color: inherit;
}

.astra-child-category-squares-wrapper .category-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.astra-child-category-squares-wrapper .category-button:has(.category-image) {
    gap: 0;
}

.astra-child-category-squares-wrapper .category-button-content {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 22px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.astra-child-category-squares-wrapper .category-button:hover,
.astra-child-category-squares-wrapper a.category-button:hover,
.astra-child-category-squares-wrapper .category-button.button-jews:hover,
.astra-child-category-squares-wrapper .category-button.button-liberals:hover,
.astra-child-category-squares-wrapper .category-button.button-black-people:hover,
.astra-child-category-squares-wrapper .category-button.button-woman:hover {
    background: linear-gradient(135deg, #212529 0%, #495057 50%, #6c757d 100%) !important;
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 10px 30px rgba(108, 117, 125, 0.25),
                0 0 30px rgba(73, 80, 87, 0.2),
                0 0 40px rgba(52, 58, 64, 0.15),
                inset 0 0 15px rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.astra-child-category-squares-wrapper .category-button:hover::before {
    left: 100%;
}

.astra-child-category-squares-wrapper .category-button:hover .category-image {
    transform: scale(1.1) rotate(-2deg);
    filter: brightness(1.1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.astra-child-category-squares-wrapper .category-button:hover .icon {
    background: #fff;
    color: #6c757d;
    transform: rotate(360deg) scale(1.2);
    box-shadow: 0 0 10px rgba(108, 117, 125, 0.4);
}

.astra-child-category-squares-wrapper .category-button:hover .label {
    transform: translateX(5px);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
}

.astra-child-category-squares-wrapper .icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 13px;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.astra-child-category-squares-wrapper .label {
    flex: 1;
    text-align: center;
    font-size: 26px;
    font-family: "Paytone One", sans-serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.5px;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.astra-child-category-squares-wrapper .category-image {
    width: 195px;
    height: 130px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    align-self: stretch;
    margin: 0;
    padding: 0;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.astra-child-category-squares-wrapper .category-image-default {
    opacity: 1;
    transition: opacity 0.4s ease;
}

.astra-child-category-squares-wrapper .category-image-hover {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 2;
}

/* Jews button – same black, keep image swap on hover */
.astra-child-category-squares-wrapper .button-jews {
    position: relative;
}

.astra-child-category-squares-wrapper .button-jews:hover .category-image-default {
    opacity: 0;
}

.astra-child-category-squares-wrapper .button-jews:hover .category-image-hover {
    opacity: 1;
}

/* Any category button with image wrap – image swap on hover (Liberals, Woman, Black People) */
.astra-child-category-squares-wrapper .category-button .category-button-image-wrap {
    position: relative;
    flex-shrink: 0;
    width: 195px;
    height: 130px;
    display: block;
}

.astra-child-category-squares-wrapper .category-button .category-button-image-wrap .category-image-default {
    display: block !important;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1 !important;
}

.astra-child-category-squares-wrapper .category-button .category-button-image-wrap .category-image-hover {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.astra-child-category-squares-wrapper .category-button:hover .category-button-image-wrap .category-image-default {
    opacity: 0 !important;
}

.astra-child-category-squares-wrapper .category-button:hover .category-button-image-wrap .category-image-hover {
    opacity: 1 !important;
}

/* Paytone One font for labels */
.astra-child-category-squares-wrapper .astra-child-category-buttons-container {
    font-family: "Paytone One", sans-serif;
}

/* All Dark Humor label: space between parts on desktop */
.astra-child-category-squares-wrapper .label-all-dark-humor .label-line:first-of-type::after {
    content: " ";
}

/* Responsive – keep minimal side padding */
@media (max-width: 1024px) {
    .astra-child-category-squares-wrapper .astra-child-category-buttons-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 4px;
    }
    .astra-child-category-squares-wrapper .label {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .astra-child-category-squares-wrapper {
        padding: 0 8px !important;
    }
    .astra-child-category-squares-wrapper .astra-child-category-buttons-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 4px;
    }
    /* Mobile: text on top, picture at bottom of square */
    .astra-child-category-squares-wrapper .category-button {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        height: auto !important;
        min-height: 180px;
        padding: 0 !important;
        gap: 0 !important;
    }
    .astra-child-category-squares-wrapper .category-button-content {
        width: 100% !important;
        flex: none !important;
        justify-content: center !important;
        padding: 8px 12px !important;
        order: 1;
    }
    .astra-child-category-squares-wrapper .category-button-content .label {
        font-size: 18px;
        flex: none;
    }
    /* Image area: full width, fixed height, pushed to bottom of square */
    .astra-child-category-squares-wrapper .category-button .category-button-image-wrap {
        width: 100% !important;
        height: 100px !important;
        margin: 0 !important;
        margin-top: auto !important;
        flex-shrink: 0;
        order: 2;
    }
    .astra-child-category-squares-wrapper .category-button .category-button-image-wrap .category-image-default,
    .astra-child-category-squares-wrapper .category-button .category-button-image-wrap .category-image-hover {
        object-fit: contain !important;
        object-position: center !important;
    }
    /* Jews button: same stack, image slot full width and centered */
    .astra-child-category-squares-wrapper .category-button.button-jews {
        position: relative;
    }
    .astra-child-category-squares-wrapper .category-button.button-jews > .category-image-default {
        width: 100% !important;
        height: 100px !important;
        max-height: 100px;
        object-fit: contain !important;
        object-position: center !important;
        flex-shrink: 0;
        order: 2;
        margin-top: auto !important;
    }
    .astra-child-category-squares-wrapper .category-button.button-jews .category-image-hover {
        position: absolute !important;
        left: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        width: 100% !important;
        height: 100px !important;
        object-fit: contain !important;
        object-position: center !important;
    }
    .astra-child-category-squares-wrapper .category-button.button-jews .category-button-content {
        order: 1;
    }
    /* All Dark Humor: stack "Humor" beneath "All Dark" on mobile */
    .astra-child-category-squares-wrapper .category-button.button-all-dark-humor .category-button-content .label.label-all-dark-humor {
        display: flex !important;
        flex-direction: column !important;
        flex: none !important;
        line-height: 1.25;
    }
    .astra-child-category-squares-wrapper .category-button.button-all-dark-humor .label-line {
        display: block;
    }
}

@media (max-width: 480px) {
    .astra-child-category-squares-wrapper .astra-child-category-buttons-container {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 4px;
    }
    .astra-child-category-squares-wrapper .category-button {
        min-height: 170px;
    }
    .astra-child-category-squares-wrapper .category-button .category-button-image-wrap {
        height: 90px !important;
    }
    .astra-child-category-squares-wrapper .category-button.button-jews > .category-image-default {
        height: 90px !important;
        max-height: 90px;
    }
    .astra-child-category-squares-wrapper .category-button.button-jews .category-image-hover {
        height: 90px !important;
    }
    .astra-child-category-squares-wrapper .category-button-content .label {
        font-size: 16px;
    }
    /* All Dark Humor: two lines on small mobile too */
    .astra-child-category-squares-wrapper .category-button.button-all-dark-humor .category-button-content .label.label-all-dark-humor {
        display: flex !important;
        flex-direction: column !important;
    }
}

/* ===================================
   3. CATALOG / CATEGORY PAGES – product grid padding
   Shop + all product category pages: same left/right padding so cards
   don't touch the screen edges; consistent spacing for all cards.
   =================================== */

/* Target the product grid by class; !important overrides Astra/WooCommerce */
ul.products.columns-3,
.woocommerce ul.products.columns-3,
body.woocommerce ul.products.columns-3,
body.woocommerce-page ul.products.columns-3,
body.tax-product_cat ul.products.columns-3 {
    padding-left: 2.4em !important;
    padding-right: 2.4em !important;
}

/* Responsive: reduce edge padding on smaller screens */
@media (max-width: 921px) {
    ul.products.columns-3,
    .woocommerce ul.products.columns-3,
    body.woocommerce ul.products.columns-3,
    body.woocommerce-page ul.products.columns-3,
    body.tax-product_cat ul.products.columns-3 {
        padding-left: 1.4em !important;
        padding-right: 1.4em !important;
    }
}

@media (max-width: 544px) {
    ul.products.columns-3,
    .woocommerce ul.products.columns-3,
    body.woocommerce ul.products.columns-3,
    body.woocommerce-page ul.products.columns-3,
    body.tax-product_cat ul.products.columns-3 {
        padding-left: 1em !important;
        padding-right: 1em !important;
    }
}

/* ===================================
   4. PRODUCT CARDS – color swatches + add-to-cart on image
   Catalog/category: real-color swatches + small cart+plus on image
   =================================== */

/* Thumbnail wrap: relative so add-to-cart can sit on top of image */
ul.products .astra-shop-thumbnail-wrap,
ul.products.columns-3 .astra-shop-thumbnail-wrap {
    position: relative !important;
    overflow: visible !important;
}

/* Add to cart: 60px circle, always visible, white bg + black icon (hover: bag icon black) */
ul.products .astra-shop-thumbnail-wrap .ast-on-card-button,
ul.products .astra-shop-thumbnail-wrap a.add_to_cart_button,
ul.products.columns-3 .astra-shop-thumbnail-wrap .ast-on-card-button,
ul.products.columns-3 .astra-shop-thumbnail-wrap a.add_to_cart_button {
    position: absolute !important;
    bottom: 12px !important;
    right: 12px !important;
    top: auto !important;
    left: auto !important;
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
    transition: background 0.2s, color 0.2s, transform 0.2s !important;
    z-index: 999 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

ul.products .astra-shop-thumbnail-wrap .ast-on-card-button:hover,
ul.products .astra-shop-thumbnail-wrap a.add_to_cart_button:hover,
ul.products.columns-3 .astra-shop-thumbnail-wrap .ast-on-card-button:hover,
ul.products.columns-3 .astra-shop-thumbnail-wrap a.add_to_cart_button:hover {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: rgba(0, 0, 0, 0.3) !important;
    transform: scale(1.05) !important;
}

/* Hover: force bag icon and plus to stay black */
ul.products .astra-shop-thumbnail-wrap .ast-on-card-button:hover .ast-icon,
ul.products .astra-shop-thumbnail-wrap .ast-on-card-button:hover svg,
ul.products .astra-shop-thumbnail-wrap a.add_to_cart_button:hover .ast-icon,
ul.products .astra-shop-thumbnail-wrap a.add_to_cart_button:hover svg,
ul.products.columns-3 .astra-shop-thumbnail-wrap .ast-on-card-button:hover .ast-icon,
ul.products.columns-3 .astra-shop-thumbnail-wrap .ast-on-card-button:hover svg,
ul.products.columns-3 .astra-shop-thumbnail-wrap a.add_to_cart_button:hover .ast-icon,
ul.products.columns-3 .astra-shop-thumbnail-wrap a.add_to_cart_button:hover svg {
    fill: #000000 !important;
    color: #000000 !important;
}

/* Hide the "Select options" tooltip text; show only icon */
ul.products .astra-shop-thumbnail-wrap .ast-card-action-tooltip {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Cart icon size inside the button (scaled up for 60px button) */
ul.products .astra-shop-thumbnail-wrap .ast-on-card-button .ahfb-svg-iconset,
ul.products .astra-shop-thumbnail-wrap .ast-on-card-button .ast-icon,
ul.products .astra-shop-thumbnail-wrap a.add_to_cart_button .ahfb-svg-iconset,
ul.products .astra-shop-thumbnail-wrap a.add_to_cart_button .ast-icon {
    width: 24px;
    height: 24px;
    margin: 0;
    color: inherit;
}

ul.products .astra-shop-thumbnail-wrap .ast-on-card-button svg,
ul.products .astra-shop-thumbnail-wrap a.add_to_cart_button svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Plus sign next to cart (::after on the link); black, stays black on hover */
ul.products .astra-shop-thumbnail-wrap .ast-on-card-button::after,
ul.products .astra-shop-thumbnail-wrap a.add_to_cart_button::after {
    content: "+";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% + 14px), calc(-50% - 2px));
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    color: #000000;
}

ul.products .astra-shop-thumbnail-wrap .ast-on-card-button:hover::after,
ul.products .astra-shop-thumbnail-wrap a.add_to_cart_button:hover::after {
    color: #000000 !important;
}

/* Slightly shift cart icon left so cart + plus sit together */
ul.products .astra-shop-thumbnail-wrap .ast-on-card-button .ahfb-svg-iconset,
ul.products .astra-shop-thumbnail-wrap a.add_to_cart_button .ahfb-svg-iconset {
    transform: translateX(-8px);
}

/* ---- Product card summary: left align, reorder (colors → name → size → price), smaller price ---- */
ul.products .astra-shop-summary-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

/* Make variations table rows participate in flex order (colors first, then title, then sizes, then price) */
ul.products .astra-shop-summary-wrap .cfvsw_variations_form,
ul.products .astra-shop-summary-wrap .cfvsw_variations_form table,
ul.products .astra-shop-summary-wrap .cfvsw_variations_form table tbody {
    display: contents;
}

/* Rows that are now flex children: block layout, full width, left align */
ul.products .astra-shop-summary-wrap > tr {
    display: block !important;
    width: 100%;
    text-align: left;
}

ul.products .astra-shop-summary-wrap > tr td {
    display: block !important;
    padding: 4px 0 !important;
    border: none !important;
    text-align: left !important;
}

/* Order: 1=colors, 2=title, 3=sizes, 4=price, 5=add to cart. Hide original-price and empty trs. */
/* After display:contents, direct children are: link, cfvsw-original-price, price, tr, tr, tr, tr, add_to_cart */
ul.products .astra-shop-summary-wrap > .ast-loop-product__link { order: 2; }
ul.products .astra-shop-summary-wrap > .cfvsw-original-price { order: 9; visibility: hidden; height: 0; overflow: hidden; margin: 0 !important; padding: 0 !important; }
ul.products .astra-shop-summary-wrap > .price { order: 4; }
ul.products .astra-shop-summary-wrap > tr:nth-of-type(1) { order: 9; visibility: hidden; height: 0; overflow: hidden; margin: 0 !important; padding: 0 !important; border: none !important; }
ul.products .astra-shop-summary-wrap > tr:nth-of-type(2) { order: 1; }   /* colors */
ul.products .astra-shop-summary-wrap > tr:nth-of-type(3) { order: 9; visibility: hidden; height: 0; overflow: hidden; margin: 0 !important; padding: 0 !important; border: none !important; }
ul.products .astra-shop-summary-wrap > tr:nth-of-type(4) { order: 3; }   /* sizes */
ul.products .astra-shop-summary-wrap > .add_to_cart_button { order: 5; }

/* Product title: left align */
ul.products .astra-shop-summary-wrap .ast-loop-product__link,
ul.products .astra-shop-summary-wrap .woocommerce-loop-product__title {
    text-align: left !important;
    width: 100%;
}

/* Price: smaller, less bulky */
ul.products .astra-shop-summary-wrap .price,
ul.products .astra-shop-summary-wrap .price .amount {
    font-size: 0.9em !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
}

/* Add to cart (text button in summary): left align */
ul.products .astra-shop-summary-wrap .add_to_cart_button {
    align-self: flex-start;
    text-align: left;
}

/* ---- Color swatches: small squares, actual color only ---- */
/* Container for color/size swatches in product card */
ul.products .astra-shop-summary-wrap .cfvsw-swatches-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
}

/* Each swatch option: small square by default */
ul.products .astra-shop-summary-wrap .cfvsw-swatches-option {
    min-width: 20px !important;
    min-height: 20px !important;
    width: 20px !important;
    height: 20px !important;
    padding: 0 !important;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

/* Hide the text label inside swatch – show only the color square */
ul.products .astra-shop-summary-wrap .cfvsw-swatch-inner {
    font-size: 0 !important;
    text-indent: -9999px;
    overflow: hidden;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

/* White */
ul.products .astra-shop-summary-wrap .cfvsw-swatches-option[data-slug="White"],
ul.products .astra-shop-summary-wrap .cfvsw-swatches-option[data-title="White"] {
    background: #ffffff !important;
    border-color: #ddd;
}

/* Sport Grey / Gray */
ul.products .astra-shop-summary-wrap .cfvsw-swatches-option[data-slug="Sport Grey"],
ul.products .astra-shop-summary-wrap .cfvsw-swatches-option[data-title="Sport Grey"],
ul.products .astra-shop-summary-wrap .cfvsw-swatches-option[data-slug="Gray"],
ul.products .astra-shop-summary-wrap .cfvsw-swatches-option[data-title="Gray"] {
    background: #8c8c8c !important;
    border-color: rgba(0, 0, 0, 0.2);
}

/* Natural (beige) */
ul.products .astra-shop-summary-wrap .cfvsw-swatches-option[data-slug="Natural"],
ul.products .astra-shop-summary-wrap .cfvsw-swatches-option[data-title="Natural"] {
    background: #e8dcc4 !important;
    border-color: rgba(0, 0, 0, 0.15);
}

/* Black (if used) */
ul.products .astra-shop-summary-wrap .cfvsw-swatches-option[data-slug="Black"],
ul.products .astra-shop-summary-wrap .cfvsw-swatches-option[data-title="Black"] {
    background: #2d2d2d !important;
    border-color: rgba(0, 0, 0, 0.3);
}

/* Selected swatch: subtle ring */
ul.products .astra-shop-summary-wrap .cfvsw-swatches-option.cfvsw-selected-swatch {
    box-shadow: 0 0 0 2px #222;
}

/* Size row: re-show text (S, M, L…) as small pills; 4th row in table is sizes */
ul.products .astra-shop-summary-wrap .cfvsw-shop-variations tr:nth-of-type(4) .cfvsw-swatch-inner {
    font-size: 11px !important;
    text-indent: 0;
    min-width: auto !important;
    min-height: auto !important;
    width: auto !important;
    height: auto !important;
    padding: 2px 6px !important;
}
ul.products .astra-shop-summary-wrap .cfvsw-shop-variations tr:nth-of-type(4) .cfvsw-swatches-option {
    min-width: auto !important;
    width: auto !important;
    height: auto !important;
    min-height: auto !important;
    background: #f1f0f0 !important;
    padding: 2px 6px !important;
}

/* ============================================================================
   END OF STYLESHEET
   ============================================================================ */
