/* ============================================================
   Brochure Factory Theme — main.css
   Base styles, layout, typography, components.
   All design values come from CSS custom properties so the
   plugin's theme-options page can override them via :root.
   ============================================================ */


/* ── 1. Design Tokens ──────────────────────────────────────── */

:root {
  /* Colors (overridden by plugin's theme-options in Session 3) */
  --color-primary:      #ff4500;
  --color-primary-dark: #cc3700;
  --color-secondary:    #1a1a2e;
  --color-background:   #ffffff;
  --color-surface:      #f6f6f8;
  --color-text:         #2d2d2d;
  --color-heading:      #1a1a2e;
  --color-menu-text:    #d9d9d9;
  --color-menu-text-hover: #ffffff;
  --color-button-text:      #ffffff;
  --color-button-text-hover:#ffffff;
  --color-text-muted:   #686878;
  --color-border:       #e2e2e8;
  --color-white:        #ffffff;

  /* Typography */
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-xs:   0.75rem;   /*  12px */
  --text-sm:   0.875rem;  /*  14px */
  --text-base: 1rem;      /*  16px */
  --text-lg:   1.125rem;  /*  18px */
  --text-xl:   1.25rem;   /*  20px */
  --text-2xl:  1.5rem;    /*  24px */
  --text-3xl:  2rem;      /*  32px */
  --text-4xl:  2.75rem;   /*  44px */
  --text-5xl:  3.5rem;    /*  56px */

  --leading-tight:  1.2;
  --leading-normal: 1.6;

  /* Spacing (8-point scale) */
  --space-1:  0.25rem;   /*  4px */
  --space-2:  0.5rem;    /*  8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */

  /* Layout */
  --container-max:  1200px;
  --container-pad:  1.5rem;
  --header-height:      70px;
  --header-height-tall: 100px;

  /* Borders & Shadows */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0 0 0 / 0.08);
  --shadow-md: 0 4px 16px rgba(0 0 0 / 0.10);
  --shadow-lg: 0 8px 32px rgba(0 0 0 / 0.14);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast:   150ms;
  --duration-normal: 250ms;
  --duration-slow:   400ms;
}


/* ── 2. Reset ────────────────────────────────────────────────── */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

/* WordPress admin bar injects html { margin-top: 32px } for logged-in users,
   shifting body down and causing 32px of overflow on top of min-height: 100svh.
   Subtract that margin so the total document height stays at 100svh. */
.admin-bar body {
  min-height: calc(100svh - 32px);
}

@media screen and (max-width: 782px) {
  .admin-bar body {
    min-height: calc(100svh - 46px);
  }
}

img,
picture,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}


/* ── 3. Typography ───────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--color-heading);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); font-weight: 600; }

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; }
em     { font-style: italic; }

.entry-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content a:hover {
  color: var(--color-primary-dark);
}


/* ── 4. Layout ───────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Section defaults */
.section {
  padding-block: var(--space-24);
}

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

/* Short hero variant used on inner pages */
.section--hero-sm {
  padding-block: var(--space-16);
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.section--hero-sm h1,
.section--hero-sm h2 {
  color: var(--color-white);
}


/* ── 5. Buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    color            var(--duration-fast) var(--ease-out),
    border-color     var(--duration-fast) var(--ease-out),
    transform        var(--duration-fast) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.btn:active {
  transform: translateY(1px);
}

/* Primary */
.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-button-text);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-button-text-hover);
}

/* Ghost / secondary */
.btn--secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-button-text-hover);
}


/* ── 6. Site Header ──────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height-tall);
  background-color: var(--color-secondary);
  color: var(--color-white);
  box-shadow: none;
  transition:
    height     var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out);
}

.site-header.is-scrolled {
  height: var(--header-height);
  box-shadow: var(--shadow-md);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--color-white);
}

/* WordPress outputs <a class="custom-logo-link"><img class="custom-logo"></a>.
   Cap the image to fit inside the header with 16px breathing room. */
.site-logo .custom-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
}

.site-logo img,
.site-logo .custom-logo {
  height: calc(var(--header-height-tall) - 30px);  /* 100px header → 70px logo */
  max-height: calc(var(--header-height-tall) - 30px);
  width: auto;
  transition:
    height     var(--duration-slow) var(--ease-out),
    max-height var(--duration-slow) var(--ease-out);
}

.site-header.is-scrolled .site-logo img,
.site-header.is-scrolled .site-logo .custom-logo {
  height: calc(var(--header-height) - 24px);   /* 72px header → 48px logo */
  max-height: calc(var(--header-height) - 24px);
}

.site-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

.site-footer .site-name {
  color: rgba(255 255 255 / 0.85);
}


/* ── 7. Primary Navigation ───────────────────────────────────── */

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

#primary-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Top-level items */
#primary-menu > li > a {
  display: block;
  padding: var(--space-2) var(--space-4);
  color: var(--color-menu-text);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast), background-color var(--duration-fast);
}

#primary-menu > li > a:hover,
#primary-menu > li > a:focus-visible {
  color: var(--color-menu-text-hover);
  background-color: rgba(255 255 255 / 0.10);
  outline: none;
}

#primary-menu .current-menu-item > a,
#primary-menu .current_page_item > a,
#primary-menu .current-menu-ancestor > a {
  color: var(--color-primary);
}

/* Dropdown sub-menus */
#primary-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: var(--color-secondary);
  border-top: 2px solid var(--color-primary);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-2) 0;
  z-index: 200;
}

#primary-menu li {
  position: relative;
}

#primary-menu li:hover > .sub-menu,
#primary-menu li:focus-within > .sub-menu {
  display: block;
}

#primary-menu .sub-menu a {
  display: block;
  padding: var(--space-3) var(--space-6);
  color: var(--color-menu-text);
  font-size: var(--text-sm);
  transition: color var(--duration-fast), background-color var(--duration-fast);
}

#primary-menu .sub-menu a:hover {
  color: var(--color-menu-text-hover);
  background-color: rgba(255 255 255 / 0.08);
}

/* Chevron indicator on desktop for parent items */
#primary-menu .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: var(--space-2);
  opacity: 0.65;
  vertical-align: middle;
  transition: transform var(--duration-fast), opacity var(--duration-fast);
}

#primary-menu li:hover > a::after,
#primary-menu li:focus-within > a::after {
  transform: rotate(-135deg) translateY(-2px);
  opacity: 1;
}

/* Sub-menu toggle button — injected by nav.js, visible only on mobile */
.sub-menu-toggle {
  display: none;
}

/* Mobile hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  color: var(--color-menu-text-hover);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: background-color var(--duration-fast);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background-color: rgba(255 255 255 / 0.10);
  outline: none;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition:
    transform var(--duration-fast) var(--ease-out),
    opacity   var(--duration-fast);
}

.nav-toggle__bar + .nav-toggle__bar {
  margin-top: 5px;
}

/* Animated cross when open */
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ── 8. Site Footer ──────────────────────────────────────────── */

.site-footer {
  background-color: var(--color-secondary);
  color: rgba(255 255 255 / 0.85);
  padding-block: var(--space-12);
  margin-top: auto;
}

.site-footer .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}

.footer-logo img,
.footer-logo .custom-logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.footer-divider {
  width: 1px;
  height: 56px;
  background-color: rgba(255 255 255 / 0.2);
  flex-shrink: 0;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-contact__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: rgba(255 255 255 / 0.75);
  font-size: var(--text-sm);
  transition: color var(--duration-fast);
}

.footer-contact__item:hover {
  color: var(--color-white);
}

.footer-contact__icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--color-primary);
}

.footer-contact__icon svg {
  width: 16px;
  height: 16px;
}

.footer-social {
  display: flex;
  align-items: center;
}

.footer-nav #footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1) var(--space-6);
}

.footer-nav a {
  font-size: var(--text-sm);
  color: rgba(255 255 255 / 0.7);
  transition: color var(--duration-fast);
}

.footer-nav a:hover {
  color: var(--color-white);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(255 255 255 / 0.5);
}

/* Shared social icons (contact + footer) */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.social-links__item {
  position: relative;
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition:
    transform var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out);
}

.social-links__item img {
  width: 50px;
  height: 50px;
  display: block;
  object-fit: contain;
}

.social-links__item::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background-color: rgba(0 0 0 / 0.85);
  color: var(--color-white);
  font-size: var(--text-xs);
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
  z-index: 5;
}

.social-links__item:hover::after,
.social-links__item:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.social-links__item:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.social-links--footer .social-links__item {
  width: 30px;
  height: 30px;
  background-color: rgba(255 255 255 / 0.08);
}

.social-links--footer .social-links__item img {
  width: 30px;
  height: 30px;
}

.social-links--footer .social-links__item:hover {
  background-color: rgba(255 255 255 / 0.16);
  transform: translateY(-1px);
}


/* ── 9. Carousel skeleton ────────────────────────────────────── */
/*
 * Minimal layout so category cards are visible in Session 1.
 * The full slider (controls, autoplay, swipe) is built in Session 3.
 */

.carousel__track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

.carousel__card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background-color: var(--color-white);
  transition: box-shadow var(--duration-normal) var(--ease-out),
              transform  var(--duration-normal) var(--ease-out);
}

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

.carousel__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.carousel__content {
  padding: var(--space-6);
  flex: 1;
}

.carousel__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
  color: var(--color-heading);
}

.carousel__tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}


/* ── 10. Hero skeleton ───────────────────────────────────────── */
/*
 * Minimal styles for the Session 1 hero placeholder.
 * Replaced with full parallax hero in Session 3.
 */

.section--hero {
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding-block: var(--space-24);
}

.section--hero h1,
.section--hero h2 {
  color: var(--color-white);
  font-size: var(--text-5xl);
  margin-bottom: var(--space-4);
}

.section--hero p {
  font-size: var(--text-xl);
  color: rgba(255 255 255 / 0.8);
  max-width: 640px;
  margin-inline: auto;
}


/* ── 11. Product category page ───────────────────────────────── */

.product-category__title {
  color: var(--color-white);
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 20px rgba(0 0 0 / 0.7);
}

.product-category__tagline {
  font-size: var(--text-xl);
  color: rgba(255 255 255 / 0.9);
  margin: 0;
  text-shadow: 0 1px 8px rgba(0 0 0 / 0.6);
}

.product-category__cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.product-category__cta .container {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.product-category__description {
  max-width: 780px;
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
}


/* ── 12. Contact page ────────────────────────────────────────── */

.contact-page__subheading {
  font-size: var(--text-lg);
  color: rgba(255 255 255 / 0.8);
  margin-top: var(--space-4);
}

.contact-form-placeholder {
  max-width: 600px;
  margin-inline: auto;
  padding: var(--space-12);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--color-text-muted);
}


/* ── 13. 404 page ────────────────────────────────────────────── */

.error-404 {
  padding-block: var(--space-24);
}

.error-404 h1 {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-6);
}

.error-404 p {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}


/* ── 14. Utility classes ─────────────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-center { text-align: center; }
.text-left   { text-align: left;   }
.text-right  { text-align: right;  }

.placeholder-notice {
  color: var(--color-text-muted);
  font-style: italic;
  font-size: var(--text-sm);
}


/* ── 15. WordPress admin bar offset ─────────────────────────── */

.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}


/* ── 16. Responsive ──────────────────────────────────────────── */

@media (max-width: 768px) {

  /* Scale down the largest type on mobile */
  :root {
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --text-3xl: 1.625rem;
    --text-2xl: 1.25rem;
    --container-pad: 1rem;
    --space-24: 4rem;
    --space-20: 3rem;
    --space-16: 2.5rem;
    /* Header is always compact on mobile — no tall state */
    --header-height-tall: var(--header-height);
  }

  /* Always show the shadow on mobile; disable shrink transitions entirely */
  .site-header {
    box-shadow: var(--shadow-md);
    transition: none;
  }

  /* Neutralize the scrolled logo rule — size stays the same as default */
  .site-logo img,
  .site-logo .custom-logo,
  .site-header.is-scrolled .site-logo img,
  .site-header.is-scrolled .site-logo .custom-logo {
    height: calc(var(--header-height) - 24px);
    max-height: calc(var(--header-height) - 24px);
    transition: none;
  }

  /* Show hamburger, collapse menu */
  .nav-toggle {
    display: flex;
  }

  #primary-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background-color: var(--color-secondary);
    border-top: 1px solid rgba(255 255 255 / 0.08);
    padding-block: var(--space-2);
    z-index: 99;
    box-shadow: var(--shadow-md);
  }

  #primary-menu.is-open {
    display: flex;
  }

  #primary-menu > li > a {
    padding: var(--space-4) var(--space-6);
    border-radius: 0;
    font-size: var(--text-base);
  }

  /* ── Mobile sub-menu accordion ──────────────────────────────── */

  /* Hide desktop chevron ::after; the toggle button takes its role */
  #primary-menu .menu-item-has-children > a::after {
    display: none;
  }

  /* Parent item: flex row so <a> + toggle button sit side by side */
  #primary-menu .menu-item-has-children {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  #primary-menu .menu-item-has-children > a {
    flex: 1;
  }

  /* Sub-menu: static (accordion), not absolute (dropdown) */
  #primary-menu .sub-menu {
    display: none;
    position: static;
    width: 100%;         /* fill the row below parent + button */
    flex-basis: 100%;
    min-width: 0;
    background-color: rgba(0 0 0 / 0.25);
    border-top: none;
    border-left: 3px solid var(--color-primary);
    border-radius: 0;
    box-shadow: none;
    padding: var(--space-1) 0;
    z-index: auto;
  }

  /* Open state — toggled by nav.js via .sub-menu-open on the <li> */
  #primary-menu .menu-item-has-children.sub-menu-open > .sub-menu {
    display: block;
  }

  #primary-menu .sub-menu a {
    padding-left: var(--space-8);
  }

  /* Sub-menu disclosure button */
  .sub-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    color: var(--color-menu-text);
    border-radius: var(--radius-sm);
    transition: background-color var(--duration-fast);
  }

  .sub-menu-toggle:hover,
  .sub-menu-toggle:focus-visible {
    background-color: rgba(255 255 255 / 0.10);
    outline: none;
  }

  /* CSS chevron icon drawn with borders */
  .sub-menu-toggle__icon {
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform var(--duration-fast);
  }

  .sub-menu-toggle[aria-expanded="true"] .sub-menu-toggle__icon {
    transform: rotate(-135deg) translateY(-2px);
  }

  /* Single-column carousel on mobile */
  .carousel__track {
    grid-template-columns: 1fr;
  }

  /* Footer: stack vertically on mobile */
  .site-footer .container {
    flex-direction: column;
    gap: var(--space-6);
  }

  .footer-divider {
    width: 48px;
    height: 1px;
  }

  .footer-contact {
    align-items: center;
  }

}

@media (max-width: 480px) {
  .btn {
    width: 100%;
    justify-content: center;
  }

  .product-category__cta .container {
    flex-direction: column;
    align-items: stretch;
  }
}
