

/* Main Content Styles */
main {
    flex: 1;
    padding: 2rem 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Main Content */
.main-content {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.98) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    min-height: calc(100vh - 200px);
    margin-top: 200px;
    border-radius: 25px 25px 0 0;
    box-shadow: 
        0 -10px 40px rgba(0,0,0,0.1),
        0 -5px 20px rgba(35,40,74,0.05),
        inset 0 1px 0 rgba(255,255,255,0.6);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #43a047, #66bb6a, #81c784, #66bb6a, #43a047);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.body-content, main, .main-content {
    margin-top: 250px;
    border-bottom: #dae9da 5px solid;
    border-top: #dae9da 5px solid;
}

@media (max-width: 768px) {
    main {
        padding: 0.5rem 0;
    }
    
    .body-content, main, .main-content {
        margin-top: 120px;
    }
    
    .main-content {
        margin-top: 120px;
        padding: 1rem;
        border-radius: 15px 15px 0 0;
    }
    
    .products-grid {
        padding: 1rem;
        gap: 1.5rem;
    }
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.products-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(67,160,71,0.3), transparent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.product-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(248,250,252,0.95) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.1),
        0 4px 16px rgba(67,160,71,0.05),
        inset 0 1px 0 rgba(255,255,255,0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    transform: translateY(0);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(67,160,71,0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.product-card:hover::before {
    left: 100%;
}

/* Animation effects for desktop only */
@media (min-width: 769px) {
    .product-card {
        opacity: 0;
        transform: translateX(-100px);
        transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .product-card:nth-child(even) {
        transform: translateX(100px);
    }
    
    .product-card.animate-in {
        opacity: 1;
        transform: translateX(0);
    }
    
    .product-card.animate-in:hover {
        transform: translateY(-5px);
    }
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.15),
        0 10px 30px rgba(67,160,71,0.2),
        0 0 0 1px rgba(67,160,71,0.3),
        inset 0 1px 0 rgba(255,255,255,0.9);
    border-color: rgba(67,160,71,0.4);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-card:hover .product-info {
    background: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.98) 100%);
}

.product-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(67,160,71,0.1) 0%, rgba(102,187,106,0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-image::after {
    opacity: 1;
}

.no-image {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, rgba(245,245,245,0.9), rgba(224,224,224,0.95));
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

.no-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, rgba(67,160,71,0.1), rgba(102,187,106,0.1));
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) translateY(0px); }
    50% { transform: translate(-50%, -50%) translateY(-10px); }
}

.product-info {
    flex: 1;
    padding: 1.5rem 1.5rem 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: linear-gradient(145deg, rgba(255,255,255,0.8) 0%, rgba(248,250,252,0.9) 100%);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.product-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(67,160,71,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-info::before {
    opacity: 1;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    line-height: 1.4;
    min-height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.product-card:hover .product-info h3 {
    background: linear-gradient(135deg, #43a047 0%, #66bb6a 50%, #43a047 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(-2px);
}

.category {
    display: inline-block;
    background: linear-gradient(135deg, rgba(67,160,71,0.1) 0%, rgba(102,187,106,0.15) 100%);
    color: #43a047;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 1px solid rgba(67,160,71,0.2);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(67,160,71,0.1), transparent);
    transition: left 0.5s ease;
}

.product-card:hover .category {
    background: linear-gradient(135deg, rgba(67,160,71,0.15) 0%, rgba(102,187,106,0.2) 100%);
    border-color: rgba(67,160,71,0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67,160,71,0.15);
}

.product-card:hover .category::before {
    left: 100%;
}

.price {
    margin: 0.8rem 0;
    font-size: 1.2rem;
    font-weight: 700;
    
    align-items: center;
    gap: 0.8rem;
    position: relative;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
    margin-right: 0.3em;
    position: relative;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.sale-price {
    background: linear-gradient(135deg, #e53e3e 0%, #ff6b6b 50%, #e53e3e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 1.05em;
    position: relative;
    animation: priceGlow 2s ease-in-out infinite alternate;
}

.current-price {
    background: linear-gradient(135deg, #43a047 0%, #66bb6a 50%, #43a047 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 1.05em;
    position: relative;
    text-shadow: 0 0 10px rgba(67,160,71,0.3);
}

@keyframes priceGlow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.2); }
}

.product-card:hover .price {
    transform: translateY(-2px);
}

.product-card:hover .original-price {
    opacity: 0.5;
}

.quantity {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-actions {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 0.8rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.product-actions .btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    background: linear-gradient(145deg, rgba(67,160,71,0.9) 0%, rgba(76,175,80,0.95) 100%);
    backdrop-filter: blur(15px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.2rem;
    box-shadow: 
        0 4px 15px rgba(67,160,71,0.3),
        inset 0 1px 0 rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
    min-width: unset;
    min-height: unset;
    padding: 0;
}

.product-actions .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 ease;
}

.product-actions .btn:hover {
    background: linear-gradient(145deg, rgba(46,125,50,0.95) 0%, rgba(67,160,71,1) 100%);
    transform: scale(1.15) translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(67,160,71,0.4),
        0 4px 15px rgba(46,125,50,0.3),
        inset 0 1px 0 rgba(255,255,255,0.4);
}

.product-actions .btn:hover::before {
    left: 100%;
}

.product-actions .btn:active {
    transform: scale(1.05) translateY(0);
    transition: transform 0.1s ease;
}

.product-actions .btn-secondary {
    background: #fff;
    color: #6eea00;
    border: 2px solid #6eea00;
}

.product-actions .btn-secondary:hover {
    background: #eaffd6;
    color: #4caf50;
    border-color: #4caf50;
}

.product-actions .btn-success {
    width: 100%;
    border-radius: 5px;
    height: auto;
    min-width: 0;
    padding: 10px 0;
    font-size: 1rem;
    margin: 0;
    display: block;
}

.product-actions .btn-success:hover {
    background: #218838;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(40,167,69,0.15);
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.no-products i {
    font-size: 3rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Category Header */
.category-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.category-header h2 {
    color: #141d2b;
    font-size: 1.8rem;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 900px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: #000;
    background: rgba(0,0,0,0.1);
}

.product-detail {
    display: flex;
    gap: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #1b5e20 80%, #23272f 100%);
    border-radius: 8px;
    box-shadow: 0 0 24px 0 #000, 0 0 12px 2px #43a047;
    border: 2.5px solid #23272f;
}

.product-detail-image {
    flex: 0 0 40%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    height: 100%;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-info {
    flex: 1;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.product-detail-info h2 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
}

.product-detail-price {
    font-size: 24px;
    color: #f44336;
    font-weight: bold;
    margin: 15px 0;
}

.product-detail-quantity {
    color: #666;
    margin-bottom: 15px;
    font-size: 16px;
}

.product-detail-description {
    margin: 20px 0;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.product-detail-description h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid #4caf50;
    padding-bottom: 8px;
}

.description-content {
    line-height: 1.6;
    color: #000;
}

.main-description {
    margin-bottom: 20px;
    color: #000;
    font-size: 16px;
}

.delivery-info {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.delivery-info h4 {
    color: #4caf50;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
}

.delivery-info h4 i {
    font-size: 20px;
}

.delivery-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.delivery-info li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    color: #000;
}

.delivery-info li:last-child {
    border-bottom: none;
}

.delivery-info li strong {
    color: #333;
    margin-right: 5px;
    font-weight: 600;
}

.highlight-green {
    color: #fff;
    background: #4caf50;
    font-weight: bold;
    padding: 2px 12px;
    border-radius: 4px;
    display: inline-block;
}

.highlight-red {
    color: #fff;
    background: #e74c3c;
    font-weight: bold;
    padding: 2px 12px;
    border-radius: 4px;
    display: inline-block;
}

.product-detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.product-detail-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.product-detail-actions .btn-primary {
    background: #23284a;
    color: white;
    border: 1px solid #23284a;
}

.product-detail-actions .btn-primary:hover {
    background: #fff;
    color: #23284a;
}

.product-detail-actions .btn-secondary {
    background: #23284a;
    color: white;
    border: 1px solid #23284a;
}

.product-detail-actions .btn-secondary:hover {
    background: #fff;
    color: #23284a;
}

.product-detail-actions button i {
    font-size: 16px;
}

.product-detail-account-type strong {
    color: #222;
    font-weight: 600;
}

/* Custom Tooltip for account type */
.product-detail-account-type .custom-tooltip {
    position: relative;
    cursor: pointer;
}
.product-detail-account-type .custom-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: 130%;
    transform: translateX(-50%);
    background: #23284a;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    white-space: pre-line;
    font-size: 1rem;
    z-index: 1001;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    opacity: 1;
    pointer-events: none;
    min-width: 220px;
    max-width: 320px;
    text-align: left;
    line-height: 1.5;
    transition: opacity 0.2s;
}
.product-detail-account-type .custom-tooltip::after {
    opacity: 0;
    pointer-events: none;
}
.product-detail-account-type .custom-tooltip:hover::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 120%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent #23284a transparent;
    z-index: 1002;
}

/* Media Queries */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }

    .product-card {
        min-height: 180px;
    }

    .product-image, .no-image {
        height: 100px;
    }

    .product-info {
        padding: 0.5rem 0.5rem 1.8rem 0.5rem;
    }

    .product-info h3 {
        font-size: 0.9rem;
        min-height: 2em;
    }

    .category {
        font-size: 0.8rem;
        letter-spacing: 0.2px;
    }

    .price {
        font-size: 0.9rem;
    }

    .original-price {
        font-size: 0.8em;
    }

    .sale-price, .current-price {
        font-size: 0.95em;
    }

    .quantity {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .product-actions {
        right: 0.5rem;
        bottom: 0.5rem;
        gap: 0.4rem;
    }

    .product-actions .btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .body-content, main, .main-content {
        margin-top: 320px !important;
        border-bottom: 3px solid #dae9da;
        border-top: 3px solid #dae9da;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.8rem;
        padding: 0.8rem;
    }

    .product-card {
        min-height: 160px;
    }

    .product-image, .no-image {
        height: 90px;
    }

    .product-info {
        padding: 0.4rem 0.4rem 1.5rem 0.4rem;
    }

    .product-info h3 {
        font-size: 0.85rem;
        min-height: 1.8em;
    }

    .category {
        font-size: 0.75rem;
        letter-spacing: 0.1px;
    }

    .price {
        font-size: 0.85rem;
    }

    .original-price {
        font-size: 0.75em;
    }

    .sale-price, .current-price {
        font-size: 0.9em;
    }

    .quantity {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
    }

    .product-actions {
        right: 0.4rem;
        bottom: 0.4rem;
        gap: 0.3rem;
    }

    .product-actions .btn {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .body-content, main, .main-content {
        margin-top: 350px !important;
        border-bottom: 2px solid #dae9da;
        border-top: 2px solid #dae9da;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.6rem;
        padding: 0.6rem;
    }

    .product-card {
        min-height: 150px;
    }

    .product-image, .no-image {
        height: 80px;
    }

    .product-info {
        padding: 0.3rem 0.3rem 1.2rem 0.3rem;
    }

    .product-info h3 {
        font-size: 0.8rem;
        min-height: 1.6em;
    }

    .category {
        font-size: 0.7rem;
        letter-spacing: 0px;
    }

    .price {
        font-size: 0.8rem;
    }

    .original-price {
        font-size: 0.7em;
    }

    .sale-price, .current-price {
        font-size: 0.85em;
    }

    .quantity {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }

    .product-actions {
        right: 0.3rem;
        bottom: 0.3rem;
        gap: 0.2rem;
    }

    .product-actions .btn {
        width: 26px;
        height: 26px;
        font-size: 0.85rem;
    }
}

@media (max-width: 800px) {
    .body-content, main, .main-content {
        margin-top: 320px !important;
        border-bottom: 3px solid #dae9da;
        border-top: 3px solid #dae9da;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
        padding: 1rem;
        max-width: 100%;
    }

    .product-card {
        min-height: 180px;
        border-radius: 12px;
    }

    .product-image, .no-image {
        height: 120px;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }

    .product-info {
        padding: 0.8rem 0.8rem 2rem 0.8rem;
    }

    .product-info h3 {
        font-size: 1rem;
        min-height: 2.2em;
        line-height: 1.3;
    }

    .category {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .price {
        font-size: 1rem;
        margin: 0.4rem 0;
    }

    .original-price {
        font-size: 0.9em;
    }

    .sale-price, .current-price {
        font-size: 1.1em;
    }

    .quantity {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .product-actions {
        right: 0.8rem;
        bottom: 0.8rem;
        gap: 0.5rem;
    }

    .product-actions .btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    /* Modal styles for mobile */
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 15px;
    }

    .product-detail {
        flex-direction: column;
        gap: 20px;
    }

    .product-detail-image {
        flex: 0 0 auto;
    }

    .product-detail-info {
        padding: 15px;
    }

    .product-detail-info h2 {
        font-size: 20px;
    }

    .product-detail-price {
        font-size: 20px;
    }

    .product-detail-quantity {
        font-size: 14px;
    }

    .product-detail-description {
        padding: 12px;
    }

    .product-detail-description h3 {
        font-size: 16px;
    }

    .description-content {
        font-size: 14px;
    }

    .delivery-info {
        padding: 12px;
    }

    .delivery-info h4 {
        font-size: 16px;
    }

    .delivery-info li {
        font-size: 14px;
        padding: 8px 0;
    }

    .product-detail-actions {
        flex-direction: column;
        gap: 8px;
    }

    .product-detail-actions button {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
}

@media (max-width: 800px) {
    .body-content, main, .main-content {
        margin-top: 370px !important;
    }
}

.tag-label {
    background: #43a047;
    color: #fff;
    border-radius: 12px;
    padding: 2px 12px;
    margin-right: 4px;
    font-size: 0.98em;
    display: inline-block;
} 

/* --- Featured Products Carousel --- */
:root {
  --primary-color: #870000;
  --secondary-color: #190a05;
  --card-width: 210px;
  --card-height: 350px;
  --border-color: #5a3e2b;
  --text-color: #a99383;
  --highlight-color: #ff9000;
  --shadow-color: rgba(0, 0, 0, 0.7);
  --card-bg-color: #1d0d06;
}

.scene {
    width: 100%;
    max-width: 1200px;
    height: 450px;
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 40px auto;
    padding: 40px 20px 60px 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(248,250,252,0.15) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.1),
        0 10px 30px rgba(67,160,71,0.05),
        inset 0 1px 0 rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.scene::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(67,160,71,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(102,187,106,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.scene::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(67,160,71,0.4), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

.carousel {
  width: 100%;
  height: 400px;
  position: relative;
  transform-style: preserve-3d;
  transform: translateZ(-400px);
  transition: transform 1s;
}

.card {
  width: var(--card-width);
  height: var(--card-height);
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%) translateZ(400px);
  perspective: 1000px;
  transition: transform 1s;
  cursor: pointer;
  animation: glow 3s infinite alternate;
}

.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}

.card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: linear-gradient(145deg, rgba(24,31,27,0.95) 0%, rgba(67,160,71,0.9) 100%);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(110,234,0,0.6);
  border-radius: 20px;
  box-shadow: 
    0 0 30px rgba(110,234,0,0.3),
    0 0 60px rgba(67,160,71,0.2),
    inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card-front::before,
.card-back::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 30%, rgba(110,234,0,0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(67,160,71,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.card-back {
  transform: rotateY(180deg);
  background-image: radial-gradient(circle, #181f1b 80%, #23272f 100%);
}
.card-back-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #6eea00;
  text-shadow: 0 0 8px #43a047, 0 0 2px #fff;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.card-back-text {
  font-size: 0.9rem;
  color: #e0ffe0;
  text-align: center;
  padding: 0 10px;
  line-height: 1.4;
}

.card:hover:not(.flipped) .card-inner {
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--shadow-color), 0 0 50px rgba(137, 0, 0, 0.5);
}

.card-image {
  height: 240px;
  width: 130px;
  background: var(--secondary-color);
  border: 3px solid var(--border-color);
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
  opacity: 0.9;
  transition: opacity 0.3s;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.card:hover .card-image {
  opacity: 1;
  box-shadow: inset 0 0 30px rgba(137, 0, 0, 0.3);
}

.card-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  
  z-index: 1;
}

.card-title {
  font-size: 1.2rem;
  margin-top: 10px;
  color: #6eea00;
  letter-spacing: 2px;
  text-shadow: 0 0 8px #43a047, 0 0 2px #fff;
}

.card-num {
  font-size: 0.8rem;
  color: #a6aaaa;
  margin-top: 5px;
  font-style: italic;
}

.card-content {
  text-align: center;
  font-size: 0.8rem;
  margin-top: 5px;
  height: 40px;
  overflow: hidden;
  line-height: 1.3;
  font-style: italic;
  color: rgba(169, 147, 131, 0.7);
  padding: 0 5px;
}

.controls {
  
  bottom: 100px;
  
  display: flex;
  justify-content: center;
  gap: 20px;
}

.prev-btn,
.next-btn {
  background: var(--secondary-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: "Times New Roman", serif;
  letter-spacing: 1px;
}

.prev-btn:hover,
.next-btn:hover {
  background: var(--primary-color);
  color: #fff;
}

.card-symbol {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 1.5rem;
  color: #6eea00;
  text-shadow: 0 0 8px #43a047;
  opacity: 0.7;
}

.fog {
  display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .scene {
    max-width: 500px;
  }
  .carousel {
    transform: translateZ(-300px);
  }
  .card {
    transform: translateX(-50%) translateZ(300px);
  }
  :root {
    --card-width: 180px;
    --card-height: 300px;
  }
  .card-image {
    height: 200px;
    width: 140px;
  }
}

@media (max-width: 480px) {
  .scene {
    max-width: 320px;
  }
  .carousel {
    transform: translateZ(-250px);
  }
  .card {
    transform: translateX(-50%) translateZ(250px);
  }
  :root {
    --card-width: 150px;
    --card-height: 250px;
  }
  .card-image {
    height: 160px;
    width: 120px;
  }
  .card-title {
    font-size: 1rem;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 15px var(--shadow-color), 0 0 30px rgba(137, 0, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 20px var(--shadow-color), 0 0 40px rgba(137, 0, 0, 0.5);
  }
}

.static-effect {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="500" height="500" viewBox="0 0 500 500"><rect width="1" height="1" fill="rgba(255,255,255,0.1)" x="10" y="10"/></svg>');
  pointer-events: none;
  z-index: 20;
  opacity: 0.05;
  animation: static 0.5s steps(3, end) infinite;
}

@keyframes static {
  0% { background-position: 0 0; }
  25% { background-position: 100px -50px; }
  50% { background-position: -50px 100px; }
  75% { background-position: 200px 100px; }
  100% { background-position: -100px -100px; }
}

/* Floating Particles Effect */
.main-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(67,160,71,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(102,187,106,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(129,199,132,0.3), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(67,160,71,0.2), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(102,187,106,0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: floatParticles 20s linear infinite;
    pointer-events: none;
    opacity: 0.6;
}

@keyframes floatParticles {
    0% { transform: translateY(0px) translateX(0px); }
    33% { transform: translateY(-10px) translateX(10px); }
    66% { transform: translateY(-5px) translateX(-5px); }
    100% { transform: translateY(0px) translateX(0px); }
}

/* Enhanced Search Results Header */
.search-results-header {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,250,252,0.95) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.08),
        0 4px 16px rgba(67,160,71,0.05),
        inset 0 1px 0 rgba(255,255,255,0.6);
    position: relative;
    overflow: hidden;
}

.search-results-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #43a047, #66bb6a, #81c784, #66bb6a, #43a047);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.search-results-header h2 {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin: 0;
    font-size: 1.8rem;
    letter-spacing: 0.5px;
}

/* Đặt font-family Orbitron cho h1, h2 toàn dự án */
h1, h2 {
    font-family: 'Orbitron', Arial, Helvetica, sans-serif !important;
}

body {
  padding-top: 140px;
}
@media (max-width: 600px) {
  body {
    padding-top: 160px;
  }
}