/* ==========================================================================
   IxoraSaw — Luxury Artisan Brand Stylesheet
   Fully Responsive: Mobile (320px+), Tablet (768px-1024px), Desktop & Big Screens (1440px+)
   Color Themes: Light (White/Ivory/Onyx) & Dark (Obsidian/Gold/Crimson)
   ========================================================================== */

/* Modern WOFF2 Fonts with swap to eliminate render blocking */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/cormorantgaramond/v21/co3smX5slCNuHLi8bLeY9MK7whWMhyjYrGFEsdtdc62E6zd58jD-iNM8A_ipUA.woff2') format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/cormorantgaramond/v21/co3umX5slCNuHLi8bLeY9MK7whWMhyjypVO7abI26QOD_iE9KnTOitk7Ifo.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/plusjakartasans/v12/LDIoaomQNQcsA88c7O9yZ4KMCoOg4Ko20yygg_vb.woff2') format('woff2');
}

:root {
  --brand-red: #c81d25;
  --brand-red-dark: #9e141a;
  --brand-black: #111111;
  --brand-charcoal: #242220;
  --brand-cream: #faf7f2;
  --brand-sand: #f4ede3;
  --brand-gold: #c5a059;
  --brand-gold-dark: #7c5a1e;
  --text-primary: #1a1816;
  --text-secondary: #5a544e;
  --text-muted: #6e6760;
  --border-light: #eae3d7;
  --border-subtle: #f2ece3;
  --bg-primary: #ffffff;
  --bg-secondary: #faf7f2;
  --bg-header: rgba(255, 255, 255, 0.96);
  --card-bg: #ffffff;
  --card-border: #eae3d7;
  --card-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
  --modal-overlay: rgba(0, 0, 0, 0.7);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --brand-black: #f8f6f2;
  --brand-charcoal: #e2ddd5;
  --brand-cream: #17181c;
  --brand-sand: #202227;
  --brand-gold: #dfb96c;
  --brand-gold-dark: #e5c378;
  --text-primary: #f5f2eb;
  --text-secondary: #bab4a9;
  --text-muted: #a39c93;
  --border-light: #2c2e35;
  --border-subtle: #22242a;
  --bg-primary: #101114;
  --bg-secondary: #17181c;
  --bg-header: rgba(16, 17, 20, 0.96);
  --card-bg: #18191d;
  --card-border: #292b33;
  --card-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  --modal-overlay: rgba(0, 0, 0, 0.85);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, .serif {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--brand-black);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

.container-xl {
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 48px;
  padding-right: 48px;
}

.skip-link {
  position: absolute;
  top: -120px;
  left: 20px;
  background: var(--brand-red);
  color: #ffffff !important;
  padding: 12px 20px;
  z-index: 9999;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 14px;
}

/* ==========================================================================
   Top Announcement Bar
   ========================================================================== */
.announcement-bar {
  background-color: #111111;
  color: #f5f2eb;
  font-size: 0.80rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 9px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.announcement-bar a {
  color: var(--brand-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  margin-left: 6px;
}

.announcement-bar a:hover {
  color: #ffffff;
}

/* ==========================================================================
   Header & Sticky Navigation
   ========================================================================== */
header {
  background: var(--bg-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 14px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
}

.logo-dark {
  display: none;
}

.logo-light {
  display: block;
}

[data-theme="dark"] .logo-dark {
  display: block;
}

[data-theme="dark"] .logo-light {
  display: none;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-center a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
}

.nav-center a:hover,
.nav-center a.active {
  color: var(--brand-red);
}

.nav-center a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--brand-red);
  transition: width 0.25s ease;
}

.nav-center a:hover::after,
.nav-center a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* ==========================================================================
   Sliding Luxury Theme Switcher
   ========================================================================== */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-sans);
  color: var(--text-primary);
  transition: var(--transition);
  touch-action: manipulation;
  user-select: none;
}

.theme-toggle-btn:hover {
  border-color: var(--brand-gold);
}

.theme-switch-track {
  width: 42px;
  height: 22px;
  background: #ded7cc;
  border-radius: 999px;
  position: relative;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  display: flex;
  align-items: center;
  padding: 2px;
}

[data-theme="dark"] .theme-switch-track {
  background: #2a2c34;
  border: 1px solid rgba(223, 185, 108, 0.4);
}

.theme-switch-thumb {
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
  transform: translateX(0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .theme-switch-thumb {
  transform: translateX(20px);
  background: #111111;
}

.sun-icon {
  display: block;
  color: #d97706;
}

.moon-icon {
  display: none;
  color: var(--brand-gold);
}

[data-theme="dark"] .sun-icon {
  display: none;
}

[data-theme="dark"] .moon-icon {
  display: block;
}

.theme-mode-text {
  font-size: 0.80rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}

.btn-header-etsy {
  background: var(--brand-red);
  color: #ffffff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(200, 29, 37, 0.25);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-header-etsy:hover {
  background: var(--brand-red-dark);
  box-shadow: 0 6px 18px rgba(200, 29, 37, 0.4);
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.25rem;
  color: var(--brand-black);
  cursor: pointer;
  line-height: 1;
}

/* ==========================================================================
   Buttons & Core Elements
   ========================================================================== */
.btn-primary {
  background: var(--brand-red);
  color: #ffffff !important;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(200, 29, 37, 0.25);
  cursor: pointer;
  border: 1px solid var(--brand-red);
}

.btn-primary:hover {
  background: var(--brand-red-dark);
  border-color: var(--brand-red-dark);
  box-shadow: 0 8px 24px rgba(200, 29, 37, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--brand-black);
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid var(--border-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  cursor: pointer;
}

.btn-outline:hover {
  border-color: var(--brand-black);
  background: var(--bg-secondary);
}

[data-theme="dark"] .btn-outline {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

[data-theme="dark"] .btn-outline:hover {
  border-color: var(--brand-gold);
  background: rgba(255, 255, 255, 0.06);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.80rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-gold-dark);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--brand-black);
  margin-bottom: 14px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ==========================================================================
   Catalog Controls: Responsive Filter Tabs, Search & Sort
   ========================================================================== */
.catalog-controls {
  margin-bottom: 36px;
}

.search-sort-row {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.search-box-wrap {
  position: relative;
  flex-grow: 1;
  max-width: 520px;
}

.search-input {
  width: 100%;
  padding: 12px 18px 12px 42px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--card-bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(200, 29, 37, 0.1);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.sort-select {
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--card-bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.sort-select:focus {
  border-color: var(--brand-red);
}

.filter-tabs-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.filter-btn {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-btn:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.filter-btn.active {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #ffffff;
}

.filter-btn .count-badge {
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
}

.filter-btn.active .count-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

[data-theme="dark"] .filter-btn {
  background: #191a1e;
  border-color: #2e3038;
  color: #d1cbc2;
}

[data-theme="dark"] .filter-btn:hover {
  border-color: var(--brand-red);
  color: #ffffff;
}

[data-theme="dark"] .filter-btn.active {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #ffffff;
}

/* ==========================================================================
   Product Cards & Fluid Responsive Grid
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow);
  border-color: var(--brand-gold);
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect */
  background: var(--bg-secondary);
  overflow: hidden;
}

.product-img-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.product-img-link img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.5s ease;
}

.product-img-link .img-secondary {
  opacity: 0;
  pointer-events: none;
}

.product-card:hover .product-img-link .img-primary.has-secondary {
  opacity: 0;
}

.product-card:hover .product-img-link .img-secondary {
  opacity: 1;
  transform: scale(1.04);
}

.product-card:hover .product-img-link .img-primary:not(.has-secondary) {
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
}

.product-quick-view-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  color: var(--brand-black);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px);
  transition: var(--transition);
  z-index: 3;
}

.product-card:hover .product-quick-view-btn {
  opacity: 1;
  transform: translateY(0);
}

.product-quick-view-btn:hover {
  background: var(--brand-red);
  color: #ffffff;
  border-color: var(--brand-red);
}

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

.product-subtitle {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.product-subtitle.is-founder {
  color: var(--brand-gold-dark);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.product-title {
  font-size: 1.22rem;
  color: var(--brand-black);
  margin-bottom: 8px;
  line-height: 1.25;
}

.product-title a {
  color: inherit;
}

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

.product-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

.product-card-footer {
  padding: 14px 20px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-price-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.product-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-black);
}

.product-stock-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2b7a4b;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

[data-theme="dark"] .product-stock-tag {
  color: #4ade80;
}

/* HIGH CONTRAST ETSY CARD BUTTON (Always vibrant crimson with white text) */
.btn-card-etsy {
  background: var(--brand-red);
  color: #ffffff !important;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--brand-red);
  box-shadow: 0 4px 12px rgba(200, 29, 37, 0.25);
  transition: var(--transition);
}

.btn-card-etsy:hover {
  background: var(--brand-red-dark);
  border-color: var(--brand-red-dark);
  box-shadow: 0 6px 18px rgba(200, 29, 37, 0.4);
  transform: translateY(-1px);
}

[data-theme="dark"] .btn-card-etsy {
  background: var(--brand-red);
  color: #ffffff !important;
  border-color: var(--brand-red);
}

[data-theme="dark"] .btn-card-etsy:hover {
  background: #e02832;
  border-color: #e02832;
}

/* ==========================================================================
   Quick View Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--modal-overlay);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--brand-black);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--brand-red);
  color: #ffffff;
  border-color: var(--brand-red);
}

.modal-gallery {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-secondary);
}

.modal-main-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
}

.modal-thumbs-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.modal-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  flex-shrink: 0;
}

.modal-thumb.active {
  border-color: var(--brand-red);
}

.modal-details {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.modal-details h3 {
  font-size: 1.7rem;
  margin-bottom: 12px;
  line-height: 1.25;
}

.modal-details .modal-price-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.modal-details .modal-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-red);
  margin-bottom: 0;
}

.modal-stock-badge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(43, 122, 75, 0.12);
  color: #2b7a4b;
  border: 1px solid rgba(43, 122, 75, 0.25);
}

[data-theme="dark"] .modal-stock-badge {
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.25);
}

.modal-stock-badge.low-stock {
  background: rgba(200, 29, 37, 0.1);
  color: var(--brand-red);
  border-color: rgba(200, 29, 37, 0.25);
}

[data-theme="dark"] .modal-stock-badge.low-stock {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
}

.product-stock-tag.low-stock {
  color: var(--brand-gold-dark);
}

[data-theme="dark"] .product-stock-tag.low-stock {
  color: var(--brand-gold);
}

.modal-details .modal-desc {
  font-size: 0.90rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 16px;
  white-space: pre-line;
}

.modal-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  max-height: 82px;
  overflow-y: auto;
}

.modal-tag-pill {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 3px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
}

.modal-tag-pill:hover {
  border-color: var(--brand-gold);
  color: var(--brand-black);
}


/* ==========================================================================
   Footer (Always Dark, Transparent Logo with White Text & Red Accent)
   ========================================================================== */
footer {
  background: #111111;
  color: #c9c3ba;
  padding: 80px 48px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 56px;
  margin-bottom: 60px;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 20px;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  max-width: 230px;
  display: block;
}

.footer-col-main p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #a49e95;
  margin-bottom: 16px;
  max-width: 360px;
}

.footer-col h4,
.footer-col .footer-col-title {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 20px;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 0.88rem;
  color: #b3aca3;
  transition: var(--transition);
}

.footer-col a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1360px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #a8a29a;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom a {
  color: #a8a29a;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   Responsive Breakpoints: Big Screen (1400px+), Tablet (768-1024px), Mobile (<768px)
   ========================================================================== */

/* BIG SCREEN OPTIMIZATIONS (1400px and up) */
@media (min-width: 1400px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .hero-main-title {
    font-size: 4.2rem !important;
  }
}

/* TABLET OPTIMIZATIONS (768px to 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  header {
    padding: 14px 32px;
  }
  .nav-center {
    gap: 22px;
  }
  .hero-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
  }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 28px !important;
  }
  .categories-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
  }
  .reviews-screenshots-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr !important;
    gap: 36px !important;
  }
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* MOBILE AND SMALL TABLETS (< 992px) */
@media (max-width: 992px) {
  .nav-center {
    display: none;
  }
  .nav-center.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    padding: 24px;
    box-shadow: 0 16px 36px rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--border-light);
    gap: 16px;
    z-index: 1001;
  }
  .mobile-menu-btn {
    display: block;
  }
  .modal-card {
    grid-template-columns: 1fr;
  }
}

/* SMARTPHONE & NARROW SCREENS (< 768px) */
@media (max-width: 768px) {
  header {
    padding: 12px 18px;
  }
  .brand-logo-img {
    height: 38px;
    max-width: 160px;
  }
  .theme-toggle-btn .theme-mode-text {
    display: none; /* Just show the sleek sliding toggle on mobile */
  }
  .theme-toggle-btn {
    padding: 4px;
  }
  .btn-header-etsy span:first-child {
    display: none;
  }
  .btn-header-etsy::before {
    content: "Etsy";
  }
  .btn-header-etsy {
    padding: 7px 12px;
    font-size: 0.80rem;
  }

  /* Hero Section */
  .hero-section-wrap {
    padding: 50px 20px 40px !important;
  }
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
  .hero-main-title {
    font-size: clamp(2.3rem, 9vw, 3rem) !important;
    margin-bottom: 18px !important;
  }
  .hero-btn-row {
    flex-direction: column;
    width: 100%;
  }
  .hero-btn-row a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .hero-img-box img {
    height: 340px !important;
  }
  .hero-floating-badge {
    left: 14px !important;
    right: 14px !important;
    bottom: -16px !important;
    padding: 10px 16px !important;
  }

  /* Pillars */
  .pillars-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 32px 20px !important;
  }

  /* Category Spotlights */
  .categories-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Catalog Controls */
  .search-sort-row {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box-wrap {
    max-width: 100%;
  }
  .sort-select {
    width: 100%;
  }

  /* Products Grid: 1 or 2 columns on mobile */
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
  }

  /* Story Teaser */
  .story-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
  .story-imgs-duo {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  .story-imgs-duo img {
    height: 240px !important;
  }

  /* Reviews */
  .reviews-section-wrap {
    padding: 60px 18px !important;
  }
  .reviews-cards-grid {
    grid-template-columns: 1fr !important;
  }
  .reviews-screenshots-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .reviews-screenshots-grid img {
    height: 180px !important;
  }

  /* Footer */
  footer {
    padding: 60px 20px 30px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
}

@media (max-width: 400px) {
  .brand-logo-img {
    height: 32px;
    max-width: 135px;
  }
  .hero-img-box img {
    height: 280px !important;
  }
  .story-imgs-duo {
    grid-template-columns: 1fr !important;
  }
  .reviews-screenshots-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Deep link target highlight pulse */
.highlight-pulse {
  outline: 3px solid var(--brand-gold) !important;
  box-shadow: 0 0 28px rgba(197, 160, 89, 0.55) !important;
  transform: translateY(-4px);
  transition: all 0.35s ease;
}
