/*
 Theme Name:   Route62.Online
 Theme URI:    https://route62.online
 Description:  Route62.Online Child Theme for Shoptimizer
 Author:       Route62.Online
 Author URI:   https://route62.online
 Template:     shoptimizer
 Version:      1.0.1
 Text Domain:  route62
*/

/* ============================================================
   SECTION 1: BRAND COLOUR VARIABLES
   Source: Extracted directly from Route62.Online logo assets
   ============================================================ */

:root {
  /* Core brand colours — from logo */
  --r62-rust:       #C4521A;   /* "ROUTE 62" lettering — primary CTA colour */
  --r62-sage:       #6B7F5E;   /* Heart illustration — secondary accent */
  --r62-dark:       #1A0E08;   /* Deep dark — body text, nav links, headings */
  --r62-light:      #FAF6F0;   /* Warm white — page background, header, card bg */

  /* Derived supporting palette */
  --r62-rust-hover: #A3420E;   /* Darkened rust for button hover states */
  --r62-rust-light: #F0D5C4;   /* Very light rust for sale badges, highlights */
  --r62-sage-dark:  #4E5E46;   /* Darker sage for hover, verified vendor tick */
  --r62-sage-light: #D4DDCF;   /* Light sage for category tag backgrounds */
  --r62-sand:       #C8955A;   /* Warm sandstone — vendor name, subtext accents */
  --r62-clay:       #E8DDD0;   /* Borders, dividers, input field backgrounds */
  --r62-mid:        #7A6055;   /* Mid-tone for secondary body text */

  /* Semantic / functional aliases */
  --r62-primary:    var(--r62-rust);
  --r62-secondary:  var(--r62-sage);
  --r62-text:       var(--r62-dark);
  --r62-bg:         var(--r62-light);
  --r62-border:     var(--r62-clay);
  --r62-success:    var(--r62-sage-dark);
  --r62-warning:    #D4860A;
  --r62-error:      #C0392B;

  /* Typography scale — mobile first */
  --r62-font-heading: 'Playfair Display', Georgia, serif;
  --r62-font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --r62-text-xs:    13px;
  --r62-text-sm:    15px;
  --r62-text-base:  16px;
  --r62-text-lg:    18px;
  --r62-text-xl:    22px;
  --r62-text-2xl:   28px;
  --r62-text-3xl:   34px;

  /* Spacing */
  --r62-radius:     8px;
  --r62-radius-lg:  14px;
  --r62-shadow:     0 2px 8px rgba(26,14,8,0.10);
  --r62-shadow-lg:  0 4px 20px rgba(26,14,8,0.15);
}


/* ============================================================
   SECTION 2: GOOGLE FONTS
   Loaded via wp_enqueue_style in inc/branding.php with preconnect
   hints. This is faster than @import because the browser can
   discover and fetch the font stylesheet in parallel with style.css
   rather than waiting for style.css to finish parsing first.
   ============================================================ */


/* ============================================================
   SECTION 3: BASE TYPOGRAPHY
   ============================================================ */

body {
  font-family: var(--r62-font-body);
  font-size: var(--r62-text-base);
  color: var(--r62-text);
  background-color: var(--r62-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--r62-font-heading);
  color: var(--r62-dark);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: var(--r62-text-2xl); }
h2 { font-size: var(--r62-text-xl); }
h3 { font-size: var(--r62-text-lg); }
h4 { font-size: var(--r62-text-base); }

p {
  font-size: var(--r62-text-base);
  line-height: 1.6;
  color: var(--r62-text);
}

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

a:hover {
  color: var(--r62-rust-hover);
  text-decoration: underline;
}

small, .small-text {
  font-size: var(--r62-text-xs);
  line-height: 1.5;
}


/* ============================================================
   SECTION 4: SHOPTIMIZER COLOUR OVERRIDES
   Maps brand variables to Shoptimizer's CSS selectors
   Note: Base colours now set via Customizer (route62-export.dat)
   ============================================================ */

/* --- Primary buttons (Add to Cart, Checkout, etc.) --- */
.button,
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce .button.alt,
.comgurus-stickybar__button,
.single_add_to_cart_button {
  background-color: var(--r62-rust) !important;
  color: var(--r62-light) !important;
  border-color: var(--r62-rust) !important;
  font-family: var(--r62-font-body);
  font-size: var(--r62-text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--r62-radius);
  padding: 14px 24px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .button.alt:hover,
.single_add_to_cart_button:hover {
  background-color: var(--r62-rust-hover) !important;
  border-color: var(--r62-rust-hover) !important;
  transform: translateY(-1px);
}

/* Active/press state */
.button:active,
.single_add_to_cart_button:active {
  transform: translateY(0);
}

/* --- Secondary / outline buttons --- */
.button.secondary,
.woocommerce .button.secondary,
.woocommerce a.button.outlined {
  background-color: transparent !important;
  color: var(--r62-rust) !important;
  border: 2px solid var(--r62-rust) !important;
}

.button.secondary:hover {
  background-color: var(--r62-rust) !important;
  color: var(--r62-light) !important;
}

/* --- Site header background & shadow (no border — border is on inner rows) --- */
.site-header,
#masthead,
.comgurus-header {
  background-color: var(--r62-light) !important;
  border-bottom: none !important;
  box-shadow: 0 2px 8px rgba(196,82,26,0.08);
}

/* 3px dashed sage — full-width separator below logo row.
   Uses ::after with 100vw to break out of col-full's max-width container. */
#masthead .col-full,
.site-header .col-full,
.comgurus-header .col-full {
  position: relative;
  border-bottom: none;
}

#masthead .col-full::after,
.site-header .col-full::after,
.comgurus-header .col-full::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  border-bottom: 3px dashed var(--r62-sage);
  pointer-events: none;
}

.site-header a,
#masthead a,
.site-header .site-title a {
  color: var(--r62-dark) !important;
}

.site-header a:hover {
  color: var(--r62-rust) !important;
}

/* --- Logo: mobile fallback (centred) — overridden on desktop in Section 10 --- */
.site-header .site-branding,
#masthead .site-branding,
.site-header .shoptimizer-logo-mark,
.shoptimizer-logo-mark,
.site-header .site-logo,
#masthead .site-logo {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  margin: 0 auto !important;
}

.site-header .site-title,
#masthead .site-title,
.site-header .custom-logo-link,
#masthead .custom-logo-link {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.site-header .custom-logo,
#masthead .custom-logo,
.custom-logo {
  margin: 0 auto !important;
}

/* Site description (tagline) hidden globally — shown on desktop only in Section 10 */
.site-description {
  display: none;
}

/* --- Navigation background (all wrappers) --- */
#site-navigation,
#shoptimizer-navigation,
.shoptimizer-primary-navigation,
.navigation-wrapper,
.header-navigation,
.nav-wrapper,
.main-navigation,
.primary-navigation,
nav.main-navigation,
header nav,
.site-header nav,
#masthead nav {
  background-color: var(--r62-light) !important;
}

/* --- Nav bottom border — desktop only (width override breaks Shoptimizer's mobile
   off-screen hiding which uses a fixed pixel offset, not a percentage) --- */
@media (min-width: 992px) {
  .col-full-nav {
    border-bottom: 2px dashed var(--r62-sage) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}


/* Primary nav links — dark text on light background */
#site-navigation a,
#shoptimizer-navigation a,
.shoptimizer-primary-navigation a,
.navigation-wrapper a,
.main-navigation a,
.primary-navigation a {
  color: var(--r62-dark) !important;
  font-family: var(--r62-font-body) !important;
  font-size: var(--r62-text-sm) !important;
  font-weight: 500 !important;
}

/* Active + hover states */
#site-navigation a:hover,
#shoptimizer-navigation a:hover,
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .current-menu-ancestor > a {
  color: var(--r62-rust) !important;
}

/* Active page underline indicator */
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  border-bottom: 2px solid var(--r62-rust) !important;
}

/* --- Top utility / secondary nav bar --- */
.shoptimizer-header-top,
.header-top,
.secondary-navigation,
.top-navigation,
.comgurus-header-top,
#secondary-navigation {
  background-color: var(--r62-clay) !important;
  border-bottom: 1px solid rgba(196,82,26,0.15) !important;
}

.shoptimizer-header-top a,
.header-top a,
.secondary-navigation a,
.top-navigation a,
.comgurus-header-top a,
#secondary-navigation a {
  color: var(--r62-dark) !important;
  font-family: var(--r62-font-body) !important;
  font-size: var(--r62-text-xs) !important;
  font-weight: 500 !important;
}

.shoptimizer-header-top a:hover,
.header-top a:hover,
.secondary-navigation a:hover,
.comgurus-header-top a:hover {
  color: var(--r62-rust) !important;
}

/* Dropdown menus — keep dark for strong contrast when open */
.main-navigation .sub-menu,
#site-navigation .sub-menu {
  background-color: var(--r62-dark) !important;
  border-top: 2px solid var(--r62-rust) !important;
  box-shadow: var(--r62-shadow-lg) !important;
}

.main-navigation .sub-menu a,
#site-navigation .sub-menu a {
  color: var(--r62-light) !important;
  border-bottom: 1px solid rgba(232,221,208,0.1) !important;
}

.main-navigation .sub-menu a:hover,
#site-navigation .sub-menu a:hover {
  color: var(--r62-sand) !important;
  background-color: rgba(196,82,26,0.2) !important;
}

/* --- Promo / announcement bar (CommerceKit) --- */
.comgurus-promo-bar,
.ck-promo-bar {
  background-color: var(--r62-rust);
  color: var(--r62-light);
  font-family: var(--r62-font-body);
  font-size: var(--r62-text-xs);
  font-weight: 500;
}

/* --- Product cards --- */
.product,
.woocommerce ul.products li.product {
  background: #fff;
  border: 1px solid var(--r62-clay);
  border-radius: var(--r62-radius-lg);
  overflow: hidden;
  box-shadow: var(--r62-shadow);
  transition: box-shadow 0.2s ease;
}

.product:hover,
.woocommerce ul.products li.product:hover {
  box-shadow: var(--r62-shadow-lg);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--r62-font-body);
  font-size: var(--r62-text-sm);
  font-weight: 500;
  color: var(--r62-dark);
  line-height: 1.4;
}

.woocommerce ul.products li.product .price {
  font-family: var(--r62-font-heading);
  font-size: var(--r62-text-lg);
  color: var(--r62-rust);
  font-weight: 700;
}

.woocommerce ul.products li.product .price del {
  color: var(--r62-mid);
  font-size: var(--r62-text-sm);
}

/* --- Sale / badge labels --- */
.onsale,
.woocommerce span.onsale {
  background-color: var(--r62-sage);
  color: var(--r62-light);
  border-radius: 4px;
  font-size: var(--r62-text-xs);
  font-weight: 600;
  font-family: var(--r62-font-body);
}

/* --- Star ratings --- */
.star-rating span::before,
.woocommerce .star-rating span::before {
  color: var(--r62-rust);
}

/* --- Sticky product bar (Shoptimizer feature) --- */
.comgurus-stickybar {
  background-color: var(--r62-light);
  border-top: 3px solid var(--r62-rust);
  border-bottom: 1px solid var(--r62-clay);
  box-shadow: 0 -2px 12px rgba(26,14,8,0.08);
}

.comgurus-stickybar .comgurus-stickybar__title {
  color: var(--r62-dark);
  font-family: var(--r62-font-body);
  font-weight: 500;
}

.comgurus-stickybar .price {
  color: var(--r62-rust);
  font-family: var(--r62-font-heading);
  font-weight: 700;
}

/* --- Trust badges area (below Add to Cart) --- */
.comgurus-trust-badges,
.ck-trust-badges {
  border-top: 1px solid var(--r62-clay);
  padding-top: 12px;
  margin-top: 16px;
}

.comgurus-trust-badges img {
  filter: saturate(0.7) sepia(0.2);
  opacity: 0.85;
}

/* --- Breadcrumbs --- */
.woocommerce-breadcrumb {
  font-family: var(--r62-font-body);
  font-size: var(--r62-text-xs);
  color: var(--r62-mid);
}

.woocommerce-breadcrumb a {
  color: var(--r62-rust);
}

/* --- Product tabs --- */
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-family: var(--r62-font-body);
  font-size: var(--r62-text-sm);
  color: var(--r62-mid);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  color: var(--r62-rust);
  border-color: var(--r62-rust);
}

/* --- Input fields --- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select {
  border: 1.5px solid var(--r62-clay);
  border-radius: var(--r62-radius);
  background-color: #fff;
  color: var(--r62-dark);
  font-family: var(--r62-font-body);
  font-size: var(--r62-text-base);
  padding: 12px 14px;
  transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
  border-color: var(--r62-rust);
  outline: none;
  box-shadow: 0 0 0 3px rgba(196,82,26,0.12);
}

/* --- Checkout page --- */
.woocommerce-checkout .woocommerce-checkout-payment {
  background-color: var(--r62-light);
  border: 1px solid var(--r62-clay);
  border-radius: var(--r62-radius-lg);
}

#place_order {
  background-color: var(--r62-rust) !important;
  font-size: var(--r62-text-lg);
  padding: 18px;
  width: 100%;
  border-radius: var(--r62-radius);
}

/* --- Escrow / trust notice on checkout --- */
.r62-escrow-notice {
  background-color: var(--r62-sage-light);
  border-left: 4px solid var(--r62-sage-dark);
  border-radius: var(--r62-radius);
  padding: 12px 16px;
  margin: 16px 0;
  font-size: var(--r62-text-sm);
  color: var(--r62-sage-dark);
  font-weight: 500;
}

/* --- Footer widget area --- */
.site-footer,
#colophon,
footer.site-footer,
.footer-widgets,
.shoptimizer-footer-widgets,
.comgurus-footer-widgets {
  background-color: var(--r62-clay) !important;
  color: var(--r62-dark) !important;
  border-top: 2px dashed var(--r62-sage) !important;
}

.site-footer a,
#colophon a {
  color: var(--r62-rust) !important;
}

.site-footer a:hover,
#colophon a:hover {
  color: var(--r62-rust-hover) !important;
  text-decoration: underline;
}

.site-footer p,
.site-footer li,
#colophon p,
#colophon li {
  color: var(--r62-dark) !important;
}

.site-footer h3,
.site-footer h4,
.site-footer .widget-title,
#colophon .widget-title {
  color: var(--r62-dark) !important;
  font-size: var(--r62-text-sm) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  font-family: var(--r62-font-body) !important;
  border-bottom: 1px solid rgba(196,82,26,0.25);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

/* --- Copyright / bottom bar --- */
.site-info,
#colophon .site-info,
footer .site-info,
.footer-bottom,
.footer-credit,
.shoptimizer-footer-bottom,
.comgurus-footer-bottom,
.copyright-bar,
div.site-info {
  background-color: var(--r62-rust) !important;
  color: var(--r62-light) !important;
  font-family: var(--r62-font-body) !important;
  font-size: var(--r62-text-xs) !important;
  padding: 12px 20px !important;
  text-align: center !important;
  border-top: none !important;
}

.site-info a,
#colophon .site-info a,
footer .site-info a,
.footer-credit a,
.shoptimizer-footer-bottom a,
div.site-info a {
  color: var(--r62-light) !important;
  text-decoration: underline;
  opacity: 0.9;
}

.site-info a:hover,
#colophon .site-info a:hover {
  opacity: 1;
}


/* ============================================================
   SECTION 5: MOBILE-FIRST RESPONSIVE OVERRIDES
   Breakpoints: <380px (small mobile), <992px (mobile/tablet), ≥992px (desktop)
   ============================================================ */

/* --- Mobile header height & spacing --- */
@media (max-width: 991px) {

  .site-header,
  #masthead {
    padding: 0 12px !important;
    min-height: 60px !important;
    display: flex !important;
    align-items: center !important;
  }

  /* Mobile header layout: Menu left | Logo center | Cart right */
  .site-header .col-full,
  #masthead .col-full,
  .site-header .shoptimizer-header-outer,
  .site-header-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative !important;
    width: 100% !important;
    padding: 0 !important;
    gap: 0 !important;
    height: 60px !important;
  }

  /* Reset any grid layouts */
  .site-header .col-full-narrow,
  .site-header .header-widget-region {
    display: none !important;
  }

  /* Menu toggle - left side */
  .site-header .menu-toggle,
  #masthead .menu-toggle,
  button.menu-toggle,
  .shoptimizer-primary-navigation .menu-toggle {
    order: 1 !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 44px !important;
    width: 44px !important;
    z-index: 10 !important;
  }

  /* Logo container - center */
  .site-header .site-branding,
  #masthead .site-branding,
  .site-header .shoptimizer-logo-mark,
  .shoptimizer-logo-mark {
    order: 2 !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    z-index: 5 !important;
  }

  /* Logo link */
  .site-header .site-title,
  #masthead .site-title,
  .site-header .custom-logo-link,
  #masthead .custom-logo-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
  }

  .site-header .site-title a,
  #masthead .site-title a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .site-header .custom-logo,
  #masthead .custom-logo,
  .custom-logo {
    max-height: 36px !important;
    width: auto !important;
  }

  /* Cart icon - right side */
  .site-header .comgurus-header-cart,
  #masthead .comgurus-header-cart,
  .site-header .site-header-cart,
  #masthead .site-header-cart,
  .header-cart {
    order: 3 !important;
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 44px !important;
    z-index: 10 !important;
  }

  .site-title {
    font-size: 16px !important;
  }

  /* Tighten body padding */
  body {
    padding-bottom: 72px; /* Space for mobile bottom nav */
  }

  /* Full-width buttons on mobile */
  .single_add_to_cart_button,
  .woocommerce a.button.checkout-button {
    width: 100%;
    text-align: center;
    padding: 16px;
    font-size: var(--r62-text-base);
  }

  /* 2-column product grid on mobile */
  .woocommerce ul.products {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 12px;
  }

  /* Tighter product card padding on mobile */
  .woocommerce ul.products li.product {
    margin: 0 !important;
    padding-bottom: 12px;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 13px;
    padding: 8px 10px 4px;
  }

  .woocommerce ul.products li.product .price {
    font-size: 15px;
    padding: 0 10px 8px;
  }

  /* Larger touch targets for Add to Cart on cards */
  .woocommerce ul.products li.product .button {
    margin: 0 10px 10px;
    width: calc(100% - 20px);
    padding: 11px 8px;
    font-size: 12px;
  }

  /* Section headings tighter on mobile */
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  h3 { font-size: 17px; }

  /* Hide desktop-only sidebar on mobile product archive */
  .shoptimizer-left-sidebar,
  .shoptimizer-right-sidebar {
    display: none;
  }

  /* Full-width content on mobile */
  .shoptimizer-content-area,
  #primary {
    width: 100% !important;
    margin: 0 !important;
  }

}

/* Small phones */
@media (max-width: 380px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 8px;
  }
}


/* ============================================================
   SECTION 6: MOBILE BOTTOM NAVIGATION BAR
   Fixed 5-tab nav replacing hamburger menu on mobile
   Tabs: Home | Browse | Auctions | Pickup | Account
   ============================================================ */

.r62-bottom-nav {
  display: none; /* Hidden on desktop */
}

@media (max-width: 991px) {

  body {
    padding-bottom: 72px; /* Space for bottom nav bar */
  }

  .r62-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: var(--r62-dark);
    border-top: 2px solid var(--r62-rust);
    height: 64px;
    padding-bottom: env(safe-area-inset-bottom); /* Notch / home bar support */
    justify-content: space-around;
    align-items: center;
  }

  .r62-bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 6px 4px;
    text-decoration: none;
    color: var(--r62-clay);
    font-family: var(--r62-font-body);
    font-size: 10px;
    font-weight: 500;
    gap: 3px;
    transition: color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .r62-bottom-nav__item svg,
  .r62-bottom-nav__item .nav-icon {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
  }

  .r62-bottom-nav__item:hover,
  .r62-bottom-nav__item.active,
  .r62-bottom-nav__item[aria-current="page"] {
    color: var(--r62-rust);
  }

  .r62-bottom-nav__item .nav-label {
    line-height: 1;
  }

  /* Auction tab — sage accent to stand out */
  .r62-bottom-nav__item--auction.active,
  .r62-bottom-nav__item--auction:hover {
    color: var(--r62-sage);
  }

  /* Hide Shoptimizer's duplicate hamburger triggers only —
     .menu-toggle is kept visible (Section 5 positions it in the header) */
  .comgurus-header-hamburger,
  .header-hamburger {
    display: none !important;
  }

  /* col-full-nav is allowed to work as Shoptimizer's slide-out drawer on mobile.
     Width override is scoped to desktop only (Section 4) so the pixel-based
     off-screen offset works correctly at page load. */

}


/* ============================================================
   SECTION 7: ROUTE 62 CUSTOM COMPONENTS
   Reusable UI components for the marketplace
   ============================================================ */

/* --- Trust bar (homepage horizontal strip) --- */
.r62-trust-bar {
  background-color: var(--r62-rust);
  padding: 8px 12px;
  width: 100%;
  box-sizing: border-box;
}

.r62-trust-bar__items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
  justify-content: center;
}

.r62-trust-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--r62-font-body);
  font-size: var(--r62-text-xs);
  font-weight: 500;
  color: var(--r62-light);
  white-space: nowrap;
}

.r62-trust-bar__item .trust-icon {
  font-size: 13px;
  flex-shrink: 0;
}

/* --- Vendor badge / name on product cards --- */
.r62-vendor-name {
  font-family: var(--r62-font-body);
  font-size: var(--r62-text-xs);
  color: var(--r62-sand);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px 4px;
}

.r62-vendor-name .verified-tick {
  color: var(--r62-sage-dark);
  font-size: 11px;
}

/* --- Pickup / shipping availability pills --- */
.r62-avail-pills {
  display: flex;
  gap: 6px;
  padding: 0 10px 10px;
  flex-wrap: wrap;
}

.r62-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--r62-font-body);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 20px;
  line-height: 1;
}

.r62-pill--pickup {
  background-color: var(--r62-sage-light);
  color: var(--r62-sage-dark);
}

.r62-pill--ship {
  background-color: var(--r62-rust-light);
  color: var(--r62-rust-hover);
}

.r62-pill--auction {
  background-color: #FEF3C7;
  color: #92400E;
}

/* --- Auction countdown timer --- */
.r62-auction-timer {
  font-family: var(--r62-font-body);
  font-size: var(--r62-text-xs);
  font-weight: 600;
  color: var(--r62-warning);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
}

/* --- Vendor storefront header card --- */
.r62-vendor-card {
  background: #fff;
  border: 1px solid var(--r62-clay);
  border-radius: var(--r62-radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--r62-shadow);
  margin-bottom: 24px;
}

.r62-vendor-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--r62-rust);
  flex-shrink: 0;
}

.r62-vendor-card__name {
  font-family: var(--r62-font-heading);
  font-size: var(--r62-text-lg);
  color: var(--r62-dark);
  margin: 0 0 2px;
}

.r62-vendor-card__location {
  font-family: var(--r62-font-body);
  font-size: var(--r62-text-xs);
  color: var(--r62-sand);
  font-weight: 500;
  margin: 0 0 6px;
}

.r62-vendor-card__meta {
  font-size: var(--r62-text-xs);
  color: var(--r62-mid);
}

.r62-vendor-card__meta .verified {
  color: var(--r62-sage-dark);
  font-weight: 600;
}

/* --- Section title treatment --- */
.r62-section-title {
  font-family: var(--r62-font-heading);
  font-size: var(--r62-text-xl);
  color: var(--r62-dark);
  position: relative;
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.r62-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background-color: var(--r62-rust);
  border-radius: 2px;
}

/* --- WhatsApp CTA button --- */
.r62-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #25D366;
  color: #fff !important;
  padding: 12px 20px;
  border-radius: var(--r62-radius);
  font-family: var(--r62-font-body);
  font-size: var(--r62-text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.r62-whatsapp-btn:hover {
  background-color: #1DA851;
  color: #fff !important;
}

/* --- Newsletter signup block --- */
.r62-newsletter {
  background: linear-gradient(135deg, var(--r62-dark) 0%, #2C1A0E 100%);
  border-radius: var(--r62-radius-lg);
  padding: 32px 20px;
  text-align: center;
  border: 1px solid var(--r62-rust);
}

.r62-newsletter h3 {
  color: var(--r62-light);
  font-size: var(--r62-text-xl);
  margin-bottom: 8px;
}

.r62-newsletter p {
  color: var(--r62-clay);
  font-size: var(--r62-text-sm);
  margin-bottom: 20px;
}

.r62-newsletter .newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .r62-newsletter .newsletter-form {
    flex-direction: column;
  }
}

.r62-newsletter input[type="email"] {
  flex: 1;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid var(--r62-sand);
  color: var(--r62-light);
  border-radius: var(--r62-radius);
}

.r62-newsletter input[type="email"]::placeholder {
  color: var(--r62-clay);
}

.r62-newsletter .button {
  background-color: var(--r62-rust) !important;
  white-space: nowrap;
}


/* ============================================================
   SECTION 8: WOOCOMMERCE CHECKOUT TRUST OVERRIDES
   ============================================================ */

/* Escrow notice injected above Place Order button */
.r62-checkout-escrow {
  background: var(--r62-sage-light);
  border: 1px solid var(--r62-sage);
  border-radius: var(--r62-radius);
  padding: 14px 16px;
  margin: 0 0 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--r62-font-body);
  font-size: var(--r62-text-sm);
  color: var(--r62-sage-dark);
  font-weight: 500;
  line-height: 1.4;
}

.r62-checkout-escrow .escrow-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Distraction-free checkout (Shoptimizer feature) — maintain light header */
.comgurus-distraction-free .site-header {
  background-color: var(--r62-light);
  border-bottom: 3px solid var(--r62-rust);
}

.comgurus-checkout-logo img {
  max-height: 40px;
}


/* ============================================================
   SECTION 9: PRINT / ACCESSIBILITY
   ============================================================ */

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--r62-rust);
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* High contrast mode adjustments */
@media (prefers-contrast: high) {
  :root {
    --r62-clay: #C0B0A0;
  }
}


/* ============================================================
   SECTION 10: DESKTOP LOGO + TAGLINE LAYOUT
   Desktop only (≥ 992px):
   - Branding block left-aligned in header
   - Logo on left, tagline text to the right of logo
   - Tagline bottom-aligns with logo (sits "below" logo centre)
   - Tagline text left-aligned
   ============================================================ */

@media (min-width: 992px) {

  /* Branding block: column layout, left-aligned — logo on top, tagline below */
  .site-header .site-branding,
  #masthead .site-branding,
  .site-header .shoptimizer-logo-mark,
  .shoptimizer-logo-mark,
  .site-header .site-logo,
  #masthead .site-logo {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    text-align: left !important;
    margin: 0 !important;
    gap: 4px;
  }

  /* Logo link: left-aligned, no stretching */
  .site-header .custom-logo-link,
  #masthead .custom-logo-link {
    display: block !important;
    flex-shrink: 0;
    justify-content: flex-start !important;
  }

  /* Logo image: desktop height */
  .site-header .custom-logo,
  #masthead .custom-logo,
  .custom-logo {
    max-height: 52px !important;
    width: auto !important;
    margin: 0 !important;
    display: block;
  }

  /* Tagline: below logo, left-aligned with logo's left edge */
  .site-description {
    display: block !important;
    font-family: var(--r62-font-body) !important;
    font-size: 11px !important;
    font-style: italic !important;
    font-weight: 400 !important;
    color: var(--r62-mid) !important;
    line-height: 1.3 !important;
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: normal;
  }

}


/* ============================================================
   SECTION 12: MOBILE PERFORMANCE COMPONENTS
   New components added per Gemini mobile-first framework.
   All use --r62-* CSS variables — never hardcode hex values here.
   ============================================================ */

/* --- Product image: force 1:1 aspect ratio ---
   Telling the browser the image dimensions BEFORE it downloads
   eliminates Cumulative Layout Shift (CLS) — one of the biggest
   mobile PageSpeed killers. The layout never "jumps" as images load. */
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product .woocommerce-LoopProduct-link img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  height: auto;
  display: block;
}

/* --- Sale badge with % saved ---
   Replaces WooCommerce default "Sale!" via r62_sale_badge_percent()
   in inc/ui-hooks.php. Absolute-positioned over the product image. */
.r62-sale-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: var(--r62-rust);
  color: var(--r62-light);
  padding: 4px 8px;
  font-family: var(--r62-font-body);
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
  pointer-events: none;
}

/* --- Stock status indicator ---
   "Only X left!" and "Sold Out" labels injected above product title
   via r62_grid_stock_status() in inc/ui-hooks.php. */
.r62-stock-status {
  display: block;
  font-family: var(--r62-font-body);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 10px 0;
  margin: 0;
  line-height: 1.4;
}

.r62-stock-status--low {
  color: var(--r62-warning);
}

.r62-stock-status--out {
  color: var(--r62-error);
  opacity: 0.85;
}

/* --- Custom empty cart ---
   Injected via r62_empty_cart_message() in inc/ui-hooks.php.
   Replaces WooCommerce's plain "Your cart is currently empty." */
.r62-empty-cart {
  text-align: center;
  padding: 60px 24px 40px;
  max-width: 480px;
  margin: 0 auto;
}

.r62-empty-cart__icon {
  font-size: 56px;
  margin-bottom: 16px;
  display: block;
  line-height: 1;
}

.r62-empty-cart h2 {
  font-family: var(--r62-font-heading);
  font-size: var(--r62-text-xl);
  color: var(--r62-dark);
  margin: 0 0 10px;
}

.r62-empty-cart p {
  color: var(--r62-mid);
  font-size: var(--r62-text-sm);
  margin: 0 0 28px;
  line-height: 1.6;
}

.r62-empty-cart__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

@media (min-width: 480px) {
  .r62-empty-cart__actions {
    flex-direction: row;
    justify-content: center;
  }
}

.r62-empty-cart__actions .button {
  min-width: 180px;
  text-align: center;
}

.r62-empty-cart__actions .button.secondary {
  background: transparent !important;
  color: var(--r62-rust) !important;
  border: 2px solid var(--r62-rust) !important;
}

.r62-empty-cart__actions .button.secondary:hover {
  background: var(--r62-rust) !important;
  color: var(--r62-light) !important;
}


/* ============================================================
   SECTION 11: DESKTOP HEADER — MY ACCOUNT ICON
   Sits to the right of the cart icon on PC (≥ 992px).
   Hidden on mobile — account is handled by the bottom nav bar.
   Rust outline SVG at rest → rust filled SVG on hover / active page.
   Also appears in the Shoptimizer sticky header on scroll.
   ============================================================ */

/* Hidden on mobile/tablet — bottom nav already has Account tab */
.r62-account-header-link {
  display: none;
}

@media (min-width: 992px) {

  /* Hide cart in header row (next to search) - keep only nav row cart */
  #masthead > .col-full > .comgurus-header-cart,
  #masthead > .col-full > .site-header-cart,
  .site-header > .col-full > .comgurus-header-cart,
  .site-header > .col-full > .site-header-cart,
  #masthead .col-full:not(.col-full-nav) .comgurus-header-cart,
  #masthead .col-full:not(.col-full-nav) .site-header-cart,
  .site-header .col-full:not(.col-full-nav) .comgurus-header-cart,
  .site-header .col-full:not(.col-full-nav) .site-header-cart,
  #masthead .header-row .comgurus-header-cart,
  #masthead .header-row .site-header-cart,
  .site-header .header-row .comgurus-header-cart,
  .site-header .header-row .site-header-cart {
    display: none !important;
  }

  /* Menu row layout: menu left, cart/account right */
  .col-full-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Main navigation menu - left align */
  .col-full-nav .main-navigation,
  .col-full-nav #site-navigation,
  .col-full-nav .primary-navigation {
    flex: 1 !important;
    justify-content: flex-start !important;
  }

  /* Cart and account icons container - right align */
  .col-full-nav .comgurus-header-cart,
  .col-full-nav .site-header-cart,
  .col-full-nav a.cart-contents,
  .col-full-nav .header-cart-wrap,
  .col-full-nav .cart-contents,
  .col-full-nav .r62-account-header-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Container for cart + account - push to right */
  .col-full-nav > .comgurus-header-cart,
  .col-full-nav > .site-header-cart,
  .col-full-nav > a.cart-contents {
    margin-left: auto !important;
  }

  .r62-account-header-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    /* Rust colour — matches cart icon */
    color: var(--r62-rust) !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
    margin-left: 8px;
    vertical-align: middle !important;
    line-height: 1 !important;
    box-sizing: border-box;
  }

  /* Cart icon styling in nav row */
  .col-full-nav .comgurus-header-cart,
  .col-full-nav .site-header-cart,
  .col-full-nav a.cart-contents,
  .col-full-nav .header-cart-wrap,
  .col-full-nav .cart-contents {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    color: var(--r62-rust) !important;
  }

  .col-full-nav .comgurus-header-cart + .r62-account-header-link,
  .col-full-nav .site-header-cart + .r62-account-header-link,
  .col-full-nav a.cart-contents + .r62-account-header-link {
    margin-left: 8px !important;
  }

  /* Outline state — stroke only, no fill */
  .r62-account-header-link svg {
    width: 24px;
    height: 24px;
    fill: none !important;
    stroke: var(--r62-rust) !important;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
    transition: fill 0.15s ease, stroke 0.15s ease;
  }

  /* Filled state on hover and when on the My Account page */
  .r62-account-header-link:hover,
  .r62-account-header-link.active {
    color: var(--r62-rust-hover) !important;
    text-decoration: none !important;
  }

  .r62-account-header-link:hover svg,
  .r62-account-header-link.active svg {
    fill: var(--r62-rust-hover) !important;
    stroke: var(--r62-rust-hover) !important;
  }

}


/* ============================================================
   SECTION 13: HUB LOGISTICS — CHECKOUT & ORDER DISPLAY
   Pickup type selection, pickup details, order status indicators
   ============================================================ */

/* Pickup type select field styling */
.r62-pickup-type-select select {
  background-color: white;
  border: 2px solid var(--r62-clay);
  border-radius: var(--r62-radius);
  padding: 12px;
  font-size: var(--r62-text-base);
  color: var(--r62-text);
  width: 100%;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.r62-pickup-type-select select:focus {
  border-color: var(--r62-rust);
  outline: none;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(196, 82, 26, 0.1);
}

.r62-pickup-type-select select:hover {
  border-color: var(--r62-rust-hover);
}


/* Hub pickup name input — shown conditionally */
.r62-hub-pickup-name-input {
  display: none !important;
}

.woocommerce-checkout input[name="r62_pickup_type"][value="hub-pickup"]:checked ~ .r62-hub-pickup-name-input {
  display: block !important;
}

/* Pickup details section in order confirmation & emails */
.r62-pickup-details {
  background-color: var(--r62-light);
  border: 2px dashed var(--r62-sage);
  border-radius: var(--r62-radius-lg);
  padding: 20px;
  margin: 20px 0;
}

.r62-pickup-details h2 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: var(--r62-text-lg);
  color: var(--r62-dark);
}

.r62-pickup-block {
  background-color: white;
  border-left: 4px solid var(--r62-sage);
  padding: 15px;
  margin: 15px 0;
  border-radius: 4px;
}

.r62-pickup-block p {
  margin: 10px 0;
  font-size: var(--r62-text-sm);
}

.r62-pickup-block strong {
  color: var(--r62-dark);
  font-weight: 600;
}

.r62-pickup-code {
  background-color: var(--r62-rust-light);
  padding: 10px 12px;
  border-radius: 4px;
  font-weight: 600;
}

.r62-pickup-code .code {
  font-family: 'Courier New', monospace;
  font-size: 18px;
  background-color: white;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 2px;
  color: var(--r62-rust);
}

.r62-locker-name {
  font-size: var(--r62-text-base);
}

.r62-hub-hours,
.r62-hub-address,
.r62-friend-phone-reminder {
  font-size: var(--r62-text-sm);
  color: var(--r62-mid);
}

.r62-hub-address a {
  color: var(--r62-rust);
  text-decoration: none;
  font-weight: 500;
}

.r62-hub-address a:hover {
  text-decoration: underline;
}

/* Order status colors for hub workflow */
.order-status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: var(--r62-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-status.status-shipped-hub {
  background-color: #FFF3CD;
  color: #856404;
}

.order-status.status-arrived-hub {
  background-color: #D1ECF1;
  color: #0C5460;
}

.order-status.status-ready-pickup {
  background-color: var(--r62-sage-light);
  color: var(--r62-sage-dark);
}

.order-status.status-collected {
  background-color: #D4EDDA;
  color: #155724;
}

/* Pickup method pills in product cards */
.r62-pickup-pill-hub {
  background-color: var(--r62-light);
  border: 1px solid var(--r62-sage);
  color: var(--r62-sage-dark);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
  margin-right: 4px;
}

.r62-pickup-pill-hub:before {
  content: '🏢 ';
}

/* My Account → Orders page: hub order highlighting */
.woocommerce-orders-table__cell-order.r62-hub-order {
  background-color: rgba(107, 127, 94, 0.05);
  border-left: 3px solid var(--r62-sage);
  padding-left: 12px;
}

/* Responsive adjustments for checkout fields */
@media (max-width: 991px) {
  .r62-pickup-type-select select {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .r62-pickup-details {
    margin: 15px -15px;
    border-radius: 0;
  }
}
/* Full-width background wrapper */
.col-full-nav {
    width: 100% !important;
}

/* Constrained content inside */
.col-full-nav .shoptimizer-primary-navigation.col-full {
    max-width: 1170px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-right: 2.617924em !important;
    padding-left: 2.617924em !important;
    box-sizing: border-box !important;
    width: 100% !important;
}
body:not(.sticky-atc-open) .product-details-wrapper {
    padding-top: 15px !important; /* your desired value */
}