@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ========================================
   TAILWIND PREFLIGHT (Base Reset)
   ======================================== */
*,:before,:after{
  --tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;
  --tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;
  --tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;
  --tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;
  --tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;
  --tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;
  --tw-ring-color:rgb(59 130 246 / .5);--tw-ring-offset-shadow:0 0 #0000;
  --tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;
  --tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;
  --tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;
  --tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;
  --tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;
  --tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;
  --tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }
::backdrop{
  --tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;
  --tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;
  --tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;
  --tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;
  --tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;
  --tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;
  --tw-ring-color:rgb(59 130 246 / .5);--tw-ring-offset-shadow:0 0 #0000;
  --tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;
  --tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;
  --tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;
  --tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;
  --tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;
  --tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;
  --tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }
*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border))}
:before,:after{--tw-content:""}
html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}
body{margin:0;line-height:inherit}
h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}
a{color:inherit;text-decoration:inherit}
b,strong{font-weight:bolder}
button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}
button,select{text-transform:none}
button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}
:-moz-focusring{outline:auto}
:-moz-ui-invalid{box-shadow:none}
::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}
[type=search]{-webkit-appearance:textfield;outline-offset:-2px}
::-webkit-search-decoration{-webkit-appearance:none}
::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}
blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}
fieldset{margin:0;padding:0}
legend{padding:0}
ol,ul,menu{list-style:none;margin:0;padding:0}
textarea{resize:vertical}
input::placeholder,textarea::placeholder{opacity:1;color:var(--text-tertiary)}
button,[role=button]{cursor:pointer}
:disabled{cursor:default}
img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}
img,video{max-width:100%;height:auto}

/* ========================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ======================================== */
:root{
  --background:0 0% 100%;
  --foreground:222 47% 11%;
  --card:210 40% 98%;
  --card-foreground:222 47% 11%;
  --popover:0 0% 100%;
  --popover-foreground:222 47% 11%;
  --primary:17 85% 41%;
  --primary-foreground:0 0% 100%;
  --secondary:210 40% 96%;
  --secondary-foreground:222 47% 11%;
  --muted:210 40% 96%;
  --muted-foreground:215 16% 47%;
  --accent:25 95% 53%;
  --accent-foreground:0 0% 100%;
  --destructive:0 84% 60%;
  --destructive-foreground:0 0% 98%;
  --border:214 32% 91%;
  --input:214 32% 91%;
  --ring:17 85% 41%;
  --radius:0.625rem;

  /* Custom semantic tokens */
  --brand-orange:#C2410C;
  --brand-orange-light:#FFF7ED;
  --brand-orange-dark:#F97316;
  --brand-orange-hover:#9A3412;
  --surface:#FFFFFF;
  --surface-secondary:#F8FAFC;
  --surface-tertiary:#F1F5F9;
  --surface-hover:#E2E8F0;
  --text-primary:#0F172A;
  --text-secondary:#475569;
  --text-tertiary:#64748B;
  --text-inverse:#FFFFFF;
  --border-light:#E2E8F0;
  --border-medium:#CBD5E1;
  --border-focus:#C2410C;
  --success:#16A34A;
  --warning:#CA8A04;
  --danger:#DC2626;
  --info:#2563EB;
  --star-filled:#E9C46A;
  --star-empty:#CBD5E1;
  --shadow-sm:0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg:0 10px 15px rgba(0,0,0,0.1);
  --shadow-xl:0 20px 25px rgba(0,0,0,0.12);
  --shadow-glow:0 0 20px rgba(194,65,12,0.3);

  /* Layout */
  --sidebar-width:260px;
  --sidebar-collapsed:64px;
  --header-height:64px;
}

.dark{
  --background:222 47% 6%;
  --foreground:210 40% 98%;
  --card:222 47% 11%;
  --card-foreground:210 40% 98%;
  --popover:222 47% 11%;
  --popover-foreground:210 40% 98%;
  --primary:25 95% 53%;
  --primary-foreground:0 0% 100%;
  --secondary:217 33% 17%;
  --secondary-foreground:210 40% 98%;
  --muted:217 33% 17%;
  --muted-foreground:215 20% 65%;
  --accent:25 95% 53%;
  --accent-foreground:0 0% 100%;
  --destructive:0 62% 50%;
  --destructive-foreground:0 0% 98%;
  --border:217 33% 20%;
  --input:217 33% 20%;
  --ring:25 95% 53%;

  --brand-orange:#F97316;
  --brand-orange-light:#431407;
  --brand-orange-dark:#EA580C;
  --brand-orange-hover:#FB923C;
  --surface:#0F172A;
  --surface-secondary:#1E293B;
  --surface-tertiary:#334155;
  --surface-hover:#475569;
  --text-primary:#F8FAFC;
  --text-secondary:#94A3B8;
  --text-tertiary:#64748B;
  --border-light:#334155;
  --border-medium:#475569;
  --border-focus:#F97316;
  --shadow-sm:0 1px 2px rgba(0,0,0,0.3);
  --shadow-md:0 4px 6px rgba(0,0,0,0.4);
  --shadow-lg:0 10px 15px rgba(0,0,0,0.5);
  --shadow-xl:0 20px 25px rgba(0,0,0,0.6);
  --shadow-glow:0 0 20px rgba(249,115,22,0.25);
}

/* ========================================
   BASE STYLES
   ======================================== */
html{scroll-behavior:smooth;font-size:16px}
body{
  font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  font-size:16px;line-height:1.6;
  background-color:hsl(var(--background));
  color:hsl(var(--foreground));
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  transition:background-color .25s ease,color .25s ease}

/* Scrollbar */
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:var(--border-medium);border-radius:4px}
::-webkit-scrollbar-thumb:hover{background:var(--text-tertiary)}

/* ========================================
   LAYOUT
   ======================================== */
.tamfitronics-wrapper{display:flex;min-height:100vh}
.tamfitronics-main{
  flex:1;display:flex;flex-direction:column;min-height:100vh;
  margin-left:var(--sidebar-width);
  transition:margin-left .3s cubic-bezier(0.4,0,0.2,1)}
.tamfitronics-main.sidebar-collapsed{margin-left:var(--sidebar-collapsed)}
.tamfitronics-main.no-sidebar{margin-left:0}
.tamfitronics-content{flex:1}

.container{
  width:100%;max-width:1440px;margin:0 auto;padding-left:24px;padding-right:24px}

/* UAGB blocks inside containers should break out */
.container .alignfull{
  width:100vw;
  max-width:none;
  margin-left:calc(-50vw + 50%);
  margin-right:calc(-50vw + 50%)}

/* When sidebar is present, adjust full width calculation */
body.has-sidebar .alignfull,
body.has-sidebar .entry-content .alignfull{
  width:calc(100vw - var(--sidebar-width));
  margin-left:calc((-100vw + var(--sidebar-width)) / 2 + 50%)}

/* When sidebar is collapsed */
body.has-sidebar.sidebar-collapsed .alignfull,
body.has-sidebar.sidebar-collapsed .entry-content .alignfull{
  width:calc(100vw - var(--sidebar-collapsed));
  margin-left:calc((-100vw + var(--sidebar-collapsed)) / 2 + 50%)}

/* No sidebar - standard full width */
body.no-sidebar .alignfull,
body.no-sidebar .entry-content .alignfull{
  width:100vw;
  margin-left:calc(-50vw + 50%);
  margin-right:calc(-50vw + 50%)}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-brand{color:var(--brand-orange)}
.dark .text-brand{color:var(--brand-orange-dark)}
.bg-brand{background-color:var(--brand-orange)}
.dark .bg-brand{background-color:var(--brand-orange-dark)}
.border-brand{border-color:var(--brand-orange)}
.bg-surface{background-color:var(--surface)}
.bg-surface-secondary{background-color:var(--surface-secondary)}
.bg-surface-tertiary{background-color:var(--surface-tertiary)}
.text-primary-custom{color:var(--text-primary)}
.text-secondary-custom{color:var(--text-secondary)}
.text-tertiary-custom{color:var(--text-tertiary)}
.border-light-custom{border-color:var(--border-light)}
.shadow-glow{box-shadow:var(--shadow-glow)}

.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}
.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}

/* Screen reader */
.screen-reader-text{
  border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);
  height:1px;margin:-1px;overflow:hidden;padding:0;
  position:absolute;width:1px;word-wrap:normal!important}

/* Focus */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
  outline:2px solid var(--brand-orange);outline-offset:2px}

/* Hide scrollbar */
.hide-scrollbar{-ms-overflow-style:none;scrollbar-width:none}
.hide-scrollbar::-webkit-scrollbar{display:none}

/* Display utilities */
.d-none{display:none}
.d-lg-flex{display:none}
@media(min-width:1024px){.d-lg-flex{display:flex!important}.d-none.d-lg-flex{display:flex!important}.mobile-menu-toggle{display:none!important}}

/* ========================================
   HEADER
   ======================================== */
.site-header{
  position:sticky;top:0;z-index:50;
  left:0;
  width:100%;
  height:var(--header-height);
  background:rgba(255,255,255,0.85);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border-light);
  transition:box-shadow .3s ease,background .25s ease}
.dark .site-header{background:rgba(15,23,42,0.85);border-bottom-color:var(--border-light)}
.site-header.scrolled{box-shadow:var(--shadow-md)}

/* On mobile/tablet header is full-width */
@media(max-width:1023px){
  .site-header{left:0!important;width:100%!important}
}

.header-inner{
  display:flex;align-items:center;gap:16px;
  height:100%;max-width:1440px;margin:0 auto;padding:0 24px}

/* Logo */
.site-logo{
  display:flex;align-items:center;gap:0;
  font-size:20px;font-weight:700;color:var(--text-primary);
  white-space:nowrap;flex-shrink:0;
  text-decoration:none}
.site-logo .logo-brand{color:var(--brand-orange)}
.site-logo:hover{color:var(--text-primary);text-decoration:none}

/* Search */
.header-search{
  flex:1;max-width:600px;margin:0 16px;position:relative;
  display:flex;align-items:center}
.header-search-form{
  display:flex;align-items:center;width:100%;
  background:var(--surface-tertiary);
  border:1px solid var(--border-light);border-radius:8px;
  overflow:hidden;
  transition:border-color .2s ease,box-shadow .2s ease}
.header-search-form:focus-within{
  border-color:var(--brand-orange);box-shadow:var(--shadow-glow)}
.header-search-input{
  flex:1;padding:10px 16px;border:none;background:transparent;
  font-size:14px;color:var(--text-primary);outline:none}
.header-search-input::placeholder{color:var(--text-tertiary)}
.header-search-btn{
  display:flex;align-items:center;justify-content:center;
  padding:10px 16px;background:none;border:none;
  cursor:pointer;color:var(--text-tertiary);
  transition:color .2s ease}
.header-search-btn:hover{color:var(--brand-orange)}

/* Header Actions */
.header-actions{display:flex;align-items:center;gap:4px;margin-left:auto}
.header-action-btn{
  display:flex;align-items:center;justify-content:center;
  width:40px;height:40px;border-radius:8px;border:none;
  background:transparent;color:var(--text-primary);
  cursor:pointer;position:relative;
  transition:background .2s ease,color .2s ease}
.header-action-btn:hover{background:var(--surface-tertiary)}
.header-action-btn svg{
  width:20px!important;height:20px!important;
  min-width:20px;min-height:20px;
  max-width:20px;max-height:20px;
  display:block}

/* ===== COMPREHENSIVE SVG ICON GUARDS =====
   Prevents plugins (Contact Form 7, Elementor, etc.)
   from inflating inline SVGs to huge sizes
   ======================================== */

/* Sidebar nav icons - 20px */
.sidebar-menu-link svg,
.sidebar-menu-link .dashicons{
  width:20px!important;height:20px!important;
  min-width:20px!important;min-height:20px!important;
  max-width:20px!important;max-height:20px!important;
  flex-shrink:0;display:block}

/* Header action icons - 20px */
.header-action-btn svg{
  width:20px!important;height:20px!important;
  min-width:20px!important;min-height:20px!important;
  max-width:20px!important;max-height:20px!important;
  display:block}

/* Sidebar toggle - 16px */
.sidebar-toggle svg{
  width:16px!important;height:16px!important;
  min-width:16px!important;min-height:16px!important;
  max-width:16px!important;max-height:16px!important;
  display:block}

/* Footer social icons - 16px */
.footer-social-link svg{
  width:16px!important;height:16px!important;
  min-width:16px!important;min-height:16px!important;
  max-width:16px!important;max-height:16px!important;
  display:block}

/* Theme toggle in sidebar - 20px */
.theme-toggle svg{
  width:20px!important;height:20px!important;
  min-width:20px!important;min-height:20px!important;
  max-width:20px!important;max-height:20px!important;
  flex-shrink:0;display:block}

/* Product card action buttons - 16px */
.product-action-btn svg{
  width:16px!important;height:16px!important;
  min-width:16px!important;min-height:16px!important;
  max-width:16px!important;max-height:16px!important;
  display:block}

/* Add to cart button icons - 16px */
.btn-add-cart svg,.add_to_cart_button svg{
  width:16px!important;height:16px!important;
  min-width:16px!important;min-height:16px!important;
  max-width:16px!important;max-height:16px!important;
  display:inline-block;vertical-align:middle}

/* Hero stat icons - 24px */
.hero-stat-icon{
  width:24px;height:24px;
  margin:0 auto 8px;color:rgba(255,255,255,0.7)}
.hero-stat-icon svg{
  width:24px!important;height:24px!important;
  min-width:24px!important;min-height:24px!important;
  max-width:24px!important;max-height:24px!important;
  display:block}

/* Breadcrumb icons - 16px */
.breadcrumbs svg{
  width:16px!important;height:16px!important;
  min-width:16px!important;min-height:16px!important;
  max-width:16px!important;max-height:16px!important;
  flex-shrink:0;display:block}

/* Widget icons - 20px */
.widget svg,.widget .dashicons{
  width:20px!important;height:20px!important;
  min-width:20px!important;min-height:20px!important;
  max-width:20px!important;max-height:20px!important;
  display:inline-block;vertical-align:middle}

/* Section link icons - 16px */
.section-link svg{
  width:16px!important;height:16px!important;
  min-width:16px!important;min-height:16px!important;
  max-width:16px!important;max-height:16px!important;
  display:inline-block;vertical-align:middle}

/* Blog read more icons - 16px */
.blog-read-more svg{
  width:16px!important;height:16px!important;
  min-width:16px!important;min-height:16px!important;
  max-width:16px!important;max-height:16px!important;
  display:inline-block;vertical-align:middle}

/* Comment meta icons - 16px */
.comment-meta svg{
  width:16px!important;height:16px!important;
  min-width:16px!important;min-height:16px!important;
  max-width:16px!important;max-height:16px!important;
  display:inline-block;vertical-align:middle}

/* Global safety: cap SVG sizes inside forms and content areas
   to prevent Contact Form 7 and other plugins from making them huge */
form svg,.wpcf7-form svg,.wpcf7 svg,
.entry-content a svg,.entry-content button svg,
.widget a svg,.widget button svg{
  max-width:24px!important;max-height:24px!important}

/* Cart Badge */
.cart-badge{
  position:absolute;top:-2px;right:-2px;
  min-width:18px;height:18px;padding:0 5px;
  background:var(--brand-orange);color:#fff;
  font-size:11px;font-weight:700;border-radius:9px;
  display:flex;align-items:center;justify-content:center}

/* Mobile toggle */
.mobile-menu-toggle{
  display:none;align-items:center;justify-content:center;
  width:40px;height:40px;border-radius:8px;border:none;
  background:transparent;color:var(--text-primary);
  cursor:pointer;transition:background .2s ease}
.mobile-menu-toggle:hover{background:var(--surface-tertiary)}

/* ========================================
   SIDEBAR
   ======================================== */
.site-sidebar{
  position:fixed;left:0;top:var(--header-height);
  width:var(--sidebar-width);
  height:calc(100vh - var(--header-height));
  background:var(--surface);
  border-right:1px solid var(--border-light);
  z-index:40;display:flex;flex-direction:column;
  transition:width .3s cubic-bezier(0.4,0,0.2,1);
  overflow:hidden}
.site-sidebar.collapsed{width:var(--sidebar-collapsed)}
.site-sidebar.collapsed:hover{width:var(--sidebar-width)}

.sidebar-toggle{
  display:flex;align-items:center;justify-content:center;
  width:32px;height:32px;border-radius:6px;border:none;
  background:transparent;color:var(--text-tertiary);
  cursor:pointer;transition:background .2s ease,color .2s ease;flex-shrink:0}
.sidebar-toggle svg{
  width:16px!important;height:16px!important;
  min-width:16px;min-height:16px;
  max-width:16px;max-height:16px;
  display:block}
.sidebar-toggle:hover{background:var(--surface-tertiary);color:var(--text-primary)}

.sidebar-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 20px;height:64px;
  border-bottom:1px solid var(--border-light);flex-shrink:0}
.site-sidebar.collapsed .sidebar-header{
  justify-content:center;padding:16px 0}
.site-sidebar.collapsed .sidebar-header .site-logo-text{display:none}
.site-sidebar.collapsed:hover .sidebar-header .site-logo-text{display:block}
.site-sidebar.collapsed:hover .sidebar-header{
  justify-content:space-between;padding:16px 20px}

/* Sidebar Nav */
.sidebar-nav{flex:1;overflow-y:auto;padding:12px 0}
.sidebar-nav::-webkit-scrollbar{width:4px}
.sidebar-nav::-webkit-scrollbar-thumb{background:var(--border-light);border-radius:2px}

.sidebar-menu{list-style:none;padding:0;margin:0}
.sidebar-menu-link{
  display:flex;align-items:center;gap:12px;
  padding:12px 20px;color:var(--text-secondary);
  font-size:14px;font-weight:500;
  transition:all .2s ease;white-space:nowrap;
  text-decoration:none;position:relative}
.sidebar-menu-link svg,.sidebar-menu-link .dashicons{
  width:20px!important;height:20px!important;
  min-width:20px;min-height:20px;
  max-width:20px;max-height:20px;flex-shrink:0;
  display:block}
.sidebar-menu-link:hover,.sidebar-menu-link.active{
  background:rgba(194,65,12,0.08);color:var(--brand-orange)}
.site-sidebar.collapsed .sidebar-menu-link{padding:12px 22px}
.site-sidebar.collapsed .sidebar-menu-link span{
  opacity:0;visibility:hidden;transition:opacity .15s ease}
.site-sidebar.collapsed:hover .sidebar-menu-link span{
  opacity:1;visibility:visible}

/* Sidebar label - text next to icon */
.sidebar-label{transition:opacity .15s ease}
.site-sidebar.collapsed .sidebar-label{
  opacity:0;visibility:hidden;position:absolute;pointer-events:none}
.site-sidebar.collapsed:hover .sidebar-label{
  opacity:1;visibility:visible;position:static;pointer-events:auto}

/* Tooltip */
.tooltip{
  position:absolute;left:calc(100% + 8px);top:50%;
  transform:translateY(-50%);padding:6px 12px;
  background:var(--text-primary);color:var(--surface);
  font-size:12px;font-weight:500;border-radius:6px;
  white-space:nowrap;opacity:0;visibility:hidden;
  transition:opacity .2s ease,visibility .2s ease;
  pointer-events:none;z-index:1000}
.site-sidebar.collapsed .sidebar-menu-link:hover .tooltip{
  opacity:1;visibility:visible}
.site-sidebar.collapsed:hover .sidebar-menu-link .tooltip{
  opacity:0;visibility:hidden}

/* Sidebar Footer */
.sidebar-footer{
  padding:12px 20px;border-top:1px solid var(--border-light);flex-shrink:0}
.site-sidebar.collapsed .sidebar-footer{
  padding:12px 0;display:flex;justify-content:center}
.site-sidebar.collapsed .sidebar-footer .theme-toggle span{display:none}
.site-sidebar.collapsed:hover .sidebar-footer{
  padding:12px 20px;display:block}
.site-sidebar.collapsed:hover .sidebar-footer .theme-toggle span{display:inline}

/* Theme toggle in sidebar */
.theme-toggle{
  display:flex;align-items:center;gap:12px;
  padding:12px 20px;width:100%;border:none;
  background:transparent;color:var(--text-secondary);
  font-size:14px;font-weight:500;cursor:pointer;
  border-radius:0;transition:all .2s ease}
.theme-toggle:hover{background:rgba(194,65,12,0.08);color:var(--brand-orange)}
.theme-toggle svg,.sidebar-footer svg{
  width:20px!important;height:20px!important;
  min-width:20px;min-height:20px;
  max-width:20px;max-height:20px;flex-shrink:0;
  display:block}

/* ========================================
   FOOTER
   ======================================== */
.site-footer{
  background:var(--surface-tertiary);
  border-top:1px solid var(--border-light);padding:60px 0 0}
.footer-grid{
  display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr 1fr;
  gap:40px;padding-bottom:48px;max-width:1440px;margin:0 auto;padding-left:24px;padding-right:24px}

/* Footer widget columns - match hardcoded column styling */
.footer-widget-column{}
.footer-widget-column .widget{margin-bottom:24px}
.footer-widget-column .widget-title{
  font-size:14px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;
  color:var(--text-primary);margin-bottom:20px}
.footer-widget-column .widget ul{list-style:none;padding:0;margin:0}
.footer-widget-column .widget ul li{
  margin-bottom:10px}
.footer-widget-column .widget ul li a{
  color:var(--text-secondary);font-size:14px;text-decoration:none;transition:color .2s ease}
.footer-widget-column .widget ul li a:hover{color:var(--brand-orange)}
.footer-brand{max-width:280px}
.footer-brand .site-logo{margin-bottom:16px;font-size:24px}
.footer-brand p{color:var(--text-secondary);font-size:14px;line-height:1.6;margin-bottom:20px}
.footer-social{display:flex;gap:8px}
.footer-social-link{
  display:flex;align-items:center;justify-content:center;
  width:36px;height:36px;border-radius:8px;
  background:var(--surface);color:var(--text-secondary);
  transition:all .2s ease;text-decoration:none}
.footer-social-link svg{
  width:16px!important;height:16px!important;
  min-width:16px;min-height:16px;
  max-width:16px;max-height:16px;
  display:block}
.footer-social-link:hover{background:rgba(194,65,12,0.1);color:var(--brand-orange)}
.footer-column-title{
  font-size:14px;font-weight:600;color:var(--text-primary);
  text-transform:uppercase;letter-spacing:.05em;margin-bottom:20px}
.footer-menu{list-style:none;padding:0;margin:0}
.footer-menu-item{margin-bottom:10px}
.footer-menu-link{
  color:var(--text-secondary);font-size:14px;
  transition:color .2s ease;text-decoration:none}
.footer-menu-link:hover{color:var(--brand-orange)}
.footer-bottom{
  border-top:1px solid var(--border-light);padding:24px 0;
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:16px;max-width:1440px;margin:0 auto;padding-left:24px;padding-right:24px}
.footer-copyright{font-size:14px;color:var(--text-tertiary)}
.footer-payment-icons{display:flex;gap:8px}
.payment-icon{
  width:40px;height:26px;background:var(--surface);
  border:1px solid var(--border-light);border-radius:4px;
  display:flex;align-items:center;justify-content:center;
  font-size:10px;font-weight:700;color:var(--text-tertiary)}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section{
  position:relative;overflow:hidden;min-height:70vh;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#C2410C 0%,#9A3412 50%,#7C2D12 100%)}
.hero-section::before{
  content:'';position:absolute;inset:0;
  background-image:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity:.5}
.hero-content{
  position:relative;text-align:center;max-width:800px;padding:60px 24px}
.hero-eyebrow{
  font-size:14px;font-weight:500;color:rgba(255,255,255,0.8);
  text-transform:uppercase;letter-spacing:.15em;margin-bottom:16px}
.hero-title{
  font-size:clamp(36px,5vw,64px);font-weight:800;color:#fff;
  line-height:1.1;margin-bottom:24px}
.hero-subtitle{
  font-size:18px;color:rgba(255,255,255,0.8);
  max-width:600px;margin:0 auto 32px;line-height:1.6}
.hero-buttons{
  display:flex;flex-wrap:wrap;gap:16px;justify-content:center}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:14px 32px;font-size:16px;font-weight:600;
  border-radius:8px;border:none;cursor:pointer;
  transition:all .2s ease;text-decoration:none}
.btn-primary{
  background:#fff;color:var(--brand-orange);box-shadow:var(--shadow-lg)}
.btn-primary:hover{
  background:rgba(255,255,255,0.95);transform:translateY(-2px);
  box-shadow:var(--shadow-xl);color:var(--brand-orange);text-decoration:none}
.btn-outline{
  background:transparent;color:#fff;border:2px solid rgba(255,255,255,0.5)}
.btn-outline:hover{
  background:rgba(255,255,255,0.1);border-color:#fff;color:#fff;text-decoration:none}
.btn-brand{
  background:var(--brand-orange);color:#fff;box-shadow:var(--shadow-md)}
.btn-brand:hover{
  background:var(--brand-orange-hover);transform:translateY(-2px);
  box-shadow:var(--shadow-lg);color:#fff;text-decoration:none}
.btn-sm{padding:10px 24px;font-size:14px}

/* Hero Stats */
.hero-stats{
  position:relative;display:grid;grid-template-columns:repeat(4,1fr);
  gap:24px;max-width:700px;margin:48px auto 0;
  padding-top:48px;border-top:1px solid rgba(255,255,255,0.2)}
.hero-stat{text-align:center}
.hero-stat-icon{
  width:24px;height:24px;color:rgba(255,255,255,0.7);
  margin:0 auto 8px}
.hero-stat-value{font-size:20px;font-weight:700;color:#fff}
.hero-stat-label{font-size:13px;color:rgba(255,255,255,0.6)}

/* ========================================
   SECTIONS
   ======================================== */
.section{padding:64px 0}
.section-alt{background:var(--surface-secondary)}
.section-header{
  display:flex;align-items:center;justify-content:space-between;margin-bottom:32px}
.section-title{font-size:28px;font-weight:700;color:var(--text-primary)}
.section-link{
  display:inline-flex;align-items:center;gap:4px;
  font-size:14px;font-weight:500;color:var(--brand-orange);
  transition:gap .2s ease;text-decoration:none}
.section-link:hover{gap:8px;color:var(--brand-orange-hover)}

/* ========================================
   CATEGORIES
   ======================================== */
.categories-grid{
  display:grid;grid-template-columns:repeat(6,1fr);gap:16px}
.category-card{
  position:relative;aspect-ratio:1;border-radius:12px;
  overflow:hidden;display:block;text-decoration:none}
.category-card img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .5s ease}
.category-card:hover img{transform:scale(1.1)}
.category-card-overlay{
  position:absolute;inset:0;
  background:linear-gradient(to top,rgba(0,0,0,0.7) 0%,rgba(0,0,0,0.1) 100%);
  display:flex;align-items:center;justify-content:center;
  transition:background .3s ease}
.category-card:hover .category-card-overlay{
  background:linear-gradient(to top,rgba(0,0,0,0.5) 0%,rgba(0,0,0,0.05) 100%)}
.category-card-title{
  color:#fff;font-size:16px;font-weight:600;text-align:center;padding:16px}

/* ========================================
   PRODUCT CARD
   ======================================== */
.product-card{
  position:relative;background:var(--surface);
  border-radius:12px;overflow:hidden;
  transition:transform .3s ease,box-shadow .3s ease}
.product-card:hover{
  transform:translateY(-4px);box-shadow:var(--shadow-lg)}
.product-image-wrap{
  position:relative;aspect-ratio:1;overflow:hidden;
  background:var(--surface-tertiary)}
.product-image-wrap img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .3s ease}
.product-card:hover .product-image-wrap img{transform:scale(1.05)}

/* Badges */
.product-badges{
  position:absolute;top:12px;left:12px;
  display:flex;flex-direction:column;gap:4px;z-index:2}
.product-badge{
  padding:4px 10px;border-radius:6px;
  font-size:11px;font-weight:700;text-transform:uppercase;color:#fff}
.badge-sale{background:var(--warning)}
.badge-new{background:var(--success)}
.badge-hot{background:var(--danger)}

/* Actions */
.product-actions{
  position:absolute;top:12px;right:12px;
  display:flex;flex-direction:column;gap:6px;
  opacity:0;transform:translateY(-5px);
  transition:all .2s ease;z-index:2}
.product-card:hover .product-actions{opacity:1;transform:translateY(0)}
.product-action-btn{
  display:flex;align-items:center;justify-content:center;
  width:32px;height:32px;border-radius:8px;
  background:rgba(255,255,255,0.95);border:none;
  color:var(--text-primary);cursor:pointer;
  transition:all .2s ease;box-shadow:var(--shadow-sm)}
.product-action-btn:hover{background:var(--brand-orange);color:#fff}
.product-action-btn.active{background:var(--danger);color:#fff}

/* Add to cart */
.product-add-cart{
  position:absolute;bottom:0;left:0;right:0;
  padding:12px;transform:translateY(100%);
  transition:transform .3s ease;z-index:2}
.product-card:hover .product-add-cart{transform:translateY(0)}
.btn-add-cart,.add_to_cart_button{
  display:flex;align-items:center;justify-content:center;gap:8px;
  width:100%;padding:12px;background:var(--brand-orange);
  color:#fff;font-size:14px;font-weight:600;
  border:none;border-radius:8px;cursor:pointer;
  transition:background .2s ease;text-decoration:none}
.btn-add-cart:hover,.add_to_cart_button:hover{
  background:var(--brand-orange-hover);color:#fff;text-decoration:none}

/* Product Info */
.product-info{padding:16px}
.product-category{
  font-size:12px;font-weight:500;color:var(--text-tertiary);
  text-transform:uppercase;letter-spacing:.03em;margin-bottom:6px}
.product-title{
  font-size:15px;font-weight:600;color:var(--text-primary);
  line-height:1.4;margin-bottom:8px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  transition:color .2s ease}
.product-title a{color:inherit;text-decoration:none}
.product-card:hover .product-title{color:var(--brand-orange)}

.product-rating{
  display:flex;align-items:center;gap:6px;margin-bottom:10px}
.product-stars{display:flex;gap:2px}
.star{font-size:14px;line-height:1}
.star-filled{color:var(--star-filled)}
.star-empty{color:var(--star-empty)}
.product-rating-count{font-size:12px;color:var(--text-tertiary)}

.product-price{display:flex;align-items:center;gap:8px}
.product-price-current{font-size:18px;font-weight:700;color:var(--brand-orange)}
.product-price-original{font-size:14px;color:var(--text-tertiary);text-decoration:line-through}

/* ========================================
   BLOG CARD
   ======================================== */
.blog-card{
  background:var(--surface);border-radius:12px;overflow:hidden;
  transition:transform .3s ease,box-shadow .3s ease}
.blog-card:hover{
  transform:translateY(-4px);box-shadow:var(--shadow-lg)}
.blog-image-wrap{
  position:relative;aspect-ratio:16/10;overflow:hidden}
.blog-image-wrap img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .5s ease}
.blog-card:hover .blog-image-wrap img{transform:scale(1.05)}
.blog-category-badge{
  position:absolute;bottom:12px;left:12px;
  padding:6px 12px;background:var(--brand-orange);
  color:#fff;font-size:12px;font-weight:600;border-radius:6px}
.blog-content{padding:20px}
.blog-meta{
  display:flex;align-items:center;gap:8px;
  font-size:13px;color:var(--text-tertiary);margin-bottom:10px;flex-wrap:wrap}
.blog-meta img{width:24px;height:24px;border-radius:50%;object-fit:cover}
.blog-title{
  font-size:18px;font-weight:600;color:var(--text-primary);
  line-height:1.4;margin-bottom:8px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  transition:color .2s ease}
.blog-title a{color:inherit;text-decoration:none}
.blog-card:hover .blog-title{color:var(--brand-orange)}
.blog-excerpt{
  font-size:14px;color:var(--text-secondary);line-height:1.6;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:12px}
.blog-read-more{
  display:inline-flex;align-items:center;gap:6px;
  font-size:14px;font-weight:500;color:var(--brand-orange);
  text-decoration:none}
.blog-read-more:hover{gap:10px}

/* Compact blog card */
.blog-card-compact{
  display:flex;gap:16px;padding:12px;border-radius:10px;
  transition:background .2s ease;text-decoration:none;
  color:inherit}
.blog-card-compact:hover{background:var(--surface-secondary);color:inherit;text-decoration:none}
.blog-card-compact img{
  width:80px;height:80px;border-radius:8px;object-fit:cover;flex-shrink:0}

/* ========================================
   PROMO BANNER
   ======================================== */
.promo-banner{background:#1E293B;padding:48px 0}
.promo-banner-inner{
  display:flex;align-items:center;justify-content:space-between;
  gap:32px;max-width:1440px;margin:0 auto;padding:0 24px}
.promo-label{
  font-size:13px;font-weight:600;color:#E9C46A;
  text-transform:uppercase;letter-spacing:.1em;margin-bottom:8px}
.promo-title{font-size:clamp(24px,3vw,36px);font-weight:700;color:#fff}

/* ========================================
   NEWSLETTER
   ======================================== */
.newsletter-section{
  background:var(--surface-secondary);padding:64px 0;text-align:center}
.newsletter-title{
  font-size:28px;font-weight:700;color:var(--text-primary);margin-bottom:12px}
.newsletter-desc{
  color:var(--text-secondary);margin-bottom:24px;
  max-width:500px;margin-left:auto;margin-right:auto}
.newsletter-form{
  display:flex;gap:12px;max-width:480px;margin:0 auto}
.newsletter-form input[type="email"]{
  flex:1;padding:14px 20px;border:1px solid var(--border-light);
  border-radius:8px;background:var(--surface);color:var(--text-primary);
  font-size:15px;outline:none;
  transition:border-color .2s ease,box-shadow .2s ease}
.newsletter-form input[type="email"]:focus{
  border-color:var(--brand-orange);box-shadow:var(--shadow-glow)}
.newsletter-form input[type="email"]::placeholder{color:var(--text-tertiary)}

/* ========================================
   PAGINATION
   ======================================== */
.pagination,.woocommerce-pagination{
  display:flex;align-items:center;justify-content:center;
  gap:8px;margin-top:48px}
.pagination a,.pagination .current,
.woocommerce-pagination a,.woocommerce-pagination .current{
  display:flex;align-items:center;justify-content:center;
  min-width:40px;height:40px;padding:0 12px;
  border-radius:8px;font-size:14px;font-weight:500;
  transition:all .2s ease;text-decoration:none}
.pagination a,.woocommerce-pagination a{
  background:var(--surface-secondary);color:var(--text-secondary)}
.pagination a:hover,.woocommerce-pagination a:hover{
  background:var(--brand-orange);color:#fff}
.pagination .current,.woocommerce-pagination .current{
  background:var(--brand-orange);color:#fff}

/* ========================================
   BREADCRUMBS
   ======================================== */
.breadcrumbs{
  display:flex;align-items:center;gap:8px;
  font-size:14px;color:var(--text-tertiary);margin-bottom:24px;flex-wrap:wrap}
.breadcrumbs a{color:var(--text-secondary);text-decoration:none}
.breadcrumbs a:hover{color:var(--brand-orange)}
.breadcrumbs .current{color:var(--text-primary)}
.breadcrumbs svg{width:16px;height:16px;flex-shrink:0}

/* ========================================
   FORMS
   ======================================== */
input[type="text"],input[type="email"],input[type="password"],
input[type="number"],input[type="tel"],input[type="url"],
input[type="search"],textarea,select{
  padding:12px 16px;border:1px solid var(--border-light);
  border-radius:8px;background:var(--surface);color:var(--text-primary);
  font-size:15px;font-family:inherit;
  transition:border-color .2s ease,box-shadow .2s ease;width:100%}
input:focus,textarea:focus,select:focus{
  border-color:var(--brand-orange);
  box-shadow:0 0 0 3px rgba(194,65,12,0.15);outline:none}
input::placeholder,textarea::placeholder{color:var(--text-tertiary)}

/* ========================================
   COMMENTS
   ======================================== */
.comments-area{margin-top:48px;padding-top:48px;border-top:1px solid var(--border-light)}
.comment-list{list-style:none;padding:0}
.comment-body{
  display:flex;gap:16px;padding:20px;margin-bottom:16px;
  background:var(--surface-secondary);border-radius:12px}
.comment-author{flex-shrink:0}
.comment-author img{width:40px;height:40px;border-radius:50%}
.comment-meta{
  display:flex;align-items:center;gap:12px;margin-bottom:8px;flex-wrap:wrap}
.comment-meta a{color:inherit;text-decoration:none}
.comment-content{color:var(--text-secondary);line-height:1.6}
.comment .reply{margin-top:12px}
.comment .reply a,.comment-reply-link{
  color:var(--brand-orange);font-size:13px;font-weight:500;text-decoration:none}

/* Comment form */
.comment-form{display:grid;gap:16px;margin-top:24px}
.comment-form input,.comment-form textarea{width:100%}
.comment-form .submit{
  justify-self:start;padding:12px 24px;
  background:var(--brand-orange);color:#fff;
  border:none;border-radius:8px;font-size:14px;font-weight:600;
  cursor:pointer;transition:opacity .2s ease}
.comment-form .submit:hover{opacity:.9}

/* ========================================
   WIDGETS
   ======================================== */
.widget{margin-bottom:32px}
.widget-title{
  font-size:14px;font-weight:600;text-transform:uppercase;
  letter-spacing:.05em;color:var(--text-primary);
  margin-bottom:16px;padding-bottom:12px;
  border-bottom:2px solid var(--border-light)}
.widget ul{list-style:none;padding:0}
.widget ul li{
  padding:8px 0;border-bottom:1px solid var(--border-light)}
.widget ul li a{
  color:var(--text-secondary);font-size:14px;text-decoration:none}
.widget ul li a:hover{color:var(--brand-orange)}

/* ========================================
   ENTRY CONTENT
   ======================================== */
.entry-content{
  color:var(--text-secondary);line-height:1.7}

/* ========================================
   WORDPRESS BLOCK ALIGNMENTS
   ======================================== */

/* Base alignments */
.alignleft{float:left;margin:0 24px 24px 0}
.alignright{float:right;margin:0 0 24px 24px}
.aligncenter{display:block;margin:0 auto 24px}

/* Wide - constrained wide width */
.alignwide{
  max-width:1440px;width:100%;margin-left:auto;margin-right:auto}

/* Full - breaks out to viewport edges */
.alignfull{
  max-width:none;width:100vw;
  margin-left:calc(-50vw + 50%);
  margin-right:calc(-50vw + 50%)}

/* ========================================
   PAGE LAYOUT WRAPPER
   ======================================== */
.page-layout-wrapper{
  padding:40px 24px}

/* ========================================
   UAGB COMPATIBILITY
   ======================================== */

/* Never constrain UAGB containers */
.wp-block-uagb-container,
.uagb-container,
.uagb-block-container,
.uagb-container-inner-blocks-wrap,
.wp-block-uagb-section,
.uagb-section{
  width:auto!important;
  max-width:none!important}

/* UAGB Grid - let it handle its own layout */
.uagb-grid{
  display:grid!important}

/* Don't constrain children of UAGB blocks */
.wp-block-uagb-container > *,
.uagb-container-inner-blocks-wrap > *,
.wp-block-uagb-section > *,
.uagb-section-inner-wrap > *{
  max-width:none}

/* UAGB columns - don't let theme flex override */
.uagb-columns{
  display:flex!important}

/* UAGB full-width inside entry-content */
.entry-content .uagb-container.alignfull,
.entry-content .wp-block-uagb-container.alignfull{
  width:100vw!important;
  max-width:none!important;
  margin-left:calc(-50vw + 50%)!important;
  margin-right:calc(-50vw + 50%)!important}

/* Ensure UAGB can calculate widths properly */
.entry-content .uagb-container,
.entry-content .wp-block-uagb-container{
  box-sizing:border-box}

/* UAGB nested containers must not be clipped */
.uagb-container__wrap,
.uagb-container__shape{
  max-width:none!important}

/* ========================================
   GUTENBERG BLOCK COMPATIBILITY
   ======================================== */

/* Group block - don't constrain when UAGB is inside */
.wp-block-group:has(.wp-block-uagb-container),
.wp-block-group:has(.uagb-container){
  max-width:none}

/* Columns - let UAGB columns be */
.wp-block-columns:has(.wp-block-uagb-container){
  max-width:none}

/* Don't let theme overflow hidden clip UAGB */
.wp-block-uagb-container,
.uagb-container{
  overflow:visible!important}
.entry-content h1,.entry-content h2,.entry-content h3,
.entry-content h4,.entry-content h5,.entry-content h6{
  color:var(--text-primary);margin:32px 0 16px}
.entry-content p{margin-bottom:20px}
.entry-content blockquote{
  border-left:4px solid var(--brand-orange);padding:16px 24px;
  margin:24px 0;background:var(--surface-tertiary);
  border-radius:0 8px 8px 0;font-style:italic}
.entry-content img{border-radius:12px;margin:24px 0}
.entry-content pre{
  background:var(--text-primary);color:var(--surface);
  padding:20px;border-radius:8px;overflow-x:auto;
  font-family:'Courier New',monospace;font-size:14px;line-height:1.6}
.entry-content code{
  background:var(--surface-tertiary);padding:2px 6px;
  border-radius:4px;font-family:'Courier New',monospace;font-size:14px}
.entry-content table{
  width:100%;border-collapse:collapse;margin:24px 0}
.entry-content th,.entry-content td{
  padding:12px 16px;border:1px solid var(--border-light);text-align:left}
.entry-content th{background:var(--surface-tertiary);font-weight:600;color:var(--text-primary)}

/* ========================================
   GRID UTILITIES
   ======================================== */
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}
.grid-5{grid-template-columns:repeat(5,1fr)}
.grid-6{grid-template-columns:repeat(6,1fr)}

@media(max-width:1023px){
  .grid-2,.grid-3,.grid-4,.grid-5,.grid-6{grid-template-columns:repeat(2,1fr)!important}
  .blog-grid{grid-template-columns:repeat(2,1fr)!important}
}
@media(max-width:639px){
  .grid-2,.grid-3,.grid-4,.grid-5,.grid-6{grid-template-columns:1fr!important}
  .blog-grid{grid-template-columns:1fr!important}
}

/* ========================================
   WOOCOMMERCE OVERRIDES
   ======================================== */
.woocommerce .quantity .qty{
  width:60px;text-align:center;padding:10px;
  border:1px solid var(--border-light);border-radius:8px}
.woocommerce-cart table.cart td,.woocommerce-cart table.cart th{
  padding:16px 0;border-bottom:1px solid var(--border-light)}
.woocommerce-cart .cart-collaterals{
  margin-top:32px}
.cart_totals{
  padding:24px;background:var(--surface-secondary);border-radius:16px}
.cart_totals h2{font-size:18px;font-weight:600;color:var(--text-primary);margin-bottom:16px}
.checkout-layout{display:grid;grid-template-columns:1.5fr 1fr;gap:48px}

/* WooCommerce tabs */
.woocommerce-tabs .tabs{
  display:flex;gap:24px;border-bottom:1px solid var(--border-light);margin-bottom:24px;list-style:none;padding:0}
.woocommerce-tabs .tabs li{padding-bottom:12px;font-size:14px;font-weight:500;cursor:pointer}
.woocommerce-tabs .tabs li.active{color:var(--brand-orange);border-bottom:2px solid var(--brand-orange)}
.woocommerce-tabs .tabs li a{color:inherit;text-decoration:none}

/* WooCommerce product grid */
.woocommerce .products{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(260px,1fr))!important;gap:24px!important;list-style:none!important;padding:0!important;margin:0!important}
.woocommerce .products::before,.woocommerce .products::after{display:none!important}
.woocommerce .products .product{float:none!important;width:100%!important;margin:0!important;clear:none!important}

/* My account */
.woocommerce-MyAccount-navigation ul{list-style:none;padding:0}
.woocommerce-MyAccount-navigation li{
  padding:10px 16px;border-radius:8px;margin-bottom:4px;
  transition:background .2s ease}
.woocommerce-MyAccount-navigation li:hover{background:var(--surface-secondary)}
.woocommerce-MyAccount-navigation li.is-active{
  background:rgba(194,65,12,0.08);color:var(--brand-orange);font-weight:500}
.woocommerce-MyAccount-navigation li a{color:inherit;text-decoration:none}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp{
  from{opacity:0;transform:translateY(20px)}
  to{opacity:1;transform:translateY(0)}}
@keyframes badgeBounce{
  0%,100%{transform:scale(1)}50%{transform:scale(1.3)}}
.animate-fade-in-up{animation:fadeInUp .5s ease forwards}
.cart-badge.bounce{animation:badgeBounce .3s ease}

/* ========================================
   WORDPRESS DEFAULTS
   ======================================== */
.alignleft{float:left;margin:0 24px 24px 0}
.alignright{float:right;margin:0 0 24px 24px}
.aligncenter{display:block;margin:0 auto 24px}
.wp-caption{max-width:100%;margin-bottom:24px}
.wp-caption-text{
  font-size:14px;color:var(--text-tertiary);margin-top:8px;text-align:center}
.gallery{display:grid;gap:16px;margin-bottom:24px}
.gallery-columns-2{grid-template-columns:repeat(2,1fr)}
.gallery-columns-3{grid-template-columns:repeat(3,1fr)}
.gallery-columns-4{grid-template-columns:repeat(4,1fr)}

/* Block editor alignment */
.wp-block-image img{border-radius:12px}
.wp-block-button__link{
  display:inline-flex;align-items:center;gap:8px;
  padding:14px 32px;font-size:16px;font-weight:600;
  border-radius:8px;border:none;cursor:pointer;
  transition:all .2s ease;text-decoration:none;
  background:var(--brand-orange);color:#fff}
.wp-block-button__link:hover{
  background:var(--brand-orange-hover);transform:translateY(-2px);color:#fff}

/* ========================================
   RESPONSIVE
   ======================================== */
@media(max-width:1023px){
  .site-sidebar{width:280px;transform:translateX(-100%);top:0!important;height:100vh!important;z-index:950}
  .site-sidebar.mobile-open{transform:translateX(0)}
  .tamfitronics-main{margin-left:0!important}
  .mobile-menu-toggle{display:flex}
  .header-search{display:none;position:absolute;top:64px;left:0;right:0;margin:0;max-width:none;padding:12px 16px;background:var(--surface);border-bottom:1px solid var(--border-light);z-index:999}
  .header-search.is-visible{display:block}
  .footer-grid{grid-template-columns:repeat(2,1fr)!important}
  .footer-widget-column{margin-bottom:24px}
  .hero-stats{grid-template-columns:repeat(2,1fr)}
  .categories-grid{grid-template-columns:repeat(3,1fr)}
  .shop-sidebar{display:none!important}
  .checkout-layout{grid-template-columns:1fr}

  /* UAGB: On mobile sidebar is hidden, use standard full width */
  body.has-sidebar .alignfull,
  body.has-sidebar .entry-content .alignfull,
  .alignfull,
  .entry-content .alignfull{
    width:100vw!important;
    margin-left:calc(-50vw + 50%)!important;
    margin-right:calc(-50vw + 50%)!important}

  /* UAGB containers full width on mobile */
  .wp-block-uagb-container,
  .uagb-container{
    width:100%!important}
}

@media(max-width:639px){
  .container{padding-left:16px;padding-right:16px}
  .section{padding:40px 0}
  .newsletter-section{padding:40px 0}
  .hero-title{font-size:32px}
  .hero-subtitle{font-size:16px}
  .hero-stats{grid-template-columns:repeat(2,1fr);gap:16px}
  .hero-stat-value{font-size:18px}
  .categories-grid{grid-template-columns:repeat(2,1fr)}
  .section-header{flex-direction:column;align-items:flex-start;gap:8px}
  .section-title{font-size:24px}
  .footer-grid{grid-template-columns:1fr;gap:32px}
  .footer-bottom{flex-direction:column;text-align:center}
  .products{grid-template-columns:1fr!important}
  .promo-banner-inner{flex-direction:column;text-align:center;gap:24px}
  .promo-title{font-size:24px}
  .newsletter-form{flex-direction:column}
  .btn{width:100%}
  .hero-buttons{flex-direction:column}
  .header-inner{gap:8px}
  .site-logo{font-size:18px}
  .pagination{flex-wrap:wrap}
  .checkout-layout{grid-template-columns:1fr;gap:24px}
  .comment-body{flex-direction:column}
}

@media(min-width:1441px){
  .container{max-width:1400px}
}

/* ========================================
   PRINT
   ======================================== */
@media print{
  .site-header,.site-sidebar,.site-footer,.product-actions,.product-add-cart,
  .hero-buttons,.theme-toggle,.sidebar-toggle,.mobile-menu-toggle{display:none!important}
  .tamfitronics-main{margin-left:0!important}
  body{background:#fff;color:#000}
}


/* ===== STRUCTURAL LAYOUT REBUILD FIX ===== */

/* Restore content width */
body .site,
body .site-content,
body .content-area,
body .site-main,
body main{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
}

body .site-main,
body .entry-content,
body article,
body .post,
body .page{
    max-width:1440px !important;
    width:calc(100% - 48px) !important;
    margin-left:auto !important;
    margin-right:auto !important;
}

/* Kill accidental left squeeze */
body .content-area,
body .primary,
body #primary,
body #main{
    flex:1 1 100% !important;
    width:100% !important;
    max-width:none !important;
}

/* UAGB compatibility */
.wp-block-uagb-container,
.uagb-container,
.uagb-block-container,
.uagb-container-inner-blocks-wrap{
    width:100% !important;
    max-width:none !important;
}

/* Gutenberg widths */
.alignwide{
    max-width:1440px !important;
    margin:auto !important;
}
.alignfull{
    width:100vw !important;
    max-width:100vw !important;
    margin-left:calc(50% - 50vw) !important;
}

/* Smooth grids */
.wp-block-columns,
.uagb-post-grid,
.products,
.category-grid{
    display:grid !important;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr)) !important;
    gap:24px !important;
}

/* Single posts should not be narrow */
.single-post .entry-content p,
.single .entry-content p{
    max-width:none !important;
}

/* Header alignment */
.site-header,
header{
    width:100% !important;
    left:0 !important;
    right:0 !important;
}

/* Fix giant icons */
svg{max-width:1.25em;}
.wp-block-uagb-icon img,
.contact-page img.icon{
    max-width:48px !important;
    height:auto !important;
}

/* Footer widgets */
.footer-widgets,
.footer-grid{
    display:grid !important;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr)) !important;
    gap:32px !important;
}
