/* ==========================================================================
   Colour palette
   ========================================================================== */
:root {
  /* Brand */
  --accent:           #3bb54a;
  --accent-rgb:       59, 181, 74;
  --accent-dark:      #009245;
  --accent-dark-rgb:  0, 146, 69;
  --light-accent:     #f0f9e8;
  --accent-orange:    #d56c29;
  --accent-gold:      #dc9814;
  --lime:             #71d117;
  --lime-rgb:         113, 209, 23;
  --lime-dark:        #5eb010;
  --sky:              #6ec1e4;

  /* Text */
  --black:            #000;
  --black-rgb:        0, 0, 0;
  --dark:             var(--black);
  --ink-deep:         #111;
  --ink-deep-rgb:     17, 17, 17;
  --ink:              #222;
  --dropdown-ink:     #212529;
  --promo-ink:        #323232;
  --text:             #333;
  --charcoal:         #43454b;
  --crumb-link:       #444;
  --note-ink:         #4a4a4a;
  --text-muted-dark:  #555;
  --control-ink:      #666;
  --text-subtle:      #777;
  --text-meta:        #7a7a7a;
  --footer-trust:     #8a8a8a;
  --tab-ink:          #888;
  --hint:             #999;
  --hero-trust:       #9a9a9a;
  --hero-sub:         #b9b9b9;
  --muted-light:      #bbb;
  --pager-disabled:   #c4c9cf;
  --footer-text:      #ccc;
  --hero-text:        #e8e8e8;
  --white:            #fff;
  --white-rgb:        255, 255, 255;

  /* Surfaces and lines */
  --gray:             #6c757d;
  --chevron:          #adadad;
  --border:           #ddd;
  --tab-line:         #ccc;
  --line-pager:       #dee2e6;
  --line-control:     #e2e2e2;
  --line-tabs:        #e6e6e6;
  --line-soft:        #eaeaea;
  --line:             #eee;
  --testimonial-line: #f0f0f0;
  --pager-hover-bg:   #f1f5f9;
  --control-active-bg: #f5f5f7;
  --menu-hover-bg:    #f6f6f6;
  --tint:             #f8f8f8;
  --light:            #f8f9fa;
  --faq-body-bg:      #f9f9f9;
  --testimonial-bg:   #fafafa;
  --table-stripe:     #fbfbfb;

  /* Status and prices */
  --danger:           #dc3545;
  --warning:          #ffc107;
  --price-red:        #d00;
  --star-color:       #f3a63b;
  --status-ok-bg:     #eef6ef;
  --status-warn-bg:   #fdf3e7;
  --hot-link:         #ff0000;
  --hot-link-hover:   #cc0000;
  --warning-bar-bg:   #ffd700;
  --warning-bar-ink:  #1a1a1a;

  /* Shadows and focus */
  --shadow-sm:        0 4px 15px rgba(var(--black-rgb), 0.06);
  --shadow-md:        0 12px 24px rgba(var(--lime-rgb), 0.25);
  --focus-ring:       0 0 0 0.25rem rgba(var(--accent-rgb), 0.25);

  /* Bootstrap */
  --bs-primary:       var(--accent);
  --bs-primary-rgb:   var(--accent-rgb);
  --bs-success:       var(--accent-dark);
  --bs-success-rgb:   var(--accent-dark-rgb);

  /* Buttons */
  --btn-radius:    2px;

  /* Type scale (px value in the name; 1rem = 16px) */
  --fs-9-6:           0.6rem;
  --fs-10-88:         0.68rem;
  --fs-11:            11px;
  --fs-12:            12px;
  --fs-12-8:          .8rem;
  --fs-13:            13px;
  --fs-13-6:          .85rem;
  --fs-14:            14px;
  --fs-14-4:          .9rem;
  --fs-15:            15px;
  --fs-15-2:          .95rem;
  --fs-16:            16px;
  --fs-16-8:          1.05rem;
  --fs-17:            17px;
  --fs-17-6:          1.1rem;
  --fs-18:            18px;
  --fs-18-4:          1.15rem;
  --fs-19:            19px;
  --fs-19-2:          1.2rem;
  --fs-20:            1.25rem;
  --fs-20-8:          1.3rem;
  --fs-21-6:          1.35rem;
  --fs-22-4:          1.4rem;
  --fs-24:            1.5rem;
  --fs-28:            28px;
  --fs-32:            2rem;
  --fs-34:            34px;
  --fs-40:            2.5rem;
  --fs-56:            3.5rem;
  --fs-96:            6rem;
  --fs-128:           8rem;

  /* Weights */
  --fw-regular:       400;
  --fw-medium:        500;
  --fw-semibold:      600;
  --fw-bold:          700;
  --fw-black:         900;

  /* Radii */
  --radius-pill:      999px;
  --radius-round:     50%;
  --radius-2:         2px;
  --radius-3:         3px;
  --radius-4:         4px;
  --radius-5:         5px;
  --radius-6:         6px;
  --radius-8:         8px;
  --radius-12:        12px;

  /* Layers */
  --z-raised:         1;
  --z-hover:          2;
  --z-badge:          10;
  --z-sticky:         1030;
  --z-dropdown:       1050;
  --z-overlay:        1055;
  --z-toast:          1080;

  /* Shadows */
  --shadow-input:     0 1px 2px 0 rgba(var(--black-rgb), 0.05);
  --shadow-pop:       0 10px 26px rgba(var(--black-rgb), 0.15);
  --shadow-soft:      0 2px 12px rgba(var(--black-rgb), 0.04);
  --focus-ring-strong: 0 0 0 0.2rem rgba(var(--accent-rgb), 0.35);

  /* Durations */
  --dur-100:          0.1s;
  --dur-150:          0.15s;
  --dur-180:          0.18s;
  --dur-200:          0.2s;
  --dur-250:          0.25s;


  /* Type: IBM Plex Sans everywhere as the WordPress shops (Shoptimizer); Roboto only in the home sections the WordPress
     home (Elementor) printed in it */
  --font-body:     'IBM Plex Sans', system-ui, sans-serif;
  --font-home:     'Roboto', system-ui, sans-serif;
  /* Content column of the WordPress shops (.col-full) */
  --container-width: 1170px;
}

/* ==========================================================================
   Base & Typography
   ========================================================================== */
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text);
  margin: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
 accent-color: var(--accent);
}

/* Site-wide main heading (single source of truth for every page <h1>).
   Per-page overrides (color/alignment) may add classes on top; avoid size classes here. */
h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: var(--fw-semibold);
  line-height: 1.3;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 1rem;
}

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

/* Body copy — single source of truth for text across the whole site.
   Tags are styled globally; only exceptional UI blocks override via their own class. */
p { line-height: 1.7; margin: 0 0 1.15rem; }
h2 { font-size: var(--fs-24); font-weight: var(--fw-bold); line-height: 1.25; margin: 2rem 0 .9rem; }
h3 { font-size: var(--fs-20); font-weight: var(--fw-bold); line-height: 1.3; margin: 1.6rem 0 .8rem; }

/* ==========================================================================
   Layout & Containers
   ========================================================================== */
.container {
  max-width: calc(var(--container-width) + 30px);
  padding-right: 15px;
  padding-left:  15px;
  margin-right: auto;
  margin-left:  auto;
}
.container:has(.row.g-5, .row.g-md-5, .row.g-lg-5) { overflow-x: clip; }
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: var(--z-toast);
  padding: 10px 16px;
  border-radius: var(--radius-4);
  background: var(--white);
  color: var(--dark);
  font-weight: var(--fw-semibold);
  box-shadow: var(--shadow-pop);
}

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

/* ==========================================================================
   Header top (logo + search + account)
   ========================================================================== */
.promo-bar {
  background: var(--white);
  color: var(--promo-ink);
  font-size: var(--fs-12);
  text-align: center;
  padding: 0.35em 0;
  border-bottom: 1px solid var(--line);
}
.promo-bar strong { color: var(--promo-ink); }
/* Family flags */
.promo-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.25rem 1rem; }
.family-flags { display: flex; align-items: center; gap: 0.4rem; }
.family-flags a { position: relative; display: block; line-height: 0; }
.family-flags a::after { content: ""; position: absolute; inset: -15px -0.2rem; }
.family-flags img { display: block; width: 20px; height: 15px; border-radius: var(--radius-2); box-shadow: 0 0 0 1px var(--border); }
/* Promo bar links */
.promo-links { display: none; }
.promo-links a { position: relative; color: var(--promo-ink); text-decoration: none; }
.promo-links a::after { content: ""; position: absolute; inset: -15px -0.5rem; }
.promo-links a:hover { color: var(--accent-gold); }
@media (min-width: 992px) {
  .promo-bar-inner { position: relative; min-height: 15px; }
  .promo-bar-inner .family-flags { position: absolute; top: 50%; right: calc(var(--bs-gutter-x) * 0.5); transform: translateY(-50%); }
}
@media (min-width: 1200px) {
  .promo-bar-inner .promo-links { display: flex; align-items: center; gap: 1rem; position: absolute; top: 50%; left: calc(var(--bs-gutter-x) * 0.5); transform: translateY(-50%); }
}

.header-top {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}
.header-top-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.header-logo img { height: 110px; width: auto; display: block; }

.header-search {
  position: relative;
  flex: 1 1 auto;
  max-width: 720px;
}
.header-search input {
  width: 100%;
  height: 48px;
  padding: 0 1rem 0 45px;
  font-size: var(--fs-16);
  color: var(--text);
  background: var(--tint);
  border: 0;
  border-radius: var(--radius-4);
  box-shadow: var(--shadow-input);
  outline: none;
}
.header-search-icon {
  position: absolute;
  left: 1.05em;
  top: 50%;
  transform: translateY(-50%);
  color: var(--footer-text);
  pointer-events: none;
}

.header-account {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.header-account-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0 1.25rem;
  color: var(--accent-gold);
  font-size: var(--fs-12-8);
  text-align: center;
  border-left: 1px solid var(--line);
}
.header-account-item:first-child { border-left: 0; }
.header-account-item i { font-size: var(--fs-21-6); }
.header-account-item span { font-weight: var(--fw-regular); }
.header-account-item:hover { color: var(--accent-gold); }
.header-account-item:hover span { font-weight: var(--fw-bold); }
.header-account-item span::after {
  content: attr(data-text);
  display: block;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  font-weight: var(--fw-bold);
}

@media (max-width: 767.98px) {
  .header-top-inner { flex-wrap: wrap; gap: 0.75rem; align-items: stretch; }
  .header-logo img { height: 52px; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .header-account { margin-left: auto; flex-wrap: nowrap; align-items: stretch; }
  .header-account-item {
    justify-content: center;
    padding: 0 0.55rem;
    gap: 0.2rem;
    font-size: var(--fs-10-88);
  }
  .header-account-item i { font-size: var(--fs-16-8); }
}

@media (max-width: 420px) {
  .header-logo img { height: 44px; }
  .header-account-item { padding: 0 0.4rem; font-size: var(--fs-9-6); }
  .header-account-item i { font-size: var(--fs-15-2); }
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar-main {
  --bs-navbar-nav-link-padding-x: 6px;
  background: var(--ink);
  padding: 0;
}

/* Hamburger toggler */
.navbar-main .navbar-toggler {
  min-height: 44px;
  margin: 0.5rem 0;
  padding: 0.35rem 0.55rem;
  border-color: rgba(var(--white-rgb), 0.35);
}
.navbar-main .navbar-toggler:focus { box-shadow: none; }
.navbar-main .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-main .nav-link {
  color: var(--white) !important;
  font-size: var(--fs-16);
  padding: 1.2em 0.7em;
  background: none;
  border-radius: 0;
  transition: color var(--dur-200) ease;
}

.navbar-main .nav-link,
.navbar-main .nav-link:hover,
.navbar-main .nav-link:focus,
.navbar-main .nav-link:focus-visible,
.navbar-main .nav-link:active,
.navbar-main .nav-item:hover > .nav-link,
.navbar-main .nav-item.show > .nav-link {
  background: transparent !important;
  background-color: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  -webkit-tap-highlight-color: transparent;
}

.navbar-main #main-menu:hover > .nav-item > .nav-link { color: rgba(var(--white-rgb), 0.4) !important; }
.navbar-main #main-menu > .nav-item:hover > .nav-link { color: var(--white) !important; }

.navbar-main .nav-item { position: relative; }
.navbar-main .mega-caret { font-size: 0.75em; opacity: 0.7; }
.navbar-main .mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: var(--z-sticky);
  min-width: 240px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  background: var(--white);
  border-top: 2px solid var(--accent-gold);
  box-shadow: var(--shadow-pop);
}
.navbar-main .nav-item.has-mega:hover > .mega-menu { display: block; }
.navbar-main .mega-menu > li { break-inside: avoid; }
.navbar-main .mega-menu a {
  display: block;
  padding: 6px 20px;
  color: var(--text);
  font-size: var(--fs-14);
  white-space: nowrap;
  text-decoration: none;
}
.navbar-main .mega-menu a:hover { background: var(--menu-hover-bg); color: var(--accent-gold); }
.navbar-main .mega-menu-wide { column-count: 2; min-width: 460px; }
.navbar-main .mega-right { left: auto; right: 0; }

@media (max-width: 1199.98px) {
  .navbar-main .mega-menu,
  .navbar-main .nav-item.has-mega:hover > .mega-menu { display: none !important; }
  .navbar-main .mega-caret { display: none; }
}
@media (min-width: 1200px) {
  .navbar-main .nav-item-burger { display: none; }
}

.navbar-main .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

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

.header-cart-wrap { margin-left: auto; display: flex; align-items: center; }
.header-cart {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 55px;
  padding: 0 15px 0 4px;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}
.header-cart:hover { color: var(--white); }
.header-cart-count {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 1px solid var(--accent-gold);
  border-radius: 0 0 var(--radius-3) var(--radius-3);
  background: transparent;
  color: var(--accent-gold);
  font-size: var(--fs-12);
  line-height: 26px;
  text-align: center;
  transition: all var(--dur-200);
}
.header-cart-count::after {
  content: "";
  position: absolute;
  bottom: 90%;
  left: 50%;
  width: 10px;
  height: 6px;
  margin-bottom: 1px;
  margin-left: -6px;
  border: 1px solid var(--accent-gold);
  border-bottom: 0;
  border-top-left-radius: 99px;
  border-top-right-radius: 99px;
}
.header-cart:hover .header-cart-count { color: var(--white); background-color: var(--accent-gold); }

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

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

/* Checkout mini-cart */
body:has(.checkout-page) #miniCart .js-remove-from-cart {
  display: none;
}

/* Mobile mini-cart */
@media (max-width: 1199.98px) {
  .header-shop-link { margin-left: auto; padding-right: 0.38rem !important; }
  .header-cart-link { padding-left: 0.38rem !important; }
  .header-cart-wrap { position: static !important; margin-left: 0 !important; }
  .navbar-main .navbar-collapse { order: 1; }
  .mini-cart {
    position: absolute !important;
    top: 100% !important;
    left: 2vw !important;
    right: 2vw !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
    margin: -7px 0 0 !important;
  }
}

.mini-cart .cart-item {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.cart-item-title-link {
  color: inherit;
  text-decoration: none;
}
.cart-item-title-link:hover {
  color: var(--accent-gold);
}

.mini-cart .cart-total {
  font-weight: var(--fw-bold);
}

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

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn { border-radius: var(--btn-radius); }

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

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

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

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

/* Focus/active states: keep the accent green (Bootstrap defaults to blue #0d6efd) */
.btn-primary:focus,
.btn-primary:focus-visible,
.btn-primary:active,
.btn-primary:first-child:active,
.btn-primary.active,
.btn-primary.show {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  box-shadow: var(--focus-ring-strong);
}

.btn-outline-primary:focus,
.btn-outline-primary:focus-visible,
.btn-outline-primary:active,
.btn-outline-primary:first-child:active,
.btn-outline-primary.active,
.btn-outline-primary.show {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  box-shadow: var(--focus-ring-strong);
}

/* Component states */

a:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
.nav-link:focus-visible { box-shadow: var(--focus-ring); }
.btn-close { --bs-btn-close-focus-shadow: var(--focus-ring); }

.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-check-input:focus { border-color: rgba(var(--accent-rgb), 0.6); box-shadow: var(--focus-ring); }
.alert-info {
  --bs-alert-color: var(--dark);
  --bs-alert-bg: var(--light-accent);
  --bs-alert-border-color: rgba(var(--accent-rgb), 0.35);
  --bs-alert-link-color: var(--accent-dark);
}
.alert-info .fa-info-circle { color: var(--accent-dark); }

/* ==========================================================================
   Product Card (index, catalog)
   ========================================================================== */

.price {
  color: var(--price-red);
  font-weight: var(--fw-bold);
  font-size: var(--fs-20);
}

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

.stars {
  color: var(--warning);
  font-size: var(--fs-16);
}

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

/* ==========================================================================
   PRODUCT CATALOG
   ========================================================================== */
.filter-card {
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line-soft);
}
.filter-card:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.filter-title {
  margin: 0 0 0.65em;
  padding: 0;
  border: 0;
  color: var(--ink-deep);
  font-size: var(--fs-16);
  font-weight: var(--fw-regular);
  line-height: 1.5;
  cursor: pointer;
}

.filter-content {
  padding: 0;
}

.sidebar-promo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-4);
}
.sidebar-promo-title {
  margin: 0 0 15px;
  font-family: var(--font-body);
  font-size: var(--fs-18);
  font-weight: var(--fw-regular);
  line-height: 1.6;
  color: var(--ink);
}
.sidebar-promo-title a { color: inherit; text-decoration: none; }
.sidebar-promo-title a:hover { color: var(--accent-gold); }

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

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

.filter-link-item {
    margin-bottom: 0.25em;
    font-size: var(--fs-15);
    line-height: 1.5;
}

.filter-link-item a {
    color: var(--text-subtle);
    font-weight: var(--fw-regular);
    display: block;
    transition: color var(--dur-200);
}

.filter-link-item a:hover {
    color: var(--accent-gold);
}

.filter-link-item a.active {
    color: var(--ink);
    font-weight: var(--fw-semibold);
}

/* Sidebar top: search and the picture link, as the WordPress shop sidebar */
.sidebar-search-form {
    position: relative;
}
.sidebar-search-form i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hint);
    font-size: var(--fs-14);
    pointer-events: none;
}
.sidebar-search-form input {
    width: 100%;
    height: 47px;
    padding: 0 12px 0 42px;
    border: 1px solid var(--line-soft);
    border-radius: 0;
    background: var(--white);
    color: var(--ink);
    font: inherit;
}
.sidebar-search-form input:focus {
    outline: 0;
    border-color: var(--accent);
    box-shadow: var(--focus-ring);
}
.sidebar-banner img {
    display: block;
    width: 100%;
    height: auto;
}

/* Above the products: result count left, page numbers right */
.catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    margin-bottom: 1.5rem;
}
.catalog-count {
    margin: 0;
    font-size: var(--fs-14);
    line-height: 1.618;
    color: var(--ink-deep);
}
.catalog-pager-top .pagination {
    margin: 0;
}

/* Sidebar "Top rated products" widget */
.top-rated-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-rated-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
}

.top-rated-item:last-child {
    border-bottom: 0;
}

.top-rated-thumb {
    flex: 0 0 65px;
    width: 65px;
}

.top-rated-thumb img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: var(--radius-2);
}

.top-rated-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.top-rated-name {
    color: var(--text-subtle);
    font-size: var(--fs-14);
    line-height: 1.4;
    text-decoration: none;
}

.top-rated-name:hover {
    color: var(--accent-gold);
}

.top-rated-item .stars {
    color: var(--star-color);
    font-size: var(--fs-13);
    letter-spacing: 1px;
}

.top-rated-price {
    color: var(--charcoal);
    font-size: var(--fs-15);
    font-weight: var(--fw-semibold);
}

/* ==========================================================================
   PRODUCT PAGE
   ========================================================================== */
.product-gallery .main-image {
    overflow: hidden;
}

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

.product-gallery .thumbs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.product-gallery .thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-4);
    padding: 3px;
    box-sizing: border-box;
    cursor: pointer;
    opacity: 0.7;
    transition: all var(--dur-180) ease;
}

.product-gallery .thumb:hover {
    opacity: 1;
    border-color: var(--footer-text);
}

.product-gallery .thumb.active {
    opacity: 1;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

@media (max-width: 991.98px) {
    .product-gallery .main-image.mb-4 {
        margin-bottom: 0.5rem !important;
    }
    .product-gallery .thumbs {
        margin-top: 8px;
        margin-bottom: 1.25rem;
    }
}

@media (min-width: 992px) {
    .product-detail-row {
        --bs-gutter-x: 64px;
        max-width: 1070px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Crumbs, gallery and summary on a light band, as the WordPress product page */
.product-head {
    background: var(--tint);
}

/* Product summary (right column) */
.summary.entry-summary .product_title {
    margin: 0 0 0.5em;
    font-family: var(--font-body);
    font-weight: var(--fw-regular);
    font-size: var(--fs-34);
    line-height: 44px;
    letter-spacing: -0.5px;
    text-align: left;
    color: var(--ink);
}

.summary.entry-summary .price {
    display: block;
    margin: 0 0 1rem;
    color: var(--accent-gold);
    font-size: var(--fs-18);
    font-weight: var(--fw-regular);
}

.summary.entry-summary .price del {
    margin-right: 8px;
    opacity: 0.5;
    color: var(--text-subtle);
    font-weight: var(--fw-regular);
}

.summary.entry-summary .price ins {
    text-decoration: none;
    color: var(--accent-gold);
    font-weight: var(--fw-regular);
}

.woocommerce-product-details__short-description {
    margin-bottom: 1.1rem;
    color: var(--ink);
    line-height: 1.618;
}

.summary.entry-summary .star-rating {
    display: block;
    margin-bottom: 1.25rem;
    color: var(--star-color);
    font-size: var(--fs-16);
    letter-spacing: 2px;
}

/* Quantity + Add to cart */
.summary.entry-summary form.cart {
    --qty-height: 58px;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 6px;
    margin-bottom: 1.75rem;
}

.summary .quantity {
    display: inline-flex;
    align-items: stretch;
    height: var(--qty-height);
}

.summary .quantity .qty {
    width: 68px;
    height: 100%;
    border: 1px solid var(--line-control);
    border-radius: var(--btn-radius) 0 0 var(--btn-radius);
    padding: 0 8px;
    text-align: center;
    font-family: var(--font-body);
    font-size: var(--fs-17);
    font-weight: var(--fw-regular);
    color: var(--ink);
    background: var(--white);
    -moz-appearance: textfield;
    appearance: textfield;
}

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

.summary .quantity .qty:focus {
    outline: 0;
    border-color: var(--muted-light);
}

.summary .quantity-nav {
    display: flex;
    flex-direction: column;
    width: 35px;
    height: 100%;
    margin-left: -1px;
    border: 1px solid var(--line-control);
    border-radius: 0 var(--btn-radius) var(--btn-radius) 0;
    background: var(--white);
}

.summary .quantity-button {
    position: relative;
    flex: 1;
    cursor: pointer;
    user-select: none;
    transition: background-color var(--dur-100) linear;
}

.summary .quantity-button:active {
    background-color: var(--control-active-bg);
}

.summary .quantity-button.quantity-up {
    border-bottom: 1px solid var(--line-control);
}

.summary .quantity-button::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translate(-50%, -50%);
    background: var(--control-ink);
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.summary .quantity-button.quantity-up::before {
    -webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M14.7071 12.7071C14.3166 13.0976 13.6834 13.0976 13.2929 12.7071L10 9.41421L6.70711 12.7071C6.31658 13.0976 5.68342 13.0976 5.29289 12.7071C4.90237 12.3166 4.90237 11.6834 5.29289 11.2929L9.29289 7.29289C9.68342 6.90237 10.3166 6.90237 10.7071 7.29289L14.7071 11.2929C15.0976 11.6834 15.0976 12.3166 14.7071 12.7071Z' fill='%234A5568'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M14.7071 12.7071C14.3166 13.0976 13.6834 13.0976 13.2929 12.7071L10 9.41421L6.70711 12.7071C6.31658 13.0976 5.68342 13.0976 5.29289 12.7071C4.90237 12.3166 4.90237 11.6834 5.29289 11.2929L9.29289 7.29289C9.68342 6.90237 10.3166 6.90237 10.7071 7.29289L14.7071 11.2929C15.0976 11.6834 15.0976 12.3166 14.7071 12.7071Z' fill='%234A5568'/%3E%3C/svg%3E");
}

.summary .quantity-button.quantity-down::before {
    -webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M5.29289 7.29289C5.68342 6.90237 6.31658 6.90237 6.70711 7.29289L10 10.5858L13.2929 7.29289C13.6834 6.90237 14.3166 6.90237 14.7071 7.29289C15.0976 7.68342 15.0976 8.31658 14.7071 8.70711L10.7071 12.7071C10.3166 13.0976 9.68342 13.0976 9.29289 12.7071L5.29289 8.70711C4.90237 8.31658 4.90237 7.68342 5.29289 7.29289Z' fill='%234A5568'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M5.29289 7.29289C5.68342 6.90237 6.31658 6.90237 6.70711 7.29289L10 10.5858L13.2929 7.29289C13.6834 6.90237 14.3166 6.90237 14.7071 7.29289C15.0976 7.68342 15.0976 8.31658 14.7071 8.70711L10.7071 12.7071C10.3166 13.0976 9.68342 13.0976 9.29289 12.7071L5.29289 8.70711C4.90237 8.31658 4.90237 7.68342 5.29289 7.29289Z' fill='%234A5568'/%3E%3C/svg%3E");
}

.single_add_to_cart_button {
    flex: 1 1 auto;
    height: var(--qty-height);
    padding: 0 25px;
    border: 0;
    border-radius: var(--btn-radius);
    background: var(--accent);
    color: var(--white);
    font-family: var(--font-body);
    font-size: var(--fs-18);
    font-weight: var(--fw-semibold);
    cursor: pointer;
    transition: background var(--dur-250);
}

.single_add_to_cart_button:hover {
    background: var(--accent-dark);
    color: var(--white);
}

.summary .out-of-stock {
    margin-bottom: 1.75rem;
    color: var(--price-red);
    font-weight: var(--fw-semibold);
}

/* Promo widget under the summary */
.summary .product-widget {
    margin-top: 30px;
    padding: 20px;
    background: var(--white);
    box-shadow: 0 0 0 1px var(--line);
}

.summary .product-widget-title {
    margin: 0 0 11px;
    font-family: var(--font-body);
    font-size: var(--fs-17);
    font-weight: var(--fw-regular);
    line-height: 1.6;
    color: var(--ink-deep);
}

.summary .product-widget-title a {
    color: inherit;
    text-decoration: none;
}

.summary .product-widget-title a:hover {
    color: var(--accent-gold);
}

.summary .product-widget img {
    width: 100%;
    height: auto;
}

/* Product meta (Category / Active substance) */
.product_meta {
    padding-top: 1rem;
    border-top: 1px solid var(--line-soft);
    font-size: var(--fs-15-2);
    color: var(--text-meta);
}

.product_meta > span {
    display: block;
    margin-bottom: 0.35rem;
}

.product_meta strong {
    color: var(--ink);
    font-weight: var(--fw-semibold);
}

.product_meta a {
    color: var(--text-meta);
    text-decoration: none;
}

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

/* Product tabs */
.product-tabs-section {
    padding: 3rem 0;
}

.nav.product-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1.8rem;
    margin: 0 0 1.75rem;
    padding: 0 0 0.2rem;
    list-style: none;
}

.nav.product-tabs .nav-link {
    padding: 0.4em 0;
    border: 0;
    background: none;
    color: var(--tab-ink);
    font-family: var(--font-body);
    font-size: var(--fs-16);
    font-weight: var(--fw-regular);
    cursor: pointer;
}

.nav.product-tabs .nav-link:hover {
    color: var(--ink);
}

.nav.product-tabs .nav-link.active {
    color: var(--ink-deep);
    box-shadow: inset 0 -1px 0 0 var(--tab-line);
}

.nav.product-tabs .nav-link span {
    color: var(--hint);
    font-weight: var(--fw-regular);
}

/* Product tabs — mobile accordion */
@media (max-width: 991.98px) {
    .nav.product-tabs {
        display: none;
    }
    .product-tabs-section .tab-content {
        border-bottom: 1px solid var(--line-tabs);
    }
    .product-tabs-section .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(--line-tabs);
        background: none;
        text-align: left;
        font-family: var(--font-body);
        font-size: var(--fs-16);
        font-weight: var(--fw-regular);
        color: var(--text-muted-dark);
        cursor: pointer;
    }
    .product-tabs-section .tab-accordion-header .acc-chevron {
        flex: none;
        width: 9px;
        height: 9px;
        margin-left: 0.75rem;
        border-right: 2px solid var(--chevron);
        border-bottom: 2px solid var(--chevron);
        transform: rotate(45deg);
        transition: transform var(--dur-200) ease;
    }
    .product-tabs-section .tab-accordion-header.active {
        color: var(--ink);
    }
    .product-tabs-section .tab-accordion-header.active .acc-chevron {
        transform: rotate(-135deg);
        border-color: var(--accent-gold);
    }
    .product-tabs-section .tab-content > .tab-pane {
        display: none !important;
    }
    .product-tabs-section .tab-content > .tab-pane.acc-open {
        display: block !important;
        opacity: 1;
        padding: 0 0 1.1rem;
    }
}

.product-tabs-section .tab-content h2 {
    margin: 1.6rem 0 0.8rem;
    font-family: var(--font-body);
    font-size: var(--fs-21-6);
    font-weight: var(--fw-regular);
    color: var(--ink);
}

.product-tabs-section .tab-content hr {
    margin: 1.6rem 0;
    border: 0;
    border-top: 1px solid var(--line-soft);
}

/* Additional information + shipping tables */
.shop_attributes,
.shipping-rates {
    width: 100%;
    margin: 0.5rem 0 1rem;
    border-collapse: collapse;
    font-size: var(--fs-15-2);
}

.shop_attributes th,
.shop_attributes td,
.shipping-rates th,
.shipping-rates td {
    padding: 0.7em 1em;
    border: 1px solid var(--line-soft);
    text-align: left;
    vertical-align: top;
}

.shop_attributes th,
.shipping-rates th {
    width: 30%;
    background: var(--tint);
    color: var(--ink);
    font-weight: var(--fw-semibold);
}

.shipping-rates th {
    width: auto;
}

.shop_attributes th,
.shop_attributes td {
    padding: 0 1.4em 0.4em 0;
    border: 0;
}

.shop_attributes th {
    background: none;
    color: var(--ink-deep);
    font-weight: var(--fw-regular);
}

/* Tables inside a product description (e.g. cycle dosage schedules) */
#tab-description table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--line-tabs);
    border-radius: var(--radius-6);
    overflow: hidden;
    font-size: var(--fs-15-2);
}

#tab-description table td,
#tab-description table th {
    padding: 0.7em 1em;
    text-align: left;
    vertical-align: top;
    color: var(--text-muted-dark);
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
}

#tab-description table td:last-child,
#tab-description table th:last-child {
    border-right: 0;
}

#tab-description table tr:last-child td {
    border-bottom: 0;
}

#tab-description table thead td,
#tab-description table thead th,
#tab-description table th,
#tab-description table tr:first-child td {
    background: var(--tint);
    color: var(--ink);
    font-weight: var(--fw-semibold);
}

/* Zebra striping for body rows */
#tab-description table tr:nth-child(even) td {
    background: var(--table-stripe);
}

@media (max-width: 576px) {
    #tab-description table td,
    #tab-description table th {
        padding: 0.55em 0.7em;
    }
}

/* Reviews */
.reviews-heading {
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
    font-size: var(--fs-20);
    font-weight: var(--fw-semibold);
    color: var(--ink);
}

.product-reviews {
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.product-reviews .review {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line-soft);
}

.product-reviews .review:first-child {
    padding-top: 0;
}

.product-reviews .star-rating {
    margin-bottom: 0.35rem;
    color: var(--star-color);
    letter-spacing: 2px;
}

.product-reviews .review-meta {
    margin: 0 0 0.5rem;
    font-size: var(--fs-15-2);
}

.product-reviews .review-author {
    color: var(--ink);
}

.product-reviews .review-date {
    color: var(--hint);
    font-weight: var(--fw-regular);
}

.product-reviews .review-text {
    color: var(--text-meta);
    line-height: 1.7;
}

.reviews-disabled {
    margin: 0;
    padding: 0.9rem 1.1rem;
    background: var(--tint);
    border-left: 3px solid var(--accent-gold);
    color: var(--text-subtle);
    font-size: var(--fs-15-2);
}

/* ──────────────────────────────────────────────
   pagination LinkPager
─────────────────────────────────────────────── */
.pagination {
  --bs-pagination-focus-color: var(--accent-dark);
  --bs-pagination-focus-bg: var(--light-accent);
  --bs-pagination-focus-box-shadow: var(--focus-ring);
  margin: 2.5rem 0 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.page-item {
  margin: 0;
}

.page-link,
.page-item.disabled .page-link {
  display: block;
  margin: 0;
  padding: 3px 5px;
  font-size: var(--fs-14);
  font-weight: var(--fw-regular);
  line-height: 1.618;
  color: var(--charcoal);
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition: color var(--dur-180) ease;
  text-decoration: none;
}

.page-link:hover,
.page-link:focus {
  background: none;
  color: var(--accent-gold);
}

.pagination .active .page-link,
.pagination .active .page-link:hover {
  background: none;
  color: var(--accent-gold);
}

/* WordPress prints no arrow it cannot follow */
.page-item.disabled {
  display: none;
}

.page-item.prev .page-link,
.page-item.next .page-link {
  padding: 3px 14px;
}

@media (max-width: 576px) {
  .pagination {
    margin: 1.5rem 0 1rem;
  }

  /* finger-sized targets on phones, same look */
  .page-link,
  .page-item.disabled .page-link {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    line-height: 34px;
    text-align: center;
  }

  .page-item:not(.prev):not(.next):not(.active):not(:nth-child(-n+3)):not(:nth-last-child(-n+3)) {
    display: none;
  }

  
}

/* ==========================================================================
   Pre-footer features — Rivolicons icon font
   ========================================================================== */
@font-face {
  font-family: Rivolicons;
  font-style: normal;
  font-weight: var(--fw-regular);
  font-display: block;
  src: url("../fonts/Rivolicons-Free.woff2?v=9e94ab7c") format("woff2");
}
.ri,
[class^="ri-"],
[class*=" ri-"] {
  font-family: Rivolicons, sans-serif;
  font-weight: var(--fw-regular);
  font-style: normal;
  line-height: 1;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.ri-map::before { content: "\e646"; }
.ri-refresh::before { content: "\e659"; }
.ri-earth::before { content: "\e629"; }
.ri-lock::before { content: "\e644"; }

.below-features {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 4.5rem 0;
  font-family: var(--font-body);
}
.below-feature {
  position: relative;
  padding-left: 32px;
}
.below-feature > i {
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--hint);
  font-size: var(--fs-16);
}
.below-feature-title {
  margin: 0 0 0.5rem;
  font-size: var(--fs-15);
  font-weight: var(--fw-medium);
  line-height: 1.35;
  color: var(--text);
}
.below-feature p {
  margin: 0;
  font-size: var(--fs-14);
  line-height: 1.6;
  color: var(--text-subtle);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--ink-deep);
  color: var(--footer-text);
  padding: 60px 0 30px;
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
}
.footer h5 {
  margin-bottom: 20px;
  color: var(--white);
  font-size: var(--fs-13);
  font-weight: var(--fw-medium);
  letter-spacing: 1px;
  text-transform: uppercase;
}

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

.footer-bottom::before {
  content: "";
  display: block;
  height: 1px;
  width: min(760px, 80%);
  margin: 0 auto 1.75rem;
  background: linear-gradient(90deg, transparent, rgba(var(--white-rgb), .18), transparent);
}
.footer-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font-size: var(--fs-14-4);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--footer-trust);
  margin: 0 0 .5rem;
}
.footer-copyright {
  font-size: var(--fs-14-4);
  color: var(--muted-light);
  margin: 0;
}

.footer-pay-icons { display: inline-flex; align-items: center; margin-right: .6rem; }
.footer-pay-icons i { font-size: var(--fs-16); color: var(--footer-text); margin: 0 .12rem; line-height: 1; }
.footer-review-badge img { max-height: 90px; width: auto; border-radius: var(--radius-6); opacity: .9; transition: opacity var(--dur-200); }
.footer-review-badge:hover img { opacity: 1; }
.footer-review-caption { color: var(--footer-text); font-size: var(--fs-14-4); text-decoration: underline; }
.footer-review-caption:hover { color: var(--white); }

.cart-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.cart-item:last-child {
  border-bottom: none;
}
.cart-item h6 {
  font-family: var(--font-body);
  font-size: var(--fs-16);
  font-weight: var(--fw-semibold);
}
.cart-item .price { font-size: var(--fs-16); color: var(--charcoal); }
.cart-item-img {
  width:  80px;
  height: 80px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-4);
  flex-shrink: 0;
  padding: 6px;
  box-sizing: border-box;
}

/* Quantity control — site style */
.qty-input {
  max-width: 140px;
  border: 1px solid var(--line-control);
  border-radius: var(--btn-radius);
  overflow: hidden;
  flex-wrap: nowrap;
}
.qty-input .btn {
  background: var(--white);
  border: 0;
  color: var(--control-ink);
  font-size: var(--fs-17-6);
  line-height: 1;
  transition: color var(--dur-150), background var(--dur-150);
}
.qty-input .btn:hover {
  background: var(--tint);
  color: var(--accent-gold);
}
.qty-input .js-qty-input {
  border: 0;
  border-left: 1px solid var(--line-control);
  border-right: 1px solid var(--line-control);
  text-align: center;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-16-8);
  box-shadow: none;
}

/* Order summary card */
.cart-summary {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-8);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}
.cart-summary h5 {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  color: var(--ink);
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.cart-summary .js-cart-total {
  color: var(--accent);
  font-size: var(--fs-19-2);
}

/* Free-shipping hint and minimum-order note */
.freeship-progress,
.min-order-note {
  padding: 0.5rem 0.75rem;
  background: var(--light-accent);
  border-radius: var(--radius-6);
  color: var(--note-ink);
}
.min-order-note .fa-circle-info { color: var(--accent-dark); }

/* Checkout page */
.checkout-page .card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-8);
  box-shadow: var(--shadow-soft);
}
.checkout-total { color: var(--accent); }
.checkout-page .card-title {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  color: var(--ink);
}
.checkout-page .form-control:focus,
.checkout-page .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.15rem rgba(var(--accent-rgb), 0.12);
}
.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: var(--radius-round);
  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; }
}

/* Order confirmation / failed pages */
.order-page .card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-8);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.order-page .card-header {
  background: var(--tint);
  border-bottom: 1px solid var(--line-soft);
  padding: 1rem 1.25rem;
}
.order-page .card-header h5 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-16-8);
}
.order-total { color: var(--accent); }
.order-status-badge {
  display: inline-block;
  background: var(--status-ok-bg);
  color: var(--accent-dark);
  font-weight: var(--fw-semibold);
  padding: 0.4em 0.8em;
  border-radius: var(--radius-4);
}
.order-status-badge.warning {
  background: var(--status-warn-bg);
  color: var(--accent-orange);
}
.order-status-hero {
  text-align: center;
  margin-bottom: 3rem;
}
.order-status-hero .status-icon {
  font-size: var(--fs-56);
  line-height: 1;
  margin-bottom: 1.1rem;
}
.order-status-hero.success .status-icon { color: var(--accent); }
.order-status-hero.failed .status-icon { color: var(--accent-orange); }
.order-status-hero h1 {
  margin-bottom: 0.6rem;
}

.cart-empty-message {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--text-subtle);
  font-size: var(--fs-20-8);
}
/* Coupon block */
.promo-coupon-widget {
  margin-top: 1.75rem;
}
.promo-coupon-widget .promo-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: var(--fs-14-4);
  font-weight: var(--fw-medium);
  color: var(--control-ink);
}
.promo-coupon-widget .promo-input-group .form-control {
  border-color: var(--line-control);
}
.promo-coupon-widget .promo-input-group .form-control:focus {
  border-color: var(--accent);
  box-shadow: none;
}
.promo-applied {
  margin-top: 0.6rem;
  font-size: var(--fs-14-4);
  color: var(--accent-dark);
}

@media (max-width: 576px) {
  .qty-input {
    width: 104px !important;
  }
  .qty-input input[type="number"] {
    font-size: var(--fs-15-2);
    padding: 0.5rem 0.15rem;
  }
  .qty-input .btn {
    width: 30px;
  }
  .cart-item .cart-item-img { width: 64px; height: 64px; }
  .cart-item-controls { gap: 0.4rem !important; }
  .cart-item-controls .price,
  .cart-item-controls .js-subtotal { font-size: var(--fs-14-4); }
  .cart-item .js-remove-item { margin-left: 0.2rem !important; padding: 0 0.15rem; }
}

/* Toasts follow the shop's buttons: solid status colour, white text, the same small radius,
   and the elevation used by the menus. Bootstrap's own look was a foreign element here. */
.toast {
    min-width: 280px;
    max-width: 400px;
    z-index: var(--z-overlay);
    border-radius: var(--radius-4);
    box-shadow: var(--shadow-pop) !important;
    font-size: var(--fs-14);
    line-height: 1.45;
}

.toast .toast-body {
    padding: 14px 16px;
}

.toast .toast-body strong {
    display: block;
    margin-bottom: 2px;
    font-weight: var(--fw-semibold);
    letter-spacing: .01em;
}

.toast .btn-close {
    margin-right: 12px !important;
    opacity: .85;
}

.toast .btn-close:hover {
    opacity: 1;
}

.toast.bg-success {
    background-color: var(--accent) !important;
    color: var(--white) !important;
}

.toast.bg-danger {
    background-color: var(--danger) !important;
    color: var(--white) !important;
}

.toast.bg-warning {
    background-color: var(--warning) !important;
    color: var(--dark) !important;
}

.toast.bg-info {
    background-color: var(--accent-gold) !important;
    color: var(--dark) !important;
}

/* On the two light backgrounds the white close icon of Bootstrap disappears. */
.toast.bg-warning .btn-close,
.toast.bg-info .btn-close {
    filter: none;
}

.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.error-code {
  font-size: var(--fs-128);
  font-weight: var(--fw-black);
  line-height: 1;
  color: var(--accent);
  margin: 0;
}
.error-title {
  font-size: var(--fs-40);
  font-weight: var(--fw-bold);
  margin: 1rem 0 1.5rem;
}
.error-message {
  font-size: var(--fs-20);
  color: var(--text-muted-dark);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}
.error-icon {
  font-size: var(--fs-96);
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.error-search {
  gap: 10px;
  max-width: 520px;
  margin: 0 auto 1.5rem;
}
.error-search .form-control,
.error-search .btn {
  min-height: 44px;
}
@media (max-width: 576px) {
  .error-code {
    font-size: var(--fs-96);
  }
  .error-title {
    font-size: var(--fs-32);
  }
}

.value-icon {
  font-size: var(--fs-56);
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.faq-item .accordion-button {
  font-weight: var(--fw-semibold);
  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(--faq-body-bg);
}

/* ==========================================================================
   Profile Edit Page
   ========================================================================== */
.profile-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-8);
  padding: 1.75rem;
}
.order-item {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.order-item:last-child {
  border-bottom: none;
}
.avatar {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-round);
  border: 4px solid var(--light-accent);
}

/* ==========================================================================
   Orders History Page
   ========================================================================== */
.order-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-8);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

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

.order-body {
  padding: 1.5rem;
}

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

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

.profile-sidebar {
  background: var(--white);
  border-right: 1px solid var(--line);
  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: all var(--dur-200);
}

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

.form-section {
  margin-bottom: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-8);
  padding: 2rem;
}

.avatar-preview {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-round);
  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(--black);
  border-radius: var(--radius-round);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-17-6);
  cursor: pointer;
}

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

/* ==========================================================================
   Notifications Page (Account section)
   ========================================================================== */
.notification-item {
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
  transition: background var(--dur-200);
}

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

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

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

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

/* ==========================================================================
   Main menu list and the warning bar
   ========================================================================== */

.navbar-nav {
  flex-wrap: wrap !important;
  gap: 8px 4px;
}

.navbar-nav .nav-link {
  padding: 10px 16px;
  white-space: nowrap;
  border-radius: var(--radius-6);
  transition: all var(--dur-200);
}

.navbar-nav .nav-link:hover {
  background: rgba(var(--white-rgb), 0.1);
}

@media (max-width: 1199.98px) {
  .navbar-nav {
    flex-direction: column;
    gap: 2px;
    width: 100%;
  }

  .navbar-nav .nav-link {
    width: 100%;
    text-align: left;
    padding: 12px 20px;
  }
}

@media (max-width: 991px) {
  .sidebar {
    margin-bottom: 2rem;
  }
}

#warningBar {
  background: var(--warning-bar-bg);
  color: var(--warning-bar-ink);
  font-size: var(--fs-13-6);
  position: relative;
  text-align: center;
  padding: 1rem 3rem 1rem 1rem;
}
#warningBar strong { color: var(--black); }
#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: var(--radius-round);
  width: 1.6rem;
  height: 1.6rem;
  font-size: var(--fs-16);
  line-height: 1;
  cursor: pointer;
  color: var(--warning-bar-ink);
  padding: 0;
}
#warningBar button:hover {
  background-color: rgba(var(--black-rgb), 0.12);
  border-color: rgba(var(--black-rgb), 0.7);
}

/* ===== Blog ===== */

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-12);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-180) ease, box-shadow var(--dur-180) ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card-imgwrap { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.blog-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { display: flex; flex-direction: column; padding: 1rem 1.15rem 1.25rem; }
.blog-card-date { font-size: var(--fs-12-8); color: var(--gray); margin-bottom: .4rem; }
.blog-card-title { font-size: var(--fs-16-8); line-height: 1.35; margin: 0 0 .55rem; }
.blog-card-title a { color: var(--dark); text-decoration: none; }
.blog-card-title a:hover { color: var(--accent-dark); }
.blog-card-excerpt { font-size: var(--fs-14-4); color: var(--gray); margin: 0; }

.blog-article { color: var(--ink); }

.breadcrumbs { font-size: var(--fs-13-6); color: var(--hint); padding: 1rem 0 1.6rem; }
.breadcrumbs a { color: var(--crumb-link); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: none; }
.breadcrumbs span { margin: 0 .35rem; }
/* Justify content paragraphs on mobile */
@media (max-width: 767.98px) {
  div:is(.page-about, .page-legal, .page-customer-help, .page-videos) p,
  .blog-article-body p,
  #tab-description p {
    text-align: justify;
  }
  /* Center the "Back to Blog" button on mobile */
  .blog-article-footer {
    text-align: center;
  }
}

.blog-article-hero { width: 100%; max-height: 460px; object-fit: cover; }
.blog-article-body img { max-width: 100%; height: auto; border-radius: var(--radius-8); display: block; margin: 1rem auto; }
.blog-article-body ul, .blog-article-body ol { margin: 0 0 1.15rem 1.25rem; }
.blog-article-body blockquote {
  border-left: 4px solid var(--accent);
  background: var(--light-accent);
  margin: 1.5rem 0;
  padding: .9rem 1.2rem;
  border-radius: 0 var(--radius-8) var(--radius-8) 0;
}

/* ===== Unpacking videos ===== */
.page-videos .videos-intro p { color: var(--gray); line-height: 1.7; }
.video-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-12);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.video-card-frame { background: var(--black); }
.video-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1rem;
}
.video-card-title { font-size: var(--fs-16); font-weight: var(--fw-semibold); margin: 0; color: var(--dark); }
.video-card-body .btn { white-space: nowrap; }

.home-hero {
  background: linear-gradient(rgba(var(--ink-deep-rgb), 0.72), rgba(var(--ink-deep-rgb), 0.72)), url("../images/hero-amrap.jpg") center center / cover no-repeat;
  color: var(--hero-text);
  padding: 4.5rem 0;
}
.home-hero h1 { color: var(--white); font-size: clamp(2rem, 4.5vw, 2.9rem); margin-bottom: .75rem; }
.home-hero-eyebrow { color: var(--accent); font-size: var(--fs-13-6); font-weight: var(--fw-bold); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.home-hero-sub { color: var(--hero-sub); font-size: var(--fs-16-8); max-width: 720px; margin: 0 auto 1.75rem; }
.home-hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.home-hero-trust { display: flex; gap: 1.75rem; justify-content: center; flex-wrap: wrap; color: var(--hero-trust); font-size: var(--fs-14-4); }
.home-hero-trust i { color: var(--accent); margin-right: .35rem; }

.product-block-subtitle {
  max-width: 820px;
  margin: 0 auto 2.5rem;
  font-family: var(--font-home);
  font-weight: var(--fw-regular);
  font-size: var(--fs-16);
  line-height: 1.6;
  color: var(--text-meta);
}

.brand-block-intro {
  max-width: 820px;
  margin: 0 auto 2.5rem;
}
.brand-block-intro p {
  font-family: var(--font-home);
  font-weight: var(--fw-regular);
  font-size: var(--fs-16);
  line-height: 1.6;
  color: var(--text-meta);
}
.brand-block-intro p.fw-bold {
  color: var(--text);
}

.brand-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.75rem 3.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2.75rem;
  margin-bottom: 2.75rem;
}
.brand-logos a {
  display: inline-flex;
  align-items: center;
}
.brand-logos img {
  height: 150px;
  width: auto;
  object-fit: contain;
  transition: transform var(--dur-200) ease, opacity var(--dur-200) ease;
}
.brand-logos a:hover img {
  transform: translateY(-3px);
  opacity: 0.82;
}

.home-card-title {
  font-family: var(--font-home);
  font-weight: var(--fw-semibold);
  color: var(--sky);
}
.icon-brand { color: var(--sky); }

.home-section-title {
  font-family: var(--font-home);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-32);
  line-height: 1.4;
  color: var(--sky);
  text-align: center;
}
.home-testimonials .lead {
  font-family: var(--font-home);
  font-weight: var(--fw-regular);
  font-size: var(--fs-16);
  line-height: 1.6;
  color: var(--text-meta);
}
.testimonial-carousel-wrap { position: relative; max-width: 820px; margin: 0 auto; }
@media (min-width: 768px) {
  .testimonial-carousel-wrap { max-width: min(820px, 100% - 6.5rem); }
}
.testimonial-box {
  background: var(--testimonial-bg);
  border: 1px solid var(--testimonial-line);
  border-radius: var(--radius-5);
  padding: 2rem;
}
.testimonial-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.testimonial-photo-wrap {
  position: relative;
  flex: 0 0 46%;
  max-width: 46%;
}
.testimonial-photo-wrap .testimonial-photo {
  position: relative;
  z-index: var(--z-raised);
  display: block;
  width: 100%;
  height: auto;
}
.testimonial-photo-wrap::after {
  content: "";
  position: absolute;
  top: 15px;
  right: -15px;
  width: 100%;
  height: 100%;
  opacity: .1;
  background-color: var(--accent-gold);
}
.testimonial-content { flex: 1; }
.testimonial-text { color: var(--charcoal); font-size: var(--fs-15-2); margin: 0 0 1.25rem; }
.testimonial-author { text-align: center; }
.testimonial-squiggle { display: inline-block; width: 150px; height: auto; margin-bottom: .4rem; }
.testimonial-name { color: var(--text-meta); font-size: var(--fs-17-6); margin: 0; }

.testimonial-carousel .carousel-control-prev,
.testimonial-carousel .carousel-control-next { width: 2.5rem; opacity: .85; }
.testimonial-carousel .carousel-control-prev { left: -3.25rem; }
.testimonial-carousel .carousel-control-next { right: -3.25rem; }
.testimonial-carousel .carousel-control-prev-icon,
.testimonial-carousel .carousel-control-next-icon { filter: invert(1) grayscale(1); }

.testimonial-carousel .carousel-indicators { position: static; margin: 1.25rem 0 0; }
.testimonial-carousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-round);
  border: 0;
  background-color: var(--footer-text);
  opacity: 1;
}
.testimonial-carousel .carousel-indicators .active { background-color: var(--accent-orange); }

@media (max-width: 767.98px) {
  .testimonial-box { padding: 1.5rem; }
  .testimonial-row { flex-direction: column-reverse; gap: 1.25rem; }
  .testimonial-photo-wrap { flex-basis: auto; max-width: 100%; align-self: stretch; }
  .testimonial-carousel .carousel-control-prev,
  .testimonial-carousel .carousel-control-next { display: none; }
}

.home-videos h2 { font-family: var(--font-body); font-size: var(--fs-28); font-weight: var(--fw-regular); line-height: 1.4; color: var(--accent-orange); }
.home-videos .btn-primary {
  font-family: var(--font-home);
  font-size: var(--fs-17);
  font-weight: var(--fw-regular);
  text-transform: uppercase;
  padding: 22px 35px;
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: var(--white);
}
.home-videos .btn-primary:hover { background: var(--white); border-color: var(--white); color: var(--black); }

.products-widget .product-card {
  position: relative;
  border: 0;
  border-radius: 0;
  overflow: visible;
  text-align: left;
  background: none;
  padding-bottom: 56px;
}
.products-widget .product-card:hover {
  transform: none;
  box-shadow: none;
}
.products-widget .product-card-thumb { display: block; }
.products-widget .product-img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: none;
  padding: 0;
}
.products-widget .product-card-body { padding: 1.05rem 0 0; }
.products-widget .product-cat {
  font-size: var(--fs-11);
  line-height: 16px;
  letter-spacing: .7px;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.products-widget .product-cat a { color: var(--hint); text-decoration: none; }
.products-widget .product-cat a:hover { color: var(--accent); }
.products-widget .product-title {
  font-size: var(--fs-16);
  line-height: 1.5;
  font-weight: var(--fw-regular);
  margin: 0 0 .2rem;
}
.products-widget .product-title a { color: var(--ink-deep); text-decoration: none; }
.products-widget .product-title a:hover { color: var(--ink-deep); }
.products-widget .stars {
  color: var(--star-color);
  font-size: var(--fs-15);
  letter-spacing: 2px;
  margin-bottom: .3rem;
}
.products-widget .price {
  color: var(--ink-deep);
  font-size: var(--fs-14);
  font-weight: var(--fw-regular);
  margin: 0;
}
.products-widget .old-price { color: var(--hint); font-size: var(--fs-13); }

.products-widget .product-cart {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  min-height: 40px;
  width: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-2);
  font-size: var(--fs-14);
  font-weight: var(--fw-semibold);
  line-height: 40px;
}

@media (hover: hover) {
  .products-widget .product-cart {
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-150) ease;
  }
  .products-widget .product-card:hover {
    z-index: var(--z-hover);
  }
  .products-widget .product-card:hover .product-cart {
    opacity: 1;
    pointer-events: auto;
  }
}

.home-hottest p { color: var(--text-meta); font-size: var(--fs-20); margin: 0 0 1.4rem; }
.home-hottest p:last-child { margin-bottom: 0; }
.home-hottest p a { color: var(--hot-link); }
.home-hottest p a:hover { color: var(--hot-link-hover); }

.home-hottest { padding-bottom: 1rem; }
.home-hottest + .products-widget { background: var(--white); padding-top: 0; }

/* ===== About page ===== */
.page-about .value-icon { color: var(--accent); }
.page-about img,
.page-legal img,
.page-customer-help img { max-width: 100%; height: auto; }
.page-row + .page-row { margin-top: 3rem; }
.page-row > * > :first-child { margin-top: 0; }
.page-row > * > :last-child { margin-bottom: 0; }

/* ===== Utilities & components extracted from inline styles ===== */

.text-shadow-lg { text-shadow: 0 2px 10px rgba(var(--black-rgb), 0.6); }
.w-140 { width: 140px; }

.w-200 { width: 200px; }
.box-120 { width: 120px; height: 120px; }
.sticky-offset-20 { top: 20px; }
.thumb-60 { width: 60px; height: 60px; object-fit: cover; }
.thumb-80 { width: 80px; height: 80px; object-fit: cover; border: 1px solid var(--line); }
.img-h80-contain { height: 80px; object-fit: contain; }

.home-cat-card { height: 300px; background-position: center; background-size: cover; background-repeat: no-repeat; }
.home-cat-card--beginner { background-image: url('../images/home/beginner-3.jpg'); }
.home-cat-card--advanced { background-image: url('../images/home/time-for-war-750x400-2-3.jpg'); }
.home-cat-card--women    { background-image: url('../images/home/women-3.jpg'); }

/* ===== Category landing SEO description ===== */
.catalog-description { border-top: 1px solid var(--border); color: var(--ink); font-size: var(--fs-19); line-height: 29px; letter-spacing: -0.2px; }
.catalog-description h2 { font-size: var(--fs-22-4); font-weight: var(--fw-bold); margin: 1.5rem 0 .75rem; }
.catalog-description h3 { font-size: var(--fs-18-4); font-weight: var(--fw-bold); margin: 1.25rem 0 .6rem; }
.catalog-description p { margin: 0 0 1rem; }
.catalog-description ul, .catalog-description ol { margin: 0 0 1rem 1.25rem; }
.catalog-description a { color: var(--accent-dark); }

/* ===== Blog article tags/category ===== */
.blog-article-taxonomy { border-top: 1px solid var(--border); }
.blog-tax-label { font-weight: var(--fw-bold); color: var(--dark); margin-right: .35rem; }
.blog-article-taxonomy .blog-tag {
  display: inline-block; margin: .2rem .35rem .2rem 0; padding: .25rem .7rem;
  background: var(--light-accent); color: var(--accent-dark); border-radius: var(--radius-pill);
  font-size: var(--fs-13-6); text-decoration: none;
}
.blog-article-taxonomy .blog-tag:hover { background: var(--accent); color: var(--black); }

/* ==========================================================================
   Video facade
   ========================================================================== */

/* A bare Spotlightr <iframe> pulls the whole player the moment the page loads, per embed.
   Three of them sat on the home page, so nothing third-party is requested until someone asks
   for a video: what renders is a local poster, and the iframe replaces it on click. */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-8);
  overflow: hidden;
  box-shadow: var(--shadow-input);
}

.video-frame > iframe,
.video-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-facade {
  display: block;
  text-decoration: none;
  padding: 0;
  background: var(--dark);
  cursor: pointer;
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-facade-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  transform: translate(-50%, -50%);
  border-radius: var(--radius-8);
  background: rgba(var(--black-rgb), 0.65);
  transition: background var(--dur-150) ease;
}

/* The triangle is drawn with borders, so the button needs no icon font or SVG request. */
.video-facade-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent var(--white);
}

.video-facade:hover .video-facade-play,
.video-facade:focus-visible .video-facade-play {
  background: var(--accent);
}

/* The frame clips with overflow:hidden, so a positive offset would hide the focus ring. */
.video-facade:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}
