/**
 * ShopNFood CrazyFood Style
 * Design inspiré de CrazyFoodShop.fr
 * Version: 1.1.0
 * 
 * Compatible avec:
 * - WooCommerce 8.0+
 * - Thème Astra
 * - Plugin ShopNFood SAGE Connector (filtrage images)
 * - Full Responsive (Mobile First)
 */

/* ============================================
   1. VARIABLES CSS
   ============================================ */
:root {
    --snf-primary: #00B4D8;
    --snf-primary-hover: #0096B7;
    --snf-primary-light: #E8F8FB;
    --snf-secondary: #48B8E8;
    --snf-secondary-hover: #0096B7;
    --snf-accent: #FFD60A;
    --snf-success: #28A745;
    --snf-danger: #DC3545;
    --snf-warning: #FFC107;
    --snf-dark: #1A1A2E;
    --snf-gray-dark: #495057;
    --snf-gray: #6C757D;
    --snf-gray-light: #ADB5BD;
    --snf-light: #F8F9FA;
    --snf-lighter: #FAFBFC;
    --snf-white: #FFFFFF;
    --snf-border: #E9ECEF;
    --snf-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --snf-radius-xl: 30px;
    --snf-radius-lg: 28px;
    --snf-radius: 26px;
    --snf-radius-sm: 24px;
    --snf-radius-xs: 14px;
    --snf-shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --snf-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --snf-shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --snf-shadow-hover: 0 15px 50px rgba(0,0,0,0.15);
    --snf-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --snf-transition-fast: all 0.2s ease;
}

/* ============================================
   2. BASE STYLES
   ============================================ */
body.snf-crazyfood-style {
    font-family: var(--snf-font) !important;
    background: var(--snf-lighter) !important;
    color: var(--snf-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.snf-crazyfood-style *,
body.snf-crazyfood-style *::before,
body.snf-crazyfood-style *::after {
    box-sizing: border-box;
}

body.snf-crazyfood-style h1,
body.snf-crazyfood-style h2,
body.snf-crazyfood-style h3,
body.snf-crazyfood-style h4,
body.snf-crazyfood-style h5,
body.snf-crazyfood-style h6 {
    font-family: var(--snf-font) !important;
    font-weight: 700;
    color: var(--snf-dark);
    margin-bottom: 0.5em;
}

/* ============================================
   3. WOOCOMMERCE PRODUCT GRID - MOBILE FIRST
   ============================================ */

/* Container WooCommerce */
body.snf-crazyfood-style .woocommerce,
body.snf-crazyfood-style.woocommerce {
    width: 100%;
    max-width: 100%;
}

body.snf-crazyfood-style .woocommerce .woocommerce-result-count,
body.snf-crazyfood-style .woocommerce .woocommerce-ordering {
    margin-bottom: 20px;
}

/* GRID PRODUCTS - Mobile First (2 colonnes par défaut) */
body.snf-crazyfood-style .woocommerce ul.products,
body.snf-crazyfood-style ul.products,
body.snf-crazyfood-style .woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    width: 100% !important;
}

/* Reset des styles WooCommerce par défaut */
body.snf-crazyfood-style .woocommerce ul.products::before,
body.snf-crazyfood-style .woocommerce ul.products::after {
    display: none !important;
}

body.snf-crazyfood-style .woocommerce ul.products li.product {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================
   4. PRODUCT CARD
   ============================================ */
body.snf-crazyfood-style .woocommerce ul.products li.product,
body.snf-crazyfood-style ul.products li.product {
    background: var(--snf-white) !important;
    border-radius: var(--snf-radius) !important;
    box-shadow: var(--snf-shadow-sm) !important;
    border: 1px solid var(--snf-border) !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    transition: var(--snf-transition) !important;
    height: 100% !important;
}

body.snf-crazyfood-style .woocommerce ul.products li.product:hover,
body.snf-crazyfood-style ul.products li.product:hover {
    box-shadow: var(--snf-shadow-lg) !important;
    transform: translateY(-4px) !important;
    border-color: var(--snf-primary-light) !important;
}

/* Image Container */
body.snf-crazyfood-style ul.products li.product a.woocommerce-LoopProduct-link,
body.snf-crazyfood-style ul.products li.product > a:first-of-type {
    display: block !important;
    position: relative !important;
    padding: 15px !important;
    background: var(--snf-lighter) !important;
    text-decoration: none !important;
    overflow: hidden !important;
}

/* Product Image */
body.snf-crazyfood-style ul.products li.product img,
body.snf-crazyfood-style ul.products li.product .attachment-woocommerce_thumbnail,
body.snf-crazyfood-style ul.products li.product .wp-post-image {
    width: 100% !important;
    height: 140px !important;
    object-fit: contain !important;
    border-radius: var(--snf-radius-sm) !important;
    transition: var(--snf-transition) !important;
    margin: 0 auto !important;
    display: block !important;
    background: var(--snf-lighter) !important;
}

body.snf-crazyfood-style ul.products li.product:hover img {
    transform: scale(1.05) !important;
}

/* Placeholder for products without images */
body.snf-crazyfood-style ul.products li.product .woocommerce-placeholder,
body.snf-crazyfood-style ul.products li.product img.wp-post-image[src*="placeholder"] {
    background: var(--snf-light) !important;
    opacity: 0.5 !important;
}

/* Product Title */
body.snf-crazyfood-style ul.products li.product .woocommerce-loop-product__title,
body.snf-crazyfood-style ul.products li.product h2.woocommerce-loop-product__title,
body.snf-crazyfood-style ul.products li.product h2 {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: var(--snf-dark) !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 12px 12px 8px !important;
    min-height: auto !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-decoration: none !important;
    background: transparent !important;
}

body.snf-crazyfood-style ul.products li.product a:hover .woocommerce-loop-product__title,
body.snf-crazyfood-style ul.products li.product a:hover h2 {
    color: var(--snf-primary) !important;
}

/* Price */
body.snf-crazyfood-style ul.products li.product .price {
    padding: 0 12px 12px !important;
    margin: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 6px !important;
    margin-top: auto !important;
}

body.snf-crazyfood-style ul.products li.product .price del {
    font-size: 0.8rem !important;
    color: var(--snf-gray-light) !important;
    text-decoration: line-through !important;
    font-weight: 400 !important;
    order: 1 !important;
}

body.snf-crazyfood-style ul.products li.product .price ins,
body.snf-crazyfood-style ul.products li.product .price > .woocommerce-Price-amount,
body.snf-crazyfood-style ul.products li.product .price > span:not(del) {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--snf-secondary) !important;
    text-decoration: none !important;
    background: none !important;
    order: 2 !important;
}

body.snf-crazyfood-style ul.products li.product .price .woocommerce-Price-currencySymbol {
    font-size: inherit !important;
}

/* Add to Cart Button */
body.snf-crazyfood-style ul.products li.product .button,
body.snf-crazyfood-style ul.products li.product .add_to_cart_button,
body.snf-crazyfood-style ul.products li.product a.added_to_cart {
    display: block;
    width: calc(100% - 24px) !important;
    margin: 0 12px 12px !important;
    padding: 10px 15px !important;
    background: var(--snf-primary) !important;
    color: var(--snf-white) !important;
    border: none !important;
    border-radius: var(--snf-radius-sm) !important;
    font-family: var(--snf-font) !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    cursor: pointer !important;
    transition: var(--snf-transition) !important;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3) !important;
    line-height: 1.4 !important;
}

body.snf-crazyfood-style ul.products li.product .button:hover,
body.snf-crazyfood-style ul.products li.product .add_to_cart_button:hover {
    background: var(--snf-primary-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.4) !important;
}

body.snf-crazyfood-style ul.products li.product .button.added,
body.snf-crazyfood-style ul.products li.product .add_to_cart_button.added {
    background: var(--snf-success) !important;
}

body.snf-crazyfood-style ul.products li.product a.added_to_cart {
    background: var(--snf-success) !important;
    margin-top: -5px !important;
    font-size: 0.75rem !important;
}

.added_to_cart {
    display: none !important;
}

body.snf-crazyfood-style ul.products li.product .button.loading::after {
    display: inline-block !important;
    content: "" !important;
    width: 14px !important;
    height: 14px !important;
    border: 2px solid transparent !important;
    border-top-color: var(--snf-white) !important;
    border-radius: 50% !important;
    animation: snf-spin 0.8s linear infinite !important;
    margin-left: 8px !important;
    vertical-align: middle !important;
}

@keyframes snf-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   5. BADGES
   ============================================ */
body.snf-crazyfood-style .snf-badge,
body.snf-crazyfood-style .onsale,
body.snf-crazyfood-style ul.products li.product .onsale,
body.snf-crazyfood-style .woocommerce span.onsale {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    padding: 4px 10px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    font-family: var(--snf-font) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    border-radius: 20px !important;
    z-index: 10 !important;
    min-width: auto !important;
    min-height: auto !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    background: var(--snf-danger) !important;
    color: var(--snf-white) !important;
}

body.snf-crazyfood-style .snf-badge-new {
    background: var(--snf-primary) !important;
    color: var(--snf-white) !important;
    top: 10px !important;
    left: auto !important;
    right: 10px !important;
}

/* ============================================
   6. RESPONSIVE BREAKPOINTS
   ============================================ */

/* Small phones (max 374px) - 1 column */
@media (max-width: 374px) {
    body.snf-crazyfood-style .woocommerce ul.products,
    body.snf-crazyfood-style ul.products {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        padding: 0 10px !important;
    }
    
    body.snf-crazyfood-style ul.products li.product img {
        height: 200px !important;
    }
    
    body.snf-crazyfood-style ul.products li.product .woocommerce-loop-product__title {
        font-size: 1rem !important;
        -webkit-line-clamp: 3 !important;
    }
}

/* Phones (375px - 575px) - 2 columns */
@media (min-width: 375px) and (max-width: 575px) {
    body.snf-crazyfood-style .woocommerce ul.products,
    body.snf-crazyfood-style ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 10px !important;
    }
    
    body.snf-crazyfood-style ul.products li.product img {
        height: 130px !important;
    }
}

/* Large phones / Small tablets (576px - 767px) - 2 columns */
@media (min-width: 576px) and (max-width: 767px) {
    body.snf-crazyfood-style .woocommerce ul.products,
    body.snf-crazyfood-style ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    
    body.snf-crazyfood-style ul.products li.product img {
        height: 160px !important;
    }
    
    body.snf-crazyfood-style ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.9rem !important;
    }
    
    body.snf-crazyfood-style ul.products li.product .button {
        font-size: 0.85rem !important;
        padding: 12px 15px;
    }
}

/* Tablets (768px - 991px) - 3 columns */
@media (min-width: 768px) and (max-width: 991px) {
    body.snf-crazyfood-style .woocommerce ul.products,
    body.snf-crazyfood-style ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
    
    body.snf-crazyfood-style ul.products li.product img {
        height: 180px !important;
    }
    
    body.snf-crazyfood-style ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.9rem !important;
        padding: 15px 15px 10px !important;
    }
    
    body.snf-crazyfood-style ul.products li.product .price {
        padding: 0 15px 15px !important;
    }
    
    body.snf-crazyfood-style ul.products li.product .button {
        width: calc(100% - 30px) !important;
        margin: 0 15px 15px !important;
        padding: 12px 20px !important;
        font-size: 0.85rem !important;
    }
}

/* Small desktops (992px - 1199px) - 3 columns */
@media (min-width: 992px) and (max-width: 1199px) {
    body.snf-crazyfood-style .woocommerce ul.products,
    body.snf-crazyfood-style ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 24px !important;
    }
    
    body.snf-crazyfood-style ul.products li.product img {
        height: 200px !important;
    }
    
    body.snf-crazyfood-style ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.95rem !important;
        padding: 16px 16px 10px !important;
    }
    
    body.snf-crazyfood-style ul.products li.product .price {
        padding: 0 16px 16px !important;
    }
    
    body.snf-crazyfood-style ul.products li.product .price ins,
    body.snf-crazyfood-style ul.products li.product .price > .woocommerce-Price-amount {
        font-size: 1.2rem !important;
    }
    
    body.snf-crazyfood-style ul.products li.product .button {
        width: calc(100% - 32px) !important;
        margin: 0 16px 16px !important;
        padding: 14px 20px !important;
        font-size: 0.9rem !important;
    }
}

/* Desktops (1200px - 1399px) - 4 columns */
@media (min-width: 1200px) and (max-width: 1399px) {
    body.snf-crazyfood-style .woocommerce ul.products,
    body.snf-crazyfood-style ul.products {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 24px !important;
    }
    
    body.snf-crazyfood-style ul.products li.product img {
        height: 200px !important;
    }
    
    body.snf-crazyfood-style ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.95rem !important;
        padding: 16px 16px 10px !important;
    }
    
    body.snf-crazyfood-style ul.products li.product .price {
        padding: 0 16px 16px !important;
    }
    
    body.snf-crazyfood-style ul.products li.product .price ins,
    body.snf-crazyfood-style ul.products li.product .price > .woocommerce-Price-amount {
        font-size: 1.25rem !important;
    }
    
    body.snf-crazyfood-style ul.products li.product .button {
        width: calc(100% - 32px) !important;
        margin: 0 16px 16px !important;
        padding: 14px 24px !important;
        font-size: 0.9rem !important;
    }
}

/* Large desktops (1400px+) - 5 columns */
@media (min-width: 1400px) {
    body.snf-crazyfood-style .woocommerce ul.products,
    body.snf-crazyfood-style ul.products {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 24px !important;
    }
    
    body.snf-crazyfood-style ul.products li.product a.woocommerce-LoopProduct-link {
        padding: 20px !important;
    }
    
    body.snf-crazyfood-style ul.products li.product img {
        height: 200px !important;
    }
    
    body.snf-crazyfood-style ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.95rem !important;
        padding: 16px 16px 10px !important;
    }
    
    body.snf-crazyfood-style ul.products li.product .price {
        padding: 0 16px 16px !important;
    }
    
    body.snf-crazyfood-style ul.products li.product .price ins,
    body.snf-crazyfood-style ul.products li.product .price > .woocommerce-Price-amount {
        font-size: 1.25rem !important;
    }
    
    body.snf-crazyfood-style ul.products li.product .button {
        width: calc(100% - 32px) !important;
        margin: 0 16px 16px !important;
        padding: 14px 24px !important;
        font-size: 0.9rem !important;
    }
    
    body.snf-crazyfood-style .snf-badge,
    body.snf-crazyfood-style .onsale {
        top: 12px !important;
        left: 12px !important;
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
    }
    
    body.snf-crazyfood-style .snf-badge-new {
        right: 12px !important;
    }
}

/* ============================================
   7. SINGLE PRODUCT PAGE
   ============================================ */
body.snf-crazyfood-style.single-product .woocommerce {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

body.snf-crazyfood-style.single-product div.product {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
}

body.snf-crazyfood-style.single-product .woocommerce-product-gallery {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    background: var(--snf-white);
    border-radius: var(--snf-radius);
    padding: 20px;
    box-shadow: var(--snf-shadow);
}

body.snf-crazyfood-style.single-product .summary {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    padding: 25px;
    background: var(--snf-white);
    border-radius: var(--snf-radius);
    box-shadow: var(--snf-shadow);
}

body.snf-crazyfood-style.single-product .product_title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    color: var(--snf-dark) !important;
}

body.snf-crazyfood-style.single-product .price {
    font-size: 1.3rem !important;
    margin-bottom: 20px !important;
}

body.snf-crazyfood-style.single-product .price del {
    color: var(--snf-gray-light) !important;
    font-size: 1rem !important;
}

body.snf-crazyfood-style.single-product .price ins,
body.snf-crazyfood-style.single-product .price > .woocommerce-Price-amount {
    color: var(--snf-secondary) !important;
    font-weight: 700 !important;
}

body.snf-crazyfood-style.single-product .woocommerce-product-details__short-description {
    margin-bottom: 20px;
    color: var(--snf-gray-dark);
    line-height: 1.7;
}

body.snf-crazyfood-style.single-product form.cart {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    align-items: center !important;
    margin-top: 20px !important;
}

body.snf-crazyfood-style.single-product form.cart .quantity {
    width: auto !important;
}

body.snf-crazyfood-style.single-product form.cart .quantity .qty {
    width: 70px !important;
    padding: 12px !important;
    text-align: center !important;
    border: 2px solid var(--snf-border) !important;
    border-radius: var(--snf-radius-sm) !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
}

body.snf-crazyfood-style.single-product .single_add_to_cart_button {
    flex: 1 !important;
    min-width: 200px !important;
    background: var(--snf-secondary) !important;
    color: var(--snf-white) !important;
    padding: 15px 30px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: var(--snf-radius) !important;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3) !important;
    transition: var(--snf-transition) !important;
}

body.snf-crazyfood-style.single-product .single_add_to_cart_button:hover {
    background: var(--snf-secondary-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4) !important;
}

/* Product meta */
body.snf-crazyfood-style.single-product .product_meta {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--snf-border);
    font-size: 0.9rem;
    color: var(--snf-gray);
}

body.snf-crazyfood-style.single-product .product_meta a {
    color: var(--snf-primary) !important;
}

/* Tabs */
body.snf-crazyfood-style.single-product .woocommerce-tabs {
    flex: 1 1 100% !important;
    background: var(--snf-white);
    border-radius: var(--snf-radius);
    padding: 25px;
    box-shadow: var(--snf-shadow);
    margin-top: 20px;
}

body.snf-crazyfood-style.single-product .woocommerce-tabs ul.tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 0 !important;
    margin: 0 0 20px !important;
    list-style: none !important;
    border-bottom: 2px solid var(--snf-border) !important;
    padding-bottom: 15px !important;
}

body.snf-crazyfood-style.single-product .woocommerce-tabs ul.tabs::before,
body.snf-crazyfood-style.single-product .woocommerce-tabs ul.tabs::after {
    display: none !important;
}

body.snf-crazyfood-style.single-product .woocommerce-tabs ul.tabs li {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

body.snf-crazyfood-style.single-product .woocommerce-tabs ul.tabs li a {
    display: block !important;
    padding: 10px 20px !important;
    background: var(--snf-light) !important;
    color: var(--snf-dark) !important;
    border-radius: var(--snf-radius-sm) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: var(--snf-transition) !important;
}

body.snf-crazyfood-style.single-product .woocommerce-tabs ul.tabs li.active a,
body.snf-crazyfood-style.single-product .woocommerce-tabs ul.tabs li a:hover {
    background: var(--snf-primary) !important;
    color: var(--snf-white) !important;
}

/* Related products */
body.snf-crazyfood-style.single-product .related.products,
body.snf-crazyfood-style.single-product .up-sells,
body.snf-crazyfood-style.single-product .cross-sells {
    flex: 1 1 100% !important;
    margin-top: 40px !important;
}

body.snf-crazyfood-style.single-product .related.products > h2,
body.snf-crazyfood-style.single-product .up-sells > h2,
body.snf-crazyfood-style.single-product .cross-sells > h2 {
    font-size: 1.5rem !important;
    margin-bottom: 25px !important;
    text-align: center !important;
}

/* Single Product Responsive */
@media (min-width: 768px) {
    body.snf-crazyfood-style.single-product .woocommerce-product-gallery {
        flex: 0 0 45% !important;
        max-width: 45% !important;
    }
    
    body.snf-crazyfood-style.single-product .summary {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    body.snf-crazyfood-style.single-product .product_title {
        font-size: 1.8rem !important;
    }
    
    body.snf-crazyfood-style.single-product .price {
        font-size: 1.5rem !important;
    }
}

/* ============================================
   8. CART PAGE
   ============================================ */
body.snf-crazyfood-style .woocommerce-cart .woocommerce {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

body.snf-crazyfood-style .woocommerce-cart-form {
    background: var(--snf-white);
    padding: 15px;
    border-radius: var(--snf-radius);
    box-shadow: var(--snf-shadow);
    margin-bottom: 20px;
    overflow-x: auto;
}

body.snf-crazyfood-style .woocommerce table.shop_table {
    border: 1px solid var(--snf-border) !important;
    border-radius: var(--snf-radius-sm) !important;
    border-collapse: separate !important;
    width: 100% !important;
    min-width: 250px !important;
}

body.snf-crazyfood-style .woocommerce table.shop_table th {
    background: var(--snf-light) !important;
    font-weight: 600 !important;
    color: var(--snf-dark) !important;
    padding: 12px !important;
    border: none !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
}

body.snf-crazyfood-style .woocommerce table.shop_table td {
    padding: 15px 12px !important;
    vertical-align: middle !important;
    border-top: 1px solid var(--snf-border) !important;
    border-left: none !important;
    border-right: none !important;
}

body.snf-crazyfood-style .woocommerce table.shop_table td.product-thumbnail {
    width: 80px !important;
}

body.snf-crazyfood-style .woocommerce table.shop_table td.product-thumbnail img {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover !important;
    border-radius: var(--snf-radius-sm) !important;
}

body.snf-crazyfood-style .woocommerce table.shop_table td.product-name a {
    color: var(--snf-dark) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
}

body.snf-crazyfood-style .woocommerce table.shop_table td.product-price,
body.snf-crazyfood-style .woocommerce table.shop_table td.product-subtotal {
    font-weight: 600 !important;
    color: var(--snf-secondary) !important;
}

body.snf-crazyfood-style .woocommerce .quantity .qty {
    width: 60px !important;
    padding: 8px !important;
    text-align: center !important;
    border: 2px solid var(--snf-border) !important;
    border-radius: var(--snf-radius-sm) !important;
    font-weight: 600 !important;
}

/* Cart Totals */
body.snf-crazyfood-style .woocommerce .cart-collaterals {
    margin-top: 20px;
}

body.snf-crazyfood-style .woocommerce .cart_totals {
    background: var(--snf-white) !important;
    padding: 20px !important;
    border-radius: var(--snf-radius) !important;
    box-shadow: var(--snf-shadow) !important;
    width: 100% !important;
    float: none !important;
}

body.snf-crazyfood-style .woocommerce .cart_totals h2 {
    font-size: 1.2rem !important;
    margin-bottom: 15px !important;
    padding-bottom: 15px !important;
    border-bottom: 2px solid var(--snf-border) !important;
}

body.snf-crazyfood-style .woocommerce .cart_totals table {
    border: none !important;
    width: 100% !important;
}

body.snf-crazyfood-style .woocommerce .cart_totals table th,
body.snf-crazyfood-style .woocommerce .cart_totals table td {
    padding: 12px 0 !important;
    border-top: 1px solid var(--snf-border) !important;
    background: transparent !important;
}

body.snf-crazyfood-style .woocommerce .cart_totals .order-total th,
body.snf-crazyfood-style .woocommerce .cart_totals .order-total td {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
}

body.snf-crazyfood-style .woocommerce .cart_totals .order-total .woocommerce-Price-amount {
    color: var(--snf-secondary) !important;
}

/* Checkout Button */
body.snf-crazyfood-style .woocommerce .wc-proceed-to-checkout a.checkout-button {
    display: block !important;
    width: 100% !important;
    padding: 15px 25px !important;
    background: var(--snf-secondary) !important;
    color: var(--snf-white) !important;
    border-radius: var(--snf-radius) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    text-transform: none !important;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3) !important;
    transition: var(--snf-transition) !important;
    margin-top: 15px !important;
}

body.snf-crazyfood-style .woocommerce .wc-proceed-to-checkout a.checkout-button:hover {
    background: var(--snf-secondary-hover) !important;
    transform: translateY(-2px) !important;
}

/* Cart Responsive */
@media (min-width: 768px) {
    body.snf-crazyfood-style .woocommerce-cart .woocommerce {
        padding: 20px;
    }
    
    body.snf-crazyfood-style .woocommerce-cart-form {
        padding: 25px;
    }
    
    body.snf-crazyfood-style .woocommerce .cart_totals {
        width: 48% !important;
        float: right !important;
    }
}

/* ============================================
   9. CHECKOUT PAGE
   ============================================ */
body.snf-crazyfood-style .woocommerce-checkout .woocommerce {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

body.snf-crazyfood-style .woocommerce-checkout .col2-set {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

body.snf-crazyfood-style .woocommerce-checkout .col2-set .col-1,
body.snf-crazyfood-style .woocommerce-checkout .col2-set .col-2 {
    width: 100% !important;
    background: var(--snf-white) !important;
    padding: 20px !important;
    border-radius: var(--snf-radius) !important;
    box-shadow: var(--snf-shadow) !important;
}

body.snf-crazyfood-style .woocommerce-checkout h3 {
    font-size: 1.1rem !important;
    margin-bottom: 15px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid var(--snf-border) !important;
}

body.snf-crazyfood-style .woocommerce-checkout .form-row label {
    font-weight: 500 !important;
    color: var(--snf-dark) !important;
    margin-bottom: 5px !important;
    display: block !important;
    font-size: 0.9rem !important;
}

body.snf-crazyfood-style .woocommerce-checkout #order_review {
    background: var(--snf-white) !important;
    padding: 20px !important;
    border-radius: var(--snf-radius) !important;
    box-shadow: var(--snf-shadow) !important;
    margin-top: 20px !important;
}

body.snf-crazyfood-style .woocommerce-checkout .wc_payment_methods {
    padding: 0 !important;
    border: 1px solid var(--snf-border) !important;
    border-radius: var(--snf-radius-sm) !important;
    overflow: hidden !important;
    list-style: none !important;
    margin: 0 !important;
}

body.snf-crazyfood-style .woocommerce-checkout .wc_payment_methods li {
    padding: 12px 15px !important;
    border-bottom: 1px solid var(--snf-border) !important;
    margin: 0 !important;
}

body.snf-crazyfood-style .woocommerce-checkout .wc_payment_methods li:last-child {
    border-bottom: none !important;
}

body.snf-crazyfood-style .woocommerce-checkout .payment_box {
    background: var(--snf-light) !important;
    padding: 12px !important;
    border-radius: var(--snf-radius-sm) !important;
    margin-top: 10px !important;
    font-size: 0.9rem !important;
}

body.snf-crazyfood-style .woocommerce-checkout #place_order {
    width: 100% !important;
    padding: 16px 25px !important;
    background: var(--snf-secondary) !important;
    color: var(--snf-white) !important;
    border: none !important;
    border-radius: var(--snf-radius) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin-top: 20px !important;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3) !important;
    transition: var(--snf-transition) !important;
}

body.snf-crazyfood-style .woocommerce-checkout #place_order:hover {
    background: var(--snf-secondary-hover) !important;
    transform: translateY(-2px) !important;
}

/* Checkout Responsive */
@media (min-width: 768px) {
    body.snf-crazyfood-style .woocommerce-checkout .col2-set {
        flex-direction: row !important;
    }
    
    body.snf-crazyfood-style .woocommerce-checkout .col2-set .col-1,
    body.snf-crazyfood-style .woocommerce-checkout .col2-set .col-2 {
        width: 48% !important;
        padding: 25px !important;
    }
}

/* ============================================
   10. MY ACCOUNT PAGE
   ============================================ */
body.snf-crazyfood-style .woocommerce-account .woocommerce {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

body.snf-crazyfood-style .woocommerce-account .woocommerce-MyAccount-navigation {
    background: var(--snf-white) !important;
    padding: 15px !important;
    border-radius: var(--snf-radius) !important;
    box-shadow: var(--snf-shadow) !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    float: none !important;
}

body.snf-crazyfood-style .woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

body.snf-crazyfood-style .woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin: 0 !important;
}

body.snf-crazyfood-style .woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block !important;
    padding: 10px 15px !important;
    color: var(--snf-dark) !important;
    text-decoration: none !important;
    border-radius: var(--snf-radius-sm) !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    background: var(--snf-light) !important;
    transition: var(--snf-transition) !important;
}

body.snf-crazyfood-style .woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--snf-primary-light) !important;
    color: var(--snf-primary) !important;
}

body.snf-crazyfood-style .woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--snf-primary) !important;
    color: var(--snf-white) !important;
}

body.snf-crazyfood-style .woocommerce-account .woocommerce-MyAccount-content {
    background: var(--snf-white) !important;
    padding: 20px !important;
    border-radius: var(--snf-radius) !important;
    box-shadow: var(--snf-shadow) !important;
    width: 100% !important;
    float: none !important;
}

/* Account Responsive */
@media (min-width: 768px) {
    body.snf-crazyfood-style .woocommerce-account .woocommerce-MyAccount-navigation {
        width: 25% !important;
        float: left !important;
        margin-right: 4% !important;
    }
    
    body.snf-crazyfood-style .woocommerce-account .woocommerce-MyAccount-navigation ul {
        flex-direction: column !important;
    }
    
    body.snf-crazyfood-style .woocommerce-account .woocommerce-MyAccount-content {
        width: 71% !important;
        float: left !important;
    }
}

/* ============================================
   11. FORMS
   ============================================ */
body.snf-crazyfood-style input[type="text"],
body.snf-crazyfood-style input[type="email"],
body.snf-crazyfood-style input[type="password"],
body.snf-crazyfood-style input[type="tel"],
body.snf-crazyfood-style input[type="number"],
body.snf-crazyfood-style input[type="search"],
body.snf-crazyfood-style textarea,
body.snf-crazyfood-style select,
body.snf-crazyfood-style .woocommerce select,
body.snf-crazyfood-style .woocommerce input[type="text"] {
    font-family: var(--snf-font) !important;
    border: 2px solid var(--snf-border);
    border-radius: var(--snf-radius-sm);
    padding: 12px 15px;
    font-size: 1rem !important;
    transition: var(--snf-transition) !important;
    width: 100%;
    background: var(--snf-white);
}

body.snf-crazyfood-style input:focus,
body.snf-crazyfood-style textarea:focus,
body.snf-crazyfood-style select:focus {
    border-color: var(--snf-primary);
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1) !important;
}

/* ============================================
   12. BUTTONS
   ============================================ */
body.snf-crazyfood-style .button,
body.snf-crazyfood-style button,
body.snf-crazyfood-style input[type="submit"],
body.snf-crazyfood-style .woocommerce .button {
    font-family: var(--snf-font) !important;
    font-weight: 600 !important;
    border-radius: var(--snf-radius-sm) !important;
    transition: var(--snf-transition) !important;
    cursor: pointer !important;
    border: none !important;
    padding: 12px 20px;
    font-size: 0.95rem !important;
}

body.snf-crazyfood-style .woocommerce a.button.alt,
body.snf-crazyfood-style .woocommerce button.button.alt,
body.snf-crazyfood-style .woocommerce input.button.alt {
    background: var(--snf-secondary) !important;
    color: var(--snf-white) !important;
}

body.snf-crazyfood-style .woocommerce a.button.alt:hover,
body.snf-crazyfood-style .woocommerce button.button.alt:hover {
    background: var(--snf-secondary-hover) !important;
}

/* ============================================
   13. NOTICES
   ============================================ */
body.snf-crazyfood-style .woocommerce-message,
body.snf-crazyfood-style .woocommerce-info {
    background: var(--snf-primary-light) !important;
    border-top-color: var(--snf-primary) !important;
    color: var(--snf-dark) !important;
    border-radius: var(--snf-radius-sm) !important;
    padding: 15px 20px !important;
}

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

body.snf-crazyfood-style .woocommerce-error {
    background: #FFF5F5 !important;
    border-top-color: var(--snf-danger) !important;
    border-radius: var(--snf-radius-sm) !important;
}

/* ============================================
   14. BREADCRUMBS
   ============================================ */
body.snf-crazyfood-style .woocommerce-breadcrumb {
    font-size: 0.85rem !important;
    color: var(--snf-gray) !important;
    padding: 15px 0 !important;
    margin-bottom: 20px !important;
}

body.snf-crazyfood-style .woocommerce-breadcrumb a {
    color: var(--snf-primary) !important;
    text-decoration: none !important;
}

/* ============================================
   15. PAGINATION
   ============================================ */
body.snf-crazyfood-style .woocommerce-pagination {
    margin-top: 30px;
    text-align: center;
}

body.snf-crazyfood-style .woocommerce-pagination ul.page-numbers {
    display: inline-flex !important;
    justify-content: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

body.snf-crazyfood-style .woocommerce-pagination ul.page-numbers li {
    margin: 0 !important;
}

body.snf-crazyfood-style .woocommerce-pagination ul.page-numbers li a,
body.snf-crazyfood-style .woocommerce-pagination ul.page-numbers li span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 12px !important;
    background: var(--snf-white) !important;
    border: 2px solid var(--snf-border) !important;
    border-radius: var(--snf-radius-sm) !important;
    font-weight: 600 !important;
    color: var(--snf-dark) !important;
    text-decoration: none !important;
    transition: var(--snf-transition) !important;
}

body.snf-crazyfood-style .woocommerce-pagination ul.page-numbers li a:hover,
body.snf-crazyfood-style .woocommerce-pagination ul.page-numbers li span.current {
    background: var(--snf-primary) !important;
    border-color: var(--snf-primary) !important;
    color: var(--snf-white) !important;
}

/* ============================================
   16. TRUST BADGES
   ============================================ */
body.snf-crazyfood-style .snf-trust-section {
    background: var(--snf-white);
    padding: 30px 15px;
    margin: 30px 0;
    border-top: 1px solid var(--snf-border);
    border-bottom: 1px solid var(--snf-border);
}

body.snf-crazyfood-style .snf-trust-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

body.snf-crazyfood-style .snf-trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

body.snf-crazyfood-style .snf-trust-badge__icon {
    width: 50px;
    height: 50px;
    background: var(--snf-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--snf-primary);
    flex-shrink: 0;
}

body.snf-crazyfood-style .snf-trust-badge__icon svg {
    width: 24px;
    height: 24px;
}

body.snf-crazyfood-style .snf-trust-badge__text {
    display: flex;
    flex-direction: column;
}

body.snf-crazyfood-style .snf-trust-badge__text strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--snf-dark);
}

body.snf-crazyfood-style .snf-trust-badge__text span {
    font-size: 0.8rem;
    color: var(--snf-gray);
}

@media (min-width: 768px) {
    body.snf-crazyfood-style .snf-trust-container {
        grid-template-columns: repeat(4, 1fr);
    }
    
    body.snf-crazyfood-style .snf-trust-badge__icon {
        width: 60px;
        height: 60px;
    }
    
    body.snf-crazyfood-style .snf-trust-badge__icon svg {
        width: 28px;
        height: 28px;
    }
    
    body.snf-crazyfood-style .snf-trust-badge__text strong {
        font-size: 1.1rem;
    }
    
    body.snf-crazyfood-style .snf-trust-badge__text span {
        font-size: 0.9rem;
    }
}

/* ============================================
   17. ANIMATIONS
   ============================================ */
@keyframes snf-fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(15px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

body.snf-crazyfood-style ul.products li.product {
    animation: snf-fadeIn 0.4s ease forwards;
}

body.snf-crazyfood-style ul.products li.product:nth-child(1) { animation-delay: 0.05s; }
body.snf-crazyfood-style ul.products li.product:nth-child(2) { animation-delay: 0.1s; }
body.snf-crazyfood-style ul.products li.product:nth-child(3) { animation-delay: 0.15s; }
body.snf-crazyfood-style ul.products li.product:nth-child(4) { animation-delay: 0.2s; }
body.snf-crazyfood-style ul.products li.product:nth-child(5) { animation-delay: 0.25s; }
body.snf-crazyfood-style ul.products li.product:nth-child(6) { animation-delay: 0.3s; }
body.snf-crazyfood-style ul.products li.product:nth-child(7) { animation-delay: 0.35s; }
body.snf-crazyfood-style ul.products li.product:nth-child(8) { animation-delay: 0.4s; }
body.snf-crazyfood-style ul.products li.product:nth-child(n+9) { animation-delay: 0.45s; }

/* ============================================
   18. ASTRA THEME COMPATIBILITY
   ============================================ */
body.snf-crazyfood-style.ast-separate-container .ast-article-single,
body.snf-crazyfood-style.ast-separate-container .ast-article-post {
    background: transparent !important;
    padding: 0 !important;
}

body.snf-crazyfood-style .ast-woocommerce-container {
    max-width: 1400px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

body.snf-crazyfood-style.woocommerce ul.products li.product {
    text-align: left !important;
}

/* Astra sidebar compatibility */
body.snf-crazyfood-style .ast-left-sidebar .ast-woocommerce-container,
body.snf-crazyfood-style .ast-right-sidebar .ast-woocommerce-container {
    max-width: 100% !important;
}

/* ============================================
   19. HIDE UNWANTED ELEMENTS
   ============================================ */
body.snf-crazyfood-style ul.products li.product .star-rating {
    display: none !important;
}

/* ============================================
   20. PRINT STYLES
   ============================================ */
@media print {
    body.snf-crazyfood-style ul.products li.product {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
