/* VIS Shop Experience: header cart, slide-out cart, shop clean-up. VIS Mountain, 2026-10-21. */

/* Pages show at once. The theme's full-screen loader hid every page until all images had loaded. */
#page-preloader {
    display: none !important;
}

/* The demo store's 14 empty categories (Biscuit, Tiramisu, …) no longer clutter the search box. */
.header-search .product-search-widget select[name="product_cat"],
.header-search .product-search-widget .customSelect {
    display: none !important;
}

/* Options that cannot be bought (the switched-off Case (1x12)) are hidden until they are enabled again. */
.cfvsw-swatches-option.cfvsw-swatches-disabled.cfvsw-swatches-out-of-stock {
    display: none !important;
}

/* The slide-out cart replaces Woo's "View cart" link that appeared under shop buttons. */
ul.products .added_to_cart.wc-forward {
    display: none !important;
}

.vis-muted {
    opacity: 0.75;
    font-size: 0.9em;
}

/* ---------- Header cart ---------- */

.vis-cart-toggle:not(.is-placed) {
    display: none !important;
}

a.vis-cart-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    float: left;
    height: 42px;
    margin-left: 22px;
    color: #fff;
    font-family: Nunito, sans-serif;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
}

a.vis-cart-toggle:hover,
a.vis-cart-toggle:focus {
    color: #ffdfb5;
}

.vis-cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vis-cart-icon svg {
    width: 18px;
    height: 18px;
}

.vis-cart-count {
    position: absolute;
    top: -8px;
    right: -11px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #ffdfb5;
    color: #000;
    font: 700 11px/18px Nunito, sans-serif;
    text-align: center;
    box-sizing: border-box;
}

.vis-cart-count[data-count="0"] {
    display: none;
}

/* Phones: a white circle like the Profile and Search icons beside it. */
a.vis-cart-toggle.is-mobile {
    float: none;
    display: inline-flex;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-left: 4px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    vertical-align: top;
}

a.vis-cart-toggle.is-mobile .vis-cart-label {
    display: none;
}

a.vis-cart-toggle.is-mobile .vis-cart-icon svg {
    width: 16px;
    height: 16px;
}

/* ---------- Slide-out cart ---------- */

body.vis-drawer-open {
    overflow: hidden;
}

.vis-cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.25s ease;
}

body.vis-drawer-open .vis-cart-overlay {
    opacity: 1;
}

.vis-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    width: min(420px, 100vw);
    background: #140d08;
    color: #f5ede3;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.45);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
}

body.vis-drawer-open .vis-cart-drawer {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.3s ease;
}

.vis-cart-drawer .vis-drawer-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    font-family: Nunito, sans-serif;
}

.vis-cart-drawer .vis-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 223, 181, 0.2);
}

.vis-cart-drawer .vis-drawer-title {
    margin: 0;
    padding: 0;
    color: #ffdfb5;
    font-family: Nunito, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none;
}

.vis-cart-drawer .vis-drawer-title span {
    color: #f5ede3;
    font-weight: 400;
}

.vis-cart-drawer button.vis-drawer-close {
    width: auto;
    height: auto;
    margin: 0;
    padding: 2px 8px;
    border: 0;
    background: none;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
}

.vis-ship-bar {
    padding: 14px 22px;
    border-bottom: 1px solid rgba(255, 223, 181, 0.12);
    font-family: Nunito, sans-serif;
    font-size: 14px;
}

.vis-ship-bar p {
    margin: 0 0 8px;
    color: #f5ede3;
    line-height: 1.4;
}

.vis-ship-bar strong,
.vis-ship-bar .amount {
    color: #ffdfb5;
}

.vis-ship-track {
    height: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.15);
}

.vis-ship-track span {
    display: block;
    height: 100%;
    background: #ffdfb5;
    transition: width 0.3s ease;
}

.vis-cart-drawer ul.vis-drawer-items {
    flex: 1 1 auto;
    margin: 0;
    padding: 4px 22px;
    overflow-y: auto;
    list-style: none;
}

.vis-cart-drawer li.vis-drawer-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 14px;
    align-items: start;
    margin: 0;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 223, 181, 0.12);
    list-style: none;
}

.vis-cart-drawer li.vis-drawer-item:last-child {
    border-bottom: 0;
}

.vis-cart-drawer li.vis-drawer-item.is-busy {
    opacity: 0.5;
    pointer-events: none;
}

.vis-cart-drawer .vis-item-img img {
    display: block;
    width: 72px;
    height: 72px;
    margin: 0;
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
}

.vis-cart-drawer .vis-item-name {
    display: block;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

.vis-cart-drawer a.vis-item-name:hover {
    color: #ffdfb5;
}

.vis-cart-drawer .vis-item-price {
    display: block;
    margin-top: 3px;
    color: rgba(245, 237, 227, 0.75);
    font-size: 13px;
}

.vis-cart-drawer .vis-qty {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    border: 1px solid rgba(255, 223, 181, 0.45);
    border-radius: 6px;
}

.vis-cart-drawer button.vis-qty-btn {
    width: 34px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font-size: 18px;
    line-height: 32px;
    cursor: pointer;
    box-shadow: none;
}

.vis-cart-drawer button.vis-qty-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.vis-cart-drawer .vis-qty-val {
    min-width: 26px;
    font-weight: 700;
    text-align: center;
}

.vis-cart-drawer .vis-item-side {
    text-align: right;
}

.vis-cart-drawer .vis-item-total {
    display: block;
    color: #fff;
    font-weight: 700;
}

.vis-cart-drawer button.vis-item-remove {
    margin: 12px 0 0;
    padding: 0;
    border: 0;
    background: none;
    color: rgba(245, 237, 227, 0.7);
    font-size: 12px;
    text-decoration: underline;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    box-shadow: none;
}

.vis-cart-drawer .vis-drawer-foot {
    padding: 18px 22px 22px;
    border-top: 1px solid rgba(255, 223, 181, 0.2);
    background: #100a06;
}

.vis-cart-drawer .vis-drawer-subtotal {
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: 16px;
}

.vis-cart-drawer .vis-drawer-note {
    margin: 6px 0 14px;
    color: rgba(245, 237, 227, 0.65);
    font-size: 12px;
}

.vis-cart-drawer a.vis-btn {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #ffdfb5;
    border-radius: 6px;
    background: transparent;
    color: #ffdfb5;
    font-family: Nunito, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
    text-decoration: none;
}

.vis-cart-drawer a.vis-btn-primary {
    background: #ffdfb5;
    color: #000;
}

.vis-cart-drawer a.vis-btn-primary:hover,
.vis-cart-drawer a.vis-btn-primary:focus {
    background: #fff;
    border-color: #fff;
    color: #000;
}

.vis-cart-drawer a.vis-drawer-link {
    display: block;
    margin-top: 12px;
    color: #f5ede3;
    font-size: 14px;
    text-align: center;
    text-decoration: underline;
}

.vis-cart-drawer .vis-drawer-empty {
    padding: 40px 22px;
    text-align: center;
}

.vis-cart-drawer .vis-drawer-empty p {
    margin: 0 0 18px;
    color: #f5ede3;
    font-size: 16px;
}

/* ---------- Shop and category pages: one clean, balanced grid ---------- */

/* No sidebar: a price filter for three products ($5–$13) and an empty "Product tags" box only squeezed the grid. */
body.post-type-archive-product .left-col,
body.tax-product_cat .left-col,
body.tax-product_tag .left-col,
body.tax-product_brand .left-col {
    display: none !important;
}

body.post-type-archive-product .content-area,
body.tax-product_cat .content-area,
body.tax-product_tag .content-area,
body.tax-product_brand .content-area {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
}

/* "Showing all 3 results" and a sort menu are noise with three products. */
body.post-type-archive-product .woocommerce-result-count,
body.post-type-archive-product .woocommerce-ordering,
body.tax-product_cat .woocommerce-result-count,
body.tax-product_cat .woocommerce-ordering,
body.tax-product_brand .woocommerce-result-count,
body.tax-product_brand .woocommerce-ordering {
    display: none !important;
}

body.post-type-archive-product ul.products,
body.tax-product_cat ul.products,
body.tax-product_tag ul.products,
body.tax-product_brand ul.products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    float: none; /* the theme floats this list; a floated grid collapses to zero width */
    width: 100%;
    max-width: 1080px;
    margin: 10px auto 0;
    padding: 0;
}

/* WooCommerce's clearfix pseudo-elements would take up grid cells. */
body.post-type-archive-product ul.products::before,
body.post-type-archive-product ul.products::after,
body.tax-product_cat ul.products::before,
body.tax-product_cat ul.products::after,
body.tax-product_tag ul.products::before,
body.tax-product_tag ul.products::after,
body.tax-product_brand ul.products::before,
body.tax-product_brand ul.products::after {
    display: none !important;
}

body.post-type-archive-product ul.products li.product,
body.tax-product_cat ul.products li.product,
body.tax-product_tag ul.products li.product,
body.tax-product_brand ul.products li.product {
    width: auto;
    margin: 0;
    float: none;
}

@media (max-width: 899px) {
    body.post-type-archive-product ul.products,
    body.tax-product_cat ul.products,
    body.tax-product_tag ul.products,
    body.tax-product_brand ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 599px) {
    body.post-type-archive-product ul.products,
    body.tax-product_cat ul.products,
    body.tax-product_tag ul.products,
    body.tax-product_brand ul.products {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Every card the same height, with its button on the same line. */
ul.products li.product .container-inner,
ul.products li.product .product-block-inner {
    box-sizing: border-box;
    height: 100%;
}

ul.products li.product .product-block-inner {
    display: flex;
    flex-direction: column;
}

ul.products li.product .product-detail-wrapper {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

ul.products li.product .cart-btn {
    display: block;
    width: 100%;
    margin-top: auto;
    padding-top: 14px;
}

/* One clear, full-width "Add to cart" (the theme shrank it to a 26px icon below 980px). */
ul.products li.product .cart-btn a.add_to_cart_button {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    padding: 12px 18px;
    border-radius: 30px;
    font-family: Nunito, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-indent: 0;
    background-position: calc(50% + 58px) 50%; /* the theme's bag icon, just after the words */
}

/* One price size on every card (the theme used 18px for jars, 22px for Mini Toasts). */
ul.products li.product .price,
ul.products li.product .price .amount {
    font-size: 20px;
    line-height: 1.3;
}

/* Empty review stars ("no reviews yet") are hidden but keep their space, so cards stay aligned. */
ul.products li.product .star-rating:has(> span[style*="width:0%"]) {
    visibility: hidden;
}

/* A size picker with only one choice ("1 Jar") is not a choice. It returns when a second option is enabled. */
.cfvsw_variations_form:not(:has(.cfvsw-swatches-option:not(.cfvsw-swatches-disabled):not(.cfvsw-selected-swatch))) {
    display: none !important;
}

/* ---------- Product page ---------- */

form.variations_form:not(:has(.cfvsw-swatches-option:not(.cfvsw-swatches-disabled):not(.cfvsw-selected-swatch))) table.variations,
form.variations_form:not(:has(.cfvsw-swatches-option:not(.cfvsw-swatches-disabled):not(.cfvsw-selected-swatch))) .reset_variations {
    display: none !important;
}

/* Quantity + a big Add to cart, the same height as the express-pay button below. */
.single-product form.cart .woocommerce-variation-add-to-cart,
.single-product form.cart:not(.variations_form) {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
}

.single-product form.cart .quantity {
    flex: 0 0 auto;
    margin: 0;
    float: none;
}

.single-product form.cart .quantity input.qty {
    box-sizing: border-box;
    width: 76px;
    height: 50px;
    margin: 0;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
}

.single-product form.cart button.single_add_to_cart_button {
    flex: 1 1 200px;
    height: 50px;
    margin: 0;
    padding: 0 24px;
    float: none;
    border: 0;
    border-radius: 6px;
    background: #ffdfb5;
    color: #000;
    font-family: Nunito, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.single-product div.product form.cart button.single_add_to_cart_button.button.alt {
    font-size: 16px;
    text-transform: none;
    letter-spacing: 0.3px;
}

.single-product form.cart button.single_add_to_cart_button:hover {
    background: #fff;
    color: #000;
}

.single-product .wcpay-express-checkout-wrapper {
    margin-top: 12px;
}

.single-product .wb_payments h5,
.single-product .wb_payments h5 span {
    color: #f5ede3;
    font-size: 15px;
}

.single-product .product_meta .sku_wrapper {
    display: none !important;
}

/* ---------- Cart page: items left, summary right ---------- */

@media (min-width: 992px) {
    .woocommerce-cart .entry-content > .woocommerce {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 360px;
        align-items: start;
        column-gap: 32px;
    }

    .woocommerce-cart .entry-content > .woocommerce > * {
        grid-column: 1 / -1;
    }

    .woocommerce-cart .entry-content > .woocommerce > form.woocommerce-cart-form {
        grid-column: 1;
    }

    .woocommerce-cart .entry-content > .woocommerce > .cart-collaterals {
        grid-column: 2;
    }

    .woocommerce-cart .cart-collaterals .cart_totals {
        float: none;
        width: 100%;
        margin-top: 0;
    }
}

/* Totals boxes (cart summary, checkout "Your order"): each row is a line of its own, label left and
   amount right, so the shipping choices can use the full box width under the "Shipment" label.
   A real table squeezed them into one half-width column. Phones keep WooCommerce's stacked cart table. */
.woocommerce table.woocommerce-checkout-review-order-table,
.woocommerce table.woocommerce-checkout-review-order-table > thead,
.woocommerce table.woocommerce-checkout-review-order-table > tbody,
.woocommerce table.woocommerce-checkout-review-order-table > tfoot {
    display: block;
    width: 100%;
}

.woocommerce table.woocommerce-checkout-review-order-table tr {
    display: flex;
    flex-wrap: wrap;
}

.woocommerce table.woocommerce-checkout-review-order-table tr > th,
.woocommerce table.woocommerce-checkout-review-order-table tr > td {
    display: block;
    box-sizing: border-box;
    padding: 14px 15px;
    line-height: 24px;
}

/* The box has its own outline, so the last line needs no rule under it (the theme drew half of one). */
.woocommerce table.woocommerce-checkout-review-order-table tfoot tr:last-child > * {
    border-bottom: 0 !important;
}

.woocommerce table.woocommerce-checkout-review-order-table tr > :first-child {
    flex: 1 1 0;
    min-width: 0;
}

.woocommerce table.woocommerce-checkout-review-order-table tr > :last-child {
    flex: 0 0 auto;
    text-align: right;
}

.woocommerce table.woocommerce-checkout-review-order-table > thead th {
    padding-top: 10px;
    padding-bottom: 10px;
}

@media (min-width: 769px) {
    .woocommerce .cart_totals table.shop_table,
    .woocommerce .cart_totals table.shop_table > tbody {
        display: block;
        width: 100%;
    }

    .woocommerce .cart_totals table.shop_table tr {
        display: flex;
        flex-wrap: wrap;
    }

    .woocommerce .cart_totals table.shop_table tr > th,
    .woocommerce .cart_totals table.shop_table tr > td {
        display: block;
        box-sizing: border-box;
        padding: 15px 20px;
        line-height: 24px;
    }

    .woocommerce .cart_totals table.shop_table tr > th {
        flex: 1 1 0;
        min-width: 0;
    }

    .woocommerce .cart_totals table.shop_table tr > td {
        flex: 0 0 auto;
        text-align: right;
    }
}

.woocommerce .cart_totals table.shop_table tr.woocommerce-shipping-totals > th,
.woocommerce .cart_totals table.shop_table tr.woocommerce-shipping-totals > td,
.woocommerce table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals > th,
.woocommerce table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals > td {
    flex: 0 0 100%;
    text-align: left;
}

.woocommerce .cart_totals table.shop_table tr.woocommerce-shipping-totals > th,
.woocommerce table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals > th {
    padding-bottom: 6px;
    border-bottom: 0 !important; /* the theme forces a line under every label */
}

.woocommerce .cart_totals table.shop_table tr.woocommerce-shipping-totals > td,
.woocommerce table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals > td {
    padding-top: 6px;
}

.woocommerce .woocommerce-shipping-destination,
.woocommerce .woocommerce-shipping-calculator {
    text-align: left;
}

.woocommerce ul#shipping_method {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.woocommerce ul#shipping_method li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 10px;
    padding: 0;
    line-height: 1.4;
    text-align: left;
}

/* Old custom CSS pushed each label 40px away from its radio button. */
.woocommerce ul#shipping_method li input {
    flex: 0 0 auto;
    margin: 3px 0 0 !important;
}

.woocommerce ul#shipping_method li label {
    display: block;
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
    font-weight: 400;
    text-indent: 0;
}

.woocommerce ul#shipping_method li label .amount {
    font-weight: 700;
}

/* Old Customizer CSS pulled the shipping list 200px to the left on phones, out of the box. */
.woocommerce table ul#shipping_method {
    margin: 0;
}

/* A rule between the last product and Subtotal in "Your order". */
.woocommerce table.woocommerce-checkout-review-order-table > tfoot tr:first-child > * {
    border-top: 1px solid #f1a578;
}

@media (max-width: 767px) {
    /* The theme printed the phone row labels (Price:, Quantity:, Subtotal:, Shipment:, Total:) black on the dark page. */
    .woocommerce table.shop_table_responsive tbody tr td::before {
        margin-right: 8px;
        color: #f5ede3;
    }

    /* "Shipment:" on its own line, the choices underneath at full width. */
    .woocommerce table.shop_table_responsive tbody tr.woocommerce-shipping-totals td::before {
        display: block;
        float: none;
        margin-bottom: 8px;
        text-align: left;
    }
}

/* Quantities update by themselves, like on Shopify. */
body.vis-cart-auto .woocommerce-cart-form button[name="update_cart"] {
    display: none !important;
}

/* ---------- Checkout: your details left, order summary right ---------- */

@media (min-width: 992px) {
    form.woocommerce-checkout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
        align-items: start;
        column-gap: 40px;
    }

    form.woocommerce-checkout > * {
        grid-column: 1 / -1;
    }

    form.woocommerce-checkout > #customer_details {
        grid-column: 1;
        grid-row: 2 / span 2;
    }

    form.woocommerce-checkout > #order_review_heading {
        grid-column: 2;
        grid-row: 2;
        margin-top: 0;
    }

    form.woocommerce-checkout > #order_review {
        grid-column: 2;
        grid-row: 3;
    }

    form.woocommerce-checkout #customer_details .col-1,
    form.woocommerce-checkout #customer_details .col-2 {
        float: none;
        width: 100%;
        max-width: 100%;
    }
}

/* ---------- Cart page ---------- */

.woocommerce-cart .vis-ship-bar {
    margin: 0 0 24px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 223, 181, 0.45);
    border-radius: 8px;
}

/* ---------- Checkout ---------- */

/* The card form's labels are white (they follow the site), but the panel behind them was light grey,
   so "Card number / Expiration / CVC" were invisible. Same dark as the page; the input boxes stay white. */
.woocommerce-checkout #payment div.payment_box.payment_method_woocommerce_payments {
    padding-right: 0;
    padding-left: 0;
    background-color: transparent;
    color: #f5ede3;
}

.woocommerce-checkout #payment div.payment_box.payment_method_woocommerce_payments::before {
    display: none;
}

/* WooPay's "Terms of Service" / "Privacy Policy" links were dark on dark. */
.woocommerce-checkout .woopay-save-new-user-container a,
.woocommerce-checkout #payment .woopay-save-new-user-container a {
    color: #ffdfb5;
    text-decoration: underline;
}

.vis-cart-error {
    margin-top: 12px;
    color: #ffb4a8;
    font-size: 14px;
}
