/*
Theme Name: Flatsome Child Theme
Version: 1.0
Description: A child theme of Flatsome for candy shop functionality
Template: flatsome
Author: Administrator
*/

/* Import parent theme styles */
@import url("../flatsome/style.css");

/* ============================================================================
   CANDY SHOP CUSTOMIZATIONS
   ============================================================================ */

/**
 * Product Box Click Prevention
 * 
 * Makes product boxes non-clickable while allowing interaction with
 * buttons and quantity controls
 */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    pointer-events: none;

}

/* Allow clicks on buttons and quantity controls */
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button,
.woocommerce ul.products li.product .quantity,
.woocommerce-page ul.products li.product .quantity,
.woocommerce ul.products li.product .product-info-icon,
.woocommerce-page ul.products li.product .product-info-icon {
    pointer-events: auto !important;
}

/* Product Information Icon */
.product-info-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    background: #ffd700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.product-info-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.4);
}

.row-small>.col, .row-small>.flickity-viewport>.flickity-slider>.col{
	background-color:#f3e7d4;
	border-radius:10px;
    margin:1px;
}

.price-wrapper .price{

    display: none;;
}

/* Product Information Popup */
.product-info-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.product-info-popup-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.product-info-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.product-info-icon-small {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-right: 15px;
    object-fit: cover;
}

.product-info-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    flex: 1;
}

.product-info-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.product-info-close:hover {
    background: #f0f0f0;
    color: #333;
}

.product-info-body {
    padding: 20px;
}

.product-info-section {
    margin-bottom: 25px;
}

.product-info-section h3 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    border-bottom: 2px solid #8a2be2;
    padding-bottom: 5px;
}

.product-info-section p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 10px;
}

.product-info-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-info-section li {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.product-info-section li:last-child {
    border-bottom: none;
}

.product-info-allergen-link {
    color: #007cba;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
}

.product-info-allergen-link:hover {
    color: #005a8b;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product Card Styling */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.woocommerce ul.products li.product .box-image,
.woocommerce-page ul.products li.product .box-image {
    background: transparent;
    border-radius: 15px;
    padding: 0;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.woocommerce ul.products li.product .box-image img,
.woocommerce-page ul.products li.product .box-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.woocommerce ul.products li.product .product-title,
.woocommerce-page ul.products li.product .product-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.woocommerce ul.products li.product .product-brand,
.woocommerce-page ul.products li.product .product-brand {
    font-size: 14px;
    color: #8a2be2;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    display: none;
}

/* ============================================================================
   PUT I POSE BUTTON AND QUANTITY CONTROLS
   ============================================================================ */

/**
 * Candy Controls Container
 */
.candy-controls {

    text-align: center;
}

/**
 * Add to Bag Button
 */
.add-to-bag-btn {
    width: 100%;
    background: #f5bbae;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-bag-btn:hover {
    background: #f5bbae;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 165, 0, 0.4);
}

.add-to-bag-btn:active {
    transform: translateY(0);
}

/**
 * Quantity Controls
 */
.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f5bbae;
    border-radius: 8px;
    
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: white;
    color:  #ecc1e9;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

.qty-btn:hover {
    background: #f8f9fa;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.4);
}

.qty-btn:active {
    transform: scale(0.95);
}

.quantity-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 6px;
    
    min-width: 80px;
}

.quantity-display .qty {
    font-size: 16px;
    font-weight: 500;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 2px;
}

.quantity-display .weight {
    font-size: 12px;
    color: #ffffff;
}

/* Selected Product State */
.product.selected {
    
    transform: translateY(-2px);
    position: relative;
    
}


@keyframes slideUpFromBottom {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        height: 300px;
        opacity: 1;
    }
}


.product.selected .add-to-bag-btn {
    display: none;
}

.product.selected .quantity-controls {
    display: flex;
    position: relative;
    z-index: 2;
}

.product.selected .product-title,
.product.selected .product-brand {
    position: relative;
    z-index: 2;
}

.product-brand {
    display: none;
}

/* Hide prices for all products */
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
    display: none !important;
}

/* Hide only brand information on products, keep price with weight */
.woocommerce ul.products li.product .price-wrapper,
.woocommerce-page ul.products li.product .price-wrapper {
    display: none !important;
}

/* ============================================================================
   FLOATING CART STYLES
   ============================================================================ */

/**
 * Floating Cart Container
 */
.floating-cart {
    position: static;
    width: 100%;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    display: block;
    margin-bottom: 20px;
}

/**
 * Cart Header
 */
.floating-cart-header {
    background: #ffffff;
    color: white;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.floating-cart-image {
    margin-bottom: 10px;
    text-align: center;
}

.floating-cart-image img {
    max-width: 100%;
    height: auto;
    width: 190px;
    height: 200px;
    
    border-radius: 8px;
}

.floating-cart-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.floating-cart-total {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

/**
 * Cart Content
 */
.floating-cart-content {
    padding: 15px;
}

.floating-cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    gap: 10px;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-name {
    font-weight: bold;
    margin: 0;
}

.cart-item-weight {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.cart-item-price {
    font-weight: bold;
    color: #8a2be2;
    margin-left: auto;
}

/**
 * Cart Buttons
 */
.floating-cart-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-cart-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.floating-cart-checkout {
    background: #8a2be2;
    color: white;
}

.floating-cart-checkout:hover {
    background: #4a148c;
    transform: translateY(-2px);
}

.floating-cart-clear {
    background: #dc3545;
    color: white;
}

.floating-cart-clear:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.floating-cart-close {
    background: #E6b756;
    color: white;
}

.floating-cart-close:hover {
    background: #d4a54a;
    transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .floating-cart {
        width: calc(100% - 40px);
        bottom: 10px;
        right: 20px;
    }

    .add-to-bag-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .quantity-controls {
        padding: 6px 8px;
    }
    
    .quantity-display {
        min-width: 60px;
        padding: 6px 8px;
    }
    
    .qty {
        font-size: 14px;
    }
    
    .weight {
        font-size: 11px;
    }
    
    .qty-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}

/* ============================================================================
   POPUP STYLES
   ============================================================================ */

/**
 * Bag Name Popup
 */
.bag-name-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    backdrop-filter: blur(5px);
}

.bag-name-popup-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.bag-name-popup-header h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}

.bag-name-popup-body input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

.bag-name-popup-body input:focus {
    outline: none;
    border-color: #8a2be2;
}

.bag-name-popup-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.bag-name-popup-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bag-name-save {
    background: #8a2be2;
    color: white;
}

.bag-name-save:hover {
    background: #4a148c;
    transform: translateY(-2px);
}

.bag-name-cancel {
    background: #f0f0f0;
    color: #333;
}

.bag-name-cancel:hover {
    background: #e0e0e0;
}

/**
 * Choice Popup
 */
.choice-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10002;
    backdrop-filter: blur(5px);
}

.choice-popup-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.choice-popup-header h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
}

.choice-popup-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.choice-popup-btn {
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.choice-new-bag {
    background: #8a2be2;
    color: white;
}

.choice-new-bag:hover {
    background: #4a148c;
    transform: translateY(-2px);
}

.choice-checkout {
    background: #28a745;
    color: white;
}

.choice-checkout:hover {
    background: #1e7e34;
    transform: translateY(-2px);
}

/* ============================================================================
   SHOP FEATURES SECTION
   ============================================================================ */

.shop-features-section {
    background: white;
    border-bottom: none;
}

.shop-features-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.shop-features-section .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.shop-features-section .col-md-3,
.shop-features-section .col-sm-6,
.shop-features-section .col-md-4 {
    padding: 0 15px;
    margin-bottom: 20px;
}

.shop-features-section .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.shop-features-section .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.shop-features-section .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.feature-item {
    text-align: left;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    margin-bottom: 0;
    display: flex;
    justify-content: flex-start;
    flex-shrink: 0;
}

.feature-content {
    flex: 1;
}

.feature-item h3 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    margin-top: 0;
}

.feature-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* Responsive styles */
@media (max-width: 768px) {
    .shop-features-section {
        padding: 30px 0;
    }
    
    .shop-features-section .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .feature-item {
        padding: 15px;
    }
    
    .feature-item h3 {
        font-size: 15px;
    }
    
    .feature-item p {
        font-size: 13px;
    }
}

/* ============================================================================
   THREE COLUMN LAYOUT
   ============================================================================ */

.shop-layout-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 20px;
}

.shop-categories-sidebar {
    flex: 0 0 250px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.shop-categories-sidebar h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecc1e9;
}

.category-filter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-filter-item:hover {
    color: #8a2be2;
    padding-left: 5px;
}

.category-filter-item:last-child {
    border-bottom: none;
}

.category-filter-item .arrow {
    font-size: 12px;
    color: #666;
    transition: all 0.3s ease;
}

.category-filter-item:hover .arrow {
    color: #8a2be2;
    transform: translateX(3px);
}

.shop-title-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-radius: 12px;
    margin: 100px;
    max-width: 1400px;
}

.shop-main-title {
    font-size: 52px;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shop-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0;
    font-style: italic;
}

.shop-products-main {
    flex: 1;
    min-width: 0;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: none !important;
    width: 100% !important;
}

.shop-products-main .woocommerce {
    margin: 0;
}

.shop-products-main .woocommerce ul.products,
.shop-products-main .woocommerce ul.products.columns-3,
.shop-products-main .woocommerce ul.products.columns-4,
.shop-products-main .woocommerce ul.products.columns-5,
.shop-products-main .woocommerce ul.products.columns-6 {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 2px !important;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: unset !important;
    flex-direction: unset !important;
    justify-content: unset !important;
    align-items: unset !important;
    max-width: none !important;
    width: 100% !important;
}

.shop-products-main .woocommerce ul.products li.product,
.shop-products-main .woocommerce ul.products.columns-3 li.product,
.shop-products-main .woocommerce ul.products.columns-4 li.product,
.shop-products-main .woocommerce ul.products.columns-5 li.product,
.shop-products-main .woocommerce ul.products.columns-6 li.product {
    margin: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    background: #e8dabb !important;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    float: none !important;
    clear: none !important;
}
.box {
    height: 213px !important;
}

.shop-products-main .woocommerce ul.products li.product .box-image {
    background: transparent;
    border-radius: 10px;
    padding: 0;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.shop-products-main .woocommerce ul.products li.product .box-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.shop-products-main .woocommerce ul.products li.product .product-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.shop-products-main .woocommerce ul.products li.product .price {
    display: none !important;
}

.shop-products-main .woocommerce ul.products li.product .candy-controls {
    margin-top: 10px;
}

.page-title {
    display: none;
}

.shop-products-main .woocommerce ul.products li.product .add-to-bag-btn {
    padding: 10px 12px;
    font-size: 13px;
    margin-top: 5px;
}

.shop-products-main .woocommerce ul.products li.product .quantity-controls {
    margin-top: 8px;
    padding: 6px 8px;
}

.shop-products-main .woocommerce ul.products li.product .quantity-display {
    min-width: 60px;
    padding: 4px 6px;
}

.shop-products-main .woocommerce ul.products li.product .qty {
    font-size: 14px;
}

.shop-products-main .woocommerce ul.products li.product .weight {
    font-size: 11px;
}

.shop-products-main .woocommerce ul.products li.product .qty-btn {
    width: 26px;
    height: 26px;
    font-size: 14px;
}

.shop-cart-sidebar {
    flex: 0 0 320px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .shop-layout-container {
        flex-direction: column;
    }
    
    .shop-categories-sidebar {
        flex: none;
        width: 100%;
        position: static;
        margin-bottom: 20px;
    }
    
    .shop-cart-sidebar {
        flex: none;
        width: 100%;
        position: static;
        margin-top: 20px;
    }
    
    .shop-products-main .woocommerce ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .shop-products-main .woocommerce ul.products {
        display: grid !important;
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 15px;
    }
    
    .shop-products-main .woocommerce ul.products li.product {
        width: 100% !important;
        padding: 12px;
    }
    
    .shop-categories-sidebar {
        padding: 15px;
    }
    
    .shop-products-main .woocommerce ul.products li.product .product-title {
        font-size: 15px;
    }
    
    .shop-products-main .woocommerce ul.products li.product .price {
        font-size: 13px;
    }
}

/* ============================================================================
   MOBILE OPTIMIZATIONS - SLIKEKSPRESSEN STYLE
   ============================================================================ */

/* Mobile-specific optimizations */
@media (max-width: 768px) {
    /* General mobile layout improvements */
    .container {
        padding: 0 15px;
    }
    
    /* Header and navigation mobile optimizations */
    .header-wrapper {
        padding: 10px 0;
    }
    
    .logo {
        max-width: 120px;
    }
    
    /* Product grid mobile optimization */
    .shop-products-main .woocommerce ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        margin: 0;
        padding: 0;
    }
    
    .shop-products-main .woocommerce ul.products li.product {
        margin: 0 !important;
        padding: 12px !important;
        border-radius: 10px !important;
        background: #f8f9fa !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
        transition: all 0.3s ease;
    }
    
    .shop-products-main .woocommerce ul.products li.product:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }
    
    /* Product image mobile optimization */
    .shop-products-main .woocommerce ul.products li.product .box-image {
        margin-bottom: 8px;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .shop-products-main .woocommerce ul.products li.product .box-image img {
        width: 100%;
        height: 120px;
        object-fit: cover;
        border-radius: 8px;
    }
    
    /* Product title mobile optimization */
    .shop-products-main .woocommerce ul.products li.product .product-title {
        font-size: 14px !important;
        font-weight: 600;
        line-height: 1.3;
        margin-bottom: 6px;
        color: #333;
        text-align: center;
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Product brand mobile optimization */
    .shop-products-main .woocommerce ul.products li.product .product-brand {
        font-size: 11px;
        color: #666;
        text-align: center;
        margin-bottom: 8px;
        font-style: italic;
    }
    
    /* Button mobile optimization - SlikEkspressen style */
    .add-to-bag-btn {
        width: 100%;
        background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
        color: white;
        border: none;
        border-radius: 6px;
        padding: 10px 8px;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
        position: relative;
        overflow: hidden;
    }
    
    .add-to-bag-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }
    
    .add-to-bag-btn:hover::before {
        left: 100%;
    }
    
    .add-to-bag-btn:hover {
        background: linear-gradient(135deg, #ff5252, #ff7676);
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(255, 107, 107, 0.4);
    }
    
    .add-to-bag-btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
    }
    
    /* Quantity controls mobile optimization */
    .quantity-controls {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
        border-radius: 6px;
        padding: 6px 8px;
        margin-top: 8px;
    }
    
    .qty-btn {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        border: none;
        background: white;
        color: #ff6b6b;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        box-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
    }
    
    .qty-btn:hover {
        background: #f8f9fa;
        transform: scale(1.1);
        box-shadow: 0 4px 8px rgba(255, 255, 255, 0.4);
    }
    
    .qty-btn:active {
        transform: scale(0.95);
    }
    
    .quantity-display {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 60px;
        padding: 4px 6px;
    }
    
    .quantity-display .qty {
        font-size: 14px;
        font-weight: 600;
        color: white;
        margin-bottom: 1px;
    }
    
    .quantity-display .weight {
        font-size: 10px;
        color: rgba(255, 255, 255, 0.9);
    }
    
    /* Product info icon mobile optimization */
    .product-info-icon {
        width: 20px;
        height: 20px;
        font-size: 10px;
        top: 8px;
        right: 8px;
    }
    
    /* Floating cart mobile optimization */
    .floating-cart {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: white;
        border-radius: 15px 15px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .floating-cart-header {
        padding: 12px 15px;
        border-bottom: 1px solid #eee;
    }
    
    .floating-cart-image img {
        width: 120px;
        height: 120px;
        border-radius: 8px;
    }
    
    .floating-cart-title {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .floating-cart-total {
        font-size: 13px;
    }
    
    .floating-cart-content {
        padding: 12px 15px;
    }
    
    .floating-cart-items {
        max-height: 200px;
        margin-bottom: 12px;
    }
    
    .cart-item {
        padding: 8px 0;
        gap: 8px;
    }
    
    .cart-item-name {
        font-size: 13px;
    }
    
    .cart-item-weight {
        font-size: 11px;
    }
    
    .cart-item-price {
        font-size: 13px;
    }
    
    .floating-cart-buttons {
        gap: 8px;
    }
    
    .floating-cart-btn {
        padding: 10px;
        font-size: 14px;
        border-radius: 6px;
    }
    
    /* Shop layout mobile optimization */
    .shop-layout-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .shop-categories-sidebar {
        order: 2;
        padding: 15px;
        border-radius: 10px;
        background: white;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }
    
    .shop-categories-sidebar h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .category-filter-item {
        padding: 10px 0;
        font-size: 14px;
    }
    
    .shop-products-main {
        order: 1;
        padding: 15px;
        border-radius: 10px;
        background: white;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }
    
    .shop-cart-sidebar {
        order: 3;
        width: 100%;
        position: static;
    }
    
    /* Title section mobile optimization */
    .shop-title-section {
        margin: 20px 15px 30px 15px;
        padding: 15px;
        border-radius: 10px;
        background: white;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }
    
    .shop-main-title {
        font-size: 28px;
        margin-bottom: 8px;
    }
    
    .shop-subtitle {
        font-size: 16px;
    }
    
    /* Popup mobile optimization */
    .product-info-popup-content,
    .bag-name-popup-content,
    .choice-popup-content {
        width: 95%;
        max-width: 400px;
        padding: 20px;
        border-radius: 12px;
    }
    
    .product-info-header {
        padding: 15px;
    }
    
    .product-info-title {
        font-size: 16px;
    }
    
    .product-info-body {
        padding: 15px;
    }
    
    .product-info-section h3 {
        font-size: 15px;
    }
    
    .product-info-section p,
    .product-info-section li {
        font-size: 13px;
    }
    
    /* Feature items mobile optimization */
    .feature-item {
        padding: 12px;
        gap: 12px;
    }
    
    .feature-item h3 {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .feature-item p {
        font-size: 12px;
    }
    
    /* Grid adjustments for very small screens */
    @media (max-width: 480px) {
        .shop-products-main .woocommerce ul.products {
            grid-template-columns: repeat(1, 1fr) !important;
            gap: 10px !important;
        }
        
        .shop-products-main .woocommerce ul.products li.product {
            padding: 10px !important;
        }
        
        .shop-products-main .woocommerce ul.products li.product .box-image img {
            height: 100px;
        }
        
        .shop-products-main .woocommerce ul.products li.product .product-title {
            font-size: 13px !important;
            min-height: 32px;
        }
        
        .add-to-bag-btn {
            padding: 8px 6px;
            font-size: 11px;
        }
        
        .quantity-controls {
            padding: 4px 6px;
        }
        
        .qty-btn {
            width: 24px;
            height: 24px;
            font-size: 14px;
        }
        
        .quantity-display {
            min-width: 50px;
        }
        
        .quantity-display .qty {
            font-size: 12px;
        }
        
        .quantity-display .weight {
            font-size: 9px;
        }
    }
    
    /* Touch-friendly improvements */
    .qty-btn,
    .add-to-bag-btn,
    .floating-cart-btn,
    .category-filter-item {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    /* Smooth scrolling for mobile */
    .floating-cart-items,
    .product-info-popup-content {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Mobile-specific animations */
    @media (prefers-reduced-motion: no-preference) {
        .shop-products-main .woocommerce ul.products li.product {
            animation: fadeInUp 0.6s ease-out;
        }
        
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
    }
}

/* ============================================================================
   TABLET OPTIMIZATIONS
   ============================================================================ */

@media (min-width: 769px) and (max-width: 1024px) {
    .shop-products-main .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .shop-products-main .woocommerce ul.products li.product {
        padding: 15px !important;
    }
    
    .shop-products-main .woocommerce ul.products li.product .product-title {
        font-size: 15px !important;
    }
    
    .add-to-bag-btn {
        padding: 12px 10px;
        font-size: 13px;
    }
    
    .quantity-controls {
        padding: 8px 10px;
    }
    
    .qty-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}