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

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

:root {
  /* Brand colors — from origin lexus_store theme (Roids USA) */
  --accent:        #c72828;
  --accent-dark:   #b32424;
  --light-accent:  #f9eaea;
  --accent-rgb:    199, 40, 40;

  /* Neutral palette */
  --dark:          #4d4d4d;
  --gray:          #6c757d;
  --danger:        #f35b20;
  --warning:       #fffc07;
  --light:         #ededed;
  --border:        #7b7b7b;

  /* Text */
  --text:            #333;
  --text-muted-dark: #555;
  --text-subtle:     #777;
  --btn-text:        #fff;

  /* Prices */
  --price-color:     #ef5a60; /* rgb(239,90,96) — origin price color */
  --old-price-color: #999;

  /* Borders */
  --border-light:  #eee;
  --border-mid:    #dee2e6;

  /* Backgrounds */
  --bg-page:       #f8f9fa;
  --bg-tabs:       #f0f2f5;

  /* Footer */
  --footer-bg:     #111;
  --footer-text:   #ccc;

  /* Warning bar */
  --warning-bar-bg:   #ffd700;
  --warning-bar-text: #1a1a1a;

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

  /* Shadows */
  --shadow-sm:     0 4px 15px rgba(10,10,10,0.06);
  --shadow-md:     0 12px 24px rgba(var(--accent-rgb),0.25);
  --bs-danger:     var(--danger);
  --bs-danger-rgb: 243,91,32;

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

  /* Bootstrap component radius → sharp (cards, inputs, alerts, dropdowns use these) */
  --bs-border-radius:     0;
  --bs-border-radius-sm:  0;
  --bs-border-radius-lg:  0;
  --bs-border-radius-xl:  0;
  --bs-border-radius-xxl: 0;

  /* 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 — origin uses Montserrat (Google Fonts) */
  --font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  --line-height: 1.5;

  /* Layout — matches origin container (max 1190px) */
  --container-max:    1190px;
  --container-max-xl: 1190px;
}

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

html,
body {
  overflow-x: hidden;
}

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

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

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

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

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

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

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

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

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

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

/* Header top bar — origin-style: cart/checkout links · promo · cart summary */
.header-topbar {
  background: #f5f5f5;
  border-bottom: 1px solid var(--border-light);
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  font-size: 12px;
  color: var(--text-subtle);
}
.header-topbar .topbar-row {
  min-height: 32px;
}
.topbar-links a {
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: #8a8a8a;
  text-decoration: none;
  border-right: 1px solid var(--border-light);
}
.topbar-links a:first-child {
  border-left: 1px solid var(--border-light);
}
.topbar-links a:hover {
  color: var(--accent);
}
.topbar-promo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-align: center;
}
.topbar-promo strong {
  color: #4a4a4a;
}
.topbar-cart-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  background: var(--dark);
  color: #fff;
  text-decoration: none;
}
.topbar-cart-toggle:hover {
  background: #5a5a5a;
  color: #fff;
}
.topbar-cart-toggle i {
  font-size: 15px;
}
.topbar-cart-summary {
  display: flex;
  align-items: center;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  white-space: nowrap;
}

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

.navbar-main {
  background: #fff; /* white logo row, matching the origin (#header) */
  padding: 7.5px 0; /* logo row = 79px logo + 15px = 94px, matching the origin */
}
/* White header → dark hamburger (nav-link colors set in the later "Preserve navbar styles" block) */
.navbar-main .navbar-toggler {
  border-color: rgba(0, 0, 0, 0.15);
}
.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(51,51,51,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Main menu bar — origin-style red category strip (desktop, row 3) */
.navbar-menu {
  background: var(--accent);
}
.navbar-menu .menu-list {
  display: flex;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Each item keeps its content width but grows equally to fill the bar,
   so the leftover space is split evenly — same side gap on every item. */
.navbar-menu .menu-list > li {
  flex: 1 1 auto;
}
.navbar-menu .menu-list > li > a {
  position: relative;
  overflow: hidden;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 18px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  border-right: 1px solid rgb(210, 83, 83);
  white-space: nowrap;
  transition: color 0.4s ease;
}
.navbar-menu .menu-list > li:first-child > a {
  border-left: 1px solid rgb(210, 83, 83);
}
/* Origin-style hover: a centered ~50% block appears instantly, then expands to both edges (0.4s).
   Rest state is scaleX(0.5) but transparent; on hover opacity snaps in (0s) and scaleX grows to 1. */
.navbar-menu .menu-list > li > a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-dark);
  z-index: -1;
  transform: scaleX(0.5);
  transform-origin: center;
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.navbar-menu .menu-list > li > a:hover {
  color: #fff;
}
.navbar-menu .menu-list > li > a:hover::before {
  transform: scaleX(1);
  opacity: 1;
  transition: transform 0.4s ease, opacity 0s;
}
.navbar-menu .menu-list > li > a i {
  font-size: 15px;
}

.navbar-brand {
  color: white !important;
  font-weight: bold;
  padding-top: 0;
  padding-bottom: 0;
}

/* Header service blocks (mirror origin box-services): icon + title + subtitle */
.header-services {
  gap: 26px;
}
.service-box {
  display: flex;
  align-items: center;
  gap: 11px;
}
.service-box > i {
  font-size: 30px;
  color: #b8b8b8;
}
.service-box .service-text h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: #555;
  line-height: 1.2;
}
.service-box .service-text small {
  display: block;
  font-size: 12px;
  color: #999;
  line-height: 1.3;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.mini-cart {
  display: none;
  position: absolute;
  top: 130%;
  right: 0;
  z-index: 1050;
  width: 320px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  padding: 15px;
  font-size: 1rem; /* reset: don't inherit the 12px header top bar font */
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: transparent;
  padding: 15px;
}

/* Price — exact origin computed values (Open Sans, normal weight), used site-wide */
.price {
  color: var(--price-color);
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 25.7167px;
  margin-bottom: 11px;
}

/* Product-page Add to Cart — exact origin computed values (gray, uppercase) */
.product-info-col .btn-buy {
  appearance: button;
  background: rgb(88, 88, 88);
  background-image: none;
  color: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  outline: 0;
  cursor: pointer;
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  height: 35px;
  line-height: 20px;
  margin: 0;
  padding: 0 20px;
  text-transform: uppercase;
  transition: all 0.4s ease;
}

.product-info-col .btn-buy:hover {
  background: var(--accent); /* origin: gray -> red on hover */
  color: #fff;
}

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

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

/* Larger rating stars on the product page */
.product-info-col .stars { font-size: 1.5rem; line-height: 1; }

/* Product title — smaller, matching origin (~18px bold) */
.product-info-col h1 { font-size: 1.25rem; line-height: 1.3; }

.sale-badge {
  background: var(--danger);
  color: 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: white;
}

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

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

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

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

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

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

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

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

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

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

.product-gallery .main-image {
  height: 450px;
  overflow: hidden;
  background: transparent;
  border-radius: var(--radius-md);
}

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

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

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

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

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

.pagination {
  --pg-color: var(--gray);
  --pg-bg: #ffffff;
  --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(0, 0, 0, 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: #adb5bd;
  background-color: var(--bg-page);
  border-color: var(--border-mid);
  cursor: not-allowed;
  opacity: 0.75;
  box-shadow: none;
  transform: none;
}

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

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

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

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

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

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

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

.footer a:hover {
  color: white;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Softer card titles */
.checkout-page .card-title,
.order-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-label {
  font-weight: 400;
  color: var(--dark);
  font-size: var(--fs-xs);
}

/* Billing fields - smoother appearance */
#billingFields .form-control,
#billingFields .form-select {
  background: #fff;
}

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

/* Order confirmation page — site style */
.order-page .order-success-icon {
  font-size: 4rem;
  color: #3c9a44; /* semantic success (matches cart-added notice) */
}
.order-page .order-total {
  color: var(--accent);
}
.order-page .order-status-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #f2f2f2;
  color: #555;
  border: 1px solid var(--border-light);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.order-page .table thead th {
  background: #f7f7f7;
  color: #555;
  font-weight: 700;
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: .3px;
  border-bottom: 1px solid var(--border-light);
}
.order-page .free-badge {
  display: inline-block;
  padding: 1px 8px;
  background: #eaf6ea;
  color: #3c9a44;
  font-weight: 700;
  font-size: .7rem;
  text-transform: uppercase;
}

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

.toast {
  min-width: 280px;
  max-width: 400px;
  z-index: 1055;
  border-radius: var(--radius-md);
}

.toast.bg-success {
  background-color: #198754 !important;
  color: #fff !important;
}

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

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

/* Form controls: on-brand focus everywhere (accent border, no glow) — replaces
   Bootstrap's default blue ring; keep it sharp to match the site style. */
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--accent);
  box-shadow: none;
}

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

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

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

@media (min-width: 992px) {
  .col-lg-3 aside.sidebar {
    padding-top: 2.6rem;
  }
}

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


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

/* Product tabs — origin .htabs style (uppercase, red active block, thin underline) */
#productTabs {
  border-bottom: 1px solid #ddd;
  background: none;
  border-radius: 0;
  padding: 0;
  gap: 0;
  flex-wrap: nowrap;
  overflow: visible;
}

#productTabs .nav-item { margin: 0; }

#productTabs .nav-link {
  margin-bottom: -1px;
  border: 0;
  border-radius: 0;
  padding: 7px 25px;
  font-size: 18px;
  text-transform: uppercase;
  color: #292929 !important; /* override global navbar .nav-link !important */
  background: none;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

#productTabs .nav-link:hover {
  color: var(--accent) !important;
  background: none;
}

#productTabs .nav-link.active {
  color: #fff !important;
  background: var(--accent);
}

.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. White header → dark nav-link text/icons. */
.navbar-main .nav-link {
  color: var(--dark) !important;
}

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


.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(0,0,0,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(0,0,0,0.12);
  border-color: rgba(0,0,0,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; appearance: none; margin: 0; }
.product-qty input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

@media (max-width: 991px) {
  .product-info-col h1 { text-align: center; }
  .product-info-col .stars-row { display: flex; justify-content: center; }
  .product-info-col .price { 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);
}

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

/* ===== Blog (listing + article) ===== */
.blog-listing .blog-hero h1 { color: var(--dark); }
.blog-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s 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: .8rem; color: var(--gray); margin-bottom: .4rem; }
.blog-card-title { font-size: 1.05rem; 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: .9rem; color: var(--gray); margin: 0; }
.blog-article { color: #222; }
.blog-article-hero { width: 100%; max-height: 460px; object-fit: cover; }
.blog-article-body img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 1rem auto; }
.blog-article-body ul, .blog-article-body ol { margin: 0 0 1.15rem 1.25rem; }
.blog-article-body h2, .blog-article-body h3 { margin-top: 1.6rem; margin-bottom: .8rem; }
@media (max-width: 767.98px) {
  .blog-article-body p { text-align: justify; }
  .blog-article-footer { text-align: center; }
}
.blog-article .breadcrumbs, .blog-listing .breadcrumbs { font-size: .85rem; color: #999; padding: 1rem 0 1.2rem; }
.blog-article .breadcrumbs a, .blog-listing .breadcrumbs a { color: #444; text-decoration: none; }
.blog-article .breadcrumbs a:hover, .blog-listing .breadcrumbs a:hover { color: var(--accent-dark); }
.blog-article .breadcrumbs span, .blog-listing .breadcrumbs span { margin: 0 .35rem; }

/* Product page — origin-matched (sharp, bordered image, attribute labels) */
.product-image-box { border: 1px solid var(--border-light); background: transparent; padding: 10px; }
.product-attrs p { margin-bottom: .3rem; color: var(--text); }
.product-attrs strong { color: var(--dark); }
.product-attrs a, .product-tags a { color: var(--accent); text-decoration: none; }
.product-attrs a:hover, .product-tags a:hover { color: var(--accent-dark); }

/* ==========================================================================
   Sidebar categories box — origin-matched (dark header, light rows, gray active)
   ========================================================================== */
.sidebar .box.linkbox { margin-bottom: 20px; }

.sidebar .box.linkbox .box-heading {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 15px;
  background-color: var(--dark);
  border-bottom: 1px solid #3f3f3f;
  color: #fff;
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-size: 14px;
  text-transform: uppercase;
}
.sidebar .box.linkbox .box-heading i { margin-right: 10px; font-size: 15px; }

.sidebar .box.linkbox .box-content {
  border: 1px solid #ebebeb;
  border-top: none;
  padding: 0;
}

.sidebar .box.linkbox ul.box-category,
.sidebar .box.linkbox ul.box-category-sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar .box.linkbox ul.box-category li a {
  display: block;
  background-color: #eeeeee;
  border-bottom: 1px solid #dedede;
  color: #3e3d39;
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 38px;
  padding-left: 26px;
  text-decoration: none;
  transition: all 0.4s ease;
}
.sidebar .box.linkbox ul.box-category > li:last-child > a { border-bottom: none; }

.sidebar .box.linkbox ul.box-category li a:hover,
.sidebar .box.linkbox ul.box-category li a.active {
  background-color: #848484;
  color: #fff;
}

/* Right-aligned suffix, e.g. "(PCT)" */
.sidebar .box.linkbox ul.box-category li a span {
  float: right;
  margin-right: 16px;
}

/* Sub-categories (if any) */
.sidebar .box.linkbox ul.box-category-sub li a {
  background-color: #fafafa;
  padding-left: 40px;
  font-size: 12px;
  line-height: 34px;
}

.sidebar .box.linkbox .box-empty { padding: 10px 15px; color: var(--text-subtle); }

/* Featured manufacturers strip (under header) */
.manufacturers-strip {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  padding: 8px 0;
}
.manufacturer-logo {
  display: block;
  text-align: center;
  padding: 6px 8px;
}
.manufacturer-logo img {
  max-height: 60px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.manufacturer-logo:hover img { opacity: 1; }

/* ==========================================================================
   Best Sellers widget — heading, list items, price
   ========================================================================== */
/* Base heading (homepage) */
.bs-heading { padding: 1rem; margin: 0; border-bottom: 1px solid var(--border-light); font-weight: 700; }
.bs-heading i { margin-right: .5rem; color: var(--accent); }

/* In sidebar: same bar as Categories, but red */
.sidebar .bs-heading {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 15px;
  background-color: var(--accent);
  border-bottom: 1px solid var(--accent-dark);
  color: #fff;
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
}
.sidebar .bs-heading i { color: #fff; }

.bs-item { position: relative; padding-right: 58px; padding-top: .75rem; padding-bottom: .75rem; }
.bs-thumb { width: 60px; height: 60px; object-fit: contain; flex-shrink: 0; margin-right: 6px; }
.bs-rank { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: .75rem; flex-shrink: 0; }
.bs-title { line-height: 1.3; margin-bottom: 4px; }
.bs-tag { font-size: .65rem; }
.bs-sub { font-size: .75rem; margin-bottom: 4px; }
.bs-price { color: var(--price-color); font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; }
.bs-price .old-price { font-size: 12px; margin-left: 6px; }

/* ==========================================================================
   Cart icon-button — origin round gray button with cart icon (small cards + BS)
   ========================================================================== */
.btn-cart-icon {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 20px;
  outline: 0;
  box-shadow: none;
  background-color: rgb(88, 88, 88);
  background-image: url("../images/icon-cart.png");
  background-repeat: no-repeat;
  background-position: 9px 8px;
  color: transparent;
  font: 14px/20px 'Open Sans', Helvetica, Arial, sans-serif;
  text-indent: -999px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
}
.btn-cart-icon:hover { background-color: var(--accent); }

/* Card bottom clearance + out-of-stock label */
.product-card { padding-bottom: 6px; }
.product-card .out-of-stock-label {
  position: absolute;
  right: 12px;
  bottom: 14px;
  font-size: 12px;
  color: var(--text-subtle);
}

/* Breadcrumbs — origin style (">" separator, dark links, gray current, no band) */
.breadcrumb {
  --bs-breadcrumb-divider: '>';
  --bs-breadcrumb-divider-color: #414141;
  margin-bottom: 0;
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  font-size: 13px;
}
.breadcrumb-item a { color: #3e3d39; text-decoration: none; }
.breadcrumb-item a:hover { color: var(--accent); }
.breadcrumb-item.active { color: #8c8c8c; }

/* Out of Stock indicator on product page (replaces Add to Cart) */
.product-info-col .btn-out-of-stock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 24px;
  background: #f2f2f2;
  color: #777;
  border: 1px solid #ccc;
  border-radius: 0;
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  cursor: not-allowed;
  opacity: 1;
}
.product-info-col .btn-out-of-stock:hover { background: #f2f2f2; color: #777; }
/* Center the Out of Stock badge on mobile (stacked layout) */
@media (max-width: 991.98px) {
  .product-info-col .btn-out-of-stock {
    display: flex;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }
}

/* Add-to-cart notification — origin-style full-width green alert */
.cart-alert {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  margin: 0;
  border-radius: 0;
  border-width: 0 0 1px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.cart-alert.alert-success {
  background-color: #dff0d8;
  border-color: #d6e9c6;
  color: #3c763d;
}
.cart-alert .fa-check-circle { color: #3c763d; }
.cart-alert-link { color: #2d5a2f; font-weight: 700; text-decoration: underline; }
.cart-alert-link:hover { color: #1e3f21; }

/* Reviews — origin-style boxed layout (author on-date left, stars right, text below) */
.review-item {
  border: 1px solid #ececec;
  padding: 20px 25px;
  margin-bottom: 20px;
}
.review-head { margin-bottom: 14px; }
.review-author { color: #333; font-weight: 700; }
.review-date { color: #777; }
.review-stars { color: #f0ad4e; letter-spacing: 2px; white-space: nowrap; font-size: 15px; }
.review-text { color: #333; line-height: 1.7; }

/* Product description content (restored origin HTML) */
#description h2, #description h3 {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.05rem;
  color: #555;
  margin: 1.6rem 0 .6rem;
}
#description p { margin-bottom: 1rem; }
#description img { max-width: 100%; height: auto; margin: 0 0 1.2rem; }

/* Store intro block (origin content-bottom on product pages) */
.store-welcome { margin-top: 3rem; }
.store-welcome h2 {
  font-size: 1.6rem;
  color: #555;
  margin-bottom: 1.2rem;
}
.store-welcome p { margin-bottom: 1rem; line-height: 1.7; color: var(--text); }

/* Homepage testimonials ("What our customers say") */
.testimonial-card {
  border: 1px solid var(--border-light);
  background: #fff;
  padding: 24px;
}
.testimonial-stars { color: #f0ad4e; letter-spacing: 2px; margin-bottom: 12px; }
.testimonial-text { color: var(--text); line-height: 1.7; margin-bottom: 16px; }
.testimonial-meta { font-size: .9rem; }
.testimonial-meta a { color: var(--accent); text-decoration: none; }
.testimonial-meta a:hover { color: var(--accent-dark); }

/* Homepage top intro (origin hero text) */
.home-intro h1 { font-size: 1.5rem; color: #555; font-weight: 500; }
.home-intro p { font-size: 1rem; color: var(--text); margin-bottom: .4rem; }

/* Homepage main banner slider (origin 2 banners + overlay text) */
.home-slider .carousel-item img { width: 100%; height: auto; }
.home-slide-caption {
  display: block;
  left: 7%;
  right: auto;
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  max-width: 55%;
  padding: 0;
  z-index: 5; /* above the carousel arrows (z-index:1); caption has its own stacking context via transform */
  pointer-events: none; /* let clicks pass to the slider arrows... */
}
.home-slide-caption a,
.home-slide-caption .btn {
  pointer-events: auto; /* ...except the Shop button/links, raised above the arrows */
  position: relative;
  z-index: 5;
}
.home-slide-caption h2 {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 3.6rem;
  line-height: 1.05;
  text-shadow: 0 2px 10px rgba(0,0,0,.7);
  margin-bottom: .6rem;
}
.home-slide-caption p {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 1.8rem;
  text-shadow: 0 2px 10px rgba(0,0,0,.7);
  margin-bottom: 1.4rem;
}
@media (max-width: 991px) {
  .home-slide-caption h2 { font-size: 2.2rem; }
  .home-slide-caption p { font-size: 1.1rem; }
}
@media (max-width: 767px) {
  .home-slide-caption h2 { font-size: 1.5rem; }
  .home-slide-caption p { font-size: .9rem; letter-spacing: 1px; margin-bottom: .5rem; }
  .home-slide-caption .btn { padding: .3rem 1.1rem; font-size: .8rem; }
}

/* Homepage product carousels */
.product-carousel-title { color: #555; }
.product-carousel .carousel-control-prev,
.product-carousel .carousel-control-next { width: 4%; opacity: .8; }
.product-carousel .carousel-control-prev-icon,
.product-carousel .carousel-control-next-icon { filter: invert(1) grayscale(1); }

/* Testimonial meta: author on top, product · date below (no ugly wrap) */
.testimonial-author { display: block; }
.testimonial-sub { display: block; font-size: .85rem; color: var(--text-subtle); margin-top: 2px; }
.testimonial-date { white-space: nowrap; }

/* Testimonials masonry grid — fills gaps (Google-tiles style) */
.testimonials-grid { column-count: 3; column-gap: 1.5rem; }
.testimonials-grid .testimonial-card { break-inside: avoid; margin-bottom: 1.5rem; }
@media (max-width: 991px) { .testimonials-grid { column-count: 2; } }
@media (max-width: 575px) { .testimonials-grid { column-count: 1; } }

/* Intro paragraph between homepage carousels */
.home-carousel-text { color: var(--text-muted-dark); line-height: 1.7; }

/* roids.club review badge (footer) */
.footer-review-badge img { max-height: 80px; width: auto; border-radius: 6px; opacity: .9; transition: opacity .2s; }
.footer-review-badge:hover img { opacity: 1; }
.footer-review-caption { color: var(--footer-text); font-size: .9rem; text-decoration: underline; }
.footer-review-caption:hover { color: #fff; }
.footer-review-note { color: var(--text-subtle); }

/* Network cross-link (footer) — analog of the origin header block */
.footer-network a { color: var(--footer-text); font-size: .9rem; text-decoration: underline; }
.footer-network a:hover { color: #fff; }
.footer-network-name { color: var(--text-subtle); font-size: .95rem; font-weight: 700; letter-spacing: .5px; margin: 2px 0 0; }
