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

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

:root {
  --accent:        #f73838;
  --accent-dark:   #c82020;
  --light-accent:  #fff5f5;
  --dark:          #2d2d2d;
  --gray:          #6c757d;
  --danger:        #f35b20;
  --warning:       #ffb800;
  --light:         #f5f5f5;
  --border:        #ddd;
  --shadow-sm:     0 4px 15px rgba(10,10,10,0.06);
  --shadow-md:     0 12px 24px rgba(247,56,56,0.18);
  --link:          #07afd4;
  --link-dark:     #059abc;

  /* Text */
  --text-dark:     #222;
  --text-body:     #333;
  --text-muted:    #555;
  --text-faint:    #777;

  /* Surfaces & borders */
  --surface:       #f8f9fa;
  --border-light:  #eee;

  /* Buttons (primary CTA) */
  --btn-bg:        #ff7f50;
  --btn-bg-hover:  #e0623a;

  /* Footer */
  --footer-text:   #c8c8c8;
}

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

html {
  overflow-x: clip;
}

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

body {
  font-family: 'Open Sans', system-ui, sans-serif;
  background: #fff;
  color: var(--dark);
  margin: 0;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand {
  font-family: 'Oswald', sans-serif;
}

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

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

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

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

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

/* ==========================================================================
   4. Promo Bar
   ========================================================================== */

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

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

/* ==========================================================================
   5. Header Top Row (logo + search + cart)
   ========================================================================== */

.header-top {
  background: #fff;
  padding: 18px 0;
  border-bottom: 1px solid #e8e8e8;
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.site-logo:hover {
  color: var(--accent-dark);
}

.header-top-right {
  flex: 1;
  justify-content: flex-end;
  max-width: 700px;
}

.header-search-form {
  display: flex;
  align-items: stretch;
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.header-search-input {
  flex: 1;
  border: none;
  padding: 8px 12px;
  font-size: 0.9rem;
  outline: none;
  min-width: 0;
}

.header-search-input:focus,
.header-search-input:focus-visible {
  outline: none;
  box-shadow: none;
}

.header-search-btn {
  background: none;
  border: none;
  border-left: 1px solid var(--border);
  padding: 8px 14px;
  color: var(--dark);
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.header-search-btn:hover {
  background: var(--light-accent);
  color: var(--accent);
}

.header-cart-wrap {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: stretch;
}

.header-cart-btn {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 6px;
  background: var(--link);
  color: #fff;
  text-decoration: none;
  padding: 0 16px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
}

.header-cart-btn:hover {
  background: var(--link-dark);
  color: #fff;
}

@media (max-width: 991px) {
  .header-cart-btn {
    min-height: 44px;
    padding: 0 14px;
  }
}

.header-cart-btn .js-cart-count {
  font-size: 0.95rem;
}

/* Mobile toggler */
.navbar-toggler {
  border-color: #ccc;
}
.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(45,45,45,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==========================================================================
   6. Header Nav Row
   ========================================================================== */

.navbar-main {
  background: #fff;
  padding: 0;
}

.navbar-main > .container {
  flex-direction: column;
  align-items: stretch;
}

.nav-link {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dark) !important;
  padding: 14px 18px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  transition: color 0.15s, border-color 0.15s;
}

.nav-link:hover,
.nav-link.active,
.nav-link:focus,
.nav-link:focus-visible {
  color: var(--accent) !important;
  background: none;
  outline: none;
  box-shadow: none;
}

.navbar-nav {
  flex-wrap: wrap !important;
  gap: 0 24px;
}

@media (max-width: 991px) {
  .navbar-main {
    padding: 0;
  }
  .navbar-nav {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .navbar-main .nav-item {
    border-bottom: 1px solid #d0d0d0;
  }
  .nav-link {
    font-size: 1rem;
    border-bottom: none;
    border-left: none;
    padding: 22px 20px;
    width: 100%;
    text-align: left;
  }
  .nav-link:hover,
  .nav-link.active {
    background: none;
    border-bottom: none;
  }
  /* Dropdown inside collapsed navbar */
  .navbar-main .dropdown-menu {
    position: static !important;
    transform: none !important;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    background: #f7f7f7;
  }
  .navbar-main .dropdown-item {
    padding: 14px 32px;
    border-bottom: 1px solid #e8e8e8;
  }
  .navbar-main .dropdown-item:last-child {
    border-bottom: none;
  }
}

/* Search form (mobile only, inside nav collapse) */
.search-form input.form-control {
  min-width: 0;
}

/* ==========================================================================
   7. Dropdown
   ========================================================================== */

.navbar-main .dropdown-menu {
  min-width: 240px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 0;
  padding: 0;
}

.navbar-main .dropdown-item {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 13px 20px;
  color: var(--dark);
  border-bottom: 1px solid var(--border-light);
}

.navbar-main .dropdown-item:last-child {
  border-bottom: none;
}

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

/* ==========================================================================
   8. Mini-cart
   ========================================================================== */

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

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

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

.mini-cart .cart-total {
  font-weight: bold;
}

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

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

/* ==========================================================================
   9. Buttons
   ========================================================================== */

.btn-primary {
  background-color: var(--btn-bg);
  border-color: var(--accent);
  border-radius: 4px;
  color: #fff;
  font-weight: 700;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

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

.btn-modern {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 6px;
  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: #fff;
  transform: translateY(-2px);
}

.btn-modern:active {
  transform: translateY(0);
}

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

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

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

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

.product-card {
  text-align: center;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  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;
  max-height: 180px;
  object-fit: contain;
  background: var(--light);
  padding: 15px;
}

.price {
  color: #d00;
  font-weight: 700;
  font-size: 1.25rem;
}

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

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

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

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

.form-check-label {
  font-size: 0.95rem;
  cursor: pointer;
}

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

/* Catalog sidebar — category widget */
.bb-cat-widget {
  padding-bottom: 1.5rem;
}

.bb-cat-widget .bb-intro-heading {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

.bb-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bb-cat-item {
  border-bottom: 1px solid #f0f0f0;
}

.bb-cat-item > a {
  display: block;
  padding: 9px 0;
  font-size: 0.875rem;
  color: var(--text-body);
  text-decoration: none;
  transition: color 0.15s, padding-left 0.15s;
}

.bb-cat-item > a:hover {
  color: var(--link);
  padding-left: 4px;
}

.bb-cat-item.active > a {
  color: var(--link);
  font-weight: 600;
}

.bb-cat-item--child > a {
  padding-left: 14px;
  color: #666;
  font-size: 0.825rem;
}

.bb-cat-item--child > a:hover,
.bb-cat-item--child.active > a {
  color: var(--link);
  padding-left: 18px;
}

/* Mobile offcanvas sidebar padding */
.offcanvas-body .bb-cat-widget {
  padding: 1.25rem 1rem;
}

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

.product-gallery .main-image {
  height: 450px;
  overflow: hidden;
}

.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(--surface);
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 5px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, border-color 0.2s, box-shadow 0.2s;
}

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

.bb-catalog-grid {
  row-gap: 2rem;
}

.bb-results-count {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

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

.pagination {
  --bs-pagination-color: var(--text-muted);
  --bs-pagination-bg: #fff;
  --bs-pagination-border-color: var(--border);
  --bs-pagination-border-radius: 0;
  --bs-pagination-hover-color: var(--link);
  --bs-pagination-hover-bg: #f0f9fc;
  --bs-pagination-hover-border-color: var(--link);
  --bs-pagination-active-color: #fff;
  --bs-pagination-active-bg: var(--link);
  --bs-pagination-active-border-color: var(--link);
  --bs-pagination-disabled-color: #bbb;
  --bs-pagination-disabled-bg: #fafafa;
  --bs-pagination-disabled-border-color: #e5e5e5;
  --bs-pagination-focus-box-shadow: none;
  margin: 2.5rem 0 1.5rem !important;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

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

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  border-radius: 0 !important;
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}

.page-item.active .page-link {
  font-weight: 600;
}

.page-item.prev .page-link,
.page-item.next .page-link {
  min-width: 44px;
  font-size: 1rem;
}

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

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

.hero-img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
}

@media (min-width: 1920px) {
  .hero-img {
    max-height: 500px;
  }
}

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

.benefit-card {
  text-align: center;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.benefit-card i {
  color: var(--accent);
}

.category-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 12px;
}

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

.footer {
  background: #29291e;
  color: var(--footer-text);
  padding: 0;
}

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

.footer a:hover {
  color: #fff;
}

.footer-heading {
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 1.4rem;
}

.footer-links li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-links li::before {
  content: '>';
  color: var(--text-faint);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.footer-links a {
  color: var(--footer-text);
  font-size: 0.88rem;
  line-height: 1.4;
}

.footer-links a:hover {
  color: #fff;
}

.footer-search-form {
  display: flex;
}

.footer-search-input {
  flex: 1;
  background: #fff;
  border: none;
  padding: 9px 12px;
  font-size: 0.9rem;
  outline: none;
  color: var(--text-body);
  min-width: 0;
}

.footer-search-input:focus,
.footer-search-input:focus-visible {
  outline: none;
  box-shadow: none;
}

.footer-search-btn {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.footer-search-btn:hover {
  background: var(--accent-dark);
}

.footer-bottom {
  background: #1e1e14;
  padding: 18px 0;
}

.footer-copy {
  color: #888;
  font-size: 0.82rem;
}

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

.cart-item {
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item--bonus {
  background: #f0fdf4;
}

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

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

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

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

.promo-input-group .btn {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

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

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

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

/* Checkout page specific overrides */
.checkout-page .form-control,
.checkout-page .form-select {
  border-color: #e9ecef;
  font-size: 1.1rem;
  padding: 0.65rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

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

/* Softer card titles */
.checkout-page .card-title {
  font-weight: 500 !important;
  font-size: 1.1rem;
  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 #d4d8dd;
  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(247, 56, 56, 0.15);
  border-color: var(--accent);
}

.checkout-page .form-check-label {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

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

/* No rounded corners anywhere on checkout */
.checkout-page .card,
.checkout-page [class*="rounded"] {
  border-radius: 0 !important;
}

.checkout-page .form-control,
.checkout-page .form-select,
.checkout-page .input-group > * {
  border-radius: 0 !important;
}

.checkout-page .cart-item-img { border-radius: 0 !important; }

/* Alert styling - minimal */
.checkout-page .alert-info {
  background: var(--surface);
  border: none;
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.85rem 1rem;
}

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

/* Breadcrumbs refinement */
.breadcrumb {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.checkout-page .breadcrumb {
  font-size: 0.9rem;
}

.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(--text-body);
  font-weight: 500;
}

/* Form labels - lighter */
.checkout-page .form-label {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
  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;
  }

  .product-gallery .main-image {
    height: 280px;
  }

  .order-confirmation .display-4 {
    font-size: 2.4rem;
  }
}

/* Bootstrap .rounded override on cart/product images */
.cart-item-img.rounded,
.cart-item-img[class*="rounded"] {
  border-radius: 0 !important;
}

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

.toast {
  min-width: 280px;
  max-width: 400px;
  z-index: 1055;
  border-radius: 8px;
}

.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);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.error-support {
  color: var(--gray);
  font-size: 0.9rem;
}

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

/* ==========================================================================
   19. About Page
   ========================================================================== */

.about-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
              url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 120px 0 80px;
  text-align: center;
}

.about-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.mission-card,
.value-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mission-card:hover,
.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
}

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

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

.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);
  padding: 1rem 1.5rem;
  border-radius: 0;
  border-left: 4px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.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: 8px;
  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: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
}

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

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

.order-header {
  background: var(--surface);
  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(--surface);
  border-radius: 6px;
}

.status-badge {
  font-size: 0.9rem;
  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(--surface);
}

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

.notification-time {
  font-size: 0.9rem;
  color: var(--text-faint);
}

.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. Order Confirmation Page
   ========================================================================== */

.order-confirmation {
  background: #fff;
}

.order-confirmation .display-4 {
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--text-dark);
}

.order-confirmation .card {
  border: none;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

.order-confirmation .table thead th {
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.6px;
  background: var(--surface);
}

.order-confirmation .table td {
  padding: 1.1rem 0.75rem;
  vertical-align: middle;
}

.order-confirmation .badge {
  font-size: 0.95rem;
  padding: 0.55em 1.1em;
  font-weight: 500;
}

.order-confirmation .alert {
  border-radius: 10px;
  border: none;
}

.order-confirmation .success-icon {
  font-size: 5.5rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.order-confirmation .failed-icon {
  font-size: 5.5rem;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}

.order-summary-header {
  background: #fff;
  color: var(--dark);
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.4px;
  padding: 0.85rem 1.25rem;
  border-radius: 10px 10px 0 0;
  border-bottom: none;
  position: relative;
}

.order-summary-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, var(--link) 0%, var(--link) 30%, var(--accent) 30%, var(--accent) 100%);
}

/* ==========================================================================
   25. 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: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 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;
  }
  
  .order-confirmation .display-4 {
    font-size: 2.4rem;
  }
  
  /* Pagination mobile optimization */
  .pagination {
    gap: 3px;
    margin: 1.5rem 0 1rem !important;
  }

  .page-link {
    min-width: 34px;
    height: 34px;
    font-size: 0.825rem;
    padding: 0 7px;
  }

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


aside.sidebar {
  padding-top: 1.25rem;
}

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


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

#productTabs {
  border-bottom: 2px solid #dee2e6;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#productTabs .nav-link {
  color: var(--gray) !important;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 10px 20px;
  margin-bottom: -2px;
  white-space: nowrap;
  background: none;
  transition: color 0.15s, border-color 0.15s;
}

#productTabs .nav-link:hover {
  color: var(--dark) !important;
  border-bottom-color: #ccc;
}

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

.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 #dee2e6;
  color: var(--dark);
}

/* Preserve navbar nav-link styles after tab overrides */
.navbar-main .nav-link {
  color: var(--dark) !important;
  background: none;
}

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

.navbar-main .nav-link.dropdown-toggle:focus,
.navbar-main .nav-link.dropdown-toggle:focus-visible,
.navbar-main .nav-link.show {
  outline: none;
  box-shadow: none;
  border-color: transparent;
  background: none;
}

.navbar-main .dropdown-toggle::after {
  display: inline-block;
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  margin-left: 6px;
  vertical-align: 4px;
}


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

/* Warning bar */
#warningBar {
  background: #ffd700;
  color: #1a1a1a;
  font-size: 0.9rem;
  position: relative;
  text-align: center;
  padding: 0.6rem 3rem 0.6rem 1rem;
}
#warningBar strong { color: #000; }
#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: #1a1a1a;
  padding: 0;
}
#warningBar button:hover {
  background-color: rgba(0,0,0,0.12);
  border-color: rgba(0,0,0,0.7);
}

/* ==========================================================================
   28. Homepage
   ========================================================================== */

.bb-divider {
  height: 1px;
  background: linear-gradient(to right, var(--link) 0%, var(--link) 30%, var(--accent) 30%, var(--accent) 100%);
  margin: 0 0 28px 0;
}

.site-main {
  padding-top: 24px;
  padding-bottom: 48px;
}

.bb-intro-heading {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 26.4px;
  color: var(--dark);
  margin-bottom: 10px;
}

h1.bb-intro-heading {
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1.2;
}

.bb-intro p,
.bb-text-section p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 1rem;
}

.bb-intro a {
  color: var(--link);
}

/* Category product section */
.bb-cat-section {
  padding: 36px 0;
}

.bb-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.bb-section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 26.4px;
  color: var(--dark);
  margin: 0;
}

.bb-nav-arrows {
  display: flex;
  gap: 4px;
}

.bb-nav-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #ccc;
  border-radius: 2px;
  color: var(--text-muted);
  font-size: 1.3rem;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.bb-nav-arrow:hover {
  background: #f0f0f0;
  color: var(--text-dark);
}

/* Category image placeholder */
.bb-cat-image-link {
  display: block;
  text-decoration: none;
  height: 100%;
}

.bb-cat-image {
  background: linear-gradient(160deg, #1c1c1c 0%, #3e3e3e 100%);
  height: 100%;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 14px 22% 14px;
}

.bb-cat-image--photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bb-cat-image-label {
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* Product card */
.bb-product-card {
  background: #fff;
  position: relative;
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: 14px;
  line-height: 22px;
  color: var(--dark);
  font-family: 'Open Sans', sans-serif;
  border: 1px solid #fafafa;
}

.bb-product-img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: #fff;
  display: block;
}

.bb-product-body {
  padding: 14px 0 12px;
}

.bb-product-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
  min-height: 2.4em;
}

.bb-product-title a {
  color: var(--dark);
  text-decoration: none;
}

.bb-product-title a:hover {
  color: var(--accent);
}

.bb-product-price {
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.bb-add-to-cart {
  background: var(--btn-bg);
  border: 1px solid var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  text-align: center;
}

.bb-add-to-cart:hover:not(:disabled) {
  background: var(--btn-bg-hover);
  border-color: var(--accent-dark);
  color: #fff;
}

.bb-add-to-cart:disabled {
  background: #aaa;
  border: 1px solid #888;
  cursor: not-allowed;
  color: #fff;
}

.bb-add-to-cart--product {
  font-size: 1rem;
  padding: 14px 40px;
}

@media (max-width: 991px) {
  .bb-cat-image {
    height: 160px;
  }
  .bb-product-img {
    height: 150px;
  }
}

/* Popular Product Categories */
.bb-popcat-link {
  display: block;
  text-decoration: none;
}

.bb-popcat-item {
  background-size: cover;
  background-position: center;
  min-height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bb-popcat-item--tall {
  height: 100%;
  min-height: 560px;
}

.bb-popcat-label {
  display: inline-block;
  background: var(--accent);
  opacity: 0.7;
  padding: 16px 40px;
  text-align: center;
  color: #fff;
  font-size: 14px;
  line-height: 21px;
  transition: opacity 0.3s ease-in-out;
}

.bb-popcat-name {
  display: block;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
}

.bb-popcat-count {
  display: block;
  font-weight: 400;
  margin-top: 3px;
}

/* ── CTA / questions section ── */
.bb-cta-heading {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.bb-cta-subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.bb-cta-body {
  font-size: 0.9rem;
  color: var(--text-body);
  margin-bottom: 28px;
}

.bb-cta-question {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  text-align: center;
  color: var(--link);
  margin-bottom: 8px;
  margin-top: 28px;
}

.bb-cta-answer {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-body);
  margin-bottom: 0;
}

.bb-cta-answer a {
  color: var(--link);
}

.bb-cta-footer {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-body);
  margin-top: 28px;
  margin-bottom: 0;
}

/* ── Articles grid ── */
.bb-article-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bb-article-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.bb-article-card--noimg {
  background: #f5f5f5;
}

.bb-article-body {
  padding: 14px 0;
  flex: 1;
}

.bb-article-card--noimg .bb-article-body {
  padding: 20px 16px;
}

.bb-article-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.bb-article-link:hover .bb-article-title {
  color: var(--accent);
}

.bb-article-cat {
  display: block;
  font-size: 0.8rem;
  color: var(--link);
  margin-bottom: 6px;
  font-family: 'Open Sans', sans-serif;
}

.bb-article-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 10px;
}
.bb-article-title a {
  color: inherit;
  text-decoration: none;
}
.bb-article-title a:hover {
  color: var(--accent);
}

.bb-article-title--blue {
  color: #4a89dc;
}

.bb-article-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.bb-article-content img,
.bb-article-content figure {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}
.bb-article-content .wp-caption {
  text-align: center;
}

/* ── Hero banner ── */
.bb-hero-banner {
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding-top: 80px;
  padding-bottom: 80px;
}

.bb-hero-band {
  padding: 0;
}

.bb-hero-box {
  background: rgba(0, 0, 0, 0.55);
  padding: 36px 40px;
}

.bb-hero-text {
  color: #fff;
  text-align: center;
  font-size: 1.9rem;
  line-height: 1.6;
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.bb-hero-middle {
  padding: 130px 0;
  text-align: center;
}

.bb-hero-link {
  color: #5b9bd5;
  font-size: 2.3rem;
  font-weight: 700;
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
}

.bb-hero-link:hover {
  color: #7ab2e4;
  text-decoration: underline;
}

.bb-hero-btn {
  background: var(--accent);
  color: #fff;
  padding: 11px 36px;
  font-size: 1rem;
  border-radius: 3px;
  font-family: 'Open Sans', sans-serif;
}

.bb-hero-btn:hover {
  background: var(--accent-dark);
  color: #fff;
}

@media (max-width: 767px) {
  .bb-hero-text { font-size: 1.2rem; }
  .bb-hero-link { font-size: 1.5rem; }
  .bb-hero-middle { padding: 40px 0; }
}

/* ── Product carousel layout ── */
.bb-products-layout {
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.bb-products-layout--reverse {
  flex-direction: row-reverse;
}

.bb-cat-col {
  flex: 0 0 20%;
  max-width: 20%;
}

.bb-cat-col .bb-cat-image-link {
  display: block;
  height: 100%;
}

.bb-cat-col .bb-cat-image {
  height: 100%;
  min-height: 280px;
}

.bb-carousel-outer {
  flex: 1;
  min-width: 0;
}

.bb-carousel-wrapper {
  overflow: hidden;
}

.bb-carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.35s ease;
  will-change: transform;
}

.bb-carousel-item {
  flex: 0 0 calc(25% - 12px);
  min-width: 0;
}

@media (max-width: 991px) {
  .bb-cat-col {
    display: none;
  }
  .bb-carousel-item {
    flex: 0 0 calc(50% - 8px);
  }
}

@media (max-width: 575px) {
  .bb-carousel-item {
    flex: 0 0 calc(50% - 8px);
  }
}

/* ── 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-family: 'Open Sans', sans-serif;
  font-size: 13px;
  color: var(--dark);
  text-decoration: none;
  white-space: nowrap;
}
.bb-tab-link:hover {
  color: var(--accent);
}
.bb-tab-link.active {
  color: var(--accent);
  font-weight: 600;
}
.bb-tab-panel {
  display: none;
}
.bb-tab-panel.active {
  display: block;
}
@media (min-width: 992px) {
  .bb-tabs-section > .container {
    display: grid;
    grid-template-columns: 1fr auto;
  }
  .bb-tabs-section .bb-section-header {
    grid-column: 1;
    grid-row: 1;
  }
  .bb-tabs-section .bb-tab-nav {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    margin-bottom: 6px;
  }
  .bb-tabs-section .bb-divider {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .bb-tabs-section .bb-tab-panel {
    grid-column: 1 / -1;
  }
}

.about-cat-link {
  color: var(--link);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}

.about-cat-link:hover {
  color: var(--link-dark);
}

.about-page p,
.about-page li {
  font-size: 0.875rem;
  line-height: 1.7;
}

.about-page h2 {
  margin-top: 3.5rem;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.bb-sidebar {
  padding-top: 0;
}

.bb-sidebar-widget {
  margin-bottom: 2rem;
}


.bb-sidebar-catlist,
.bb-sidebar-postlist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bb-sidebar-catlist li,
.bb-sidebar-postlist li {
  padding: 0.35rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.875rem;
  line-height: 1.4;
}

.bb-sidebar-catlist a,
.bb-sidebar-postlist a {
  color: var(--dark);
  text-decoration: none;
}

.bb-sidebar-catlist a:hover,
.bb-sidebar-postlist a:hover {
  color: var(--link);
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.bb-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.bb-contact-col-heading {
  color: var(--link);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
}

.bb-contact-col-heading a {
  color: var(--link);
  text-decoration: none;
}

.bb-contact-col-heading a:hover {
  color: var(--link-dark);
}

.bb-contact-sublabel {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.bb-contact-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

.bb-contact-cta {
  background: var(--surface);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.bb-contact-cta-heading {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (max-width: 576px) {
  .bb-contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Article inline product cards */
.bb-article-products {
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
  padding: 1rem 0;
}

.bb-article-product-card {
  transition: opacity 0.15s;
}

.bb-article-product-card:hover {
  opacity: 0.8;
}

.bb-article-product-img {
  max-height: 120px;
  object-fit: contain;
}

/* ==========================================================================
   Product Description Content
   ========================================================================== */

.bb-product-desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-body);
}

.bb-product-desc h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--dark);
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--accent);
}

.bb-product-desc h2:first-child {
  margin-top: 0.5rem;
}

.bb-product-desc h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--dark);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #e9ecef;
}

.bb-product-desc h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bb-product-desc p {
  margin-bottom: 1rem;
}

.bb-product-desc ul,
.bb-product-desc ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.bb-product-desc li {
  margin-bottom: 0.35rem;
}

.bb-product-desc a {
  color: var(--link);
  text-decoration: none;
}

.bb-product-desc a:hover {
  color: var(--link-dark);
  text-decoration: underline;
}

.bb-product-desc img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 0.75rem 0;
  display: block;
}

.bb-product-desc table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.bb-product-desc table th,
.bb-product-desc table td {
  padding: 0.5rem 0.75rem;
  border: 1px solid #dee2e6;
  vertical-align: top;
}

.bb-product-desc table th {
  background: var(--light);
  font-weight: 700;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.03em;
}

.bb-product-desc blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.25rem 0;
  padding: 0.6rem 1rem;
  background: var(--light-accent);
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Trust badges — product page */
/* Price block — product detail page only */
.bb-detail-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin: 36px 0 40px;
}
.bb-price-current {
  font-family: 'Oswald', sans-serif;
  font-size: 3.4rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}
.bb-price-old {
  font-size: 1.2rem;
  color: #aaa;
  text-decoration: line-through;
}
.bb-price-discount {
  font-size: 0.85rem;
  font-weight: 700;
  color: #2e7d32;
  background: #e8f5e9;
  border-radius: 4px;
  padding: 2px 7px;
}

/* Trust badges — 2×2 grid */
.bb-trust-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0 4px;
}
.bb-trust-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 600;
}
.bb-trust-badge:nth-child(1) { background: #e8f4fd; color: #1a73c4; }
.bb-trust-badge:nth-child(1) i { color: #1a73c4; }
.bb-trust-badge:nth-child(2) { background: #e8f5e9; color: #2e7d32; }
.bb-trust-badge:nth-child(2) i { color: #2e7d32; }
.bb-trust-badge:nth-child(3) { background: #f3e5f5; color: #7b1fa2; }
.bb-trust-badge:nth-child(3) i { color: #7b1fa2; }
.bb-trust-badge:nth-child(4) { background: #fff3e0; color: #e65100; }
.bb-trust-badge:nth-child(4) i { color: #e65100; }
.bb-trust-badge i {
  font-size: 1rem;
  flex-shrink: 0;
}

/* Product detail — center on mobile */
@media (max-width: 991px) {
  .col-lg-6 h1.fw-bold,
  .col-lg-6 .lead {
    text-align: center;
  }
  .col-lg-6 .d-flex.align-items-center {
    justify-content: center;
  }
  .col-lg-6 .bb-detail-price {
    justify-content: center;
  }
  .col-lg-6 .mb-4 {
    text-align: center;
  }
  .col-lg-6 .bb-trust-badges {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .col-lg-6 .small {
    text-align: center;
  }
}
