/**
 * RAM Systems - WooCommerce Styles
 * 
 * Estilos personalizados para WooCommerce
 * 
 * @package RAM_Systems
 * @since 1.0.0
 */

/* ==========================================================================
   General WooCommerce Overrides
   ========================================================================== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: var(--spacing-md) var(--spacing-lg) !important;
    background: var(--color-off-white) !important;
    border: none !important;
    border-radius: var(--radius-lg) !important;
    color: var(--color-black) !important;
    margin-bottom: var(--spacing-lg) !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: var(--color-primary) !important;
}

.woocommerce-error {
    background: rgba(248, 81, 73, 0.1) !important;
}

.woocommerce-error::before {
    color: var(--color-error) !important;
}

.woocommerce-message .button,
.woocommerce-info .button {
    background: var(--color-primary) !important;
    color: var(--color-white) !important;
    border-radius: var(--radius-md) !important;
    padding: var(--spacing-sm) var(--spacing-md) !important;
    font-size: var(--text-sm) !important;
}

/* ==========================================================================
   Shop Page / Product Archive
   ========================================================================== */
.shop-content {
    padding: var(--spacing-2xl) 0;
}

.shop-content .container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    box-sizing: border-box;
}

/* Ensure shop-products is a flex container */
.shop-products {
    display: flex !important;
    flex-direction: column !important;
}

.shop-layout {
    display: flex !important;
    flex-direction: row !important;
    gap: var(--spacing-2xl) !important;
    align-items: flex-start !important;
    margin-top: var(--spacing-xl) !important;
    width: 100% !important;
}

/* Sidebar - fixed width, appears first */
.shop-layout .shop-sidebar,
.shop-content .shop-layout .shop-sidebar,
.shop-content .container .shop-layout .shop-sidebar {
    flex: 0 0 280px !important;
    width: 280px !important;
    max-width: 280px !important;
    min-width: 280px !important;
    order: 1 !important;
    box-sizing: border-box !important;
    display: block !important;
    float: none !important;
}

/* Products area - takes remaining space */
.shop-layout .shop-products,
.shop-content .shop-layout .shop-products,
.shop-content .container .shop-layout .shop-products {
    flex: 1 1 auto !important;
    order: 2 !important;
    min-width: 0 !important; /* Prevents flex item from overflowing */
    width: auto !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    float: none !important;
}

/* When no sidebar, products take full width */
.shop-layout .shop-products.full-width {
    flex: 1 1 100% !important;
    width: 100% !important;
}

@media (max-width: 1024px) {
    .shop-layout {
        flex-direction: column;
    }
    
    .shop-layout .shop-sidebar {
        flex: 1 1 100%;
        order: 1;
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        position: static;
        max-height: none;
    }
    
    .shop-layout .shop-products {
        order: 2;
        width: 100%;
    }
}

.woocommerce-products-header {
    margin-bottom: var(--spacing-2xl);
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.woocommerce-products-header__title {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

/* Shop Toolbar */
.shop-toolbar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-off-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: var(--spacing-xl);
    width: 100%;
    order: 1;
}

.woocommerce-result-count {
    color: var(--color-gray-lighter);
    font-size: var(--text-sm);
    margin: 0;
    font-weight: 500;
    width: 100%;
}

.woocommerce-ordering {
    margin: 0;
    position: relative;
    width: auto;
    display: flex;
    align-items: center;
    align-self: flex-start;
}

/* Custom Select Styling - Remove default browser styles */
.woocommerce-ordering select,
select,
.widget select,
.widget_layered_nav select,
.widget_layered_nav_filters select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right var(--spacing-md) center !important;
    background-size: 12px !important;
    padding: var(--spacing-md) calc(var(--spacing-xl) + 12px) var(--spacing-md) var(--spacing-md) !important;
    border: 2px solid var(--color-off-white) !important;
    border-radius: var(--radius-md) !important;
    font-size: var(--text-xs) !important;
    font-weight: 500 !important;
    color: var(--color-black) !important;
    background-color: var(--color-white) !important;
    cursor: pointer !important;
    transition: all var(--transition-fast) !important;
    width: auto;
    min-width: 220px;
    max-width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    height: 54px;
    line-height: 1.5;
    box-sizing: border-box;
}

.woocommerce-ordering select:hover,
select:hover,
.widget select:hover {
    border-color: var(--color-primary) !important;
    box-shadow: 0 2px 6px rgba(0, 168, 232, 0.1) !important;
}

.woocommerce-ordering select:focus,
select:focus,
.widget select:focus {
    outline: 2px solid var(--color-primary) !important;
    outline-offset: 2px !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1) !important;
}

/* Remove default select arrow in IE */
.woocommerce-ordering select::-ms-expand,
select::-ms-expand {
    display: none !important;
}

/* Products Grid */
.shop-products ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: var(--spacing-lg) !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    order: 2;
}

ul.products::before,
ul.products::after {
    display: none !important;
}

/* Product Card */
ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
}

ul.products li.product:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(14, 165, 233, 0.2);
}

/* Focus state for product card link */
ul.products li.product .woocommerce-loop-product__link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-lg);
}

/* Product Image */
ul.products li.product a img,
ul.products li.product .woocommerce-loop-product__link img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    margin: 0 !important;
    border-radius: 0 !important;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

ul.products li.product:hover a img {
    transform: scale(1.06);
}

ul.products li.product .attachment-woocommerce_thumbnail {
    border-radius: 0 !important;
}

/* Product Info */
ul.products li.product .woocommerce-loop-product__link {
    display: block;
}

ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2 {
    padding: var(--spacing-md) var(--spacing-md) 0 !important;
    font-size: var(--text-base) !important;
    font-weight: 600;
    color: var(--color-black);
    line-height: 1.4;
}

ul.products li.product .price {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md) var(--spacing-md) !important;
    font-size: var(--text-lg) !important;
    font-weight: 700;
    color: var(--color-primary) !important;
    letter-spacing: -0.02em;
}

ul.products li.product .price del {
    color: var(--color-gray-lighter) !important;
    font-size: var(--text-sm) !important;
    font-weight: 400;
    margin-right: var(--spacing-sm);
}

ul.products li.product .price ins {
    text-decoration: none;
}

/* IVA Suffix */
.price-iva-suffix {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--color-gray);
    letter-spacing: 0;
    margin-top: 0.25rem;
}

ul.products li.product .price .price-iva-suffix {
    font-size: 0.65rem;
}

.single-product .price .price-iva-suffix {
    display: inline;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* Sale Badge */
ul.products li.product .onsale,
.woocommerce span.onsale {
    top: var(--spacing-md) !important;
    left: var(--spacing-md) !important;
    right: auto !important;
    margin: 0 !important;
    padding: var(--spacing-xs) var(--spacing-sm) !important;
    min-width: auto !important;
    min-height: auto !important;
    line-height: 1.4 !important;
    font-size: var(--text-xs) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--color-error) !important;
    color: var(--color-white) !important;
    border-radius: var(--radius-md) !important;
}

/* Product buttons container */
ul.products li.product .product-buttons-wrapper {
    display: flex !important;
    gap: var(--spacing-xs) !important;
    margin: var(--spacing-sm) var(--spacing-md) var(--spacing-md) !important;
    width: calc(100% - var(--spacing-md) * 2) !important;
    align-items: stretch;
}

/* Add to Cart Button - inside wrapper - Icon only */
ul.products li.product .product-buttons-wrapper .button,
ul.products li.product .product-buttons-wrapper a.button:not(.product-whatsapp-inquiry),
ul.products li.product .product-buttons-wrapper .add_to_cart_button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
    padding: var(--spacing-sm) var(--spacing-md) !important;
    font-size: 0 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    background: linear-gradient(135deg, rgba(0, 168, 232, 0.75) 0%, rgba(0, 126, 167, 0.85) 100%) !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    margin: 0 !important;
    width: auto !important;
    box-shadow: 0 2px 8px rgba(0, 168, 232, 0.2);
    position: relative;
}

/* Hide text and show cart icon - Only for Add to Cart buttons, NOT WhatsApp */
ul.products li.product .product-buttons-wrapper .button:not(.product-whatsapp-inquiry) > *,
ul.products li.product .product-buttons-wrapper a.button:not(.product-whatsapp-inquiry) > *,
ul.products li.product .product-buttons-wrapper .add_to_cart_button > * {
    display: none !important;
}

/* Add cart icon to Add to Cart button - NOT for WhatsApp */
ul.products li.product .product-buttons-wrapper .button:not(.product-whatsapp-inquiry)::after,
ul.products li.product .product-buttons-wrapper a.button:not(.product-whatsapp-inquiry)::after,
ul.products li.product .product-buttons-wrapper .add_to_cart_button::after {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'%3E%3C/circle%3E%3Ccircle cx='20' cy='21' r='1'%3E%3C/circle%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
}

/* Ensure WhatsApp button shows its SVG icon */
ul.products li.product .product-buttons-wrapper .product-whatsapp-inquiry svg,
ul.products li.product .product-whatsapp-inquiry svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
}

ul.products li.product .product-buttons-wrapper .button:hover,
ul.products li.product .product-buttons-wrapper a.button:not(.product-whatsapp-inquiry):hover {
    background: linear-gradient(135deg, rgba(0, 168, 232, 0.9) 0%, rgba(0, 126, 167, 1) 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 232, 0.3);
    color: var(--color-white) !important;
}

/* Focus state for add to cart button */
ul.products li.product .product-buttons-wrapper .button:focus-visible,
ul.products li.product .product-buttons-wrapper a.button:not(.product-whatsapp-inquiry):focus-visible,
ul.products li.product .product-buttons-wrapper .add_to_cart_button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

/* WhatsApp Inquiry Button */
ul.products li.product .product-buttons-wrapper .product-whatsapp-inquiry,
ul.products li.product .product-whatsapp-inquiry {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto !important;
    width: 44px !important;
    min-width: 44px !important;
    height: auto !important;
    padding: var(--spacing-sm) !important;
    font-size: 0 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.75) 0%, rgba(25, 181, 85, 0.85) 100%) !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    margin: 0 !important;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
}

ul.products li.product .product-buttons-wrapper .product-whatsapp-inquiry:hover,
ul.products li.product .product-whatsapp-inquiry:hover {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.9) 0%, rgba(25, 181, 85, 1) 100%) !important;
    transform: translateY(-2px);
    color: var(--color-white) !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Focus state for WhatsApp button */
ul.products li.product .product-buttons-wrapper .product-whatsapp-inquiry:focus-visible,
ul.products li.product .product-whatsapp-inquiry:focus-visible {
    outline: 2px solid #25D366;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}

ul.products li.product .product-whatsapp-inquiry svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

ul.products li.product .added_to_cart {
    display: block !important;
    width: calc(100% - var(--spacing-lg) * 2) !important;
    margin: 0 var(--spacing-md) var(--spacing-md) !important;
    padding: var(--spacing-xs) !important;
    font-size: var(--text-xs) !important;
    text-align: center !important;
    color: var(--color-success) !important;
    background: rgba(63, 185, 80, 0.1) !important;
    border-radius: var(--radius-md) !important;
}

/* Star Rating */
ul.products li.product .star-rating {
    margin: var(--spacing-sm) var(--spacing-md) 0 !important;
    font-size: var(--text-sm) !important;
}

.star-rating {
    color: #FFB800;
}

.star-rating::before {
    color: var(--color-off-white);
}

/* ==========================================================================
   Single Product
   ========================================================================== */
.single-product .product {
    margin-bottom: var(--spacing-2xl);
}

.single-product .woocommerce-product-gallery {
    width: 50% !important;
    float: left;
    padding-right: var(--spacing-2xl);
}

.single-product .summary {
    width: 50% !important;
    float: right;
}

.single-product .woocommerce-product-gallery__wrapper {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.single-product .woocommerce-product-gallery__image img {
    border-radius: var(--radius-xl);
}

.single-product .woocommerce-product-gallery .flex-control-thumbs {
    margin-top: var(--spacing-md) !important;
    display: flex;
    gap: var(--spacing-sm);
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li {
    width: auto !important;
    flex: 1;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li img {
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: border-color var(--transition-fast);
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
    border-color: var(--color-primary);
}

/* Product Title */
.single-product .product_title {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

/* Product Price */
.single-product .price {
    font-size: var(--text-2xl) !important;
    font-weight: 700;
    color: var(--color-primary) !important;
    margin-bottom: var(--spacing-lg) !important;
}

.single-product .price del {
    color: var(--color-gray-lighter) !important;
    font-size: var(--text-lg) !important;
    font-weight: 400;
}

/* Product Description */
.single-product .woocommerce-product-details__short-description {
    font-size: var(--text-base);
    color: var(--color-gray-light);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

/* Add to Cart Form */
.single-product form.cart {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl) !important;
}

.single-product .quantity {
    margin: 0 !important;
}

.single-product .quantity .qty {
    width: 80px;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--text-base);
    text-align: center;
    border: 2px solid var(--color-off-white);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast);
}

.single-product .quantity .qty:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-color: var(--color-primary);
}

.single-product .single_add_to_cart_button {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-xl) !important;
    font-size: var(--text-base) !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-white) !important;
    background: var(--color-primary) !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    transition: all var(--transition-fast) !important;
}

.single-product .single_add_to_cart_button:hover {
    background: var(--color-primary-dark) !important;
    transform: translateY(-2px);
}

.single-product .single_add_to_cart_button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

/* Product Meta */
.single-product .product_meta {
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-off-white);
    font-size: var(--text-sm);
    color: var(--color-gray-lighter);
}

.single-product .product_meta > span {
    display: block;
    margin-bottom: var(--spacing-sm);
}

.single-product .product_meta a {
    color: var(--color-primary);
}

/* Product Tabs */
.woocommerce-tabs {
    clear: both;
    padding-top: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
    border-top: 1px solid var(--color-off-white);
}

.woocommerce-tabs ul.tabs {
    display: flex;
    gap: var(--spacing-xs);
    margin: 0 0 var(--spacing-xl) !important;
    padding: 0 !important;
    border-bottom: 2px solid var(--color-off-white) !important;
}

.woocommerce-tabs ul.tabs::before,
.woocommerce-tabs ul.tabs::after {
    display: none !important;
}

.woocommerce-tabs ul.tabs li {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}

.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: var(--spacing-md) var(--spacing-lg) !important;
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray-lighter) !important;
    background: transparent !important;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition-fast);
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
    color: var(--color-primary) !important;
    border-bottom-color: var(--color-primary);
}

.woocommerce-tabs ul.tabs li a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.woocommerce-tabs .panel {
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-tabs .panel h2 {
    font-size: var(--text-xl);
    margin-bottom: var(--spacing-md);
}

/* Related Products */
.related.products,
.upsells.products {
    margin-top: var(--spacing-3xl);
    padding-top: var(--spacing-2xl);
    border-top: 1px solid var(--color-off-white);
}

.related.products > h2,
.upsells.products > h2 {
    font-size: var(--text-2xl);
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

/* ==========================================================================
   Cart Page
   ========================================================================== */
.woocommerce-cart-form {
    margin-bottom: var(--spacing-2xl);
}

.woocommerce-cart-form table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-cart-form th {
    padding: var(--spacing-md);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray-lighter);
    border-bottom: 2px solid var(--color-off-white);
    text-align: left;
}

.woocommerce-cart-form td {
    padding: var(--spacing-lg) var(--spacing-md);
    border-bottom: 1px solid var(--color-off-white);
    vertical-align: middle;
}

.woocommerce-cart-form .product-remove a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: var(--text-xl);
    color: var(--color-gray-lighter) !important;
    background: var(--color-off-white);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.woocommerce-cart-form .product-remove a:hover {
    color: var(--color-white) !important;
    background: var(--color-error);
}

.woocommerce-cart-form .product-thumbnail {
    width: 100px;
}

.woocommerce-cart-form .product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.woocommerce-cart-form .product-name a {
    font-weight: 600;
    color: var(--color-black);
}

.woocommerce-cart-form .product-name a:hover {
    color: var(--color-primary);
}

.woocommerce-cart-form .product-price,
.woocommerce-cart-form .product-subtotal {
    font-weight: 600;
    color: var(--color-black);
}

.woocommerce-cart-form .quantity .qty {
    width: 70px;
    padding: var(--spacing-sm);
    text-align: center;
    border: 2px solid var(--color-off-white);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
}

.woocommerce-cart-form .actions {
    padding: var(--spacing-lg) 0 !important;
}

.woocommerce-cart-form .actions .coupon {
    display: flex;
    gap: var(--spacing-sm);
}

.woocommerce-cart-form .actions .coupon input {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--color-off-white);
    border-radius: var(--radius-md);
}

.woocommerce-cart-form .actions .button {
    padding: var(--spacing-sm) var(--spacing-lg) !important;
    font-size: var(--text-sm) !important;
    font-weight: 600 !important;
    color: var(--color-white) !important;
    background: var(--color-primary) !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    transition: all var(--transition-fast) !important;
}

.woocommerce-cart-form .actions .button:hover {
    background: var(--color-primary-dark) !important;
}

.woocommerce-cart-form .actions .button[name="update_cart"] {
    display: none !important; /* Hidden - cart updates automatically */
}

/* Cart Page Layout */
.cart-page-layout,
.woocommerce-cart .cart-page-layout,
body.woocommerce-cart .cart-page-layout {
    display: grid !important;
    grid-template-columns: 1fr 400px !important;
    gap: 2.5rem !important;
    align-items: start !important;
    max-width: 100% !important;
    width: 100% !important;
}

.cart-main,
.woocommerce-cart .cart-main {
    min-width: 0;
    width: 100%;
}

.cart-sidebar,
.woocommerce-cart .cart-sidebar {
    position: sticky;
    top: 100px;
    width: 100%;
}

/* Cart Table Desktop */
.woocommerce-cart-form .shop_table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-cart-form .shop_table th,
.woocommerce-cart-form .shop_table td {
    padding: 1rem 0.75rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.woocommerce-cart-form .shop_table thead th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray);
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.woocommerce-cart-form .product-thumbnail {
    width: 80px;
}

.woocommerce-cart-form .product-thumbnail img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.woocommerce-cart-form .product-remove {
    width: 40px;
    text-align: center;
}

.woocommerce-cart-form .product-remove .remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 1.25rem;
    color: var(--color-gray-light) !important;
    background: var(--color-off-white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
}

.woocommerce-cart-form .product-remove .remove:hover {
    color: #ef4444 !important;
    background: #fef2f2;
}

/* Cart Totals */
.cart_totals {
    background: var(--color-off-white);
    padding: 1.75rem;
    border-radius: 16px;
}

.cart_totals h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--color-black);
}

.cart_totals table {
    width: 100%;
    margin-bottom: 1.25rem;
    border-collapse: separate;
    border-spacing: 0;
}

.cart_totals th,
.cart_totals td {
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.95rem;
}

.cart_totals th {
    text-align: left;
    font-weight: 500;
    color: var(--color-gray);
    padding-right: 1rem;
}

.cart_totals td {
    text-align: right;
    font-weight: 600;
    color: var(--color-black);
}

.cart_totals .order-total th,
.cart_totals .order-total td {
    font-size: var(--text-lg);
    padding-top: var(--spacing-md);
    border-bottom: none;
}

.cart_totals .order-total .amount {
    color: var(--color-primary);
    font-weight: 700;
}

/* Checkout Button - Will be replaced with WhatsApp */
.wc-proceed-to-checkout {
    padding: 0 !important;
}

.wc-proceed-to-checkout .checkout-button {
    display: none !important;
}

/* ==========================================================================
   Mini Cart Widget
   ========================================================================== */
.widget_shopping_cart {
    padding: var(--spacing-lg);
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.widget_shopping_cart .woocommerce-mini-cart__empty-message {
    text-align: center;
    color: var(--color-gray-lighter);
    padding: var(--spacing-xl) 0;
}

.widget_shopping_cart .woocommerce-mini-cart {
    max-height: 300px;
    overflow-y: auto;
}

.widget_shopping_cart .woocommerce-mini-cart-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--color-off-white);
}

.widget_shopping_cart .woocommerce-mini-cart-item a:not(.remove) {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-weight: 500;
    color: var(--color-black);
}

.widget_shopping_cart .woocommerce-mini-cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.widget_shopping_cart .woocommerce-mini-cart-item .quantity {
    font-size: var(--text-sm);
    color: var(--color-gray-lighter);
}

.widget_shopping_cart .woocommerce-mini-cart-item .remove {
    margin-left: auto;
    color: var(--color-gray-lighter) !important;
}

.widget_shopping_cart .woocommerce-mini-cart__total {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
    font-weight: 600;
}

.widget_shopping_cart .woocommerce-mini-cart__buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.widget_shopping_cart .woocommerce-mini-cart__buttons .button {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: center;
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.widget_shopping_cart .woocommerce-mini-cart__buttons .button:first-child {
    background: var(--color-off-white);
    color: var(--color-black);
}

.widget_shopping_cart .woocommerce-mini-cart__buttons .button:last-child {
    background: var(--color-whatsapp);
    color: var(--color-white);
}

/* ==========================================================================
   Shop Sidebar Widgets
   ========================================================================== */
.shop-sidebar,
aside.shop-sidebar,
.shop-content .shop-sidebar,
.shop-content .container .shop-sidebar {
    position: sticky !important;
    top: calc(var(--spacing-xl) + 72px) !important;
    align-self: start !important;
    max-height: calc(100vh - 100px) !important;
    overflow-y: auto !important;
    padding-right: var(--spacing-sm) !important;
    width: 280px !important;
    max-width: 280px !important;
    min-width: 280px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
    float: none !important;
    clear: none !important;
}

.shop-sidebar::-webkit-scrollbar {
    width: 6px;
}

.shop-sidebar::-webkit-scrollbar-track {
    background: var(--color-off-white);
    border-radius: var(--radius-full);
}

.shop-sidebar::-webkit-scrollbar-thumb {
    background: var(--color-gray-lighter);
    border-radius: var(--radius-full);
}

.shop-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

.shop-sidebar .widget {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-xl);
    background: var(--color-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-off-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-base);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.shop-sidebar .widget:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.shop-sidebar .widget-title {
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-off-white);
    color: var(--color-black);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: var(--text-sm);
}

/* Product Categories Widget */
.widget_product_categories ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.widget_product_categories ul li {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-off-white);
    transition: all var(--transition-fast);
}

.widget_product_categories ul li:last-child {
    border-bottom: none;
}

.widget_product_categories ul li:hover {
    padding-left: var(--spacing-sm);
}

.widget_product_categories ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
    color: var(--color-black);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.widget_product_categories ul li a:hover {
    color: var(--color-primary);
}

.widget_product_categories ul li .count {
    font-size: var(--text-xs);
    color: var(--color-gray-lighter);
    background: var(--color-off-white);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.widget_product_categories ul li:hover .count {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Layered Nav Widget (Filters) */
.widget_layered_nav ul,
.widget_layered_nav_filters ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.widget_layered_nav ul li,
.widget_layered_nav_filters ul li {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-off-white);
    transition: all var(--transition-fast);
}

.widget_layered_nav ul li:last-child,
.widget_layered_nav_filters ul li:last-child {
    border-bottom: none;
}

.widget_layered_nav ul li:hover,
.widget_layered_nav_filters ul li:hover {
    padding-left: var(--spacing-sm);
}

.widget_layered_nav ul li a,
.widget_layered_nav_filters ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
    color: var(--color-black);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.widget_layered_nav ul li a:hover,
.widget_layered_nav_filters ul li a:hover {
    color: var(--color-primary);
}

.widget_layered_nav ul li .count,
.widget_layered_nav_filters ul li .count {
    font-size: var(--text-xs);
    color: var(--color-gray-lighter);
    background: var(--color-off-white);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.widget_layered_nav ul li:hover .count,
.widget_layered_nav_filters ul li:hover .count {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Checkbox styling for filters */
.widget_layered_nav input[type="checkbox"],
.widget_layered_nav_filters input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    border: 2px solid var(--color-off-white) !important;
    border-radius: var(--radius-sm) !important;
    margin-right: var(--spacing-sm) !important;
    cursor: pointer !important;
    position: relative !important;
    transition: all var(--transition-fast) !important;
    flex-shrink: 0 !important;
}

.widget_layered_nav input[type="checkbox"]:checked,
.widget_layered_nav_filters input[type="checkbox"]:checked {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

.widget_layered_nav input[type="checkbox"]:checked::after,
.widget_layered_nav_filters input[type="checkbox"]:checked::after {
    content: '✓' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: var(--color-white) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

.widget_layered_nav input[type="checkbox"]:hover,
.widget_layered_nav_filters input[type="checkbox"]:hover {
    border-color: var(--color-primary) !important;
}

/* Price Filter Widget */
.widget_price_filter .price_slider_wrapper {
    padding: var(--spacing-lg) 0;
}

.widget_price_filter .ui-slider {
    background: var(--color-off-white) !important;
    border: none !important;
    border-radius: var(--radius-full);
    height: 8px !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.widget_price_filter .ui-slider .ui-slider-range {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 100%) !important;
    border-radius: var(--radius-full);
    box-shadow: 0 1px 3px rgba(0, 168, 232, 0.3);
}

.widget_price_filter .ui-slider .ui-slider-handle {
    width: 20px !important;
    height: 20px !important;
    background: var(--color-white) !important;
    border: 3px solid var(--color-primary) !important;
    border-radius: var(--radius-full) !important;
    top: -6px !important;
    cursor: grab;
    box-shadow: 0 2px 6px rgba(0, 168, 232, 0.3);
    transition: all var(--transition-fast);
}

.widget_price_filter .ui-slider .ui-slider-handle:hover,
.widget_price_filter .ui-slider .ui-slider-handle:active {
    transform: scale(1.2);
    box-shadow: 0 3px 10px rgba(0, 168, 232, 0.4);
}

.widget_price_filter .ui-slider .ui-slider-handle:active {
    cursor: grabbing;
}

.widget_price_filter .price_slider_amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-off-white);
}

.widget_price_filter .price_slider_amount .price_label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-black);
}

.widget_price_filter .price_slider_amount .button {
    padding: var(--spacing-sm) var(--spacing-lg) !important;
    font-size: var(--text-xs) !important;
    font-weight: 600 !important;
    background: var(--color-primary) !important;
    color: var(--color-white) !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    transition: all var(--transition-fast) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.widget_price_filter .price_slider_amount .button:hover {
    background: var(--color-primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 232, 0.3);
}

/* ==========================================================================
   Shop Pagination
   ========================================================================== */
.shop-pagination {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-off-white);
}

.woocommerce-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
}

.woocommerce-pagination ul {
    display: flex;
    gap: var(--spacing-sm);
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-pagination ul li {
    margin: 0;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 var(--spacing-md);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-black);
    background: var(--color-white);
    border: 2px solid var(--color-off-white);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.woocommerce-pagination ul li a:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 232, 0.2);
}

.woocommerce-pagination ul li span.current {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 168, 232, 0.2);
}

.woocommerce-pagination ul li a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   Breadcrumbs - Hidden
   ========================================================================== */
.woocommerce-breadcrumb,
.breadcrumbs,
.woocommerce .breadcrumb,
nav[aria-label="Breadcrumb"],
.rank-math-breadcrumb,
.wpseo-breadcrumb {
    display: none !important;
}

/* ==========================================================================
   Empty Cart
   ========================================================================== */
.cart-empty.woocommerce-info {
    text-align: center;
    padding: var(--spacing-3xl) !important;
}

.woocommerce-cart .return-to-shop {
    text-align: center;
    margin-top: var(--spacing-xl);
}

.woocommerce-cart .return-to-shop .button {
    padding: var(--spacing-md) var(--spacing-xl) !important;
    font-size: var(--text-base) !important;
    font-weight: 600 !important;
    background: var(--color-primary) !important;
    color: var(--color-white) !important;
    border-radius: var(--radius-md) !important;
}

/* ==========================================================================
   Quantity Buttons
   ========================================================================== */
.quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
}

.quantity-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-black);
    background: var(--color-off-white);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quantity-btn:first-child {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.quantity-btn:last-child {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.quantity-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.quantity-btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.quantity-wrapper .qty {
    width: 50px;
    height: 36px;
    text-align: center;
    border: none;
    font-size: var(--text-base);
    font-weight: 600;
    background: var(--color-off-white);
    appearance: textfield;
    -moz-appearance: textfield;
}

.quantity-wrapper .qty::-webkit-outer-spin-button,
.quantity-wrapper .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ==========================================================================
   WooCommerce Notices (Updated Cart, etc)
   ========================================================================== */
.woocommerce-notices-wrapper {
    margin-bottom: var(--spacing-lg);
}

/* ==========================================================================
   Hide Default Checkout Elements
   ========================================================================== */
.woocommerce-checkout,
.woocommerce-account:not(.logged-in) .woocommerce-MyAccount-navigation,
.woocommerce-account:not(.logged-in) .woocommerce-MyAccount-content,
.woocommerce-form-login,
.woocommerce-form-register {
    display: none !important;
}

/* Hide ALL default WooCommerce checkout buttons */
.wc-proceed-to-checkout .checkout-button,
.wc-proceed-to-checkout a.checkout-button,
.wc-proceed-to-checkout .button.checkout,
.wc-proceed-to-checkout a.button.checkout,
.woocommerce a.checkout-button,
.woocommerce .checkout-button,
a.checkout-button.wc-forward,
.wc-proceed-to-checkout > a:not(.whatsapp-checkout-btn),
.wc-proceed-to-checkout > button:not(.whatsapp-checkout-btn),
.wc-proceed-to-checkout .button:not(.whatsapp-checkout-btn) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Hide any button that says "Finalizar compra" or "Proceed to checkout" */
.wc-proceed-to-checkout a[href*="checkout"],
.wc-proceed-to-checkout button[type="submit"]:not(.whatsapp-checkout-btn) {
    display: none !important;
}

/* Hide WooCommerce Blocks Cart Button */
.wc-block-cart__submit-container,
.wc-block-cart__submit-button,
.wc-block-components-button.wc-block-cart__submit-button,
a.wc-block-components-button.wc-block-cart__submit-button,
.wc-block-cart__submit-container a,
.wc-block-cart__submit-container button {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Hide any block-based checkout buttons */
/* Note: Keep the cart content but hide checkout buttons - handled by other selectors */

.wc-block-checkout__actions,
.wc-block-cart__actions {
    position: relative;
}

.wc-block-checkout__actions .wc-block-components-button:not(.whatsapp-checkout-btn),
.wc-block-cart__actions .wc-block-components-button:not(.whatsapp-checkout-btn) {
    display: none !important;
}

/* Show cart page */
.woocommerce-cart .woocommerce {
    display: block !important;
}

/* Ensure WhatsApp button is visible and styled */
.wc-proceed-to-checkout .whatsapp-checkout-btn,
.whatsapp-checkout-btn,
#whatsapp-checkout-direct {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 1.5rem !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em;
    white-space: nowrap;
    color: var(--color-white) !important;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer;
    transition: all 0.2s ease !important;
    margin-top: 1rem;
    text-decoration: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}

.whatsapp-checkout-btn:hover,
#whatsapp-checkout-direct:hover {
    background: linear-gradient(135deg, #22c55e 0%, #0f766e 100%) !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
    color: var(--color-white) !important;
    transform: translateY(-1px);
}

.whatsapp-checkout-btn svg,
#whatsapp-checkout-direct svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.whatsapp-checkout-btn span {
    white-space: nowrap;
}

/* WhatsApp config notice */
.whatsapp-config-notice {
    margin-top: var(--spacing-md) !important;
}

/* ==========================================================================
   FORCE SHOP LAYOUT - Maximum Specificity
   ========================================================================== */
body.woocommerce-shop .shop-content .container .shop-layout,
body.woocommerce-page .shop-content .container .shop-layout,
body.ramsystems-shop .shop-content .container .shop-layout {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: var(--spacing-2xl) !important;
}

body.woocommerce-shop .shop-content .container .shop-layout .shop-sidebar,
body.woocommerce-page .shop-content .container .shop-layout .shop-sidebar,
body.ramsystems-shop .shop-content .container .shop-layout .shop-sidebar,
body.woocommerce-shop aside.shop-sidebar,
body.woocommerce-page aside.shop-sidebar,
body.ramsystems-shop aside.shop-sidebar {
    flex: 0 0 280px !important;
    width: 280px !important;
    max-width: 280px !important;
    min-width: 280px !important;
    order: 1 !important;
    display: block !important;
    float: none !important;
    clear: none !important;
    position: sticky !important;
    top: calc(var(--spacing-xl) + 72px) !important;
    align-self: flex-start !important;
}

body.woocommerce-shop .shop-content .container .shop-layout .shop-products,
body.woocommerce-page .shop-content .container .shop-layout .shop-products,
body.ramsystems-shop .shop-content .container .shop-layout .shop-products {
    flex: 1 1 auto !important;
    order: 2 !important;
    min-width: 0 !important;
    width: auto !important;
    display: flex !important;
    flex-direction: column !important;
    float: none !important;
    clear: none !important;
}

/* ==========================================================================
   Skeleton Loaders
   ========================================================================== */
@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--color-off-white) 25%,
        rgba(255, 255, 255, 0.5) 50%,
        var(--color-off-white) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

/* Product Card Skeleton */
.product-skeleton {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.product-skeleton .skeleton-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e8e8e8 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.product-skeleton .skeleton-content {
    padding: var(--spacing-md);
}

.product-skeleton .skeleton-title {
    height: 20px;
    margin-bottom: var(--spacing-sm);
    width: 80%;
}

.product-skeleton .skeleton-price {
    height: 24px;
    width: 40%;
    margin-bottom: var(--spacing-md);
}

.product-skeleton .skeleton-button {
    height: 40px;
    width: 100%;
}

/* ==========================================================================
   Add to Cart Loading State
   ========================================================================== */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Loading state for add to cart button */
.add_to_cart_button.loading,
.single_add_to_cart_button.loading,
.button.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.add_to_cart_button.loading::before,
.single_add_to_cart_button.loading::before,
.button.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--color-white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Hide cart icon when loading */
.add_to_cart_button.loading::after,
.single_add_to_cart_button.loading::after {
    opacity: 0;
}

/* Added to cart success animation */
@keyframes cart-added-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.add_to_cart_button.added,
.woocommerce a.added {
    animation: cart-added-pulse 0.3s ease-out;
}

/* Success checkmark for added state */
ul.products li.product .product-buttons-wrapper .add_to_cart_button.added::after,
ul.products li.product .product-buttons-wrapper .button.added::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

/* ==========================================================================
   WhatsApp Button Focus States
   ========================================================================== */
.whatsapp-checkout-btn:focus-visible,
#whatsapp-checkout-direct:focus-visible {
    outline: 2px solid #25D366;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}

/* ==========================================================================
   Form Input Focus States
   ========================================================================== */
.woocommerce-cart-form .quantity .qty:focus,
.woocommerce-cart-form .actions .coupon input:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-color: var(--color-primary);
}

.woocommerce-cart-form .actions .button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Cart remove button focus */
.woocommerce-cart-form .product-remove a:focus-visible {
    outline: 2px solid var(--color-error);
    outline-offset: 2px;
}

/* Product name link focus */
.woocommerce-cart-form .product-name a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Filter widget focus states */
.widget_product_categories ul li a:focus-visible,
.widget_layered_nav ul li a:focus-visible,
.widget_layered_nav_filters ul li a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Price filter handle focus */
.widget_price_filter .ui-slider .ui-slider-handle:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.3);
}

.widget_price_filter .price_slider_amount .button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

