/* ==========================================================================
   THE SACRED CODE — Shared Theme & Layout CSS
   Ancient Wisdom. Modern Living.
   ========================================================================== */

:root {
  --background: #fbf6f2;
  --foreground: #11301a;
  --border: #00000014;
  --input: #ffffff;
  --primary: #b8864b;
  --primary-hover: #a0733c;
  --primary-foreground: #ffffff;
  --secondary: #efe4d9;
  --secondary-hover: #e3d2c1;
  --secondary-foreground: #11301a;
  --muted: #f6ede7;
  --muted-foreground: #7a6a5f;
  --success: #dff3e6;
  --success-foreground: #0b5f2e;
  --accent: #c28b4b;
  --accent-hover: #a87439;
  --accent-foreground: #ffffff;
  --destructive: #d9534f;
  --destructive-foreground: #ffffff;
  --warning: #f4e1c9;
  --warning-foreground: #7a5a2e;
  --card: #ffffff;
  --card-foreground: #11301a;
  --sidebar: #f8f3ef;
  --sidebar-foreground: #11301a;
  --sidebar-primary: #e9d6c0;
  --sidebar-primary-foreground: #11301a;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --font-family-body: Inter;

  /* 50-900 Primary Brand Color Scale (Gold & Warm Sacred Palette) */
  --color-primary-50:  #fbf7f1;
  --color-primary-100: #f5e9d7;
  --color-primary-200: #e9d0ae;
  --color-primary-300: #dbb380;
  --color-primary-400: #cb9b59;
  --color-primary-500: #b8864b;
  --color-primary-600: #a0733c;
  --color-primary-700: #845d2e;
  --color-primary-800: #6a4925;
  --color-primary-900: #4e3519;

  /* 50-900 Secondary Color Scale */
  --color-secondary-50:  #fdfbf8;
  --color-secondary-100: #f9f3eb;
  --color-secondary-200: #f4e7d7;
  --color-secondary-300: #efe4d9;
  --color-secondary-400: #e3d2c1;
  --color-secondary-500: #d5bfa8;
  --color-secondary-600: #c2aa91;
  --color-secondary-700: #a88e76;
  --color-secondary-800: #88705b;
  --color-secondary-900: #624f3f;

  /* 50-900 Neutral Scale */
  --color-neutral-50:  #fbf6f2;
  --color-neutral-100: #f4ede6;
  --color-neutral-200: #e5dacd;
  --color-neutral-300: #cdbdb0;
  --color-neutral-400: #a69486;
  --color-neutral-500: #7a6a5f;
  --color-neutral-600: #5c4e44;
  --color-neutral-700: #3e332c;
  --color-neutral-800: #241d18;
  --color-neutral-900: #11301a;

  /* Legacy & Brand Mapped Tokens to maintain compatibility */
  --tsc-cream: var(--background);
  --tsc-cream-deep: var(--muted);
  --tsc-paper: var(--card);
  --tsc-gold: var(--primary);
  --tsc-gold-deep: var(--accent);
  --tsc-gold-line: var(--warning);
  --tsc-green: var(--success-foreground);
  --tsc-green-deep: var(--foreground);
  --tsc-maroon: var(--primary);
  --tsc-ink: var(--foreground);
  --tsc-ink-soft: var(--muted-foreground);
  --tsc-white: #ffffff;

  --font-family-heading: 'Playfair Display', serif;
  --font-family-sans: var(--font-family-body);
  --font-display: 'Playfair Display', serif;

  --shadow-card: 0 4px 20px rgba(184, 134, 75, 0.05);
  --shadow-card-hover: 0 12px 36px rgba(184, 134, 75, 0.12);
  --shadow-glow: 0 0 20px rgba(184, 134, 75, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-body);
  background: var(--background);
  color: var(--foreground);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   TOPBAR & HEADER STYLES
   ========================================================================== */

#site-header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--background);
  box-shadow: 0 4px 20px rgba(17, 48, 26, 0.08);
  transition: box-shadow 0.3s ease;
}

#gold-bar {
  background: var(--primary);
  height: 4px;
  width: 100%;
}

#top-nav {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 100;
}

/* ========== Desktop Nav ========== */
#desktop-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
}

#top-nav-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
}

.top-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-nav-links a {
  font-size: 13px;
  color: var(--accent);
  font-family: var(--font-family-sans);
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  padding: 4px 0;
}

.top-nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.top-nav-links a:hover {
  color: var(--primary);
}

.top-nav-links a:hover::after {
  width: 100%;
}

#search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 6px 16px;
  gap: 8px;
  background: var(--card);
  width: 100%;
  max-width: 260px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

#search-box:focus-within {
  border-color: var(--primary);
  max-width: 290px;
  box-shadow: 0 4px 16px rgba(184, 134, 75, 0.15);
}

#search-box input {
  font-size: 12px;
  color: var(--foreground);
  font-family: var(--font-family-sans);
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
}

#search-box input::placeholder {
  color: var(--muted-foreground);
}

#search-box button {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

#search-box button:hover {
  color: var(--primary);
}

#logo-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
}

#logo-center img {
  object-fit: contain;
  width: auto;
  max-width: 100%;
  max-height: 105px;
  transition: all 0.2s ease;
}

#logo-center:hover img {
  transform: scale(1.03);
}

#top-nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  justify-content: flex-end;
}

.nav-action {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--foreground);
  font-family: var(--font-family-sans);
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-action:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-action iconify-icon,
.nav-action i {
  font-size: 17px;
  color: var(--accent);
  transition: color 0.2s ease;
}

.nav-action:hover iconify-icon,
.nav-action:hover i {
  color: var(--primary);
}

.badge-count {
  background: var(--primary);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  margin-left: 2px;
  line-height: 1;
}

/* ========== Mobile Nav ========== */
#mobile-nav {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: relative;
}

#hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  width: 32px;
  transition: transform 0.3s;
  z-index: 3;
}

#hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: all 0.3s ease;
}

#hamburger-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#hamburger-btn.open span:nth-child(2) {
  opacity: 0;
}

#hamburger-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

#mobile-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 2;
}

#mobile-logo img {
  max-height: 48px;
  width: auto;
}

#mobile-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 3;
}

.mobile-action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--foreground);
  font-size: 20px;
  position: relative;
  text-decoration: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.mobile-action-icon:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.mobile-action-icon .badge-count {
  position: absolute;
  top: -2px;
  right: -2px;
  font-size: 9px;
  padding: 2px 5px;
  min-width: 16px;
  text-align: center;
}

#mobile-search-box {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  background: var(--background);
}

#mobile-search-box input {
  flex: 1;
  font-size: 13px;
  color: var(--foreground);
  font-family: var(--font-family-sans);
  border: none;
  outline: none;
  background: transparent;
}

#mobile-search-box input::placeholder {
  color: var(--muted-foreground);
}

/* ========== Mobile Menu Drawer ========== */
#mobile-menu-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(17, 48, 26, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

#mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

#mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: var(--card);
  z-index: 1000;
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
}

#mobile-menu.open {
  transform: translateX(0);
}

#mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-family-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

#mobile-menu-close {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--foreground);
  line-height: 1;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

#mobile-menu-close:hover {
  background: var(--secondary);
}

#mobile-menu-links {
  padding: 12px 0;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  font-size: 14px;
  color: var(--foreground);
  font-family: var(--font-family-sans);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-menu-item:hover {
  background: var(--sidebar);
  color: var(--primary);
  padding-left: 26px;
}

.mobile-menu-item iconify-icon {
  font-size: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.mobile-menu-label {
  padding: 16px 22px 6px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  font-family: var(--font-family-sans);
  font-weight: 700;
}

.mobile-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 22px;
}

/* ==========================================================================
   CATEGORY NAVIGATION
   ========================================================================== */

#category-nav {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 90;
}

@media (min-width: 992px) {
  #category-nav {
    max-height: 80px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, border-color 0.25s ease;
  }
}

#category-nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 0 20px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  max-width: 1440px;
  margin: 0 auto;
}

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

.cat-nav-item {
  font-size: 12px;
  font-family: var(--font-family-sans);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--foreground);
  padding: 14px 16px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  transition: all 0.25s ease;
  display: inline-block;
  flex-shrink: 0;
}

.cat-nav-item:hover,
.cat-nav-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(184, 134, 75, 0.05);
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */

#footer {
  background: var(--card);
  padding: 60px 40px 0;
  border-top: 1px solid var(--border);
}

#footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  max-width: 1360px;
  margin: 0 auto;
}

#footer-logo-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

#footer-logo-col img {
  max-height: 64px;
  width: auto;
}

.footer-brand-desc {
  font-size: 13px;
  color: var(--muted-foreground);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col-title {
  font-size: 13px;
  font-family: var(--font-family-sans);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13px;
  color: var(--foreground);
  font-family: var(--font-family-sans);
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

#newsletter-desc {
  font-size: 13px;
  color: var(--muted-foreground);
  font-family: var(--font-family-sans);
  line-height: 1.6;
  margin-bottom: 16px;
}

#newsletter-desc span {
  color: var(--primary);
  font-weight: 600;
}

#newsletter-input-row {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--background);
  transition: border-color 0.2s ease;
}

#newsletter-input-row:focus-within {
  border-color: var(--primary);
}

#newsletter-input-row input {
  flex: 1;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--foreground);
  font-family: var(--font-family-sans);
  border: none;
  outline: none;
  background: transparent;
}

#newsletter-input-row input::placeholder {
  color: var(--muted-foreground);
}

#newsletter-btn {
  background: var(--accent);
  color: #ffffff;
  padding: 12px 18px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#newsletter-btn:hover {
  background: var(--primary);
}

#footer-bottom {
  padding: 24px 0;
  text-align: center;
}

#footer-tagline {
  font-size: 11px;
  font-family: var(--font-family-sans);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted-foreground);
  font-weight: 600;
}

#footer-gold-bar {
  background: var(--primary);
  height: 6px;
  width: 100%;
}

/* Common Section Title Wrappers */
.section-title-wrap {
  text-align: center;
  margin-bottom: 40px;
}

.section-title-wrap h2 {
  font-size: 36px;
  color: var(--accent);
  font-family: var(--font-family-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.section-title-wrap h2::before,
.section-title-wrap h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  background: var(--primary);
  opacity: 0.8;
}

.section-title-wrap p {
  font-size: 14px;
  color: var(--muted-foreground);
  margin-top: 6px;
  font-family: var(--font-family-sans);
}

/* ==========================================================================
   BUTTON & COMPONENT SYSTEM (50-900 BRAND COLOR RULES)
   ========================================================================== */

.btn-primary,
.btn-tsc-gold,
.btn-admin-gold,
.btn-gold {
  background: var(--color-primary-500, #b8864b) !important;
  color: #ffffff !important;
  border: 1px solid var(--color-primary-500, #b8864b) !important;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-md, 6px);
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(184, 134, 75, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-primary:hover,
.btn-tsc-gold:hover,
.btn-admin-gold:hover,
.btn-gold:hover {
  background: var(--color-primary-600, #a0733c) !important;
  border-color: var(--color-primary-600, #a0733c) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(184, 134, 75, 0.35);
}

.btn-primary:active,
.btn-tsc-gold:active,
.btn-admin-gold:active,
.btn-gold:active {
  background: var(--color-primary-700, #845d2e) !important;
  border-color: var(--color-primary-700, #845d2e) !important;
  color: #ffffff !important;
  transform: translateY(0);
}

.btn-secondary {
  background: var(--color-secondary-300, #efe4d9) !important;
  color: var(--foreground, #11301a) !important;
  border: 1px solid var(--color-secondary-400, #e3d2c1) !important;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-md, 6px);
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--color-secondary-400, #e3d2c1) !important;
  color: var(--foreground, #11301a) !important;
  border-color: var(--color-secondary-500, #d5bfa8) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-secondary:active {
  background: var(--color-secondary-500, #d5bfa8) !important;
  transform: translateY(0);
}

.btn-tsc-outline,
.btn-outline-primary,
.btn-outline-gold {
  background: transparent !important;
  color: var(--color-primary-500, #b8864b) !important;
  border: 1.5px solid var(--color-primary-500, #b8864b) !important;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-md, 6px);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-tsc-outline:hover,
.btn-outline-primary:hover,
.btn-outline-gold:hover {
  background: var(--color-primary-500, #b8864b) !important;
  color: #ffffff !important;
  border-color: var(--color-primary-500, #b8864b) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(184, 134, 75, 0.25);
}

.btn-tsc-outline:active,
.btn-outline-primary:active,
.btn-outline-gold:active {
  background: var(--color-primary-700, #845d2e) !important;
  border-color: var(--color-primary-700, #845d2e) !important;
}

/* Side Buttons & Sidebar Filter Buttons */
.btn-mobile-filter {
  background: var(--card, #ffffff) !important;
  color: var(--foreground, #11301a) !important;
  border: 1.5px solid var(--color-primary-500, #b8864b) !important;
  box-shadow: 0 2px 8px rgba(184, 134, 75, 0.12) !important;
}

.btn-mobile-filter iconify-icon,
.btn-mobile-filter i {
  color: var(--color-primary-500, #b8864b) !important;
}

.btn-mobile-filter:hover {
  background: var(--color-primary-500, #b8864b) !important;
  color: #ffffff !important;
}

.btn-mobile-filter:hover iconify-icon,
.btn-mobile-filter:hover i {
  color: #ffffff !important;
}

.btn-clear-all {
  background: transparent !important;
  color: var(--color-primary-500, #b8864b) !important;
  border: 1.5px solid var(--color-primary-500, #b8864b) !important;
}

.btn-clear-all:hover {
  background: var(--color-primary-500, #b8864b) !important;
  color: #ffffff !important;
}

/* Side Action Buttons on Cards */
.tsc-product-card .card-icons button {
  color: var(--foreground, #11301a);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tsc-product-card .card-icons button iconify-icon,
.tsc-product-card .card-icons button i {
  color: inherit;
  font-size: 16px;
}

.tsc-product-card .card-icons button:hover,
.tsc-product-card .card-icons button.active {
  background: var(--color-primary-500, #b8864b) !important;
  color: #ffffff !important;
  border-color: var(--color-primary-500, #b8864b) !important;
}

/* Side Pagination Navigation Buttons */
.tsc-pagination-btn,
.tsc-pagination button {
  background: var(--card, #ffffff);
  color: var(--foreground, #11301a);
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.tsc-pagination-btn:hover:not(.active),
.tsc-pagination button:hover:not(.active) {
  border-color: var(--color-primary-500, #b8864b);
  color: var(--color-primary-500, #b8864b);
  background: var(--color-primary-50, #fbf7f1);
}

.tsc-pagination-btn.active,
.tsc-pagination button.active {
  background: var(--color-primary-500, #b8864b) !important;
  color: #ffffff !important;
  border-color: var(--color-primary-500, #b8864b) !important;
}

/* Status Component Colors */
.badge-success, .alert-success {
  background-color: var(--color-primary-50, #fbf7f1);
  color: var(--color-primary-700, #845d2e);
  border: 1px solid var(--color-primary-200, #e9d0ae);
}

.badge-warning, .alert-warning {
  background-color: var(--color-secondary-50, #fdfbf8);
  color: var(--color-secondary-900, #624f3f);
  border: 1px solid var(--color-secondary-200, #f4e7d7);
}

/* Back to top button */
#back-to-top {
  box-shadow: 0 4px 16px rgba(0,0,0,0.2) !important;
}

#back-to-top:hover {
  background: var(--accent) !important;
  transform: translateY(-3px);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1199px) {
  #desktop-nav {
    padding: 14px 24px;
  }
  .top-nav-links {
    gap: 14px;
  }
  #search-box {
    max-width: 230px;
  }
  #search-box:focus-within {
    max-width: 260px;
  }
}

@media (max-width: 991px) {
  #desktop-nav {
    display: none;
  }
  #mobile-nav {
    display: flex;
  }
  #mobile-search-box {
    display: flex;
  }
  #category-nav-inner {
    justify-content: flex-start;
    padding: 0 12px;
  }
  .cat-nav-item {
    padding: 10px 14px;
    font-size: 11px;
  }
  #footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  #footer {
    padding: 44px 24px 0;
  }
}

@media (max-width: 768px) {
  .section-title-wrap h2 {
    font-size: 28px;
    gap: 12px;
  }
  .section-title-wrap h2::before,
  .section-title-wrap h2::after {
    width: 28px;
  }
  #footer {
    padding: 40px 20px 0;
    text-align: center;
  }
  #footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  #footer-logo-col {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
  }
  .footer-brand-desc {
    max-width: 340px;
    margin: 0 auto;
    text-align: center;
  }
  .footer-col-title {
    text-align: center;
    margin-bottom: 14px;
  }
  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 16px;
    justify-items: center;
    text-align: center;
  }
  .footer-links a {
    text-align: center;
  }
  .footer-links a:hover {
    transform: translateY(-2px);
  }
  #newsletter-desc {
    text-align: center;
    max-width: 340px;
    margin: 0 auto 16px;
  }
  #newsletter-input-row {
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  #footer {
    padding: 36px 16px 0;
  }
  #footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 12px;
  }
  .footer-links a {
    font-size: 12px;
  }
  #mobile-logo img {
    max-height: 44px;
  }
  .section-title-wrap h2 {
    font-size: 24px;
  }
  .section-title-wrap p {
    font-size: 12px;
  }
}
