:root {
  --brand-primary: #0f2942;      /* Deep Executive Navy — single unified corporate color */
  --brand-primary-dark: #091b2c;
  --brand-accent: #e85d04;       /* Industrial Action Orange (buttons/badges) */
  --brand-accent-hover: #cc5203;
  --bg-page: #f4f6f9;
  --bg-card: #ffffff;
  --text-main: #182230;
  --text-muted: #5a6778;
  --border-color: #f7f7f7;
  --success: #15803d;
  --danger: #dc2626;
  --radius: 8px;
  --shadow-sm: 0 2px 6px rgba(15, 41, 66, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 41, 66, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.2m ;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 20%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Top Utility Bar */
.top-utility-bar {
  background: var(--brand-primary-dark);
  color: #ffffff;
  font-size: 0.8rem;
  padding: 7px 0;
}

.utility-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.utility-left,
.utility-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.utility-right a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}

.utility-right a:hover {
  color: #ffffff;
}

/* Main Header */
.main-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: var(--shadow-sm);
}

.header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}

/* Unified Single-Color Professional Brand Identity */
.brand-lockup {
  display: flex;
  align-items: left;
  gap: 12px;
}

.brand-logo {
  height: 48px;
  width: 78px;
  object-fit: contain;
}
 
.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--brand-primary); /* Single solid authoritative color */
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Search Bar */
.search-wrapper {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--brand-primary);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.search-wrapper select {
  background: #f1f5f9;
  border: none;
  border-right: 1px solid var(--border-color);
  padding: 0 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  max-width: 165px;
  cursor: pointer;
}

.search-wrapper input {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-size: 0.92rem;
  outline: none;
  min-width: 120px;
}

.search-wrapper button {
  background: var(--brand-accent);
  color: #fff;
  border: none;
  padding: 0 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.search-wrapper button:hover {
  background: var(--brand-accent-hover);
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.action-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  text-align: left;
  color: var(--text-main);
  transition: background 0.2s, border-color 0.2s;
}

.action-btn:hover {
  background: #f8fafc;
  border-color: var(--border-color);
}

.action-btn i {
  font-size: 1.25rem;
  color: var(--brand-primary);
}

.action-labels {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.action-labels small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.action-labels strong {
  font-size: 0.85rem;
  font-weight: 700;
}

.icon-badge-wrap {
  position: relative;
}

.badge-count {
  position: absolute;
  top: -7px;
  right: -8px;
  background: var(--brand-accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Category Navigation Ribbon */
.category-nav {
  background: var(--brand-primary);
  color: #fff;
}

.category-nav-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-nav-inner::-webkit-scrollbar {
  display: none;
}

.all-cats-btn {
  background: var(--brand-accent);
  color: #fff;
  border: none;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cat-pill {
  background: transparent;
  border: none;
  color: #e2e8f0;
  padding: 10px 14px;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.cat-pill:hover,
.cat-pill.active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

/* Hero Section */
.hero-section {
  padding: 18px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
}

.hero-sidebar {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 8px 0;
  box-shadow: var(--shadow-sm);
}

.hero-cat-item {
  width: 100%;
  background: none;
  border: none;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.hero-cat-item:hover {
  background: #f1f5f9;
  color: var(--brand-accent);
}

.hero-banner {
  background: linear-gradient(125deg, var(--brand-primary) 0%, #19456b 100%);
  border-radius: var(--radius);
  padding: 38px 42px;
  color: #fff;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.14);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.hero-banner h1 {
  font-size: clamp(1.6rem, 2.8vw, 2.35rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  max-width: 680px;
}

.hero-banner p {
  color: #dbeafe;
  max-width: 620px;
  margin-bottom: 22px;
  font-size: 0.98rem;
}

.hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.hero-trust-strip {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 16px;
}

.hero-trust-strip div {
  display: flex;
  flex-direction: column;
}

.hero-trust-strip strong {
  font-size: 1.15rem;
  color: #fff;
}

.hero-trust-strip span {
  font-size: 0.78rem;
  color: #cbd5e1;
}

/* Trust Strip */
.trust-bar {
  margin-bottom: 22px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.trust-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-card i {
  font-size: 1.5rem;
  color: var(--brand-accent);
}

.trust-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
}

.trust-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Catalog Layout */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  margin-bottom: 48px;
  align-items: start;
}

.filters-panel {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 18px;
  position: sticky;
  top: 124px;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.filter-group {
  margin-bottom: 18px;
}

.filter-group h4 {
  font-size: 0.88rem;
  margin-bottom: 10px;
  color: var(--brand-primary);
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  cursor: pointer;
}

#priceRangeSlider {
  width: 100%;
  accent-color: var(--brand-accent);
}

.catalog-toolbar {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.result-count {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
}

.sort-controls select {
  padding: 7px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

/* Product Grid & Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 16px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--success);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
}

.wishlist-card-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fff;
  border: 1px solid var(--border-color);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  color: var(--text-muted);
}

.wishlist-card-btn.active {
  color: var(--danger);
}

.product-img-box {
  height: 195px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
}

.product-img-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.product-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-brand-cat {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.product-title {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
  cursor: pointer;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-title:hover {
  color: var(--brand-accent);
}

.product-title button {
  display: block;
  width: 100%;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.product-title button:focus-visible {
  outline-offset: -2px;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.price-selling {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.price-mrp {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.gst-note {
  font-size: 0.72rem;
  color: var(--success);
  margin-bottom: 10px;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Buttons */
.btn-primary {
  background: var(--brand-accent);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--brand-accent-hover);
}

.btn-secondary {
  background: var(--brand-primary);
  color: #fff;
  border: none;
  padding: 9px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
}

.btn-outline {
  background: #fff;
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  padding: 9px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-danger-outline {
  background: transparent;
  color: #fca5a5;
  border: 1px solid rgba(252, 165, 165, 0.45);
  padding: 9px 14px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.link-btn {
  background: none;
  border: none;
  color: var(--brand-accent);
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
}

.w-100 {
  width: 100%;
}

.hidden {
  display: none !important;
}

/* Footer */
.site-footer {
  background: var(--brand-primary-dark);
  color: #cbd5e1;
  padding-top: 44px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 34px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-logo {
  height: 44px;
  background: #fff;
  padding: 4px;
  border-radius: 6px;
}

.footer-brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 14px;
  font-size: 0.96rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
}

.footer-col ul a:hover {
  color: #fff;
}

.social-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.social-pill {
  padding: 7px 13px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.social-pill.instagram { background: #c13584; }
.social-pill.facebook { background: #1877f2; }
.social-pill.youtube { background: #ff0000; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  text-align: center;
  font-size: 0.82rem;
}

/* Modals & Drawers */
.modal-backdrop,
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 27, 44, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  padding: 16px;
}

.modal-backdrop.open,
.drawer-backdrop.open {
  display: flex;
}

.drawer-backdrop {
  justify-content: flex-end;
  padding: 0;
}

.modal-card {
  background: #fff;
  border-radius: 10px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  position: relative;
}

.modal-card.modal-lg {
  max-width: 860px;
}

.drawer-panel {
  background: #fff;
  width: 100%;
  max-width: 420px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  background: #f8fafc;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}

.drawer-header .modal-close {
  position: static;
}

/* Product Detail Modal Layout */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

.detail-img-wrap {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.detail-features-list {
  margin: 12px 0 16px 18px;
  font-size: 0.88rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.84rem;
}

.spec-table td {
  border: 1px solid var(--border-color);
  padding: 8px 10px;
}

.spec-table td:first-child {
  font-weight: 600;
  background: #f8fafc;
  width: 40%;
}

/* Cart & Account Helpers */
.cart-item-row {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

.cart-item-row img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  margin-top: 6px;
}

.qty-stepper button {
  background: #f1f5f9;
  border: none;
  padding: 3px 9px;
  cursor: pointer;
  font-weight: 700;
}

.qty-stepper span {
  padding: 0 10px;
  font-size: 0.85rem;
}

.coupon-box {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.coupon-box input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

.coupon-box button {
  background: var(--brand-primary);
  color: #fff;
  border: none;
  padding: 0 14px;
  border-radius: 6px;
  cursor: pointer;
}

.cart-summary-rows div {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.grand-total {
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
  font-size: 1.05rem !important;
  color: var(--brand-primary);
}

/* Auth & Profile Forms */
.auth-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 18px;
}

.auth-tab-btn {
  background: none;
  border: none;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.auth-tab-btn.active {
  color: var(--brand-accent);
  border-bottom-color: var(--brand-accent);
}

.stacked-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stacked-form input,
.stacked-form textarea,
.stacked-form select {
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
}

/* ================= ADMIN PORTAL STYLES ================= */
.admin-login-screen {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-login-card {
  background: #fff;
  padding: 36px 30px;
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.admin-login-logo {
  height: 64px;
  margin: 0 auto 12px;
}

.admin-brand-heading {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.admin-login-sub {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 22px;
}

.admin-login-card form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.password-input-wrap {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
}

.password-input-wrap input {
  flex: 1;
  border: none;
  padding: 11px 12px;
  outline: none;
}

.password-input-wrap button {
  background: #f8fafc;
  border: none;
  padding: 0 14px;
  cursor: pointer;
}

.error-text {
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 600;
}

.admin-login-hint {
  margin-top: 16px;
  color: var(--text-muted);
}

.admin-shell {
  display: grid;
  grid-template-columns: 265px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--brand-primary-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 18px;
}

.admin-nav-logo {
  height: 40px;
  background: #fff;
  padding: 4px;
  border-radius: 6px;
}

.admin-sidebar-brand strong {
  display: block;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}

.admin-sidebar-brand small {
  color: #94a3b8;
  font-size: 0.74rem;
}

.admin-nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.admin-nav-item {
  background: transparent;
  border: none;
  color: #cbd5e1;
  padding: 11px 14px;
  border-radius: 6px;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-nav-item:hover,
.admin-nav-item.active {
  background: var(--brand-accent);
  color: #fff;
}

.admin-sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  padding: 6px 10px;
  border-radius: 6px;
}

.store-navigation {
  display: contents;
}

.admin-content-area {
  padding: 24px;
}

.admin-tab {
  display: none;
}

.admin-tab.active {
  display: block;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.kpi-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 18px;
}

.kpi-card small {
  color: var(--text-muted);
  font-weight: 600;
}

.kpi-card h3 {
  font-size: 1.65rem;
  color: var(--brand-primary);
  margin-top: 6px;
}

.admin-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.admin-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.span-2 {
  grid-column: span 2;
}

.form-field label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--brand-primary);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
}

.category-creator-box {
  background: #f8fafc;
  padding: 14px;
  border-radius: 8px;
  border: 1px dashed var(--brand-primary);
}

.category-dual-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 10px;
}

.new-cat-inline {
  display: flex;
  gap: 8px;
}

.new-cat-inline input {
  flex: 1;
}

.image-upload-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.image-upload-row input[type="text"] {
  flex: 1;
  min-width: 220px;
}

.file-upload-btn {
  background: var(--brand-primary);
  color: #fff !important;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.image-preview {
  max-height: 110px;
  margin-top: 8px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 4px;
}

.spec-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.spec-rows-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-pair-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
}

.table-responsive {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.admin-table th,
.admin-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.admin-table th {
  background: #f8fafc;
  font-weight: 700;
}

.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast-msg {
  background: var(--brand-primary-dark);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--brand-accent);
}

/* ================= RESPONSIVE BREAKPOINTS ================= */
@media (max-width: 1024px) {
  .hero-grid,
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .hero-sidebar {
    display: none;
  }

  .filters-panel {
    position: static;
  }

  .trust-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hide-tablet {
    display: none;
  }
}

@media (max-width: 768px), (max-width: 1024px) and (pointer: coarse) {
  .header-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .header-actions {
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
  }

  .search-wrapper select {
    display: none;
  }

  .hero-banner {
    padding: 26px 20px;
  }

  .detail-grid,
  .admin-two-col,
  .admin-form-grid,
  .category-dual-row {
    grid-template-columns: 1fr;
  }

  .form-field.span-2 {
    grid-column: span 1;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    display: none;
  }

  .admin-sidebar.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 520px) {
  .trust-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hide-mobile {
    display: none;
  }

  .brand-title {
    font-size: 1.12rem;
  }
/* ABOUT US LINK IN MAIN WEBSITE NAVIGATION */

.store-about-link {
  margin-left: auto;
  white-space: nowrap;
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 4px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.store-about-link:hover {
  background: rgba(255,255,255,.12);
}

@media(max-width:700px) {
  .store-about-link {
    margin-left: 0;
  }
}
}

@media (max-width: 768px), (max-width: 1024px) and (pointer: coarse) {
  body {
    font-size: 1rem;
    line-height: 1.5;
    overflow-x: visible;
    overflow-wrap: anywhere;
  }

  img, video, iframe, embed, object {
    max-width: 100%;
  }

  img, video {
    height: auto;
    object-fit: contain;
  }

  iframe {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  button, a[href], input:not([type="checkbox"]):not([type="radio"]),
  select, textarea, .checkbox-row, .file-upload-btn {
    min-width: 44px;
    min-height: 44px;
    max-width: 100%;
  }

  a[href] {
    display: inline-flex;
    align-items: center;
  }

  a.w-100 {
    justify-content: center;
  }

  button, input, select, textarea, small, .top-utility-bar, .brand-tagline,
  .action-labels strong, .hero-pill, .hero-banner p, .hero-trust-strip span,
  .trust-card h4, .trust-card p, .filter-group h4, .checkbox-row, .result-count,
  .sort-controls, .discount-badge, .product-brand-cat, .product-title, .price-mrp,
  .gst-note, .btn-primary, .btn-secondary, .btn-outline, .btn-outline-light,
  .link-btn, .social-pill, .footer-col h4, .footer-col ul, .footer-bottom,
  .detail-features-list, .spec-table, .qty-stepper span, .cart-summary-rows div,
  .admin-login-sub, .error-text, .admin-sidebar-brand strong, .admin-nav-item,
  .form-field label, .admin-table, .toast-msg {
    font-size: 1rem;
  }

  .search-wrapper input, .action-labels small, .cat-pill, .store-about-link,
  .form-field input, .form-field select, .form-field textarea {
    font-size: 1rem;
  }

  .modal-card [style*="font-size:0."], .drawer-panel [style*="font-size:0."],
  .admin-content-area [style*="font-size:0."] {
    font-size: 1rem !important;
  }

  .main-header {
    position: static;
  }

  .header-actions, .utility-left, .utility-right,
  .product-price-row, .sort-controls, .admin-topbar, .card-header-flex,
  .spec-header-row, .new-cat-inline, .cart-item-actions {
    flex-wrap: wrap;
  }

  .brand-logo {
    width: clamp(44px, 16vw, 78px);
    flex: none;
  }

  .utility-left, .utility-right, .header-actions {
    gap: 4px 12px;
  }

  .header-actions .action-btn {
    padding-inline: 8px;
  }

  .badge-count {
    min-width: 22px;
    height: 22px;
    font-size: 1rem;
  }

  .search-wrapper input, .coupon-box input, .password-input-wrap input,
  .new-cat-inline input, .image-upload-row input[type="text"] {
    width: 0;
    min-width: 44px;
  }

  .new-cat-inline input, .image-upload-row input[type="text"] {
    flex-basis: min(100%, 12rem);
  }

  .category-nav-inner {
    display: block;
    overflow: visible;
    padding-block: 4px;
  }

  .mobile-menu-btn {
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: inherit;
    font-weight: 700;
    cursor: pointer;
  }

  .category-nav .mobile-menu-btn {
    border-color: transparent;
  }

  .category-nav .all-cats-btn, .store-navigation {
    display: none;
  }

  .store-navigation.open, .store-navigation .category-pills {
    display: grid;
    gap: 4px;
  }

  .store-navigation.open {
    border-top: 1px solid rgba(255, 255, 255, .28);
    padding-block: 6px;
  }

  .store-navigation .cat-pill, .store-navigation .store-about-link {
    margin: 0;
    padding: 8px 10px;
    white-space: normal;
    text-align: left;
  }

  .catalog-layout, .header-grid, .detail-grid, .admin-shell,
  .admin-two-col, .admin-form-grid, .category-dual-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  }

  .card-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-actions button {
    padding-inline: 8px;
  }

  .spec-table {
    table-layout: fixed;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .modal-card {
    max-height: calc(100dvh - 24px);
    padding: 66px 16px 16px;
  }

  .drawer-panel {
    overflow-y: auto;
  }

  .drawer-body {
    flex: 1 0 auto;
    overflow: visible;
  }

  .drawer-header, .drawer-body, .drawer-footer {
    padding-inline: 14px;
  }

  .cart-item-row {
    gap: 8px;
  }

  .cart-item-row > div {
    min-width: 0;
  }

  .cart-item-row img {
    width: 48px;
    height: 48px;
  }

  .qty-stepper span {
    padding-inline: 6px;
  }

  .admin-topbar {
    gap: 8px;
  }

  .admin-topbar, .admin-content-area {
    padding: 14px;
  }

  .admin-card {
    padding: 14px;
  }

  .kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  }

  .spec-pair-row {
    grid-template-columns: minmax(44px, 1fr) minmax(44px, 1fr) auto;
  }

  .admin-table {
    min-width: max-content;
  }

  .admin-table :is(th, td) {
    max-width: 16rem;
  }

  .toast-container {
    left: 12px;
    right: 12px;
    align-items: flex-end;
  }
}
