/*
Theme Name: OBTC Heritage
Theme URI: https://obtradingco.com
Author: OB Trading Co.
Description: Premium, responsive WooCommerce theme for OB Trading Co. — built around Collection > Handmade Knives > Retail/Wholesale, Leather Products, Gift collections, and a gated Wholesale portal.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
Text Domain: obtc-heritage
*/

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Barlow+Condensed:wght@500;600;700&display=swap');

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root{
  --color-bg:#141110;
  --color-surface:#1e1813;
  --color-text:#efe7dc;
  --color-divider:color-mix(in srgb,#efe7dc 14%,transparent);
  --color-accent:#c67d43;
  --color-accent-100:#f7e9d9;
  --color-accent-200:#eecdaa;
  --color-accent-300:#e0ad7c;
  --color-accent-800:#653a1b;
  --color-accent-900:#3d2311;

  --font-heading:"Barlow Condensed", system-ui, sans-serif;
  --font-body:"Barlow", system-ui, sans-serif;

  --space-2:8px; --space-3:12px; --space-4:16px; --space-6:24px; --space-8:32px;
  --radius:0;
  --header-h:74px;
}

*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; background:var(--color-bg); color:var(--color-text);
  font-family:var(--font-body); font-size:15px; line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{
  font-family:var(--font-heading); font-weight:700; line-height:1.05;
  letter-spacing:.01em; margin:0 0 var(--space-2); text-transform:uppercase; color:#fdf7ef;
}
p{ margin:0 0 var(--space-3); }
a{ color:var(--color-accent-300); text-decoration:none; }
a:hover{ color:var(--color-accent-200); }
img{ display:block; max-width:100%; }
:focus-visible{ outline:2px solid var(--color-accent); outline-offset:2px; }
.container{ max-width:1280px; margin:0 auto; padding:0 clamp(20px,5vw,64px); }
.kicker{ display:block; font-family:var(--font-heading); font-weight:600; font-size:12.5px; letter-spacing:.2em; text-transform:uppercase; color:var(--color-accent-300); margin-bottom:14px; }

/* ---------- Breadcrumbs (used on every page for consistency) ---------- */
.breadcrumbs{ padding:14px clamp(20px,5vw,64px); border-bottom:1px solid var(--color-divider); background:#0d0b0a; }
.breadcrumbs ol{ list-style:none; display:flex; flex-wrap:wrap; gap:6px; margin:0; padding:0; max-width:1280px; margin:0 auto; }
.breadcrumbs li{ font-family:var(--font-heading); font-weight:500; font-size:12px; letter-spacing:.05em; text-transform:uppercase; color:color-mix(in srgb,var(--color-text) 65%,transparent); display:flex; align-items:center; gap:6px; }
.breadcrumbs li:not(:last-child)::after{ content:"/"; margin-left:6px; color:color-mix(in srgb,var(--color-text) 40%,transparent); }
.breadcrumbs a{ color:color-mix(in srgb,var(--color-text) 75%,transparent); }
.breadcrumbs a:hover{ color:var(--color-accent-300); }
.breadcrumbs [aria-current="page"]{ color:var(--color-accent-300); }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px; cursor:pointer;
  font-family:var(--font-heading); font-weight:600; font-size:14px; letter-spacing:.05em;
  padding:13px 26px; border:1px solid var(--color-divider); color:var(--color-text); background:transparent;
  text-decoration:none; transition:all .2s ease;
}
.btn-primary{ background:var(--color-accent); border-color:var(--color-accent); color:#141110; }
.btn-primary:hover{ background:var(--color-accent-300); color:#141110; }
.btn-secondary:hover{ border-color:var(--color-accent); color:var(--color-accent-200); }

/* ==========================================================================
   2. HEADER + MULTI-LEVEL NAV (accessible, keyboard + touch friendly)
   ========================================================================== */
.site-header{
  position:sticky; top:0; z-index:100; height:var(--header-h);
  display:flex; align-items:center; justify-content:space-between;
  padding:0 clamp(20px,5vw,64px);
  background:color-mix(in srgb,#0d0b0a 92%,transparent); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--color-divider);
}
.site-branding{ display:flex; align-items:center; gap:12px; text-decoration:none; }
.site-branding img{ height:42px; width:auto; }
.site-branding .site-title{ font-family:var(--font-heading); font-weight:700; font-size:20px; letter-spacing:.05em; color:var(--color-accent-200); text-transform:uppercase; }
.site-branding-mark{ height:46px !important; width:46px !important; object-fit:contain; filter:drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.site-branding-text{ display:flex; flex-direction:column; line-height:1; }
.site-branding-text .site-title{ font-family:var(--font-heading); font-weight:700; font-size:19px; letter-spacing:.06em; color:#fdf7ef; text-transform:uppercase; white-space:nowrap; }
.site-branding-text .site-tagline{ font-family:var(--font-heading); font-weight:500; font-size:10px; letter-spacing:.16em; text-transform:uppercase; color:var(--color-accent-300); margin-top:4px; white-space:nowrap; }
@media (max-width:520px){ .site-branding-text .site-tagline{ display:none; } }

.primary-nav{ display:flex; align-items:stretch; }
.primary-nav > ul{ list-style:none; display:flex; margin:0; padding:0; height:var(--header-h); }
.primary-nav > ul > li{ position:relative; display:flex; align-items:center; }
.primary-nav > ul > li > a{
  display:flex; align-items:center; height:100%; padding:0 18px;
  font-family:var(--font-heading); font-weight:600; font-size:14.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--color-text);
}
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li.menu-item-has-children:hover > a,
.primary-nav > ul > li.menu-item-has-children.focus-within > a{ color:var(--color-accent-200); }

/* level 2 dropdown */
.primary-nav .sub-menu{
  list-style:none; margin:0; padding:10px 0; position:absolute; top:100%; left:0; min-width:220px;
  background:#1a1512; border:1px solid var(--color-divider); box-shadow:0 20px 40px rgba(0,0,0,.5);
  opacity:0; visibility:hidden; transform:translateY(6px); transition:opacity .18s ease, transform .18s ease;
  z-index:20;
}
.primary-nav li.menu-item-has-children:hover > .sub-menu,
.primary-nav li.menu-item-has-children.focus-within > .sub-menu{ opacity:1; visibility:visible; transform:translateY(0); }
.primary-nav .sub-menu li{ position:relative; }
.primary-nav .sub-menu a{
  display:flex; justify-content:space-between; align-items:center; gap:10px;
  padding:10px 18px; font-family:var(--font-heading); font-weight:500; font-size:13.5px; letter-spacing:.04em; text-transform:uppercase; color:var(--color-text); white-space:nowrap;
}
.primary-nav .sub-menu a:hover{ background:color-mix(in srgb,var(--color-accent) 10%,transparent); color:var(--color-accent-200); }

/* level 3 (flyout to the right) */
.primary-nav .sub-menu .sub-menu{ top:-10px; left:100%; }

.menu-toggle{ display:none; }
.site-header-right{ display:flex; align-items:center; gap:16px; }
.header-cta{ padding:11px 22px; font-size:13px; white-space:nowrap; }
@media (max-width:900px){
  .primary-nav{ display:none; }
  .header-cta{ display:none; }
  .menu-toggle{
    display:inline-flex; background:transparent; border:1px solid var(--color-divider); color:var(--color-text);
    padding:9px 12px; cursor:pointer; font-family:var(--font-heading);
  }
  body.nav-open .primary-nav{
    display:block; position:fixed; inset:var(--header-h) 0 0 0; background:var(--color-bg);
    overflow-y:auto; padding:20px;
  }
  body.nav-open .primary-nav > ul{ flex-direction:column; height:auto; }
  body.nav-open .primary-nav > ul > li{ height:auto; }
  body.nav-open .primary-nav > ul > li > a{ height:auto; padding:14px 4px; border-bottom:1px solid var(--color-divider); }
  body.nav-open .primary-nav .sub-menu{
    position:static; opacity:1; visibility:visible; transform:none; border:none; box-shadow:none;
    background:color-mix(in srgb,var(--color-accent) 6%,transparent); padding-left:14px; display:none;
  }
  body.nav-open .primary-nav li.submenu-open > .sub-menu{ display:block; }
}

/* ==========================================================================
   3. HERO / BANNER (used by category + series pages)
   ========================================================================== */
.page-banner{
  position:relative; min-height:340px; display:flex; align-items:flex-end;
  background:linear-gradient(0deg, rgba(13,11,10,.95), rgba(13,11,10,.35) 60%), var(--color-surface);
  background-size:cover; background-position:center;
  padding:48px clamp(20px,5vw,64px);
}
.page-banner h1{ font-size:clamp(38px,6vw,68px); max-width:20ch; }
.page-banner .kicker{ margin-bottom:10px; }

/* ---------- Homepage hero slider ---------- */
.hero-slider{
  position:relative; min-height:min(94vh,860px); overflow:hidden;
}
.hero-slide{
  position:absolute; inset:0; opacity:0; transition:opacity 1.1s ease; z-index:1;
}
.hero-slide.is-active{ opacity:1; z-index:2; }
.hero-slide img{ width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }
.hero-slide::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(0deg, rgba(13,11,10,.95) 0%, rgba(13,11,10,.25) 55%, rgba(13,11,10,.55) 100%);
}
.hero-slider-inner{
  position:relative; z-index:5; display:flex; align-items:flex-end; min-height:min(94vh,860px);
  max-width:1280px; margin:0 auto; padding:0 clamp(20px,5vw,64px) clamp(64px,9vw,104px);
}
.hero-slider-inner h1{ font-size:clamp(44px,7.5vw,100px); max-width:17ch; line-height:.95; text-shadow:0 6px 30px rgba(0,0,0,.6); }
.hero-slider-inner p{ max-width:44ch; font-size:16.5px; color:color-mix(in srgb,var(--color-text) 90%,transparent); }
.hero-cta-row{ display:flex; gap:14px; flex-wrap:wrap; margin-top:20px; }

.hero-slider-controls{
  position:absolute; z-index:6; bottom:32px; right:clamp(20px,5vw,64px);
  display:flex; align-items:center; gap:14px;
}
.hero-dots{ display:flex; gap:8px; }
.hero-dot{
  width:9px; height:9px; border-radius:50%; border:1px solid var(--color-accent-300); background:transparent;
  padding:0; cursor:pointer;
}
.hero-dot.is-active{ background:var(--color-accent-300); }
.hero-arrow{
  width:38px; height:38px; border:1px solid var(--color-divider); background:rgba(13,11,10,.5); color:var(--color-text);
  cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:16px;
}
.hero-arrow:hover{ border-color:var(--color-accent); color:var(--color-accent-200); }

/* ---------- Forge video section ---------- */
.forge-video{
  position:relative; min-height:520px; display:flex; align-items:center; overflow:hidden;
  border-top:1px solid var(--color-divider); border-bottom:1px solid var(--color-divider);
}
.forge-video video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.forge-video::after{ content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(13,11,10,.9) 0%, rgba(13,11,10,.35) 60%); }
.forge-video-copy{ position:relative; z-index:2; max-width:1280px; margin:0 auto; padding:0 clamp(20px,5vw,64px); }
.forge-video-copy h2{ font-size:clamp(30px,4vw,46px); max-width:14ch; }
.forge-video-copy p{ max-width:44ch; color:color-mix(in srgb,var(--color-text) 88%,transparent); }

/* ---------- Editorial split (personalization spotlight) ---------- */
.editorial-split{ display:grid; grid-template-columns:1fr 1fr; gap:0; align-items:stretch; }
.editorial-split figure{ margin:0; min-height:420px; }
.editorial-split img{ width:100%; height:100%; object-fit:cover; display:block; }
.editorial-split-copy{ padding:clamp(40px,5vw,72px); display:flex; flex-direction:column; justify-content:center; background:var(--color-surface); }
@media (max-width:820px){ .editorial-split{ grid-template-columns:1fr; } .editorial-split figure{ min-height:280px; } }

/* ==========================================================================
   4. CARD GRID (Collection / series / leather / gifts)
   ========================================================================== */
.card-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:clamp(18px,2.2vw,28px); padding:clamp(48px,7vw,88px) 0; }
.obtc-card{ text-decoration:none; display:block; background:var(--color-surface); border:1px solid var(--color-divider); }
.obtc-card-fig{ margin:0; aspect-ratio:4/3; overflow:hidden; background:#0d0b0a; }
.obtc-card-fig img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.obtc-card:hover .obtc-card-fig img{ transform:scale(1.05); }
.obtc-card-body{ padding:18px 20px; }
.obtc-card-body h3{ font-size:19px; margin-bottom:4px; }
.obtc-card-body p{ font-size:13.5px; color:color-mix(in srgb,var(--color-text) 78%,transparent); margin-bottom:0; }

/* WooCommerce product grid, shared everywhere */
.woocommerce ul.products{ display:grid !important; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:clamp(16px,2.2vw,26px); list-style:none; margin:0 !important; padding:0 !important; }
.woocommerce ul.products li.product{ background:var(--color-surface); border:1px solid var(--color-divider); padding:0 0 16px; }
.woocommerce ul.products li.product img{ aspect-ratio:4/3; object-fit:cover; width:100%; height:auto; margin-bottom:12px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title{ font-family:var(--font-heading); font-size:15px; text-transform:uppercase; padding:0 14px; }
.woocommerce ul.products li.product .price{ padding:0 14px; color:var(--color-accent-300); }
.load-more-wrap{ text-align:center; padding:0 0 60px; }

/* ==========================================================================
   5. WHOLESALE PORTAL
   ========================================================================== */
.ws-tabs{ display:flex; gap:2px; margin-bottom:32px; border-bottom:1px solid var(--color-divider); }
.ws-tab{ padding:14px 22px; font-family:var(--font-heading); font-weight:600; letter-spacing:.06em; text-transform:uppercase; font-size:13.5px; color:color-mix(in srgb,var(--color-text) 70%,transparent); cursor:pointer; border-bottom:2px solid transparent; background:none; border-top:none; border-left:none; border-right:none; }
.ws-tab.active{ color:var(--color-accent-200); border-bottom-color:var(--color-accent); }
.ws-panel{ display:none; }
.ws-panel.active{ display:block; }
.ws-form{ max-width:520px; display:flex; flex-direction:column; gap:16px; }
.ws-form label{ display:block; font-family:var(--font-heading); font-weight:600; font-size:12px; letter-spacing:.1em; text-transform:uppercase; margin-bottom:6px; color:color-mix(in srgb,var(--color-text) 84%,transparent); }
.ws-form input, .ws-form select, .ws-form textarea{
  width:100%; background:#0d0b0a; border:1px solid var(--color-divider); color:var(--color-text);
  padding:12px 13px; font-family:var(--font-body); font-size:15px;
}
.ws-notice{ padding:14px 16px; border:1px solid var(--color-accent-800); background:var(--color-accent-900); margin-bottom:20px; font-size:14px; }
.ws-notice.error{ border-color:#7a2b2b; background:#2b1414; }

.ws-dashboard-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:20px; }
.ws-tile{ background:var(--color-surface); border:1px solid var(--color-divider); padding:28px 24px; }
.ws-tile h3{ font-size:20px; margin-bottom:8px; }
.ws-tile p{ font-size:13.5px; color:color-mix(in srgb,var(--color-text) 78%,transparent); }

/* ==========================================================================
   6. POLICIES / CONTACT
   ========================================================================== */
.policy-block{ border-top:1px solid var(--color-divider); padding:36px 0; }
.policy-block:first-of-type{ border-top:none; }
.contact-methods{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:16px; margin-bottom:48px; }
.contact-method{ background:var(--color-surface); border:1px solid var(--color-divider); padding:22px; text-align:center; }
.contact-method .btn{ margin-top:12px; width:100%; }

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.site-footer{ background:#0d0b0a; border-top:1px solid var(--color-divider); padding:56px clamp(20px,5vw,64px) 24px; margin-top:60px; }
.site-footer .footer-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:32px; max-width:1280px; margin:0 auto 32px; }
.site-footer h4{ font-family:var(--font-heading); font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:var(--color-accent-300); margin-bottom:14px; }
.site-footer ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; font-size:14px; }
.footer-bottom{ max-width:1280px; margin:0 auto; padding-top:20px; border-top:1px solid var(--color-divider); font-size:12.5px; color:color-mix(in srgb,var(--color-text) 80%,transparent); }

@media (max-width:820px){
  .contact-methods{ grid-template-columns:1fr 1fr; }
}
/* ==========================================================================
   8. ELEMENTOR CONTENT SAFETY NET
   Elementor's default Kit styles assume a light/white page background and
   set headings/text to dark gray or black. Since this whole site is dark,
   that text goes nearly invisible on any page still using Elementor
   widgets. This forces readable, on-brand color/typography for Elementor
   content without needing to edit every widget individually.
   ========================================================================== */
.elementor-widget-heading .elementor-heading-title,
.elementor-widget-text-editor,
.elementor-widget-text-editor p,
.elementor-widget-text-editor li,
.elementor-icon-list-text{
  color: var(--color-text) !important;
}
.elementor-widget-heading .elementor-heading-title{
  color: #fdf7ef !important;
  font-family: var(--font-heading) !important;
}
.elementor-widget-text-editor a,
.elementor-icon-list-text a{
  color: var(--color-accent-300) !important;
}
.elementor-section, .e-con{
  background-color: transparent !important;
}
/* The Privacy Policy page has its own embedded <style> block hardcoding
   near-black heading text, meant for a white page background. Override
   it specifically. */
.ob-policy-wrap h2{
  color: #fdf7ef !important;
}