/* ===== Self-hosted Poppins (the WordPress site loaded it from Google Fonts) ===== */
/* Metric-matched Arial fallbacks: keep layout stable while the webfont loads (no CLS). */
@font-face {
  font-family: 'Poppins Fallback';
  src: local('Arial');
  size-adjust: 112.16%;
  ascent-override: 93.62%;
  descent-override: 31.21%;
  line-gap-override: 8.92%;
}
@font-face {
  font-family: 'Poppins Nav Fallback';
  src: local('Arial');
  size-adjust: 96%;
  ascent-override: 109.38%;
  descent-override: 36.46%;
  line-gap-override: 10.42%;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/poppins-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Colour palette (holidayshop, the WordPress theme this site was migrated from) ===== */
:root {
  /* Brand */
  --accent:          #607d8b;
  --accent-rgb:      96, 125, 139;
  --accent-dark:     #43515d;
  --accent-dark-rgb: 67, 81, 93;
  --light-accent:    #eef2f3;

  /* Text */
  --text:            #333;
  --text-muted:      #777;
  --text-muted-dark: #555;
  --text-subtle:     #939596;
  --btn-text:        #fff;
  --white:           #fff;
  --black:           #000;
  --font-badge:      "Times New Roman", Times, serif;
  --white-rgb:       255, 255, 255;
  --black-rgb:       0, 0, 0;

  /* Backgrounds and lines */
  --dark:            #43515d;
  --heading:         #43515d;
  --gray:            #6c757d;
  --gray-light:      #adb5bd;
  --light:           #f7f7f7;
  --border:          #e5e5e5;
  --border-light:    #eee;
  --card-border:     #d3d3d3;
  --border-mid:      #dee2e6;
  --accordion-arrow: #adadad;
  --bg-page:         #fff;
  --bg-tabs:         #f0f2f5;
  --footer-bg:       #333;
  --footer-text:     #fff;

  /* 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:     #333;
  --price-color-product: #958e09;
  --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:  4px;   /* small accents: badges, focus outlines */
  --radius-sm:  6px;   /* buttons, nav elements */
  --radius-md:  8px;   /* cards, images, inputs */
  --radius-lg:  10px;  /* larger blocks, tabs, pagination */
  --radius-xl:  12px;  /* 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: 'Poppins', 'Poppins Fallback', sans-serif;
  --font-family-nav: 'Poppins', 'Poppins Nav Fallback', sans-serif;
  --line-height: 1.5;

  /* Layout */
  --container-max:    1400px;
  --container-max-xl: 1600px;
}

/* ==========================================================================
   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. Skip link
   ========================================================================== */

/* 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);
}

/* ==========================================================================
   5. Header & Navigation
   ========================================================================== */

.site-header {
  background: var(--white);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* Logo / main menu / cart in three columns on desktop, as the WordPress header */
.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1rem;
  padding: 12px 15px;
}

.site-logo {
  display: inline-block;
  flex-shrink: 0;
}

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

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Cart indicator: icon + badge, "Carrello" label + running total, like the WordPress header */
.header-cart-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.header-cart-icon {
  position: relative;
  display: inline-block;
  font-size: 30px;
  line-height: 1;
  color: var(--accent-dark);
}

.header-cart-svg {
  display: block;
  width: auto;
  height: 40px;
  fill: currentColor;
}

.header-cart-count {
  position: absolute;
  top: -5px;
  right: -11px;
  box-sizing: border-box;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid var(--black);
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-badge);
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
}

.header-cart-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-align: right;
}

.header-cart-label,
.header-cart-total {
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.header-cart-label {
  opacity: 0.6;
}

.navbar-toggler {
  border: 1px solid var(--border);
  padding: 8px 10px;
}

/* Bootstrap's default toggler icon is white (made for a .navbar-dark header); this header is white. */
.navbar-toggler-icon {
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2867, 81, 93, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--accent-rgb), 0.25);
}

/* Main menu: centred, wraps naturally like the WordPress theme */
.main-nav {
  width: 100%;
}

.main-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 1rem 0;
  border-top: 1px solid var(--border-light);
}

.main-menu li {
  margin: 0;
}

.main-menu a {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  font-family: var(--font-family-nav);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
}

.main-menu a:hover,
.main-menu a:focus {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

@media (min-width: 992px) {
  .main-nav.collapse {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
  }

  .site-header-inner {
    display: grid;
    grid-template-columns: 20% 60% 1fr;
    align-items: center;
    justify-content: start;
    gap: 0;
    padding: 20px 3vw;
  }

  .site-logo img {
    width: 100%;
    height: auto;
  }

  .site-logo,
  .site-header-actions {
    margin-bottom: 23px;
  }

  .site-header-actions {
    justify-content: flex-end;
  }

  .header-cart-toggle {
    align-items: flex-start;
  }

  .header-cart-text {
    margin-top: 15px;
  }

  .main-menu {
    gap: 0;
    padding: 0;
    border-top: 0;
  }

  .main-menu li {
    margin: 0 15px;
    padding: 4px 14px;
  }

  .main-menu a {
    padding: 0 10px 23px;
    border-bottom: 0;
    font-size: 18px;
    line-height: 1.43;
  }
}

@media (max-width: 991.98px) {
  .site-logo {
    order: 1;
  }

  .site-header-actions {
    order: 2;
  }

  .main-nav {
    order: 3;
  }

  .main-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.75rem 0;
  }

  .main-menu a {
    width: 100%;
    padding: 10px 0;
  }
}

/* Breadcrumbs left, search right: one strip under the header on every page */
.page-toolbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.page-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  flex: 0 1 340px;
  min-width: 0; /* Safari sizes a search input by its default width otherwise and pushes the row off-screen */
  margin-left: auto;
}

.page-toolbar .search-form {
  flex: 1 1 280px; /* narrower than that it moves under the sidebar button */
  min-width: 0;
  margin-bottom: 0;
}

/* Below 992px the sidebar is a slide-in panel opened from this button */
.sidebar-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--white);
  color: var(--dark);
  font-family: var(--font-family);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-toggle:hover,
.sidebar-toggle:focus-visible {
  border-color: var(--dark);
  background: var(--dark);
  color: var(--white);
}

.sidebar-toggle-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.sidebar-toggle-icon path,
.search-submit-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.search-submit-icon {
  display: none;
  width: 18px;
  height: 18px;
}

@media (min-width: 992px) {
  .page-toolbar-inner {
    padding-left: 2.25rem;
    padding-right: 2.25rem;
  }
}

@media (max-width: 991.98px) {
  .page-toolbar-actions {
    flex-basis: 460px;
  }
}

/* Phones: one row — a compact sidebar button, the search button keeps only the magnifier, the field takes the rest */
@media (max-width: 575.98px) {
  .page-toolbar-actions {
    flex-basis: 100%;
    flex-wrap: nowrap;
  }

  .page-toolbar .search-form {
    flex: 1 1 0;
  }

  .sidebar-toggle {
    gap: 6px;
    padding: 0 10px;
    font-size: 14px;
  }

  .page-toolbar .search-form .search-submit {
    justify-content: center;
    width: 44px;
    padding: 0;
  }

  .page-toolbar .search-form .search-submit {
    display: inline-flex;
    align-items: center;
  }

  .page-toolbar .search-submit-icon {
    display: block;
  }

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

/* Search form ("Cerca ... / Cerca") */
.search-form {
  display: flex;
  gap: 0;
}

.search-form .search-field {
  flex: 1 1 0; /* the field takes what the button leaves, never its default input width */
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-family: var(--font-family);
  color: var(--text);
}

.search-form .search-field:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.6);
}

.search-form .search-submit {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--dark);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--dark);
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.search-form .search-submit:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* Home banner — full width, under the header */
.home-banner {
  width: 100%;
  line-height: 0;
}

.home-banner img {
  width: 100%;
  max-height: 700px;
  object-fit: cover;
  object-position: center;
}

/* ==========================================================================
   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);
}

/* Phones: the cart sits left of the menu button, so the panel hangs from the whole header instead */
@media (max-width: 576px) {
  .site-header .header-cart {
    position: static !important;
  }

  .mini-cart {
    top: 100%;
    left: 15px;
    right: 15px;
    width: 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(--card-border);
  border-radius: 0;
  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
   ========================================================================== */

/* The picture as the WordPress product page shows it: full column width, own proportions, no frame */
.product-gallery .main-image img#mainProductImage {
  display: block;
  width: 100%;
  height: auto;
}

.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. Two-column page body (content + sidebar, every page)
   ========================================================================== */

.page-body {
  padding: 2.5rem 15px;
}

@media (min-width: 992px) {
  .page-body {
    padding-left: 2.25rem;
    padding-right: 2.25rem;
  }
}

.content-col {
  min-width: 0; /* allow long words / wide tables to shrink inside the column */
}

.page-title-upper {
  text-transform: uppercase;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   14. Sidebar widgets
   ========================================================================== */

.sidebar .offcanvas-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-panel {
  --bs-offcanvas-width: min(360px, 85vw);
}

.sidebar-panel .offcanvas-header {
  border-bottom: 1px solid var(--border-light);
}

.sidebar-panel .offcanvas-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
}

.sidebar .widget {
  background: var(--white);
}

.widget-whatsapp-banner img {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
}

.widget-cialis-block {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.widget-cialis-title {
  margin: 0;
  color: var(--heading);
}

.widget-cialis-title a {
  color: inherit;
}

.widget-cialis-title a:hover {
  color: var(--accent);
}

.category-tree {
  list-style: disc;
  margin: 0 0 10px;
  padding-left: 0.92em; /* the bullets line up with the left edge of the other widgets */
  font-size: 1rem;
  line-height: 1.43;
  color: var(--text);
  overflow-wrap: break-word;
}

.category-tree > li {
  margin-bottom: 20px;
}

.category-tree-children li {
  margin-bottom: 10px;
}

.category-tree a {
  color: var(--accent-dark);
  font-weight: 400;
}

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

.category-tree-children {
  list-style: circle;
  margin: 10px 0 0;
  padding-left: 40px;
}

/* ==========================================================================
   15. Footer
   ========================================================================== */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 40px 0;
  font-size: 14px;
  line-height: 20px;
}

.footer-widgets {
  display: flex;
  flex-wrap: wrap;
  padding: 0 15px;
}

.footer-section {
  flex: 0 0 100%;
  min-width: 0;
}

.footer-widget-title {
  margin: 20px 0 10px;
  color: var(--footer-text);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
}

.footer-section ul {
  margin: 0 0 10px;
  padding-left: 40px;
  list-style: disc;
}

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

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

.footer-copy {
  margin-top: 20px;
  padding: 0 15px;
  color: var(--footer-text);
  text-align: center;
}

@media (min-width: 576px) {
  .footer-section {
    flex-basis: 50%;
  }
}

@media (min-width: 992px) {
  .footer-widgets {
    padding: 0 10.25%;
  }

  .footer-section {
    flex-basis: 25%;
  }
}

/* Floating WhatsApp button, bottom-right on every page */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1030;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: #25d366;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}

.whatsapp-float:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

.whatsapp-float-icon {
  display: flex;
}

@media (max-width: 575.98px) {
  .whatsapp-float-label {
    display: none;
  }

  .whatsapp-float {
    padding: 14px;
    border-radius: 50%;
  }
}

/* ==========================================================================
   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; border: 0; color: inherit; }
.promo-coupon-widget .card-body { padding-left: 0; padding-right: 0; }

@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;
  }

  .site-logo img {
    height: 40px;
  }

  .header-cart-label {
    display: none;
  }

  .header-cart-total {
    font-size: 0.8rem;
  }

  .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: 991.98px) {
  /* The column only holds the fixed panel there: no gutter of its own */
  .sidebar {
    margin-top: 0;
  }
  
  .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);
}

/* ==========================================================================
   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-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;
    }
}

/* ===== Home / entry-content typography (WordPress-copied text) ===== */

.entry-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 1.5rem;
}

.entry-content h2 {
  color: var(--heading);
  font-weight: 700;
}

.entry-content p {
  margin-bottom: 1rem;
}

.cycle-quiz-box {
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--light);
}

/* ===== Static pages (contact, delivery, privacy, terms) ===== */

.page-static h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 1.5rem;
}

.page-static h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--heading);
}

.page-static ol {
  padding-left: 1.5rem;
}

.page-static ol li {
  margin-bottom: 0.75rem;
}

.page-contact .contact-ticket-image {
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.page-contact .contact-ticket-image:hover {
  opacity: 0.85;
}

/* ===== Text blocks: air above the subheadings of every description and page text ===== */

:is(.rich-text, .catalog-description, .entry-content, .page-static) h2 {
  margin-top: 2rem;
}

:is(.rich-text, .catalog-description, .entry-content, .page-static) :is(h3, h4) {
  margin-top: 1.5rem;
}

:is(.rich-text, .catalog-description, .entry-content, .page-static) :is(h2, h3, h4) + :is(h3, h4) {
  margin-top: 0.75rem;
}

:is(.rich-text, .catalog-description, .entry-content, .page-static) :is(h2, h3, h4):first-child {
  margin-top: 0;
}

/* Layout tables that only set two lists side by side (WordPress descriptions): one column on phones */
@media (max-width: 575.98px) {
  :is(.rich-text, .catalog-description, .entry-content) table:has(td > ul) :is(tbody, tr, td) {
    display: block;
  }

  /* The stacked lists read as one */
  :is(.rich-text, .catalog-description, .entry-content) table:has(td > ul) td > ul {
    margin-bottom: 0;
  }

  :is(.rich-text, .catalog-description, .entry-content) table:has(td > ul) {
    margin-bottom: 1rem;
  }
}

/* ===== Catalog: description above the grid, result count + sort ===== */

.catalog-description {
  margin-bottom: 1.5rem;
}

.catalog-description h2 {
  color: var(--heading);
  font-weight: 700;
}

.catalog-toolbar {
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.catalog-result-count {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

/* ===== Product page ===== */

.product-excerpt p {
  margin-bottom: 0.25rem;
  color: var(--text);
}

.product-meta strong {
  color: var(--heading);
}

/* ===== Minimum order note (cart / checkout) ===== */

.min-order-note {
  margin: 0 0 0.5rem;
  color: var(--accent-dark);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.checkout-total-amount {
  color: var(--accent);
}

.product-info-col .price {
  color: var(--price-color-product);
}

/* Text blocks justified: descriptions, home text and static pages (the contact page stays centred) */
:is(.rich-text, .catalog-description, .entry-content, .page-static:not(.page-contact)) :is(p, li) {
  text-align: justify;
}

@media (max-width: 575.98px) {
  :is(.rich-text, .catalog-description, .entry-content, .page-static:not(.page-contact)) :is(p, li) {
    -webkit-hyphens: auto;
    hyphens: auto;
  }
}

/* Square forms and buttons, as the WordPress shop (its fields and buttons are 0-4px) */
:is(input, select, textarea, .form-control, .form-select, .btn, .card, .cart-summary, .input-group > *),
main :is(.rounded, .rounded-3, .rounded-4),
.search-form .search-field,
.search-form .search-submit {
  border-radius: 0 !important;
}
