/* ============================================================
   Tatva Trade — Design System
   Colours: #033E58 (primary navy), #519A9F (teal), #FAF9F4 (cream)
   ============================================================ */

/* ── CSS VARIABLES ── */
:root {
  --primary:       #033E58;
  --primary-dark:  #022b3f;
  --primary-light: #0a5a7a;
  --accent:        #519A9F;
  --accent-dark:   #3d7d82;
  --accent-light:  #7abbc0;
  --bg:            #FAF9F4;
  --bg-alt:        #f0eeea;
  --bg-dark:       #e8e5de;
  --text:          #1C2B36;
  --text-muted:    #5a6e7a;
  --text-light:    #8a9eaa;
  --white:         #ffffff;
  --border:        #dde3e7;
  --border-light:  #edf0f2;
  --success:       #22c55e;
  --warning:       #f59e0b;
  --error:         #ef4444;
  --whatsapp:      #25D366;

  --shadow-sm:  0 1px 3px rgba(3,62,88,.08);
  --shadow-md:  0 4px 16px rgba(3,62,88,.12);
  --shadow-lg:  0 8px 32px rgba(3,62,88,.16);
  --shadow-xl:  0 16px 48px rgba(3,62,88,.20);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;

  --transition: 0.25s ease;
  --font-head:  'Plus Jakarta Sans', sans-serif;
  --font-body:  'Inter', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── LAYOUT ── */
#main-content { display: flow-root; } /* prevents margin-collapse bleed-through */
.container { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.row { display: flex; flex-wrap: wrap; gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; color: var(--primary); }
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* ── SECTION HEADINGS ── */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header .eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
  padding: 4px 14px; background: rgba(81,154,159,.12); border-radius: var(--radius-full);
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-size: .925rem; font-weight: 600;
  transition: all var(--transition); cursor: pointer; border: 2px solid transparent;
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: var(--white); color: var(--primary); }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); border-color: var(--whatsapp); font-size: 1rem; padding: 14px 28px; }
.btn-whatsapp:hover { background: #1da851; border-color: #1da851; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,.35); }
.btn-request { background: var(--primary); color: var(--white); border-color: var(--primary); font-size: 1rem; padding: 14px 28px; }
.btn-request:hover { background: var(--primary-light); border-color: var(--primary-light); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-lg { padding: 15px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: .75rem; font-weight: 600; letter-spacing: .03em;
}
.badge-primary { background: rgba(3,62,88,.1); color: var(--primary); }
.badge-accent { background: rgba(81,154,159,.15); color: var(--accent-dark); }
.badge-success { background: rgba(34,197,94,.12); color: #15803d; }
.badge-warning { background: rgba(245,158,11,.12); color: #b45309; }

/* ── TOPBAR ── */
.topbar {
  background: var(--primary);
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  padding: 7px 0;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar-left span, .topbar-right a { display: flex; align-items: center; gap: 6px; transition: color var(--transition); }
.topbar-right a:hover { color: var(--white); }
.topbar-register { background: var(--accent); color: var(--white) !important; padding: 3px 12px; border-radius: var(--radius-full); }
.topbar-register:hover { background: var(--accent-dark) !important; }

/* ── MAIN HEADER ── */
.main-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-md);
  padding: 12px 0;
}
.header-inner { display: flex; align-items: center; gap: 20px; }
.header-logo img { height: 54px; width: auto; }
.header-logo:hover img { opacity: .9; }

/* Search Bar */
.header-search {
  flex: 1; display: flex; align-items: center;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); overflow: hidden; position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.header-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(81,154,159,.15); }
.search-category-wrap { display: flex; align-items: center; flex-shrink: 0; }
.search-category-wrap select {
  border: none; outline: none; background: var(--bg-alt);
  padding: 0 14px; height: 44px; font-size: .82rem;
  color: var(--text); cursor: pointer; min-width: 140px; max-width: 170px;
  font-family: var(--font-body);
}
.search-divider { width: 1px; height: 26px; background: var(--border); }
.header-search input[type="search"] {
  flex: 1; border: none; outline: none; padding: 0 16px;
  font-size: .925rem; color: var(--text); background: transparent;
  min-width: 0;
}
.header-search input::placeholder { color: var(--text-light); }
.search-btn {
  background: var(--accent); color: var(--white);
  padding: 0 20px; height: 44px; font-size: 1rem;
  transition: background var(--transition);
  border-left: 1px solid var(--accent-dark);
}
.search-btn:hover { background: var(--accent-dark); }

/* Search Suggestions */
.search-suggestions {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  z-index: 200; display: none; max-height: 320px; overflow-y: auto;
}
.search-suggestions.show { display: block; }
.suggestion-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; font-size: .9rem; cursor: pointer;
  transition: background var(--transition);
}
.suggestion-item:hover { background: var(--bg-alt); }
.suggestion-item i { color: var(--accent); width: 16px; text-align: center; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.btn-quote {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 8px 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white); border-radius: var(--radius-sm);
  font-size: .7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; transition: all var(--transition);
}
.btn-quote i { font-size: 1.2rem; }
.btn-quote:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); opacity: .92; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; width: 32px; padding: 4px; }
.hamburger span { display: block; height: 2px; background: var(--primary); border-radius: var(--radius-full); transition: all var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── NAVIGATION BAR ── */
.main-nav { background: var(--primary); position: relative; z-index: 900; }
.nav-inner { display: flex; align-items: stretch; gap: 0; }
.nav-link {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px; font-size: .895rem; font-weight: 500;
  color: rgba(255,255,255,.85); transition: all var(--transition);
  position: relative; white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,.08); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: 0; left: 16px; right: 16px;
  height: 2px; background: var(--accent); border-radius: var(--radius-full);
}
.nav-arrow { font-size: .65rem; transition: transform var(--transition); }

/* All Categories Button */
.nav-categories-trigger { position: relative; }
.nav-categories-btn { cursor: pointer; font-size: .895rem; }
.nav-categories-btn:hover { color: var(--white); background: rgba(255,255,255,.08); }

/* ── MEGA MENU ── */
.mega-menu {
  display: none; position: absolute; top: 100%; left: 0;
  width: max(900px, 70vw); background: var(--white);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-xl); z-index: 800;
  flex-direction: row; max-height: 70vh; overflow: hidden;
}
.mega-menu.open { display: flex; }
.mega-menu-sidebar {
  width: 220px; flex-shrink: 0; background: var(--bg-alt);
  border-right: 1px solid var(--border); overflow-y: auto; padding: 8px 0;
}
.mega-cat-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; cursor: pointer; transition: all var(--transition);
  font-size: .875rem;
}
.mega-cat-item a { flex: 1; display: flex; align-items: center; gap: 10px; color: var(--text); }
.mega-cat-item i.fa-chevron-right { color: var(--text-light); font-size: .7rem; }
.mega-cat-item:hover, .mega-cat-item.active { background: var(--white); color: var(--primary); }
.mega-cat-item:hover a, .mega-cat-item.active a { color: var(--primary); font-weight: 600; }
.mega-cat-item i.fa-solid:not(.fa-chevron-right) { color: var(--accent); width: 18px; text-align: center; }

.mega-menu-content { flex: 1; overflow-y: auto; padding: 20px 24px; }
.mega-panel { display: none; }
.mega-panel.active { display: block; }
.mega-panel-header { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.mega-panel-header a { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1rem; color: var(--primary); font-family: var(--font-head); }
.mega-panel-header a i { color: var(--accent); }
.mega-panel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.mega-sub .mega-sub-title { display: block; font-weight: 600; font-size: .875rem; color: var(--primary); margin-bottom: 6px; padding-bottom: 4px; border-bottom: 1px solid var(--border-light); }
.mega-sub .mega-sub-title:hover { color: var(--accent); }
.mega-sub ul li a { display: block; font-size: .82rem; color: var(--text-muted); padding: 3px 0; transition: color var(--transition); }
.mega-sub ul li a:hover { color: var(--accent); padding-left: 4px; }

/* Mobile overlay */
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 850; }
.nav-overlay.show { display: block; }

/* ── BREADCRUMB ── */
.breadcrumb-nav { padding: 12px 0; border-bottom: 1px solid var(--border-light); background: var(--bg-alt); }
.breadcrumb-list { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: .82rem; }
.breadcrumb-item a { color: var(--accent); transition: color var(--transition); }
.breadcrumb-item a:hover { color: var(--accent-dark); }
.breadcrumb-item + .breadcrumb-item::before { content: '/'; margin-right: 4px; color: var(--text-light); }
.breadcrumb-item.active { color: var(--text-muted); }

/* ── HERO SECTION ── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #0d7a8a 100%);
  padding: 80px 0 60px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: center; position: relative; }
.hero-content { color: var(--white); }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 16px; }
.hero-content h1 { color: var(--white); margin-bottom: 16px; }
.hero-content h1 span { color: var(--accent-light); }
.hero-content p { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-bottom: 28px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-search-box {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-xl);
}
.hero-search-box h3 { color: var(--primary); margin-bottom: 4px; font-size: 1.1rem; }
.hero-search-box p { color: var(--text-muted); font-size: .85rem; margin-bottom: 20px; }
.hero-search-form { display: flex; flex-direction: column; gap: 12px; }
.hero-search-form input, .hero-search-form select {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .9rem; color: var(--text); background: var(--bg);
  transition: border-color var(--transition);
}
.hero-search-form input:focus, .hero-search-form select:focus { outline: none; border-color: var(--accent); }
.hero-stats { display: flex; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.hero-stat-item { text-align: center; }
.hero-stat-item .num { display: block; font-size: 1.5rem; font-weight: 800; font-family: var(--font-head); color: var(--white); }
.hero-stat-item .lbl { font-size: .75rem; color: rgba(255,255,255,.65); }

/* ── STATS BAR ── */
.stats-bar { background: var(--white); padding: 20px 0; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.stats-bar-inner { display: flex; align-items: center; justify-content: space-around; flex-wrap: wrap; gap: 16px; }
.stat-item { display: flex; align-items: center; gap: 14px; }
.stat-item .stat-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); background: linear-gradient(135deg, rgba(81,154,159,.15), rgba(3,62,88,.1)); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--accent); flex-shrink: 0; }
.stat-item .stat-num { font-size: 1.4rem; font-weight: 800; font-family: var(--font-head); color: var(--primary); display: block; }
.stat-item .stat-lbl { font-size: .78rem; color: var(--text-muted); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ── CARDS ── */
.card { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; transition: all var(--transition); }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

/* Category Card */
.cat-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 16px; gap: 14px; border: 1.5px solid var(--border-light); cursor: pointer; text-decoration: none; color: inherit; }
.cat-card:hover { border-color: var(--accent); }
.cat-card-icon { width: 64px; height: 64px; border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(81,154,159,.15), rgba(3,62,88,.08)); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--accent); transition: all var(--transition); }
.cat-card:hover .cat-card-icon { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: var(--white); transform: scale(1.08); }
.cat-card h3 { font-size: .9rem; font-weight: 600; color: var(--primary); margin: 0; }
.cat-card span { font-size: .78rem; color: var(--text-muted); }

/* Product Card */
.product-card { display: flex; flex-direction: column; border: 1.5px solid var(--border-light); position: relative; }
.product-card:hover { border-color: var(--accent); }
.product-card-img { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--bg-alt); }
.product-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform var(--transition); }
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-badge { position: absolute; top: 10px; left: 10px; }
.product-card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.product-card-brand { font-size: .75rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.product-card-title { font-size: .9rem; font-weight: 600; color: var(--primary); font-family: var(--font-head); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-decoration: none; }
.product-card-title:hover { color: var(--accent); }
.product-card-price { margin-top: auto; }
.product-card-price .price { font-size: 1.1rem; font-weight: 700; color: var(--primary); font-family: var(--font-head); }
.product-card-price .mrp { font-size: .8rem; color: var(--text-light); text-decoration: line-through; margin-left: 6px; }
.product-card-price .moq { font-size: .78rem; color: var(--text-muted); display: block; margin-top: 2px; }
.product-card-footer { padding: 10px 16px; border-top: 1px solid var(--border-light); display: flex; gap: 8px; }
.product-card-footer .btn { flex: 1; justify-content: center; padding: 8px 12px; font-size: .8rem; }

/* ── PRODUCT ENQUIRY BUTTONS ── */
.enquiry-actions { display: flex; gap: 14px; margin: 24px 0; flex-wrap: wrap; }
.enquiry-actions .btn { flex: 1; min-width: 180px; justify-content: center; font-size: 1rem; padding: 15px 24px; border-radius: var(--radius-sm); }

/* ── MODAL ── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(3,30,50,.6); z-index: 2000;
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius-lg);
  width: 100%; max-width: 540px; max-height: 90vh;
  overflow-y: auto; box-shadow: var(--shadow-xl);
  animation: modalIn .3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px 20px; border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 1.2rem; color: var(--primary); }
.modal-close { width: 32px; height: 32px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all var(--transition); }
.modal-close:hover { background: var(--bg-alt); color: var(--primary); }
.modal-body { padding: 24px 28px; }
.modal-product-info { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--bg-alt); border-radius: var(--radius-sm); margin-bottom: 20px; }
.modal-product-info img { width: 56px; height: 56px; object-fit: contain; border-radius: var(--radius-sm); background: var(--white); padding: 4px; }
.modal-product-info .name { font-weight: 600; font-size: .9rem; color: var(--primary); }
.modal-product-info .sku { font-size: .78rem; color: var(--text-muted); }
.modal-footer { padding: 16px 28px 24px; }

/* ── FORMS ── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .875rem; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.form-group label .req { color: var(--error); margin-left: 3px; }
.form-control {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .9rem; color: var(--text); background: var(--bg);
  transition: all var(--transition);
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(81,154,159,.12); background: var(--white); }
.form-control::placeholder { color: var(--text-light); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
textarea.form-control { min-height: 100px; resize: vertical; }
.form-hint { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: .78rem; color: var(--error); margin-top: 4px; display: none; }
.form-success { background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.3); color: #15803d; padding: 14px 16px; border-radius: var(--radius-sm); font-size: .9rem; display: none; }

/* ── PRODUCT DETAIL PAGE ── */
.product-detail-grid { display: grid; grid-template-columns: 1fr 460px; gap: 40px; align-items: start; }
.product-gallery { position: sticky; top: 90px; }
.gallery-main { aspect-ratio: 1/1; border-radius: var(--radius-md); overflow: hidden; background: var(--bg-alt); border: 1.5px solid var(--border); margin-bottom: 12px; display: flex; align-items: center; justify-content: center; }
.gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 20px; }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-thumb { width: 72px; height: 72px; border-radius: var(--radius-sm); border: 2px solid var(--border); overflow: hidden; cursor: pointer; transition: border-color var(--transition); background: var(--bg-alt); }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

.product-info { display: flex; flex-direction: column; gap: 16px; }
.product-info .product-title { font-size: clamp(1.2rem, 2.5vw, 1.7rem); color: var(--primary); margin: 0; }
.product-meta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.product-sku { font-size: .8rem; color: var(--text-muted); }

.variant-selector { background: var(--bg-alt); border-radius: var(--radius-md); padding: 16px; }
.variant-selector h4 { font-size: .875rem; margin-bottom: 12px; color: var(--text-muted); }
.variant-options { display: flex; gap: 10px; flex-wrap: wrap; }
.variant-btn {
  padding: 8px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); font-size: .87rem; font-weight: 500;
  color: var(--text); background: var(--white); cursor: pointer; transition: all var(--transition);
}
.variant-btn:hover { border-color: var(--accent); color: var(--accent); }
.variant-btn.active { border-color: var(--accent); background: var(--accent); color: var(--white); }

.price-block { padding: 16px; background: var(--bg-alt); border-radius: var(--radius-md); }
.price-block .price-main { font-size: 2rem; font-weight: 800; font-family: var(--font-head); color: var(--primary); }
.price-block .price-mrp { font-size: .9rem; color: var(--text-light); text-decoration: line-through; margin-left: 8px; }
.price-block .price-discount { font-size: .82rem; color: var(--success); font-weight: 600; margin-left: 8px; }
.price-block .moq-info { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .85rem; color: var(--text-muted); }
.price-block .moq-info strong { color: var(--primary); }

/* ── TABS ── */
.tabs { border-bottom: 2px solid var(--border); display: flex; gap: 0; }
.tab-btn { padding: 12px 24px; font-size: .9rem; font-weight: 500; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--transition); background: none; }
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tab-panel { display: none; padding: 24px 0; }
.tab-panel.active { display: block; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr:nth-child(even) { background: var(--bg-alt); }
.spec-table td { padding: 10px 14px; font-size: .875rem; border: 1px solid var(--border-light); }
.spec-table td:first-child { font-weight: 600; color: var(--primary); width: 40%; background: rgba(3,62,88,.03); }

/* ── SIDEBAR FILTERS ── */
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.sidebar { position: sticky; top: 90px; }
.filter-card { background: var(--white); border-radius: var(--radius-md); padding: 20px; border: 1.5px solid var(--border-light); margin-bottom: 16px; }
.filter-title { font-size: .875rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); margin-bottom: 14px; }
.filter-title i { font-size: .7rem; transition: transform var(--transition); }
.filter-title.collapsed i { transform: rotate(-90deg); }
.filter-options { display: flex; flex-direction: column; gap: 8px; }
.filter-opt { display: flex; align-items: center; gap: 10px; font-size: .875rem; cursor: pointer; }
.filter-opt input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; }

/* Catalog toolbar */
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.catalog-toolbar .result-count { font-size: .875rem; color: var(--text-muted); }
.catalog-toolbar .result-count strong { color: var(--primary); }
.sort-select { padding: 8px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: .875rem; color: var(--text); background: var(--white); cursor: pointer; }
.sort-select:focus { outline: none; border-color: var(--accent); }

/* Products Grid */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ── PAGINATION ── */
.pagination { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.page-btn {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  font-size: .875rem; font-weight: 500; color: var(--text); cursor: pointer;
  transition: all var(--transition); text-decoration: none; background: var(--white);
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: var(--white); }
.page-btn.disabled { opacity: .4; pointer-events: none; }

/* ── TOAST NOTIFICATIONS ── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  background: var(--primary); color: var(--white);
  border-radius: var(--radius-md); box-shadow: var(--shadow-xl);
  min-width: 280px; max-width: 380px; font-size: .875rem;
  animation: toastIn .3s ease, toastOut .3s ease 3s forwards;
}
.toast.success { background: #15803d; }
.toast.error { background: #dc2626; }
.toast i { font-size: 1.1rem; flex-shrink: 0; }
@keyframes toastIn { from { opacity:0; transform: translateX(40px); } to { opacity:1; transform: none; } }
@keyframes toastOut { to { opacity:0; transform: translateX(40px); } }

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed; bottom: 24px; left: 24px; z-index: 1500;
  width: 44px; height: 44px; border-radius: var(--radius-full);
  background: var(--accent); color: var(--white); border: none;
  box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer; opacity: 0; pointer-events: none;
  transition: all var(--transition);
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--accent-dark); transform: translateY(-3px); }

/* ── FEATURE / HOW IT WORKS ── */
.feature-card { padding: 32px 24px; text-align: center; }
.feature-icon { width: 72px; height: 72px; border-radius: var(--radius-xl); background: linear-gradient(135deg, rgba(81,154,159,.15), rgba(3,62,88,.08)); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--accent); margin: 0 auto 20px; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: .9rem; }

/* ── CTA SECTION ── */
.cta-section { background: linear-gradient(135deg, var(--primary), var(--primary-light)); padding: 64px 0; text-align: center; }
.cta-section h2, .cta-section p { color: var(--white); }
.cta-section p { margin-bottom: 28px; opacity: .85; }
.cta-section .cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,.8); margin-top: auto; }
.footer-top { padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-col {}
.footer-heading { font-size: .9rem; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.footer-brand p { font-size: .875rem; line-height: 1.7; margin: 14px 0 18px; }
.footer-brand img { margin-bottom: 0; filter: brightness(1.1); }
.footer-contact { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.footer-contact a { display: flex; align-items: center; gap: 8px; font-size: .875rem; transition: color var(--transition); }
.footer-contact a:hover { color: var(--white); }
.footer-contact a i { color: var(--accent); width: 14px; }
.social-links { display: flex; gap: 10px; }
.social-links a { width: 36px; height: 36px; border-radius: var(--radius-full); background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; font-size: .875rem; transition: all var(--transition); }
.social-links a:hover { background: var(--accent); color: var(--white); }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { display: flex; align-items: center; gap: 8px; font-size: .875rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-links a i { color: var(--accent); font-size: .7rem; }
.footer-trust { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.footer-trust li { display: flex; align-items: center; gap: 8px; font-size: .875rem; }
.footer-trust li i { color: var(--accent-light); }
.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-badges .badge-item { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.08); padding: 6px 12px; border-radius: var(--radius-full); font-size: .78rem; }
.footer-badges .badge-item i { color: var(--accent-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; }
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a { transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--white); }

/* ── ANIMATIONS ── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ── UTILITY ── */
.mt-0{margin-top:0} .mt-1{margin-top:8px} .mt-2{margin-top:16px} .mt-3{margin-top:24px} .mt-4{margin-top:32px}
.mb-0{margin-bottom:0} .mb-1{margin-bottom:8px} .mb-2{margin-bottom:16px} .mb-3{margin-bottom:24px}
.pt-0{padding-top:0} .pb-0{padding-bottom:0}
.d-flex{display:flex} .align-center{align-items:center} .justify-between{justify-content:space-between}
.gap-1{gap:8px} .gap-2{gap:16px} .gap-3{gap:24px}
.w-100{width:100%} .h-100{height:100%}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.page-hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); padding: 52px 0; color: var(--white); }
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 1.05rem; margin: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
  .grid-6 { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero-inner { grid-template-columns: 1fr 360px; }
}
@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-search-box { display: none; }
  .catalog-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .topbar-left { display: none; }
  .stats-bar-inner { justify-content: flex-start; gap: 24px; }
  .stat-divider { display: none; }
}
@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .search-category-wrap { display: none; }
  .hamburger { display: flex; }
  .main-nav {
    position: fixed; top: 0; left: -100%; width: 82%; max-width: 320px;
    height: 100vh; z-index: 900; overflow-y: auto;
    flex-direction: column; transition: left var(--transition);
    padding-top: 70px; box-shadow: var(--shadow-xl);
  }
  .main-nav.open { left: 0; }
  .nav-inner { flex-direction: column; align-items: stretch; }
  .nav-link { border-bottom: 1px solid rgba(255,255,255,.08); }
  .mega-menu { position: static; width: 100%; max-height: none; flex-direction: column; border-radius: 0; box-shadow: none; border: none; display: none; }
  .mega-menu.open { display: flex; }
  .mega-menu-sidebar { width: 100%; display: flex; flex-wrap: wrap; gap: 0; border-right: none; border-bottom: 1px solid var(--border); }
  .mega-cat-item { width: 50%; padding: 8px 12px; font-size: .82rem; }
  .header-search { max-width: calc(100vw - 180px); }
  .enquiry-actions { flex-direction: column; }
  .enquiry-actions .btn { min-width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .tabs { overflow-x: auto; }
  .tab-btn { white-space: nowrap; padding: 10px 16px; font-size: .82rem; }
}
@media (max-width: 576px) {
  .container { padding: 0 16px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero { padding: 48px 0 36px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { justify-content: center; }
  .modal { border-radius: var(--radius-md); }
  .modal-header, .modal-body, .modal-footer { padding-left: 20px; padding-right: 20px; }
  .topbar { display: none; }
  .header-logo img { height: 42px; }
}

/* ── CATEGORY CARD — IMAGE VERSION (homepage grid-6) ── */
.cat-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 0; gap: 0;
  border: 1.5px solid var(--border-light); cursor: pointer;
  text-decoration: none; color: inherit; overflow: hidden;
}
.cat-card:hover { border-color: var(--accent); }
.cat-card-img-wrap {
  width: 100%; aspect-ratio: 1/1; overflow: hidden;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
}
.cat-card-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s ease;
}
.cat-card:hover .cat-card-img { transform: scale(1.07); }
.cat-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; color: var(--accent);
  background: linear-gradient(135deg, rgba(81,154,159,.12), rgba(3,62,88,.07));
  transition: all 0.3s ease;
}
.cat-card:hover .cat-card-img-placeholder {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
}
.cat-card h3 {
  font-size: .82rem; font-weight: 600; color: var(--primary);
  margin: 0; padding: 10px 8px 2px;
}
.cat-card span { font-size: .72rem; color: var(--text-muted); padding-bottom: 10px; }

/* ── CATEGORIES PAGE CARDS (grid-4) ── */
.cat-page-card {
  display: flex; flex-direction: column;
  border: 1.5px solid var(--border-light);
  text-decoration: none; color: inherit; overflow: hidden;
}
.cat-page-card:hover { border-color: var(--accent); }
.cat-page-img-wrap {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: var(--bg-alt);
}
.cat-page-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s ease;
}
.cat-page-card:hover .cat-page-img { transform: scale(1.06); }
.cat-page-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--accent);
  background: linear-gradient(135deg, rgba(81,154,159,.12), rgba(3,62,88,.07));
  transition: all 0.3s ease;
}
.cat-page-card:hover .cat-page-img-placeholder {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
}
.cat-page-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(3,30,50,.55) 0%, transparent 100%);
  padding: 20px 14px 12px;
}
.cat-page-count {
  display: inline-block; background: var(--accent);
  color: var(--white); font-size: .72rem; font-weight: 600;
  padding: 3px 10px; border-radius: var(--radius-full);
}
.cat-page-info { padding: 16px 18px; }
.cat-page-info h2 {
  font-size: 1rem; font-weight: 700; color: var(--primary);
  margin-bottom: 6px;
}
.cat-page-info p {
  font-size: .78rem; color: var(--text-muted); margin: 0 0 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cat-page-link {
  font-size: .82rem; color: var(--accent); font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px;
  transition: gap 0.2s ease;
}
.cat-page-card:hover .cat-page-link { gap: 10px; }

/* ── MEGA MENU — HOVER (desktop, CSS-driven) ── */
@media (min-width: 769px) {
  .nav-categories-trigger:hover .mega-menu { display: flex; }
  /* Arrow rotation on hover */
  .nav-categories-trigger:hover .nav-arrow { transform: rotate(180deg); }
}

/* Mega menu cat thumbnail in sidebar */
.mega-cat-img {
  width: 22px; height: 22px; border-radius: 4px;
  object-fit: cover; flex-shrink: 0;
}

/* ── CATEGORIES PAGE — Section layout with sub-cat image grid ── */
.cat-section {
  margin-bottom: 52px;
  border-bottom: 1.5px solid var(--border-light);
  padding-bottom: 48px;
}
.cat-section:last-child { border-bottom: none; }

.cat-section-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 22px; flex-wrap: wrap;
}
.cat-section-thumb {
  width: 60px; height: 60px; border-radius: var(--radius-md);
  overflow: hidden; flex-shrink: 0;
  background: var(--bg-alt);
  border: 1.5px solid var(--border-light);
}
.cat-section-thumb img { width:100%; height:100%; object-fit:cover; }
.cat-section-icon {
  width:100%; height:100%; display:flex; align-items:center;
  justify-content:center; font-size:1.4rem; color:var(--accent);
  background: linear-gradient(135deg,rgba(81,154,159,.14),rgba(3,62,88,.07));
}
.cat-section-title {
  font-family: var(--font-head); font-size: 1.25rem; font-weight: 700;
  color: var(--primary); text-decoration: none; display:block;
  transition: color var(--transition);
}
.cat-section-title:hover { color: var(--accent); }
.cat-section-count { font-size:.8rem; color:var(--text-muted); margin-top:3px; }
.cat-section-viewall { margin-left: auto; flex-shrink: 0; }

/* Sub-category image card grid */
.subcat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.subcat-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius-md); overflow: hidden;
  border: 1.5px solid var(--border-light);
  text-decoration: none; color: inherit;
  background: var(--white);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.subcat-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.subcat-card-img {
  aspect-ratio: 4/3; overflow: hidden;
  background: var(--bg-alt);
  position: relative;
}
.subcat-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s ease;
}
.subcat-card:hover .subcat-card-img img { transform: scale(1.07); }
.subcat-card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--accent);
  background: linear-gradient(135deg, rgba(81,154,159,.1), rgba(3,62,88,.06));
  transition: all 0.3s;
}
.subcat-card:hover .subcat-card-placeholder {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
}
.subcat-card-label {
  padding: 10px 12px;
  font-size: .82rem; font-weight: 600;
  color: var(--primary); font-family: var(--font-head);
  line-height: 1.3;
  border-top: 1px solid var(--border-light);
}
.subcat-card:hover .subcat-card-label { color: var(--accent); }

/* Catalog sidebar with sub-cat image thumbnails */
.sidebar-cat-link {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: var(--radius-sm);
  font-size: .875rem; text-decoration: none;
  transition: all var(--transition);
  color: var(--text);
}
.sidebar-cat-link:hover { background: rgba(81,154,159,.08); color: var(--accent); }
.sidebar-cat-link.active { background: rgba(81,154,159,.12); color:var(--accent); font-weight:600; }
.sidebar-cat-thumb {
  width: 34px; height: 34px; border-radius: 6px; overflow: hidden;
  flex-shrink: 0; background: var(--bg-alt);
  border: 1px solid var(--border-light);
}
.sidebar-cat-thumb img { width:100%; height:100%; object-fit:cover; }
.sidebar-cat-icon {
  width: 34px; height: 34px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; color: var(--accent);
  background: linear-gradient(135deg, rgba(81,154,159,.12),rgba(3,62,88,.07));
  flex-shrink: 0;
}
.sidebar-cat-name { flex: 1; }
.sidebar-cat-count { font-size:.72rem; color:var(--text-light); }

/* Responsive */
@media (max-width: 768px) {
  .subcat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-section-viewall { display: none; }
}
@media (max-width: 480px) {
  .subcat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================
   CATEGORIES PAGE — 7-col drill-down
   ======================================== */

/* 7-column main category grid */
.main-cat-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  margin-bottom: 0;
}

/* Each main category is a borderless button-card */
.main-cat-btn {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 0;
  background: var(--white);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer; padding: 0 0 10px;
  transition: all 0.25s ease;
  position: relative; overflow: hidden;
  font-family: var(--font-body);
}
.main-cat-btn:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.main-cat-btn.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(81,154,159,.18), var(--shadow-md);
  transform: translateY(-3px);
}
.main-cat-img-wrap {
  width: 100%; aspect-ratio: 1/1; overflow: hidden;
  background: var(--bg-alt);
}
.main-cat-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s ease;
}
.main-cat-btn:hover .main-cat-img-wrap img,
.main-cat-btn.active .main-cat-img-wrap img { transform: scale(1.07); }

.main-cat-icon-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--accent);
  background: linear-gradient(135deg, rgba(81,154,159,.12), rgba(3,62,88,.07));
  transition: all 0.3s;
}
.main-cat-btn.active .main-cat-icon-fallback,
.main-cat-btn:hover .main-cat-icon-fallback {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
}
.main-cat-label {
  font-size: .78rem; font-weight: 600; color: var(--primary);
  font-family: var(--font-head); padding: 8px 6px 2px;
  line-height: 1.25; display: block;
}
.main-cat-btn.active .main-cat-label { color: var(--accent); }
.main-cat-arrow {
  font-size: .55rem; color: var(--text-light);
  transition: transform 0.25s ease;
}
.main-cat-btn.active .main-cat-arrow { transform: rotate(180deg); color: var(--accent); }

/* ── Sub-category drill-down panel ── */
.subcat-panel {
  margin-top: 20px;
  background: var(--white);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  opacity: 0; transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.subcat-panel.panel-in {
  opacity: 1; transform: none;
}
.subcat-panel-head {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 22px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  flex-wrap: wrap;
}
.subcat-panel-title {
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 700;
  color: var(--white); flex: 1;
}
.subcat-panel-head .btn-outline {
  border-color: rgba(255,255,255,.5); color: var(--white); font-size: .82rem; padding: 7px 16px;
}
.subcat-panel-head .btn-outline:hover { background: var(--white); color: var(--primary); }
.subcat-panel-close {
  width: 32px; height: 32px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7); cursor: pointer;
  transition: all 0.2s; flex-shrink: 0;
  background: rgba(255,255,255,.1); border: none;
}
.subcat-panel-close:hover { background: rgba(255,255,255,.25); color: #fff; }

.subcat-panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  padding: 20px 22px;
}

/* Sub-cat card inside the drill-down panel */
.subcat-drill-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius-md); overflow: hidden;
  border: 1.5px solid var(--border-light);
  text-decoration: none; color: inherit;
  background: var(--white);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.subcat-drill-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.subcat-drill-img {
  aspect-ratio: 4/3; overflow: hidden;
  background: var(--bg-alt);
}
.subcat-drill-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s ease;
}
.subcat-drill-card:hover .subcat-drill-img img { transform: scale(1.07); }
.subcat-icon-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--accent);
  background: linear-gradient(135deg, rgba(81,154,159,.1), rgba(3,62,88,.06));
  transition: all 0.3s;
}
.subcat-drill-card:hover .subcat-icon-fallback {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
}
.subcat-drill-label {
  padding: 10px 12px;
  font-size: .82rem; font-weight: 600;
  color: var(--primary); font-family: var(--font-head);
  line-height: 1.3; border-top: 1px solid var(--border-light);
  transition: color var(--transition);
}
.subcat-drill-card:hover .subcat-drill-label { color: var(--accent); }

.subcat-empty {
  padding: 28px 22px; text-align: center; color: var(--text-muted);
  font-size: .9rem;
}
.subcat-empty a { color: var(--accent); font-weight: 600; }

/* Responsive */
@media (max-width: 1200px) {
  .main-cat-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 992px) {
  .main-cat-grid { grid-template-columns: repeat(5, 1fr); gap: 12px; }
}
@media (max-width: 768px) {
  .main-cat-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .subcat-panel-grid { grid-template-columns: repeat(2, 1fr); padding: 14px; gap: 10px; }
}
@media (max-width: 480px) {
  .main-cat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================
   CATEGORIES PAGE v2 — Left list + Right panel
   ======================================== */

/* Two-column container */
.cat-two-col {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
  min-height: 520px;
}

/* ── LEFT PANEL — main category list ── */
.cat-left-panel {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 82px;
}

.left-cat-btn {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 10px 14px;
  border: none; border-bottom: 1px solid var(--border-light);
  background: transparent; cursor: pointer; text-align: left;
  transition: all 0.2s ease;
  font-family: var(--font-body);
  position: relative;
}
.left-cat-btn:last-child { border-bottom: none; }
.left-cat-btn:hover { background: rgba(81,154,159,.06); }
.left-cat-btn.active {
  background: linear-gradient(90deg, rgba(81,154,159,.12) 0%, rgba(81,154,159,.04) 100%);
  border-left: 3px solid var(--accent);
}
.left-cat-btn.active .left-cat-name { color: var(--accent); font-weight: 700; }
.left-cat-btn.active .left-cat-arrow { color: var(--accent); transform: none; }

.left-cat-thumb {
  width: 42px; height: 42px; border-radius: 8px; overflow: hidden;
  flex-shrink: 0; background: var(--bg-alt);
  border: 1px solid var(--border-light);
}
.left-cat-thumb img { width:100%; height:100%; object-fit:cover; }
.left-cat-icon {
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  font-size:1.1rem; color:var(--accent);
  background: linear-gradient(135deg, rgba(81,154,159,.1), rgba(3,62,88,.06));
}
.left-cat-name {
  flex: 1; font-size: .83rem; font-weight: 600;
  color: var(--text); line-height: 1.3;
  font-family: var(--font-head);
}
.left-cat-arrow {
  color: var(--text-light); font-size: .7rem;
  transition: transform 0.2s, color 0.2s;
  flex-shrink: 0;
}
.left-cat-btn:hover .left-cat-arrow { color: var(--accent); transform: translateX(3px); }

/* ── RIGHT PANEL ── */
.cat-right-panel {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  min-height: 480px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* Welcome state (before any cat is clicked) */
.cat-right-welcome {
  display: flex; align-items: center; justify-content: center;
  height: 100%; min-height: 480px; padding: 40px;
  text-align: center;
}
.cat-right-welcome-inner { max-width: 280px; }

/* Content state (after a cat is clicked) */
.cat-right-content {
  opacity: 0; transform: translateX(12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.cat-right-content.panel-in {
  opacity: 1; transform: none;
}

.cat-right-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  padding: 18px 22px 14px;
  border-bottom: 1.5px solid var(--border-light);
  background: linear-gradient(135deg, rgba(3,62,88,.03), rgba(81,154,159,.05));
}
.cat-right-title {
  font-family: var(--font-head); font-size: 1.15rem;
  font-weight: 700; color: var(--primary); margin: 0;
}
.cat-right-sub {
  font-size: .78rem; color: var(--text-muted); margin: 3px 0 0;
}

/* Sub-cat card grid inside right panel */
.cat-subcat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 16px;
  padding: 20px 22px;
}

/* No sub-cat message */
.cat-no-sub {
  flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 48px 32px;
  color: var(--text-muted); font-size: .9rem;
}

/* Responsive */
@media (max-width: 992px) {
  .cat-two-col {
    grid-template-columns: 230px 1fr;
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .cat-two-col {
    grid-template-columns: 1fr;
  }
  .cat-left-panel {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .left-cat-btn { border-bottom: 1px solid var(--border-light); border-right: 1px solid var(--border-light); }
  .cat-right-panel { min-height: 340px; }
  .cat-subcat-grid { grid-template-columns: repeat(2, 1fr); padding: 14px; gap: 10px; }
}
@media (max-width: 480px) {
  .cat-left-panel { grid-template-columns: 1fr; }
}

/* ========================================
   CATEGORIES PAGE v3 — Full grid + Right Drawer
   ======================================== */

/* Full-width 7-column main category grid */
.main-cat-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 18px;
}

/* Main category button-card */
.main-cat-btn {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  background: var(--white);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer; padding: 0 0 12px;
  transition: all 0.22s ease;
  font-family: var(--font-body);
  overflow: hidden;
}
.main-cat-btn:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.main-cat-btn.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(81,154,159,.2), var(--shadow-md);
  transform: translateY(-4px);
}
.main-cat-img-wrap {
  width: 100%; aspect-ratio: 1/1; overflow: hidden;
  background: var(--bg-alt);
}
.main-cat-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s ease;
}
.main-cat-btn:hover .main-cat-img-wrap img,
.main-cat-btn.active .main-cat-img-wrap img { transform: scale(1.07); }
.main-cat-icon-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--accent);
  background: linear-gradient(135deg, rgba(81,154,159,.12), rgba(3,62,88,.07));
  transition: all 0.3s;
}
.main-cat-btn.active .main-cat-icon-fallback,
.main-cat-btn:hover .main-cat-icon-fallback {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
}
.main-cat-label {
  font-size: .78rem; font-weight: 600; color: var(--primary);
  font-family: var(--font-head); padding: 8px 6px 0;
  line-height: 1.25; display: block;
}
.main-cat-btn:hover .main-cat-label,
.main-cat-btn.active .main-cat-label { color: var(--accent); }

/* ── Backdrop ── */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 1040;
  background: rgba(3,30,50,.45);
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

/* ── Right-side sliding drawer ── */
.subcat-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(480px, 92vw);
  z-index: 1050;
  background: var(--white);
  box-shadow: -8px 0 40px rgba(3,30,50,.18);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.subcat-drawer.open { transform: translateX(0); }

/* Drawer header */
.subcat-drawer-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 12px;
  padding: 20px 22px 16px;
  background: linear-gradient(135deg, var(--primary) 0%, #0a5a75 100%);
  flex-shrink: 0;
}
.subcat-drawer-title {
  font-family: var(--font-head); font-size: 1.1rem;
  font-weight: 700; color: var(--white); margin: 0;
}
.subcat-drawer-count {
  font-size: .78rem; color: rgba(255,255,255,.65);
  margin: 4px 0 0;
}
.subcat-drawer-header .btn-accent {
  font-size: .78rem; padding: 7px 14px; white-space: nowrap;
}
.subcat-drawer-close {
  width: 34px; height: 34px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.8); cursor: pointer; flex-shrink: 0;
  background: rgba(255,255,255,.12); border: none;
  transition: all 0.2s; font-size: 1rem;
}
.subcat-drawer-close:hover { background: rgba(255,255,255,.25); color: #fff; }

/* Drawer body — scrollable */
.subcat-drawer-body {
  flex: 1; overflow-y: auto; padding: 20px;
}
.subcat-drawer-body::-webkit-scrollbar { width: 5px; }
.subcat-drawer-body::-webkit-scrollbar-track { background: var(--bg-alt); }
.subcat-drawer-body::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

/* Sub-cat grid INSIDE drawer */
.subcat-drawer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.subcat-drawer-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius-md); overflow: hidden;
  border: 1.5px solid var(--border-light);
  text-decoration: none; color: inherit;
  background: var(--white); transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.subcat-drawer-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.subcat-drawer-card-img {
  aspect-ratio: 4/3; overflow: hidden; background: var(--bg-alt);
}
.subcat-drawer-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.32s ease;
}
.subcat-drawer-card:hover .subcat-drawer-card-img img { transform: scale(1.07); }
.subcat-drawer-card-label {
  padding: 10px 12px;
  font-size: .82rem; font-weight: 600;
  color: var(--primary); font-family: var(--font-head);
  line-height: 1.3; border-top: 1px solid var(--border-light);
  transition: color var(--transition);
}
.subcat-drawer-card:hover .subcat-drawer-card-label { color: var(--accent); }

/* Empty state */
.subcat-drawer-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  padding: 60px 24px; color: var(--text-muted);
  gap: 10px; font-size: .9rem;
}
.subcat-drawer-empty i { font-size: 2.5rem; color: var(--accent); }

/* Prevent body scroll when drawer open */
body.drawer-open { overflow: hidden; }

/* Responsive grid */
@media (max-width: 1200px) { .main-cat-grid { grid-template-columns: repeat(6,1fr); } }
@media (max-width: 992px)  { .main-cat-grid { grid-template-columns: repeat(4,1fr); gap:14px; } }
@media (max-width: 640px)  { .main-cat-grid { grid-template-columns: repeat(3,1fr); gap:10px; } }
@media (max-width: 420px)  { .main-cat-grid { grid-template-columns: repeat(2,1fr); }
  .subcat-drawer { width: 100vw; }
  .subcat-drawer-grid { grid-template-columns: 1fr; }
}

/* ========================================
   CATEGORIES v4 — lntsufin-style 3-level browser
   ======================================== */

/* ── Level-1: Horizontal scrollable tab bar ── */
.l1-tab-bar {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.l1-tab-bar::-webkit-scrollbar { display: none; }

.l1-tab {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 10px 14px 11px;
  min-width: 90px; max-width: 110px;
  border: none; border-bottom: 3px solid transparent;
  background: transparent; cursor: pointer;
  transition: all 0.2s; font-family: var(--font-body);
  flex-shrink: 0; text-align: center; position: relative;
  margin-bottom: -2px;
}
.l1-tab img {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--border-light);
  transition: border-color 0.2s;
}
.l1-tab-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt); font-size: 1.1rem; color: var(--accent);
  border: 2px solid var(--border-light);
}
.l1-tab-name {
  font-size: .7rem; font-weight: 600; color: var(--text-muted);
  line-height: 1.2; font-family: var(--font-head);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.l1-tab:hover .l1-tab-name { color: var(--accent); }
.l1-tab:hover img, .l1-tab:hover .l1-tab-icon { border-color: var(--accent); }
.l1-tab.active {
  border-bottom-color: var(--accent);
}
.l1-tab.active img, .l1-tab.active .l1-tab-icon {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(81,154,159,.18);
}
.l1-tab.active .l1-tab-name { color: var(--accent); font-weight: 700; }

/* ── Two-panel area ── */
.l2l3-area {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 480px;
  border: 1px solid var(--border-light);
  border-top: none;
  background: var(--white);
}

/* ── LEFT: level-2 sidebar ── */
.l2-panel {
  border-right: 1px solid var(--border-light);
  background: var(--bg-alt);
  overflow-y: auto;
}
.l2-panel-head {
  padding: 14px 16px 10px;
  font-family: var(--font-head); font-size: .8rem;
  font-weight: 700; color: var(--primary);
  text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 1px solid var(--border-light);
  background: var(--white);
}
#l2-list {
  list-style: none; padding: 6px 0; margin: 0;
}
#l2-list li { margin: 0; }
#l2-list a {
  display: block; padding: 9px 18px;
  font-size: .84rem; color: var(--text);
  text-decoration: none; transition: all 0.15s;
  border-left: 3px solid transparent;
  cursor: pointer;
}
#l2-list a:hover {
  background: rgba(81,154,159,.06);
  color: var(--accent);
  border-left-color: var(--accent);
}
#l2-list a.active {
  background: var(--white);
  color: var(--accent);
  font-weight: 700;
  border-left-color: var(--accent);
  box-shadow: inset -1px 0 0 var(--white);
}
.l2-empty-item a {
  color: var(--accent); font-style: italic;
}

/* ── RIGHT: level-3 leaf grid ── */
.l3-panel {
  padding: 20px 22px;
  overflow-y: auto;
}
.l3-panel-title {
  font-family: var(--font-head); font-size: 1.1rem;
  font-weight: 700; color: var(--primary);
  margin: 0 0 18px; padding-bottom: 12px;
  border-bottom: 1.5px solid var(--border-light);
}
.l3-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 14px;
}

/* Individual leaf category card — lntsufin style */
.l3-card {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: all 0.22s ease;
  overflow: hidden;
}
.l3-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.l3-card-img {
  aspect-ratio: 1/1; overflow: hidden;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
}
.l3-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease;
}
.l3-card:hover .l3-card-img img { transform: scale(1.06); }
.l3-icon-fallback {
  font-size: 2rem; color: var(--accent);
}
.l3-card-info {
  padding: 10px 10px 12px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}
.l3-card-name {
  display: block; font-size: .8rem; font-weight: 600;
  color: var(--primary); font-family: var(--font-head);
  line-height: 1.3; margin-bottom: 4px;
  transition: color 0.2s;
}
.l3-card:hover .l3-card-name { color: var(--accent); }
.l3-card-count {
  font-size: .72rem; color: var(--text-muted);
}

/* Empty state */
.l3-empty {
  display: none; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  padding: 60px 24px; gap: 10px;
  color: var(--text-muted); font-size: .9rem;
}
.l3-empty i { font-size: 2.5rem; color: var(--accent); }
.l3-empty a { color: var(--accent); font-weight: 600; }

/* Responsive */
@media (max-width: 900px) {
  .l2l3-area { grid-template-columns: 190px 1fr; }
  .l1-tab { min-width: 75px; padding: 8px 10px 9px; }
  .l1-tab img, .l1-tab-icon { width: 38px; height: 38px; }
}
@media (max-width: 640px) {
  .l2l3-area { grid-template-columns: 1fr; }
  .l2-panel { max-height: 200px; border-right: none; border-bottom: 1px solid var(--border-light); }
  #l2-list { display: flex; flex-wrap: wrap; }
  #l2-list li { flex: 0 0 auto; }
  #l2-list a { padding: 6px 12px; border-left: none; border-bottom: 2px solid transparent; }
  #l2-list a.active { border-bottom-color: var(--accent); }
  .l3-grid { grid-template-columns: repeat(2,1fr); }
}

/* ========================================================
   SCREEN 1: /categories — Circular category grid
   ======================================================== */
.cat-explore-heading {
  font-size: 1.6rem; font-weight: 700;
  color: var(--primary); margin-bottom: 32px;
  font-family: var(--font-head);
}
.cat-circle-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 20px 16px;
}
.cat-circle-card {
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none; gap: 10px;
  transition: transform 0.22s;
}
.cat-circle-card:hover { transform: translateY(-4px); }
.cat-circle-img {
  width: 100%; aspect-ratio: 1/1;
  border-radius: 50%; overflow: hidden;
  border: 3px solid var(--border-light);
  background: var(--bg-alt);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cat-circle-card:hover .cat-circle-img {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(81,154,159,.15);
}
.cat-circle-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s;
}
.cat-circle-card:hover .cat-circle-img img { transform: scale(1.08); }
.cat-circle-icon {
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  font-size:2.2rem; color:var(--accent);
  background: linear-gradient(135deg, rgba(81,154,159,.1), rgba(3,62,88,.06));
}
.cat-circle-name {
  font-size:.78rem; font-weight:600; text-align:center;
  color: var(--primary); font-family: var(--font-head);
  line-height: 1.3; max-width: 100%;
  display: -webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  transition: color 0.2s;
}
.cat-circle-card:hover .cat-circle-name { color: var(--accent); }

@media (max-width:1200px) { .cat-circle-grid { grid-template-columns: repeat(6,1fr); } }
@media (max-width:900px)  { .cat-circle-grid { grid-template-columns: repeat(5,1fr); gap:14px; } }
@media (max-width:640px)  { .cat-circle-grid { grid-template-columns: repeat(3,1fr); gap:10px; } }
@media (max-width:360px)  { .cat-circle-grid { grid-template-columns: repeat(2,1fr); } }


/* ========================================================
   SCREEN 2: Browse mode — L2 sidebar + L3 card grid
   ======================================================== */
.browse-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  border: 1px solid var(--border-light);
  min-height: 540px;
  background: var(--white);
}

/* LEFT L2 sidebar */
.browse-sidebar {
  border-right: 1px solid var(--border-light);
  background: var(--bg-alt);
  overflow-y: auto;
}
.browse-sidebar-head {
  padding: 14px 16px 10px;
  font-family: var(--font-head); font-size:.78rem;
  font-weight:700; color:var(--primary);
  text-transform:uppercase; letter-spacing:.05em;
  border-bottom:1px solid var(--border-light);
  background: var(--white);
}
.browse-l2-list { list-style:none; padding:6px 0; margin:0; }
.browse-l2-list li { margin:0; }
.browse-l2-list a {
  display:block; padding:10px 16px;
  font-size:.85rem; color:var(--text);
  text-decoration:none; transition:all .15s;
  border-left:3px solid transparent;
}
.browse-l2-list a:hover { background:rgba(81,154,159,.06); color:var(--accent); border-left-color:var(--accent); }
.browse-l2-list a.active {
  background:var(--white); color:var(--accent);
  font-weight:700; border-left-color:var(--accent);
}

/* RIGHT L3 area */
.browse-main { padding:20px 22px; }
.browse-main-title {
  font-family:var(--font-head); font-size:1.15rem;
  font-weight:700; color:var(--primary); margin:0 0 18px;
  padding-bottom:12px; border-bottom:1.5px solid var(--border-light);
}

/* L3 card grid — exactly like lntsufin screenshot */
.browse-l3-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px,1fr));
  gap: 14px;
}
.browse-l3-card {
  display:flex; flex-direction:column;
  text-decoration:none; color:inherit;
  border:1.5px solid var(--border-light);
  border-radius:var(--radius-md);
  background:var(--white); transition:all .22s;
  overflow:hidden;
}
.browse-l3-card:hover {
  border-color:var(--accent);
  box-shadow:var(--shadow-md);
  transform:translateY(-3px);
}
.browse-l3-card-img {
  aspect-ratio:1/1; overflow:hidden;
  background:var(--bg-alt);
  display:flex; align-items:center; justify-content:center;
}
.browse-l3-card-img img {
  width:100%; height:100%; object-fit:cover;
  transition:transform .3s;
}
.browse-l3-card:hover .browse-l3-card-img img { transform:scale(1.06); }
.browse-l3-icon {
  font-size:2rem; color:var(--accent);
  transition:color .2s;
}
.browse-l3-card:hover .browse-l3-icon { color:var(--white); }
.browse-l3-card:hover .browse-l3-card-img { background:var(--accent); }
.browse-l3-card-info {
  padding:10px 10px 12px;
  border-top:1px solid var(--border-light);
  text-align:center;
}
.browse-l3-card-name {
  display:block; font-size:.8rem; font-weight:600;
  color:var(--primary); font-family:var(--font-head);
  line-height:1.3; margin-bottom:3px;
  transition:color .2s;
}
.browse-l3-card:hover .browse-l3-card-name { color:var(--accent); }
.browse-l3-card-count { font-size:.72rem; color:var(--text-muted); }

@media (max-width:768px) {
  .browse-layout { grid-template-columns:1fr; }
  .browse-sidebar { border-right:none; border-bottom:1px solid var(--border-light); max-height:200px; }
  .browse-l2-list { display:flex; flex-wrap:wrap; }
  .browse-l2-list a { padding:6px 12px; border-left:none; border-bottom:2px solid transparent; }
  .browse-l2-list a.active { border-bottom-color:var(--accent); }
}


/* ========================================================
   SCREEN 3: Product listing mode
   ======================================================== */
.product-list-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
  padding-top: 20px;
}
.filter-sidebar { display:flex; flex-direction:column; gap:14px; }
.filter-sidebar .filter-card { border-radius:var(--radius-md); border:1px solid var(--border-light); background:var(--white); padding:14px 16px; }
.filter-cat-back {
  display:flex; align-items:center; gap:6px;
  font-size:.85rem; color:var(--accent);
  text-decoration:none; padding:4px 0; margin-top:6px;
  font-weight:600; transition:opacity .2s;
}
.filter-cat-back:hover { opacity:.75; }
.filter-cat-active { font-size:.85rem; font-weight:700; color:var(--primary); padding:4px 0; margin-top:4px; }
.filter-check { display:flex; align-items:center; gap:8px; font-size:.84rem; color:var(--text); padding:4px 0; cursor:pointer; }
.filter-check input { accent-color:var(--accent); }
.filter-search-wrap { position:relative; margin:10px 0; }
.filter-search-input { width:100%; padding:7px 32px 7px 10px; border:1px solid var(--border-light); border-radius:var(--radius-sm); font-size:.82rem; outline:none; }
.filter-search-input:focus { border-color:var(--accent); }
.filter-search-wrap i { position:absolute; right:10px; top:50%; transform:translateY(-50%); color:var(--text-light); font-size:.8rem; }

/* Sort bar */
.pl-sort-bar {
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; flex-wrap:wrap;
  padding:12px 16px; margin-bottom:18px;
  background:var(--white); border:1px solid var(--border-light);
  border-radius:var(--radius-md);
}
.pl-sort-info { display:flex; align-items:center; gap:12px; }
.pl-sort-info strong { font-size:.95rem; color:var(--primary); font-family:var(--font-head); }
.pl-count { font-size:.82rem; color:var(--text-muted); }
.pl-sort-options { display:flex; align-items:center; gap:0; font-size:.82rem; }
.pl-sort-options span { color:var(--text-muted); margin-right:10px; }
.pl-sort-link {
  padding:5px 12px; border-radius:var(--radius-sm);
  text-decoration:none; color:var(--text);
  transition:all .15s; border:1px solid transparent;
}
.pl-sort-link:hover { color:var(--accent); }
.pl-sort-link.active { color:var(--accent); border-color:var(--accent); font-weight:600; }

/* 4-col product grid in listing mode */
.pl-product-grid {
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap:16px;
}
.price-on-request { font-size:.85rem; color:var(--text-muted); font-style:italic; }

@media (max-width:1100px) { .pl-product-grid { grid-template-columns:repeat(3,1fr); } }
@media (max-width:900px) {
  .product-list-layout { grid-template-columns:1fr; }
  .filter-sidebar { flex-direction:row; flex-wrap:wrap; }
  .filter-sidebar .filter-card { flex:1 1 200px; }
  .pl-product-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:480px) { .pl-product-grid { grid-template-columns:1fr; } }
