/*
Theme Name: Limra Plumbing
Theme URI: https://limraplumbing.co.uk
Author: Limra Plumbing
Description: Professional plumbing and bathroom supplies theme for WooCommerce with gold accent design, trade pricing, bulk discounts, and mobile-first responsive layout.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
WC requires at least: 8.0
WC tested up to: 8.9
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: limra-plumbing
Tags: woocommerce, e-commerce, responsive, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   LIMRA PLUMBING THEME — MASTER CSS
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --gold:         #C9A84C;
  --gold-dark:    #B8960C;
  --gold-light:   #f5f0e0;
  --gold-pale:    #fdf8ec;
  --dark:         #1a1a1a;
  --darker:       #111111;
  --mid:          #2a2a2a;

  --bg:           #f4f4f2;
  --bg-card:      #ffffff;
  --bg-secondary: #f8f8f6;

  --text:         #1a1a1a;
  --text-muted:   #666666;
  --text-light:   #999999;

  --border:       rgba(0,0,0,.08);
  --border-mid:   rgba(0,0,0,.12);

  --green:        #3B6D11;
  --green-bg:     #EAF3DE;
  --blue:         #0C447C;
  --blue-bg:      #E6F1FB;
  --amber:        #633806;
  --amber-bg:     #FAEEDA;

  --radius:       8px;
  --radius-sm:    4px;
  --radius-lg:    12px;

  --shadow:       0 2px 8px rgba(0,0,0,.07);
  --shadow-lg:    0 4px 20px rgba(0,0,0,.12);

  --nav-h:        52px;
  --bar-h:        34px;
  --promo-h:      34px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Jost', 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--gold); }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* ---------- TYPOGRAPHY ---------- */
h1 { font-size: 26px; font-weight: 600; line-height: 1.25; }
h2 { font-size: 20px; font-weight: 600; line-height: 1.3; }
h3 { font-size: 16px; font-weight: 500; line-height: 1.35; }
h4 { font-size: 14px; font-weight: 500; }

/* ---------- UTILITIES ---------- */
.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.gold { color: var(--gold); }
.gold-dark { color: var(--gold-dark); }
.text-muted { color: var(--text-muted); }
.text-small { font-size: 12px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; font-size: 13px; font-weight: 500;
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  transition: opacity .15s, transform .1s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-dark  { background: var(--dark); color: var(--gold); }
.btn-gold  { background: var(--gold); color: var(--darker); }
.btn-outline { background: transparent; border: 1.5px solid var(--gold); color: var(--gold-dark); }
.btn-sm    { padding: 6px 14px; font-size: 11px; }
.btn-lg    { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; border: 0.5px solid var(--border-mid); color: var(--text-muted); }

/* ---------- FORM ELEMENTS ---------- */
.form-group   { margin-bottom: 16px; }
.form-label   { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 5px; font-weight: 500; letter-spacing: .2px; }
.form-control {
  width: 100%; padding: 10px 13px;
  border: 1px solid var(--border-mid); border-radius: var(--radius-sm);
  font-size: 13px; background: var(--bg-card); color: var(--text);
  transition: border-color .15s;
}
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.1); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23666' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ---------- CARDS ---------- */
.card {
  background: var(--bg-card); border: 0.5px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ---------- STATUS PILLS ---------- */
.pill { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 10px; font-weight: 500; letter-spacing: .3px; }
.pill-green  { background: var(--green-bg); color: var(--green); }
.pill-blue   { background: var(--blue-bg);  color: var(--blue); }
.pill-amber  { background: var(--amber-bg); color: var(--amber); }
.pill-gold   { background: var(--gold-light); color: #7a5200; }
.pill-dark   { background: var(--dark); color: var(--gold); }

/* ---------- DIVIDERS ---------- */
.divider { height: 0.5px; background: var(--border); }

/* ============================================================
   PROMO BAR
   ============================================================ */
.promo-bar {
  background: var(--gold); height: var(--promo-h);
  display: flex; align-items: center; justify-content: center; gap: 32px;
  overflow: hidden;
}
.promo-bar span { font-size: 11px; font-weight: 600; color: var(--darker); letter-spacing: .3px; white-space: nowrap; }
.promo-bar span::before { content: '✓  '; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--dark); }
.site-header-inner {
  display: flex; align-items: center; gap: 16px;
  height: var(--nav-h); padding: 0 24px;
}
.site-logo { color: #fff; font-size: 20px; font-weight: 600; letter-spacing: 1.5px; text-decoration: none; flex-shrink: 0; }
.site-logo em { color: var(--gold); font-style: normal; }
.nav-search-wrap { flex: 1; max-width: 480px; position: relative; }
.nav-search {
  width: 100%; background: #2a2a2a; border: 0.5px solid #444;
  border-radius: var(--radius-sm); padding: 8px 14px 8px 38px;
  color: #fff; font-size: 12px;
}
.nav-search::placeholder { color: #888; }
.nav-search-icon {
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  color: #666; font-size: 14px; cursor: pointer;
  background: transparent; border: 0; padding: 4px 8px; border-radius: 3px;
  transition: color .15s, background .15s;
}
.nav-search-icon:hover { color: var(--gold); background: rgba(255,255,255,.05); }
.nav-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav-action-link { color: #ccc; font-size: 12px; cursor: pointer; display: flex; align-items: center; gap: 5px; text-decoration: none; white-space: nowrap; transition: color .15s; }
.nav-action-link:hover { color: var(--gold); }
.nav-basket-btn {
  background: var(--gold); color: var(--darker); padding: 7px 16px;
  border-radius: var(--radius-sm); font-size: 12px; font-weight: 600;
  border: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  text-decoration: none; white-space: nowrap;
}
.nav-basket-btn .basket-count {
  background: var(--darker); color: var(--gold); border-radius: 50%;
  width: 18px; height: 18px; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* MEGA MENU */
.mega-bar {
  background: var(--darker); border-bottom: 0.5px solid #2a2a2a;
  display: flex; overflow-x: auto; padding: 0 24px;
  height: var(--bar-h);
}
.mega-bar::-webkit-scrollbar { height: 0; }
.mega-item-wrap { position: relative; display: flex; align-items: center; }
.mega-item-wrap:hover > .mega-dropdown { display: flex; }

.mega-item {
  padding: 0 14px; font-size: 11.5px; color: #aaa;
  white-space: nowrap; display: flex; align-items: center; height: var(--bar-h);
  border-bottom: 2px solid transparent; transition: color .15s;
  text-decoration: none; gap: 4px; cursor: pointer;
}
.mega-item-wrap:hover > .mega-item,
.mega-item:hover,
.mega-item.active { color: var(--gold); border-bottom-color: var(--gold); }
.mega-item.sale { color: var(--gold); font-weight: 600; }

.mega-dropdown {
  position: absolute; top: 100%; left: 0;
  background: var(--bg-card); border: 0.5px solid var(--border);
  border-top: 2px solid var(--gold); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg); display: none; z-index: 999;
  min-width: 260px;
}
.mega-col { min-width: 180px; border-right: 0.5px solid var(--border); }
.mega-col:last-child { border-right: none; }
.mega-col-header { padding: 10px 16px 6px; font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .6px; font-weight: 600; border-bottom: 0.5px solid var(--border); }
.mega-link { display: flex; align-items: center; justify-content: space-between; padding: 9px 16px; font-size: 12px; color: var(--text-muted); cursor: pointer; transition: background .1s, color .1s; text-decoration: none; }
.mega-link:hover { background: var(--gold-light); color: var(--gold-dark); }
.mega-link.active { background: var(--gold-light); color: var(--gold-dark); font-weight: 500; }

/* Mobile nav */
.mobile-header { display: none; background: var(--dark); height: var(--nav-h); padding: 0 16px; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1000; }
.mobile-menu-btn { color: #ccc; font-size: 22px; background: none; border: none; cursor: pointer; }
.mobile-basket-btn { background: var(--gold); color: var(--darker); padding: 6px 14px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; border: none; cursor: pointer; }
.mobile-nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 2000; }
.mobile-nav-drawer { position: fixed; top: 0; left: -100%; width: 80%; max-width: 320px; height: 100vh; background: var(--dark); z-index: 2001; transition: left .3s; overflow-y: auto; padding: 24px 16px; }
.mobile-nav-drawer.open { left: 0; }
.mobile-nav-overlay.open { display: block; }
.drawer-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: #888; font-size: 22px; cursor: pointer; }
.drawer-nav-item { display: block; padding: 13px 0; font-size: 14px; color: #ccc; border-bottom: 0.5px solid #2a2a2a; text-decoration: none; }
.drawer-nav-item:hover { color: var(--gold); }

/* Bottom mobile nav */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--dark); border-top: 0.5px solid #2a2a2a; z-index: 900; padding: 6px 0 env(safe-area-inset-bottom); }
.mbn-inner { display: flex; justify-content: space-around; }
.mbn-item { display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; text-decoration: none; padding: 4px 8px; }
.mbn-icon { font-size: 20px; color: #777; }
.mbn-label { font-size: 9px; color: #777; letter-spacing: .2px; }
.mbn-item.active .mbn-icon,
.mbn-item.active .mbn-label { color: var(--gold); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { padding: 10px 24px; font-size: 11px; color: var(--text-muted); background: var(--bg-secondary); border-bottom: 0.5px solid var(--border); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-dark); }
.breadcrumb span.sep { margin: 0 6px; }
.breadcrumb span.current { color: var(--text); }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header { background: var(--bg-secondary); border-bottom: 0.5px solid var(--border); padding: 20px 24px; }
.page-header h1 { font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.page-header p { font-size: 13px; color: var(--text-muted); }

/* ============================================================
   HOMEPAGE
   ============================================================ */

/* Hero banner */
.hero-section { padding: 16px 24px 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.hero-banner {
  background: var(--dark); border-radius: var(--radius); padding: 22px 20px;
  display: flex; justify-content: space-between; align-items: center;
  border: 0.5px solid #333; cursor: pointer; transition: border-color .2s; min-height: 130px;
}
.hero-banner:hover { border-color: var(--gold); }
.hero-banner.featured { background: linear-gradient(135deg, #1a1a1a 60%, #2a1e05); border-color: rgba(201,168,76,.4); }
.hero-grid .hero-banner.featured { grid-column: span 2; }
.hb-tag { font-size: 10px; color: var(--gold); font-weight: 600; letter-spacing: .6px; margin-bottom: 5px; }
.hb-title { font-size: 17px; font-weight: 600; color: #fff; line-height: 1.3; margin-bottom: 5px; }
.hb-sub { font-size: 11px; color: #999; }
.hb-btn { display: inline-block; font-size: 11px; background: var(--gold); color: var(--darker); padding: 5px 13px; border-radius: var(--radius-sm); font-weight: 600; margin-top: 10px; }
.hb-visual { width: 75px; height: 75px; background: #2a2a2a; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }

/* Category icons */
.img-cats { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; padding: 20px 24px; }
.img-cat { text-align: center; cursor: pointer; }
.img-cat-box { width: 100%; aspect-ratio: 1; background: var(--bg-card); border: 0.5px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 6px; transition: border-color .15s; }
.img-cat:hover .img-cat-box { border-color: var(--gold); }
.img-cat p { font-size: 11px; color: var(--text-muted); line-height: 1.3; }

/* Brands bar */
.brands-section { background: var(--bg-secondary); border-top: 0.5px solid var(--border); border-bottom: 0.5px solid var(--border); padding: 14px 24px; }
.brands-label { font-size: 10px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 10px; }
.brands-track { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 2px; }
.brands-track::-webkit-scrollbar { height: 0; }
.brand-chip { min-width: 90px; height: 38px; background: var(--bg-card); border: 0.5px solid var(--border); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: var(--text-muted); cursor: pointer; flex-shrink: 0; transition: border-color .15s, color .15s; }
.brand-chip:hover { border-color: var(--gold); color: var(--gold-dark); }

/* Section */
.home-section { padding: 20px 24px; }
.section-hdr { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.section-title { font-size: 18px; font-weight: 600; }
.section-link { font-size: 12px; color: var(--gold-dark); cursor: pointer; }
.section-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }

/* Feature strips */
.feature-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px 24px; background: var(--bg-secondary); border-top: 0.5px solid var(--border); border-bottom: 0.5px solid var(--border); }
.feature-item { display: flex; align-items: center; gap: 12px; }
.feature-icon { width: 38px; height: 38px; background: var(--gold-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.feature-text h4 { font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.feature-text p { font-size: 11px; color: var(--text-muted); }

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.products-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.products-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.prod-card { background: var(--bg-card); border: 0.5px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; }
.prod-card:hover { box-shadow: var(--shadow-lg); }
.prod-img { height: 150px; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; position: relative; border-bottom: 0.5px solid var(--border); overflow: hidden; }
.prod-img img { object-fit: contain; width: 100%; height: 100%; padding: 8px; }
.prod-img .placeholder { font-size: 30px; color: var(--text-light); }
.wishlist-btn { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; background: var(--bg-card); border: 0.5px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 15px; transition: border-color .15s; }
.wishlist-btn:hover, .wishlist-btn.active { border-color: var(--gold); color: var(--gold); }
.prod-badge { position: absolute; top: 8px; left: 8px; font-size: 9px; background: var(--gold-light); color: #7a5200; padding: 2px 7px; border-radius: 3px; font-weight: 600; }
.prod-badge.sale { background: var(--amber-bg); color: var(--amber); }

.prod-body { padding: 11px; flex: 1; display: flex; flex-direction: column; }
.prod-name { font-size: 12px; font-weight: 500; color: var(--text); margin-bottom: 4px; line-height: 1.35; }
.prod-sku { font-size: 10px; color: var(--text-light); margin-bottom: 6px; }
.prod-price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.prod-price { font-size: 16px; font-weight: 600; color: var(--gold-dark); }
.prod-old { font-size: 11px; color: var(--text-light); text-decoration: line-through; }
.prod-stock { font-size: 10px; color: var(--green); margin-bottom: 6px; }
.prod-stock.low { color: var(--amber); }
.prod-stock.oos { color: #c0392b; }

/* fulfil toggle on card */
.card-fulfil { display: flex; gap: 8px; margin: 6px 0; }
.cf-opt { display: flex; align-items: center; gap: 4px; font-size: 10px; color: var(--text-muted); cursor: pointer; }
.cf-radio { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--border-mid); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.cf-radio.sel { border-color: var(--gold); }
.cf-radio.sel::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* bulk toggle on card */
.bulk-toggle { font-size: 10px; color: var(--gold-dark); cursor: pointer; text-decoration: underline; margin: 4px 0; }
.bulk-mini { border: 0.5px solid var(--border); border-radius: 3px; overflow: hidden; margin-top: 5px; display: none; }
.bulk-mini.show { display: block; }
.bm-row { display: flex; justify-content: space-between; padding: 3px 7px; font-size: 10px; border-bottom: 0.5px solid var(--border); }
.bm-row:last-child { border-bottom: none; }
.bm-row.hdr { background: var(--bg-secondary); font-weight: 500; color: var(--text-muted); }
.bm-row .p { color: var(--gold-dark); font-weight: 600; }

.add-cart-btn { width: 100%; background: var(--dark); color: var(--gold); border: none; padding: 8px; font-size: 11px; cursor: pointer; border-radius: var(--radius-sm); margin-top: auto; transition: background .15s; }
.add-cart-btn:hover { background: #2a2a2a; }

/* ============================================================
   CATEGORY / SUBCATEGORY PAGE
   ============================================================ */
.subcat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 20px 24px; }
.subcat-tile { background: var(--bg-card); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 14px; text-align: center; cursor: pointer; transition: border-color .15s; text-decoration: none; }
.subcat-tile:hover { border-color: var(--gold); }
.subcat-icon { font-size: 28px; margin-bottom: 8px; }
.subcat-tile h4 { font-size: 12px; margin-bottom: 2px; }
.subcat-tile small { font-size: 10px; color: var(--text-muted); }

/* Filter + grid layout */
.filter-layout { display: grid; grid-template-columns: 210px 1fr; }
.sidebar { border-right: 0.5px solid var(--border); padding: 16px; background: var(--bg-secondary); min-height: 400px; }
.filter-section { border-bottom: 0.5px solid var(--border); padding-bottom: 12px; margin-bottom: 12px; }
.filter-section:last-child { border-bottom: none; }
.filter-section-title { font-size: 11px; font-weight: 600; color: var(--text); letter-spacing: .4px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.filter-section-title a { color: var(--gold-dark); font-size: 10px; font-weight: 400; }
.filter-opt { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; cursor: pointer; }
.filter-check { width: 14px; height: 14px; border: 1px solid var(--border-mid); border-radius: 3px; flex-shrink: 0; background: var(--bg-card); display: flex; align-items: center; justify-content: center; }
.filter-check.on { background: var(--gold); border-color: var(--gold); }
.filter-check.on::after { content: '✓'; font-size: 9px; color: var(--darker); }
.filter-opt span { font-size: 12px; color: var(--text); }
.filter-opt small { font-size: 10px; color: var(--text-muted); margin-left: auto; }

.cat-main { padding: 16px 20px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.result-count { font-size: 12px; color: var(--text-muted); }
.toolbar-right { display: flex; align-items: center; gap: 10px; }
.sort-select { border: 0.5px solid var(--border-mid); border-radius: var(--radius-sm); padding: 6px 10px; font-size: 12px; background: var(--bg-card); color: var(--text); }
.view-btns button { padding: 5px 10px; border: 0.5px solid var(--border-mid); background: var(--bg-card); color: var(--text-muted); font-size: 13px; cursor: pointer; }
.view-btns button.active { background: var(--dark); color: var(--gold); }
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

/* Active filters */
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.active-filter-tag { display: flex; align-items: center; gap: 5px; background: var(--gold-light); color: #7a5200; border-radius: 20px; padding: 3px 10px; font-size: 11px; }
.active-filter-tag button { background: none; border: none; color: inherit; cursor: pointer; font-size: 13px; padding: 0; line-height: 1; }

/* ============================================================
   PRODUCT PAGE (single)
   ============================================================ */
.product-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; padding: 20px 24px; align-items: start; }
.prod-gallery { display: flex; flex-direction: column; gap: 10px; }
.main-img { height: 360px; background: var(--bg-secondary); border: 0.5px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.main-img img { object-fit: contain; width: 100%; height: 100%; padding: 20px; }
.thumbs { display: flex; gap: 8px; }
.thumb { width: 68px; height: 68px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; overflow: hidden; flex-shrink: 0; }
.thumb img { object-fit: contain; width: 100%; height: 100%; padding: 4px; }
.thumb.active { border-color: var(--gold); }

.prod-panel { display: flex; flex-direction: column; gap: 14px; }
.prod-panel-title { font-size: 22px; font-weight: 600; line-height: 1.3; }
.prod-panel-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 14px; }
.stars { color: var(--gold); font-size: 13px; }
.stars span { color: var(--text-muted); font-size: 11px; }
.price-row { display: flex; align-items: baseline; gap: 10px; padding: 12px 0; border-top: 0.5px solid var(--border); border-bottom: 0.5px solid var(--border); }
.big-price { font-size: 30px; font-weight: 700; color: var(--gold-dark); }
.save-pill { background: var(--green-bg); color: var(--green); padding: 3px 9px; border-radius: 12px; font-size: 11px; font-weight: 500; }

.section-label { font-size: 10px; font-weight: 700; color: var(--text-muted); letter-spacing: .6px; text-transform: uppercase; margin-bottom: 8px; }

/* Fulfil toggle on product */
.fulfil-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ft-card { border: 1.5px solid var(--border-mid); border-radius: var(--radius-sm); padding: 12px; cursor: pointer; background: var(--bg-card); transition: border-color .15s; }
.ft-card.sel { border-color: var(--gold); background: var(--gold-pale); }
.ft-card-head { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; }
.ft-radio { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--border-mid); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ft-card.sel .ft-radio { border-color: var(--gold); }
.ft-card.sel .ft-radio::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.ft-title { font-size: 13px; font-weight: 600; }
.ft-sub { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.ft-stock { font-size: 11px; border-top: 0.5px solid var(--border); padding-top: 7px; }
.ft-stock .units { color: var(--green); font-weight: 600; }
.ft-stock .ship { color: var(--gold-dark); }

/* Bulk pricing on product */
.bulk-section { background: var(--bg-secondary); border: 0.5px solid var(--border); border-radius: var(--radius-sm); padding: 12px; }
.bulk-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.bulk-section-head p { font-size: 13px; font-weight: 600; }
.bulk-section-head a { font-size: 11px; color: var(--gold-dark); }
.bulk-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.bulk-tbl th { text-align: left; padding: 6px 8px; font-weight: 600; font-size: 11px; color: var(--text-muted); background: var(--bg-card); border-bottom: 0.5px solid var(--border); }
.bulk-tbl td { padding: 6px 8px; border-bottom: 0.5px solid var(--border); }
.bulk-tbl tr:last-child td { border-bottom: none; }
.bulk-tbl td.hi { color: var(--gold-dark); font-weight: 700; }
.bulk-tbl tr.active-row td { background: var(--gold-pale); }

/* Qty selector */
.qty-row { display: flex; align-items: center; gap: 10px; }
.qty-wrap { display: flex; align-items: center; border: 1px solid var(--border-mid); border-radius: var(--radius-sm); overflow: hidden; }
.qty-btn { width: 34px; height: 38px; background: var(--bg-secondary); border: none; font-size: 18px; cursor: pointer; color: var(--text); display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: var(--gold-light); }
.qty-input { width: 48px; height: 38px; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; font-size: 14px; font-weight: 600; background: var(--bg-card); color: var(--text); }

/* Product tabs */
.prod-tabs { border-top: 0.5px solid var(--border); }
.tab-nav { display: flex; border-bottom: 0.5px solid var(--border); background: var(--bg-secondary); padding: 0 24px; }
.tab-btn { padding: 12px 16px; font-size: 13px; color: var(--text-muted); border-bottom: 2px solid transparent; background: none; border-top: none; border-left: none; border-right: none; cursor: pointer; white-space: nowrap; }
.tab-btn.active { color: var(--text); border-bottom-color: var(--gold); font-weight: 500; }
.tab-panel { padding: 20px 24px; display: none; }
.tab-panel.active { display: block; }
.specs-table { width: 100%; font-size: 13px; }
.specs-table tr:nth-child(even) td { background: var(--bg-secondary); }
.specs-table td { padding: 9px 12px; border-bottom: 0.5px solid var(--border); }
.specs-table td:first-child { font-weight: 500; width: 40%; color: var(--text-muted); }

/* ============================================================
   BASKET / CHECKOUT
   ============================================================ */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 20px; padding: 20px 24px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 80px 1fr auto; gap: 12px; align-items: center; padding: 14px; border-bottom: 0.5px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.cart-img { width: 80px; height: 80px; background: var(--bg-secondary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 22px; overflow: hidden; flex-shrink: 0; }
.cart-img img { object-fit: contain; width: 100%; height: 100%; padding: 4px; }
.cart-info h4 { font-size: 13px; font-weight: 500; margin-bottom: 3px; }
.cart-info .sku { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.cart-info .price-each { font-size: 12px; color: var(--text-muted); }
.cart-actions { display: flex; align-items: center; gap: 10px; flex-direction: column; text-align: right; }
.cart-total { font-size: 15px; font-weight: 700; color: var(--gold-dark); white-space: nowrap; }
.cart-remove { font-size: 11px; color: var(--text-muted); cursor: pointer; background: none; border: none; text-decoration: underline; }

.order-summary { background: var(--bg-card); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 18px; position: sticky; top: 70px; }
.order-summary h3 { margin-bottom: 14px; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; border-bottom: 0.5px solid var(--border); }
.summary-row:last-child { border-bottom: none; }
.summary-row.total { font-weight: 700; font-size: 16px; }
.summary-row.total span:last-child { color: var(--gold-dark); }

.checkout-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin: 16px 0; }
.checkout-step { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-muted); }
.step-num { width: 22px; height: 22px; border-radius: 50%; background: var(--bg-secondary); border: 1.5px solid var(--border-mid); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.checkout-step.active .step-num { background: var(--gold); border-color: var(--gold); color: var(--darker); }
.checkout-step.done .step-num { background: var(--green); border-color: var(--green); color: #fff; }
.step-sep { width: 40px; height: 1px; background: var(--border-mid); }

/* ============================================================
   WISHLIST
   ============================================================ */
.wishlist-table { width: 100%; }
.wishlist-table th { text-align: left; padding: 10px 14px; font-size: 11px; color: var(--text-muted); font-weight: 600; letter-spacing: .3px; border-bottom: 1px solid var(--border); background: var(--bg-secondary); }
.wishlist-table td { padding: 12px 14px; border-bottom: 0.5px solid var(--border); font-size: 13px; vertical-align: middle; }
.wl-img { width: 60px; height: 60px; background: var(--bg-secondary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.wl-img img { object-fit: contain; width: 100%; height: 100%; padding: 4px; }

/* ============================================================
   MY ACCOUNT
   ============================================================ */
.account-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 500px; }
.account-sidebar { background: var(--bg-secondary); border-right: 0.5px solid var(--border); padding: 20px 14px; }
.account-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--gold-light); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: #7a5200; margin-bottom: 10px; }
.account-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.account-type { font-size: 11px; color: var(--text-muted); }
.account-nav { margin-top: 16px; }
.account-nav-item { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--radius-sm); font-size: 13px; color: var(--text-muted); cursor: pointer; margin-bottom: 2px; text-decoration: none; }
.account-nav-item:hover { background: var(--bg-card); color: var(--text); }
.account-nav-item.active { background: var(--gold-light); color: #7a5200; font-weight: 500; }
.account-content { padding: 20px 24px; }
.account-content h2 { margin-bottom: 16px; }
.order-card { background: var(--bg-card); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; }
.order-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.order-card-num { font-size: 13px; font-weight: 600; }
.order-card-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.order-card-foot { display: flex; justify-content: space-between; align-items: center; }
.order-card-date { font-size: 11px; color: var(--text-muted); }

/* ============================================================
   ORDER CONFIRMATION
   ============================================================ */
.confirm-wrap { text-align: center; max-width: 560px; margin: 0 auto 24px; }
.confirm-icon { width: 60px; height: 60px; background: var(--green-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 24px; }
.confirm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 700px; margin: 0 auto 20px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-info-card { display: flex; align-items: flex-start; gap: 14px; background: var(--bg-card); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; }
.contact-icon { width: 42px; height: 42px; background: var(--gold-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }

/* ============================================================
   404
   ============================================================ */
.error-page { text-align: center; padding: 60px 24px; }
.error-num { font-size: 90px; font-weight: 800; color: var(--gold); line-height: 1; }
.error-page h1 { margin: 14px 0 10px; }
.error-page p { max-width: 380px; margin: 0 auto 24px; color: var(--text-muted); }

/* ============================================================
   TRACK ORDER
   ============================================================ */
.track-timeline { position: relative; padding-left: 32px; }
.track-step { position: relative; margin-bottom: 24px; }
.track-step::before { content: ''; position: absolute; left: -24px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--border-mid); border: 2px solid var(--bg-card); box-shadow: 0 0 0 2px var(--border-mid); }
.track-step.done::before { background: var(--green); box-shadow: 0 0 0 2px var(--green-bg); }
.track-step.active::before { background: var(--gold); box-shadow: 0 0 0 3px var(--gold-light); }
.track-line { position: absolute; left: -18px; top: 18px; bottom: -24px; width: 1px; background: var(--border); }
.track-step:last-child .track-line { display: none; }
.track-step-title { font-size: 13px; font-weight: 600; }
.track-step-date { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.track-step-detail { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ============================================================
   RETURNS & REFUNDS / STATIC PAGES
   ============================================================ */
.static-content { max-width: 800px; margin: 0 auto; padding: 24px; }
.static-content h2 { font-size: 18px; margin: 24px 0 10px; }
.static-content h3 { font-size: 15px; margin: 18px 0 8px; }
.static-content p { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; line-height: 1.7; }
.static-content ul { padding-left: 20px; margin-bottom: 10px; }
.static-content ul li { font-size: 13px; color: var(--text-muted); margin-bottom: 5px; list-style: disc; line-height: 1.6; }

/* ============================================================
   TRADE ACCOUNTS
   ============================================================ */
.trade-hero { background: linear-gradient(135deg, var(--dark) 60%, #2a1e05); padding: 48px 24px; text-align: center; }
.trade-hero h1 { color: #fff; font-size: 30px; margin-bottom: 10px; }
.trade-hero p { color: #aaa; font-size: 14px; max-width: 500px; margin: 0 auto 24px; }
.trade-benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 24px; }
.trade-benefit { background: var(--bg-card); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; }
.trade-benefit .icon { font-size: 32px; margin-bottom: 10px; }
.trade-benefit h3 { margin-bottom: 6px; }
.trade-benefit p { font-size: 12px; color: var(--text-muted); }
.trade-form-wrap { max-width: 640px; margin: 0 auto; padding: 0 24px 32px; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-hero { background: var(--dark); padding: 48px 24px; position: relative; overflow: hidden; }
.about-hero h1 { color: #fff; font-size: 28px; margin-bottom: 10px; max-width: 500px; }
.about-hero p { color: #aaa; font-size: 13px; max-width: 480px; }
.about-hero .gold-accent { color: var(--gold); }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 0.5px solid var(--border); border-bottom: 0.5px solid var(--border); background: var(--bg-secondary); }
.stat-item { padding: 20px; text-align: center; border-right: 0.5px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 28px; font-weight: 800; color: var(--gold-dark); }
.stat-label { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.limra-pagination { display:flex; justify-content:center; align-items:center; gap:4px; margin-top:28px; padding-top:20px; border-top:0.5px solid var(--border); flex-wrap:wrap; }
.limra-pagination ul { display:flex; gap:4px; list-style:none; flex-wrap:wrap; }
.limra-pagination ul li { list-style:none; }
.limra-pagination .page-numbers { display:inline-flex; align-items:center; justify-content:center; min-width:34px; height:34px; padding:0 8px; border:0.5px solid var(--border-mid); border-radius:4px; font-size:12px; color:var(--text); text-decoration:none; background:var(--bg-card); transition:background .15s; }
.limra-pagination .page-numbers:hover { border-color:var(--gold); color:var(--gold-dark); }
.limra-pagination .page-numbers.current { background:var(--dark); color:var(--gold); border-color:var(--dark); font-weight:600; }
.limra-pagination .page-numbers.prev,
.limra-pagination .page-numbers.next { background:transparent; font-size:14px; }

/* Sidebar open on mobile */
@media (max-width:768px) {
    .sidebar.open { display:block !important; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--darker); color: #ccc; margin-top: 40px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 36px 24px; border-bottom: 0.5px solid #2a2a2a; }
.footer-brand { color: #fff; font-size: 18px; font-weight: 700; letter-spacing: 1px; margin-bottom: 10px; }
.footer-brand em { color: var(--gold); font-style: normal; }
.footer-desc { font-size: 12px; color: #888; line-height: 1.6; margin-bottom: 14px; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.footer-link { display: block; font-size: 12px; color: #888; margin-bottom: 7px; text-decoration: none; }
.footer-link:hover { color: var(--gold); }
.footer-bottom { padding: 14px 24px; display: flex; justify-content: space-between; font-size: 11px; color: #555; flex-wrap: wrap; gap: 8px; }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-badge { background: #2a2a2a; border-radius: var(--radius-sm); padding: 3px 8px; font-size: 10px; }

/* ============================================================
   RESPONSIVE — TABLET (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .site-header-inner { padding: 0 16px; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid .hero-banner.featured { grid-column: span 2; }
  .img-cats { grid-template-columns: repeat(6, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .checkout-layout { grid-template-columns: 1fr 300px; }
  .product-layout { grid-template-columns: 1fr 340px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .trade-benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* nav */
  .site-header { display: none; }
  .mobile-header { display: flex; }
  .mega-bar { display: none; }
  .mobile-bottom-nav { display: block; }
  body { padding-bottom: 60px; }

  /* hero */
  .hero-section { padding: 12px 14px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .hero-banner.featured { grid-column: span 1; }

  /* categories */
  .img-cats { grid-template-columns: repeat(4, 1fr); padding: 14px; gap: 8px; }
  .subcat-grid { grid-template-columns: repeat(2, 1fr); padding: 14px; }

  /* products */
  .products-grid, .products-grid-5 { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }

  /* filter layout on mobile */
  .filter-layout { grid-template-columns: 1fr; }
  .sidebar { border-right: none; border-bottom: 0.5px solid var(--border); display: none; }
  .sidebar.open { display: block; }

  /* product page */
  .product-layout { grid-template-columns: 1fr; padding: 14px; }
  .fulfil-grid { grid-template-columns: 1fr; }
  .main-img { height: 260px; }

  /* checkout */
  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .confirm-grid { grid-template-columns: 1fr; }

  /* account */
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { border-right: none; border-bottom: 0.5px solid var(--border); }

  /* contact */
  .contact-layout { grid-template-columns: 1fr; }

  /* pages */
  .static-content { padding: 16px; }
  .breadcrumb { padding: 8px 14px; }
  .page-header { padding: 14px; }
  .home-section, .cat-main { padding: 14px; }
  .brands-section { padding: 12px 14px; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); padding: 14px; }

  /* footer */
  .footer-top { grid-template-columns: 1fr; gap: 20px; padding: 24px 16px; }
  .footer-bottom { flex-direction: column; padding: 12px 16px; }

  /* about / trade */
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .trade-benefits-grid { grid-template-columns: 1fr; padding: 14px; }
  .trade-hero { padding: 32px 14px; }
  .about-hero { padding: 32px 14px; }

  /* misc */
  h1 { font-size: 20px; }
  h2 { font-size: 17px; }
  .container { padding: 0 14px; }
}

/* ============================================================
   WOOCOMMERCE OVERRIDES
   ============================================================ */
.woocommerce-notices-wrapper { padding: 0 24px; }
.woocommerce-message, .woocommerce-error, .woocommerce-info { border-radius: var(--radius-sm); padding: 12px 16px; margin: 12px 0; font-size: 13px; }
.woocommerce-message { background: var(--green-bg); border-left: 3px solid var(--green); color: var(--green); }
.woocommerce-error { background: #fdecea; border-left: 3px solid #c0392b; color: #c0392b; }
.woocommerce-info { background: var(--blue-bg); border-left: 3px solid var(--blue); color: var(--blue); }

/* Remove default WC styles that conflict */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit { 
  background: var(--dark); color: var(--gold); border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; padding: 10px 20px; border: none;
  transition: opacity .15s; 
}
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt { background: var(--gold); color: var(--darker); }

/* Stars */
.woocommerce .star-rating span::before { color: var(--gold); }
.woocommerce .star-rating { color: var(--gold); }

/* ============================================================
   MEGA MENU FIX — wrap needed for hover to work correctly
   ============================================================ */
.mega-item-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
}
.mega-item-wrap .mega-item {
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}
.mega-item-wrap:hover > .mega-item { color: var(--gold); border-bottom-color: var(--gold); }
.mega-item-wrap:hover > .mega-dropdown { display: flex; }
.mega-item-wrap .mega-dropdown { display: none; }

/* Pagination */
.limra-pagination { display:flex;justify-content:center;align-items:center;gap:4px;margin-top:28px;padding-top:16px;border-top:0.5px solid var(--border); }
.limra-pagination .page-numbers { display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;border:0.5px solid var(--border);border-radius:var(--radius-sm);font-size:12px;color:var(--text);text-decoration:none;padding:0 10px;background:var(--bg-card);transition:background .15s,color .15s; }
.limra-pagination .page-numbers:hover { background:var(--gold-light);color:var(--gold-dark); }
.limra-pagination .page-numbers.current { background:var(--dark);color:var(--gold);border-color:var(--dark); }
.limra-pagination .page-numbers.dots { border:none;background:none; }

/* Wishlist btn on product page */
.wishlist-btn { background:var(--bg-card);border:1px solid var(--border-mid);border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:border-color .15s,color .15s; }
.wishlist-btn.active, .wishlist-btn:hover { border-color:var(--gold);color:var(--gold); }

/* prod-name as link */
a.prod-name { display:block;color:var(--text);text-decoration:none;font-size:12px;font-weight:500;margin-bottom:4px;line-height:1.35; }
a.prod-name:hover { color:var(--gold-dark); }

/* Account page content area styling */
.woocommerce-MyAccount-content h2 { font-size:18px;margin-bottom:16px; }
.woocommerce-MyAccount-content p { font-size:13px;color:var(--text-muted);margin-bottom:10px;line-height:1.6; }
.woocommerce-MyAccount-content table { width:100%;border-collapse:collapse;font-size:13px; }
.woocommerce-MyAccount-content table th { padding:9px 12px;text-align:left;border-bottom:1px solid var(--border);font-size:11px;color:var(--text-muted);background:var(--bg-secondary); }
.woocommerce-MyAccount-content table td { padding:10px 12px;border-bottom:0.5px solid var(--border);vertical-align:middle; }
.woocommerce-MyAccount-content .button { background:transparent;border:0.5px solid var(--border-mid);color:var(--text-muted);padding:5px 12px;border-radius:4px;font-size:11px;text-decoration:none;display:inline-block; }
.woocommerce-MyAccount-content .button:hover { border-color:var(--gold);color:var(--gold-dark); }

/* Form fields in account */
.woocommerce-form__label { font-size:12px;font-weight:500;color:var(--text-muted);margin-bottom:4px;display:block; }
.woocommerce-Input { width:100%;padding:10px 13px;border:1px solid var(--border-mid);border-radius:4px;font-size:13px;font-family:inherit;background:var(--bg-card);color:var(--text); }
.woocommerce-Input:focus { outline:none;border-color:var(--gold);box-shadow:0 0 0 3px rgba(201,168,76,.1); }
.woocommerce-Button { background:var(--dark);color:var(--gold);border:none;padding:10px 20px;border-radius:4px;font-size:13px;font-weight:500;cursor:pointer;font-family:inherit; }
.woocommerce-Button:hover { opacity:.88; }

/* Filter sidebar open on mobile */
@media (max-width: 768px) {
    .sidebar.open { display:block; }
    .mega-item-wrap { height:auto; }
}

/* ============================================================
   v1.3.0 ADDITIONS
   ============================================================ */

/* ---------- Hero carousel ---------- */
.hero-carousel { position: relative; overflow: hidden; border-radius: var(--radius); }
.hero-track { display: flex; transition: transform .6s cubic-bezier(.4,0,.2,1); width: 100%; }
.hero-slide {
  display: grid; grid-template-columns: 2fr 1fr; gap: 10px;
  flex: 0 0 100%; min-width: 100%;
}
/* Force slide children to one grid column each — overrides any legacy span rule */
.hero-slide > .hero-banner { grid-column: auto; min-width: 0; }
.hero-slide > .hero-banner.featured { grid-column: 1 / 2; }
.hero-slide > .hero-banner:not(.featured) { grid-column: 2 / 3; }
.hero-dots {
  display: flex; gap: 6px; justify-content: center;
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  z-index: 3;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.4); cursor: pointer; padding: 0;
  transition: background .2s, width .2s;
}
.hero-dot.active { background: var(--gold); width: 22px; border-radius: 4px; }
@media (max-width: 768px) {
  .hero-slide { grid-template-columns: 1fr; }
  .hero-slide > .hero-banner.featured,
  .hero-slide > .hero-banner:not(.featured) { grid-column: 1 / -1; }
}

/* ---------- Shop by category — 7-col grid for 14 items in 2 rows ---------- */
.img-cats-7col { grid-template-columns: repeat(7, 1fr); }
@media (max-width: 1100px) { .img-cats-7col { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 768px)  { .img-cats-7col { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px)  { .img-cats-7col { grid-template-columns: repeat(3, 1fr); } }
.img-cat-sale   { background: linear-gradient(135deg, #fff5e0, #f5d97a); border-color: rgba(201,168,76,.5) !important; color: #7a5200; }
.img-cat-brands { background: linear-gradient(135deg, #f5f0e0, #e8dcb6); border-color: rgba(201,168,76,.5) !important; color: #7a5200; }

/* ---------- Brands — single row, no scroll, truncated ---------- */
.brands-row {
  display: flex; gap: 10px; flex-wrap: nowrap; overflow: hidden;
  align-items: center;
}
.brands-row .brand-chip { flex: 0 1 auto; }
.brand-chip-more {
  background: var(--dark) !important; color: var(--gold) !important;
  border-color: var(--dark) !important;
}
.brand-chip-more:hover { background: var(--mid) !important; color: var(--gold) !important; }
@media (max-width: 768px) {
  .brands-row { overflow-x: auto; flex-wrap: nowrap; }
  .brands-row::-webkit-scrollbar { height: 0; }
}

/* ---------- Product card variant select ---------- */
.card-variant-select {
  width: 100%; padding: 5px 8px; font-size: 11px;
  border: 0.5px solid var(--border-mid); border-radius: var(--radius-sm);
  background: var(--bg-card); color: var(--text);
  margin-bottom: 6px; cursor: pointer;
}
.card-variant-select:focus { border-color: var(--gold); outline: none; }

/* ---------- Product card stock info ---------- */
.card-stock-info { margin: 4px 0 6px; min-height: 14px; }
.card-stock-line { font-size: 10px; color: var(--green); line-height: 1.35; margin: 0; }
.card-stock-line.card-stock-delivery { color: var(--blue); }
.card-stock-line .cs-num { font-weight: 700; }
.card-stock-line small { display: inline-block; font-size: 9px; }

/* ---------- Card fulfil — clickable labels ---------- */
.cf-opt { cursor: pointer; user-select: none; }
.cf-opt.sel { color: var(--gold-dark); font-weight: 600; }

/* ---------- Add-to-cart OOS state ---------- */
.add-cart-btn.oos {
  background: #555; color: #ccc; opacity: .65; cursor: not-allowed;
}
.add-cart-btn.oos:hover { background: #555; }
.add-cart-btn:disabled { cursor: not-allowed; }

/* ---------- Cart page tweaks ---------- */
.cart-actions { gap: 8px; }
.cart-remove { color: #c0392b; }
.cart-remove:hover { color: #a02818; }

/* ---------- Active filter chip ---------- */
.active-filter-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--gold-light); color: #7a5200;
  padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 500;
}

/* ---------- Mega bar active highlighting ---------- */
.mega-item.active {
  color: var(--gold) !important;
  border-bottom-color: var(--gold) !important;
  font-weight: 600;
  background: rgba(201,168,76,.08);
}

/* ---------- WooCommerce default content polish (my-account, cart, checkout) ---------- */
.limra-wc-wrap { padding: 24px; max-width: 1400px; margin: 0 auto; }

/* My account WooCommerce default tables/forms */
.account-content .woocommerce-MyAccount-content,
.account-content > * { font-size: 13px; }
.account-content table.shop_table,
.limra-wc-wrap table.shop_table {
  width: 100%; border-collapse: collapse; margin-bottom: 16px;
  background: var(--bg-card); border: 0.5px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.account-content table.shop_table th,
.limra-wc-wrap table.shop_table th {
  text-align: left; padding: 10px 14px; font-size: 11px; font-weight: 600;
  color: var(--text-muted); background: var(--bg-secondary); border-bottom: 1px solid var(--border);
  text-transform: uppercase; letter-spacing: .3px;
}
.account-content table.shop_table td,
.limra-wc-wrap table.shop_table td {
  padding: 12px 14px; font-size: 13px; border-bottom: 0.5px solid var(--border); vertical-align: middle;
}
.account-content table.shop_table tr:last-child td,
.limra-wc-wrap table.shop_table tr:last-child td { border-bottom: none; }

.account-content .button,
.account-content button[type="submit"],
.limra-wc-wrap .button,
.limra-wc-wrap button[type="submit"],
.woocommerce-Button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; font-size: 13px; font-weight: 500;
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--dark); color: var(--gold);
  text-decoration: none; transition: opacity .15s;
}
.account-content .button:hover,
.account-content button[type="submit"]:hover,
.limra-wc-wrap .button:hover,
.limra-wc-wrap button[type="submit"]:hover,
.woocommerce-Button:hover { opacity: .9; }

.account-content input[type="text"],
.account-content input[type="email"],
.account-content input[type="password"],
.account-content input[type="tel"],
.account-content input[type="number"],
.account-content textarea,
.account-content select,
.limra-wc-wrap input[type="text"],
.limra-wc-wrap input[type="email"],
.limra-wc-wrap input[type="password"],
.limra-wc-wrap input[type="tel"],
.limra-wc-wrap input[type="number"],
.limra-wc-wrap textarea,
.limra-wc-wrap select {
  width: 100%; padding: 9px 12px; font-size: 13px;
  border: 0.5px solid var(--border-mid); border-radius: var(--radius-sm);
  background: var(--bg-card); color: var(--text);
  font-family: inherit;
}
.account-content input:focus,
.account-content textarea:focus,
.account-content select:focus,
.limra-wc-wrap input:focus,
.limra-wc-wrap textarea:focus,
.limra-wc-wrap select:focus { outline: none; border-color: var(--gold); }

.account-content label,
.limra-wc-wrap label { display: block; font-size: 12px; font-weight: 500; color: var(--text-muted); margin-bottom: 4px; }

.account-content .form-row,
.limra-wc-wrap .form-row { margin-bottom: 12px; }

.woocommerce-MyAccount-navigation { display: none; } /* we use our custom sidebar */

/* WooCommerce notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notice {
  background: var(--bg-card); border-left: 3px solid var(--gold);
  padding: 12px 14px; margin-bottom: 14px; border-radius: var(--radius-sm);
  font-size: 13px;
}
.woocommerce-error { border-left-color: #c0392b; color: #c0392b; }
.woocommerce-message { border-left-color: var(--green); }

/* Checkout page */
.woocommerce-checkout #order_review,
.woocommerce-checkout-review-order-table {
  background: var(--bg-card); border: 0.5px solid var(--border); border-radius: var(--radius);
  padding: 16px;
}

.woocommerce form .form-row {
  display: block; margin-bottom: 12px;
}

/* Login form on My account */
.woocommerce-form-login,
.woocommerce-form-register {
  background: var(--bg-card); border: 0.5px solid var(--border);
  border-radius: var(--radius); padding: 24px; max-width: 420px; margin: 0 auto;
}


/* Checkout layout cols */
.checkout-fields { min-width: 0; }
.checkout-summary-col { min-width: 0; }
.col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 768px) {
  .col2-set { grid-template-columns: 1fr; }
}
.col2-set h3 { margin-bottom: 10px; font-size: 14px; }


/* ============================================================
   CART v2 — matches new design (v1.3.4)
   ============================================================ */
.checkout-steps-wrap {
    padding: 22px 24px 20px;
    background: var(--bg-card);
    border-bottom: 0.5px solid var(--border);
}
.checkout-steps {
    display: flex; align-items: center; justify-content: center;
    gap: 0; margin: 0; max-width: 720px; margin-left: auto; margin-right: auto;
}
.checkout-step {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--text-muted);
}
.checkout-step .step-num {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--bg-secondary); border: 1px solid var(--border-mid);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
}
.checkout-step.active { color: var(--text); font-weight: 600; }
.checkout-step.active .step-num { background: var(--gold); border-color: var(--gold); color: var(--darker); }
.checkout-step.done .step-num { background: var(--darker); border-color: var(--darker); color: #fff; }
.step-sep { flex: 1; height: 1px; max-width: 70px; background: var(--border-mid); margin: 0 8px; }

/* 2-col cart layout */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    padding: 24px 32px 40px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}
.cart-title { font-size: 18px; font-weight: 600; margin-bottom: 16px; }

.cart-items { background: transparent; }
.cart-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 0.5px solid var(--border);
    align-items: start;
}
.cart-item:first-child { border-top: 0.5px solid var(--border); }
.cart-img {
    width: 72px; height: 72px; background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; overflow: hidden; flex-shrink: 0;
}
.cart-img img { object-fit: contain; width: 100%; height: 100%; padding: 4px; }

.cart-body { min-width: 0; }
.cart-name {
    font-size: 14px; font-weight: 500; color: var(--gold-dark);
    text-decoration: none; display: block; margin-bottom: 2px;
}
.cart-name:hover { color: var(--gold); }
.cart-sku { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.cart-price { font-size: 15px; font-weight: 700; color: var(--gold-dark); margin-bottom: 8px; }

.cart-fulfil-wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.fulfil-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 12px;
    font-size: 11px; font-weight: 500;
}
.fulfil-pill.fulfil-delivery { background: #E6F1FB; color: var(--blue); }
.fulfil-pill.fulfil-collect  { background: var(--green-bg); color: var(--green); }
.fulfil-change-btn {
    background: none; border: none; font-size: 11px;
    color: var(--gold-dark); text-decoration: underline; cursor: pointer; padding: 0;
}
.fulfil-change-btn:hover { color: var(--gold); }
.fulfil-change-btn:disabled { opacity: .6; cursor: wait; text-decoration: none; }

.cart-bottom-row { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.cart-bottom-row .qty-wrap {
    display: inline-flex; align-items: center; gap: 0;
    border: 0.5px solid var(--border-mid); border-radius: var(--radius-sm);
    overflow: hidden;
}
.cart-bottom-row .qty-btn {
    width: 28px; height: 28px; background: var(--bg-secondary);
    border: none; font-size: 14px; font-weight: 700; color: var(--text);
    cursor: pointer;
}
.cart-bottom-row .qty-btn:hover { background: var(--gold-light); }
.cart-bottom-row .qty-input {
    width: 40px; height: 28px; border: none; border-left: 0.5px solid var(--border-mid);
    border-right: 0.5px solid var(--border-mid); text-align: center; font-size: 13px;
    font-weight: 600; background: #fff; -moz-appearance: textfield;
}
.cart-bottom-row .qty-input::-webkit-outer-spin-button,
.cart-bottom-row .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-remove-btn {
    background: none; border: none; font-size: 12px;
    color: #c0392b; cursor: pointer; padding: 0;
}
.cart-remove-btn:hover { color: #a02818; text-decoration: underline; }

.cart-continue-link { color: var(--gold-dark); font-size: 13px; text-decoration: none; }
.cart-continue-link:hover { color: var(--gold); }

/* Sticky summary */
.cart-summary-col { position: sticky; top: 20px; }
.cart-summary-col .order-summary {
    background: var(--bg-card);
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}
.cart-summary-col .summary-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; font-size: 13px; border-bottom: none;
}
.cart-summary-col .summary-row.total {
    border-top: 0.5px solid var(--border); margin-top: 6px; padding-top: 12px;
    font-size: 18px; font-weight: 700;
}
.cart-summary-col .summary-row.total span:last-child { color: var(--gold-dark); }
.pill { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.pill-green { background: var(--green-bg); color: var(--green); }

.btn-block { display: block; width: 100%; }
.btn-dark {
    background: var(--darker); color: #fff; border: none; padding: 8px 14px;
    border-radius: var(--radius-sm); font-size: 12px; cursor: pointer;
}
.btn-dark:hover { background: #000; }

/* Fulfilment summary block */
.fulfilment-summary { margin-top: 24px; }
.fulfilment-summary h4 { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.fulfilment-summary ul { list-style: none; padding: 0; margin: 0; }
.fulfilment-summary li {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 12px; color: var(--text-muted); margin-bottom: 6px; line-height: 1.5;
}
.dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.dot-green { background: var(--green); }
.dot-blue  { background: var(--blue); }

/* Mobile */
@media (max-width: 900px) {
    .cart-layout { grid-template-columns: 1fr; padding: 16px 14px 32px; gap: 20px; }
    .cart-summary-col { position: static; }
    .checkout-steps-wrap { padding: 16px 14px; }
    .checkout-step span { display: none; }
    .step-sep { max-width: 30px; }
}
