.submenu-toggle {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  font-weight:500;
}

.submenu-toggle:hover {
    color: var(--primary-blue);
}

/* Featured Products Section */
.featured-section {
    padding: 4rem 1rem;
    background: var(--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: var(--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%;
    max-width: 200px;
    max-height: 220px;
    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: var(--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: var(--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: var(--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: var(--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: var(--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;
    text-decoration: none;
}

.product-description {
    font-size: 0.9rem;
    color: var(--black);
    margin: 0 0 0.5rem 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: 0.5rem;
    border-top: 1px solid var(--gray-100);
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--black);
}

.product-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.product-btn:hover {
    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;
    }
}

/* ---- Cart ---- */
#cart-window {
  position: fixed;
  right: 0;
  top: 0;
  width: 320px;
  height: 100%;
  background: var(--white);
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 9999;
  padding: 1rem;
  overflow-y: auto;
}
#cart-window.open { transform: translateX(0); }
#cart-items { display: flex; flex-direction: column; gap: 10px; margin: 1rem 0; }
.cart-item { display: flex; align-items: center; gap: 10px; }
.cart-item img { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; }
.cart-item-details { flex: 1; }
.remove { background: none; border: none; color: red; font-weight: bold; cursor: pointer; }
.checkout-btn {
  display: block;
  text-align: center;
  background: var(--black);
  color: var(--white);
  padding: 0.7rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

.cart-badge {
  display: none;              /* hidden when 0 items */
  background: red;
  color: var(--white);
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  vertical-align: top;
  margin-left: 4px;
  font-weight: bold;
}


/* ---- Enhanced Hero (overrides/extends your styles.css hero) ---- */
.hero-enhanced {
    position: relative;
    margin-left: 7rem;
    margin-right: 7rem;
    border-radius: 16px;
    background-color: var(--primary-blue);
    height: 60vh;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    z-index: 1;
    padding: 2rem 1rem;
    pointer-events: auto;
}

.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: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: visible;
    background-color: transparent;
}

.hero-enhanced .hero-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-enhanced .hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-enhanced .hero-visual img {
    width: 100%;
    height: auto;
    border-radius: 8px; /* optional, softens image edges */
}

.hero-text h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.06;
}
.hero-text p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.hero-actions { display:flex; gap:1rem; flex-wrap:wrap; }
.hero-btn-primary {
    background: var(--black);
    color: var(--white);
    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: var(--black);
    color: var(--white);
    padding: 0.9rem 1.6rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display:inline-flex;
    align-items:center;
    gap:0.5rem;
}
.hero-btn-secondary:hover { transform: translateY(-3px);}
.hero-stats { display:flex; gap:1.5rem; margin-top:1.25rem; flex-wrap:wrap; }
.stat-item { display:flex; flex-direction:column; color: var(--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: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: none;
    border: none;
    backdrop-filter: none;
}
.hero-visual-placeholder img { 
    width: 100%;
    height: auto;
    object-fit: contain; /* or cover, depending on layout */
    border-radius: 14px;
}

/* ---- Category Carousel Section ---- */
.category-carousel-section { 
    padding: 3.5rem 1rem; 
    background: var(--gray-50); 
    position: relative;
    z-index: 3; /* above hero content (z-index: 2) */
}

.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:var(--white); border:1px solid var(--gray-300);
    display:flex; align-items:center; justify-content:center; cursor:pointer;
    transition: all .14s ease;
    position: relative;
    z-index: 5;
}
.carousel-btn:hover:not(:disabled) { background:var(--primary-blue); color:var(--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; 
    overflow-x: auto;       /* allow scrolling */
    scroll-behavior: smooth;
}

.category-carousel {
    position: relative;
    overflow: hidden; /* hide native scrollbar */
    padding-bottom: 0.5rem;
}

/* Hide scrollbar for all browsers */
.category-carousel::-webkit-scrollbar {
    display: none;
}
.category-carousel {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
}

.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: var(--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;
        padding-left: 1rem;
        padding-left: 1rem;
        margin-left: 1rem;
        margin-right: 1rem;
    }
}
@media (max-width: 480px) {
    .category-item { flex: 0 0 140px; min-height:120px; }
}