/* =================================================================
   VAMPIRES INDUSTRY - SUBCATEGORY PAGE STYLES
   Matching main category page styling with slight variations
   ================================================================= */

/* Hero Section - Matching Main Category Page
   ================================================================= */
.product-category-archive .category-hero-section {
    position: relative;
    min-height: 500px; /* Same as main category */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    overflow: hidden;
}

/* Animated background pattern - Same as main category */
.category-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    animation: heroFloat 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 20px) scale(1.1); }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.95) 0%, rgba(107, 114, 128, 0.9) 100%);
    z-index: 1;
}

.product-category-archive .hero-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.product-category-archive .hero-content {
    position: relative;
    z-index: 3;
    text-align: center !important;
    color: var(--text-light);
    max-width: 1600px;
    margin: 0 auto !important;
    padding: 80px 40px;
    width: 100%;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Breadcrumb - Same as main category */
.product-category-archive .breadcrumb {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px;
    margin-bottom: 20px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    font-size: 0.9rem;
    animation: fadeIn 1s ease-out;
    width: auto !important;
    text-align: center !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.breadcrumb a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-light);
    transition: width 0.3s;
}

.breadcrumb a:hover::after {
    width: 100%;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb .separator {
    color: var(--text-light);
    opacity: 0.5;
}

.breadcrumb .current {
    opacity: 0.8;
    font-weight: 500;
}

/* Hero Title - Same animation as main */
.category-hero-section .hero-title {
    font-size: 3.5rem; /* Same as main category */
    font-weight: 700;
    margin-bottom: 20px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    animation: backInUp 1.2s ease-out 0.4s both;
    position: relative;
    display: inline-block;
    width: 100% !important;
    text-align: center !important;
}

@keyframes backInUp {
    0% {
        transform: translateY(1200px) scale(0.7);
        opacity: 0.7;
    }
    80% {
        transform: translateY(0px) scale(0.7);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Hero Description */
.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.6s both;
    max-width: 700px;
    width: 100% !important;
    opacity: 0.9;
    margin: 0 auto 30px !important;
    text-align: center !important;
}

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

/* Hero Category Info Section - Same as main category */
.product-category-archive .hero-category-info {
    display: flex !important;
    justify-content: center !important;
    align-items: stretch !important; /* Changed to stretch for equal heights */
    gap: 20px; /* Reduced gap */
    margin-bottom: 40px;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
    max-width: 1400px; /* Wider container for 3 items */
    padding: 0 20px;
}

.category-info-item {
    display: flex;
    gap: 15px; /* Reduced gap */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px; /* Reduced padding */
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    animation: fadeInScale 1s ease-out 0.3s both;
    flex: 1; /* Equal width for all cards */
    min-width: 0; /* Allow shrinking */
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.custom-apparel-info {
    animation-delay: 0.3s;
}

.team-apparel-info {
    animation-delay: 0.3s;
}

.category-info-item:nth-child(3) {
    animation-delay: 0.5s;
}

.category-info-item:nth-child(5) {
    animation-delay: 0.7s;
}

.category-info-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.info-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.info-icon i {
    font-size: 1.3rem;
    color: var(--text-light);
}

.category-info-item:hover .info-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(10deg);
}

.info-content {
    flex: 1;
    min-width: 0; /* Allow text to wrap properly */
}

.info-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
}

.info-separator {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent);
    flex-shrink: 0;
    align-self: center;
}

/* Scroll Down Indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeIn 1s ease-out 1s both;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-down-indicator:hover {
    transform: translateX(-50%) translateY(5px);
}

.scroll-text {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    font-weight: 500;
}

.scroll-arrow {
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(10px);
    }
    60% {
        transform: translateY(5px);
    }
}


/* Subcategories Section - Premium Design
   ================================================================= */
.subcategories-section {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Dynamic background pattern */
.subcategories-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(55, 65, 81, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(107, 114, 128, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(55, 65, 81, 0.02) 0%, transparent 50%);
    z-index: 0;
}

.subcategories-section .container {
    position: relative;
    z-index: 1;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.subcategories-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.subcategories-section .section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.subcategories-section .section-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 60px;
    width: 100%;
}

/* Premium Subcategory Cards */
.subcategory-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 260px;
    position: relative;
    isolation: isolate;
    transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
}

.subcategory-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 18px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.subcategory-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.subcategory-card:hover::before {
    opacity: 1;
}

.subcategory-image {
    position: relative;
    width: 260px;
    height: 260px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f2f5 0%, #e8eaed 100%);
    flex-shrink: 0;
}

.subcategory-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.subcategory-card:hover .subcategory-image img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Dynamic gradient overlay */
.subcategory-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(55, 65, 81, 0.2) 0%, 
        rgba(107, 114, 128, 0.1) 50%,
        rgba(55, 65, 81, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    mix-blend-mode: multiply;
}

.subcategory-card:hover .subcategory-image::after {
    opacity: 1;
}

/* Ensure square aspect ratio for images */
.subcategory-img {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    min-width: 100% !important;
    min-height: 100% !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
}

/* Visual badge */
.subcategory-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: all 0.3s ease;
}

.subcategory-card:hover .subcategory-badge {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Enhanced placeholder */
.subcategory-image .placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    height: 260px;
    background: linear-gradient(135deg, 
        #e5e7eb 0%, 
        #f3f4f6 50%, 
        #e5e7eb 100%);
    position: relative;
    overflow: hidden;
}

.subcategory-image .placeholder-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 70%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.subcategory-image .placeholder-image i {
    font-size: 2.5rem;
    opacity: 0.2;
    color: #6b7280;
    z-index: 1;
}

.subcategory-info {
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

/* Category header with icon */
.subcategory-header {
    margin-bottom: 20px;
}

.subcategory-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.4s ease;
    position: relative;
}

.subcategory-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    opacity: 0.3;
    transform: scale(1.2);
    transition: transform 0.4s ease;
    z-index: -1;
}

.subcategory-card:hover .subcategory-icon {
    transform: rotate(10deg) scale(1.1);
}

.subcategory-card:hover .subcategory-icon::after {
    transform: scale(1.5);
    opacity: 0.1;
}

.subcategory-icon i {
    font-size: 1.3rem;
    color: white;
}

.subcategory-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
    transition: color 0.3s ease;
    line-height: 1.2;
}

/* Keep text sharp on hover */
.subcategory-card:hover .subcategory-info {
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
}

.subcategory-card:hover .subcategory-info * {
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.subcategory-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Stats section */
.subcategory-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.stat-box {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.subcategory-card:hover .stat-number {
    transform: scale(1.1);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Features list */
.subcategory-features {
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.feature-item i {
    color: var(--primary);
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Action button */
.subcategory-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.view-products-btn {
    flex: 1;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.view-products-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.view-products-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.view-products-btn:hover::before {
    width: 300px;
    height: 300px;
}

.view-products-btn i {
    transition: transform 0.3s ease;
}

.view-products-btn:hover i {
    transform: translateX(3px);
}

.quick-info-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.quick-info-btn:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

/* Products Section - Matching Featured Products from Main Category
   ================================================================= */
.products-archive-section {
    padding: 80px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

/* Add subtle background pattern - Same as featured products */
.products-archive-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(55, 65, 81, 0.03) 0%, transparent 70%);
    animation: pulsePattern 15s ease-in-out infinite;
}

@keyframes pulsePattern {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.3; }
}

.products-archive-section .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

/* Products Header */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.products-header .section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.highlight {
    color: var(--primary);
}

/* Products Controls */
.products-controls {
    display: flex;
    gap: 20px;
    align-items: center;
}

.products-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-primary);
    cursor: pointer;
}


/* Products Grid - Same as featured products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1520px;
    margin: 0 auto;
}

/* Product Cards - Exact same as featured products */
.products-archive-section .product-card {
    background: var(--bg-primary);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Stagger animation for each card */
.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }

.products-archive-section .product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.products-archive-section .product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(55, 65, 81, 0.1);
}

.products-archive-section .product-card:hover::before {
    opacity: 1;
}

.product-link {
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Product Image - Same as featured products */
.products-archive-section .product-image {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 1/1 !important;
    overflow: hidden !important;
    background: var(--bg-secondary) !important;
}

.products-archive-section .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.products-archive-section .product-card:hover .product-image img {
    transform: scale(1.1);
}

/* Gradient overlay on product images */
.products-archive-section .product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.3) 0%, rgba(107, 114, 128, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.products-archive-section .product-card:hover .product-image::after {
    opacity: 1;
}

/* Product Overlay - Same as featured products */
.products-archive-section .product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.products-archive-section .product-card:hover .product-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* Quick View Button - Same as featured products */
.quick-view-btn {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    border: 2px solid transparent;
    padding: 14px 35px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    transform: translateY(30px) scale(0.9);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.quick-view-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.products-archive-section .product-card:hover .quick-view-btn {
    transform: translateY(0) scale(1);
}

.quick-view-btn:hover {
    background: var(--primary);
    color: white !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

.quick-view-btn:hover::before {
    width: 300%;
    height: 300%;
}

.quick-view-btn i {
    margin-right: 8px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.quick-view-btn:hover i {
    transform: scale(1.2) rotate(15deg);
    color: white !important;
}

/* Product SKU Badge */
.product-sku {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 3;
}

/* Product Info - Same as featured products */
.products-archive-section .product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.products-archive-section .product-title {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    color: var(--text-dark);
    line-height: 1.3 !important;
    transition: color 0.3s ease;
    letter-spacing: -0.2px;
    margin-top: 0 !important;
    text-align: center !important;
}

.products-archive-section .product-card:hover .product-title {
    color: var(--primary) !important;
}

/* Product Price - Same format as featured products */
.products-archive-section .product-price {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
    margin-top: auto;
    text-align: center;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.products-archive-section .product-price::before {
    content: 'Price Range:';
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Product Meta */
.product-meta {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.meta-item i {
    color: var(--primary);
    font-size: 0.85rem;
}

/* Product Excerpt */
.product-excerpt {
    display: none; /* Hidden in grid view to match featured products */
}

/* Product Actions */
.products-archive-section .product-actions {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.btn-view-details,
.btn-get-quote {
    flex: 1;
    padding: 8px 12px;
    text-align: center;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    border: none;
}

.btn-view-details {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-view-details:hover {
    background: var(--primary);
    color: var(--text-light);
}

.btn-get-quote {
    background: var(--primary);
    color: var(--text-light);
}

.btn-get-quote:hover {
    background: var(--secondary);
}


/* No Products */
.no-products {
    text-align: center;
    padding: 80px 20px;
}

.no-products i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.3;
}

.no-products h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.no-products p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* View More Button Container */
.view-more-container {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
}

.view-more-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.view-more-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.view-more-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.view-more-btn:hover::before {
    width: 300px;
    height: 300px;
}

.view-more-btn i {
    transition: transform 0.3s ease;
}

.view-more-btn.expanded i {
    transform: rotate(180deg);
}

/* Initially hide products beyond 3 rows - Using nth-child for better compatibility */
.products-grid .product-card:nth-child(n+13) {
    display: none;
}

/* Show all products when expanded */
.products-grid.expanded .product-card {
    display: block !important;
}

/* Animate newly visible products */
.products-grid.expanded .product-card:nth-child(n+13) {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Pagination */
.products-pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

/* CTA Section - Same as main category
   ================================================================= */
.category-cta-section {
    padding: 80px 0;
    background: var(--primary);
    color: var(--text-light);
    text-align: center;
}

.category-cta-section .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.category-cta-section .btn-primary,
.category-cta-section .btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.category-cta-section .btn-primary {
    background: var(--text-light);
    color: var(--primary);
}

.category-cta-section .btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.category-cta-section .btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.category-cta-section .btn-secondary:hover {
    background: var(--text-light);
    color: var(--primary);
}

/* Modal Styles
   ================================================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--bg-primary);
    margin: 50px auto;
    padding: 40px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--text-dark);
}

/* Responsive Design
   ================================================================= */
@media (max-width: 1600px) {
    .subcategories-section .container,
    .products-archive-section .container,
    .category-cta-section .container {
        padding: 0 30px;
    }
}

@media (max-width: 1400px) {
    .subcategory-card {
        grid-template-columns: 240px 1fr;
        min-height: 240px;
    }
    
    .subcategory-image,
    .subcategory-image .placeholder-image {
        width: 240px;
        height: 240px;
    }
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    /* Hide products beyond 3 rows (3 columns × 3 rows = 9) */
    .products-grid .product-card:nth-child(n+10) {
        display: none;
    }
    
    /* Animate newly visible products when expanded */
    .products-grid.expanded .product-card:nth-child(n+10) {
        animation: fadeInUp 0.6s ease-out forwards;
    }
    
    .products-archive-section .container {
        padding: 0 20px;
    }
    
    .hero-category-info {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .category-info-item {
        flex: 0 1 calc(50% - 10px);
    }
    
    .info-separator:nth-child(2) {
        display: none;
    }
    
    .subcategories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .subcategory-card {
        grid-template-columns: 200px 1fr;
        min-height: 200px;
    }
    
    .subcategory-image,
    .subcategory-image .placeholder-image {
        width: 200px;
        height: 200px;
    }
    
    .subcategory-info {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Hide products beyond 3 rows (2 columns × 3 rows = 6) */
    .products-grid .product-card:nth-child(n+7) {
        display: none;
    }
    
    /* Animate newly visible products when expanded */
    .products-grid.expanded .product-card:nth-child(n+7) {
        animation: fadeInUp 0.6s ease-out forwards;
    }
    
    .category-hero-section {
        min-height: 350px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-category-info {
        flex-direction: column;
        gap: 20px;
    }
    
    .info-separator {
        display: none;
    }
    
    .category-info-item {
        padding: 20px;
        max-width: 100%;
        width: 100%;
    }
    
    .products-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .products-controls {
        justify-content: space-between;
    }
    
    .subcategories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .subcategory-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .subcategory-image,
    .subcategory-image .placeholder-image {
        width: 100%;
        height: 200px;
        border-radius: 16px 16px 0 0;
    }
    
    .subcategory-info {
        padding: 25px 20px;
    }
    
    .subcategory-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .subcategory-badge {
        padding: 5px 10px;
        font-size: 0.65rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-view-details,
    .btn-get-quote {
        width: 100%;
    }
    
    .subcategory-image,
    .subcategory-image .placeholder-image {
        height: 180px;
    }
    
    .subcategory-info {
        padding: 20px 15px;
    }
    
    .subcategory-icon {
        width: 35px;
        height: 35px;
        margin-bottom: 12px;
    }
    
    .subcategory-icon i {
        font-size: 1rem;
    }
    
    .subcategory-info h3 {
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
}