/* Modern Product Grid Styles - Updated to match image exactly */
.modern-product-grid {
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
}

/* Navigation Tabs - Exact match to image */
.product-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.nav-tabs {
    display: flex;
    gap: 0;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-tab {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.nav-tab:hover {
    color: #495057;
    background: rgba(255, 255, 255, 0.8);
}

.nav-tab.active {
    background: #ffffff;
    color: #212529;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #e5e5e5;
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.view-all-link:hover {
    color: #000;
    text-decoration: none;
}

.view-all-link svg {
    transition: transform 0.3s ease;
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.5;
}

.view-all-link:hover svg {
    transform: translateX(2px);
}

/* Section Title */
.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #212529;
    margin: 0;
    padding: 0;
}

/* Product Grid - Exact match to image (4 columns) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

/* Product Card - Exact match to image */

/* Product Card - Exact match to image */
.product-card {
    background: #ffffff;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
}

/* Product Image - Exact match to image */
.product-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

/* Product Badges - Exact match to image */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.badge-hot {
    background: #dc3545;
    color: #ffffff;
}

.badge-new {
    background: #17a2b8;
    color: #ffffff;
}

.badge-discount {
    background: #28a745;
    color: #ffffff;
}

/* Product Info - Exact match to image */
.product-info {
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    height: 120px;
}

.product-name {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    color: #000;
}

.product-name a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-name a:hover {
    color: #007bff;
}

.product-price {
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #212529;
}

.product-price del {
    color: #6c757d;
    font-weight: 400;
    margin-right: 8px;
    font-size: 16px;
}
.product-grid .amount {
    font-size: 18px;
    font-weight: 600;
    color: #000;
}
.product-grid del .amount {
    font-size: 16px;
    font-weight: 400;
    color: #666;
}
.product-price ins {
    text-decoration: none;
    color: #dc3545;
}

/* Product Actions - Exact match to image */
.product-actions {
    margin-top: auto;
}

.add-to-cart-btn,
.view-product-btn {
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.add-to-cart-btn {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.add-to-cart-btn:hover {
    background: #007bff;
    color: #ffffff;
    border-color: #007bff;
}

.view-product-btn {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.view-product-btn:hover {
    background: #e9ecef;
    color: #212529;
    border-color: #adb5bd;
}

/* No Products */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-products p {
    font-size: 18px;
    margin: 0;
}

/* Loading State */
.product-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Tab Content Transitions */
.tab-content {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.tab-content.fade-out {
    opacity: 0;
}

/* Mobile Layout Adjustments */
.nav-tabs.mobile-layout {
    flex-wrap: wrap;
    gap: 8px;
}

.nav-tabs.mobile-layout .nav-tab {
    flex: 1;
    min-width: 120px;
    padding: 10px 12px;
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .modern-product-grid {
        padding: 15px;
    }
    
    .product-navigation {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .nav-tabs {
        justify-content: center;
    }
    
    .nav-tab {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .product-info {
        padding: 14px 0px;
        height: 110px;
    }
    
    .product-name {
        font-size: 20px;
    }
    
    .product-price {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-tabs {
        flex-wrap: wrap;
    }
    
    .nav-tab {
        flex: 1;
        min-width: 120px;
    }
}

/* Custom Scrollbar for Product Grid */
.product-grid::-webkit-scrollbar {
    height: 6px;
}

.product-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.product-grid::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.product-grid::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
.modern-product-grid .nav-tabs {
    background: transparent;
    box-shadow: none;
    border-bottom: none;
}
.modern-product-grid .nav-tabs .nav-tab {
    background: transparent;
    box-shadow: none;
    border-bottom: none;
    background-color: transparent !important;
    border: 1px solid #666 !important;
    margin-right: 15px;
    color: #666 !important;
    border-radius: 30px !important;
}
.modern-product-grid .nav-tabs .nav-tab.active {
    border: 1px solid #000 !important;
    color: #000 !important;
}