@media ( max-width: 500px ) {

    .woocommerce-product-gallery {
        max-width: 92vw;
        width: 92vw;
    }


    /* Product Archive ----------------------------- */

    /* PRODUCT PREVIEW */

    .woocommerce-loop-product__title {
        font-size: 15px;
    }

    li.product .price {
        font-size: 13px;
    }

    li.product .button,
    li.product .product-inquiry-link,
    li.product .added_to_cart {
        min-width: 100%;
    }

    .product-inquiry-box {
        padding: 14px;
    }


    /* Cart ----------------------------- */

    .shop_table.cart .coupon {
        width: 100%;
    }

    .shop_table.cart td.actions > .button {
        padding: 20px;
        position: static;
        width: 100%;
    }

	.shop_table.cart td.actions > .coupon ~ .button {
		margin-top: 30px;
	}

    /* WOO GRAY BOX */

    .woo-gray-box {
        padding: 20px;
    }

    .woo-gray-box h2 {
        font-size: 24px;
        margin-bottom: 5px;
    }

    .woo-gray-box table {
        margin-bottom: 5px;
    }

    .woo-gray-box th, 
    .woo-gray-box td {
        padding: 15px 0;
    }

    .woo-gray-box th {
        padding-right: 20px;
    }

    .woo-gray-box .button.alt {
        font-size: 14px;
        padding: 18px 21px 19px;
    }

    .woocommerce-cart .woo-gray-box .wc-proceed-to-checkout .checkout-button,
    .woocommerce-cart .woo-gray-box .wc-proceed-to-checkout .checkout-button.alt {
        font-size: 14px;
        padding: 18px 21px 19px;
    }
    
}


@media ( max-width: 450px ) {


    /* Notifications ----------------------------- */

    .woocommerce-message, 
    .woocommerce-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding-right: 20px;
        text-align: left;
    }

    .woocommerce-message .button, 
    .woocommerce-error .button, 
    .woocommerce-info .button {
        display: block;
        margin: 18px 0 -7px;
        max-width: none;
        position: static;
    }


}

/* Slide-out Cart Modal ----------------------------- */

.slide-right {
    background: #fff;
    border: none;
    border-left: 1px solid var(--gray-200);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    height: 100vh;
    opacity: 0;
    position: fixed;
    right: -400px;
    top: 0;
    transform: translateX(0);
    transition: right 0.3s ease-in-out, opacity 0.3s ease-in-out;
    width: 400px;
    z-index: 1000;
}

.slide-right.active {
    opacity: 1;
    right: 0;
}

.modal-overlay {
    background: rgba(0, 0, 0, 0.5);
    height: 100vh;
    left: 0;
    opacity: 0;
    position: fixed;
    top: 0;
    transition: opacity 0.3s ease-in-out;
    width: 100vw;
    z-index: 999;
}

.modal-overlay.active {
    opacity: 1;
}

.cart-modal-header {
    align-items: center;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

.cart-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.cart-modal-header .cart-close {
    align-items: center;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    box-shadow: none;
    color: var(--gray-600);
    cursor: pointer;
    display: inline-flex;
    font-size: 18px;
    font-weight: 400;
    height: 36px;
    justify-content: center;
    line-height: 1;
    margin: 0;
    min-width: 0;
    opacity: 1;
    padding: 0;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
    width: 36px;
}

.cart-modal-header .cart-close:hover,
.cart-modal-header .cart-close:focus {
    background: var(--gray-50);
    border-color: var(--gray-300);
    color: var(--gray-900);
    outline: none;
}

.cart-modal-content {
    max-height: 70vh;
    overflow-y: auto;
    padding: 0;
}

.sullivan-mini-cart {
    background: #fff;
}

.sullivan-mini-cart__items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sullivan-mini-cart__item {
    align-items: flex-start;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    position: relative;
}

.sullivan-mini-cart__item:last-child {
    border-bottom: none;
}

.sullivan-mini-cart__thumb {
    border-radius: var(--border-radius);
    flex: 0 0 64px;
    overflow: hidden;
}

.sullivan-mini-cart__thumb img {
    border-radius: var(--border-radius);
    display: block;
    height: 64px;
    object-fit: cover;
    width: 64px;
}

.sullivan-mini-cart__details {
    flex: 1;
    min-width: 0;
}

.sullivan-mini-cart__title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    padding-right: 24px;
}

.sullivan-mini-cart__meta {
    color: var(--gray-600);
    font-size: 13px;
    line-height: 1.4;
    margin-top: 6px;
}

.sullivan-mini-cart__quantity {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    margin-top: 10px;
    padding: 4px 0;
}

.sullivan-mini-cart__qty-button {
    align-items: center;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    box-shadow: none;
    color: var(--text-color);
    cursor: pointer;
    display: inline-flex;
    font-size: 16px;
    height: 28px;
    justify-content: center;
    min-width: 28px;
    padding: 0;
    width: 28px;
}

.sullivan-mini-cart__qty-button:hover {
    opacity: 1;
    background: var(--gray-200);
}

.sullivan-mini-cart__qty-value {
    font-size: 13px;
    font-weight: 600;
    min-width: 12px;
    text-align: center;
}

.sullivan-mini-cart__quantity.is-updating {
    opacity: 0.5;
    pointer-events: none;
}

.sullivan-mini-cart__remove {
    color: var(--gray-500);
    font-size: 22px;
    line-height: 1;
    position: absolute;
    right: 18px;
    top: 16px;
}

.sullivan-mini-cart__remove:hover {
    color: var(--red-500);
    text-decoration: none;
}

.sullivan-mini-cart__footer {
    border-top: 1px solid var(--gray-200);
    padding: 18px 20px 20px;
}

.sullivan-mini-cart__subtotal {
    align-items: center;
    display: flex;
    font-size: 14px;
    justify-content: space-between;
    margin: 0 0 14px;
}

.sullivan-mini-cart__actions {
    display: grid;
    gap: 10px;
}

.sullivan-mini-cart__actions .button {
    display: block;
    text-align: center;
}

.sullivan-mini-cart__empty {
    color: var(--gray-600);
    padding: 28px 20px;
    text-align: center;
}

/* Ensure cart toggle button styling */
.header-cart .cart-toggle {
    background: none;
    border: none;
    padding: 0;
    position: relative;
}

.header-cart .cart-toggle:before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background-image: url('../svg/cart-black.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Mobile responsive for slide-out cart */
@media (max-width: 768px) {
    .modal.slide-right {
        width: 100vw;
        right: -100vw;
    }
    
    .modal.slide-right.active {
        right: 0;
    }
}

    .wc-block-product-filter-removable-chips__items .wc-block-product-filter-removable-chips__item .wc-block-product-filter-removable-chips__remove {
        align-items: center;
        background: #ffffff;
        border: 1px solid #d1d5db;
        border-radius: 999px;
        box-shadow: 0 1px 2px rgba( 15, 23, 42, 0.08 );
        color: var(--gray-700);
        display: inline-flex;
        height: 28px;
        justify-content: center;
        margin-left: 8px;
        opacity: 1;
        padding: 0;
        transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease, transform .15s ease;
        width: 28px;
    }

    .wc-block-product-filter-removable-chips__items .wc-block-product-filter-removable-chips__item .wc-block-product-filter-removable-chips__remove:hover,
    .wc-block-product-filter-removable-chips__items .wc-block-product-filter-removable-chips__item .wc-block-product-filter-removable-chips__remove:focus {
        background: #f9fafb;
        border-color: #9ca3af;
        box-shadow: 0 4px 10px rgba( 15, 23, 42, 0.1 );
        color: var(--gray-900);
        outline: none;
        transform: translateY( -1px );
    }

    .wc-block-product-filter-removable-chips__items .wc-block-product-filter-removable-chips__item .wc-block-product-filter-removable-chips__remove:active {
        background: #f3f4f6;
        box-shadow: inset 0 1px 2px rgba( 15, 23, 42, 0.1 );
        transform: translateY( 0 );
    }

    .wc-block-product-filter-removable-chips__items .wc-block-product-filter-removable-chips__item .wc-block-product-filter-removable-chips__remove svg {
        display: block;
        fill: currentColor;
        height: 12px;
        width: 12px;
    }

.wc-block-product-filter-price-slider .text input[type=text] {
    max-width: 110px;
}
