/* ============================================
   SONAARAN — Category / Shop Page CSS
   ============================================ */

/* Category Hero */
.cat-hero { position: relative; min-height: 260px; overflow: hidden; display: flex; align-items: flex-end; padding-bottom: 36px; background: linear-gradient(135deg, #1A0E04, #2C1A08); background-size: cover; background-position: center; }
.cat-hero-overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(26,26,26,0.75) 0%, rgba(26,26,26,0.3) 60%, transparent 100%); }
.cat-hero-inner { position: relative; z-index: 2; }
.cat-hero-title { font-family: var(--font-heading); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; color: var(--white); margin-bottom: 8px; }
.cat-hero-desc { font-size: 15px; color: rgba(255,255,255,0.8); max-width: 500px; }

/* Filter Bar */
.filter-bar { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: calc(var(--header-height) + 48px); z-index: 90; }
.filter-bar-inner { display: flex; align-items: center; gap: 16px; height: 56px; overflow-x: auto; scrollbar-width: none; }
.filter-bar-inner::-webkit-scrollbar { display: none; }
.filter-count { font-size: 13px; color: var(--text-light); white-space: nowrap; flex-shrink: 0; }
.filter-chip { padding: 6px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-full); font-size: 13px; font-weight: 500; color: var(--text-mid); white-space: nowrap; transition: var(--transition); flex-shrink: 0; }
.filter-chip:hover { border-color: var(--gold); color: var(--gold); }
.filter-chip.active { background: var(--gold); border-color: var(--gold); color: var(--white); }
.filter-sort { flex-shrink: 0; }
.filter-mobile-btn { display: none; align-items: center; gap: 6px; padding: 8px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-full); font-size: 13px; font-weight: 600; color: var(--text-dark); white-space: nowrap; transition: var(--transition); }
.filter-mobile-btn:hover { border-color: var(--gold); color: var(--gold); }

/* Category Layout */
.cat-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 32px 0 64px; align-items: flex-start; }

/* Filter Sidebar */
.filter-sidebar { position: sticky; top: calc(var(--header-height) + 48px + 56px + 16px); background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius-md); overflow: hidden; }
.filter-sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border-light); }
.filter-sidebar-header h3 { font-size: 15px; font-weight: 700; font-family: var(--font-body); }
.filter-group { border-bottom: 1px solid var(--border-light); padding: 16px 20px; }
.filter-group:last-child { border-bottom: none; }
.filter-group-title { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-dark); margin-bottom: 12px; }
.filter-option { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; color: var(--text-mid); padding: 4px 0; transition: color 0.2s; }
.filter-option:hover { color: var(--gold); }
.filter-option input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; flex-shrink: 0; }

/* Product Grid */
.cat-product-area { }
.cat-product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-product-grid .product-card { width: 100%; }

/* No Results */
.woocommerce-no-products-found { text-align: center; padding: 60px 20px; }
.woocommerce-no-products-found h2 { font-family: var(--font-heading); font-size: 1.75rem; margin-bottom: 12px; }
.woocommerce-no-products-found p { color: var(--text-light); margin-bottom: 24px; }

/* Mobile Filter Panel */
.mobile-filter-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1098; opacity: 0; pointer-events: none; transition: opacity var(--transition); }
.mobile-filter-overlay.show { opacity: 1; pointer-events: all; }
.mobile-filter-panel { position: fixed; bottom: -100%; left: 0; right: 0; background: var(--white); border-radius: var(--radius-lg) var(--radius-lg) 0 0; z-index: 1099; max-height: 85vh; overflow-y: auto; transition: bottom var(--transition-slow); }
.mobile-filter-panel.open { bottom: 0; }
.mobile-filter-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--white); z-index: 1; }
.mobile-filter-header h3 { font-size: 16px; font-weight: 700; font-family: var(--font-body); }

/* Responsive */
@media (max-width: 1024px) {
  .cat-layout { grid-template-columns: 220px 1fr; gap: 24px; }
  .filter-bar { top: var(--header-height); }
  .filter-sidebar { top: calc(var(--header-height) + 56px + 16px); }
}

@media (max-width: 768px) {
  .cat-layout { grid-template-columns: 1fr; }
  .filter-sidebar { display: none; }
  .cat-product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-hero { min-height: 180px; padding-bottom: 24px; }
  .cat-hero-title { font-size: 1.5rem; }
  .filter-bar { top: 58px; }
  .filter-mobile-btn { display: flex; }
}

@media (max-width: 480px) {
  .cat-product-grid { gap: 10px; }
  .filter-bar-inner { gap: 10px; }
}
