/*
Theme Name: Gerrards Theme
Description: Custom WordPress theme for Gerrards Bullion
Version: 1.3.8
Author: GDLife
Text Domain: gerrards-theme
*/

/* Design Tokens */
:root {
  --gb-navy: #16284f;
  --gb-navy-light: #41547b;
  --gb-gold: #c9a962;
  --gb-text: #191919;
  --gb-gray: #f0f0f0;
  --gb-white: #ffffff;
  --gb-border: #e0e0e0;

  /* Font System - Change these to swap site-wide */
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Lato', sans-serif;

  /* Usage tokens - map to primary/secondary */
  --font-body: var(--font-primary);
  --font-heading: var(--font-primary);

  /* Layout */
  --content-max-width: 1600px;
}

/* ===== UTILITY CLASSES ===== */
.content-width {
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gb-text);
  background: var(--gb-white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 0 0 1rem;
}

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

a:hover {
  color: var(--gb-gold);
}

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

/* ===== PRICES BAR ===== */
body .prices-bar {
  background: #f5f5f5 !important;
  border-bottom: 1px solid #e0e0e0 !important;
  padding: 5px 3px !important;
  text-align: center !important;
  /* Sticky positioning */
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
}

body .prices-bar-inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.25rem !important;
  max-width: 1600px !important;
  margin: 0 auto !important;
}

body .prices-bar .price-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
}

body .prices-bar .metal-label {
  color: var(--gb-navy) !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.5px !important;
}

body .prices-bar .metal-label-short {
  display: none !important;
}

body .prices-bar .metal-price {
  color: var(--gb-gold) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
}

/* Price set containers (currency groups) */
body .prices-bar .price-set {
  display: flex !important;
  align-items: center !important;
  gap: 1.5rem !important;
}

body .prices-bar .price-set.price-set-hidden {
  display: none !important;
}

/* Currency & Unit Toggles */
body .prices-bar .price-toggles {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

body .prices-bar .toggle-group {
  display: inline-flex !important;
  gap: 2px !important;
}

body .prices-bar .toggle-btn {
  background: transparent !important;
  border: 1px solid var(--gb-gold) !important;
  color: var(--gb-gold) !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  padding: 3px 7px !important;
  border-radius: 3px !important;
  cursor: pointer !important;
  transition: background 0.15s, color 0.15s !important;
  font-family: inherit !important;
}

body .prices-bar .toggle-btn:hover {
  background: rgba(201, 169, 98, 0.15) !important;
}

body .prices-bar .toggle-btn.active {
  background: var(--gb-gold) !important;
  color: #fff !important;
}

/* ===== GLOBAL BUTTONS ===== */
/* Base .btn + .btn-primary — used across many templates (buy-gold-bullion,
   live-prices, sell-hub, services, etc.) but had no global styling until now.
   Scoped overrides (e.g. .htss-button-group .btn-primary) keep working. */

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-decoration: none;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gb-navy);
  color: var(--gb-white);
}

.btn-primary:hover {
  background: var(--gb-gold);
  color: var(--gb-navy);
}

/* ===== MAIN HEADER ===== */
body .site-header {
  background: var(--gb-white) !important;
  padding: 7px !important;
  border-bottom: none !important;
}

body .site-header .header-inner {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  max-width: 1600px !important;
  margin: 0 auto !important;
  padding: 0 2rem !important;
  gap: 1rem !important;
}

/* Left column: Logo stacked above contact */
body .site-header .header-left {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

/* Logo: Fixed size, no stretch */
body .site-header .site-logo img {
  height: 30px !important;
  width: auto !important;
  max-width: none !important;
  flex-shrink: 0 !important;
}

body .site-header .header-contact {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.15rem !important;
}

body .site-header .header-contact a {
  color: var(--gb-navy) !important;
  font-size: 0.95rem !important;
}

body .site-header .header-contact a:hover {
  color: var(--gb-gold) !important;
}

body .site-header .header-contact .contact-phone {
  font-weight: 600 !important;
  text-align: center;
  margin-bottom: -6px;
}

/* Header Search - fills middle space, FiboSearch centres within */
body .site-header .header-search {
  flex: 1 !important;
  display: flex !important;
  justify-content: center !important;
}

body .site-header .header-search .dgwt-wcas-search-wrapp {
  width: 100% !important;
  max-width: 500px !important;
}

/* Header Utility Links - Gray Box */
body .site-header .header-utility {
  display: flex !important;
  gap: 1.25rem !important;
  background: var(--gb-gray) !important;
  padding: 0.6rem 1.25rem !important;
  border-radius: 4px !important;
  flex-shrink: 0 !important;
}

body .site-header .header-utility a {
  color: var(--gb-navy) !important;
  font-size: 0.95rem !important;
  font-weight: 600;
  white-space: nowrap !important;
  padding-right: 1rem !important;
  border-right: 2px solid var(--gb-border) !important;
}

body .site-header .header-utility a:last-child {
  padding-right: 0 !important;
  border-right: none !important;
}

body .site-header .header-utility a:hover {
  color: var(--gb-gold) !important;
}

/* Mobile elements - hidden on desktop */
body .site-header .mobile-menu-toggle,
body .site-header .mobile-header {
  display: none !important;
}

/* ===== NAVIGATION BAR ===== */
body .main-nav {
  background: var(--gb-navy) !important;
  border-bottom: 2px solid var(--gb-navy) !important;
  border-top: 2px solid var(--gb-navy) !important;
}

body .main-nav .nav-inner {
  max-width: 1600px !important;
  margin: 0 auto !important;
  padding: 0 2rem !important;
}

body .main-nav .nav-menu {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  justify-content: center !important;
  gap: 0 !important;
}

body .main-nav .nav-menu > li {
  position: relative !important;
}

body .main-nav .nav-menu > li > a {
  display: block !important;
  padding: 0.5rem 1rem !important;
  color: var(--gb-white) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  transition: color 0.2s !important;
}

body .main-nav .nav-menu > li > a:hover,
body .main-nav .nav-menu > li.current-menu-item > a {
  color: var(--gb-gold) !important;
}

/* Dropdown indicator */
body .main-nav .nav-menu > li.menu-item-has-children > a::after {
  content: ' \25BC' !important;
  font-size: 0.6rem !important;
  vertical-align: middle !important;
  margin-left: 0.3rem !important;
}

/* Dropdown menus */
body .main-nav .nav-menu .sub-menu {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  background: var(--gb-white) !important;
  min-width: 200px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0.5rem 0 !important;
  z-index: 1000 !important;
}

body .main-nav .nav-menu > li:hover > .sub-menu {
  display: block !important;
}

body .main-nav .nav-menu .sub-menu li a {
  display: block !important;
  padding: 0.6rem 1.25rem !important;
  color: var(--gb-text) !important;
  font-size: 0.9rem !important;
}

body .main-nav .nav-menu .sub-menu li a:hover {
  background: var(--gb-gray) !important;
  color: var(--gb-gold) !important;
}

/* Mobile nav bar - hidden on desktop */
body .main-nav .mobile-nav-bar {
  display: none !important;
}

/* ===== TRUST BADGES BAR ===== */
body .trust-badges-bar {
  background: #f5f5f5 !important;
  border-bottom: 1px solid var(--gb-border) !important;
  padding: 0.4rem 0 !important;
  margin-bottom: 0 !important;
}

body .trust-badges-inner {
  display: flex !important;
  justify-content: space-around !important;
  align-items: center !important;
  gap: 0 !important;
  max-width: 1600px !important;
  margin: 0 auto !important;
  flex-wrap: nowrap !important;
}

body .trust-badge {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0 0.5rem !important;
  border-right: none !important;
  flex-shrink: 0 !important;
}

body .trust-badge:last-child {
  border-right: none !important;
}

body .trust-badge .badge-icon {
  width: 35px !important;
  height: 35px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
}

body .trust-badge .badge-text {
  display: flex !important;
  flex-direction: column !important;
}

body .trust-badge .badge-text strong {
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  color: var(--gb-navy) !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  margin-bottom: -5px;
}

body .trust-badge .badge-text span {
  font-size: 0.65rem !important;
  color: #666 !important;
  white-space: nowrap !important;
}

a.trust-badge-link {
  text-decoration: none !important;
  color: inherit !important;
}

a.trust-badge-link:hover .badge-text strong {
  color: var(--gb-gold) !important;
}

/* ===== TABLET / SMALL DESKTOP HEADER ===== */
@media (max-width: 1200px) {
  body .site-header .header-inner {
    padding: 0 1rem !important;
    gap: 0.5rem !important;
  }

  body .site-header .site-logo img {
    height: 24px !important;
  }

  body .site-header .header-contact a {
    font-size: 0.8rem !important;
  }

  body .site-header .header-utility {
    gap: 0.75rem !important;
    padding: 0.5rem 0.75rem !important;
  }

  body .site-header .header-utility a {
    font-size: 0.8rem !important;
    padding-right: 0.75rem !important;
  }
}

/* ===== MOBILE HEADER STYLES ===== */
@media (max-width: 900px) {
  /* Prices bar - flow layout on tablet/mobile (toggles above prices) */
  body .prices-bar-inner {
    justify-content: center !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 0.25rem !important;
    padding: 2px 0.5rem !important;
    flex-wrap: wrap !important;
  }

  body .prices-bar .price-set {
    gap: 1rem !important;
  }

  body .prices-bar .price-item {
    flex-shrink: 0 !important;
  }

  /* Hide desktop header elements */
  body .site-header .header-inner {
    display: none !important;
  }

  /* Show mobile header */
  body .site-header .mobile-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 1rem !important;
    text-align: center !important;
  }

  body .site-header .mobile-logo {
    display: block !important;
    margin-bottom: 0.75rem !important;
  }

  body .site-header .mobile-logo img {
    max-height: 50px !important;
    width: auto !important;
  }

  body .site-header .mobile-utility {
    display: flex !important;
    gap: 1.5rem !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  body .site-header .mobile-utility a {
    color: var(--gb-navy) !important;
    font-size: 0.9rem !important;
    border-bottom: 1px solid var(--gb-navy) !important;
    padding-bottom: 0.15rem !important;
  }

  body .site-header .mobile-utility a:hover {
    color: var(--gb-gold) !important;
    border-bottom-color: var(--gb-gold) !important;
  }

  /* Navigation - dropdown style */
  body .main-nav .nav-inner {
    display: none !important;
    padding: 0 !important;
  }

  body .main-nav.nav-open .nav-inner {
    display: block !important;
  }

  body .main-nav .nav-menu {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  body .main-nav .nav-menu > li > a {
    padding: 1rem 1.5rem !important;
    border-bottom: 1px solid rgba(255,255,255,0.15) !important;
  }

  body .main-nav .nav-menu .sub-menu {
    position: static !important;
    display: block !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: #1e3566 !important;
  }

  body .main-nav .nav-menu .sub-menu li a {
    color: rgba(255,255,255,0.85) !important;
  }

  body .main-nav .nav-menu .sub-menu li a {
    padding-left: 2.5rem !important;
  }

  /* Mobile nav bar with hamburger */
  body .main-nav .mobile-nav-bar {
    display: flex !important;
    justify-content: center !important;
    padding: 0.75rem !important;
  }

  body .main-nav .mobile-nav-toggle {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0.5rem !important;
  }

  body .main-nav .hamburger-icon {
    display: block !important;
    width: 24px !important;
    height: 2px !important;
    background: var(--gb-white) !important;
    position: relative !important;
  }

  body .main-nav .hamburger-icon::before,
  body .main-nav .hamburger-icon::after {
    content: '' !important;
    position: absolute !important;
    width: 24px !important;
    height: 2px !important;
    background: var(--gb-white) !important;
    left: 0 !important;
  }

  body .main-nav .hamburger-icon::before {
    top: -7px !important;
  }

  body .main-nav .hamburger-icon::after {
    top: 7px !important;
  }

  /* Trust badges - hide on mobile */
  body .trust-badges-bar {
    display: none !important;
  }
}

/* ===== MAIN CONTENT - Fluid width, cap only on very large screens ===== */
body .site-main {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 2rem 2rem 2rem !important;
}

@media (min-width: 1800px) {
  body .site-main {
    max-width: 1600px !important;
    margin: 0 auto !important;
  }
}

/* ===== PRODUCT PAGE LAYOUT ===== */
body.single-product .woocommerce-breadcrumb {
  margin-top: 0.5rem;
}

body.single-product .product-page-wrapper {
  display: grid !important;
  grid-template-columns: 280px 1fr !important;
  gap: 2rem !important;
}

@media (max-width: 900px) {
  body.single-product .product-page-wrapper {
    grid-template-columns: 1fr !important;
  }
  body.single-product .product-sidebar {
    order: 2 !important;
  }
}

/* Product Sidebar — stretch so the sticky categories menu has room to keep
   sticking past the product summary and through the description section. */
body.single-product .product-sidebar {
  align-self: stretch !important;
}

/* Product Main Content - 2 Column Grid */
body.single-product .product-content {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 2rem !important;
  align-items: start !important;
}

/* Left column wraps gallery + meta so SKU/categories/tags sit directly
   under the images on desktop. */
body.single-product .product-left {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  min-width: 0 !important;
}

@media (max-width: 768px) {
  body.single-product .product-content {
    grid-template-columns: 1fr !important;
  }
  /* Mobile: dissolve .product-left so its children become direct grid items,
     then use `order` to place meta below the summary (which contains the
     quantity breaks table). */
  body.single-product .product-left {
    display: contents !important;
  }
  body.single-product .product-gallery { order: 1 !important; }
  body.single-product .product-summary { order: 2 !important; }
  body.single-product .product-meta { order: 3 !important; }
}

/* ===== PRODUCT GALLERY - Override WooCommerce visuals only ===== */
body.single-product .product-gallery {
  position: relative !important;
  max-width: 100% !important;
}

body.single-product .woocommerce-product-gallery__image img {
  border-radius: 8px !important;
}

/* Gallery thumbnail styling */
body.single-product .flex-control-thumbs li img {
  border-radius: 4px !important;
  border: 2px solid transparent !important;
  transition: border-color 0.2s !important;
}

body.single-product .flex-control-thumbs li img:hover,
body.single-product .flex-control-thumbs li img.flex-active {
  border-color: var(--gb-gold) !important;
}

/* Product Summary */
body.single-product .product-summary {
  padding: 0 !important;
}

body.single-product .product-title {
  font-size: 1.75rem !important;
  margin-bottom: 0.25rem !important;
  color: var(--gb-navy) !important;
}

/* ===== PRICE DISPLAY - Tighter spacing ===== */
body.single-product .product-price {
  margin-bottom: 0.25rem !important;
}

body.single-product .product-price .woocommerce-Price-amount,
body.single-product .product-price .amount {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: var(--gb-gold) !important;
}

body.single-product .gbpm-product-price,
body.single-product .gbpm-product-price .woocommerce-Price-amount {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: var(--gb-gold) !important;
}

/* Total price - prominent gold with subtle highlight background */
body.single-product .gbpm-total-price-container {
  display: block !important;
  margin-top: 0.5rem !important;
  margin-bottom: 0.5rem !important;
  font-size: 1rem !important;
  color: var(--gb-text) !important;
  font-weight: 600 !important;
  background: rgba(183, 151, 89, 0.08) !important;
  padding: 0.5rem 0.75rem !important;
  border-radius: 4px !important;
  border-left: 3px solid var(--gb-gold) !important;
}

/* Hide container entirely when total price is empty (qty = 1) */
body.single-product .gbpm-total-price-container:has(.gbpm-total-price:empty) {
  display: none !important;
}

body.single-product .gbpm-total-price-container .woocommerce-Price-amount,
body.single-product .gbpm-total-price-container .amount {
  font-size: 1.15rem !important;
  color: var(--gb-gold) !important;
  font-weight: 700 !important;
}

/* ===== QUANTITY BREAKS TABLE - Tighter spacing above ===== */
body.single-product .gbpm-quantity-breaks-table-container {
  margin: 0.75rem 0 1rem !important;
  width: 100% !important;
}

body.single-product .gbpm-last-update-text {
  font-size: 0.85rem !important;
  color: #666 !important;
  margin-bottom: 0.5rem !important;
}

body.single-product .gbpm-quantity-breaks-table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 0.9rem !important;
}

body.single-product .gbpm-quantity-breaks-table th,
body.single-product .gbpm-quantity-breaks-table td {
  padding: 0.75rem 1rem !important;
  text-align: left !important;
  border-bottom: 1px solid var(--gb-border) !important;
}

body.single-product .gbpm-quantity-breaks-table th {
  background: var(--gb-gray) !important;
  font-weight: 600 !important;
}

body.single-product .gbpm-quantity-breaks-table tbody tr:hover {
  background: rgba(201, 169, 98, 0.1) !important;
}

body.single-product .gbpm-quantity-breaks-table tr.current-tier,
body.single-product .gbpm-quantity-breaks-table tr.highlighted-tier {
  background: rgba(201, 169, 98, 0.2) !important;
}

body.single-product .gbpm-quantity-breaks-table tr.tube-option,
body.single-product .gbpm-quantity-breaks-table tr.monster-box-option {
  background: var(--gb-gold) !important;
  color: var(--gb-navy) !important;
  cursor: pointer !important;
}

body.single-product .gbpm-footer-row td {
  text-align: center !important;
  font-size: 0.85rem !important;
  color: #666 !important;
  padding: 1rem !important;
}

/* ===== PRODUCT BADGES - Centered, 70x70px ===== */
body.single-product .gbpm-product-badges-container {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  gap: 10px !important;
  position: relative !important;
  width: 100% !important;
  margin-bottom: -4px !important;
  z-index: 10 !important;
}

body.single-product .gbpm-product-badges-container img.gbpm-product-badge {
  width: 70px !important;
  max-width: 70px !important;
  height: 70px !important;
  max-height: 70px !important;
  display: block !important;
  flex-shrink: 0 !important;
}

/* ===== ADD TO CART - Tighter spacing ===== */
body.single-product .add-to-cart-section {
  margin: 0.75rem 0 !important;
}

body.single-product form.cart {
  display: flex !important;
  gap: 1rem !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  margin-bottom: 0.5rem !important;
}

body.single-product form.cart .quantity {
  display: flex !important;
  align-items: center !important;
}

body.single-product form.cart .quantity .qty {
  width: 70px !important;
  padding: 0.75rem !important;
  text-align: center !important;
  border: 1px solid var(--gb-border) !important;
  border-radius: 4px !important;
  font-size: 1rem !important;
}

/* Add to Cart Button - GOLD with WHITE text */
body.single-product .single_add_to_cart_button,
body.single-product button.single_add_to_cart_button,
body.single-product .button.single_add_to_cart_button,
body.single-product input.single_add_to_cart_button {
  background: var(--gb-gold) !important;
  background-color: var(--gb-gold) !important;
  color: var(--gb-white) !important;
  border: none !important;
  padding: 0.75rem 2rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

body.single-product .single_add_to_cart_button:hover,
body.single-product button.single_add_to_cart_button:hover,
body.single-product .button.single_add_to_cart_button:hover,
body.single-product input.single_add_to_cart_button:hover {
  background: #b8994f !important;
  background-color: #b8994f !important;
  color: var(--gb-white) !important;
}

/* ===== PRODUCT META ===== */
body.single-product .product-meta {
  margin-top: 1.5rem !important;
  padding-top: 1.5rem !important;
  border-top: 1px solid var(--gb-border) !important;
  font-size: 0.9rem !important;
}

body.single-product .product_meta > span {
  display: block !important;
  margin-bottom: 0.5rem !important;
}

/* ===== PRODUCT TABS ===== */
body.single-product .product-tabs-section {
  margin-top: 3rem !important;
}

body.single-product .woocommerce-tabs .tabs {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 1rem !important;
  display: flex !important;
  gap: 0 !important;
  border-bottom: 2px solid var(--gb-border) !important;
}

body.single-product .woocommerce-tabs .tabs li {
  margin: 0 !important;
}

body.single-product .woocommerce-tabs .tabs li a {
  display: block !important;
  padding: 0.75rem 1.5rem !important;
  font-weight: 500 !important;
  color: var(--gb-text) !important;
  border-bottom: 2px solid transparent !important;
  margin-bottom: -2px !important;
}

body.single-product .woocommerce-tabs .tabs li.active a {
  color: var(--gb-navy) !important;
  border-bottom-color: var(--gb-navy) !important;
}

body.single-product .woocommerce-tabs .panel {
  padding: 1.5rem 0 !important;
}

/* ===== BREADCRUMB ===== */
body.single-product .woocommerce-breadcrumb {
  font-size: 0.85rem !important;
  margin-bottom: 1.5rem !important;
  color: #666 !important;
}

body.single-product .woocommerce-breadcrumb a {
  color: var(--gb-navy) !important;
}

/* ===== REGULATORY DISCLAIMER - Global Styles ===== */
.regulatory-disclaimer {
  background: transparent;
  padding: 0.6rem 1rem;
  /* Break out of container to full width */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-top: 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--gb-border);
}

.regulatory-disclaimer .disclaimer-inner {
  max-width: 1600px;
  margin: 0 auto;
  font-size: 0.8rem;
  color: #666;
  text-align: center;
  line-height: 1.4;
}

/* ===== SIDEBAR BADGE (Royal Mint) ===== */
body.single-product .sidebar-badge {
  text-align: center !important;
  padding: 1.5rem 1rem !important;
  background: var(--gb-white) !important;
  border-radius: 8px !important;
  margin-top: 1rem !important;
}

body.single-product .sidebar-badge .royal-mint-logo {
  max-width: 120px !important;
  height: auto !important;
  margin-bottom: 0.75rem !important;
}

body.single-product .sidebar-badge .badge-label {
  margin: 0 !important;
  font-size: 0.85rem !important;
  color: var(--gb-text) !important;
  line-height: 1.4 !important;
}

body.single-product .sidebar-badge .badge-label strong {
  color: var(--gb-navy) !important;
}

/* ===== GALLERY SIZING FIX ===== */
body.single-product .product-gallery {
  width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

body.single-product .woocommerce-product-gallery {
  width: 100% !important;
  max-width: 100% !important;
}

body.single-product .flex-viewport {
  width: 100% !important;
  max-width: 100% !important;
}

body.single-product .woocommerce-product-gallery__image img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

body.single-product .flex-control-thumbs {
  margin-top: 1rem !important;
}

body.single-product .flex-control-thumbs li {
  width: 20% !important;
  padding: 0.25rem !important;
}

/* ===== RELATED PRODUCTS ===== */
body.single-product .related-products-section {
  margin-top: 3rem !important;
  padding-top: 2rem !important;
  border-top: 1px solid var(--gb-border) !important;
}

/* Fix related products layout - section wrapper must be block, not grid */
body.single-product .related-products-section section.related.products {
  display: block !important;
  width: 100% !important;
  clear: both !important;
}

body.single-product .related-products-section section.related.products > h2 {
  font-size: 1.5rem !important;
  color: var(--gb-navy) !important;
  margin-bottom: 1.5rem !important;
  display: block !important;
  width: 100% !important;
}

/* Only the ul.products should be a grid - not the section.products wrapper */
body.single-product .related-products-section ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.5rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

/* Hide WooCommerce ::before pseudo-element that takes up a grid cell */
body.single-product .related-products-section ul.products::before {
  display: none !important;
  content: none !important;
}

body.single-product .related-products-section ul.products li.product {
  text-align: center !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

body.single-product .related-products-section ul.products li.product a {
  display: block !important;
  width: 100% !important;
}

body.single-product .related-products-section ul.products li.product img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: 8px !important;
  margin-bottom: 0.75rem !important;
}

body.single-product .related-products-section ul.products li.product .woocommerce-loop-product__title {
  font-size: 0.95rem !important;
  color: var(--gb-navy) !important;
  margin-bottom: 0.5rem !important;
}

body.single-product .related-products-section ul.products li.product .price {
  color: var(--gb-gold) !important;
  font-weight: 600 !important;
}

/* Hide add to cart buttons on related products */
body.single-product .related-products-section ul.products li.product .button {
  display: none !important;
}

@media (max-width: 900px) {
  body.single-product .related-products-section ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 500px) {
  body.single-product .related-products-section ul.products {
    grid-template-columns: 1fr !important;
  }
}

/* ===== DEFAULT PAGE TEMPLATE ===== */
.page-wrapper {
  padding: 2rem 0 4rem;
}

.page-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gb-navy);
  margin-bottom: 2rem;
}

.page-content {
  line-height: 1.7;
}

/* ===== FOOTER ===== */
body .site-footer {
  background: var(--gb-navy) !important;
  color: var(--gb-white) !important;
  margin-top: 0 !important;
}

body .site-footer .footer-inner {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 2rem !important;
  max-width: 1600px !important;
  margin: 0 auto !important;
  padding: 3rem 2rem !important;
}

body .site-footer .footer-col h4 {
  color: var(--gb-white) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  margin-bottom: 1rem !important;
  text-transform: none !important;
}

body .site-footer .footer-col h4.footer-subheading {
  margin-top: 1.5rem !important;
}

body .site-footer .footer-col p,
body .site-footer .footer-col address {
  font-size: 0.85rem !important;
  line-height: 1.6 !important;
  margin-bottom: 1rem !important;
  font-style: normal !important;
  color: rgba(255,255,255,0.85) !important;
}

body .site-footer .footer-lbma-logo {
  margin: 1rem 0 !important;
}

body .site-footer .footer-lbma-logo img {
  max-width: 150px !important;
  height: auto !important;
}

body .site-footer .footer-reg {
  font-size: 0.8rem !important;
  color: rgba(255,255,255,0.7) !important;
}

/* Footer menus */
body .site-footer .footer-menu {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body .site-footer .footer-menu li {
  margin-bottom: 0.5rem !important;
}

body .site-footer .footer-menu a {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.85rem !important;
  transition: color 0.2s !important;
}

body .site-footer .footer-menu a:hover {
  color: var(--gb-gold) !important;
}

/* Footer contact info */
body .site-footer .footer-phone a,
body .site-footer .footer-email a {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.85rem !important;
}

body .site-footer .footer-phone a:hover,
body .site-footer .footer-email a:hover {
  color: var(--gb-gold) !important;
}

/* Footer copyright */
body .site-footer .footer-copyright {
  border-top: 1px solid rgba(255,255,255,0.15) !important;
  padding: 1.5rem 2rem !important;
  text-align: center !important;
}

body .site-footer .footer-copyright p {
  margin: 0 !important;
  font-size: 0.8rem !important;
  color: rgba(255,255,255,0.7) !important;
}

/* Footer responsive */
@media (max-width: 900px) {
  body .site-footer .footer-inner {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  body .site-footer .footer-inner {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }

  body .site-footer .footer-col {
    padding-bottom: 1.5rem !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
  }

  body .site-footer .footer-col:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }
}

/* ===== CATEGORY MENU (sidebar) ===== */
body .gerrards-category-menu {
  margin-bottom: 1.5rem !important;
}

body .gerrards-category-menu ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body .gerrards-category-menu li {
  margin-bottom: 0.25rem !important;
}

body .gerrards-category-menu a {
  display: block !important;
  padding: 0.5rem !important;
  border-radius: 4px !important;
  transition: background 0.2s !important;
  font-size: 0.9rem !important;
}

body .gerrards-category-menu .category-submenu a:hover {
  background: rgba(0,0,0,0.05) !important;
}

/* ===== LPPM & AFFILIATE MEMBERSHIP (homepage, below articles) ===== */
.home-affiliations {
  background: #f8f8f8;
  padding: 2.5rem 2rem;
  text-align: center;
}

.home-affiliations-inner p {
  font-size: 0.95rem;
  color: #555;
  margin: 0 0 1.25rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.affiliation-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
}

.affiliation-logos img {
  max-height: 45px;
  width: auto;
  opacity: 0.75;
}

@media (max-width: 768px) {
  .affiliation-logos {
    gap: 1.5rem;
  }

  .affiliation-logos img {
    max-height: 35px;
  }
}

/* ===== SMALL MOBILE: ABBREVIATED PRICE LABELS ===== */
@media (max-width: 600px) {
  body .prices-bar .metal-label-full {
    display: none !important;
  }

  body .prices-bar .metal-label-short {
    display: inline !important;
  }

  body .prices-bar-inner {
    flex-wrap: wrap !important;
    gap: 0.25rem !important;
  }

  body .prices-bar .price-set {
    gap: 0.6rem !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body .prices-bar .toggle-group {
    gap: 4px !important;
  }

  body .prices-bar .toggle-btn {
    padding: 7px 12px !important;
    font-size: 0.8rem !important;
    min-width: 34px !important;
  }
}

/* ===== VERIFICATION SUBMITTED — public return page (gerrards-idscan, GDL-241) ===== */
.gerrards-idscan-return {
  max-width: 640px;
  margin: 2.5rem auto;
  padding: 2rem 1.5rem;
  text-align: center;
}
.gerrards-idscan-return__title {
  color: var(--gb-navy);
  margin: 0 0 1rem;
}
.gerrards-idscan-return__lead {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}
.gerrards-idscan-return__hint {
  color: #555;
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
}
.gerrards-idscan-return__actions { margin: 1.5rem 0 0; }
