/*
Theme Name: Woodmart Child
Theme URI: https://xtemos.com/
Description: WoodMart Child Theme
Author: XTemos
Author URI: https://xtemos.com/
Template: woodmart
Version: 1.1.8
Text Domain: woodmart-child
*/


/* ============================================================
   XPOS PRODUCT CARD
   ============================================================ */

.xpos-product-card {
    list-style: none;
    position: relative;

    width: 100%;

    margin: 0;
    padding: 0;

    height: 100%;
}


/* ============================================================
   CARD
   ============================================================ */

.xpos-card {
    position: relative;

    width: 100%;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #eeeeee;
    border-radius: 14px;

        height: 100%;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.05);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.xpos-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 7px 20px rgba(0, 0, 0, 0.10);
}


/* ============================================================
   PRODUCT IMAGE
   ============================================================ */

.xpos-card-image {
    display: block;

    width: 100%;

    overflow: hidden;

    background: #f6f7f7;

    text-decoration: none;
}


.xpos-card-image img {
    display: block;

    width: 100%;
    height: auto;

    aspect-ratio: 1 / 1;

    object-fit: cover;

    margin: 0;
    padding: 0;

    border: 0;

    transition:
        opacity 0.2s ease,
        transform 0.3s ease;
}


.xpos-card:hover .xpos-card-image img {
    transform: scale(1.02);
}


/* ============================================================
   CARD CONTENT
   ============================================================ */

.xpos-card-content {
    display: block;

    width: 100%;

    box-sizing: border-box;

    padding: 10px 12px 13px;
}


/* ============================================================
   COLOR SWATCH CONTAINER
   ============================================================ */

.xpos-swatches {
    display: flex;

    align-items: center;

    width: 100%;

    min-height: 37px;
    height: 37px;

    margin: 0 0 8px;
    padding: 0 8px;

    box-sizing: border-box;

    gap: 8px;

    overflow-x: auto;
    overflow-y: visible;

    scrollbar-width: none;

    white-space: nowrap;
}


.xpos-swatches::-webkit-scrollbar {
    display: none;
}


/* ============================================================
   COLOR SWATCH
   ============================================================ */

.xpos-swatch {
    appearance: none !important;
    -webkit-appearance: none !important;

    position: relative;

    display: block;

    flex: 0 0 24px !important;

    width: 24px !important;
    height: 24px !important;

    min-width: 24px !important;
    max-width: 24px !important;

    min-height: 24px !important;
    max-height: 24px !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;

    border: 2px solid #ffffff !important;

    border-radius: 50% !important;

    outline: none !important;

    background-clip: padding-box;

    cursor: pointer;

    opacity: 1;

    transform: scale(1);

    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.18),
        0 2px 4px rgba(0, 0, 0, 0.12);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}


/* ============================================================
   HIDDEN SWATCHES
   ============================================================ */

/*
 * IMPORTANT:
 *
 * JavaScript adds:
 *
 *     xpos-swatch-hidden
 *
 * This selector intentionally has higher specificity
 * so WoodMart styles cannot make hidden variations visible.
 */

.xpos-swatches .xpos-swatch.xpos-swatch-hidden {
    display: none !important;

    visibility: hidden !important;

    flex: 0 0 0 !important;

    width: 0 !important;
    height: 0 !important;

    min-width: 0 !important;
    max-width: 0 !important;

    min-height: 0 !important;
    max-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    opacity: 0 !important;

    pointer-events: none !important;
}


/*
 * Extra protection against WoodMart/Swiper
 * flex sizing rules.
 */

.xpos-swatches
.xpos-swatch.xpos-swatch-hidden {
    flex-basis: 0 !important;
}


/* ============================================================
   SWATCH HOVER
   ============================================================ */

.xpos-swatch:hover {
    transform: scale(1.12);

    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.22),
        0 3px 7px rgba(0, 0, 0, 0.18);
}


/* ============================================================
   SELECTED SWATCH
   ============================================================ */

.xpos-swatch.is-selected,
.xpos-swatch.is-active {
    transform: scale(1.08) !important;

    border: 2px solid #ffffff !important;

    outline: 2px solid #111111 !important;

    outline-offset: 2px !important;

    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.18) !important;

    z-index: 5;
}


/* ============================================================
   SELECTED SWATCH HOVER
   ============================================================ */

.xpos-swatch.is-selected:hover,
.xpos-swatch.is-active:hover {
    transform: scale(1.12) !important;

    outline: 2px solid #111111 !important;

    outline-offset: 2px !important;
}


/* ============================================================
   BUTTON FOCUS
   ============================================================ */

.xpos-swatch:focus {
    outline: 2px solid #111111 !important;

    outline-offset: 2px !important;
}


.xpos-swatch:focus-visible {
    outline: 2px solid #111111 !important;

    outline-offset: 2px !important;
}


/* ============================================================
   TITLE
   ============================================================ */

.xpos-card-title {
    display: block;

    margin: 0 0 3px;
    padding: 0;

    font-size: 16px;
    line-height: 1.35;

    font-weight: 500;

    color: #111111;
}


.xpos-card-title a {
    color: #111111;

    text-decoration: none;
}


.xpos-card-title a:hover {
    color: #111111;

    text-decoration: none;
}


/* ============================================================
   SKU
   ============================================================ */

.xpos-card-sku {
    display: block;

    margin: 2px 0 0;
    padding: 0;

    color: #777777;

    font-size: 13px;
    line-height: 1.4;
}


/* ============================================================
   PRICE
   ============================================================ */

.xpos-card-price {
    display: block;

    margin: 7px 0 0;
    padding: 0;

    line-height: 1.3;
}


/*
 * WooCommerce can output .woocommerce-Price-amount
 * directly without a .price wrapper.
 */

.xpos-card-price .price,
.xpos-card-price .woocommerce-Price-amount {
    color: #72b84a;

    font-size: 20px;
    line-height: 1.3;

    font-weight: 600;
}


/*
 * Keep the currency symbol red.
 */

.xpos-card-price
.woocommerce-Price-currencySymbol {
    color: #e00000;
}


/* ============================================================
   PRICE RANGE DASH
   ============================================================ */

.xpos-card-price > span[aria-hidden="true"] {
    font-size: inherit;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767px) {

    /* --------------------------------------------------------
       CARD
       -------------------------------------------------------- */

    .xpos-card {
        border-radius: 12px;
    }


    /* --------------------------------------------------------
       CONTENT
       -------------------------------------------------------- */

    .xpos-card-content {
        padding: 8px 10px 11px;
    }


    /* --------------------------------------------------------
       SWATCH CONTAINER
       -------------------------------------------------------- */

    .xpos-swatches {
        height: 30px;
        min-height: 30px;

        gap: 7px;

        margin-bottom: 7px;

        padding-left: 7px;
        padding-right: 7px;
    }


    /* --------------------------------------------------------
       SWATCH
       -------------------------------------------------------- */

    .xpos-swatch {
        flex: 0 0 22px !important;

        flex-basis: 22px !important;

        width: 22px !important;
        height: 22px !important;

        min-width: 22px !important;
        max-width: 22px !important;

        min-height: 22px !important;
        max-height: 22px !important;
    }


    /* --------------------------------------------------------
       HIDDEN SWATCH
       -------------------------------------------------------- */

    .xpos-swatches
    .xpos-swatch.xpos-swatch-hidden {
        flex: 0 0 0 !important;

        flex-basis: 0 !important;

        width: 0 !important;
        height: 0 !important;

        min-width: 0 !important;
        max-width: 0 !important;

        min-height: 0 !important;
        max-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    /* --------------------------------------------------------
       SELECTED
       -------------------------------------------------------- */

    .xpos-swatch.is-selected,
    .xpos-swatch.is-active {
        transform: scale(1.06) !important;
    }


    /* --------------------------------------------------------
       TITLE
       -------------------------------------------------------- */

    .xpos-card-title {
        font-size: 14px;

        line-height: 1.35;
    }


    /* --------------------------------------------------------
       SKU
       -------------------------------------------------------- */

    .xpos-card-sku {
        font-size: 12px;
    }


    /* --------------------------------------------------------
       PRICE
       -------------------------------------------------------- */

    .xpos-card-price {
        margin-top: 6px;
    }


    .xpos-card-price .price,
    .xpos-card-price .woocommerce-Price-amount {
        font-size: 17px;
    }

}


/* ============================================================
   VERY SMALL MOBILE
   ============================================================ */

@media (max-width: 480px) {

    /* --------------------------------------------------------
       CONTENT
       -------------------------------------------------------- */

    .xpos-card-content {
        padding: 8px 9px 10px;
    }


    /* --------------------------------------------------------
       SWATCH CONTAINER
       -------------------------------------------------------- */

    .xpos-swatches {
        gap: 6px;

        padding-left: 6px;
        padding-right: 6px;
    }


    /* --------------------------------------------------------
       SWATCH
       -------------------------------------------------------- */

    .xpos-swatch {
        flex: 0 0 21px !important;

        flex-basis: 21px !important;

        width: 21px !important;
        height: 21px !important;

        min-width: 21px !important;
        max-width: 21px !important;

        min-height: 21px !important;
        max-height: 21px !important;
    }


    /* --------------------------------------------------------
       HIDDEN SWATCH
       -------------------------------------------------------- */

    .xpos-swatches
    .xpos-swatch.xpos-swatch-hidden {
        flex: 0 0 0 !important;

        flex-basis: 0 !important;

        width: 0 !important;
        height: 0 !important;

        min-width: 0 !important;
        max-width: 0 !important;

        min-height: 0 !important;
        max-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    /* --------------------------------------------------------
       TITLE
       -------------------------------------------------------- */

    .xpos-card-title {
        font-size: 14px;
    }


    /* --------------------------------------------------------
       PRICE
       -------------------------------------------------------- */

    .xpos-card-price .price,
    .xpos-card-price .woocommerce-Price-amount {
        font-size: 16px;
    }

}