﻿
:root {
    --primary-color: #28a745;
    --secondary-color: #20c997;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Hero Section Enhancement */
.hero-section {
    /*        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
        opacity: 0.5;
    }

.hero-content {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    display: inline-flex;
}

.breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

    .breadcrumb-item.active {
        color: #fff;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        content: "›";
        font-size: 1.2rem;
        color: rgba(255, 255, 255, 0.6);
    }

.category-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin: -3rem 0;
    letter-spacing: -1px;
}

/* Section Headers */
.section-header {
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #718096;
    font-size: 1.1rem;
}

.items-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Product Card Enhancements */
.product-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    height: 100%;
}

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--card-hover-shadow);
        border-color: var(--primary-color);
    }

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f0f0f0 !important;
    padding: 1.5rem;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.product-card:hover .product-image {
    transform: scale(1.1) rotate(2deg);
}

.discount-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
    z-index: 2;
    animation: pulse 2s infinite;
}

@@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.category-badge {
    background: #177e3f !important;
    color: white;
    padding: 0.35rem 0.9rem;
    border-radius: 5px !important;
    font-size: 1.5rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

    .product-title:hover {
        color: var(--primary-color);
        transition: color 0.5s ease;
    }

.price-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.price-current {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
}

.price-original {
    font-size: 1.3rem;
    color: #a0aec0;
    text-decoration: line-through;
}

.product-quantity {
    color: #718096;
    font-size: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .product-quantity::before {
        content: "📦";
        font-size: 1.1rem;
    }

.card-body {
    padding: 1.5rem;
}

/* Add to Cart Button Styles */
.btn-add-cart {
    background: #177e3f !important;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px !important;
    font-weight: 600;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

    .btn-add-cart:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
        background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    }

    .btn-add-cart:active {
        transform: translateY(0);
    }

.btn-view-details {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 5px !important;
    font-weight: 600;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

    .btn-view-details:hover {
        background: var(--primary-color);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    }

.product-actions {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Divider */
.section-divider {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 4rem 0;
}

/* Empty State Enhancement */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.empty-state h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.15rem;
    color: #718096;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.btn-browse {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.5rem;
    border: none;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

    .btn-browse:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
        color: white;
    }

/* Responsive adjustments */
@@media (max-width: 768px) {
    .category-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .product-image-wrapper {
        height: 220px;
    }
}

/* Loading animation for images */
.product-image {
    animation: fadeIn 0.5s ease-in;
}

@@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.custom-unit-select {
    width: 298px !important;
}

.nice-select .list {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 0 1px rgba(68, 68, 68, 0.11);
    box-sizing: border-box;
    margin-top: -203px !important;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 0;
    -webkit-transform-origin: 50% 0;
    -ms-transform-origin: 50% 0;
    transform-origin: 50% 0;
    -webkit-transform: scale(0.75) translateY(-21px);
    -ms-transform: scale(0.75) translateY(-21px);
    transform: scale(0.75) translateY(-21px);
    -webkit-transition: all 0.2s cubic-bezier(0.5, 0, 0, 1.25), opacity 0.15s ease-out;
    transition: all 0.2s cubic-bezier(0.5, 0, 0, 1.25), opacity 0.15s ease-out;
    z-index: 69;
}

