/* ===== Fonts: Lato (text) and Anton (block titles) of the OpenCart theme, self-hosted, latin subset ===== */
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/lato-400.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/lato-700.woff2') format('woff2'); }
@font-face { font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/anton-400.woff2') format('woff2'); }

/* ===== Colour palette ===== */
:root {
  /* Brand */
  --accent:          #3498db;
  --accent-rgb:      52, 152, 219;
  --accent-dark:     #1f73ab;
  --accent-dark-rgb: 31, 115, 171;
  --light-accent:    #eaf4fb;
  --side-link-active: #cdebff; /* the current / hovered category on the blue sidebar box */

  /* Text */
  --text:            #333;
  --text-muted-dark: #555;
  --text-subtle:     #787878;
  --btn-text:        #fff;
  --white:           #fff;
  --white-rgb:       255, 255, 255;
  --black-rgb:       0, 0, 0;

  /* Backgrounds and lines */
  --dark:            #161b1e;
  --gray:            #6c757d;
  --gray-light:      #adb5bd;
  --light:           #f3f3f3;
  --side-filter-head: #f7f7f7;
  --border:          #7b7b7b;
  --border-light:    #e8e8e8;
  --border-mid:      #dee2e6;
  --accordion-arrow: #adadad;
  --bg-page:         #f8f9fa;
  --bg-tabs:         #f0f2f5;
  --footer-bg:       #161b1e;
  --footer-text:     #c8c8c8;
  --footer-contact-bg: #2a2e31;
  --footer-bottom-bg:  #101315;
  --pre-bg:          #f5f5f5;
  --pre-border:      #ccc;

  /* Status and prices */
  --danger:          #f35b20;
  --danger-rgb:      243, 91, 32;
  --warning:         #fffc07;
  --warning-strong:  #a67c00;
  --warning-bar-bg:   #ffd700;
  --warning-bar-text: #1a1a1a;
  --price-color:     #161b1e;
  --old-price-color: #999;

  /* Shadows */
  --shadow-rgb:      10, 10, 10;
  --shadow-sm:       0 4px 15px rgba(var(--shadow-rgb), 0.06);
  --shadow-md:       0 12px 24px rgba(var(--accent-rgb), 0.25);
  --shadow-float:    0 12px 34px rgba(var(--shadow-rgb), 0.14); /* floating boxes: toasts, skip link */

  /* Bootstrap */
  --bs-primary:         var(--accent);
  --bs-primary-rgb:     var(--accent-rgb);
  --bs-success:         var(--accent-dark);
  --bs-success-rgb:     var(--accent-dark-rgb);
  --bs-link-color:      var(--accent-dark);
  --bs-link-color-rgb:  var(--accent-dark-rgb);
  --bs-link-hover-color: var(--accent-dark);
  --bs-danger:          var(--danger);
  --bs-danger-rgb:      var(--danger-rgb);
}

/* ==========================================================================
   Main Stylesheet - Optimized Version
   ========================================================================== */

/* ==========================================================================
   1. Variables & Reset
   ========================================================================== */

:root {
  /* Transitions */
  --transition:      all 0.2s ease;
  --transition-slow: all 0.25s ease;

  /* Border radius */
  --radius-xs:  0;   /* small accents: badges, focus outlines */
  --radius-sm:  0;   /* buttons, nav elements */
  --radius-md:  0;   /* cards, images, inputs */
  --radius-lg:  0;  /* larger blocks, tabs, pagination */
  --radius-xl:  0;  /* hero, large cards */

  /* Font sizes */
  --fs-xxs: 0.8rem;   /* smallest: sale badge, form labels */
  --fs-xs:  0.9rem;   /* small text: badges, filter items */
  --fs-sm:  0.85rem;  /* secondary text: labels, breadcrumbs, metadata */
  --fs-base: 0.95rem; /* slightly smaller base: filter links, page controls */
  --fs-lg:  1.1rem;   /* slightly larger: section labels, form inputs */

  /* Breakpoints */
  --bp-sm: 576px;
  --bp-md: 768px;
  --bp-lg: 992px;
  --bp-xl: 1200px;

  /* Typography */
  --font-family: 'Lato', Arial, Helvetica, sans-serif;
  --font-display: 'Anton', 'Arial Narrow', sans-serif; /* the OpenCart theme's block titles */
  --font-mono: Menlo, Monaco, Consolas, 'Courier New', monospace;
  --line-height: 1.5;

  /* Layout */
  --container-max:    1200px;
  --container-max-xl: 1200px;
}

/* ==========================================================================
   2. Base & Typography
   ========================================================================== */

html,
body {
  overflow-x: hidden;
}

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

body {
  font-family: var(--font-family);
  background: var(--white);
  color: var(--text);
  margin: 0;
  line-height: var(--line-height);
}

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

a:hover {
  color: var(--accent-dark);
}

/* ==========================================================================
   3. Layout & Containers
   ========================================================================== */

.container {
  max-width: var(--container-max);
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 1920px) {
  .container {
    max-width: var(--container-max-xl);
  }
}

/* ==========================================================================
   4. Top Bar
   ========================================================================== */

.promo-bar {
  background: var(--dark);
  color: var(--white);
  font-size: var(--fs-sm);
  border-bottom: 1px solid rgba(var(--white-rgb), 0.1);
}

.promo-bar strong {
  color: var(--accent);
}

/* ==========================================================================
   5. Navigation
   ========================================================================== */

.navbar-main {
  background: var(--dark);
  padding: 12px 0;
}

.navbar-brand {
  color: var(--white) !important;
  font-weight: bold;
}

.nav-link {
  color: var(--white) !important;
  padding: 10px 16px;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent) !important;
  background: rgba(var(--white-rgb), 0.1);
}

.navbar-nav {
  flex-wrap: wrap !important;
  gap: 6px 12px;
  row-gap: 8px;
}

@media (min-width: 1200px) {
  .navbar-nav {
    flex-wrap: nowrap !important;
  }
}

@media (max-width: 1199px) {
  .navbar-nav {
    justify-content: center;
  }
}

@media (max-width: 991px) {
  .navbar-nav {
    flex-direction: column;
    gap: 2px;
    width: 100%;
  }
  
  .nav-link {
    width: 100%;
    text-align: left;
    padding: 12px 20px;
  }
}

/* User icons & mini-cart trigger */
.user-icons > a {
  color: var(--white);
  transition: var(--transition);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.user-icons > a:hover {
  background: rgba(var(--white-rgb), 0.1);
  color: var(--accent);
}

/* Search form */
.search-form input.form-control {
  min-width: 200px !important;
}

.search-form .form-control {
  min-height: 44px;
}

/* Header icon controls: 44px tap targets */
.navbar-main .user-icons > a,
.search-form .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.navbar-main .navbar-toggler {
  min-height: 44px;
}

/* Skip link: the first Tab stop, shown only while focused */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1080;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-float);
}

form.search-form.d-lg-none {
  background: var(--dark);
  padding-bottom: 6px;
  margin-bottom: -6px;
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   6. Dropdown (All Categories)
   ========================================================================== */

.navbar-main .dropdown-menu {
  min-width: 220px;
  border: 1px solid rgba(var(--black-rgb), .12);
  box-shadow: 0 8px 24px rgba(var(--black-rgb), .12);
  border-radius: var(--radius-sm);
}

.navbar-main .dropdown-item {
  padding: 8px 20px;
  color: var(--text);
}

.navbar-main .dropdown-item:hover,
.navbar-main .dropdown-item:focus {
  color: var(--white);
  background-color: var(--accent);
}

/* ==========================================================================
   7. Mini-cart
   ========================================================================== */

.mini-cart {
  display: none;
  position: absolute;
  top: 130%;
  right: 0;
  z-index: 1050;
  width: 320px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(var(--black-rgb), 0.2);
  padding: 15px;
}

.mini-cart.show {
  display: block;
}

.mini-cart-items {
  max-height: max(180px, calc(100vh - 320px));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mini-cart .cart-item {
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.mini-cart .cart-item + .cart-item {
  border-top: 1px solid var(--border-light);
  padding-top: 10px;
}

.mini-cart .cart-total {
  font-weight: bold;
  border-top: 1px solid var(--border-light);
  padding-top: 10px;
  margin-top: 4px;
}

.mini-cart .empty-cart {
  color: var(--text-subtle);
}

@media (max-width: 576px) {
  .mini-cart {
    width: 90vw;
    right: 5vw;
    left: auto;
  }
}

/* ==========================================================================
   8. Buttons
   ========================================================================== */

.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--btn-text);
}

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

.btn-primary:active,
.btn-primary.active,
.btn-primary:active:focus {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--btn-text);
}

.btn-modern {
  background: var(--accent);
  color: var(--btn-text);
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: background-color 0.2s ease, transform 0.12s ease;
}

.btn-modern:hover {
  background: var(--accent-dark);
  color: var(--btn-text);
  transform: translateY(-2px);
}

.btn-modern:active {
  background: var(--accent-dark);
  color: var(--btn-text);
  transform: translateY(0);
}

.btn-modern:focus,
.btn-modern:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(var(--accent-rgb), 0.35);
}

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

.btn-outline-primary:hover,
.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-outline-primary:active:focus {
  background-color: var(--accent);
  color: var(--btn-text);
  border-color: var(--accent);
}

/* ==========================================================================
   9. Product Card
   ========================================================================== */

.product-card {
  text-align: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  background: var(--white);
}

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

.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 180px;
  object-fit: contain;
  background: var(--light);
  padding: 15px;
}

.price {
  color: var(--price-color);
  font-weight: 700;
  font-size: 1.25rem;
}

.old-price {
  text-decoration: line-through;
  color: var(--old-price-color);
  font-size: 1rem;
  margin-left: 8px;
}

.stars {
  color: var(--warning);
  font-size: 1rem;
}

.sale-badge {
  background: var(--danger);
  color: var(--white);
  font-size: var(--fs-xxs);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
}

/* ==========================================================================
   10. Product Catalog / Filters
   ========================================================================== */

.filter-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  background: var(--white);
}

.filter-title {
  background: var(--light-accent);
  padding: 12px 18px;
  margin: 0;
  font-size: var(--fs-lg);
  cursor: pointer;
  font-weight: 600;
}

.filter-content {
  padding: 15px 18px;
}

.form-check-label {
  font-size: var(--fs-base);
  cursor: pointer;
}

.offcanvas-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.filter-link-item {
  padding: 6px 0;
  font-size: var(--fs-base);
}

.filter-link-item.parent {
  font-weight: 600;
  margin-bottom: 4px;
}

.filter-link-item.child {
  font-weight: normal;
  color: var(--text-muted-dark);
}

.filter-link-item a {
  color: inherit;
  display: block;
  transition: color 0.2s;
}

.filter-link-item a:hover,
.filter-link-item a.active {
  color: var(--accent);
  text-decoration: underline;
}

/* ==========================================================================
   11. Product Page Gallery
   ========================================================================== */

.product-gallery .main-image {
  height: 450px;
  overflow: hidden;
  background: var(--bg-page);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(var(--black-rgb), 0.1);
}

.product-gallery .main-image img#mainProductImage {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-gallery .thumbs .col-3 {
  height: 100px;
  padding: 0;
}

.thumb {
  width: 100px;
  height: 100px;
  object-fit: contain;
  background: var(--bg-page);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  padding: 5px;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
}

.thumb.active,
.thumb:hover {
  opacity: 1;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.3);
}

/* ==========================================================================
   12. Pagination
   ========================================================================== */

.pagination {
  --pg-color: var(--gray);
  --pg-bg: var(--white);
  --pg-hover-bg: var(--bg-page);
  --pg-active-bg: var(--accent);
  --pg-active-color: var(--btn-text);
  --pg-border: var(--border-mid);
  --pg-radius: var(--radius-lg);
  --pg-gap: 6px;
  --bs-pagination-active-bg: var(--accent);
  --bs-pagination-active-border-color: var(--accent);
  --bs-pagination-active-color: var(--btn-text);
  margin: 2.5rem 0 1.5rem !important;
  flex-wrap: wrap;
  gap: var(--pg-gap);
  justify-content: center;
}

.page-item {
  margin: 0 !important;
}

.page-link,
.page-item.disabled .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: var(--fs-base);
  font-weight: 500;
  line-height: 1;
  color: var(--pg-color);
  background-color: var(--pg-bg);
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  transition: all 0.18s ease;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(var(--black-rgb), 0.06);
}

.page-link:hover {
  background-color: var(--pg-hover-bg);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.18);
}

.page-item.active .page-link {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--btn-text) !important;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(var(--accent-rgb), 0.3);
  transform: translateY(-1px);
}

.page-item.disabled .page-link {
  color: var(--gray-light);
  background-color: var(--bg-page);
  border-color: var(--border-mid);
  cursor: not-allowed;
  opacity: 0.75;
  box-shadow: none;
  transform: none;
}

.page-item:first-child .page-link,
.page-item:last-child .page-link,
.page-item.prev .page-link,
.page-item.next .page-link {
  border-radius: var(--pg-radius);
  min-width: 46px;
  font-size: var(--fs-lg);
  padding: 0 10px;
}

/* ==========================================================================
   13. Hero Section
   ========================================================================== */

.hero {
  background: var(--light-accent);
  padding: 40px 0;
}

/* ==========================================================================
   14. General Components
   ========================================================================== */

.newsletter {
  background: var(--light-accent);
  padding: 60px 0;
  text-align: center;
}

.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 30px;
}

.footer a {
  color: var(--footer-text);
}

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

.footer h5 {
  color: var(--white);
  font-size: var(--fs-xxs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-copy {
  color: var(--text-subtle);
  font-size: var(--fs-sm);
}

/* ==========================================================================
   15. Cart Page
   ========================================================================== */

.cart-item {
  padding: 20px 0;
}

.cart-item + .cart-item {
  border-top: 1px solid var(--border-mid);
}

.cart-item--bonus {
  background: var(--light-accent);
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: var(--bg-page);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  padding: 4px;
}

.qty-input {
  max-width: 180px;
}

.cart-summary {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
}

.cart-empty-message {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--text-subtle);
  font-size: 1.3rem;
}

.cart-item .price { margin-bottom: 0; }
.cart-item h6 { margin-bottom: 0.6rem !important; }
.promo-coupon-widget { margin-top: 1.25rem; margin-bottom: 1.25rem; }

@media (max-width: 576px) {
  .qty-input {
    width: 120px !important;
  }

  .qty-input input[type="number"] {
    font-size: 1rem;
    padding: 0.5rem 0.25rem;
  }

  .qty-input .btn {
    width: 35px;
  }

  .cart-item {
    display: grid;
    grid-template-columns: 88px 1fr;
    align-items: start;
    position: static;
    padding-right: 0;
  }
  .cart-item > .me-3 { grid-column: 1; grid-row: 1; align-self: center; }
  .cart-item > .flex-grow-1 { grid-column: 2; grid-row: 1; min-width: 0; padding-right: 2rem; }
  .cart-item .flex-grow-1 .d-flex { flex-wrap: wrap; row-gap: 0.4rem; }
  .cart-item .js-remove-item {
    grid-column: 2; grid-row: 1;
    justify-self: end; align-self: start;
    position: static; transform: none;
    margin: 0 !important; padding: 0;
  }
}

/* ==========================================================================
   16. Checkout Page - Refinements
   ========================================================================== */

/* Checkout page specific overrides */
.checkout-page .form-control,
.checkout-page .form-select {
  border-color: var(--border-mid);
  font-size: var(--fs-lg);
  padding: 0.65rem 1rem;
  transition: var(--transition);
  background: var(--white);
}

.checkout-page .form-control:focus,
.checkout-page .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.08);
}

/* Softer card titles */
.checkout-page .card-title {
  font-weight: 500 !important;
  font-size: var(--fs-lg);
  letter-spacing: -0.2px;
  color: var(--dark);
  margin-bottom: 1.25rem !important;
}

/* Lighter, more elegant checkboxes */
.checkout-page .form-check {
  padding-left: 1.8rem;
}

.checkout-page .form-check-input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  margin-left: -1.8rem;
  border: 1.5px solid var(--border-mid);
  cursor: pointer;
}

.checkout-page .form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.checkout-page .form-check-input:focus {
  box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.2);
  border-color: var(--accent);
}

.checkout-page .form-check-label {
  font-weight: 400;
  color: var(--dark);
  font-size: var(--fs-xs);
}

/* Billing fields - smoother appearance */
#billingFields .form-control,
#billingFields .form-select {
  background: var(--white);
}

/* Order summary card - cleaner */
.checkout-page .card.shadow-sm {
  box-shadow: 0 2px 12px rgba(var(--black-rgb), 0.04) !important;
  border: 1px solid var(--border-light) !important;
}

/* Alert styling - minimal */
.checkout-page .alert-info {
  background: var(--light-accent);
  border: none;
  border-left: 3px solid var(--accent);
  color: var(--dark);
  font-size: var(--fs-sm);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
}

.checkout-page .alert-info i {
  color: var(--accent);
}

/* Breadcrumbs refinement */
.checkout-page .breadcrumb {
  font-size: var(--fs-sm);
}

.checkout-page .breadcrumb-item a {
  color: var(--gray);
  text-decoration: none;
}

.checkout-page .breadcrumb-item a:hover {
  color: var(--accent-dark);
}

.checkout-page .breadcrumb-item.active {
  color: var(--dark);
  font-weight: 500;
}

/* Form labels - lighter */
.checkout-page .form-label {
  font-weight: 450;
  color: var(--text-muted-dark);
  font-size: var(--fs-xxs);
  margin-bottom: 0.3rem;
  letter-spacing: 0.2px;
}

/* Error messages - subtle */
.checkout-page .invalid-feedback {
  font-size: 0.7rem;
  color: var(--danger);
  margin-top: 0.25rem;
}

/* Make cards more airy on mobile */
@media (max-width: 768px) {
  .checkout-page .card-body {
    padding: 1.5rem !important;
  }
}

/* ==========================================================================
   17. Toast Notifications
   ========================================================================== */

.site-toast {
  --toast-accent: var(--accent-dark);
  width: min(360px, calc(100vw - 2rem));
  z-index: 1055;
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--toast-accent);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-float);
}

.site-toast-success { --toast-accent: var(--accent-dark); }
.site-toast-danger  { --toast-accent: var(--danger); }
.site-toast-warning { --toast-accent: var(--warning-strong); }
.site-toast-info    { --toast-accent: var(--gray); }

.site-toast.is-clickable {
  cursor: pointer;
}

.site-toast-icon {
  flex: 0 0 auto;
  margin: 15px 0 0 14px;
  font-size: 1.25rem;
  color: var(--toast-accent);
}

.site-toast .toast-body {
  flex: 1 1 auto;
  padding: 14px 12px;
  font-size: var(--fs-base);
  line-height: 1.45;
}

.site-toast-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: -1px -1px 0 0;
  background-size: .75rem;
}


/* ==========================================================================
   18. Error Page
   ========================================================================== */

.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.error-code-wrap {
  margin-bottom: 1.5rem;
}

.error-code {
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
  display: block;
}

.error-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 1rem 0 1.5rem;
}

.error-message {
  font-size: 1.25rem;
  color: var(--text-muted-dark);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.error-search {
  gap: 10px;
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

.error-search .form-control,
.error-search .btn {
  min-height: 44px;
}

.error-support {
  color: var(--gray);
  font-size: var(--fs-xs);
}

.error-support a {
  color: var(--accent);
}

/* ==========================================================================
   20. FAQ Page
   ========================================================================== */

.faq-header {
  background: var(--light-accent);
  padding: 60px 0 40px;
  text-align: center;
}

.faq-item .accordion-button {
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  background: var(--white);
}

.faq-item .accordion-button:not(.collapsed) {
  background: var(--light-accent);
  color: var(--accent-dark);
}

.faq-item .accordion-body {
  padding: 1.5rem;
  background: var(--bg-page);
}

.faq-search {
  max-width: 600px;
  margin: 0 auto 40px;
}

/* ==========================================================================
   21. Profile & Account Pages
   ========================================================================== */

.profile-sidebar {
  background: var(--white);
  border-right: 1px solid var(--border-light);
  min-height: 500px;
}

.profile-sidebar .nav-link {
  color: var(--text-muted-dark);
  padding: 1rem 1.5rem;
  border-radius: 0;
  border-left: 4px solid transparent;
  transition: var(--transition);
}

.profile-sidebar .nav-link:hover,
.profile-sidebar .nav-link.active {
  background: var(--light-accent);
  color: var(--accent-dark);
  border-left-color: var(--accent);
}

.profile-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.avatar {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--light-accent);
}

.avatar-preview {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--light-accent);
}

.avatar-upload {
  position: relative;
  display: inline-block;
}

.avatar-upload input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.avatar-upload .upload-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: var(--accent);
  color: var(--btn-text);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lg);
  cursor: pointer;
}

/* ==========================================================================
   22. Orders History Page
   ========================================================================== */

.order-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.order-header {
  background: var(--bg-page);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.order-body {
  padding: 1.5rem;
}

.order-item-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: var(--bg-page);
  border-radius: var(--radius-sm);
}

.status-badge {
  font-size: var(--fs-xs);
  padding: 0.5em 1em;
}

/* ==========================================================================
   23. Notifications Page
   ========================================================================== */

.notification-item {
  border-bottom: 1px solid var(--border-light);
  padding: 1.25rem 0;
  transition: background 0.2s;
}

.notification-item:hover {
  background: var(--bg-page);
}

.notification-item.unread {
  background: var(--light-accent);
  border-left: 4px solid var(--accent);
}

.notification-time {
  font-size: var(--fs-sm);
  color: var(--text-subtle);
}

.notification-icon {
  width: 42px;
  height: 42px;
  background: var(--light-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent-dark);
  flex-shrink: 0;
}

/* ==========================================================================
   24. Focus & Accessibility
   ========================================================================== */

.page-link:focus,
.btn-primary:focus,
.nav-link:focus,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* Reduced motion for vestibular disorders */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .product-card:hover {
    transform: none;
  }
}

/* ==========================================================================
   26. Mobile Responsive Overrides
   ========================================================================== */

@media (max-width: 576px) {
  .container {
    padding-right: 12px;
    padding-left: 12px;
  }
  
  .hero {
    padding: 20px 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .product-img {
    max-height: 180px;
  }
  
  .search-form {
    width: 100% !important;
    margin-bottom: 10px;
  }
  
  .user-icons {
    justify-content: center;
    width: 100%;
  }
  
  .error-code {
    font-size: 6rem;
  }
  
  .error-title {
    font-size: 2rem;
  }
  
  .faq-header {
    padding: 40px 0 30px;
  }
  
  .faq-header h1 {
    font-size: 2.2rem;
  }
  
  /* Pagination mobile optimization */
  .pagination {
    --pg-gap: 4px;
    margin: 1.5rem 0 1rem !important;
  }
  
  .page-link,
  .page-item.disabled .page-link {
    min-width: 34px;
    height: 34px;
    font-size: var(--fs-xs);
    padding: 0 8px;
  }
  
  .page-item.prev .page-link,
  .page-item.next .page-link {
    min-width: 40px;
  }
}

@media (max-width: 991px) {
  .sidebar {
    margin-bottom: 2rem;
  }
  
  .profile-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    min-height: auto;
  }
}


/* ==========================================================================
   27. Product Tabs
   ========================================================================== */

#productTabs {
  border-bottom: none;
  background: var(--bg-tabs);
  border-radius: var(--radius-lg);
  padding: 4px;
  gap: 2px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#productTabs .nav-link {
  color: var(--gray) !important;
  font-weight: 600;
  font-size: var(--fs-xs);
  border: none;
  border-radius: var(--radius-md);
  padding: 9px 22px;
  white-space: nowrap;
  background: none;
  transition: color 0.15s, background 0.15s, box-shadow 0.15s;
}

#productTabs .nav-link:hover {
  color: var(--dark) !important;
  background: rgba(var(--white-rgb), 0.5);
}

#productTabs .nav-link.active {
  color: var(--accent) !important;
  background: var(--white);
  box-shadow: 0 1px 6px rgba(var(--black-rgb), 0.10);
}

.tab-content {
  padding-top: 1.75rem;
}

.tab-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-mid);
  color: var(--dark);
}

/* Preserve navbar styles — must come after tab overrides */
.navbar-main .nav-link {
  color: var(--white) !important;
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
  color: var(--accent) !important;
  background: rgba(var(--white-rgb), 0.1);
}


.lead.mb-4 {
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: var(--dark);
  margin-bottom: 1.5rem !important;
}

/* Warning bar */
#warningBar {
  background: var(--warning-bar-bg);
  color: var(--warning-bar-text);
  font-size: var(--fs-sm);
  position: relative;
  text-align: center;
  padding: 0.6rem 3rem 0.6rem 1rem;
}
#warningBar strong { color: var(--btn-text); }
#warningBar button {
  position: absolute;
  top: 50%;
  right: 0.6rem;
  transform: translateY(-50%);
  background: none;
  border: 2px solid rgba(var(--black-rgb), 0.4);
  border-radius: 50%;
  width: 1.6rem;
  height: 1.6rem;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--warning-bar-text);
  padding: 0;
}
#warningBar button:hover {
  background-color: rgba(var(--black-rgb), 0.12);
  border-color: rgba(var(--black-rgb), 0.7);
}

/* ── Tab Products widget ── */
.bb-tabs-section {
  padding: 32px 0 40px;
}
.bb-tab-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.bb-tab-link {
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.bb-tab-link:hover { color: var(--bs-primary); }
.bb-tab-link.active { color: var(--bs-danger); font-weight: 600; }
.bb-tab-panel { display: none; }
.bb-tab-panel.active { display: block; }

.product-qty { width: 130px; flex-shrink: 0; }
.product-qty input[type="number"]::-webkit-inner-spin-button,
.product-qty input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.product-qty input[type="number"] { -moz-appearance: textfield; }

@media (max-width: 991px) {
  .product-info-col h1 { text-align: center; }
  .product-info-col .stars-row { justify-content: center; }
  .product-info-col .price { font-size: 3.75rem; text-align: center; }
}

/* Free-shipping progress hint (cart + checkout summary) */
.freeship-progress {
  padding: 0.5rem 0.75rem;
  background: var(--light-accent);
  border-radius: 6px;
  color: var(--text-muted-dark);
}

.freeship-progress .fa-truck,
.freeship-progress strong {
  color: var(--accent-dark);
}

/* Product tabs collapse into an accordion on mobile (headers injected by JS) */
@media (max-width: 991.98px) {
  #productTabs.nav-tabs { display: none; }
  #productTabsContent { border-bottom: 1px solid var(--border-light); }
  .tab-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.95rem 0;
    border: 0;
    border-top: 1px solid var(--border-light);
    background: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted-dark);
    cursor: pointer;
  }
  .tab-accordion-header .acc-chevron {
    flex: none;
    width: 9px;
    height: 9px;
    margin-left: 0.75rem;
    border-right: 2px solid var(--accordion-arrow);
    border-bottom: 2px solid var(--accordion-arrow);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }
  .tab-accordion-header.active { color: var(--text); }
  .tab-accordion-header.active .acc-chevron { transform: rotate(-135deg); border-color: var(--accent); }
  #productTabsContent > .tab-pane { display: none !important; }
  #productTabsContent > .tab-pane.acc-open { display: block !important; opacity: 1; padding: 0 0 1.1rem; }
}

/* ==========================================================================
   Bootstrap components in theme colours
   ========================================================================== */

body {
  accent-color: var(--accent);
}

.btn-primary {
  --bs-btn-color: var(--btn-text);
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-color: var(--btn-text);
  --bs-btn-hover-bg: var(--accent-dark);
  --bs-btn-hover-border-color: var(--accent-dark);
  --bs-btn-active-color: var(--btn-text);
  --bs-btn-active-bg: var(--accent-dark);
  --bs-btn-active-border-color: var(--accent-dark);
  --bs-btn-disabled-color: var(--btn-text);
  --bs-btn-disabled-bg: var(--accent);
  --bs-btn-disabled-border-color: var(--accent);
  --bs-btn-focus-shadow-rgb: var(--accent-rgb);
}

.btn-outline-primary {
  --bs-btn-color: var(--accent-dark);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-color: var(--btn-text);
  --bs-btn-hover-bg: var(--accent);
  --bs-btn-hover-border-color: var(--accent);
  --bs-btn-active-color: var(--btn-text);
  --bs-btn-active-bg: var(--accent-dark);
  --bs-btn-active-border-color: var(--accent-dark);
  --bs-btn-disabled-color: var(--accent-dark);
  --bs-btn-disabled-border-color: var(--accent);
  --bs-btn-focus-shadow-rgb: var(--accent-rgb);
}

.btn-link {
  --bs-btn-focus-shadow-rgb: var(--accent-rgb);
}

.btn-close {
  --bs-btn-close-focus-shadow: 0 0 0 0.25rem rgba(var(--accent-rgb), 0.25);
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: rgba(var(--accent-rgb), 0.6);
  box-shadow: 0 0 0 0.25rem rgba(var(--accent-rgb), 0.25);
}

.form-check-input:checked {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
}

.nav-link:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(var(--accent-rgb), 0.25);
}

.pagination {
  --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(var(--accent-rgb), 0.25);
}

.table-success {
  --bs-table-bg: var(--light-accent);
  --bs-table-border-color: rgba(var(--accent-rgb), 0.35);
  --bs-table-color: var(--text);
}

/* ==========================================================================
   Product cards: buttons of one row on one line
   ========================================================================== */

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card > a {
  flex-grow: 1;
}

.product-img-widget {
  height: 220px;
  object-fit: contain;
  background: var(--bg-page);
  padding: 15px;
}

/* ==========================================================================
   Text pages and catalogue descriptions
   ========================================================================== */

.page-content {
  color: var(--text);
  line-height: 1.75;
  overflow-wrap: break-word;
}

.page-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 0.8rem;
}

.page-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.6rem 0 0.6rem;
}

.page-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.3rem 0 0.5rem;
}

.page-content p {
  margin: 0 0 1rem;
}

.page-content ul,
.page-content ol {
  margin: 0 0 1.1rem 1.3rem;
  padding: 0;
}

.page-content li {
  margin-bottom: 0.45rem;
}

.page-content a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.page-content blockquote {
  border-left: 4px solid var(--accent);
  background: var(--light-accent);
  padding: 0.9rem 1.1rem;
  margin: 1.5rem 0;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.page-content th,
.page-content td {
  border: 1px solid var(--border-mid);
  padding: 0.5rem 0.7rem;
  vertical-align: top;
}

.page-content > :first-child {
  margin-top: 0;
}

@media (max-width: 399.98px) {
  .page-content th,
  .page-content td {
    padding: 0.4rem;
    overflow-wrap: anywhere;
  }
}

/* ===== Product card (one partial for catalog, widgets and related products) ===== */
.product-card {
    background: var(--white);
}

.card-stock-note {
    margin: 0 0 .5rem;
    font-size: .85rem;
    text-align: center;
    opacity: .7;
}

.sidebar .filter-count {
    opacity: .65;
    font-size: .85em;
}

/* ===== A-Z lists: brands, substances ===== */
.terms-page {
    max-width: 960px;
}

.terms-intro {
  margin: 0;
}

.terms-index {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 1.5rem 0 .5rem;
}

.terms-index a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 4px 8px;
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text);
}

.terms-index a:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
}

.terms-group {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.terms-group-letter {
    margin: 0 0 .5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.terms-group-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.terms-group-list li {
    padding: .2rem 0;
    break-inside: avoid;
}

.terms-group-list .count {
    font-size: var(--fs-sm);
    color: var(--gray);
}

@media (min-width: 576px) {
    .terms-group-list {
        columns: 2;
        column-gap: 2rem;
    }
}

@media (min-width: 992px) {
    .terms-group-list {
        columns: 3;
    }
}

/* ===== Checkout: Place Order while the order is being sent ===== */
.checkout-page .btn-primary[data-checkout-guard] {
    --bs-btn-disabled-opacity: .9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    letter-spacing: 0;
    transition: none;
}

.checkout-page .btn-primary[data-checkout-guard]::before {
    content: "";
    flex: none;
    width: 18px;
    height: 18px;
    margin-right: 12px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: checkout-sending .8s linear infinite;
}

.checkout-page .btn-primary[data-checkout-guard]::after {
    content: attr(data-sending);
    min-width: 0;
    font-size: clamp(14px, 4.4vw, var(--bs-btn-font-size));
    line-height: calc(var(--bs-btn-font-size) * var(--bs-btn-line-height));
}

@keyframes checkout-sending {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .checkout-page .btn-primary[data-checkout-guard]::before {
        animation: none;
    }
}

/* ===== Touch targets on phones (44px) ===== */
@media (max-width: 767.98px) {
    .btn {
        --bs-btn-padding-y: .5625rem;
    }

    .btn-sm {
        --bs-btn-padding-y: .65625rem;
    }

    .form-control,
    .form-select {
        min-height: 44px;
    }

    .js-qty-minus,
    .js-qty-plus {
        min-width: 44px;
    }

    .page-link {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }

    .breadcrumb-item a {
        display: inline-block;
        padding: 12px 6px;
        margin: -12px -6px;
    }

    .terms-group-list li {
        padding: 0;
    }

    .terms-group-list li > a {
        display: inline-block;
        padding: 10px 0;
    }
}

/* ==========================================================================
   onlineroidshop.com — the OpenCart theme (OPC080189_1) the shop had
   ========================================================================== */

body {
  font-family: var(--font-family);
  color: var(--text-subtle);
  font-size: 14px;
  background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--dark);
}

a {
  color: var(--dark);
  text-decoration: none;
}

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

.ico {
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: -0.125em;
}

/* ----- Top bar: links on the right ----- */
.site-top {
  background: var(--light);
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}

.site-top-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 1rem;
}

.site-top-seo {
  padding: 6px 0;
  color: var(--text-subtle);
}

.site-top-links {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-top-links li + li {
  border-left: 1px solid var(--border-light);
}

.site-top-links a {
  display: block;
  padding: 6px 12px;
  color: var(--text-subtle);
}

.site-top-links li:last-child a {
  padding-right: 0;
}

/* Phones: the catalogue link on its own line, the cart links under it */
@media (max-width: 575.98px) {
  .site-top-inner {
    justify-content: center;
  }

  .site-top-seo {
    flex-basis: 100%;
    padding-bottom: 0;
    text-align: center;
  }
}

/* ----- Header: call link / logo / search over the brick texture ----- */
.site-header {
  background: url('../images/header-bg.png') repeat;
}

.site-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 22px 12px 34px;
}

.site-header-call a {
  color: var(--dark);
  font-weight: 700;
}

.site-header-call .ico {
  margin-right: 4px;
}

.site-logo img {
  display: block;
  width: 212px;
  height: auto;
}

.site-search {
  display: flex;
  justify-self: end;
  width: 240px;
  background: var(--white);
  border: 1px solid var(--border-light);
}

.site-search input {
  flex: 1 1 0;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 0;
  font-size: 13px;
  color: var(--text);
}

.site-search input:focus {
  outline: none;
}

.site-search button {
  flex-shrink: 0;
  width: 40px;
  border: 0;
  background: none;
  color: var(--text-subtle);
}

.site-search button:hover {
  color: var(--accent);
}

/* ----- Main menu: dark bar, white labels, the blue cart box at the end ----- */
.site-nav {
  display: flex;
  align-items: stretch;
  background: var(--dark);
}

.site-nav-toggle {
  display: none;
}

.site-menu {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-menu.collapse:not(.show) {
  display: flex;
}

.site-menu a {
  display: block;
  padding: 21px 15px;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.site-menu a:hover,
.site-menu a:focus-visible {
  color: var(--accent);
}

.site-menu-home a {
  padding-left: 22px;
  padding-right: 18px;
  font-size: 18px;
}

.site-cart {
  position: relative;
  flex-shrink: 0;
}

.site-cart-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 77px;
  height: 100%;
  min-height: 65px;
  background: var(--accent);
  color: var(--white);
  font-size: 20px;
}

.site-cart-toggle:hover,
.site-cart-toggle:focus-visible {
  background: var(--accent-dark);
  color: var(--white);
}

.site-cart-count {
  position: absolute;
  top: 14px;
  left: 44px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--dark);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.site-cart .mini-cart {
  top: 100%;
  right: 0;
}

/* ----- WhatsApp banner and the heading strip of inner pages ----- */
.whatsapp-banner {
  margin-top: 20px;
  text-align: center;
}

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

.page-head-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 32px;
  padding-bottom: 32px;
}

.page-head-title {
  margin: 0;
  color: var(--text-subtle);
  font-size: 20px;
  font-weight: 700;
}

.page-crumbs {
  margin-left: auto;
  font-size: 14px;
}

.page-crumbs .breadcrumb-item a {
  color: var(--text-subtle);
}

.page-crumbs .breadcrumb-item.active {
  color: var(--accent);
}

main#main-content {
  padding-bottom: 50px;
}

/* ----- Sidebar ----- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.side-box {
  background: var(--light);
  border: 1px solid var(--border-light);
}

.side-box-title {
  position: relative;
  margin: 0;
  padding: 25px 25px 30px;
  border-bottom: 1px solid var(--border-light);
  font-size: 18px;
  font-weight: 700;
}

.side-box-title::after {
  content: "";
  position: absolute;
  left: 25px;
  bottom: 16px;
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.side-box--accent {
  background: var(--accent);
  border-color: var(--accent);
}

.side-box--accent .side-box-title {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  border-bottom-color: rgba(var(--white-rgb), 0.3);
}

.side-box--accent .side-box-title::after {
  background: var(--white);
}

.side-cats {
  margin: 0;
  padding: 15px 25px 25px;
  list-style: none;
}

.side-cats a {
  display: block;
  position: relative;
  padding: 5px 0 5px 14px;
  color: var(--white);
}

.side-cats a::before {
  content: "\203A";
  position: absolute;
  left: 0;
}

.side-cats a:hover,
.side-cats a.active {
  color: var(--side-link-active);
}

.side-filter-groups {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 10px 25px 30px;
}

.side-filter-group summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  background: var(--side-filter-head);
  color: var(--dark);
  cursor: pointer;
  list-style: none;
}

.side-filter-group summary::-webkit-details-marker {
  display: none;
}

.side-filter-group summary::after {
  content: "";
  border: 6px solid transparent;
  border-top: 7px solid var(--gray-light);
  border-bottom: 0;
  transition: transform 0.2s;
}

.side-filter-group:not([open]) summary::after {
  transform: rotate(-90deg);
}

.side-filter-group ul {
  margin: 0;
  padding: 8px 10px 0;
  list-style: none;
}

.side-filter-group a {
  display: block;
  padding: 4px 0;
  color: var(--text-subtle);
  font-weight: 700;
}

.side-filter-group a:hover {
  color: var(--accent);
}

.side-filter-group a.active {
  color: var(--dark);
}

.side-filter-all {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border-light);
}

.side-filter-all a {
  color: var(--accent);
}

.side-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.side-products ul {
  margin: 0;
  padding: 10px 25px 15px;
  list-style: none;
}

.side-products li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
}

.side-products li + li {
  border-top: 1px solid var(--border-light);
}

.side-products-img img {
  display: block;
  width: 75px;
  height: 75px;
  object-fit: cover;
  border: 1px solid var(--border-light);
}

.side-products-name {
  display: block;
  color: var(--dark);
  line-height: 1.4;
}

.side-products-price {
  margin: 6px 0 2px;
  color: var(--dark);
  font-weight: 700;
}

.side-products-cart {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-subtle);
  font-size: 13px;
}

.side-products-cart:hover {
  color: var(--accent);
}

/* ----- Catalogue: description, grid, pager ----- */
.catalog-description {
  margin-bottom: 30px;
}

.product-grid {
  --bs-gutter-y: 2rem;
}

/* One frame around picture, name, price and button, so the button clearly belongs to its product */
.product-grid .product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border-light);
  background: var(--white);
  box-shadow: none;
  text-align: center;
  transition: var(--transition);
}

.product-grid .product-card > a {
  flex: 1 1 auto;
}

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

.product-card .product-img {
  width: 100%;
  max-height: none;
  aspect-ratio: 1;
  padding: 0;
  object-fit: contain;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
}

.card-stars {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-bottom: 8px;
}

.card-stars svg {
  width: 16px;
  height: 16px;
  fill: var(--gray-light);
}

.product-card-title {
  margin-bottom: 6px;
  color: var(--dark);
  font-weight: 400;
}

.product-card .price {
  margin-bottom: 12px;
  color: var(--dark);
  font-size: 15px;
  font-weight: 700;
}

.catalog-pager {
  margin-top: 40px;
}

.catalog-empty {
  padding: 30px 0;
}

/* ----- Product page ----- */
.product-image {
  border: 1px solid var(--border-light);
}

.product-image img {
  display: block;
  width: 100%;
  height: auto;
}

.product-info-title {
  margin-bottom: 0;
  color: var(--dark);
  font-size: 18px;
  font-weight: 700;
  line-height: var(--line-height);
}

/* Phones: name, picture, info in source order. From md: picture on the left over both rows, name above the info */
@media (min-width: 768px) {
  .product-main {
    display: grid;
    grid-template-columns: 5fr 7fr;
    grid-template-rows: auto 1fr;
  }

  .product-main > * {
    width: auto;
  }

  .product-main > .product-media {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .product-main > .product-info-title {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 18px;
  }

  .product-main > .product-info {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0;
  }
}

.product-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 18px;
  margin-bottom: 20px;
}

.product-facts dt {
  color: var(--dark);
  font-weight: 400;
}

.product-facts dd {
  margin: 0;
}

.product-price {
  margin-bottom: 28px;
  color: var(--dark);
  font-size: 22px;
  font-weight: 700;
}

.product-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.product-qty-label {
  margin-right: 4px;
  color: var(--text-subtle);
  font-weight: 700;
}

.product-qty-group {
  display: inline-flex;
}

.product-qty {
  width: 52px;
  height: 44px;
  border: 1px solid var(--border-light);
  border-left: 0;
  border-right: 0;
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.product-qty::-webkit-inner-spin-button,
.product-qty::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-light);
  background: var(--light);
  color: var(--dark);
  font-size: 22px;
  line-height: 1;
}

.qty-btn:hover,
.qty-btn:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.btn-cart {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  background: var(--dark);
  color: var(--white);
  font-weight: 700;
}

.btn-cart:hover,
.btn-cart:focus-visible {
  background: var(--accent);
  color: var(--white);
}

/* A narrow info column (phones, desktops beside the sidebar): the quantity stepper and the cart button on one row;
   the label stays for screen readers */
.product-info {
  container-type: inline-size;
}

@container (max-width: 439.98px) {
  .product-buy {
    flex-wrap: nowrap;
  }

  .product-qty-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .btn-cart {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
    padding: 0 12px;
  }
}

@container (max-width: 319.98px) {
  .btn-cart .fas {
    display: none;
  }
}

/* ----- Cycle finder quiz (cycles category) ----- */
.cfq {
  margin-bottom: 30px;
  padding: 30px 25px;
  border: 1px solid var(--border-light);
  background: var(--light);
  text-align: center;
}

.cfq-title {
  position: relative;
  margin: 0 0 14px;
  padding-bottom: 14px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
}

.cfq-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 30px;
  height: 1px;
  margin-left: -15px;
  background: var(--accent);
}

.cfq-subtitle {
  max-width: 560px;
  margin: 0 auto 20px;
  color: var(--text-subtle);
}

.cfq-progress {
  max-width: 560px;
  height: 4px;
  margin: 0 auto 24px;
  overflow: hidden;
  background: var(--border-light);
}

.cfq-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 0.35s ease;
}

.cfq-quiz {
  max-width: 560px;
  margin: 0 auto;
}

.cfq-step {
  display: none;
}

.cfq-step.cfq-active {
  display: block;
}

.cfq-step-meta {
  margin-bottom: 6px;
  color: var(--text-subtle);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cfq-question {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 700;
}

.cfq-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.cfq-opt {
  flex: 1 1 160px;
  max-width: 260px;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--border-light);
  background: var(--white);
  color: var(--dark);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.cfq-opt:hover,
.cfq-opt:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.cfq-opt.cfq-selected {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}

.cfq-back {
  margin-top: 16px;
  border: 0;
  background: none;
  color: var(--text-subtle);
  font-size: 14px;
  cursor: pointer;
}

.cfq-back:hover {
  color: var(--accent);
}

.cfq-result-icon {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 40px;
  line-height: 1;
}

.cfq-result-heading {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cfq-result-intro {
  max-width: 560px;
  margin: 0 auto 24px;
  color: var(--text-subtle);
}

.cfq-result-card {
  display: flex;
  align-items: center;
  gap: 25px;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid var(--border-light);
  background: var(--white);
  text-align: left;
}

.cfq-result-imgwrap {
  flex: 0 0 40%;
}

.cfq-result-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.cfq-result-body {
  flex: 1 1 auto;
  min-width: 0;
}

.cfq-result-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.cfq-result-title a {
  color: var(--dark);
}

.cfq-result-title a:hover {
  color: var(--accent);
}

.cfq-expect {
  margin: 0 0 12px;
}

.cfq-expect-label {
  color: var(--accent);
  font-weight: 700;
}

.cfq-result-price {
  margin: 0 0 18px;
  color: var(--dark);
  font-size: 24px;
  font-weight: 700;
}

.cfq-result-excerpt {
  margin: 0 0 18px;
  color: var(--text-subtle);
}

.cfq-result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}

.cfq-details {
  font-weight: 700;
}

.cfq-restart {
  display: block;
  margin: 20px auto 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
}

.cfq-fallback p {
  margin-bottom: 12px;
}

@media (max-width: 575.98px) {
  .cfq {
    padding: 25px 15px;
  }

  .cfq-result-card {
    flex-direction: column;
    align-items: stretch;
  }

  .cfq-result-imgwrap {
    flex-basis: auto;
  }

  .cfq-result-actions .btn-cart {
    flex: 1 1 auto;
    justify-content: center;
  }
}

.product-tabs {
  margin-top: 50px;
}

.product-tab {
  display: inline-block;
  margin: 0;
  padding: 12px 25px;
  background: var(--accent);
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
}

.product-tab-body {
  padding: 25px;
  border: 1px solid var(--border-light);
  border-top: 2px solid var(--accent);
}

/* ----- Text pages, blog ----- */
.rich-text h2,
.rich-text h3,
.rich-text h4,
.page-static h2,
.page-static h3,
.blog-post h2,
.blog-post h3 {
  margin-top: 1.6rem;
  color: var(--dark);
  font-weight: 700;
}

:is(.rich-text, .page-static, .blog-post) h2 {
  font-size: 20px;
}

:is(.rich-text, .page-static, .blog-post) h3 {
  font-size: 17px;
}

:is(.rich-text, .page-static, .blog-post) h4 {
  font-size: 15px;
}

/* Cycle schedule (the OpenCart <pre> box): a list right after a sub-heading whose items start in bold */
.product-tab-body h3 + ul:has(> li:first-child > strong:first-child) {
  margin: 0 0 10px;
  padding: 9.5px;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 22px;
  color: var(--text);
  background: var(--pre-bg);
  border: 1px solid var(--pre-border);
  border-radius: 4px;
}

.contact-ticket {
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid var(--border-light);
}

/* Square corners everywhere, as the OpenCart theme drew its fields, buttons and boxes */
:is(input, select, textarea, .form-control, .form-select, .btn, .card, .cart-summary, .input-group > *, .page-link),
main :is(.rounded, .rounded-3, .rounded-4) {
  border-radius: 0 !important;
}

.rich-text img,
.page-static img,
.blog-post img {
  max-width: 100%;
  height: auto;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
}

.blog-card-img img {
  display: block;
  width: 100%;
  height: auto;
}

.blog-card-date {
  margin: 12px 0 4px;
  font-size: 13px;
}

.blog-card-title {
  font-size: 16px;
  font-weight: 700;
}

.blog-post-date {
  margin-bottom: 15px;
  font-size: 13px;
}

.blog-post-img {
  display: block;
  margin-bottom: 25px;
}

/* Blog pictures fitted into 900x502 as the OpenCart blog resized them (whole picture, white margins) */
.blog-post-img,
.blog-card-img img,
.home-blog-card img {
  width: 100%;
  max-width: 900px;
  height: auto;
  aspect-ratio: 900 / 502;
  object-fit: contain;
  background: var(--white);
}

/* ----- Home ----- */
.home-slider img {
  display: block;
  width: 100%;
  height: auto;
}

.home-block {
  margin-top: 45px;
}

.home-block-head {
  margin-bottom: 30px;
}

.home-block-title {
  position: relative;
  margin-bottom: 30px;
  padding-bottom: 14px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
}

.home-block-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.home-scroll-nav {
  display: inline-flex;
}

.home-scroll-nav button {
  width: 26px;
  height: 26px;
  border: 1px solid var(--border-light);
  background: var(--white);
  color: var(--dark);
  line-height: 1;
}

.home-scroll-nav button + button {
  border-left: 0;
}

.home-scroll-nav button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.home-scroll {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.home-scroll::-webkit-scrollbar {
  display: none;
}

.home-scroll > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.home-blog-card {
  width: calc((100% - 60px) / 3);
}

.home-blog-card img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 18px;
}

.home-blog-card h3 {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 700;
}

.home-blog-more {
  margin-bottom: 10px;
  font-size: 14px;
}

.home-blog-more a {
  color: var(--text-subtle);
}

.home-featured {
  position: relative;
  padding: 0 50px;
}

.home-featured-item {
  width: calc((100% - 120px) / 5);
}

.home-featured-item img {
  display: block;
  width: 100%;
  height: auto;
}

.home-scroll-nav--side {
  position: absolute;
  inset: 50% 0 auto;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.home-scroll-nav--side button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-light);
  pointer-events: auto;
}

.home-scroll-nav--side button + button {
  border-left: 1px solid var(--border-light);
}

.home-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.home-tiles-col {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.home-tile {
  position: relative;
  display: block;
  flex: 1 1 auto;
  overflow: hidden;
}

.home-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.home-tile:hover img {
  transform: scale(1.04);
}

.home-tile-label {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 40px;
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(var(--black-rgb), 0.5);
}

.home-text {
  margin-top: 50px;
}

.home-text h1,
.home-text h2 {
  margin: 1.5rem 0 1.4rem;
  color: var(--text-subtle);
  font-size: 19px;
  font-weight: 700;
}

/* ----- Footer: three link columns and the lighter contact column ----- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
}

.site-footer-cols {
  --bs-gutter-x: 30px;
}

.site-footer-cols > div {
  padding-top: 50px;
  padding-bottom: 45px;
}

.site-footer-title {
  position: relative;
  margin-bottom: 25px;
  padding-bottom: 20px;
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
}

.site-footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 1px;
  background: var(--accent);
}

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

.site-footer li {
  padding: 3px 0;
}

.site-footer a {
  color: var(--footer-text);
}

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

.site-footer-contact {
  background: var(--footer-contact-bg);
  padding-left: 30px;
  padding-right: 30px;
}

.site-footer-place .fas {
  margin-right: 12px;
  color: var(--accent);
}

.site-footer-contact h3 {
  margin: 0 0 12px;
  color: var(--footer-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.site-footer-bottom {
  background: var(--footer-bottom-bg);
  padding: 35px 0 30px;
}

.site-footer-bottom p {
  margin: 0;
  color: var(--text-subtle);
}

/* Narrow desktops: the menu still fits one row */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-menu a {
    padding-left: 7px;
    padding-right: 7px;
    font-size: 14px;
  }

  .site-menu-home a {
    padding-left: 16px;
    padding-right: 12px;
  }
}

/* The OpenCart shop showed its WhatsApp button on phones only */
@media (min-width: 769px) {
  .waw-widget {
    display: none;
  }
}

/* ----- Phones and tablets ----- */
@media (max-width: 991.98px) {
  .site-header-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .site-search {
    justify-self: stretch;
    width: auto;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .site-nav-toggle {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    min-height: 65px;
    padding: 0 15px;
    border: 0;
    background: none;
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
  }

  .site-nav-toggle .ico {
    font-size: 22px;
  }

  .site-menu {
    order: 3;
    flex-direction: column;
    flex-basis: 100%;
    padding-bottom: 10px;
  }

  .site-menu.collapse:not(.show) {
    display: none;
  }

  .site-menu a {
    padding: 10px 15px;
  }

  .site-menu-home a {
    padding-left: 15px;
  }

  .site-menu-home .fas {
    margin-right: 10px;
  }

  .home-blog-card {
    width: calc((100% - 30px) / 2);
  }

  .home-featured-item {
    width: calc((100% - 60px) / 3);
  }

  .home-tiles {
    grid-template-columns: 1fr;
  }

  .page-crumbs {
    margin-left: 0;
  }
}

@media (max-width: 575.98px) {
  .home-blog-card {
    width: 100%;
  }

  .home-featured-item {
    width: 100%;
  }

  .home-block-title {
    font-size: 28px;
  }

  /* Footer in two columns: the long categories list on the left, the two short lists stacked on the right, the
     contact box across the width below */
  .site-footer-cols {
    --bs-gutter-x: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .site-footer-cols > div {
    padding-top: 35px;
    padding-bottom: 0;
  }

  .site-footer-cols > div:first-child {
    grid-row: span 2;
  }

  .site-footer-contact {
    grid-column: 1 / -1;
    margin-top: 35px;
    padding: 35px 10px;
  }
}

/* Smallest phones: the pager (5 pages and the arrows) still on one row */
@media (max-width: 359.98px) {
  .pagination {
    --pg-gap: 2px;
  }

  .page-link,
  .page-item.prev .page-link,
  .page-item.next .page-link {
    min-width: 40px;
  }
}
