/* ==========================================================================
   Atlas theme - wholesale storefront skin for OpenCart 4.1
   Loaded after the core stylesheet, so it both re-styles the Bootstrap classes
   the core templates rely on and unwinds the stock absolute-positioning layout.
   ========================================================================== */

:root {
  --at-accent: #f27a1a;
  --at-accent-dark: #c66315;
  --at-on-accent: #ffffff;
  --at-accent-soft: #fff4e8;

  --at-bg: #f2f5fa;
  --at-surface: #ffffff;
  --at-surface-2: #f8fafc;
  --at-media: #ffffff;
  --at-ink: #0f172a;
  --at-ink-2: #334155;
  --at-muted: #64748b;
  --at-line: #e7edf5;
  --at-line-2: #f1f5f9;

  --at-footer: #1e242e;
  --at-footer-ink: #e2e8f0;
  --at-footer-muted: #94a3b8;

  --at-good: #16a34a;
  --at-star: #f5a524;

  --at-r-sm: 8px;
  --at-r: 12px;
  --at-r-lg: 20px;
  --at-pill: 999px;

  --at-shadow-1: 0 1px 2px rgba(15, 23, 42, .04);
  --at-shadow-2: 0 8px 30px rgba(15, 23, 42, .08);
  --at-shadow-3: 0 18px 45px rgba(15, 23, 42, .16);

  --at-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --at-ease: cubic-bezier(.22, .61, .36, 1);
}

/* Dark palette: applied when the visitor device asks for it, unless the store
   pinned the theme to light. Product media tiles stay light because catalogue
   photos are cut out on white. */
@media (prefers-color-scheme: dark) {
  :root:not([data-at-theme="light"]) {
    --at-accent-soft: rgba(242, 122, 26, .14);

    --at-bg: #0d1219;
    --at-surface: #151c25;
    --at-surface-2: #1b232e;
    --at-media: #f4f6f9;
    --at-ink: #e8eef7;
    --at-ink-2: #c2ccda;
    --at-muted: #90a0b5;
    --at-line: #27313e;
    --at-line-2: #202935;

    --at-footer: #080c12;
    --at-footer-ink: #dbe3ee;
    --at-footer-muted: #8b9aae;

    --at-shadow-1: 0 1px 2px rgba(0, 0, 0, .5);
    --at-shadow-2: 0 8px 26px rgba(0, 0, 0, .5);
    --at-shadow-3: 0 22px 48px rgba(0, 0, 0, .6);
  }
}

/* Store pinned the theme to dark. */
:root[data-at-theme="dark"] {
  --at-accent-soft: rgba(242, 122, 26, .14);

  --at-bg: #0d1219;
  --at-surface: #151c25;
  --at-surface-2: #1b232e;
  --at-media: #f4f6f9;
  --at-ink: #e8eef7;
  --at-ink-2: #c2ccda;
  --at-muted: #90a0b5;
  --at-line: #27313e;
  --at-line-2: #202935;

  --at-footer: #080c12;
  --at-footer-ink: #dbe3ee;
  --at-footer-muted: #8b9aae;

  --at-shadow-1: 0 1px 2px rgba(0, 0, 0, .5);
  --at-shadow-2: 0 8px 26px rgba(0, 0, 0, .5);
  --at-shadow-3: 0 22px 48px rgba(0, 0, 0, .6);
}

/* Base --------------------------------------------------------------------- */

.at-body {
  background: var(--at-bg);
  color: var(--at-ink);
  font-family: var(--at-font);
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.at-body .container {
  max-width: 1400px;
}

.at-body a {
  color: var(--at-ink);
  text-decoration: none;
  transition: color .15s var(--at-ease);
}

.at-body a:hover {
  color: var(--at-accent);
}

.at-body h1,
.at-body h2,
.at-body h3,
.at-body h4,
.at-body h5 {
  color: var(--at-ink);
  font-weight: 650;
  letter-spacing: -.01em;
}

.at-body h1 { font-size: 24px; }
.at-body h2 { font-size: 18px; }
.at-body h3 { font-size: 16px; }
.at-body h4 { font-size: 14px; }
.at-body h5 { font-size: 13px; }

.at-body hr {
  border-color: var(--at-line);
  opacity: 1;
}

.at-body ::selection {
  background: var(--at-accent-soft);
}

.at-body :focus-visible {
  outline: 2px solid var(--at-accent);
  outline-offset: 2px;
}

/* Core layout resets ------------------------------------------------------- */

.at-body #container {
  position: static;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-bottom: 0;
}

.at-body #content,
.at-body #column-left,
.at-body #column-right {
  padding-bottom: 0;
}

.at-body #top {
  display: none;
}

.at-body #logo {
  margin: 0;
  text-align: left;
}

/* The actions row centres on the margin box, so the core 10px under #cart lifts
   the cart button 5px above the icon buttons beside it. */
.at-body #cart {
  margin-bottom: 0;
}

.at-body #menu.at-nav {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.at-body .breadcrumb {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

.at-main {
  flex: 1 0 auto;
  display: block;
  padding: 18px 0 36px;
}

/* Buttons, chips and squares ----------------------------------------------- */

.at-body .at-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--at-r-sm);
  background: var(--at-surface-2);
  color: var(--at-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s var(--at-ease), border-color .15s var(--at-ease), color .15s var(--at-ease);
}

.at-body .at-btn-accent {
  background: var(--at-accent);
  color: var(--at-on-accent);
}

.at-body .at-btn-accent:hover {
  background: var(--at-accent-dark);
  color: var(--at-on-accent);
}

.at-body .at-btn-quiet {
  border-color: var(--at-line);
  background: var(--at-surface);
  color: var(--at-ink-2);
}

.at-body .at-btn-quiet:hover {
  border-color: var(--at-accent);
  color: var(--at-accent);
}

/* Always sits on the accent gradient, so the ink is fixed rather than themed. */
.at-body .at-btn-light {
  background: #ffffff;
  color: #0f172a;
}

.at-body .at-btn-light:hover {
  background: #ffffff;
  color: var(--at-accent-dark);
}

.at-body .at-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--at-accent);
  border-radius: var(--at-pill);
  background: var(--at-surface);
  color: var(--at-accent);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.at-body .at-chip:hover {
  background: var(--at-accent);
  color: var(--at-on-accent);
}

.at-body .at-chip-quiet {
  border-color: var(--at-line);
  color: var(--at-muted);
}

.at-body .at-chip-quiet:hover {
  border-color: var(--at-accent);
  background: var(--at-surface);
  color: var(--at-accent);
}

.at-square {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--at-line);
  border-radius: var(--at-r-sm);
  background: var(--at-surface);
  color: var(--at-muted);
  font-size: 14px;
  cursor: pointer;
  transition: border-color .15s var(--at-ease), color .15s var(--at-ease), background .15s var(--at-ease);
}

.at-square:hover {
  border-color: var(--at-accent);
  background: var(--at-accent-soft);
  color: var(--at-accent);
}

.at-round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--at-line);
  border-radius: var(--at-pill);
  background: var(--at-surface);
  color: var(--at-muted);
  font-size: 12px;
  cursor: pointer;
}

.at-round:hover {
  border-color: var(--at-accent);
  color: var(--at-accent);
}

.at-body .at-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--at-line);
  border-radius: var(--at-pill);
  background: var(--at-surface);
  color: var(--at-ink-2);
  font-size: 14px;
  cursor: pointer;
}

.at-body .at-icon:hover {
  border-color: var(--at-accent);
  color: var(--at-accent);
}

/* Utility bar -------------------------------------------------------------- */

.at-utility {
  border-bottom: 1px solid var(--at-line);
  background: var(--at-surface-2);
  font-size: 12px;
}

.at-utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
}

.at-rates {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}

.at-rates li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--at-line);
  border-radius: var(--at-pill);
  background: var(--at-surface);
  color: var(--at-ink-2);
  font-weight: 600;
  white-space: nowrap;
}

.at-rates i {
  color: var(--at-accent);
  font-size: 10px;
}

.at-utility-end {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.at-body .at-utility-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--at-muted);
}

.at-utility-link i {
  color: var(--at-accent);
}

/* The core currency and language controllers render Bootstrap dropdown forms;
   flatten them into plain text triggers for the bar. */
.at-locale {
  display: flex;
  align-items: center;
  gap: 10px;
}

.at-locale form {
  margin: 0;
}

.at-locale .btn,
.at-locale .dropdown-toggle {
  padding: 0;
  border: 0;
  background: none;
  color: var(--at-muted);
  font-size: 12px;
  box-shadow: none;
}

.at-locale .btn:hover,
.at-locale .dropdown-toggle:hover {
  color: var(--at-accent);
}

.at-locale img {
  margin-right: 4px;
}

/* Header ------------------------------------------------------------------- */

.at-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--at-surface);
  border-bottom: 1px solid var(--at-line);
  transition: transform .28s var(--at-ease), box-shadow .2s var(--at-ease);
}

.at-header.at-stuck {
  box-shadow: var(--at-shadow-2);
}

/* Scrolling down retracts the header; atlas.js brings it back on the way up,
   and never takes it away while a menu inside it is open. */
.at-header.at-hidden {
  transform: translateY(-100%);
}

.at-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.at-logo img {
  max-height: 42px;
  width: auto;
}

.at-body .at-wordmark {
  color: var(--at-ink);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -.02em;
}

.at-search {
  flex: 1 1 auto;
  min-width: 0;
}

/* The search row collapses behind its own button below lg, so the bar stays one
   line on a phone. Above lg it is part of the bar and must ignore .collapse. */
@media (min-width: 992px) {
  .at-search-collapse.collapse:not(.show) {
    display: block;
  }
}

.at-search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.at-search-icon {
  position: absolute;
  left: 16px;
  color: var(--at-muted);
  font-size: 13px;
  pointer-events: none;
}

.at-search-input {
  width: 100%;
  height: 44px;
  padding: 0 108px 0 40px;
  border: 1px solid var(--at-line);
  border-radius: var(--at-r-sm);
  background: var(--at-surface);
  color: var(--at-ink);
  font-size: 13.5px;
}

.at-search-input::placeholder {
  color: var(--at-muted);
}

.at-search-input:focus {
  outline: 0;
  border-color: var(--at-accent);
  box-shadow: 0 0 0 3px var(--at-accent-soft);
}

.at-search-go {
  position: absolute;
  right: 5px;
  height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: var(--at-accent);
  color: var(--at-on-accent);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.at-search-go:hover {
  background: var(--at-accent-dark);
}

.at-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.at-account-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.at-account-text {
  text-align: right;
  line-height: 1.25;
}

.at-account-top {
  display: block;
  color: var(--at-ink);
  font-size: 12.5px;
  font-weight: 600;
}

.at-account-sub {
  display: block;
  color: var(--at-accent);
  font-size: 12px;
  font-weight: 600;
}

.at-fav-link {
  position: relative;
}

.at-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--at-r-sm);
  background: var(--at-accent);
  color: var(--at-on-accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.at-cart-btn:hover {
  background: var(--at-accent-dark);
}

.at-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--at-pill);
  background: rgba(255, 255, 255, .25);
  font-size: 11px;
  font-weight: 700;
}

.at-drop {
  min-width: 200px;
  padding: 6px;
  border: 1px solid var(--at-line);
  border-radius: var(--at-r);
  background: var(--at-surface);
  box-shadow: var(--at-shadow-2);
}

.at-drop .dropdown-item {
  border-radius: var(--at-r-sm);
  color: var(--at-ink-2);
  font-size: 13px;
  padding: 7px 10px;
}

.at-drop .dropdown-item:hover {
  background: var(--at-surface-2);
  color: var(--at-accent);
}

/* Navigation --------------------------------------------------------------- */

.at-nav {
  border-top: 1px solid var(--at-line-2);
  background: var(--at-surface);
}

/* The core markup keeps Bootstrap's .collapse on the list, which would hide the
   bar on desktop; only the burger below lg is meant to toggle it. */
@media (min-width: 992px) {
  .at-nav-collapse.collapse:not(.show) {
    display: block;
  }
}

.at-nav-list {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.at-nav-item {
  position: relative;
  display: flex;
}

.at-nav-item + .at-nav-item {
  border-left: 1px solid var(--at-line-2);
}

.at-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 160px;
  padding: 12px 18px;
  color: var(--at-ink-2);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
}

.at-nav-link i {
  font-size: 9px;
  color: var(--at-muted);
}

.at-nav-item:hover > .at-nav-link {
  color: var(--at-accent);
}

.at-panel-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 40;
  display: none;
  min-width: 280px;
  max-width: min(760px, 92vw);
  padding: 18px;
  border: 1px solid var(--at-line);
  border-radius: var(--at-r);
  background: var(--at-surface);
  box-shadow: var(--at-shadow-3);
}

.at-panel-flip {
  left: auto;
  right: 0;
}

.at-has-panel:hover > .at-panel-menu,
.at-has-panel:focus-within > .at-panel-menu {
  display: block;
}

.at-panel-grid {
  display: flex;
  gap: 26px;
}

.at-panel-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 150px;
}

.at-panel-grid li + li {
  margin-top: 2px;
}

.at-panel-grid a {
  display: block;
  padding: 4px 0;
  color: var(--at-muted);
  font-size: 12.5px;
}

.at-panel-grid a:hover {
  color: var(--at-accent);
}

.at-body .at-panel-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--at-accent);
  font-size: 12.5px;
  font-weight: 600;
}

/* Page scaffolding --------------------------------------------------------- */

.at-page {
  padding-top: 4px;
}

.at-crumbs {
  margin-bottom: 14px;
  font-size: 12px;
}

.at-body .at-crumbs > li.breadcrumb-item {
  position: static;
  padding: 0;
  text-shadow: none;
}

.at-body .at-crumbs > li.breadcrumb-item:after {
  display: none;
  content: none;
}

.at-crumbs .breadcrumb-item + .breadcrumb-item:before {
  content: '\203A';
  padding: 0 8px;
  color: var(--at-muted);
}

.at-crumbs a {
  color: var(--at-muted);
}

.at-block {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--at-line);
  border-radius: var(--at-r);
  background: var(--at-surface);
  box-shadow: var(--at-shadow-1);
}

.at-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.at-block-title h2 {
  margin: 0;
  color: var(--at-accent);
  font-size: 17px;
}

.at-block-title p {
  margin: 2px 0 0;
  color: var(--at-muted);
  font-size: 12.5px;
}

.at-block-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.at-select {
  height: 34px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--at-line);
  border-radius: var(--at-r-sm);
  background: var(--at-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2364748b'%3E%3Cpath d='M4 6l4 4 4-4z'/%3E%3C/svg%3E") right 9px center / 12px no-repeat;
  color: var(--at-ink-2);
  font-size: 12.5px;
  appearance: none;
}

.at-select:focus {
  outline: 0;
  border-color: var(--at-accent);
}

.at-select-narrow {
  max-width: 90px;
}

.at-segment {
  display: inline-flex;
  border: 1px solid var(--at-line);
  border-radius: var(--at-r-sm);
  overflow: hidden;
}

.at-segment button {
  width: 34px;
  height: 34px;
  border: 0;
  background: var(--at-surface);
  color: var(--at-muted);
  font-size: 12px;
  cursor: pointer;
}

.at-segment button + button {
  border-left: 1px solid var(--at-line);
}

.at-segment button.active {
  background: var(--at-accent-soft);
  color: var(--at-accent);
}

/* Module sections ----------------------------------------------------------
   Product modules (featured, latest, bestseller, special) render a bare <h3>
   followed by a .row of cards. Bind the two into one panel so a module placed
   on the home page reads the same as the category listing block. :has keeps
   the treatment off headings that are not followed by a grid; browsers without
   it simply leave the heading plain. */

.at-main #content > h3:has(+ .row) {
  margin: 0;
  padding: 16px 18px 12px;
  border: 1px solid var(--at-line);
  border-bottom: 0;
  border-radius: var(--at-r) var(--at-r) 0 0;
  background: var(--at-surface);
  color: var(--at-accent);
  font-size: 17px;
}

.at-main #content > h3:has(+ .row) + .row {
  margin: 0 0 18px;
  padding: 0 9px 12px;
  border: 1px solid var(--at-line);
  border-top: 0;
  border-radius: 0 0 var(--at-r) var(--at-r);
  background: var(--at-surface);
  box-shadow: var(--at-shadow-1);
}

/* Category hero and chips -------------------------------------------------- */

.at-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid var(--at-line);
  border-radius: var(--at-r);
  background: linear-gradient(120deg, var(--at-accent-soft), var(--at-surface) 62%);
}

.at-hero-text {
  flex: 1 1 auto;
  min-width: 0;
}

.at-hero-text h1 {
  margin: 0;
}

.at-hero-desc {
  margin-top: 6px;
  color: var(--at-muted);
  font-size: 13px;
  max-width: 70ch;
}

.at-hero-image img {
  max-height: 110px;
  width: auto;
  border-radius: var(--at-r-sm);
}

.at-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

/* Product cards ------------------------------------------------------------ */

.at-grid {
  margin-bottom: 4px;
}

.at-card {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--at-line);
  border-radius: var(--at-r);
  background: var(--at-surface);
  overflow: hidden;
  transition: border-color .15s var(--at-ease), box-shadow .15s var(--at-ease);
}

.at-card:hover {
  border-color: #d9e2ee;
  box-shadow: var(--at-shadow-2);
}

.at-card-media {
  position: relative;
  padding: 10px;
  background: var(--at-media);
}

.at-card-link {
  display: block;
  aspect-ratio: 1 / 1;
}

.at-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.at-flags {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.at-flag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--at-pill);
  background: var(--at-accent);
  color: var(--at-on-accent);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .01em;
}

.at-flag-soft {
  background: var(--at-accent-soft);
  color: var(--at-accent-dark);
}

.at-card-compare {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  margin: 0;
  opacity: 0;
  transition: opacity .15s var(--at-ease);
}

.at-card:hover .at-card-compare,
.at-card-compare:focus-within {
  opacity: 1;
}

.at-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 12px 4px;
  text-align: center;
}

.at-body .at-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--at-ink-2);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
}

.at-stars {
  color: var(--at-star);
  font-size: 11px;
}

.at-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.at-price-now {
  color: var(--at-accent);
  font-size: 15px;
  font-weight: 700;
}

.at-price-was {
  color: var(--at-muted);
  font-size: 12px;
}

.at-price-tax {
  color: var(--at-muted);
  font-size: 11px;
}

.at-body .at-dealer {
  margin-top: auto;
  padding-top: 6px;
  color: var(--at-accent);
  font-size: 14px;
  font-weight: 700;
}

.at-body .at-dealer:hover {
  color: var(--at-accent-dark);
  text-decoration: underline;
}

.at-card-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 10px 12px 12px;
}

.at-stepper {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  align-items: stretch;
  height: 36px;
  border: 1px solid var(--at-line);
  border-radius: var(--at-r-sm);
  background: var(--at-surface);
  overflow: hidden;
}

.at-stepper button {
  border: 0;
  background: var(--at-surface-2);
  color: var(--at-ink-2);
  font-size: 11px;
  cursor: pointer;
}

.at-stepper button:hover {
  background: var(--at-accent-soft);
  color: var(--at-accent);
}

.at-stepper input {
  min-width: 0;
  border: 0;
  border-left: 1px solid var(--at-line);
  border-right: 1px solid var(--at-line);
  background: var(--at-surface);
  color: var(--at-ink);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.at-stepper input:focus {
  outline: 0;
  background: var(--at-accent-soft);
}

.at-card-buy {
  display: flex;
  gap: 8px;
}

.at-btn-buy {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
}

/* A six-per-row grid next to a sidebar leaves the buy button around 100px, so
   drop the icon and tighten the label rather than truncating it. */
@container (max-width: 200px) {
  .at-btn-buy {
    padding: 0 8px;
    font-size: 12px;
  }

  .at-btn-buy i {
    display: none;
  }

  .at-card-foot {
    padding: 8px 10px 10px;
  }

  .at-card-body {
    padding: 10px 8px 4px;
  }

  .at-square {
    width: 36px;
  }
}

/* List mode: the same card laid out as a row. */
.at-rows .at-card {
  flex-direction: row;
  align-items: stretch;
}

.at-rows .at-card-media {
  flex: 0 0 190px;
}

.at-rows .at-card-body {
  align-items: flex-start;
  text-align: left;
  justify-content: center;
}

.at-rows .at-card-title {
  -webkit-line-clamp: 3;
  font-size: 14px;
}

.at-rows .at-card-foot {
  flex: 0 0 260px;
  justify-content: center;
}

/* Pagination and empty state ----------------------------------------------- */

.at-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.at-pager-note {
  color: var(--at-muted);
  font-size: 12.5px;
}

.at-empty {
  padding: 60px 20px;
  border: 1px dashed var(--at-line);
  border-radius: var(--at-r);
  background: var(--at-surface);
  text-align: center;
}

.at-empty i {
  color: var(--at-muted);
  font-size: 30px;
}

.at-empty h2 {
  margin: 14px 0 4px;
}

.at-empty p {
  color: var(--at-muted);
}

/* Cart dropdown ------------------------------------------------------------ */

.at-cart-menu {
  width: min(380px, 92vw);
  padding: 0;
  border: 1px solid var(--at-line);
  border-radius: var(--at-r);
  background: var(--at-surface);
  box-shadow: var(--at-shadow-3);
  overflow: hidden;
}

.at-cart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--at-line);
}

.at-cart-head span {
  color: var(--at-muted);
  font-size: 12px;
}

.at-cart-list {
  max-height: 320px;
  margin: 0;
  padding: 6px;
  list-style: none;
  overflow-y: auto;
}

.at-cart-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px;
  border-radius: var(--at-r-sm);
}

.at-cart-list li:hover {
  background: var(--at-surface-2);
}

.at-cart-thumb img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border: 1px solid var(--at-line);
  border-radius: 6px;
  background: var(--at-media);
}

.at-cart-info {
  flex: 1 1 auto;
  min-width: 0;
}

.at-cart-info > a {
  display: block;
  color: var(--at-ink);
  font-size: 12.5px;
  font-weight: 600;
}

.at-cart-meta {
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  color: var(--at-muted);
  font-size: 11.5px;
}

.at-cart-line {
  display: block;
  margin-top: 3px;
  color: var(--at-accent);
  font-size: 12.5px;
  font-weight: 600;
}

.at-cart-remove {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: var(--at-pill);
  background: none;
  color: var(--at-muted);
  cursor: pointer;
}

.at-cart-remove:hover {
  background: var(--at-line-2);
  color: var(--at-ink);
}

.at-cart-totals {
  margin: 0;
  padding: 10px 14px;
  border-top: 1px solid var(--at-line);
  list-style: none;
  font-size: 12.5px;
}

.at-cart-totals li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0;
  color: var(--at-muted);
}

.at-cart-totals li strong {
  color: var(--at-ink);
}

.at-cart-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 14px 14px;
}

.at-cart-empty {
  padding: 30px 14px;
  color: var(--at-muted);
  text-align: center;
}

.at-cart-empty i {
  font-size: 22px;
}

.at-cart-empty p {
  margin: 8px 0 0;
}

/* Product page ------------------------------------------------------------- */

.at-pdp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
}

.at-pdp-gallery {
  padding: 16px;
  border: 1px solid var(--at-line);
  border-radius: var(--at-r);
  background: var(--at-surface);
}

.at-pdp-stage {
  display: block;
  border-radius: var(--at-r-sm);
  background: var(--at-media);
}

.at-pdp-stage img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.at-pdp-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.at-pdp-thumbs a {
  width: 72px;
  height: 72px;
  padding: 4px;
  border: 1px solid var(--at-line);
  border-radius: var(--at-r-sm);
  background: var(--at-media);
}

.at-pdp-thumbs a:hover {
  border-color: var(--at-accent);
}

.at-pdp-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.at-pdp-main .at-block {
  margin-bottom: 14px;
}

.at-body .at-brand {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--at-accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.at-pdp-title {
  margin: 0 0 8px;
  font-size: 22px;
}

.at-pdp-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 12.5px;
}

.at-pdp-rating a {
  color: var(--at-muted);
}

.at-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--at-line);
}

.at-specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  margin: 0;
  font-size: 12.5px;
}

.at-specs dt {
  color: var(--at-muted);
  font-weight: 500;
}

.at-specs dd {
  margin: 0;
  color: var(--at-ink);
  font-weight: 600;
}

.at-buy-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.at-buy-price .at-price-now {
  font-size: 28px;
}

.at-buy-fine {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  color: var(--at-muted);
  font-size: 12px;
}

.at-tiers {
  width: 100%;
  margin: 12px 0 0;
  border: 1px solid var(--at-line);
  border-radius: var(--at-r-sm);
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
  overflow: hidden;
}

.at-tiers th,
.at-tiers td {
  padding: 7px 12px;
  border-top: 1px solid var(--at-line);
  text-align: left;
}

.at-tiers tr:first-child th,
.at-tiers tr:first-child td {
  border-top: 0;
}

.at-tiers th {
  color: var(--at-muted);
  font-weight: 500;
}

.at-tiers td {
  color: var(--at-accent);
  font-weight: 700;
  text-align: right;
}

.at-body .at-dealer-lg {
  display: inline-block;
  font-size: 22px;
}

.at-dealer-hint {
  margin: 2px 0 0;
  color: var(--at-muted);
  font-size: 12.5px;
}

.at-options {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--at-line);
}

.at-option-image {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border: 1px solid var(--at-line);
  border-radius: 6px;
  margin-right: 6px;
}

.at-buy-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.at-stepper-lg {
  flex: 0 0 130px;
  height: 46px;
}

.at-buy-row .at-btn-buy {
  height: 46px;
  font-size: 14px;
}

.at-note {
  margin: 10px 0 0;
  padding: 9px 12px;
  border-radius: var(--at-r-sm);
  background: var(--at-accent-soft);
  color: var(--at-accent-dark);
  font-size: 12.5px;
}

.at-buy-side {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--at-line);
}

.at-buy-side .at-square {
  width: auto;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 600;
}

.at-tabs {
  padding: 0;
}

.at-tab-nav {
  gap: 2px;
  padding: 6px 8px 0;
  border-bottom: 1px solid var(--at-line);
}

.at-body .at-tab-nav .nav-link {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--at-muted);
  font-size: 13px;
  font-weight: 600;
}

.at-body .at-tab-nav .nav-link.active {
  background: none;
  border-bottom-color: var(--at-accent);
  color: var(--at-accent);
}

.at-tab-body {
  padding: 18px;
  color: var(--at-ink-2);
}

.at-tags {
  margin-top: 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--at-muted);
  font-size: 12.5px;
}

.at-body .at-attr {
  font-size: 13px;
}

.at-body .at-attr thead td {
  background: var(--at-surface-2);
  color: var(--at-ink);
  font-weight: 700;
}

.at-body .at-attr td {
  border-color: var(--at-line);
  color: var(--at-ink-2);
}

/* Service strip, newsletter and footer -------------------------------------- */

.at-usp {
  padding: 14px 0;
}

.at-usp ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--at-muted);
  font-size: 12.5px;
}

.at-usp li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.at-usp i {
  color: var(--at-accent);
}

.at-footer-zone {
  flex: 0 0 auto;
}

.at-news {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto -56px;
  padding: 22px 26px;
  border-radius: var(--at-r-lg);
  background: linear-gradient(105deg, var(--at-accent), #3b4fd8);
  color: #fff;
  box-shadow: var(--at-shadow-3);
}

.at-news-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  border-radius: var(--at-r);
  background: rgba(255, 255, 255, .18);
  font-size: 24px;
}

.at-news-text {
  flex: 1 1 auto;
  min-width: 0;
}

.at-news-text h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
}

.at-news-text p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 12.5px;
}

.at-body footer.at-footer {
  position: static;
  bottom: auto;
  width: auto;
  margin-top: 24px;
  padding: 44px 0 24px;
  border: 0;
  border-radius: var(--at-r-lg) var(--at-r-lg) 0 0;
  background: var(--at-footer);
  color: var(--at-footer-ink);
}

.at-body footer.at-footer-inset {
  padding-top: 92px;
}

.at-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 28px;
}

.at-footer-brand .at-wordmark {
  color: #fff;
}

.at-footer-brand p {
  margin: 10px 0 0;
  max-width: 34ch;
  color: var(--at-footer-muted);
  font-size: 12.5px;
}

.at-footer-col h5 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.at-footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.at-footer-col li + li {
  margin-top: 7px;
}

.at-footer-col a {
  color: var(--at-footer-muted);
  font-size: 12.5px;
}

.at-footer-col a:hover {
  color: var(--at-accent);
}

.at-footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.at-footer-base p {
  margin: 0;
  color: var(--at-footer-muted);
  font-size: 12px;
}

.at-footer-base a {
  color: var(--at-footer-ink);
}

.at-top {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--at-pill);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
}

.at-top:hover {
  background: var(--at-accent);
  border-color: var(--at-accent);
}

/* Core Bootstrap surfaces --------------------------------------------------
   Routes this theme does not override (account, cart, checkout, information)
   still render the stock markup, so give those classes the same skin. */

.at-body .card {
  border: 1px solid var(--at-line);
  border-radius: var(--at-r);
  background: var(--at-surface);
  box-shadow: var(--at-shadow-1);
}

.at-body .card-header {
  border-bottom: 1px solid var(--at-line);
  background: var(--at-surface);
  color: var(--at-ink);
  font-weight: 650;
}

.at-body .form-control,
.at-body .form-select {
  border: 1px solid var(--at-line);
  border-radius: var(--at-r-sm);
  background-color: var(--at-surface);
  color: var(--at-ink);
  font-size: 13.5px;
}

.at-body .form-control:focus,
.at-body .form-select:focus {
  border-color: var(--at-accent);
  box-shadow: 0 0 0 3px var(--at-accent-soft);
}

.at-body .form-label {
  color: var(--at-ink-2);
  font-size: 12.5px;
  font-weight: 600;
}

.at-body .btn-primary {
  border-color: var(--at-accent);
  background: var(--at-accent);
  color: var(--at-on-accent);
}

.at-body .btn-primary:hover,
.at-body .btn-primary:focus {
  border-color: var(--at-accent-dark);
  background: var(--at-accent-dark);
}

.at-body .btn-light,
.at-body .btn-secondary {
  border-color: var(--at-line);
  background: var(--at-surface);
  color: var(--at-ink-2);
}

.at-body .btn-light:hover,
.at-body .btn-secondary:hover {
  border-color: var(--at-accent);
  background: var(--at-surface);
  color: var(--at-accent);
}

.at-body .table {
  color: var(--at-ink-2);
}

.at-body .table > :not(caption) > * > * {
  border-color: var(--at-line);
  background: var(--at-surface);
}

.at-body .pagination {
  gap: 6px;
}

.at-body .page-link {
  border: 1px solid var(--at-line);
  border-radius: var(--at-r-sm);
  background: var(--at-surface);
  color: var(--at-ink-2);
  font-size: 13px;
}

.at-body .page-link:hover {
  border-color: var(--at-accent);
  background: var(--at-surface);
  color: var(--at-accent);
}

.at-body .page-item.active .page-link {
  border-color: var(--at-accent);
  background: var(--at-accent);
  color: var(--at-on-accent);
}

.at-body .alert {
  border: 1px solid var(--at-line);
  border-radius: var(--at-r);
  background: var(--at-surface);
  color: var(--at-ink);
  box-shadow: var(--at-shadow-2);
}

.at-body #alert {
  position: fixed;
  top: 84px;
  right: 16px;
  z-index: 1080;
  width: min(360px, calc(100vw - 32px));
}

.at-body .list-group-item {
  border-color: var(--at-line);
  background: var(--at-surface);
  color: var(--at-ink-2);
}

.at-body .list-group-item.active {
  border-color: var(--at-accent);
  background: var(--at-accent);
  color: var(--at-on-accent);
}

/* Responsive --------------------------------------------------------------- */

@media (max-width: 1199.98px) {
  .at-footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991.98px) {
  /* One line: burger, logo, actions. The search takes a second row only while
     its toggle is open, and the nav only while the burger is. */
  .at-bar {
    flex-wrap: wrap;
    gap: 8px;
    min-height: 0;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .at-logo {
    min-width: 0;
  }

  .at-logo img {
    max-height: 32px;
  }

  .at-body .at-wordmark {
    display: block;
    overflow: hidden;
    font-size: 17px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .at-actions {
    gap: 6px;
  }

  .at-cart-btn {
    height: 38px;
    padding: 0 12px;
  }

  .at-search {
    order: 3;
    flex: 1 0 100%;
    padding-bottom: 6px;
  }

  .at-search-input {
    height: 40px;
  }

  .at-nav-collapse {
    max-height: calc(100vh - 132px);
    padding: 8px 0 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .at-nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .at-nav-item + .at-nav-item {
    border-left: 0;
    border-top: 1px solid var(--at-line-2);
  }

  .at-nav-link {
    max-width: none;
    justify-content: space-between;
    text-align: left;
  }

  .at-nav-extra {
    margin-top: 6px;
    border-top: 1px solid var(--at-line);
  }

  .at-nav-extra + .at-nav-extra {
    margin-top: 0;
    border-top: 1px solid var(--at-line-2);
  }

  .at-nav-extra .at-nav-link {
    color: var(--at-ink);
  }

  .at-nav-extra .at-nav-link i {
    font-size: 13px;
    color: var(--at-accent);
  }

  .at-panel-menu {
    position: static;
    display: block;
    max-width: none;
    padding: 4px 0 10px 14px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .at-panel-grid {
    flex-wrap: wrap;
    gap: 0 26px;
  }

  .at-pdp {
    grid-template-columns: minmax(0, 1fr);
  }

  .at-rows .at-card {
    flex-direction: column;
  }

  .at-rows .at-card-media,
  .at-rows .at-card-foot {
    flex: 0 0 auto;
  }
}

@media (max-width: 767.98px) {
  .at-utility-inner {
    justify-content: flex-end;
    gap: 10px;
    min-height: 32px;
  }

  .at-utility {
    font-size: 11.5px;
  }

  .at-rates {
    display: none;
  }

  .at-utility-end {
    gap: 10px;
  }

  /* The contact page is a footer link too; the phone number is the one that has
     to survive on a narrow bar. */
  .at-utility-end .at-utility-link + .at-utility-link {
    display: none;
  }

  .at-search-input {
    padding-right: 52px;
  }

  .at-search-go {
    padding: 0 12px;
  }

  .at-news {
    flex-direction: column;
    margin-bottom: -48px;
    text-align: center;
  }

  .at-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .at-block-head {
    align-items: flex-start;
  }

  .at-buy-row {
    flex-wrap: wrap;
  }

  .at-stepper-lg {
    flex: 1 1 100%;
  }
}

/* A 360px bar holds about 336px, and the core stylesheet pins the logo at
   200px. Burger, logo and four controls do not fit, so under sm the bar keeps
   the two a phone actually taps - search and cart - and the account and
   wishlist entries move into the burger menu (see menu.twig). */
@media (max-width: 575.98px) {
  .at-body .at-account,
  .at-body .at-fav-link {
    display: none;
  }

  .at-logo {
    overflow: hidden;
  }

  .at-logo img {
    max-width: 100%;
  }

  .at-body .at-wordmark {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .at-body * {
    transition-duration: .01ms !important;
  }
}
