
/* ==========================================================================
   AGNABO SPIRITUAL STABLE 3.2.0
   Functional-first visual redesign built on the original tech theme.
   ========================================================================== */

:root {
  --ag-bg: #f7f4ed;
  --ag-surface: #ffffff;
  --ag-surface-soft: #fbfaf7;
  --ag-text: #171b18;
  --ag-muted: #465048;
  --ag-green: #185d3f;
  --ag-green-dark: #10442d;
  --ag-red: #8f1f29;
  --ag-gold: #876f32;
  --ag-border: rgba(23, 27, 24, .13);
  --ag-border-strong: rgba(23, 27, 24, .22);
  --ag-shadow: 0 12px 30px rgba(20, 24, 21, .08);
  --ag-shadow-lg: 0 22px 52px rgba(20, 24, 21, .12);
  --ag-radius: 18px;
  --ag-radius-lg: 26px;
  --ag-focus: 0 0 0 4px rgba(24, 93, 63, .22);
}

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

html {
  scroll-behavior: smooth;
  background: var(--ag-bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ag-text);
  background:
    radial-gradient(circle at 10% 0%, rgba(143,31,41,.055), transparent 28rem),
    radial-gradient(circle at 92% 4%, rgba(24,93,63,.065), transparent 28rem),
    linear-gradient(180deg, #fcfbf8 0%, #f7f4ed 62%, #f3eee4 100%) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle Malagasy spiritual geometric texture, no image background. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(45deg, transparent 48%, rgba(135,111,50,.035) 49%, rgba(135,111,50,.035) 51%, transparent 52%) 0 0 / 84px 84px,
    linear-gradient(-45deg, transparent 48%, rgba(24,93,63,.025) 49%, rgba(24,93,63,.025) 51%, transparent 52%) 42px 0 / 84px 84px;
}

::selection {
  background: var(--ag-green);
  color: #fff;
}

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

a,
a:visited {
  color: var(--ag-green-dark);
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

a:hover,
a:focus {
  color: var(--ag-red);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: none !important;
  box-shadow: var(--ag-focus) !important;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--ag-text) !important;
  line-height: 1.22;
}

input::placeholder,
textarea::placeholder,
.form-control::placeholder {
  color: #3d463f !important;
  opacity: 1 !important;
  font-weight: 500;
}

.container {
  width: min(1240px, calc(100% - 28px));
  max-width: 1240px;
}

#wrapper,
#main,
#content,
#content-wrapper,
.page-home,
.page-content,
#left-column,
#right-column {
  background: transparent !important;
}

/* Critical recovery: old native menu code may leave these inline-hidden.
   This theme uses its own drawer and never hides the page body. */
#wrapper,
#footer {
  display: block !important;
}

/* ==========================================================================
   HEADER — DESKTOP
   ========================================================================== */

#header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: rgba(255,255,255,.97) !important;
  border-bottom: 1px solid var(--ag-border);
  box-shadow: 0 10px 28px rgba(20,24,21,.06);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
}

#header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ag-green) 0 38%, var(--ag-gold) 38% 62%, var(--ag-red) 62% 100%);
}

#header .header-nav,
#header .header-top {
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

#header .header-nav {
  min-height: 42px;
  border-bottom: 1px solid rgba(23,27,24,.07) !important;
}

#header .header-nav .hidden-sm-down {
  width: 100%;
}

#header .header-nav .row,
#header .header-top .row {
  display: flex;
  align-items: center;
}

#header .right-nav {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

#header .header-nav a,
#header .header-nav .material-icons,
#header .header-nav .expand-more,
#header .header-nav .currency-selector,
#header .header-nav .language-selector,
#header .header-nav .user-info,
#header .header-nav .blockcart,
#header .header-nav .blockcart a {
  color: var(--ag-text) !important;
}

#header .header-nav .blockcart {
  background: #f4f0e7 !important;
  border: 1px solid var(--ag-border);
  border-radius: 999px;
}

#header .header-top {
  padding: 14px 0 16px !important;
}

#_desktop_logo {
  display: flex;
  align-items: center;
  min-height: 70px;
}

#_desktop_logo a {
  display: inline-flex;
  align-items: center;
}

#_desktop_logo .logo {
  width: auto !important;
  height: auto !important;
  max-width: 190px;
  max-height: 66px;
  object-fit: contain;
}

#header .header-top .position-static > .row {
  width: 100%;
  margin: 0;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 320px);
  gap: 16px;
  align-items: center;
}

#_desktop_top_menu {
  display: flex !important;
  align-items: center;
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  padding: 0 !important;
  margin: 0 !important;
}

#top-menu {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 7px;
  width: 100%;
  margin: 0;
  padding: 4px 0 7px;
  overflow-x: auto;
  scrollbar-width: none;
  list-style: none;
}

#top-menu::-webkit-scrollbar {
  display: none;
}

#top-menu > li {
  float: none !important;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  margin: 0 !important;
  position: relative;
}

#header .top-menu a[data-depth="0"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 14px !important;
  border-radius: 999px;
  color: var(--ag-text) !important;
  background: transparent !important;
  border: 1px solid transparent;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 750;
}

#header .top-menu a[data-depth="0"]:hover,
#header .top-menu a[data-depth="0"]:focus,
#header .top-menu li.current > a[data-depth="0"] {
  color: #fff !important;
  background: var(--ag-green) !important;
  box-shadow: 0 9px 18px rgba(24,93,63,.18);
}

.top-menu .sub-menu {
  padding: 16px !important;
  margin-top: 10px !important;
  background: #fff !important;
  border: 1px solid var(--ag-border) !important;
  border-radius: 18px !important;
  box-shadow: var(--ag-shadow-lg) !important;
}

.top-menu .sub-menu a {
  color: var(--ag-text) !important;
}

/* Search */
#search_widget {
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#search_widget form {
  position: relative;
  width: 100%;
}

#search_widget input[type="text"] {
  width: 100%;
  min-height: 50px;
  padding: 0 58px 0 18px;
  color: var(--ag-text) !important;
  background: #fff !important;
  border: 1px solid var(--ag-border-strong) !important;
  border-radius: 999px !important;
  font-size: 16px;
  box-shadow: 0 8px 18px rgba(20,24,21,.04);
}

#search_widget button {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, var(--ag-green), var(--ag-red)) !important;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#search_widget button .material-icons {
  color: #fff !important;
}

/* ==========================================================================
   MOBILE HEADER / DRAWER
   ========================================================================== */

.agnabo-native-mobile-logo-target {
  display: none !important;
}

/* Always keep drawer closed until OUR body class opens it. */
#mobile_top_menu_wrapper.agnabo-mobile-drawer {
  display: none !important;
}

body.agnabo-menu-open #mobile_top_menu_wrapper.agnabo-mobile-drawer {
  display: block !important;
}

.agnabo-menu-overlay {
  display: none;
}

body.agnabo-menu-open .agnabo-menu-overlay {
  display: block;
}

@media (max-width: 767px) {
  #header .hidden-sm-down,
  #_desktop_logo,
  #_desktop_top_menu {
    display: none !important;
  }

  #header .header-nav .agnabo-mobile-header {
    width: 100%;
    min-height: 72px;
    padding: 9px 0;
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) 46px 46px;
    align-items: center;
    gap: 7px;
  }

  #agnabo-menu-icon.agnabo-burger {
    float: none !important;
    width: 50px;
    height: 50px;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ag-border);
    border-radius: 16px;
    background: #fff;
    color: var(--ag-text);
    box-shadow: var(--ag-shadow);
    cursor: pointer;
  }

  #agnabo-menu-icon .material-icons {
    color: var(--ag-text) !important;
    font-size: 28px;
    line-height: 1 !important;
  }

  .agnabo-static-mobile-logo {
    min-width: 0;
    text-align: center;
  }

  .agnabo-static-mobile-logo a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
  }

  .agnabo-static-mobile-logo img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    max-width: min(160px, 38vw) !important;
    max-height: 50px !important;
    object-fit: contain;
  }

  #_mobile_cart,
  #_mobile_user_info {
    float: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  #_mobile_cart .blockcart,
  #_mobile_user_info .user-info {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  #_mobile_cart .header,
  #_mobile_user_info a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border-radius: 14px;
    background: #f4f0e7;
    color: var(--ag-text) !important;
  }

  #_mobile_cart .material-icons,
  #_mobile_user_info .material-icons {
    color: var(--ag-text) !important;
    margin: 0 !important;
  }

  #header .header-top {
    padding: 10px 0 12px !important;
  }

  #header .header-top > .container > .row,
  #header .header-top .position-static > .row {
    display: block !important;
    width: 100%;
    margin: 0;
  }

  #header .header-top .position-static {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
  }

  #search_widget {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
  }

  #search_widget form {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
  }

  #search_widget input[type="text"] {
    min-height: 52px;
  }

  /* Drawer is independent of normal document flow. */
  #mobile_top_menu_wrapper.agnabo-mobile-drawer {
    position: fixed !important;
    inset: 0 auto 0 0;
    z-index: 1400;
    width: min(360px, 88vw) !important;
    max-width: 88vw;
    height: 100vh;
    margin: 0 !important;
    padding: 74px 18px 28px !important;
    overflow-y: auto;
    background: linear-gradient(180deg, #fff 0%, #f8f4ec 100%) !important;
    border: 0 !important;
    box-shadow: 24px 0 54px rgba(0,0,0,.18);
  }

  .agnabo-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1390;
    background: rgba(13,17,14,.46);
  }

  .agnabo-menu-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border: 0 !important;
    border-radius: 14px !important;
    color: #fff !important;
    background: var(--ag-red) !important;
    font-size: 26px;
    line-height: 1;
  }

  #mobile_top_menu_wrapper .top-menu {
    display: block !important;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  #mobile_top_menu_wrapper .top-menu > li {
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(23,27,24,.09);
  }

  #mobile_top_menu_wrapper .top-menu a[data-depth="0"],
  #mobile_top_menu_wrapper .dropdown-item {
    display: block;
    width: 100%;
    padding: 15px 10px !important;
    color: var(--ag-text) !important;
    background: transparent !important;
    border-radius: 10px;
    white-space: normal;
    font-size: 17px;
    font-weight: 750;
    text-align: left !important;
  }

  #mobile_top_menu_wrapper .top-menu a[data-depth="0"]:hover,
  #mobile_top_menu_wrapper .top-menu a[data-depth="0"]:focus {
    color: #fff !important;
    background: var(--ag-green) !important;
  }

  #mobile_top_menu_wrapper .collapse-icons,
  #mobile_top_menu_wrapper .material-icons {
    color: inherit !important;
  }

  #mobile_top_menu_wrapper .js-top-menu-bottom {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--ag-border);
  }
}

@media (min-width: 768px) {
  #header .agnabo-mobile-header,
  #agnabo-menu-icon,
  #mobile_top_menu_wrapper,
  .agnabo-menu-overlay {
    display: none !important;
  }

  #header .hidden-sm-down,
  #_desktop_logo {
    display: block !important;
  }

  #_desktop_top_menu {
    display: flex !important;
  }

  /* Protect desktop content from any stale inline display:none left by old JS. */
  #wrapper,
  #footer {
    display: block !important;
  }
}

/* ==========================================================================
   CONTENT
   ========================================================================== */

.card,
.page-content,
.block-category,
#search_filters,
#js-product-list-header,
.product-information,
.product-cover,
.tabs,
#left-column .block,
#right-column .block,
.block_newsletter,
.block-social,
.featured-products,
.new-products,
.product-accessories,
.pagination,
.breadcrumb {
  background: rgba(255,255,255,.96) !important;
  border: 1px solid var(--ag-border) !important;
  border-radius: var(--ag-radius-lg) !important;
  box-shadow: var(--ag-shadow);
}

.page-content,
.card,
.block-category,
.product-information,
.product-cover,
.tabs,
#search_filters,
#js-product-list-header,
#left-column .block,
#right-column .block {
  padding: 22px;
}

.page-home,
.page-home #content {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.page-home .featured-products,
.page-home .new-products,
.page-home .product-accessories,
.page-home .banner,
.page-home .custom-text {
  margin-bottom: 28px;
}

.products-section-title,
.page-header h1,
.block-category h1,
#main h1 {
  position: relative;
  padding-left: 24px;
  color: var(--ag-text) !important;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.15rem);
  font-weight: 850;
}

.products-section-title::before,
.page-header h1::before,
.block-category h1::before,
#main h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35em;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  border: 3px solid var(--ag-green);
  background: #fff;
}

/* ==========================================================================
   PRODUCT CARDS — no fixed height, no absolute price
   ========================================================================== */

.agnabo-product-card {
  display: block;
  min-width: 0;
  padding: 0 0 16px;
}

.agnabo-product-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--ag-border);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff 0%, #faf7f1 100%);
  box-shadow: 0 12px 28px rgba(20,24,21,.07);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.agnabo-product-shell:hover {
  transform: translateY(-3px);
  border-color: rgba(24,93,63,.24);
  box-shadow: 0 18px 36px rgba(20,24,21,.11);
}

.agnabo-product-media {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}

.agnabo-product-media .product-thumbnail {
  display: block;
  width: 100%;
}

.agnabo-product-media .product-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0 !important;
  object-fit: cover;
}

.agnabo-product-media .product-flags {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.agnabo-product-media .product-flags li {
  display: inline-block;
  margin: 0 5px 5px 0;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff !important;
  background: var(--ag-green) !important;
  font-size: 12px;
  font-weight: 800;
}

.agnabo-product-info {
  position: static !important;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  padding: 14px 4px 4px;
  background: transparent !important;
}

.agnabo-product-card .product-title {
  margin: 0 0 8px !important;
  padding: 0 !important;
  min-height: 2.6em;
  text-align: center;
  line-height: 1.35;
}

.agnabo-product-card .product-title a {
  display: block;
  color: var(--ag-text) !important;
  font-size: 1rem !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere;
}

.agnabo-product-card .product-price-and-shipping {
  position: static !important;
  width: 100% !important;
  margin: auto 0 0 !important;
  padding: 5px 0 0 !important;
  color: var(--ag-text) !important;
  text-align: center !important;
  line-height: 1.4;
}

.agnabo-product-card .price {
  display: inline-block;
  color: var(--ag-red) !important;
  font-size: 1.18rem !important;
  font-weight: 900 !important;
  white-space: nowrap;
}

.agnabo-product-card .regular-price {
  color: #616a62 !important;
}

.agnabo-product-actions {
  position: static !important;
  width: 100%;
  margin-top: 10px;
  text-align: center;
}

.agnabo-product-actions .quick-view {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ag-green-dark) !important;
  font-size: 14px;
  font-weight: 700;
}

.agnabo-variants {
  margin-top: 8px;
}

.agnabo-variants .variant-links {
  position: static !important;
  width: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

/* Product grids */
#products .products,
.product-accessories .products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

#products .product-miniature,
.product-accessories .product-miniature {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Homepage horizontal product rows */
#index .featured-products,
#index .new-products {
  padding: 22px;
}

#index .featured-products .products,
#index .new-products .products {
  display: flex !important;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(24,93,63,.28) transparent;
}

#index .featured-products .product-miniature,
#index .new-products .product-miniature {
  flex: 0 0 min(280px, 82vw);
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  scroll-snap-align: start;
}

/* ==========================================================================
   BUTTONS / FORMS
   ========================================================================== */

.btn,
button,
input[type="submit"],
input[type="button"] {
  min-height: 44px;
  border-radius: 999px !important;
  font-weight: 750;
}

.btn-primary,
.btn-secondary,
.btn-tertiary,
input[type="submit"],
input[type="button"] {
  color: #fff !important;
  background: var(--ag-green) !important;
  border-color: var(--ag-green) !important;
}

.form-control,
.custom-select,
select,
textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="search"] {
  min-height: 48px;
  color: var(--ag-text) !important;
  background: #fff !important;
  border: 1px solid var(--ag-border-strong) !important;
  border-radius: 14px !important;
  font-size: 16px;
}

label,
.form-control-label {
  color: var(--ag-text) !important;
  font-weight: 700;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

#footer,
#footer > .container,
.footer-container,
.footer-container > .container {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#footer > .container {
  margin-top: 30px;
}

#footer > .container > .row,
.footer-container > .container {
  background: #fff !important;
  border: 1px solid var(--ag-border);
  border-radius: 26px;
  box-shadow: var(--ag-shadow-lg);
}

#footer > .container > .row {
  padding: 20px;
}

.footer-container > .container {
  padding: 24px 22px 18px;
}

.footer-container .row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-container .links,
.footer-container .block-contact,
#footer .block_newsletter,
#footer .block-social {
  flex: 1 1 230px;
  min-width: 0;
  padding: 16px;
  background: var(--ag-surface-soft) !important;
  border: 1px solid var(--ag-border) !important;
  border-radius: 18px;
}

.footer-container *,
#footer .block_newsletter *,
#footer .block-social * {
  color: var(--ag-text) !important;
}

/* Requested earlier: hide only the footer "Your account" visual block. */
#block_myaccount_infos {
  display: none !important;
}

.agnabo-copyright {
  width: 100%;
  margin: 8px 0 0 !important;
  text-align: center;
}

.agnabo-copyright small {
  color: var(--ag-muted) !important;
  font-size: 14px;
}

/* ==========================================================================
   RESPONSIVE CONTENT
   ========================================================================== */

@media (max-width: 1199px) {
  #products .products,
  .product-accessories .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) and (min-width: 768px) {
  #header .header-top .position-static > .row {
    grid-template-columns: minmax(0, 1fr) 240px;
  }

  #header .top-menu a[data-depth="0"] {
    padding: 8px 11px !important;
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 16px;
  }

  .container {
    width: calc(100% - 20px);
  }

  .page-content,
  .card,
  .block-category,
  .product-information,
  .product-cover,
  .tabs,
  #search_filters,
  #js-product-list-header,
  #left-column .block,
  #right-column .block {
    padding: 18px;
  }

  #products .products,
  .product-accessories .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .agnabo-product-shell {
    padding: 10px;
    border-radius: 18px;
  }

  .agnabo-product-info {
    padding: 11px 2px 2px;
  }

  .agnabo-product-card .product-title {
    min-height: 0;
  }

  .agnabo-product-card .product-title a {
    font-size: .96rem !important;
  }

  .agnabo-product-card .price {
    font-size: 1.08rem !important;
  }

  .footer-container .links,
  .footer-container .block-contact,
  #footer .block_newsletter,
  #footer .block-social {
    flex: 0 0 100%;
    width: 100%;
  }
}

@media (max-width: 430px) {
  #header .header-nav .agnabo-mobile-header {
    grid-template-columns: 48px minmax(0, 1fr) 42px 42px;
    gap: 4px;
  }

  .agnabo-static-mobile-logo img {
    max-width: min(130px, 34vw) !important;
    max-height: 45px !important;
  }

  #products .products,
  .product-accessories .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ==========================================================================
   3.2.1 — HERO / MOBILE MENU FINAL HOTFIX
   ========================================================================== */

/* Hero container must be exactly the image height — never the legacy 650px. */
#index #carousel,
#carousel.carousel,
.ps_imageslider,
#homepage-slider {
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
  border-radius: 24px !important;
}

#carousel .carousel-inner,
.carousel .carousel-inner {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  overflow: hidden !important;
}

#carousel .carousel-item,
.carousel .carousel-item {
  height: auto !important;
  min-height: 0 !important;
  background: transparent !important;
}

#carousel .carousel-item.active {
  position: relative !important;
  display: block !important;
  height: auto !important;
}

#carousel .agnabo-hero-figure,
.carousel .agnabo-hero-figure {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;
  background: transparent !important;
}

#carousel .agnabo-hero-figure > img,
.carousel .agnabo-hero-figure > img,
#carousel .carousel-item img,
.carousel .carousel-item img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  background: transparent !important;
}

/* Requested: the hero frame itself contains only the image. */
#carousel .caption,
.carousel .caption {
  display: none !important;
}

/* Navigation arrows stay over the image instead of reserving space. */
#carousel .direction,
.carousel .direction,
#carousel .carousel-control,
.carousel .carousel-control {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  margin: 0 !important;
}

/* The new burger ID is isolated from the old PrestaShop theme.js click handler. */
@media (max-width: 767px) {
  #agnabo-menu-icon.agnabo-burger {
    float: none !important;
    width: 50px;
    height: 50px;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ag-border);
    border-radius: 16px;
    background: #fff;
    color: var(--ag-text);
    box-shadow: var(--ag-shadow);
    cursor: pointer;
    touch-action: manipulation;
  }

  #agnabo-menu-icon .material-icons {
    color: var(--ag-text) !important;
    font-size: 28px;
    line-height: 1 !important;
    pointer-events: none;
  }

  .agnabo-menu-close {
    z-index: 5 !important;
    cursor: pointer !important;
    touch-action: manipulation;
  }
}

@media (min-width: 768px) {
  #agnabo-menu-icon,
  #mobile_top_menu_wrapper,
  .agnabo-menu-overlay {
    display: none !important;
  }
}


/* ==========================================================================
   3.2.2 — menu controls rendered in HTML (cache-resistant)
   ========================================================================== */

#agnabo-menu-icon.agnabo-burger {
  padding: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border: 1px solid var(--ag-border) !important;
  background: #fff !important;
  box-shadow: var(--ag-shadow) !important;
}

#agnabo-menu-icon.agnabo-burger:hover,
#agnabo-menu-icon.agnabo-burger:focus {
  background: #fff !important;
  color: var(--ag-text) !important;
}

.agnabo-menu-close {
  pointer-events: auto !important;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body.agnabo-menu-open .agnabo-menu-close {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.agnabo-menu-overlay {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* The drawer state is controlled ONLY by the body class. */
#mobile_top_menu_wrapper.agnabo-mobile-drawer {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.agnabo-menu-open #mobile_top_menu_wrapper.agnabo-mobile-drawer {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body:not(.agnabo-menu-open) .agnabo-menu-overlay {
  display: none !important;
}

body.agnabo-menu-open .agnabo-menu-overlay {
  display: block !important;
}


/* ==========================================================================
   3.2.3 — Smarty-safe mobile menu
   ========================================================================== */
.agnabo-menu-close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  z-index: 30 !important;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: var(--ag-red) !important;
  color: #fff !important;
  font-size: 30px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  touch-action: manipulation;
}

#agnabo-menu-icon {
  touch-action: manipulation;
}

#mobile_top_menu_wrapper.agnabo-mobile-drawer {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.agnabo-menu-open #mobile_top_menu_wrapper.agnabo-mobile-drawer {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.agnabo-menu-overlay {
  display: none !important;
}

body.agnabo-menu-open .agnabo-menu-overlay {
  display: block !important;
}
