/* ===== PROFESSIONAL ENHANCEMENTS ===== */

/* Professional Color Scheme */
:root {
    --primary-color: #0B3D1D; /* Derived from usage */
    --secondary-color: #F8B600; /* Derived from usage */
    --accent-color: #ff7800;
    --text-dark: #191919;
    --text-secondary: #666666;
    --text-muted: #999999;
    --text-light: #ffffff;
    
    --bg-primary: #ffffff;
    --bg-gradient-light: linear-gradient(135deg, #f8f9fa, #e9ecef);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
}

/* Enhanced Product Cards (Original Modern) */
.product-card-modern {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* ===== ULTRA PRODUCT CARD (Mobile Optimized) ===== */
.product-card-ultra {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    height: 100%;
    border: 1px solid #eee;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card-ultra:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image-container {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
    background: #f9f9f9;
}

.product-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card-ultra:hover .product-image-container img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 38px; /* Fixed height for Web */
}

.product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-rating {
    margin-bottom: 8px;
    font-size: 12px;
}

.product-price {
    margin-top: auto;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.current-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color, #0B3D1D);
}

.original-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

.add-to-cart-btn-full {
    width: 100%;
    background: var(--primary-color, #0B3D1D);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.add-to-cart-btn-full:hover {
    background: #082d15;
}

/* Discount Badge */
.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    z-index: 1;
}

/* Product Actions (Overlay) */
.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s;
}

.product-card-ultra:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s;
    border: none;
}

.action-btn:hover {
    background: var(--primary-color, #0B3D1D);
    color: white;
}

/* Compact Web Styles (6 Items per row & Smaller Text) */
@media (min-width: 992px) {
    .col-lg-custom-6 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
        padding: 0 5px; /* Very tight gutter */
    }

    .product-info {
        padding: 6px; /* Minimal padding */
    }

    .product-title {
        font-size: 11px; /* Even Smaller */
        height: 28px; /* Compact */
        margin-bottom: 2px;
        line-height: 1.2;
    }

    .current-price {
        font-size: 12px;
        font-weight: 700;
    }
    
    .original-price {
        font-size: 10px;
    }
    
    .add-to-cart-btn-full {
        padding: 2px;
        font-size: 10px;
        height: 26px;
        border-radius: 4px;
    }
    
    .product-rating {
        margin-bottom: 2px;
        font-size: 9px;
    }
    
    .stars i {
        font-size: 9px;
    }
    
    .product-image-container {
        margin: 4px; /* Smaller image margin */
        border-radius: 8px;
    }
    
    .discount-badge {
        font-size: 9px;
        padding: 2px 5px;
    }
}

/* Tablet Adjustments (4 per row) */
@media (min-width: 768px) and (max-width: 991px) {
    .col-lg-custom-6 {
        flex: 0 0 25%;
        max-width: 25%;
        padding: 0 8px;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .product-card-ultra {
        border-radius: 6px; /* Even smaller radius */
        height: 100%;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* Lighter shadow */
    }

    .product-image-container {
        margin: 3px !important; /* Tighter image margin */
        border-radius: 4px !important;
    }

    .product-info {
        padding: 6px; /* Super compact padding */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex-grow: 1;
    }

    .product-title {
        font-size: 10px; /* Smaller text */
        margin-bottom: 2px;
        height: 24px; /* Fixed height for 2 lines */
        line-height: 1.1;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .product-rating {
        margin-bottom: 2px;
        display: none; /* Hide rating on mobile for compactness if desired, or keep very small. Let's keep but very small spacing */
    }

    .current-price {
        font-size: 11px; /* Smaller price */
        font-weight: 700;
    }
    
    .original-price {
        font-size: 9px;
        margin-left: 2px;
    }

    .add-to-cart-btn-full {
        padding: 0; /* No padding, rely on height */
        font-size: 10px;
        border-radius: 4px;
        margin-top: auto; 
        height: 24px; /* Very small button height */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .stars i {
        font-size: 8px;
    }
    
    .discount-badge {
        font-size: 8px;
        padding: 1px 4px;
        top: 4px;
        left: 4px;
    }
}

/* Home Page Compact Slider Mobile Adjustments */
@media (max-width: 576px) {
    .compact-product-slide {
        padding: 0 3px; /* Gutter between slides */
    }
    
    .compact-product-card {
        border-radius: 6px !important;
    }
    
    .compact-product-card > div:last-child { /* Content padding */
        padding: 6px !important;
    }
    
    .compact-product-card h3 {
        font-size: 10px !important;
        margin: 0 0 3px 0 !important;
        height: 24px !important;
        line-height: 1.2 !important;
    }
    
    .compact-product-card h3 a {
        font-size: 10px !important;
    }

    /* Price Container */
    .compact-product-card > div:last-child > div:nth-child(2) {
        margin-bottom: 5px !important;
        gap: 4px !important;
    }

    /* Current Price */
    .compact-product-card > div:last-child > div:nth-child(2) > span:first-child {
        font-size: 11px !important;
    }
    
    /* Old Price */
    .compact-product-card > div:last-child > div:nth-child(2) > span:last-child {
        font-size: 9px !important;
    }
    
    .compact-product-card button.add-to-cart-btn {
        padding: 0 !important;
        font-size: 10px !important;
        height: 24px !important;
        line-height: 24px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .compact-product-card button.add-to-cart-btn i {
        font-size: 9px !important;
        margin-right: 3px !important;
    }
    
    /* Adjust actions overlay */
    .product-actions-compact {
        top: 4px !important;
        right: 4px !important;
        gap: 2px !important;
    }
    
    .product-actions-compact a,
    .product-actions-compact button {
        width: 24px !important;
        height: 24px !important;
    }
    
    .product-actions-compact i {
        font-size: 9px !important;
    }
}