/*
 * refresh.css — La Boutique UI modernization overlay
 * Linked LAST so it overrides bootstrap.min.css, font-awesome,
 * flexslider, and the active color-scheme CSS.
 *
 * DO NOT edit HTML or other CSS files.
 * Organized sections:
 *   1. CSS Custom Properties (:root)
 *   2. Reset helpers & global base
 *   3. Typography
 *   4. Links
 *   5. Buttons
 *   6. Form inputs
 *   7. Header (sticky, search pill, mini-cart)
 *   8. Navigation (main menu, hamburger button)
 *   9. FlexSlider
 *  10. Product cards / product-list
 *  11. Widgets & sidebars
 *  12. Footer & credits
 *  13. Accessibility (focus-visible, motion, selection, scrollbar)
 *  14. Dark mode (conservative, optional)
 *  15. Responsive overrides
 */

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   Default accent: refined teal/emerald.
   The color-scheme CSS may override --lb-accent if desired,
   but these vars make every component below themable from one place.
   ============================================================ */
:root {
  /* Brand accent (default: refined teal — swap in any scheme) */
  --lb-accent:        #0d9488;   /* teal-600, distinct from alizarin red */
  --lb-accent-hover:  #0f766e;   /* teal-700 */
  --lb-accent-light:  #ccfbf1;   /* teal-100, for soft highlights */

  /* Text palette */
  --lb-ink:           #1f2937;   /* near-black for headings/body */
  --lb-muted:         #6b7280;   /* grey-500 for captions/meta */
  --lb-subtle:        #9ca3af;   /* grey-400 */

  /* Backgrounds & surfaces */
  --lb-bg:            #f3f4f6;   /* page background */
  --lb-surface:       #ffffff;   /* cards, boxes */
  --lb-surface-alt:   #f9fafb;   /* alternate surface (footer bg, etc.) */

  /* Borders */
  --lb-border:        #e5e7eb;   /* default border */
  --lb-border-strong: #d1d5db;   /* stronger border on inputs */

  /* Shape */
  --lb-radius:        8px;       /* standard card radius */
  --lb-radius-sm:     4px;       /* small radius */
  --lb-radius-pill:   9999px;    /* pill radius */

  /* Shadows */
  --lb-shadow-sm:     0 1px 3px 0 rgb(0 0 0 / 0.08), 0 1px 2px -1px rgb(0 0 0 / 0.06);
  --lb-shadow:        0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --lb-shadow-lg:     0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);

  /* Focus ring */
  --lb-focus-ring:    0 0 0 3px rgb(13 148 136 / 0.35);

  /* Spacing scale (supplement Bootstrap's rhythm) */
  --lb-space-1:       4px;
  --lb-space-2:       8px;
  --lb-space-3:       12px;
  --lb-space-4:       16px;
  --lb-space-5:       20px;
  --lb-space-6:       24px;
  --lb-space-8:       32px;
  --lb-space-10:      40px;
  --lb-space-12:      48px;

  /* Typography */
  --lb-font:          system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --lb-font-size-base: 16px;
  --lb-line-height:   1.6;
  --lb-transition:    150ms ease;
}

/* ============================================================
   2. RESET HELPERS & GLOBAL BASE
   ============================================================ */

/* Safe image defaults */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Body base */
body {
  font-family: var(--lb-font);
  font-size: var(--lb-font-size-base);
  line-height: var(--lb-line-height);
  color: var(--lb-ink);
  background-color: var(--lb-bg);
}

/* Page wrapper */
.wrapper {
  background-color: var(--lb-bg);
}

/* Box-sizing safety (Bootstrap 3 usually handles this, but be explicit) */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Custom text selection */
::selection {
  background-color: var(--lb-accent);
  color: #ffffff;
}
::-moz-selection {
  background-color: var(--lb-accent);
  color: #ffffff;
}

/* Custom scrollbar — subtle, WebKit only */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--lb-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--lb-border-strong);
  border-radius: var(--lb-radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--lb-muted);
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--lb-font);
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 1.25;
  color: var(--lb-ink);
}

/* Tighten the oversized defaults from alizarin.css */
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem);  }
h2 { font-size: clamp(1.5rem,  3.5vw, 2rem);   }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem);   }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem;     }

p {
  margin-bottom: var(--lb-space-4);
}

/* Widget / card headings rendered in h3 at 14px */
.product-list a .title h3 {
  font-size: 0.9375rem; /* 15px */
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  margin: 0;
}

/* ============================================================
   4. LINKS
   ============================================================ */

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

a:hover,
a:focus {
  color: var(--lb-accent-hover);
  text-decoration: underline;
}

/* Heading links stay undecorated */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
  text-decoration: none;
  color: inherit;
}
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
  text-decoration: none;
  color: var(--lb-accent);
}

/* ============================================================
   5. BUTTONS
   ============================================================ */

.btn {
  font-family: var(--lb-font);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--lb-space-2);
  padding: 10px 20px;
  font-size: 0.8125rem;   /* 13px */
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: var(--lb-radius);
  cursor: pointer;
  transition:
    background-color var(--lb-transition),
    transform var(--lb-transition),
    box-shadow var(--lb-transition);
  background-image: none;
  box-shadow: var(--lb-shadow-sm);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--lb-shadow);
  text-decoration: none;
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--lb-shadow-sm);
}

/* Primary button — driven by the accent custom property */
.btn-primary {
  background-color: var(--lb-accent);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--lb-accent-hover);
  color: #ffffff;
}

/* Large button */
.btn-lg {
  padding: 14px 28px;
  font-size: 0.875rem;
  border-radius: var(--lb-radius);
}

/* Small button */
.btn-sm {
  padding: 7px 14px;
  font-size: 0.75rem;
  border-radius: var(--lb-radius-sm);
}

/* Default (neutral) button */
.btn:not([class*="btn-"]),
.btn.btn-default {
  background-color: var(--lb-border-strong);
  color: var(--lb-ink);
}

.btn:not([class*="btn-"]):hover,
.btn.btn-default:hover {
  background-color: var(--lb-muted);
  color: #ffffff;
}

/* Focus-visible ring for all buttons */
.btn:focus-visible {
  outline: none;
  box-shadow: var(--lb-focus-ring);
}

/* Block on xs */
@media (max-width: 767px) {
  .btn-block-xs {
    display: block;
    width: 100%;
    border-radius: var(--lb-radius);
  }
}

/* ============================================================
   6. FORM INPUTS
   ============================================================ */

select,
textarea,
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"],
.uneditable-input {
  font-family: var(--lb-font);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--lb-ink);
  background-color: var(--lb-surface);
  border: 1px solid var(--lb-border-strong);
  border-radius: var(--lb-radius-sm);
  padding: 8px 12px !important;
  box-shadow: none;
  transition: border-color var(--lb-transition), box-shadow var(--lb-transition);
}

select:focus,
textarea:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="time"]:focus,
input[type="week"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="color"]:focus,
.uneditable-input:focus {
  border-color: var(--lb-accent);
  outline: none;
  box-shadow: var(--lb-focus-ring);
  background-color: var(--lb-surface);
}

/* Labels */
label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--lb-ink);
  margin-bottom: var(--lb-space-1);
}

/* ============================================================
   7. HEADER — sticky, cleaner spacing, search pill, mini-cart
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 250;
  background-color: var(--lb-surface);
  box-shadow: var(--lb-shadow-sm);
}

/* Bottom strip (logo + search row) */
.header .bottom {
  background-color: var(--lb-surface);
  padding: var(--lb-space-2) 0;
  box-shadow: none;  /* shadow is on .header now */
}

/* Logo */
.header .logo {
  padding: var(--lb-space-3) 0;
}
.header .logo a {
  display: inline-flex;
  align-items: center;
  height: 52px;
  text-decoration: none;
}
.header .logo img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

/* Search pill */
.search {
  padding: var(--lb-space-5) 0;
}

.search .qs_s #query,
input#query {
  background-color: var(--lb-surface-alt);
  border: 1px solid var(--lb-border-strong);
  border-radius: var(--lb-radius-pill) !important;
  padding: 8px 18px !important;
  height: 38px;
  width: 100%;
  font-family: var(--lb-font);
  font-size: 0.9rem;
  color: var(--lb-ink);
  transition: border-color var(--lb-transition), box-shadow var(--lb-transition);
  box-shadow: none;
}

.search .qs_s #query:focus,
input#query:focus {
  border-color: var(--lb-accent);
  background-color: var(--lb-surface);
  box-shadow: var(--lb-focus-ring);
  outline: none;
}

/* Mini-cart badge */
.mini-cart {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 15px;
}
.mini-cart a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--lb-radius-sm);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.8;
  transition: opacity var(--lb-transition);
}
.mini-cart a:hover {
  opacity: 1;
}
.mini-cart a > span {
  background-color: var(--lb-accent);
  border-radius: var(--lb-radius-pill);
  width: 18px;
  height: 18px;
  font-size: 10px;
  line-height: 18px;
  top: 0;
  right: 0;
}

/* Top bar */
.header .top {
  background-color: #374151;   /* slightly softer than stock #474948 */
  font-size: 0.8rem;
}
.header .top a:hover {
  color: var(--lb-accent-light);
}

/* Autocomplete results */
.search #autocomplete-results ul {
  border-left: 4px solid var(--lb-accent);
  border-radius: var(--lb-radius-sm);
  box-shadow: var(--lb-shadow);
}
.search #autocomplete-results ul li.active a {
  background-color: var(--lb-accent);
}

/* ============================================================
   8. NAVIGATION
   ============================================================ */

nav.navigation {
  background-color: var(--lb-surface);
  border-top: 1px solid var(--lb-border);
  border-bottom: 1px solid var(--lb-border);
  box-shadow: none;
  position: relative;
  z-index: 240;
}

/* Top-level menu items */
#menu-main-navigation.main-menu > li > a,
.main-menu > li > a {
  font-family: var(--lb-font);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--lb-muted);
  padding: 16px 24px 16px 0;
  position: relative;
  transition: color var(--lb-transition);
}

/* Hover underline instead of background flash */
#menu-main-navigation.main-menu > li > a::after,
.main-menu > li > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--lb-accent);
  transition: width var(--lb-transition);
}

.main-menu > li:hover > a,
.main-menu > li > a:hover {
  color: var(--lb-accent);
  background: none;
}

.main-menu > li:hover > a::after,
.main-menu > li > a:hover::after {
  width: 100%;
}

/* Remove the hard background-colour hover from the legacy rule */
.main-menu li:hover > a {
  background-color: transparent;
  color: var(--lb-accent);
}

/* Sub-menu (dropdown) */
.main-menu li ul {
  border-top: 3px solid var(--lb-accent);
  border-radius: 0 0 var(--lb-radius-sm) var(--lb-radius-sm);
  box-shadow: var(--lb-shadow);
  background-color: var(--lb-surface);
}

.main-menu li ul li a {
  color: var(--lb-ink);
  transition: background-color var(--lb-transition), color var(--lb-transition);
}

.main-menu li ul li a:hover {
  background-color: var(--lb-accent-light);
  color: var(--lb-accent);
}

/* Megamenu container */
.megamenu_container {
  height: auto;
}

/* Mobile hamburger button */
.main-menu-button {
  background-color: var(--lb-ink) !important;
  color: #ffffff !important;
  border-radius: var(--lb-radius-sm) !important;
  padding: 10px 16px !important;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-top: 8px;
  text-decoration: none;
  transition: background-color var(--lb-transition);
}
.main-menu-button:hover,
.main-menu-button:focus,
.main-menu-button:active {
  background-color: var(--lb-accent) !important;
  color: #ffffff !important;
  text-decoration: none;
}

/* Mobile menu item hover */
@media only screen and (max-width: 979px) {
  .main-menu li ul li a:hover,
  .main-menu li a:hover {
    background-color: var(--lb-accent) !important;
    color: #ffffff !important;
    border-radius: var(--lb-radius-sm);
  }
}

/* ============================================================
   9. FLEXSLIDER
   ============================================================ */

.flexslider {
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0 0 var(--lb-space-6);
}

.flexslider .slides img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Caption text */
.flexslider .caption h3 {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 4px rgb(0 0 0 / 0.5);
}

/* ============================================================
   10. PRODUCT CARDS / PRODUCT LIST
   ============================================================ */

.product-list li {
  margin-bottom: var(--lb-space-6);
}

/* Card (the <a> element acts as the card) */
.product-list a {
  background-color: var(--lb-surface);
  border: 1px solid var(--lb-border);
  border-radius: var(--lb-radius);
  overflow: hidden;
  box-shadow: var(--lb-shadow-sm);
  transition:
    transform var(--lb-transition),
    box-shadow var(--lb-transition);
  text-decoration: none;
  color: var(--lb-ink);
  display: block;
}

.product-list a:hover {
  transform: translateY(-3px);
  box-shadow: var(--lb-shadow-lg);
  text-decoration: none;
  color: var(--lb-ink);
}

/* Product image container */
.product-list a .image {
  background-color: var(--lb-surface-alt);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.product-list a .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 300ms ease;
}

/* On hover, subtle zoom on primary; secondary crossfade handled by existing rules */
.product-list a:hover .image img.primary {
  transform: scale(1.03);
}

/* Secondary image stays absolutely positioned (existing pattern) */
.product-list a .image .secondary {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 250ms ease;
  opacity: 0;
}
.product-list a:hover .image .secondary {
  opacity: 1;
}

/* Title area */
.product-list a .title {
  padding: var(--lb-space-4) var(--lb-space-4) var(--lb-space-5);
  background-color: var(--lb-surface);
  /* Remove the decorative diamond pseudo-element by neutralising it */
}

.product-list a .title::before {
  display: none;
}

/* Price — emphasised in accent */
.product-list a .title .prices .price {
  color: var(--lb-accent);
  font-weight: 700;
  font-size: 1rem;
}

.product-list a .title .prices .base {
  color: var(--lb-subtle);
  font-size: 0.8125rem;
  text-decoration: line-through;
}

/* SALE badge */
.product-list a .image .badge-sale {
  background-color: var(--lb-accent);
  border-radius: var(--lb-radius-sm) var(--lb-radius-sm) 0 var(--lb-radius-sm);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 7px;
  color: #ffffff;
}

/* Rating hearts */
.product-list a .title .rating {
  color: var(--lb-border-strong);
  margin-top: var(--lb-space-2);
}
.product-list a:hover .title .rating {
  color: var(--lb-accent);
}

/* Add-to-cart button (appears on product pages) */
.add-to-cart {
  background-color: var(--lb-accent);
  color: #ffffff;
  border-radius: var(--lb-radius);
  font-weight: 600;
  transition: background-color var(--lb-transition), transform var(--lb-transition), box-shadow var(--lb-transition);
}
.add-to-cart:hover,
.add-to-cart:focus {
  background-color: var(--lb-accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--lb-shadow);
}

/* Small product list (sidebar best-sellers) */
.product-list-small .image a:hover {
  border-color: var(--lb-accent);
}
.product-list-small .desc h6 a:hover {
  color: var(--lb-accent);
}
.product-list-small li:hover .desc .rating {
  color: var(--lb-accent);
}

/* ============================================================
   11. WIDGETS & SIDEBARS
   ============================================================ */

.widget {
  border-top: 4px solid var(--lb-accent);
  border-radius: 0 0 var(--lb-radius-sm) var(--lb-radius-sm);
  box-shadow: var(--lb-shadow-sm);
  background-color: var(--lb-surface);
}

.widget.Categories a:hover,
.widget.Menu a:hover,
.widget.Categories a:focus,
.widget.Menu a:focus {
  background-color: var(--lb-accent);
  color: #ffffff;
}

.widget.Categories a:hover .count,
.widget.Menu a:hover .count,
.widget.Categories a:focus .count,
.widget.Menu a:focus .count {
  background-color: #ffffff;
  color: var(--lb-accent);
}

/* Box component */
.box {
  border-radius: var(--lb-radius-sm);
  box-shadow: var(--lb-shadow-sm);
  background-color: var(--lb-surface);
}

.box.border-top { border-top: 4px solid var(--lb-accent); }
.box.border-right { border-right: 4px solid var(--lb-accent); }
.box.border-bottom { border-bottom: 4px solid var(--lb-accent); }
.box.border-left { border-left: 4px solid var(--lb-accent); }

/* Nav-tabs */
.nav-tabs {
  border-bottom: 4px solid var(--lb-accent);
}
.nav-tabs li a:hover {
  color: var(--lb-accent);
}
.nav-tabs li.active > div,
.nav-tabs li.active a,
.nav-tabs li.active a:hover,
.nav-tabs li.active a:active,
.nav-tabs li.active a:focus {
  background-color: var(--lb-accent);
  color: #ffffff;
}

/* Breadcrumbs */
.breadcrumb a:hover,
.breadcrumb a:focus {
  color: var(--lb-accent);
}

/* Panel navigation */
.panel-navigation a:hover {
  background-color: var(--lb-accent);
  color: #ffffff;
  border-color: var(--lb-accent);
}
.panel.border-top    { border-top: 4px solid var(--lb-accent); }
.panel.border-right  { border-right: 4px solid var(--lb-accent); }
.panel.border-bottom { border-bottom: 4px solid var(--lb-accent); }
.panel.border-left   { border-left: 4px solid var(--lb-accent); }

/* Category sidebar */
.category .sidebar .category-list .list-group-item.active,
.category .sidebar .category-list .list-group-item.active:hover,
.category .sidebar .category-list .list-group-item.active:focus {
  background-color: var(--lb-accent);
  color: #ffffff;
}
.category .sidebar .price-filter .ui-slider .ui-slider-range {
  background-color: var(--lb-accent);
}
.category .sidebar .price-filter #slider-label strong {
  color: var(--lb-accent);
}

/* List accent colours */
.list-border li {
  border-left-color: var(--lb-accent);
}
.list-chevron li::before {
  color: var(--lb-accent);
}

/* ============================================================
   12. FOOTER & CREDITS
   ============================================================ */

.footer {
  background-color: var(--lb-surface);
  border-top: 1px solid var(--lb-border);
  box-shadow: none;
  font-size: 0.9rem;
  color: var(--lb-muted);
  padding: var(--lb-space-10) 0;
}

.footer h6 {
  color: var(--lb-ink);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: var(--lb-space-4);
}

.footer .links a {
  color: var(--lb-muted);
  transition: color var(--lb-transition);
  text-decoration: none;
}
.footer .links a:hover,
.footer .links a:focus {
  color: var(--lb-accent);
}

/* Newsletter form */
#newsletter_submit,
.footer #newsletter_submit {
  background-color: var(--lb-accent);
  color: #ffffff;
  border-radius: 0 var(--lb-radius-sm) var(--lb-radius-sm) 0;
  border: none;
  transition: background-color var(--lb-transition);
}
#newsletter_submit:hover,
.footer #newsletter_submit:hover {
  background-color: var(--lb-accent-hover);
}

/* Credits bar */
.credits {
  background-color: #1f2937;
  color: #9ca3af;
  font-size: 0.8rem;
  padding: var(--lb-space-3) 0;
}
.credits a {
  color: #d1d5db;
  text-decoration: none;
  transition: color var(--lb-transition);
}
.credits a:hover {
  color: #ffffff;
}

/* ============================================================
   13. ACCESSIBILITY
   ============================================================ */

/* Focus-visible ring for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--lb-focus-ring);
  border-radius: var(--lb-radius-sm);
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .product-list a:hover,
  .btn:hover,
  .add-to-cart:hover {
    transform: none !important;
  }

  .product-list a:hover .image img.primary {
    transform: none !important;
  }
}

/* ============================================================
   14. DARK MODE (conservative, scoped — won't fight light template)
   Only applied if OS reports dark preference.
   Uses a data attribute guard so it can be disabled easily:
   add data-force-light="true" to <html> to suppress.
   ============================================================ */

@media (prefers-color-scheme: dark) {
  html:not([data-force-light]) {
    --lb-bg:           #111827;
    --lb-surface:      #1f2937;
    --lb-surface-alt:  #27303f;
    --lb-ink:          #f9fafb;
    --lb-muted:        #9ca3af;
    --lb-subtle:       #6b7280;
    --lb-border:       #374151;
    --lb-border-strong:#4b5563;
    --lb-shadow-sm:    0 1px 3px 0 rgb(0 0 0 / 0.4), 0 1px 2px -1px rgb(0 0 0 / 0.3);
    --lb-shadow:       0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --lb-shadow-lg:    0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.3);
  }

  html:not([data-force-light]) body {
    color: var(--lb-ink);
    background-color: var(--lb-bg);
  }

  html:not([data-force-light]) .header,
  html:not([data-force-light]) .header .bottom,
  html:not([data-force-light]) nav.navigation {
    background-color: var(--lb-surface);
    border-color: var(--lb-border);
  }

  html:not([data-force-light]) .footer,
  html:not([data-force-light]) .box,
  html:not([data-force-light]) .widget,
  html:not([data-force-light]) .product-list a {
    background-color: var(--lb-surface);
    border-color: var(--lb-border);
  }

  html:not([data-force-light]) .product-list a .title {
    background-color: var(--lb-surface);
  }

  html:not([data-force-light]) .credits {
    background-color: #0d1117;
  }
}

/* ============================================================
   15. RESPONSIVE
   ============================================================ */

/* xs (<576px) */
@media (max-width: 575px) {
  .header .logo a {
    height: 44px;
  }
  .search {
    padding: var(--lb-space-3) 0;
  }
  .mini-cart {
    top: var(--lb-space-3);
    transform: none;
  }
  nav.navigation {
    padding: 0;
  }
  .product-list a .title {
    padding: var(--lb-space-3);
  }
}

/* sm (576–767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .header .logo a {
    height: 48px;
  }
}

/* md (768–991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .main-menu > li > a {
    padding-left: 0;
    padding-right: 16px;
  }
}

/* General: ensure section spacing is comfortable */
@media (max-width: 767px) {
  .footer {
    padding: var(--lb-space-8) 0;
  }
  .footer .links {
    margin-bottom: var(--lb-space-8);
  }
  .main {
    padding: var(--lb-space-6) 0 var(--lb-space-10);
  }
}
