/* ============================================
   PRODUCTS - Grid, Carousel, Cards
   ============================================ */

/* Products Grid & Carousel */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.products-carousel {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    padding: var(--space-sm) 0 var(--space-md);
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x proximity;
}

.products-carousel::-webkit-scrollbar {
    display: none;
}

.products-carousel .product-card {
    flex: 0 0 260px;
    min-width: 260px;
    scroll-snap-align: start;
}

/* ============================================
   PRODUCT CARD - 2025 Modern & Minimal
   ============================================ */
.product-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 100%;
}

.product-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Category Tag - Modern Minimal Badge */
.product-info {
    padding: calc(var(--space-md) - 2px);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    flex: 1;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.product-chip--accent {
    background: var(--accent);
    color: var(--bg-primary);
}

.product-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.35;
}

/* Product Sizes - Modern 2025 */
.product-sizes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.size-label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.size-options {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x;
}

.size-options::-webkit-scrollbar {
    display: none;
}

.size-option {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: var(--font-size-xs);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    min-width: 40px;
    user-select: none;
    background: transparent;
}

.size-option:hover:not(.unavailable) {
    border-color: var(--border-hover);
    background: var(--bg-secondary);
}

.size-option.selected {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.size-option.unavailable {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
}

.product-footer {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: auto;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
}

.current-price {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.current-price.discount {
    color: var(--accent);
}

.old-price {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
}

/* Add to Cart Button - 2025 Modern Style */
.add-to-cart-btn {
    background: var(--accent);
    border: none;
    color: var(--bg-primary);
    padding: 12px;
    border-radius: 12px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.02em;
    justify-content: center;
    width: 100%;
}

.add-to-cart-btn:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.add-to-cart-btn:active:not(:disabled) {
    transform: translateY(0);
}

.add-to-cart-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================
   ANIMATIONS - 2025 Smooth Entry
   ============================================ */
.fade-in {
    animation: fadeInUp var(--transition-slow) forwards;
    opacity: 0;
}

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

