/* Product Categories Horizontal Compact Layout */
/* This file creates a tight, compact horizontal layout for Product Categories section */

/* Base styling for category cards */
.category-card {
    text-align: center;
    background: var(--pure-white);
    padding: 25px 20px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(201, 169, 97, 0.1);
    position: relative;

    /* Flexbox for consistent card structure */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

/* Icon container - Removed: Icons replaced with background images */

/* Enhanced Category Styling */
.enhanced-category {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(201, 169, 97, 0.1);
    background: var(--pure-white);
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.enhanced-category:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15), 0 8px 25px rgba(201, 169, 97, 0.2);
    border-color: var(--primary-gold);
}

/* Background Image Container */
.category-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Background image placeholders for different categories */
.enhanced-category[data-bg="feathers"] .category-bg-image {
    background: linear-gradient(135deg,
        rgba(201, 169, 97, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(201, 169, 97, 0.08) 50%,
        rgba(240, 240, 240, 0.1) 75%,
        rgba(201, 169, 97, 0.12) 100%);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.8) 2px, transparent 2px),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.7) 1.5px, transparent 1.5px);
}

.enhanced-category[data-bg="fabrics"] .category-bg-image {
    background: linear-gradient(45deg,
        rgba(100, 100, 100, 0.1) 0%,
        rgba(150, 150, 150, 0.08) 25%,
        rgba(120, 120, 120, 0.12) 50%,
        rgba(180, 180, 180, 0.1) 75%,
        rgba(140, 140, 140, 0.15) 100%);
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.1) 10px, rgba(255, 255, 255, 0.1) 11px),
        repeating-linear-gradient(-45deg, transparent, transparent 8px, rgba(255, 255, 255, 0.08) 8px, rgba(255, 255, 255, 0.08) 9px);
}

.enhanced-category[data-bg="comfort"] .category-bg-image {
    background: linear-gradient(135deg,
        rgba(201, 169, 97, 0.08) 0%,
        rgba(220, 220, 220, 0.1) 25%,
        rgba(201, 169, 97, 0.12) 50%,
        rgba(240, 240, 240, 0.08) 75%,
        rgba(201, 169, 97, 0.1) 100%);
    background-image:
        radial-gradient(ellipse at 30% 40%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
}

/* Background Overlay */
.category-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 30%,
        rgba(255, 255, 255, 0.8) 70%,
        rgba(255, 255, 255, 0.95) 100%);
    z-index: 2;
}

/* Category Content */
.category-content {
    position: relative;
    z-index: 3;
    padding: 100px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Category Numbers */
.category-number {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    color: var(--deep-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    font-family: var(--font-primary);
    box-shadow: 0 3px 10px rgba(201, 169, 97, 0.3);
    z-index: 4;
}

/* Category title */
.category-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--deep-black);
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    flex-shrink: 0;
    text-align: center;
}

/* Category description */
.category-card p {
    color: var(--grey-medium);
    line-height: 1.4;
    font-size: 12px;
    margin: 0 0 12px 0;
    flex-grow: 1;
    text-align: center;
}

/* Horizontal compact grid for Product Categories */
.product-categories-grid {
    display: grid;
    gap: 25px;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* Desktop layout - tight horizontal layout */
@media (min-width: 1200px) {
    .product-categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .category-card {
        padding: 30px 25px;
        min-height: 220px;
    }

    .category-card .category-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .category-card h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .category-card p {
        font-size: 14px;
    }
}

/* Large desktop - even more compact */
@media (min-width: 1400px) {
    .product-categories-grid {
        gap: 35px;
    }
}

/* Desktop/laptop layout */
@media (min-width: 992px) and (max-width: 1199px) {
    .product-categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .category-card {
        padding: 28px 22px;
        min-height: 200px;
    }

    .category-card .category-icon {
        width: 65px;
        height: 65px;
        font-size: 1.7rem;
        margin-bottom: 20px;
    }

    .category-card h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .category-card p {
        font-size: 13px;
    }
}

/* Tablet layout - still horizontal but more breathing room */
@media (min-width: 768px) and (max-width: 991px) {
    .product-categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .category-card {
        padding: 25px 18px;
        min-height: 180px;
    }

    .category-card .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
        margin-bottom: 18px;
    }

    .category-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .category-card p {
        font-size: 12px;
        line-height: 1.4;
    }
}

/* Small tablet - 2 columns */
@media (min-width: 600px) and (max-width: 767px) {
    .product-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .category-card {
        padding: 25px 20px;
        min-height: 200px;
    }

    .category-card .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
        margin-bottom: 18px;
    }

    .category-card h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .category-card p {
        font-size: 13px;
        line-height: 1.5;
    }
}

/* Mobile layout - single column stack */
@media (max-width: 599px) {
    .product-categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-card {
        padding: 30px 25px;
        /* Remove min-height on mobile for natural flow */
        min-height: auto;
    }

    .category-card .category-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .category-card h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .category-card p {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
    .product-categories-grid {
        gap: 15px;
    }

    .category-card {
        padding: 25px 20px;
    }

    .category-card .category-icon {
        width: 65px;
        height: 65px;
        font-size: 1.7rem;
        margin-bottom: 18px;
    }

    .category-card h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .category-card p {
        font-size: 13px;
    }
}
/* Feature Tags */
.category-features {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin-bottom: 10px;
    z-index: 2;
    position: relative;
}

.feature-tag {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    color: var(--deep-black);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: 0 2px 6px rgba(201, 169, 97, 0.25);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.35);
}

/* Category Overlay */
.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.92) 0%, rgba(26, 26, 26, 0.95) 100%);
    color: var(--pure-white);
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    z-index: 10;
    border-radius: inherit;
}

.enhanced-category:hover .category-overlay {
    opacity: 1;
    transform: translateY(0);
}

.overlay-content {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
}

.enhanced-category:hover .overlay-content {
    opacity: 1;
    transform: translateY(0);
}


.overlay-content h4 {
    color: var(--primary-gold);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-family: var(--font-primary);
    font-weight: 700;
}

.overlay-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.overlay-content li {
    color: var(--light-gold);
    font-size: 14px;
    line-height: 1.8;
    padding: 3px 0;
    font-weight: 500;
}

.overlay-content li:hover {
    color: var(--pure-white);
    transform: translateX(5px);
    transition: all 0.2s ease;
}
