/* ==========================================================================
   MERCH VF - MILITARY TACTICAL DESIGN SYSTEM & THEME ENGINE
   ========================================================================== */

/* Fonty jsou self-hostované (assets/fonts/) — žádný přenos IP návštěvníka
   na Google, cookie souhlas se pro fonty nevyžaduje. Viz assets/css/fonts.css. */
@import url('fonts.css');

:root {
  /* Color Palette - Dark Tactical (Default) */
  --bg-primary: #0b0d0c;
  --bg-secondary: #131715;
  --bg-tertiary: #1b211e;
  --bg-card: rgba(23, 29, 26, 0.85);
  --bg-glass: rgba(15, 19, 17, 0.75);
  
  --border-color: rgba(75, 95, 78, 0.3);
  --border-highlight: #5b735f;
  
  --text-primary: #e6eae7;
  --text-secondary: #9ea9a1;
  --text-muted: #67736b;
  
  /* Brand Accent Colors */
  --accent-olive: #4a5d4c;
  --accent-olive-bright: #68846b;
  --accent-gold: #cba135;
  --accent-orange: #ff6b00;
  --accent-red: #d32f2f;
  --accent-blue: #1e88e5;
  
  --accent-glow: rgba(203, 161, 53, 0.2);
  --olive-glow: rgba(104, 132, 107, 0.25);
  
  /* Typography */
  --font-heading: 'Teko', 'Barlow Condensed', sans-serif;
  --font-subheading: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  
  /* Spacing & Layout */
  --header-height: 80px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-tactical: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 1px inset rgba(255, 255, 255, 0.1);
}

/* Light Theme Override */
[data-theme="light"] {
  --bg-primary: #f4f6f4;
  --bg-secondary: #e8ebe8;
  --bg-tertiary: #dbe0db;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-glass: rgba(244, 246, 244, 0.85);
  
  --border-color: rgba(60, 75, 63, 0.2);
  --border-highlight: #3c4b3f;
  
  --text-primary: #121813;
  --text-secondary: #3b463d;
  --text-muted: #69786c;
  
  --accent-olive: #3c4b3f;
  --accent-olive-bright: #2d3a30;
  --accent-glow: rgba(60, 75, 63, 0.15);
  --shadow-tactical: 0 10px 25px rgba(0, 0, 0, 0.08), 0 0 1px inset rgba(0, 0, 0, 0.1);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%; /* Lock font scaling across mobile OS settings */
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
  transition: background-color 0.4s ease, color 0.4s ease;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(74, 93, 76, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(203, 161, 53, 0.05) 0%, transparent 40%);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-olive);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
  font-weight: 700;
}

.text-gold { color: var(--accent-gold); }
.text-olive { color: var(--accent-olive-bright); }
.text-orange { color: var(--accent-orange); }

.badge-tactical {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-subheading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: rgba(74, 93, 76, 0.25);
  color: var(--accent-gold);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-sm);
  position: relative;
}

/* Semantic status colors (order/payment status lists — a cancelled or
   flagged order needs to visually stand out, not blend into every other
   badge on the page). */
.badge-tactical--danger { background: rgba(211, 47, 47, 0.18); border-color: var(--accent-red); color: var(--accent-red); }
.badge-tactical--success { background: rgba(104, 132, 107, 0.3); border-color: var(--accent-olive-bright); color: var(--accent-olive-bright); }
.badge-tactical--muted { background: var(--bg-tertiary); border-color: var(--border-color); color: var(--text-secondary); }
.badge-tactical--info { background: rgba(30, 136, 229, 0.16); border-color: var(--accent-blue); color: var(--accent-blue); }
.badge-tactical--warning { background: rgba(255, 107, 0, 0.16); border-color: var(--accent-orange); color: var(--accent-orange); }
.badge-tactical--purple { background: rgba(142, 97, 227, 0.16); border-color: #8e61e3; color: #8e61e3; }

/* Product star ratings — product card (small, next to price) and detail page. */
.star-rating { display: inline-flex; align-items: center; gap: 1px; letter-spacing: -1px; line-height: 1; }
.star-rating .star-avg-number { color: var(--accent-gold); font-weight: 700; letter-spacing: normal; margin-right: 3px; }
.star-rating .star-filled { color: var(--accent-gold); }
.star-rating .star-empty { color: var(--text-muted); }
.star-count { color: var(--text-muted); }

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background: var(--bg-glass);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1;
}

.logo-subtext {
  display: block;
  font-family: var(--font-subheading);
  font-size: 0.75rem;
  color: var(--accent-gold);
  letter-spacing: 1px;
  margin-top: -4px;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-subheading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-gold);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: var(--transition);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Tlačítko „€" v hlavičce — vychází z .btn-icon (stejné jako přepínač motivu).
   Nevýrazné = ceny jen v Kč; zlaté (.active) = nakupující chce i ceny v €. */
.currency-toggle.active {
  background: var(--accent-gold);
  color: #1b1e19;
  border-color: var(--accent-gold);
}
.currency-toggle.active:hover {
  color: #1b1e19;
  transform: translateY(-2px);
}

.btn-icon {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--font-subheading);
  font-weight: 700;
  transition: var(--transition);
}

.btn-icon:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

/* Shared CZ/EN/DE language switcher (homepage + every eshop page) */
.lang-switcher {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239ea9a1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 6px center / 14px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-subheading);
  padding: 7px 24px 7px 10px;
  cursor: pointer;
  transition: var(--transition);
}
.lang-switcher:hover {
  color: var(--text-primary);
  border-color: var(--accent-gold);
}

.btn-tactical {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--accent-olive) 0%, #1b211e 100%);
  border: 1px solid var(--border-highlight);
  color: #ffffff;
  font-family: var(--font-subheading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.btn-tactical:hover {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #a48126 100%);
  border-color: var(--accent-gold);
  color: #000000;
  box-shadow: 0 4px 14px rgba(203, 161, 53, 0.25);
  transform: translateY(-1px);
}

.btn-tactical-outline {
  background: transparent;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
}

.btn-tactical-outline:hover {
  background: var(--accent-gold);
  color: #000000;
}

/* Styled confirmation dialog (replaces browser confirm() — main.js confirmDialog()) */
.confirm-dialog {
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 28px;
  max-width: 420px;
  width: calc(100% - 40px);
  box-shadow: var(--shadow-tactical);
  /* The global `* { margin: 0 }` reset wipes out the browser's own
     `margin: auto` centering for <dialog>, which is what actually centers
     it on screen — without this it renders pinned to the top-left corner. */
  position: fixed;
  inset: 0;
  margin: auto;
}
.confirm-dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
}
.confirm-dialog-message {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 22px;
}
.confirm-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.confirm-dialog-actions .btn-tactical,
.confirm-dialog-actions .btn-tactical-outline {
  padding: 9px 20px;
  font-size: 0.85rem;
}

/* Mobile Toggle & Drawer */
.nav-mobile-toggle {
  display: none;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  font-size: 1.3rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 50% 30%, rgba(74, 93, 76, 0.25) 0%, var(--bg-primary) 75%);
  overflow: hidden;
}

.hero-overlay-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 4.5rem;
  line-height: 0.95;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 600px;
  border-left: 3px solid var(--accent-gold);
  padding-left: 16px;
}

.hero-slogans {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-large {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 35px rgba(0,0,0,0.8));
  animation: floatAnim 6s ease-in-out infinite;
}

@keyframes floatAnim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-badge-seal {
  position: absolute;
  bottom: -20px;
  right: -10px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  border: 2px solid var(--accent-gold);
  animation: spinSlow 35s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   SECTIONS COMMON STYLES
   ========================================================================== */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px auto;
}

.section-title {
  font-size: 2.4rem;
  margin-top: 10px;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ==========================================================================
   SHOWCASE & PRODUCTS PREVIEW
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-tactical);
  position: relative;
}

.product-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 15px var(--accent-glow);
}

.product-thumb {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  background: #000;
  overflow: hidden;
}

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

.product-card:hover .product-thumb img {
  transform: scale(1.08);
}

.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.85);
  color: var(--accent-gold);
  padding: 4px 10px;
  font-family: var(--font-subheading);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-gold);
  letter-spacing: 1px;
}

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

.product-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

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

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent-gold);

}

/* Orientační "≈ X €" pod cenou v Kč (Nastavení → Ceny v cizí měně).
   Vždy jen doplněk, nikdy náhrada za cenu v Kč. */
.price-eur-hint {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  margin-top: 2px;
}

/* ==========================================================================
   INTERACTIVE SIZE RECOMMENDER MODULE
   ========================================================================== */
.size-guide-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-tactical);
}

.size-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.size-tab-btn {
  padding: 12px 24px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-subheading);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.size-tab-btn.active, .size-tab-btn:hover {
  background: var(--accent-olive);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.size-guide-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.mannequin-visualizer {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 380px;
}

.mannequin-svg {
  width: 220px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.mannequin-highlight-line {
  stroke: var(--accent-gold);
  stroke-width: 3;
  stroke-dasharray: 6 3;
  animation: dashPulse 2s linear infinite;
}

@keyframes dashPulse {
  to { stroke-dashoffset: -18; }
}

.size-inputs-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-subheading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  color: var(--text-primary);
}

.form-range {
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  outline: none;
  accent-color: var(--accent-gold);
}

.size-result-box {
  margin-top: 24px;
  padding: 20px;
  background: rgba(203, 161, 53, 0.1);
  border: 2px dashed var(--accent-gold);
  border-radius: var(--radius-md);
  text-align: center;
}

.size-result-label {
  font-family: var(--font-subheading);
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.size-result-value {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--accent-gold);
  line-height: 1;
  margin: 6px 0;
}

/* ==========================================================================
   CUSTOM ORDER CALCULATOR MODULE
   ========================================================================== */
.calculator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-tactical);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

.calc-options-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.calc-option-group {
  margin-bottom: 24px;
}

.calc-select, .calc-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.calc-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239ea9a1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  cursor: pointer;
}

.calc-select:focus, .calc-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-glow);
}

.calc-placements {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.calc-checkbox-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-subheading);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
}

.calc-checkbox-btn.active {
  background: var(--accent-olive);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.calc-summary-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-price-total {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--accent-gold);
  line-height: 1;
}

.calc-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
  font-style: italic;
}

/* ==========================================================================
   FIELD TESTED GALLERY
   ========================================================================== */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.gallery-filter-btn {
  padding: 8px 18px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-subheading);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.gallery-filter-btn.active, .gallery-filter-btn:hover {
  background: var(--accent-olive);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: var(--shadow-tactical);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #fff;
}

/* ==========================================================================
   INSTAGRAM FEED MODULE
   ========================================================================== */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.ig-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text-primary);
}

.ig-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-4px);
}

.ig-img-wrap {
  width: 100%;
  padding-top: 100%;
  position: relative;
}

.ig-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig-caption {
  padding: 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   AI ASSISTANT WIDGET
   ========================================================================== */
.ai-widget-badge {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-olive) 0%, var(--accent-gold) 100%);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0,0,0,0.6), 0 0 15px var(--accent-glow);
  z-index: 1001;
  transition: var(--transition);
}

.ai-widget-badge:hover {
  transform: scale(1.1) rotate(5deg);
}

.ai-widget-window {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 360px;
  height: 500px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-tactical);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transition: var(--transition);
}

.ai-widget-window.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

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

.ai-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-chat-body {
  flex-grow: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.4;
}

.ai-msg-bot {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  align-self: flex-start;
  color: var(--text-primary);
}

.ai-msg-user {
  background: var(--accent-olive);
  color: #fff;
  align-self: flex-end;
}

.ai-quick-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--accent-gold);
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.ai-quick-btn:hover {
  border-color: var(--accent-gold);
  background: rgba(203, 161, 53, 0.1);
}

.ai-input-area {
  padding: 12px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 8px;
}

.ai-input {
  flex-grow: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  outline: none;
  font-size: 0.9rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px 0;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   SHARED DATA TABLE (cart, account order history, admin lists)
   ========================================================================== */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.cart-table th, .cart-table td { padding: 16px; border-bottom: 1px solid var(--border-color); text-align: left; }
.cart-table th { font-family: var(--font-subheading); color: var(--accent-gold); font-size: 1.1rem; text-transform: uppercase; }

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (MOBILE FIRST HIGH-PRECISION LAYOUT)
   ========================================================================== */
@media (max-width: 992px) {
  :root {
    --header-height: 70px;
  }
  
  .container {
    padding: 0 16px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
  }

  .hero-title {
    font-size: clamp(2.4rem, 7.5vw, 3.8rem);
    line-height: 1;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    margin: 0 auto 24px auto;
    text-align: center;
    border-left: none;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 12px;
    font-size: 1.05rem;
  }

  .hero-slogans {
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .btn-tactical {
    width: 100%;
    text-align: center;
  }

  .size-guide-layout, 
  .calc-grid, 
  .story-grid-responsive,
  #checkout-form {
    grid-template-columns: 1fr !important;
    gap: 24px !alignment;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .logo-img {
    height: 38px;
  }

  .logo-text {
    font-size: 1.5rem;
  }

  .logo-subtext {
    font-size: 0.65rem;
  }

  .nav-actions {
    gap: 8px;
  }

  .btn-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .nav-actions .btn-tactical {
    padding: 8px 12px;
    font-size: 0.8rem;
    letter-spacing: 0.8px;
  }

  .nav-mobile-toggle {
    display: inline-flex;
    width: 38px;
    height: 38px;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 13, 12, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    padding: 30px 20px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    border-bottom: 2px solid var(--accent-gold);
    overflow-y: auto;
    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 10px 20px;
    width: 100%;
    text-align: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
  }

  .hero-logo-large {
    max-width: 80%;
    margin: 0 auto;
  }

  .hero-badge-seal {
    width: 90px;
    height: 90px;
    bottom: -10px;
    right: 10px;
  }

  .section {
    padding: 48px 0;
  }

  .section-header {
    margin-bottom: 36px;
    padding: 0 8px;
  }

  .section-title {
    font-size: clamp(1.8rem, 6.5vw, 2.4rem);
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .size-guide-container, 
  .calculator-card {
    padding: 16px;
    border-radius: var(--radius-md);
  }

  .size-tabs {
    flex-direction: column;
    gap: 8px;
  }

  .size-tab-btn {
    width: 100%;
    padding: 10px 16px;
    font-size: 0.95rem;
  }

  .mannequin-visualizer {
    min-height: 240px;
    padding: 12px;
  }

  .mannequin-svg {
    width: 180px;
    max-height: 230px;
  }

  .size-inputs-card {
    padding: 16px;
  }

  .size-result-value {
    font-size: 3rem;
  }

  .calc-placements {
    flex-direction: column;
    gap: 8px;
  }

  .calc-checkbox-btn {
    width: 100%;
    justify-content: flex-start;
  }

  .calc-summary-card {
    padding: 16px;
  }

  .calc-price-total {
    font-size: 2.6rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ig-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Cart Table Responsive Mobile Card View */
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td {
    display: block;
    width: 100%;
  }

  .cart-table thead {
    display: none;
  }

  .cart-table tr {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 14px;
  }

  .cart-table td {
    padding: 6px 0;
    border-bottom: none;
  }

  /* AI Assistant Widget Mobile Fit */
  .ai-widget-badge {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }

  .ai-widget-window {
    width: calc(100vw - 32px);
    right: 16px;
    left: 16px;
    bottom: 76px;
    height: calc(100vh - 120px);
    max-height: 480px;
  }
}


