/* Featured Products Section */
.featured-section {
    padding: 4rem 1rem;
    background: white;
}

.featured-header {
    text-align: center;
    margin-bottom: 3rem;
}

.featured-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.featured-header p {
    font-size: 1.1rem;
    color: var(--gray-600);
}

/* Product Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-blue);
}

/* Product Image */
.product-image {
    position: relative;
    width: 100%;
    height: 220px;
    background: var(--gray-50);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
}

        /* Featured Products Carousel Section */
.featured-section {
    padding: 4rem 1rem;
    background: white;
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.featured-header-text {
    flex: 1;
}

.featured-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.5rem 0;
}

.featured-header p {
    font-size: 1rem;
    color: var(--gray-600);
    margin: 0;
}

/* Carousel controls (same as category carousel) */
.carousel-controls {
    display: flex;
    gap: 0.5rem;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.14s ease;
}

.carousel-btn:hover:not(:disabled) {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.carousel-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

/* Product Carousel Container */
.product-carousel-wrapper {
    max-width: 1280px;
    margin: 0 auto;
}

.product-carousel {
    position: relative;
    overflow: hidden;
    padding-bottom: 0.5rem;
}

.product-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.35s cubic-bezier(0.22, 0.9, 0.29, 1);
    will-change: transform;
    padding-bottom: 8px;
}

/* Product Card in Carousel */
.product-card {
    flex: 0 0 300px;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
}

.product-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-blue);
}

/* Product Image */
.product-image {
    position: relative;
    width: 100%;
    height: 220px;
    background: var(--gray-50);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-blue);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Product Info */
.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.product-description {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 0 0 1rem 0;
    line-height: 1.5;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product Footer */
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.product-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.product-btn:hover {
    background: var(--blue-600);
    transform: translateX(4px);
}

.product-btn .material-symbols-outlined {
    font-size: 18px;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: all 0.18s ease;
}

.dot.active {
    background: var(--primary-blue);
    width: 22px;
    border-radius: 4px;
}

/* Loading and Empty States */
.loading-state,
.empty-state,
.error-state {
    text-align: center;
    padding: 3rem;
    color: var(--gray-600);
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .featured-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-card {
        flex: 0 0 280px;
    }
}

@media (max-width: 600px) {
    .featured-header h3 {
        font-size: 1.5rem;
    }
    
    .product-card {
        flex: 0 0 260px;
    }
    
    .product-image {
        height: 180px;
    }
}

/* ---- Enhanced Hero (overrides/extends your styles.css hero) ---- */
.hero-enhanced {
    position: relative;
    height: 60vh;
    min-height: 380px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--blue-600) 100%);
    overflow: hidden;
    padding: 2rem 1rem;
}
.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image:
      repeating-linear-gradient(45deg, transparent, transparent 36px, rgba(255,255,255,.06) 36px, rgba(255,255,255,.06) 72px);
    pointer-events: none;
}
.hero-enhanced .hero-content {
    max-width: 1280px;
    margin: 0 auto;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    width: 100%;
    padding: 1rem;
}
.hero-text h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.06;
}
.hero-text p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.92);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.hero-actions { display:flex; gap:1rem; flex-wrap:wrap; }
.hero-btn-primary {
    background: white;
    color: var(--primary-blue);
    padding: 0.9rem 1.6rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display:inline-flex;
    align-items:center;
    gap:0.5rem;
    transition: transform .18s ease, box-shadow .18s ease;
}
.hero-btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.hero-btn-secondary {
    background: transparent;
    color: white;
    padding: 0.9rem 1.6rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.18);
    display:inline-flex;
    align-items:center;
    gap:0.5rem;
}
.hero-btn-secondary:hover { transform: translateY(-3px); background: rgba(255,255,255,0.06); }
.hero-stats { display:flex; gap:1.5rem; margin-top:1.25rem; flex-wrap:wrap; }
.stat-item { display:flex; flex-direction:column; color:white; }
.stat-number { font-size:1.6rem; font-weight:700; }
.stat-label { font-size:0.85rem; opacity:0.9; }

.hero-visual { display:flex; align-items:center; justify-content:center; }
.hero-visual-placeholder {
    width:100%;
    max-width:520px;
    height:320px;
    background: rgba(255,255,255,0.07);
    border-radius: 14px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.08);
    display:flex;
    align-items:center;
    justify-content:center;
    color: white;
    padding: 1rem;
    text-align:center;
}
.hero-visual-placeholder img { max-width:100%; max-height:100%; object-fit:cover; border-radius:10px; }

/* ---- Category Carousel Section ---- */
.category-carousel-section { padding: 3.5rem 1rem; background: var(--gray-50); }
.category-carousel-container { max-width:1280px; margin:0 auto; }
.carousel-header { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-bottom:1.25rem; }
.carousel-header h3 { font-size:1.8rem; font-weight:700; color:var(--gray-900); margin:0; }
.carousel-controls { display:flex; gap:0.5rem; }

.carousel-btn {
    width:44px; height:44px; border-radius:50%;
    background:white; border:1px solid var(--gray-300);
    display:flex; align-items:center; justify-content:center; cursor:pointer;
    transition: all .14s ease;
}
.carousel-btn:hover:not(:disabled) { background:var(--primary-blue); color:white; border-color:var(--primary-blue); transform:translateY(-2px); }
.carousel-btn:disabled { opacity:.35; cursor:not-allowed; transform:none; }

.category-carousel { position:relative; overflow:hidden; padding-bottom:0.5rem; }
.category-track { display:flex; gap:1.5rem; transition: transform .35s cubic-bezier(.22,.9,.29,1); will-change: transform; padding-bottom:8px; }
.category-item {
    flex: 0 0 180px;
    background: white;
    border-radius: 12px;
    padding: 1.25rem 1rem;
    text-align: center;
    color: inherit;
    border: 1px solid var(--gray-200);
    display:flex; flex-direction:column; gap:.5rem; align-items:center; justify-content:center;
    min-height:140px;
}
.category-item img { width:48px; height:48px; object-fit:contain; margin-bottom:.6rem; }
.category-item h5 { font-size:0.9rem; font-weight:600; margin:0; color:var(--gray-900); line-height:1.2; }
.category-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-blue); }

/* Dots */
.carousel-dots { display:flex; justify-content:center; gap:.5rem; margin-top:1.25rem; }
.dot { width:8px; height:8px; border-radius:50%; background:var(--gray-300); cursor:pointer; transition:all .18s ease; }
.dot.active { background: var(--primary-blue); width:22px; border-radius:4px; }

/* Responsive */
@media (max-width: 900px) {
    .hero-enhanced .hero-content { grid-template-columns: 1fr; text-align:center; padding: .5rem; }
    .hero-visual { display:none; }
    .hero-enhanced { height: auto; padding-top:2.5rem; padding-bottom:2.5rem; }
}
@media (max-width: 480px) {
    .category-item { flex: 0 0 140px; min-height:120px; }
}