/* ═══════════════════════════════════════════════════════════
   🎨 MONOCHROMATIC ELEGANT PRODUCT CARDS
   ═══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────── */
/* Grid Layout - Responsive */
/* ─────────────────────────────────────────────────────────── */

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
}

@media (min-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 28px;
    }
}

/* ─────────────────────────────────────────────────────────── */
/* Product Card - Monochromatic with Depth */
/* ─────────────────────────────────────────────────────────── */

.product-card-modern {
    position: relative;
    background: linear-gradient(145deg, #f9f6f2 0%, #f5eee6 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 2px 8px rgba(141, 103, 72, 0.06),
        0 8px 24px rgba(141, 103, 72, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(141, 103, 72, 0.08);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8d6748 0%, #e2c799 50%, #8d6748 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card-modern:hover::before {
    opacity: 1;
}

.product-card-modern:hover {
    transform: translateY(-16px);
    box-shadow: 
        0 4px 16px rgba(141, 103, 72, 0.12),
        0 16px 48px rgba(141, 103, 72, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(141, 103, 72, 0.15);
}

.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ─────────────────────────────────────────────────────────── */
/* Image Section */
/* ─────────────────────────────────────────────────────────── */

.product-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: none;
    overflow: hidden;
    border-bottom: none;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(1) contrast(1);
}

.product-card-modern:hover .product-img {
    transform: scale(1.08);
    filter: brightness(1.05) contrast(1.05);
}

.product-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
}

/* ─────────────────────────────────────────────────────────── */
/* Discount Badge */
/* ─────────────────────────────────────────────────────────── */

.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
}

.discount-percent {
    display: inline-block;
    background: linear-gradient(135deg, #8d6748 0%, #bfa074 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    box-shadow: 
        0 4px 12px rgba(141, 103, 72, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ─────────────────────────────────────────────────────────── */
/* Stock Badge */
/* ─────────────────────────────────────────────────────────── */

.stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    padding: 8px 14px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
    box-shadow: 
        0 3px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stock-badge.in-stock {
    background: linear-gradient(135deg, #8d6748 0%, #bfa074 100%);
    color: white;
}

.stock-badge.on-order {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.stock-badge.out-of-stock {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    opacity: 0.9;
}

/* ─────────────────────────────────────────────────────────── */
/* Category Tag */
/* ─────────────────────────────────────────────────────────── */

.category-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background: rgba(141, 103, 72, 0.92);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    box-shadow: 
        0 2px 8px rgba(141, 103, 72, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ─────────────────────────────────────────────────────────── */
/* Content Section */
/* ─────────────────────────────────────────────────────────── */

.product-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(to bottom, rgba(248, 250, 249, 0.3) 0%, transparent 100%);
    position: relative;
}

.product-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(141, 103, 72, 0.10) 50%, transparent 100%);
}

@media (max-width: 767px) {
    .product-content {
        padding: 16px;
        gap: 10px;
    }
}

/* ─────────────────────────────────────────────────────────── */
/* Product Name */
/* ─────────────────────────────────────────────────────────── */

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3em;
    transition: color 0.3s ease;
}

.product-card-modern:hover .product-name {
    color: #8d6748;
}

@media (max-width: 767px) {
    .product-name {
        font-size: 0.95rem;
        min-height: 2.8em;
    }
}

/* ─────────────────────────────────────────────────────────── */
/* Product Attributes */
/* ─────────────────────────────────────────────────────────── */

.product-attrs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.attr-dimension,
.attr-colors {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(141, 103, 72, 0.15);
    background: rgba(191, 160, 116, 0.07);
    color: #8d6748;
    transition: all 0.3s ease;
}

.product-card-modern:hover .attr-dimension,
.product-card-modern:hover .attr-colors {
    background: rgba(191, 160, 116, 0.13);
    border-color: rgba(141, 103, 72, 0.25);
}

@media (max-width: 767px) {
    .attr-dimension,
    .attr-colors {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
}

/* ─────────────────────────────────────────────────────────── */
/* Price Section */
/* ─────────────────────────────────────────────────────────── */

.price-box {
    margin-top: auto;
    padding-top: 12px;
    border-top: 2px solid rgba(191, 160, 116, 0.13);
    position: relative;
}

.price-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #8d6748 0%, transparent 100%);
}

.price-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.price-old {
    font-size: 0.9rem;
    font-weight: 600;
    color: #adb5bd;
    text-decoration: line-through;
}

.price-new {
    font-size: 1.8rem;
    font-weight: 900;
    color: #8d6748;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(141, 103, 72, 0.10);
}

.price-single {
    font-size: 1.8rem;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

@media (max-width: 767px) {
    .price-old {
        font-size: 0.8rem;
    }
    
    .price-new,
    .price-single {
        font-size: 1.5rem;
    }
}

/* ─────────────────────────────────────────────────────────── */
/* Animations */
/* ─────────────────────────────────────────────────────────── */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card-modern {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

/* Stagger animation */
.product-card-modern:nth-child(1) { animation-delay: 0s; }
.product-card-modern:nth-child(2) { animation-delay: 0.1s; }
.product-card-modern:nth-child(3) { animation-delay: 0.2s; }
.product-card-modern:nth-child(4) { animation-delay: 0.3s; }
.product-card-modern:nth-child(5) { animation-delay: 0.4s; }
.product-card-modern:nth-child(6) { animation-delay: 0.5s; }
.product-card-modern:nth-child(7) { animation-delay: 0.6s; }
.product-card-modern:nth-child(8) { animation-delay: 0.7s; }
.product-card-modern:nth-child(n+9) { animation-delay: 0.8s; }

/* ─────────────────────────────────────────────────────────── */
/* Additional Sophistication */
/* ─────────────────────────────────────────────────────────── */

.product-card-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(141, 103, 72, 0.03) 0%, transparent 100%);
    border-radius: 0 0 20px 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card-modern:hover::after {
    opacity: 1;
}

/* ─────────────────────────────────────────────────────────── */
/* Mobile Optimizations */
/* ─────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .products-grid {
        gap: 16px;
    }
    
    .product-card-modern {
        border-radius: 12px;
    }
    
    .discount-badge {
        top: 8px;
        left: 8px;
    }
    
    .discount-percent {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .category-tag {
        bottom: 8px;
        left: 8px;
        right: 8px;
        padding: 6px 12px;
        font-size: 0.65rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   End of Modern Product Cards CSS
   ═══════════════════════════════════════════════════════════ */
