/* ==========================================================================
   RSS OPTICAL SPAIN / 株式会社ＲＳＳ　ＳＯＬＵＴＩＯＮＳ
   Core Design System & Responsive Stylesheet
   Compliant with WCAG 2.1 AA / AAA standards
   ========================================================================== */

:root {
  /* Color Palette - Japanese Precision & Medical Clarity */
  --color-primary: #0f2b48;          /* Deep Navy / Precision Trust */
  --color-primary-light: #1e3a5f;
  --color-primary-dark: #0a1c30;
  --color-accent: #0284c7;           /* Optical Cyan / Refraction Blue */
  --color-accent-hover: #0369a1;
  --color-gold: #c59b27;             /* Japanese Craftsmanship Gold */
  --color-gold-light: #fef9c3;
  --color-success: #15803d;          /* Forest Green */
  --color-text-main: #1e293b;        /* Slate 800 - 11.5:1 contrast on white */
  --color-text-muted: #475569;       /* Slate 600 - 5.8:1 contrast on white */
  --color-text-light: #64748b;
  --color-bg-main: #f8fafc;          /* Pure crisp background */
  --color-bg-card: #ffffff;
  --color-bg-alt: #f1f5f9;
  --color-border: #cbd5e1;
  --color-border-light: #e2e8f0;

  /* Focus & Accessibility Indicators */
  --focus-ring-color: #2563eb;
  --focus-ring-width: 3px;
  --focus-ring-offset: 3px;

  /* Typography Scale */
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Georgia", "Cambria", serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --font-size-scale: 1rem;
  
  /* Layout Spacing */
  --container-max-width: 1200px;
  --header-height: 80px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 43, 72, 0.08);
  --shadow-lg: 0 10px 25px rgba(15, 43, 72, 0.12);
  --transition-speed: 0.25s;
}

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

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

body {
  font-family: var(--font-base);
  font-size: var(--font-size-scale);
  line-height: 1.6;
  color: var(--color-text-main);
  background-color: var(--color-bg-main);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Skip to Content - Critical WCAG 2.4.1 Requirement */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: #000000;
  color: #ffd700;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  z-index: 9999;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  border: 2px solid #ffd700;
  transition: top 0.2s ease-in-out;
}

.skip-link:focus {
  top: 0;
}

/* Focus Visible Styling - WCAG 2.4.7 */
:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

a {
  color: var(--color-accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--color-primary);
}

img, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* Main Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ==========================================================================
   GLOBAL ACCESSIBILITY TOOLBAR
   ========================================================================== */
.a11y-bar {
  background-color: var(--color-primary-dark);
  color: #ffffff;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 101;
}

.a11y-bar__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.a11y-bar__hotline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.a11y-bar__hotline:hover,
.a11y-bar__hotline:focus-visible {
  color: #fef08a;
  text-decoration: underline;
}

.a11y-bar__tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.a11y-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.25rem 0.65rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 36px;
  transition: all var(--transition-speed);
}

.a11y-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
}

.a11y-btn--active {
  background: #ffd700;
  color: #000000;
  border-color: #ffd700;
  font-weight: 700;
}

/* ==========================================================================
   PRIMARY HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  background-color: var(--color-bg-card);
  border-bottom: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  height: auto;
  gap: 1.5rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  color: var(--color-primary);
}

.site-brand__emblem {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.5px;
  box-shadow: 0 2px 8px rgba(15, 43, 72, 0.25);
}

.site-brand__text {
  display: flex;
  flex-direction: column;
}

.site-brand__title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--color-primary);
  line-height: 1.2;
}

.site-brand__subtitle {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav__list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 1rem;
}

.site-nav__link {
  color: var(--color-text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-speed);
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
  color: var(--color-accent);
  background-color: var(--color-bg-alt);
}

.site-nav__link[aria-current="page"] {
  border-bottom: 2px solid var(--color-accent);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

/* Cart Button */
.btn-cart {
  position: relative;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  min-height: 44px;
  min-width: 44px;
  transition: all var(--transition-speed);
}

.btn-cart:hover {
  background: #e2e8f0;
  border-color: var(--color-accent);
}

.btn-cart__badge {
  background-color: #dc2626;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 9999px;
  padding: 0.1rem 0.45rem;
  min-width: 1.25rem;
  text-align: center;
}

/* Mobile Nav Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

/* ==========================================================================
   INSTITUTIONAL TRUST RIBBON
   ========================================================================== */
.trust-ribbon {
  background: linear-gradient(90deg, #0a1c30 0%, #0f2b48 50%, #1e3a5f 100%);
  color: #ffffff;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  border-bottom: 2px solid var(--color-gold);
}

.trust-ribbon__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  align-items: center;
}

.trust-ribbon__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.trust-ribbon__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-gold);
}

.trust-ribbon__text strong {
  display: block;
  color: #ffffff;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
}

.trust-ribbon__text span {
  color: #cbd5e1;
  font-size: 0.775rem;
}

/* ==========================================================================
   NON-SURGICAL & CLINICAL RIGOR DISCLAIMER BANNER
   ========================================================================== */
.disclaimer-banner {
  background-color: #eff6ff;
  border-left: 4px solid var(--color-accent);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.disclaimer-banner__content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #1e3a5f;
}

.disclaimer-banner__content svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--color-accent);
}

/* ==========================================================================
   BUTTONS & ACTIONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  min-height: 48px;
  min-width: 48px;
  line-height: 1.2;
  transition: all var(--transition-speed);
}

.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  color: #ffffff;
  text-decoration: none;
}

.btn-dark {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn-dark:hover {
  background-color: var(--color-primary-light);
  color: #ffffff;
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  text-decoration: none;
}

.btn-gold {
  background-color: var(--color-gold);
  color: #000000;
  font-weight: 800;
}

.btn-gold:hover {
  background-color: #b0881f;
  text-decoration: none;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
  min-height: 38px;
}

/* ==========================================================================
   TYPOGRAPHY & SECTIONS
   ========================================================================== */
.section {
  padding: 3.5rem 0;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent-hover);
  background-color: #e0f2fe;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

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

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Cards */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

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

/* ==========================================================================
   PRODUCT CARDS & CATALOG
   ========================================================================== */
.product-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed);
  position: relative;
}

.product-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.product-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card__badge--gold {
  background: var(--color-gold);
  color: #000000;
}

.product-card__media {
  background: #f1f5f9;
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed);
}

.product-card:hover .product-card__media img {
  transform: scale(1.04);
}

.product-card__media svg {
  max-height: 140px;
  width: auto;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.product-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card__category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.product-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.product-card__desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  flex-grow: 1;
}

/* Visual Context Badge for Low-Vision shoppers */
.visual-context-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  background: #f8fafc;
  border: 1px dashed var(--color-border);
  color: var(--color-text-main);
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.product-card__diopters {
  margin-bottom: 1.25rem;
}

.product-card__diopters label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 0.35rem;
}

.select-diopter {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  font-size: 0.875rem;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-light);
}

.product-card__price {
  display: flex;
  flex-direction: column;
}

.price-amount {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.price-iva {
  font-size: 0.7rem;
  color: var(--color-text-light);
  margin-top: 0.15rem;
}

/* ==========================================================================
   FORMS & INPUTS (WCAG ACCESSIBLE)
   ========================================================================== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-text-main);
  margin-bottom: 0.4rem;
}

.form-label__req {
  color: #dc2626;
  margin-left: 0.2rem;
}

.form-hint {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background-color: #ffffff;
  min-height: 48px;
  transition: border-color var(--transition-speed);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--color-text-main);
}

.form-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  accent-color: var(--color-accent);
  cursor: pointer;
}

/* ==========================================================================
   GLOBAL FOOTER & LEGAL RECORDS
   ========================================================================== */
.site-footer {
  background-color: var(--color-primary-dark);
  color: #94a3b8;
  padding-top: 3.5rem;
  padding-bottom: 5rem; /* extra space for mobile bottom bar */
  margin-top: auto;
  border-top: 3px solid var(--color-accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col__title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.3px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.legal-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #cbd5e1;
}

.legal-box h3 {
  color: #ffffff;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-box p {
  margin-bottom: 0.5rem;
}

.legal-box p:last-child {
  margin-bottom: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
}

/* ==========================================================================
   MOBILE FIXED BOTTOM BAR (WCAG 48x48px Targets)
   ========================================================================== */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 900;
  padding: 0.25rem 0;
}

.mobile-bottom-bar__nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
  text-align: center;
}

.mobile-bottom-bar__item a,
.mobile-bottom-bar__item button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.4rem 0.2rem;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.725rem;
  font-weight: 600;
  min-height: 48px;
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
}

.mobile-bottom-bar__item a:hover,
.mobile-bottom-bar__item button:hover,
.mobile-bottom-bar__item a[aria-current="page"] {
  color: var(--color-accent);
}

.mobile-bottom-bar__icon {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   HERO BANNER & TRUST RIBBONS
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, #0f2b48 0%, #1e3a5f 100%);
  color: #ffffff;
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at 80% 50%, rgba(2, 132, 199, 0.25), transparent 70%);
  pointer-events: none;
}

.hero__content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fef08a;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.hero__lead {
  font-size: 1.2rem;
  color: #e2e8f0;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero__title {
    font-size: 2.2rem;
  }
}

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

  body {
    padding-bottom: 64px; /* Clearance for fixed mobile bottom bar */
  }

  .site-header__inner {
    min-height: 60px;
    padding: 0.5rem 0;
    gap: 0.75rem;
  }

  .site-brand {
    gap: 0.625rem;
    flex-shrink: 1;
    min-width: 0;
  }

  .site-brand__emblem {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 0.95rem;
    flex-shrink: 0;
  }

  .site-brand__text {
    min-width: 0;
    display: flex;
    flex-direction: column;
  }

  .site-brand__title {
    font-size: 1.05rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-brand__subtitle {
    font-size: 0.7rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
  }

  .site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .btn-cart {
    padding: 0.4rem 0.6rem;
    min-height: 40px;
    min-width: 40px;
    position: relative;
    justify-content: center;
    gap: 0.25rem;
  }

  /* Compact cart in header on mobile */
  .btn-cart > span:not(.btn-cart__badge) {
    display: none !important;
  }

  .btn-cart .btn-cart__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 0.65rem;
    padding: 0.1rem 0.35rem;
    min-width: 18px;
    line-height: 1;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0.4rem;
    flex-shrink: 0;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 2px solid var(--color-accent);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    z-index: 150;
  }
  
  .site-nav.is-open {
    display: block;
  }
  
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    padding: 0 1.25rem;
    gap: 0.5rem;
  }

  .mobile-bottom-bar {
    display: block;
  }

  .a11y-bar {
    padding: 0.4rem 0;
  }

  .a11y-bar__container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
  }

  .a11y-bar__hotline {
    font-size: 0.775rem;
    white-space: nowrap;
    text-align: center;
    justify-content: center;
  }

  .a11y-bar__tools {
    justify-content: center;
    width: 100%;
    gap: 0.25rem;
  }

  .a11y-btn {
    padding: 0.2rem 0.45rem;
    font-size: 0.75rem;
    min-height: 32px;
  }

  .trust-ribbon {
    padding: 0.6rem 0;
    font-size: 0.8125rem;
  }

  .trust-ribbon__grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .trust-ribbon__item {
    gap: 0.5rem;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .section-title {
    font-size: 1.65rem;
  }
  
  .hero {
    padding: 2.5rem 0;
  }

  .hero__title {
    font-size: 1.75rem;
    line-height: 1.25;
  }

  .hero__lead {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .card {
    padding: 1.25rem 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
  }

  .site-header__inner {
    min-height: 54px;
    padding: 0.35rem 0;
    gap: 0.4rem;
  }

  .site-brand {
    gap: 0.45rem;
    max-width: calc(100% - 86px);
  }

  .site-brand__emblem {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 0.8rem;
  }

  .site-brand__title {
    font-size: 0.9375rem;
    letter-spacing: -0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-brand__subtitle {
    display: none; /* Crucial: removes awkward multi-line breakage that caused header overflow */
  }

  .site-header__actions {
    gap: 0.35rem;
  }

  .btn-cart {
    padding: 0.35rem;
    min-width: 38px;
    min-height: 38px;
  }

  .mobile-menu-toggle {
    padding: 0.35rem;
    min-width: 38px;
    min-height: 38px;
  }

  .a11y-bar__hotline {
    font-size: 0.72rem;
  }

  .a11y-btn {
    padding: 0.15rem 0.35rem;
    font-size: 0.7rem;
    min-height: 30px;
  }

  .hero__title {
    font-size: 1.45rem;
  }

  .section-title {
    font-size: 1.4rem;
  }
}
