/* Products Section Styles - Enhanced Design */
.products-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(64, 162, 216, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(240, 237, 207, 0.1) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%2340A2D8" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.6;
}

.section-header {
    text-align: center;
    margin-bottom: 100px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 25px 0;
    background: linear-gradient(135deg, #40A2D8 0%, #F0EDCF 50%, #40A2D8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-shadow: 0 0 30px rgba(64, 162, 216, 0.3);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(135deg, #40A2D8 0%, #F0EDCF 100%);
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(64, 162, 216, 0.5);
}

.section-description {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #cccccc;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Enhanced Grid Layout */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
    margin-bottom: 80px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* Enhanced Product Cards */
.product-card {
    background: rgba(26, 26, 26, 0.95);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(64, 162, 216, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(64, 162, 216, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(10px);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #40A2D8 0%, #F0EDCF 50%, #40A2D8 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 35px 80px rgba(64, 162, 216, 0.25),
        0 15px 35px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(64, 162, 216, 0.4);
}

.product-card:hover::before {
    transform: scaleX(1);
}

/* Enhanced Product Image */
.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: linear-gradient(135deg, rgba(64, 162, 216, 0.1) 0%, rgba(240, 237, 207, 0.05) 100%);
}

.product-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.9);
}

.product-card:hover .product-thumbnail {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, rgba(64, 162, 216, 0.1) 0%, rgba(240, 237, 207, 0.05) 100%);
}

.product-placeholder svg {
    opacity: 0.6;
    transition: all 0.3s ease;
}

.product-card:hover .product-placeholder svg {
    opacity: 0.8;
    transform: scale(1.1);
}

/* Enhanced Product Content */
.product-content {
    padding: 30px;
    position: relative;
}

.product-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.product-title a:hover {
    color: #40A2D8;
    text-shadow: 0 0 10px rgba(64, 162, 216, 0.3);
}

/* Enhanced Price Display with Bootstrap Icons */
.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(240, 237, 207, 0.1) 0%, rgba(64, 162, 216, 0.05) 100%);
    border-radius: 14px;
    border: 1px solid rgba(240, 237, 207, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 48px;
}

.product-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(240, 237, 207, 0.1), transparent);
    transition: left 0.6s ease;
}

.product-card:hover .product-price::before {
    left: 100%;
}

.product-price-icon {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
}

.price-content {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

.price-amount, .price-discount {
    font-size: 1.08rem;
    font-weight: 800;
    color: #F0EDCF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.price-original {
    font-size: 0.95rem;
    color: #888;
    text-decoration: line-through;
    margin-right: 8px;
    opacity: 0.7;
    position: relative;
    line-height: 1.2;
}

.price-currency {
    font-size: 0.95rem;
    color: #cccccc;
    font-weight: 600;
    margin-left: 4px;
    margin-right: 0;
    order: 2;
    letter-spacing: 0.2px;
}

.price-content > *:not(.price-currency) {
    order: 1;
}

.discount-badge {
    top: -8px;
    right: -8px;
    font-size: 0.75rem;
    padding: 4px 8px;
}

/* Price with discount styling */
.product-price.has-discount {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(240, 237, 207, 0.05) 100%);
    border-color: rgba(255, 107, 107, 0.3);
}

.product-price.has-discount .product-price-icon {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    color: #ffffff;
}

.price-original::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b 0%, transparent 100%);
    transform: translateY(-50%);
}

.discount-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.4);
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: 2;
}

.product-price.has-discount .discount-badge {
    transform: scale(1);
}

/* Enhanced Description */
.product-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #cccccc;
    margin-bottom: 25px;
    min-height: 50px;
    opacity: 0.9;
}

/* Enhanced Action Buttons */
.product-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.product-actions .btn {
    flex: 1;
    min-width: 140px;
    font-size: 0.95rem;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-actions .btn i {
    font-size: 1rem;
}

.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::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #40A2D8 0%, #0B60B0 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 5px 20px rgba(64, 162, 216, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0B60B0 0%, #40A2D8 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(64, 162, 216, 0.4);
}

.btn-outline-primary {
    background: transparent;
    color: #40A2D8;
    border: 2px solid #40A2D8;
    position: relative;
}

.btn-outline-primary:hover {
    background: #40A2D8;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(64, 162, 216, 0.4);
}

.out-of-stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1) 0%, rgba(255, 107, 107, 0.05) 100%);
    color: #ff6b6b;
    border: 2px solid rgba(255, 0, 0, 0.2);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    flex: 1;
    justify-content: center;
}

.out-of-stock i {
    font-size: 1rem;
}

/* Enhanced Footer */
.products-footer {
    text-align: center;
    position: relative;
    z-index: 2;
}

.products-footer .btn {
    font-size: 1.2rem;
    padding: 15px 40px;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.products-footer .btn i {
    font-size: 1.1rem;
}

.products-footer .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.6s ease;
}

.products-footer .btn:hover::before {
    left: 100%;
}

.products-footer .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(64, 162, 216, 0.4);
}

/* Enhanced No Products State */
.no-products {
    text-align: center;
    padding: 80px 20px;
    position: relative;
    z-index: 2;
}

.no-products-icon {
    margin-bottom: 40px;
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.no-products h3 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
}

.no-products p {
    font-size: 1.1rem;
    color: #cccccc;
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto;
}

/* Enhanced Debug Info */
.debug-info {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    font-size: 0.9rem;
    color: #cccccc;
    border: 1px solid rgba(64, 162, 216, 0.2);
    backdrop-filter: blur(10px);
}

.debug-info p {
    margin: 8px 0;
}

.debug-info strong {
    color: #40A2D8;
}

/* Responsive Design - Enhanced */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 25px;
        max-width: 1200px;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

@media (max-width: 1024px) {
    .products-section {
        padding: 100px 0;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .product-content {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .products-section {
        padding: 80px 0;
    }
    
    .section-header {
        margin-bottom: 60px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-description {
        font-size: 1.1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 500px;
        margin: 0 auto 60px auto;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    .product-content {
        padding: 20px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        flex: none;
        width: 100%;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-price {
        padding: 8px 10px;
        min-height: 40px;
    }
    
    .product-price-icon {
        width: 26px;
        height: 26px;
        font-size: 0.95rem;
    }
    
    .price-amount, .price-discount {
        font-size: 0.98rem;
    }
    
    .price-original {
        font-size: 0.85rem;
    }
    
    .price-currency {
        font-size: 0.85rem;
    }
    
    .product-description {
        font-size: 0.9rem;
    }
    
    .products-grid {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .products-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .product-content {
        padding: 15px;
    }
    
    .product-title {
        font-size: 1.2rem;
    }
    
    .product-price {
        padding: 12px 15px;
    }
    
    .product-price-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .price-amount {
        font-size: 1.3rem;
    }
    
    .price-discount {
        font-size: 1.3rem;
    }
    
    .product-description {
        font-size: 0.9rem;
    }
    
    .products-grid {
        padding: 0 15px;
    }
}

/* Loading Animation */
.product-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger Animation for Cards */
.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; } 