/* ========================================
   ENHANCED PRODUCT CARDS - PREMIUM DESIGN
   ======================================== */

.product-card {
    position: relative;
    background: linear-gradient(135deg, rgba(20, 27, 61, 0.6) 0%, rgba(10, 14, 39, 0.8) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 215, 0, 0.4);
}

.product-card:hover::before {
    opacity: 1;
}

/* Product Badges */
.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 10;
    backdrop-filter: blur(10px);
    animation: badgePulse 2s ease-in-out infinite;
}

.badge-bestseller {
    background: linear-gradient(135deg, #ffd700 0%, #ffb800 100%);
    color: #0a0e27;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.badge-new {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.badge-sale {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.badge-discount {
    top: 3.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Product Image */
.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 15px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 85%;
    height: 85%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.product-card:hover .product-image {
    transform: scale(1.15) rotate(2deg);
}

/* Quick View Button - Premium Design */
.quick-view-btn {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(135deg, #ffd700 0%, #ffb800 100%);
    color: #0a0e27;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card:hover .quick-view-btn {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.quick-view-btn:hover {
    background: linear-gradient(135deg, #ffb800 0%, #ffa500 100%);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6);
    transform: translateX(-50%) translateY(-3px) scale(1.05);
}

.quick-view-btn svg {
    transition: transform 0.3s ease;
}

.quick-view-btn:hover svg {
    transform: translateX(3px);
}

/* Product Info */
.product-info {
    text-align: center;
}

.product-brand {
    font-size: 0.85rem;
    color: #a0a8c1;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    min-height: 2.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Rating */
.product-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.star {
    color: #ffd700;
    font-size: 1rem;
}

.star-full {
    opacity: 1;
}

.star-half {
    opacity: 0.7;
}

.star-empty {
    opacity: 0.3;
}

.rating-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffd700;
    margin-left: 0.3rem;
}

.rating-count {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Pricing */
.product-pricing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.product-old-price {
    font-size: 1rem;
    color: #6b7280;
    text-decoration: line-through;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffd700;
    font-family: 'Outfit', sans-serif;
}

/* Stock Status */
.product-stock {
    font-size: 0.85rem;
    color: #10b981;
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.product-stock.low-stock {
    color: #f59e0b;
}

/* Add to Cart Button */
.btn-add-to-cart {
    width: 100%;
    background: linear-gradient(135deg, #ffd700 0%, #ffb800 100%);
    color: #0a0e27;
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-add-to-cart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-add-to-cart:hover::before {
    width: 300px;
    height: 300px;
}

.btn-add-to-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

.btn-add-to-cart:active {
    transform: translateY(-1px);
}

.btn-add-to-cart svg {
    position: relative;
    z-index: 1;
}

.btn-add-to-cart span {
    position: relative;
    z-index: 1;
}

/* ========================================
   NOTIFICATION SYSTEM
   ======================================== */

.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, rgba(20, 27, 61, 0.95) 0%, rgba(10, 14, 39, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateX(400px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: white;
    font-weight: 500;
}

.notification-success {
    border-color: rgba(16, 185, 129, 0.5);
}

.notification-success svg {
    color: #10b981;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .product-card {
        padding: 1rem;
    }

    .product-name {
        font-size: 1rem;
        min-height: 2.5rem;
    }

    .product-price {
        font-size: 1.5rem;
    }

    .btn-add-to-cart {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }
}

/* ========================================
   LOADING STATES
   ======================================== */

.product-card.loading {
    pointer-events: none;
    opacity: 0.6;
}

.product-card.loading .product-image {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}