/* Product Cards - Modern Professional Design */
.products-section {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    position: relative;
}

.product-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.95));
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
    transform: translateY(0);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--accent-gold), #f4d03f);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

/* Hover effects removed for better touch device compatibility */

.product-image {
    position: relative;
    overflow: hidden;
    height: 320px;
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(0, 0, 0, 0.05) 50%,
        transparent 100%
    );
    z-index: 1;
    pointer-events: none;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.95) saturate(1.1);
    transform: scale(1);
}

/* Image scaling and overlay hover effects removed */

/* Top Right Action Buttons */
.product-actions-top {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
}

/* Action buttons hover effects removed */

.btn-wishlist,
.btn-quick-view {
    background: #dc3545;
    color: var(--pure-white);
    border: 1px solid #dc3545;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.25);
    position: relative;
    overflow: hidden;
    font-weight: 500;
}

.btn-wishlist:hover,
.btn-quick-view:hover {
    background: #c82333;
    border-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.btn-wishlist::before,
.btn-quick-view::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-wishlist:hover::before,
.btn-quick-view:hover::before {
    left: 100%;
}

/* Wishlist and quick view button hover effects removed */

/* Center Bottom Add to Cart Button */
.product-actions-center {
    position: absolute;
    bottom:30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Center action button hover effects removed */

.btn-add-cart-hover {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 8px;
    border-radius: 25px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-add-cart-hover::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;
}

/* Add to cart hover button effects removed */

.product-info {
    padding: 10px;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.95));
}

.product-category {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    opacity: 0.8;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
}

.product-title {
    font-size: 1rem;
    color: var(--text-primary);
    text-transform: none;
    letter-spacing: -0.5px;
    line-height: 1.3;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    position: relative;
}

.product-sub-title {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: none;
    letter-spacing: -0.5px;
    line-height: 1.3;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    position: relative;
}

.product-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--accent-gold);
    border-radius: 1px;
    opacity: 0;
    transition: all 0.3s ease;
}

/* Title underline hover effects removed */

/* Free Shipping Info - Minimal style like category */
.product-shipping-info {
    display: block;
    font-size: 0.7rem;
    font-weight: bolder;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
    opacity: 0.8;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    text-align: center;
}

.product-shipping-info.success {
    color: #27ae60;
}

.product-shipping-info.remaining {
    color: #27ae60;
}

/* Product Stock Info - Same style as category and shipping */
.product-stock-info {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
    opacity: 0.8;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    text-align: center;
}

.product-stock-info.out-of-stock {
    color: #e74c3c;
}

.product-stock-info.large {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-gold);
    position: relative;
}

.current-price::before {
    font-size: 0.8rem;
    margin-right: 2px;
}

.old-price {
    font-size: 1.1rem;
    color: var(--light-gray);
    text-decoration: line-through;
    font-weight: 400;
    opacity: 0.7;
}

.old-price::before {
    font-size: 0.9rem;
    margin-right: 1px;
}

.btn-add-cart {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--dark-gray) 100%);
    border: 2px solid var(--primary-black);
    color: var(--text-white);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    font-size: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--black-alpha-20);
}

.btn-add-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-gold), var(--warning-yellow-alt));
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-add-cart:hover::before {
    left: 0;
}

.btn-add-cart:hover {
    border-color: var(--accent-gold);
    color: var(--primary-black);
}

.btn-add-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-gold), var(--warning-yellow-alt));
    transition: left 0.5s ease;
    z-index: -1;
}

/* Hover effects only on non-touch devices */
@media (hover: hover) and (pointer: fine) {
/* Add to cart button hover effects removed */
}

.btn-add-cart:active {
    transform: translateY(0);
    transition: all 0.1s ease;
}

/* Product Badges Container - Moved to Left */
.product-badges {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
    transform: translateX(0);
}

/* Individual Badge Styles */
.product-badges > div {
    padding: 2px 6px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    animation: fadeInScale 0.6s ease-out;
    transform-origin: top left;
}

/* Hover effects only on non-touch devices */
@media (hover: hover) and (pointer: fine) {
/* Badge hover effects removed */
}

/* Discount Badge */
.badge-discount {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    font-size: 12px;
    font-weight: 800;
    padding: 8px 12px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    animation: pulseDiscount 2s infinite;
    position: relative;
    overflow: hidden;
}

.badge-discount::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

/* Hover effects only on non-touch devices */
@media (hover: hover) and (pointer: fine) {
/* Discount badge hover effects removed */
}

/* Opportunity Badge */
.badge-opportunity {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
    position: relative;
}

.badge-opportunity::after {
    content: '🔥';
    margin-left: 4px;
    font-size: 8px;
}

/* New Badge */
.badge-new {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
    position: relative;
}

.badge-new::after {
    content: '✨';
    margin-left: 4px;
    font-size: 8px;
}

/* Shipping Today Badge */
.badge-shipping-today {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    font-size: 9px;
    position: relative;
}

.badge-shipping-today::after {
    content: '🚚';
    margin-left: 3px;
    font-size: 8px;
}

/* Free Shipping Badge */
.badge-free-shipping {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: var(--pure-white);
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
    font-size: 9px;
    position: relative;
}

.badge-free-shipping::after {
    content: '📦';
    margin-left: 3px;
    font-size: 8px;
}

/* Badge Animations */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pulseDiscount {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
    }
}

/* Responsive Badge Adjustments */
@media (max-width: 768px) {
    .product-badges {
        top: 10px;
        right: 10px;
        gap: 6px;
    }
    
    .product-badges > div {
        padding: 5px 10px;
        font-size: 9px;
        border-radius: 15px;
    }
    
    .badge-discount {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .badge-shipping-today,
    .badge-free-shipping {
        font-size: 8px;
    }
}

@media (max-width: 576px) {
    .product-badges {
        top: 8px;
        left: 8px;
        right: 8px;
        gap: 3px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        max-width: calc(100% - 16px);
    }
    
    .product-badges > div {
        padding: 3px 6px;
        font-size: 7px;
        border-radius: 8px;
        letter-spacing: 0.3px;
        flex: 0 0 auto;
        min-width: 0;
        white-space: nowrap;
    }
    
    .badge-discount {
        font-size: 8px;
        padding: 3px 6px;
    }
    
    .badge-shipping-today,
    .badge-free-shipping {
        font-size: 6px;
    }
    
    .badge-opportunity::after,
    .badge-new::after,
    .badge-shipping-today::after,
    .badge-free-shipping::after {
        display: none;
    }
}

/* Badge Stagger Animation */
.badge-discount { animation-delay: 0.1s; }
.badge-opportunity { animation-delay: 0.2s; }
.badge-new { animation-delay: 0.3s; }
.badge-shipping-today { animation-delay: 0.4s; }
.badge-free-shipping { animation-delay: 0.5s; }

/* Product Card Hover Enhancement - Only on non-touch devices */
@media (hover: hover) and (pointer: fine) {
/* Product card badge hover enhancement removed */
}

/* Rating Stars */
.product-rating {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.product-rating .star {
    color: #ffd700;
    font-size: 14px;
}

.product-rating .star.empty {
    color: #ddd;
}

.product-rating .rating-count {
    margin-left: 8px;
    font-size: 12px;
    color: #666;
}

/* Product Responsive Design */
@media (max-width: 768px) {
    /* Mobile Products Layout - 2x2 */
    .products-section .row > .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .product-image {
        height: 280px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-title {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .current-price {
        font-size: 0.8rem;
    }
    
    .old-price {
        font-size: 0.8rem;
    }
    
}

@media (max-width: 576px) {
    /* Mobile Products Layout - 2x2 */
    .products-section .row > .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .product-image {
        height: 280px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-title {
        font-size: 0.8rem;
    }
    
    .current-price {
        font-size: 0.8rem;
    }
    
    .old-price {
        font-size: 0.8rem;
    }
    
}

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

