/*
Theme Name: PrefabHouseUSA
Theme URI: https://prefabhouseusa.com
Author: PrefabHouseUSA Agency
Author URI: https://prefabhouseusa.com
Description: Premium enterprise WordPress theme for PrefabHouseUSA – Expandable Container Houses, Prefab Homes, Modular Homes, Tiny Homes, Portable Offices & Steel Buildings. Luxury, modern, ultra-fast, SEO-optimized, WooCommerce-ready, dark/light mode, fully customizable from the WordPress admin.
Version: 1.0.9
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: prefabhouseusa
Tags: e-commerce, woocommerce, custom-menu, featured-images, full-width-template, theme-options, translation-ready, block-styles, wide-blocks, editor-style, sticky-post

PrefabHouseUSA – Production theme built for maximum performance, Core Web Vitals, and conversion.
*/

/* ==========================================================================
   CSS Variables – Design System (Light + Dark)
   ========================================================================== */
:root {
  /* Brand Colors */
  --phu-primary: #001BB7;          /* Deep Blue */
  --phu-primary-hover: #00159A;
  --phu-secondary: #FF8040;        /* Orange CTA */
  --phu-secondary-hover: #E86F32;
  --phu-accent: #0046FF;           /* Bright Blue */
  --phu-accent-hover: #0039D4;
  --phu-accent: #1E4D8C;           /* Steel Blue */
  --phu-success: #0F7B3F;
  --phu-warning: #D97706;
  --phu-error: #B91C1C;

  /* Neutrals */
  --phu-white: #FFFFFF;
  --phu-off-white: #F8F9FA;
  --phu-gray-50: #F1F3F5;
  --phu-gray-100: #E9ECEF;
  --phu-gray-200: #DEE2E6;
  --phu-gray-300: #CED4DA;
  --phu-gray-400: #ADB5BD;
  --phu-gray-500: #6C757D;
  --phu-gray-600: #495057;
  --phu-gray-700: #343A40;
  --phu-gray-800: #212529;
  --phu-gray-900: #121417;
  --phu-black: #0A0A0A;

  /* Semantic */
  --phu-bg: var(--phu-white);
  --phu-bg-alt: var(--phu-off-white);
  --phu-bg-card: var(--phu-white);
  --phu-text: var(--phu-gray-900);
  --phu-text-secondary: var(--phu-gray-600);
  --phu-text-muted: var(--phu-gray-500);
  --phu-border: var(--phu-gray-200);
  --phu-border-strong: var(--phu-gray-300);
  --phu-shadow: 0 4px 24px rgba(0, 27, 183, 0.08);
  --phu-shadow-lg: 0 12px 48px rgba(0, 27, 183, 0.12);
  --phu-shadow-xl: 0 24px 64px rgba(0, 27, 183, 0.16);

  /* Typography */
  --phu-font-sans: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --phu-font-serif: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --phu-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Fluid Type Scale */
  --phu-text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --phu-text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 0.9375rem);
  --phu-text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --phu-text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  --phu-text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --phu-text-2xl: clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem);
  --phu-text-3xl: clamp(1.875rem, 1.5rem + 1.5vw, 2.25rem);
  --phu-text-4xl: clamp(2.25rem, 1.8rem + 2vw, 3rem);
  --phu-text-5xl: clamp(3rem, 2.2rem + 3vw, 3.75rem);
  --phu-text-6xl: clamp(3.75rem, 2.8rem + 4vw, 4.5rem);

  /* Spacing Scale */
  --phu-space-1: 0.25rem;
  --phu-space-2: 0.5rem;
  --phu-space-3: 0.75rem;
  --phu-space-4: 1rem;
  --phu-space-5: 1.25rem;
  --phu-space-6: 1.5rem;
  --phu-space-8: 2rem;
  --phu-space-10: 2.5rem;
  --phu-space-12: 3rem;
  --phu-space-16: 4rem;
  --phu-space-20: 5rem;
  --phu-space-24: 6rem;
  --phu-space-32: 8rem;

  /* Layout */
  --phu-container: 1280px;
  --phu-container-narrow: 960px;
  --phu-container-wide: 1440px;
  --phu-header-height: 80px;
  --phu-header-height-sticky: 68px;
  --phu-radius: 8px;
  --phu-radius-lg: 12px;
  --phu-radius-xl: 16px;
  --phu-radius-full: 9999px;

  /* Transitions */
  --phu-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --phu-transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --phu-ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Z-index */
  --phu-z-dropdown: 1000;
  --phu-z-sticky: 1020;
  --phu-z-fixed: 1030;
  --phu-z-modal-backdrop: 1040;
  --phu-z-modal: 1050;
  --phu-z-popover: 1060;
  --phu-z-tooltip: 1070;
}

/* Dark Mode */
[data-theme="dark"] {
  --phu-bg: #0B1120;
  --phu-bg-alt: #111827;
  --phu-bg-card: #1F2937;
  --phu-text: #F9FAFB;
  --phu-text-secondary: #D1D5DB;
  --phu-text-muted: #9CA3AF;
  --phu-border: #374151;
  --phu-border-strong: #4B5563;
  --phu-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --phu-shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.5);
  --phu-shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.6);
  --phu-primary: #0046FF;
  --phu-primary-hover: #336BFF;
  --phu-secondary: #FF8040;
  --phu-secondary-hover: #FF9A66;
  --phu-accent: #0046FF;
  --phu-accent-hover: #336BFF;
}

/* Auto dark mode preference */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --phu-bg: #0B1120;
    --phu-bg-alt: #111827;
    --phu-bg-card: #1F2937;
    --phu-text: #F9FAFB;
    --phu-text-secondary: #D1D5DB;
    --phu-text-muted: #9CA3AF;
    --phu-border: #374151;
    --phu-border-strong: #4B5563;
    --phu-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --phu-shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.5);
    --phu-shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.6);
    --phu-primary: #3B82F6;
    --phu-primary-hover: #2563EB;
    --phu-secondary: #FBBF24;
    --phu-secondary-hover: #F59E0B;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  hanging-punctuation: first last;
}

body {
  font-family: var(--phu-font-sans);
  font-size: var(--phu-text-base);
  line-height: 1.6;
  color: var(--phu-text);
  background-color: var(--phu-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--phu-transition), color var(--phu-transition);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  object-fit: cover;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--phu-transition);
}

a:hover {
  color: var(--phu-secondary);
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--phu-font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--phu-text);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--phu-text-5xl); }
h2 { font-size: var(--phu-text-4xl); }
h3 { font-size: var(--phu-text-3xl); }
h4 { font-size: var(--phu-text-2xl); }
h5 { font-size: var(--phu-text-xl); }
h6 { font-size: var(--phu-text-lg); }

p {
  margin-bottom: var(--phu-space-4);
  color: var(--phu-text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

strong, b {
  font-weight: 600;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
.phu-skip-link {
  position: absolute;
  top: -100%;
  left: var(--phu-space-4);
  z-index: 9999;
  padding: var(--phu-space-3) var(--phu-space-6);
  background: var(--phu-primary);
  color: var(--phu-white);
  font-weight: 600;
  border-radius: var(--phu-radius);
  transition: top var(--phu-transition);
}

.phu-skip-link:focus {
  top: var(--phu-space-4);
}

:focus-visible {
  outline: 2px solid var(--phu-secondary);
  outline-offset: 3px;
}

.phu-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */
.phu-container {
  width: 100%;
  max-width: var(--phu-container);
  margin-inline: auto;
  padding-inline: var(--phu-space-5);
}

.phu-container-narrow {
  max-width: var(--phu-container-narrow);
}

.phu-container-wide {
  max-width: var(--phu-container-wide);
}

.phu-section {
  padding-block: var(--phu-space-20);
}

.phu-section-sm {
  padding-block: var(--phu-space-12);
}

.phu-section-lg {
  padding-block: var(--phu-space-32);
}

@media (max-width: 768px) {
  .phu-section {
    padding-block: var(--phu-space-12);
  }
  .phu-section-lg {
    padding-block: var(--phu-space-16);
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.phu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--phu-space-2);
  padding: 0.875rem 1.75rem;
  font-size: var(--phu-text-sm);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  border-radius: var(--phu-radius);
  border: 2px solid transparent;
  transition: all var(--phu-transition);
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.phu-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--phu-transition);
}

.phu-btn:hover::before {
  opacity: 1;
}

.phu-btn-primary {
  background: var(--phu-primary);
  color: var(--phu-white);
  border-color: var(--phu-primary);
}

.phu-btn-primary:hover {
  background: var(--phu-primary-hover);
  border-color: var(--phu-primary-hover);
  color: var(--phu-white);
  transform: translateY(-1px);
  box-shadow: var(--phu-shadow);
}

.phu-btn-secondary {
  background: var(--phu-secondary);
  color: var(--phu-gray-900);
  border-color: var(--phu-secondary);
}

.phu-btn-secondary:hover {
  background: var(--phu-secondary-hover);
  border-color: var(--phu-secondary-hover);
  color: var(--phu-gray-900);
  transform: translateY(-1px);
  box-shadow: var(--phu-shadow);
}

.phu-btn-outline {
  background: transparent;
  color: var(--phu-primary);
  border-color: var(--phu-primary);
}

.phu-btn-outline:hover {
  background: var(--phu-primary);
  color: var(--phu-white);
}

.phu-btn-ghost {
  background: transparent;
  color: var(--phu-text);
  border-color: transparent;
}

.phu-btn-ghost:hover {
  background: var(--phu-gray-100);
  color: var(--phu-primary);
}

[data-theme="dark"] .phu-btn-ghost:hover {
  background: var(--phu-gray-800);
}

.phu-btn-lg {
  padding: 1.125rem 2.25rem;
  font-size: var(--phu-text-base);
}

.phu-btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: var(--phu-text-xs);
}

.phu-btn-full {
  width: 100%;
}

.phu-btn:disabled,
.phu-btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Dual CTA buttons on product pages */
.phu-product-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--phu-space-4);
  margin-top: var(--phu-space-6);
}

.phu-product-ctas .phu-btn {
  flex: 1 1 200px;
  min-width: 180px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.phu-header {
  position: sticky;
  top: 0;
  z-index: var(--phu-z-sticky);
  background: var(--phu-bg);
  border-bottom: 1px solid var(--phu-border);
  transition: all var(--phu-transition-slow);
  height: var(--phu-header-height);
}

.phu-header.is-sticky {
  height: var(--phu-header-height-sticky);
  box-shadow: var(--phu-shadow);
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--phu-bg) 92%, transparent);
}

.phu-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--phu-space-6);
}

.phu-logo {
  display: flex;
  align-items: center;
  gap: var(--phu-space-3);
  flex-shrink: 0;
}

.phu-logo img {
  height: 42px;
  width: auto;
}

.phu-logo-text {
  font-family: var(--phu-font-serif);
  font-size: var(--phu-text-xl);
  font-weight: 700;
  color: var(--phu-primary);
  letter-spacing: -0.03em;
}

.phu-logo-text span {
  color: var(--phu-secondary);
}

/* Navigation */
.phu-nav {
  display: flex;
  align-items: center;
  gap: var(--phu-space-1);
}

.phu-nav-list {
  display: flex;
  align-items: center;
  gap: var(--phu-space-1);
}

.phu-nav-item {
  position: relative;
}

.phu-nav-link {
  display: flex;
  align-items: center;
  gap: var(--phu-space-1);
  padding: var(--phu-space-3) var(--phu-space-4);
  font-size: var(--phu-text-sm);
  font-weight: 500;
  color: var(--phu-text);
  border-radius: var(--phu-radius);
  transition: all var(--phu-transition);
}

.phu-nav-link:hover,
.phu-nav-item.is-active > .phu-nav-link {
  color: var(--phu-primary);
  background: var(--phu-gray-50);
}

[data-theme="dark"] .phu-nav-link:hover,
[data-theme="dark"] .phu-nav-item.is-active > .phu-nav-link {
  background: var(--phu-gray-800);
}

/* Mega Menu */
.phu-mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 720px;
  background: var(--phu-bg-card);
  border: 1px solid var(--phu-border);
  border-radius: var(--phu-radius-lg);
  box-shadow: var(--phu-shadow-xl);
  padding: var(--phu-space-8);
  opacity: 0;
  visibility: hidden;
  transition: all var(--phu-transition-slow);
  z-index: var(--phu-z-dropdown);
}

.phu-nav-item:hover > .phu-mega-menu,
.phu-nav-item:focus-within > .phu-mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.phu-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--phu-space-8);
}

.phu-mega-col h4 {
  font-family: var(--phu-font-sans);
  font-size: var(--phu-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--phu-secondary);
  margin-bottom: var(--phu-space-4);
}

.phu-mega-col a {
  display: block;
  padding: var(--phu-space-2) 0;
  font-size: var(--phu-text-sm);
  color: var(--phu-text-secondary);
  transition: color var(--phu-transition), padding-left var(--phu-transition);
}

.phu-mega-col a:hover {
  color: var(--phu-primary);
  padding-left: var(--phu-space-2);
}

/* Header Actions */
.phu-header-actions {
  display: flex;
  align-items: center;
  gap: var(--phu-space-3);
}

.phu-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--phu-radius);
  color: var(--phu-text);
  transition: all var(--phu-transition);
  position: relative;
}

.phu-header-icon:hover {
  background: var(--phu-gray-100);
  color: var(--phu-primary);
}

[data-theme="dark"] .phu-header-icon:hover {
  background: var(--phu-gray-800);
}

.phu-cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  background: var(--phu-secondary);
  color: var(--phu-gray-900);
  border-radius: var(--phu-radius-full);
}

/* Theme Toggle */
.phu-theme-toggle {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--phu-radius);
  color: var(--phu-text);
  transition: all var(--phu-transition);
}

.phu-theme-toggle:hover {
  background: var(--phu-gray-100);
}

[data-theme="dark"] .phu-theme-toggle:hover {
  background: var(--phu-gray-800);
}

/* Mobile Menu Toggle */
.phu-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10002;
}

.phu-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--phu-text);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.phu-mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.phu-mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.phu-mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Mobile Navigation
   ========================================================================== */
.phu-mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10001;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 1.25rem 1.5rem 2rem;
  visibility: hidden;
  pointer-events: none;
}

.phu-mobile-nav.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

[data-theme="dark"] .phu-mobile-nav {
  background: var(--phu-bg, #0B1220);
}

.phu-mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--phu-border, #E9E9E9);
}

.phu-mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.phu-mobile-nav-list .phu-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.phu-mobile-nav-list .phu-nav-list > li {
  border-bottom: 1px solid var(--phu-border, #E9E9E9);
}

.phu-mobile-nav-list .phu-nav-list > li > a,
.phu-mobile-nav-list .phu-nav-link,
.phu-mobile-nav-list a {
  display: block;
  padding: 1rem 0.25rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--phu-text, #121417);
  text-decoration: none;
}

.phu-mobile-nav-list a:hover {
  color: var(--phu-primary, #001BB7);
}

.phu-mobile-nav-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.phu-mobile-menu-open {
  overflow: hidden;
}

@media (max-width: 991px) {
  .phu-nav {
    display: none !important;
  }
  .phu-mobile-toggle {
    display: flex !important;
  }
  .phu-header-actions .phu-btn-quote {
    display: none;
  }
}

@media (min-width: 992px) {
  .phu-mobile-toggle {
    display: none !important;
  }
  .phu-mobile-nav {
    display: none !important;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.phu-hero {
  position: relative;
  min-height: clamp(560px, 85vh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--phu-primary);
  color: var(--phu-white);
}

.phu-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.phu-hero-bg img,
.phu-hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phu-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 27, 183, 0.92) 0%,
    rgba(0, 27, 183, 0.75) 40%,
    rgba(0, 27, 183, 0.55) 100%
  );
  z-index: 1;
}

.phu-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-block: var(--phu-space-20);
}

.phu-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--phu-space-2);
  padding: var(--phu-space-2) var(--phu-space-4);
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: var(--phu-radius-full);
  font-size: var(--phu-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--phu-secondary);
  margin-bottom: var(--phu-space-6);
}

.phu-hero h1 {
  color: var(--phu-white);
  margin-bottom: var(--phu-space-6);
  font-size: var(--phu-text-5xl);
}

.phu-hero h1 span {
  color: var(--phu-secondary);
}

.phu-hero-lead {
  font-size: var(--phu-text-xl);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--phu-space-8);
  line-height: 1.5;
}

.phu-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--phu-space-4);
  margin-bottom: var(--phu-space-10);
}

.phu-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--phu-space-8);
  padding-top: var(--phu-space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.phu-hero-stat strong {
  display: block;
  font-family: var(--phu-font-serif);
  font-size: var(--phu-text-3xl);
  color: var(--phu-secondary);
  line-height: 1.1;
}

.phu-hero-stat span {
  font-size: var(--phu-text-sm);
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Sections Common
   ========================================================================== */
.phu-section-header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--phu-space-12);
}

.phu-section-header .phu-eyebrow {
  display: inline-block;
  font-size: var(--phu-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--phu-secondary);
  margin-bottom: var(--phu-space-3);
}

.phu-section-header h2 {
  margin-bottom: var(--phu-space-4);
}

.phu-section-header p {
  font-size: var(--phu-text-lg);
}

/* ==========================================================================
   Product Cards
   ========================================================================== */
.phu-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--phu-space-8);
}

.phu-product-card {
  background: var(--phu-bg-card);
  border: 1px solid var(--phu-border);
  border-radius: var(--phu-radius-lg);
  overflow: hidden;
  transition: all var(--phu-transition-slow);
  display: flex;
  flex-direction: column;
}

.phu-product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--phu-shadow-lg);
  border-color: var(--phu-secondary);
}

.phu-product-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e9ecef;
  min-height: 200px;
}

.phu-product-card-image-link {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.phu-product-card-image img,
.phu-product-card-image .phu-product-card-img {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: transform 0.5s ease;
}

.phu-product-card:hover .phu-product-card-image img {
  transform: scale(1.05);
}

.phu-product-card-no-image {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #868e96;
  font-size: 0.875rem;
  background: #e9ecef;
}

/* WooCommerce default product loop images */
ul.products li.product img,
ul.products .woocommerce-loop-product__link img,
.woocommerce ul.products li.product a img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  object-fit: cover;
}

/* Single product gallery */
.woocommerce-product-gallery,
.phu-product-gallery-col .woocommerce-product-gallery {
  position: relative;
  width: 100% !important;
  opacity: 1 !important;
  visibility: visible !important;
  float: none !important;
  margin: 0 !important;
}

.woocommerce-product-gallery__wrapper {
  margin: 0;
}

.woocommerce-product-gallery__image,
.woocommerce-product-gallery__image--placeholder {
  width: 100% !important;
  margin: 0 !important;
}

.woocommerce-product-gallery__image img,
.woocommerce-product-gallery__image--placeholder img,
.phu-product-gallery-col img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  border-radius: 12px;
  object-fit: cover;
}

.woocommerce-product-gallery .flex-control-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding: 0;
  list-style: none;
}

.woocommerce-product-gallery .flex-control-thumbs li {
  width: 72px;
  height: 72px;
  margin: 0;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 1 !important;
}

.woocommerce-product-gallery .flex-control-thumbs li.flex-active,
.woocommerce-product-gallery .flex-control-thumbs li:hover {
  border-color: var(--phu-secondary, #C9A227);
}

.woocommerce-product-gallery .flex-control-thumbs img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block !important;
  opacity: 1 !important;
}

/* Ensure summary images never hidden */
.phu-single-product img,
.single-product img.wp-post-image,
.single-product .wp-post-image {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}


.phu-product-card-badge {
  position: absolute;
  top: var(--phu-space-4);
  left: var(--phu-space-4);
  padding: var(--phu-space-1) var(--phu-space-3);
  background: var(--phu-secondary);
  color: var(--phu-gray-900);
  font-size: var(--phu-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--phu-radius);
  z-index: 2;
}

.phu-product-card-wishlist {
  position: absolute;
  top: var(--phu-space-4);
  right: var(--phu-space-4);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--phu-white);
  border-radius: var(--phu-radius-full);
  color: var(--phu-gray-600);
  box-shadow: var(--phu-shadow);
  opacity: 0;
  transform: translateY(-8px);
  transition: all var(--phu-transition);
  z-index: 2;
}

.phu-product-card:hover .phu-product-card-wishlist {
  opacity: 1;
  transform: translateY(0);
}

.phu-product-card-wishlist:hover,
.phu-product-card-wishlist.is-active {
  color: var(--phu-error);
  background: #FEF2F2;
}

.phu-product-card-body {
  padding: var(--phu-space-6);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.phu-product-card-category {
  font-size: var(--phu-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--phu-secondary);
  margin-bottom: var(--phu-space-2);
}

.phu-product-card-title {
  font-family: var(--phu-font-serif);
  font-size: var(--phu-text-xl);
  font-weight: 600;
  margin-bottom: var(--phu-space-3);
  line-height: 1.3;
}

.phu-product-card-title a:hover {
  color: var(--phu-primary);
}

.phu-product-card-excerpt {
  font-size: var(--phu-text-sm);
  color: var(--phu-text-muted);
  margin-bottom: var(--phu-space-4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.phu-product-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--phu-space-4);
  border-top: 1px solid var(--phu-border);
}

.phu-product-card-price {
  font-family: var(--phu-font-serif);
  font-size: var(--phu-text-xl);
  font-weight: 700;
  color: var(--phu-primary);
}

.phu-product-card-price del {
  font-size: var(--phu-text-sm);
  color: var(--phu-text-muted);
  font-weight: 400;
  margin-right: var(--phu-space-2);
}

.phu-product-card-rating {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: var(--phu-text-sm);
  color: var(--phu-secondary);
}

/* ==========================================================================
   Features / Why Us
   ========================================================================== */
.phu-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--phu-space-8);
}

.phu-feature-card {
  text-align: center;
  padding: var(--phu-space-8);
  background: var(--phu-bg-card);
  border: 1px solid var(--phu-border);
  border-radius: var(--phu-radius-lg);
  transition: all var(--phu-transition);
}

.phu-feature-card:hover {
  border-color: var(--phu-secondary);
  box-shadow: var(--phu-shadow);
}

.phu-feature-icon {
  width: 64px;
  height: 64px;
  margin-inline: auto;
  margin-bottom: var(--phu-space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.12), rgba(30, 77, 140, 0.12));
  border-radius: var(--phu-radius-lg);
  color: var(--phu-secondary);
  font-size: 1.75rem;
}

.phu-feature-card h3 {
  font-family: var(--phu-font-sans);
  font-size: var(--phu-text-lg);
  font-weight: 600;
  margin-bottom: var(--phu-space-3);
}

/* ==========================================================================
   Projects / Gallery
   ========================================================================== */
.phu-projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--phu-space-5);
}

.phu-project-card {
  position: relative;
  border-radius: var(--phu-radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.phu-project-card:nth-child(1) { grid-column: span 7; }
.phu-project-card:nth-child(2) { grid-column: span 5; }
.phu-project-card:nth-child(3) { grid-column: span 4; }
.phu-project-card:nth-child(4) { grid-column: span 4; }
.phu-project-card:nth-child(5) { grid-column: span 4; }

.phu-project-card img {
  width: 100%;
  height: 100%;
  transition: transform 0.6s var(--phu-ease-out);
}

.phu-project-card:hover img {
  transform: scale(1.08);
}

.phu-project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 27, 183, 0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--phu-space-6);
  opacity: 0;
  transition: opacity var(--phu-transition);
}

.phu-project-card:hover .phu-project-overlay {
  opacity: 1;
}

.phu-project-overlay h3 {
  color: var(--phu-white);
  font-size: var(--phu-text-xl);
  margin-bottom: var(--phu-space-1);
}

.phu-project-overlay span {
  color: var(--phu-secondary);
  font-size: var(--phu-text-sm);
  font-weight: 500;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.phu-testimonials-slider {
  position: relative;
}

.phu-testimonial-card {
  background: var(--phu-bg-card);
  border: 1px solid var(--phu-border);
  border-radius: var(--phu-radius-xl);
  padding: var(--phu-space-10);
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
}

.phu-testimonial-stars {
  color: var(--phu-secondary);
  font-size: var(--phu-text-xl);
  margin-bottom: var(--phu-space-5);
  letter-spacing: 2px;
}

.phu-testimonial-text {
  font-family: var(--phu-font-serif);
  font-size: var(--phu-text-2xl);
  font-style: italic;
  line-height: 1.5;
  color: var(--phu-text);
  margin-bottom: var(--phu-space-8);
}

.phu-testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--phu-space-4);
}

.phu-testimonial-author img {
  width: 56px;
  height: 56px;
  border-radius: var(--phu-radius-full);
  object-fit: cover;
  border: 2px solid var(--phu-secondary);
}

.phu-testimonial-author-info strong {
  display: block;
  font-weight: 600;
}

.phu-testimonial-author-info span {
  font-size: var(--phu-text-sm);
  color: var(--phu-text-muted);
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.phu-cta-banner {
  background: linear-gradient(135deg, var(--phu-primary) 0%, #0F3A66 100%);
  color: var(--phu-white);
  border-radius: var(--phu-radius-xl);
  padding: var(--phu-space-16) var(--phu-space-10);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.phu-cta-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.phu-cta-banner h2 {
  color: var(--phu-white);
  margin-bottom: var(--phu-space-4);
}

.phu-cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--phu-text-lg);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: var(--phu-space-8);
}

/* ==========================================================================
   Blog Cards
   ========================================================================== */
.phu-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--phu-space-8);
}

.phu-blog-card {
  background: var(--phu-bg-card);
  border: 1px solid var(--phu-border);
  border-radius: var(--phu-radius-lg);
  overflow: hidden;
  transition: all var(--phu-transition);
  display: flex;
  flex-direction: column;
}

.phu-blog-card:hover {
  box-shadow: var(--phu-shadow-lg);
  transform: translateY(-4px);
}

.phu-blog-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.phu-blog-card-image img {
  width: 100%;
  height: 100%;
  transition: transform 0.5s var(--phu-ease-out);
}

.phu-blog-card:hover .phu-blog-card-image img {
  transform: scale(1.05);
}

.phu-blog-card-body {
  padding: var(--phu-space-6);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.phu-blog-card-meta {
  display: flex;
  align-items: center;
  gap: var(--phu-space-4);
  font-size: var(--phu-text-xs);
  color: var(--phu-text-muted);
  margin-bottom: var(--phu-space-3);
}

.phu-blog-card-title {
  font-family: var(--phu-font-serif);
  font-size: var(--phu-text-xl);
  margin-bottom: var(--phu-space-3);
  line-height: 1.3;
}

.phu-blog-card-excerpt {
  font-size: var(--phu-text-sm);
  color: var(--phu-text-muted);
  margin-bottom: var(--phu-space-5);
  flex-grow: 1;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.phu-footer {
  background: var(--phu-gray-900);
  color: var(--phu-gray-300);
  padding-top: var(--phu-space-20);
}

[data-theme="dark"] .phu-footer {
  background: #060A12;
}

.phu-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--phu-space-12);
  margin-bottom: var(--phu-space-16);
}

.phu-footer-brand .phu-logo-text {
  color: var(--phu-white);
  margin-bottom: var(--phu-space-4);
  display: block;
}

.phu-footer-brand p {
  color: var(--phu-gray-400);
  font-size: var(--phu-text-sm);
  margin-bottom: var(--phu-space-6);
  max-width: 320px;
}

.phu-footer-social {
  display: flex;
  gap: var(--phu-space-3);
}

.phu-footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--phu-radius);
  color: var(--phu-gray-300);
  transition: all var(--phu-transition);
}

.phu-footer-social a:hover {
  background: var(--phu-secondary);
  color: var(--phu-gray-900);
}

.phu-footer-col h4 {
  font-family: var(--phu-font-sans);
  font-size: var(--phu-text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--phu-white);
  margin-bottom: var(--phu-space-5);
}

.phu-footer-col ul li {
  margin-bottom: var(--phu-space-3);
}

.phu-footer-col a {
  font-size: var(--phu-text-sm);
  color: var(--phu-gray-400);
  transition: color var(--phu-transition), padding-left var(--phu-transition);
}

.phu-footer-col a:hover {
  color: var(--phu-secondary);
  padding-left: var(--phu-space-1);
}

.phu-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: var(--phu-space-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--phu-space-4);
  font-size: var(--phu-text-sm);
  color: var(--phu-gray-500);
}

.phu-footer-bottom-links {
  display: flex;
  gap: var(--phu-space-6);
}

.phu-footer-bottom-links a {
  color: var(--phu-gray-500);
}

.phu-footer-bottom-links a:hover {
  color: var(--phu-secondary);
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.phu-breadcrumbs {
  padding-block: var(--phu-space-4);
  font-size: var(--phu-text-sm);
  color: var(--phu-text-muted);
}

.phu-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--phu-space-2);
}

.phu-breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: var(--phu-space-2);
  color: var(--phu-gray-400);
}

.phu-breadcrumbs a:hover {
  color: var(--phu-primary);
}

.phu-breadcrumbs [aria-current="page"] {
  color: var(--phu-text);
  font-weight: 500;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.phu-form-group {
  margin-bottom: var(--phu-space-5);
}

.phu-form-label {
  display: block;
  font-size: var(--phu-text-sm);
  font-weight: 600;
  margin-bottom: var(--phu-space-2);
  color: var(--phu-text);
}

.phu-form-input,
.phu-form-select,
.phu-form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: var(--phu-text-base);
  background: var(--phu-bg);
  border: 1px solid var(--phu-border);
  border-radius: var(--phu-radius);
  color: var(--phu-text);
  transition: border-color var(--phu-transition), box-shadow var(--phu-transition);
}

.phu-form-input:focus,
.phu-form-select:focus,
.phu-form-textarea:focus {
  outline: none;
  border-color: var(--phu-primary);
  box-shadow: 0 0 0 3px rgba(0, 27, 183, 0.12);
}

[data-theme="dark"] .phu-form-input:focus,
[data-theme="dark"] .phu-form-select:focus,
[data-theme="dark"] .phu-form-textarea:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.phu-form-textarea {
  min-height: 140px;
  resize: vertical;
}

.phu-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--phu-space-5);
}

/* ==========================================================================
   AJAX Search
   ========================================================================== */
.phu-search-modal {
  position: fixed;
  inset: 0;
  z-index: var(--phu-z-modal);
  background: rgba(0, 27, 183, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  opacity: 0;
  visibility: hidden;
  transition: all var(--phu-transition);
}

.phu-search-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.phu-search-box {
  width: 100%;
  max-width: 680px;
  background: var(--phu-bg-card);
  border-radius: var(--phu-radius-xl);
  box-shadow: var(--phu-shadow-xl);
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform var(--phu-transition-slow);
}

.phu-search-modal.is-open .phu-search-box {
  transform: translateY(0);
}

.phu-search-input-wrap {
  display: flex;
  align-items: center;
  padding: var(--phu-space-5) var(--phu-space-6);
  border-bottom: 1px solid var(--phu-border);
}

.phu-search-input-wrap svg {
  flex-shrink: 0;
  color: var(--phu-text-muted);
  margin-right: var(--phu-space-4);
}

.phu-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: var(--phu-text-lg);
  color: var(--phu-text);
  outline: none;
}

.phu-search-results {
  max-height: 400px;
  overflow-y: auto;
  padding: var(--phu-space-3);
}

.phu-search-result-item {
  display: flex;
  align-items: center;
  gap: var(--phu-space-4);
  padding: var(--phu-space-3) var(--phu-space-4);
  border-radius: var(--phu-radius);
  transition: background var(--phu-transition);
}

.phu-search-result-item:hover {
  background: var(--phu-gray-50);
}

[data-theme="dark"] .phu-search-result-item:hover {
  background: var(--phu-gray-800);
}

.phu-search-result-item img {
  width: 48px;
  height: 48px;
  border-radius: var(--phu-radius);
  object-fit: cover;
}

/* ==========================================================================
   WooCommerce Compatibility (Base)
   ========================================================================== */
.woocommerce .quantity .qty {
  width: 80px;
  text-align: center;
  padding: 0.75rem;
  border: 1px solid var(--phu-border);
  border-radius: var(--phu-radius);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: var(--phu-radius);
  border-left-width: 4px;
  padding: var(--phu-space-4) var(--phu-space-5);
  margin-bottom: var(--phu-space-6);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes phu-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.phu-animate {
  animation: phu-fade-in-up 0.6s var(--phu-ease-out) both;
}

.phu-animate-delay-1 { animation-delay: 0.1s; }
.phu-animate-delay-2 { animation-delay: 0.2s; }
.phu-animate-delay-3 { animation-delay: 0.3s; }
.phu-animate-delay-4 { animation-delay: 0.4s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .phu-nav {
    display: none;
  }

  .phu-mobile-toggle {
    display: flex;
  }

  .phu-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .phu-project-card:nth-child(1),
  .phu-project-card:nth-child(2),
  .phu-project-card:nth-child(3),
  .phu-project-card:nth-child(4),
  .phu-project-card:nth-child(5) {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .phu-hero h1 {
    font-size: var(--phu-text-4xl);
  }

  .phu-hero-stats {
    gap: var(--phu-space-5);
  }

  .phu-form-row {
    grid-template-columns: 1fr;
  }

  .phu-footer-grid {
    grid-template-columns: 1fr;
    gap: var(--phu-space-8);
  }

  .phu-project-card:nth-child(n) {
    grid-column: span 12;
  }

  .phu-products-grid {
    grid-template-columns: 1fr;
  }

  .phu-header-actions .phu-btn {
    display: none;
  }
}

@media (max-width: 480px) {
  .phu-hero-ctas {
    flex-direction: column;
  }

  .phu-hero-ctas .phu-btn {
    width: 100%;
  }

  .phu-product-ctas {
    flex-direction: column;
  }
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
  .phu-header,
  .phu-footer,
  .phu-mobile-nav,
  .phu-search-modal {
    display: none !important;
  }
}

/* ==========================================================================
   WordPress Core Alignment
   ========================================================================== */
.alignwide {
  max-width: var(--phu-container-wide);
  margin-inline: auto;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

.wp-block-image figcaption {
  font-size: var(--phu-text-sm);
  color: var(--phu-text-muted);
  text-align: center;
  margin-top: var(--phu-space-2);
}
/* ==========================================================================
   Product Page – UI/UX aligned layout
   ========================================================================== */
.phu-single-product {
  padding-bottom: 3rem;
}

.phu-single-product-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 2.5rem !important;
  align-items: start !important;
}

.phu-product-gallery-col {
  position: sticky;
  top: 100px;
}

.phu-product-gallery-col .woocommerce-product-gallery {
  width: 100% !important;
  opacity: 1 !important;
  float: none !important;
}

.phu-product-gallery-col img {
  border-radius: 12px;
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

.phu-product-summary-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.phu-product-summary-col .product_title,
.phu-single-product .product_title,
.phu-product-summary-col h1 {
  font-family: "Roboto", sans-serif !important;
  font-size: clamp(1.75rem, 3vw, 2.25rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: var(--phu-primary, #001BB7) !important;
  margin: 0 0 0.5rem !important;
  letter-spacing: -0.02em;
}

.phu-product-summary-col .price {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: var(--phu-text, #121417) !important;
  margin: 0.25rem 0 1rem !important;
}

.phu-product-summary-col .price del {
  opacity: 0.55;
  font-size: 1rem;
  margin-right: 0.5rem;
}

.phu-product-summary-col .price ins {
  text-decoration: none;
  color: var(--phu-secondary, #FF8040);
}

/* Dual CTAs */
.phu-product-ctas,
.phu-dual-ctas {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.75rem !important;
  margin: 1rem 0 1.25rem !important;
}

.phu-product-ctas .button,
.phu-product-ctas .phu-btn,
.phu-dual-ctas .phu-btn,
.single_add_to_cart_button {
  flex: 1 1 160px;
  min-height: 48px;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem !important;
}

.phu-btn-primary,
.single_add_to_cart_button,
.phu-product-ctas .button.alt {
  background: var(--phu-primary, #001BB7) !important;
  border-color: var(--phu-primary, #001BB7) !important;
  color: #fff !important;
}

.phu-btn-primary:hover,
.single_add_to_cart_button:hover {
  background: var(--phu-primary-hover, #00159A) !important;
}

.phu-btn-secondary,
.phu-get-quote-btn,
.phu-btn-quote {
  background: var(--phu-secondary, #FF8040) !important;
  border-color: var(--phu-secondary, #FF8040) !important;
  color: #fff !important;
}

.phu-btn-secondary:hover,
.phu-get-quote-btn:hover {
  background: var(--phu-secondary-hover, #E86F32) !important;
}

/* Quick specs */
.phu-quick-specs {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 0.75rem !important;
  margin-top: 1.25rem !important;
  padding: 1rem 1.25rem !important;
  background: #E9E9E9 !important;
  border-radius: 12px !important;
  text-align: center;
}

.phu-quick-spec strong {
  display: block;
  font-size: 1.15rem !important;
  font-weight: 700;
  color: var(--phu-primary, #001BB7) !important;
  line-height: 1.2;
}

.phu-quick-spec span {
  font-size: 0.7rem !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6c757d;
}

/* Trust line */
.phu-product-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 0.75rem;
}

/* Tabs */
.woocommerce-tabs {
  margin-top: 2.5rem;
}

.woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 2px solid #E9E9E9;
  padding: 0;
  margin: 0 0 1.5rem;
  list-style: none;
}

.woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

.woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 0.85rem 1.25rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: #6c757d;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  text-decoration: none;
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
  color: var(--phu-primary, #001BB7);
  border-bottom-color: var(--phu-primary, #001BB7);
}

.woocommerce-Tabs-panel h2 {
  font-size: 1.35rem !important;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem;
  color: var(--phu-primary, #001BB7);
}

.woocommerce-Tabs-panel p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--phu-text-secondary, #495057);
  margin-bottom: 1rem;
}

/* Specs table */
.phu-specs-table,
.shop_attributes {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 2rem;
}

.phu-specs-table th,
.phu-specs-table td,
.shop_attributes th,
.shop_attributes td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid #E9E9E9;
  font-size: 0.95rem;
}

.phu-specs-table th,
.shop_attributes th {
  font-weight: 500;
  color: #6c757d;
  width: 40%;
  background: #fafafa;
}

.phu-specs-table td,
.shop_attributes td {
  font-weight: 600;
  color: var(--phu-text, #121417);
}

/* Inquiry CTA band */
.phu-product-inquiry {
  background: #E9E9E9;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  margin: 2.5rem 0;
}

.phu-product-inquiry h2 {
  font-size: 1.5rem !important;
  font-weight: 700;
  color: var(--phu-primary, #001BB7);
  margin: 0 0 0.5rem;
}

.phu-product-inquiry p {
  color: #6c757d;
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

/* ==========================================================================
   Shop – 3 column grid
   ========================================================================== */
.woocommerce ul.products,
ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.75rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 2rem !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
ul.products::before,
ul.products::after {
  display: none !important;
  content: none !important;
}

.woocommerce ul.products li.product,
ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  padding: 0 !important;
}

.phu-products-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.75rem !important;
}

/* Product cards */
.phu-product-card {
  height: 100%;
  background: #fff;
  border: 1px solid #E9E9E9;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.phu-product-card:hover {
  box-shadow: 0 12px 32px rgba(0, 27, 183, 0.12);
  transform: translateY(-4px);
  border-color: var(--phu-accent, #0046FF);
}

.phu-product-card-body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
}

.phu-product-card-title {
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  font-family: "Roboto", sans-serif !important;
}

.phu-product-card-title a {
  color: var(--phu-primary, #001BB7);
  text-decoration: none;
}

.phu-product-card-price {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--phu-text) !important;
}

/* Header CTA uses orange */
.phu-header .phu-btn-quote,
.phu-header-actions .phu-btn-primary {
  background: var(--phu-secondary, #FF8040) !important;
  border-color: var(--phu-secondary, #FF8040) !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.65rem 1.15rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Sticky quote orange */
.phu-sticky-quote-btn {
  background: var(--phu-secondary, #FF8040) !important;
  color: #fff !important;
}

/* Responsive product + shop */
@media (max-width: 991px) {
  .phu-single-product-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }
  .phu-product-gallery-col {
    position: static;
  }
  .phu-quick-specs {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .woocommerce ul.products,
  ul.products,
  .phu-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
  }
}

@media (max-width: 575px) {
  .woocommerce ul.products,
  ul.products,
  .phu-products-grid {
    grid-template-columns: 1fr !important;
  }
  .phu-quick-specs {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .phu-product-ctas,
  .phu-dual-ctas {
    flex-direction: column;
  }
  .phu-product-ctas .phu-btn,
  .phu-dual-ctas .phu-btn,
  .single_add_to_cart_button {
    width: 100%;
  }
}

/* Global Roboto enforcement */
body,
button,
input,
select,
textarea,
.phu-btn,
h1, h2, h3, h4, h5, h6 {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

/* ==========================================================================
   Image visibility – product cards + gallery (force show)
   ========================================================================== */
.phu-product-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0f0f0;
  min-height: 200px;
}

.phu-product-card-image-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  min-height: 200px;
}

.phu-product-card-image img,
.phu-product-card-img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 1;
}

.phu-product-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #f0f0f0;
  color: #adb5bd;
  font-size: 0.8rem;
  z-index: 0;
}

/* Single product main image */
.phu-product-gallery-col .woocommerce-product-gallery,
.woocommerce div.product div.images {
  width: 100% !important;
  float: none !important;
  opacity: 1 !important;
  margin: 0 !important;
}

.woocommerce-product-gallery__image img,
.woocommerce-product-gallery__image--placeholder img,
.woocommerce div.product div.images img,
.phu-product-gallery-col img,
.wp-post-image {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  max-width: 100% !important;
  height: auto !important;
  width: 100% !important;
}

.woocommerce-product-gallery__image--placeholder {
  background: #f0f0f0;
  border-radius: 12px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Related + recently viewed grids */
.related.products ul.products,
.recently-viewed ul.products,
section.related ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
}

/* ==========================================================================
   Product tabs – horizontal margins / container
   ========================================================================== */
.woocommerce-tabs,
.phu-single-product .woocommerce-tabs {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.woocommerce-Tabs-panel {
  padding: 0.5rem 0 1.5rem;
  max-width: 100%;
}

.woocommerce-Tabs-panel h2:first-child {
  margin-top: 0;
}

/* ==========================================================================
   Reviews form – polished UX
   ========================================================================== */
#reviews,
.woocommerce-Reviews {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem 0;
}

#reviews .woocommerce-Reviews-title,
#reviews h2 {
  font-size: 1.35rem !important;
  font-weight: 700;
  color: #001BB7 !important;
  margin-bottom: 0.5rem;
}

#reviews .woocommerce-noreviews {
  color: #6c757d;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

#review_form_wrapper {
  background: #fff;
  border: 1px solid #E9E9E9;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 27, 183, 0.05);
  margin-top: 1rem;
}

#review_form_wrapper .comment-reply-title {
  font-size: 1.1rem !important;
  font-weight: 600;
  color: #121417;
  margin: 0 0 1.25rem;
}

#review_form .comment-form-rating,
#review_form .comment-form-comment,
#review_form .comment-form-author,
#review_form .comment-form-email {
  margin-bottom: 1rem;
}

#review_form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: #121417;
}

#review_form select,
#review_form textarea,
#review_form input[type="text"],
#review_form input[type="email"] {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #E9E9E9;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: Roboto, sans-serif;
  background: #fff;
  transition: border-color 0.2s;
}

#review_form select:focus,
#review_form textarea:focus,
#review_form input:focus {
  outline: none;
  border-color: #0046FF;
  box-shadow: 0 0 0 3px rgba(0, 70, 255, 0.12);
}

#review_form textarea {
  min-height: 120px;
  resize: vertical;
}

#review_form .form-submit {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

#review_form .form-submit input[type="submit"],
#review_form .submit {
  background: #001BB7 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0.85rem 1.75rem !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}

#review_form .form-submit input[type="submit"]:hover {
  background: #00159A !important;
}

/* Star rating in form */
.comment-form-rating p.stars a {
  color: #FF8040;
}

/* ==========================================================================
   Blog / Article – UX-friendly heading scale
   ========================================================================== */
.phu-single-post .phu-single-title,
.single-post .phu-single-title {
  font-size: clamp(1.6rem, 3.5vw, 2.15rem) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em;
  color: #001BB7 !important;
  font-family: Roboto, sans-serif !important;
}

.phu-single-post .entry-content,
.single-post .entry-content,
.phu-single-post .phu-post-content {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.25rem 3rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #343a40;
}

.phu-single-post .entry-content h2,
.single-post .entry-content h2 {
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin: 2rem 0 0.75rem !important;
  color: #001BB7 !important;
  font-family: Roboto, sans-serif !important;
}

.phu-single-post .entry-content h3,
.single-post .entry-content h3 {
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  margin: 1.5rem 0 0.6rem !important;
  color: #121417 !important;
}

.phu-single-post .entry-content h4,
.single-post .entry-content h4 {
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  margin: 1.25rem 0 0.5rem !important;
}

.phu-single-post .entry-content p {
  margin-bottom: 1.15rem;
}

.phu-single-post .entry-content ul,
.phu-single-post .entry-content ol {
  margin: 0 0 1.15rem 1.25rem;
  line-height: 1.7;
}

.phu-single-post .entry-content img {
  border-radius: 12px;
  margin: 1.5rem 0;
}

/* Blog archive cards */
.phu-blog-card h2,
.phu-blog-card h3 {
  font-size: 1.15rem !important;
  line-height: 1.35 !important;
}

/* Product card actions row */
.phu-product-card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.75rem;
}

.phu-product-card-actions .phu-btn-sm {
  flex: 1 1 auto;
  min-height: 40px;
  font-size: 0.8rem !important;
  padding: 0.55rem 0.75rem !important;
}

/* Quantity field on product page */
.phu-product-summary-col .quantity,
.summary .quantity {
  margin-bottom: 0.75rem;
}

.phu-product-summary-col .quantity .qty {
  width: 64px;
  height: 44px;
  text-align: center;
  border: 1px solid #E9E9E9;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
}

/* Specs table inside tabs – full width of container */
.woocommerce-Tabs-panel .shop_attributes,
.woocommerce-Tabs-panel .phu-specs-table {
  width: 100%;
}

@media (max-width: 991px) {
  .related.products ul.products,
  .recently-viewed ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 575px) {
  .related.products ul.products,
  .recently-viewed ul.products {
    grid-template-columns: 1fr !important;
  }
  #review_form_wrapper {
    padding: 1.25rem;
  }
}

/* ==========================================================================
   EXPERT UX FIXES – Images, Tabs, Reviews, Blog
   ========================================================================== */

/* --- Product gallery: always show real images --- */
.phu-product-gallery-col,
.phu-product-gallery-col .woocommerce-product-gallery,
.woocommerce div.product div.images {
  width: 100% !important;
  float: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  margin: 0 !important;
}

.woocommerce div.product div.images img,
.woocommerce-product-gallery__image img,
.woocommerce-product-gallery__wrapper img,
.phu-product-gallery-col img,
.flex-viewport img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  border-radius: 12px;
  object-fit: cover !important;
}

/* Placeholder only when no image */
.woocommerce-product-gallery__image--placeholder {
  background: #E9E9E9;
  border-radius: 12px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Product card images – related / recently viewed / shop */
.phu-product-card-image {
  position: relative !important;
  aspect-ratio: 4 / 3 !important;
  min-height: 200px !important;
  background: #E9E9E9 !important;
  overflow: hidden !important;
}

.phu-product-card-image-link {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1;
}

.phu-product-card-image img,
.phu-product-card-img,
ul.products li.product img,
.woocommerce ul.products li.product a img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* --- Tabs content: left/right margins --- */
.phu-single-product .woocommerce-tabs,
.single-product .woocommerce-tabs {
  max-width: 1100px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

.woocommerce-Tabs-panel {
  padding: 0.5rem 0 2rem !important;
  max-width: 100%;
}

.woocommerce-Tabs-panel h2 {
  font-size: 1.25rem !important;
  margin-top: 1.75rem !important;
  margin-bottom: 0.65rem !important;
}

.woocommerce-Tabs-panel p {
  max-width: 72ch;
  line-height: 1.75 !important;
}

/* Specs table full width inside tabs */
.woocommerce-Tabs-panel .shop_attributes,
.woocommerce-Tabs-panel table {
  width: 100% !important;
  max-width: 100% !important;
}

/* --- Reviews form: polished UX --- */
.woocommerce-Reviews,
#reviews,
#review_form_wrapper {
  max-width: 640px;
  margin: 0 auto 2rem;
}

#reviews .woocommerce-Reviews-title,
#reviews h2 {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #001BB7 !important;
  margin-bottom: 0.75rem !important;
}

#review_form {
  background: #fff;
  border: 1px solid #E9E9E9;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 27, 183, 0.06);
  margin-top: 1.25rem;
}

#review_form .comment-reply-title {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  color: #121417 !important;
  margin-bottom: 1rem !important;
  display: block;
}

#review_form .comment-form-rating label,
#review_form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: #495057;
}

#review_form select,
#review_form #rating {
  width: 100%;
  max-width: 220px;
  padding: 0.6rem 0.75rem;
  border: 1px solid #E9E9E9;
  border-radius: 8px;
  font-family: Roboto, sans-serif;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  background: #fff;
}

#review_form textarea {
  width: 100% !important;
  min-height: 120px;
  padding: 0.85rem 1rem;
  border: 1px solid #E9E9E9;
  border-radius: 10px;
  font-family: Roboto, sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#review_form textarea:focus,
#review_form select:focus {
  outline: none;
  border-color: #0046FF;
  box-shadow: 0 0 0 3px rgba(0, 70, 255, 0.12);
}

#review_form .form-submit {
  margin-top: 1rem;
  margin-bottom: 0;
}

#review_form input[type="submit"],
#review_form .submit {
  background: #001BB7 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0.75rem 1.75rem !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  font-family: Roboto, sans-serif !important;
  cursor: pointer;
  transition: background 0.2s;
}

#review_form input[type="submit"]:hover {
  background: #00159A !important;
}

#reviews .commentlist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

#reviews .comment {
  padding: 1.25rem;
  border: 1px solid #E9E9E9;
  border-radius: 12px;
  margin-bottom: 1rem;
  background: #fafafa;
}

/* Quantity field polish */
.phu-product-summary-col .quantity,
.single-product .quantity {
  margin-bottom: 0.75rem;
}

.phu-product-summary-col .quantity .qty,
.single-product .quantity .qty {
  width: 72px;
  height: 44px;
  text-align: center;
  border: 1px solid #E9E9E9;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  font-family: Roboto, sans-serif;
}

/* Related / Recently viewed section spacing */
.related.products,
.phu-recently-viewed {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.related.products > h2,
.phu-recently-viewed .phu-section-header h2 {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  text-align: center;
  color: #001BB7 !important;
  margin-bottom: 1.5rem !important;
}

/* --- Blog: UX-friendly headings --- */
.single-post .entry-title,
.phu-single-post .entry-title,
.single-post h1.entry-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em;
  color: #001BB7 !important;
  max-width: 720px;
  margin: 0 auto 1rem !important;
  padding: 0 1.25rem;
  font-family: Roboto, sans-serif !important;
}

.single-post .entry-content h1,
.phu-single-post .entry-content h1 {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin: 1.75rem 0 0.75rem !important;
  color: #001BB7 !important;
}

.single-post .entry-content h2,
.phu-single-post .entry-content h2 {
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin: 1.75rem 0 0.65rem !important;
  color: #001BB7 !important;
}

.single-post .entry-content h3,
.phu-single-post .entry-content h3 {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  margin: 1.35rem 0 0.5rem !important;
  color: #121417 !important;
}

.single-post .entry-content h4,
.phu-single-post .entry-content h4 {
  font-size: 1rem !important;
  font-weight: 600 !important;
  margin: 1.15rem 0 0.45rem !important;
}

/* Blog featured image */
.single-post .post-thumbnail img,
.phu-single-post .post-thumbnail img {
  border-radius: 12px;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

/* Inquiry band padding */
.phu-product-inquiry {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Breadcrumb spacing */
.woocommerce-breadcrumb,
.phu-breadcrumb {
  padding-left: 0;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: #6c757d;
}

/* Sale badge on gallery */
.phu-product-gallery-col .onsale,
.woocommerce span.onsale {
  background: #FF8040 !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  min-height: auto;
  line-height: 1.2;
  z-index: 5;
}

/* Homepage featured grid – always 3 columns on desktop */
.phu-products-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.75rem !important;
  align-items: stretch;
}

.phu-products-grid .phu-product-card {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

@media (max-width: 991px) {
  .phu-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 575px) {
  .phu-products-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Hide broken critical-error text if ever injected mid-page */
.phu-testimonial-card .wp-die-message {
  display: none !important;
}

/* ==========================================================================
   SINGLE PRODUCT GALLERY – proper main image + thumbnails
   (WooCommerce default styles were disabled; restore gallery layout)
   ========================================================================== */
.phu-product-gallery-col {
  position: relative;
  width: 100%;
}

.woocommerce div.product div.images,
.woocommerce-product-gallery {
  position: relative !important;
  width: 100% !important;
  float: none !important;
  opacity: 1 !important;
  margin: 0 0 1rem !important;
}

/* Main slide area */
.woocommerce-product-gallery__wrapper {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.woocommerce-product-gallery .flex-viewport {
  width: 100% !important;
  max-width: 100%;
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: #E9E9E9;
}

.woocommerce-product-gallery__image {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  display: block !important;
}

/* Only the active slide visible when flexslider is active */
.woocommerce-product-gallery.woocommerce-product-gallery--with-images .flex-viewport .woocommerce-product-gallery__image {
  width: 100% !important;
}

.woocommerce-product-gallery__image a {
  display: block;
  width: 100%;
}

.woocommerce-product-gallery__image img,
.woocommerce-product-gallery .flex-viewport img {
  position: static !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  display: block !important;
  object-fit: contain !important;
  border-radius: 12px;
  margin: 0 auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Thumbnail strip */
.woocommerce-product-gallery .flex-control-thumbs,
.woocommerce-product-gallery ol.flex-control-nav {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.woocommerce-product-gallery .flex-control-thumbs li {
  width: 72px !important;
  height: 72px !important;
  margin: 0 !important;
  float: none !important;
  flex: 0 0 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 1 !important;
  background: #E9E9E9;
}

.woocommerce-product-gallery .flex-control-thumbs li.flex-active,
.woocommerce-product-gallery .flex-control-thumbs li:hover {
  border-color: #001BB7;
}

.woocommerce-product-gallery .flex-control-thumbs img {
  position: static !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  opacity: 1 !important;
  cursor: pointer;
  border-radius: 6px;
}

/* Fallback when slider JS not loaded: show first image large, rest as row */
.woocommerce-product-gallery--with-images:not(.flexslider) .woocommerce-product-gallery__wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.woocommerce-product-gallery--with-images:not(.flexslider) .woocommerce-product-gallery__image:first-child {
  width: 100% !important;
}

.woocommerce-product-gallery--with-images:not(.flexslider) .woocommerce-product-gallery__image:not(:first-child) {
  display: none; /* hide stack until JS builds thumbs – avoids 3 full images */
}

/* Sale badge on gallery */
.phu-product-gallery-col .onsale,
.woocommerce span.onsale {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  background: #FF8040 !important;
  color: #fff !important;
  min-height: auto;
  line-height: 1.2;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Gallery columns helper (WC adds columns-x class) */
.woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li {
  width: 72px !important;
}

@media (max-width: 768px) {
  .woocommerce-product-gallery .flex-control-thumbs li {
    width: 60px !important;
    height: 60px !important;
    flex-basis: 60px;
  }
}

/* ==========================================================================
   PHU Custom Product Gallery (main + thumbs) – no flexslider dependency
   ========================================================================== */
.phu-gallery {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.phu-gallery-badge,
.phu-gallery .onsale {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  z-index: 6;
  background: #FF8040 !important;
  color: #fff !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  padding: 0.35rem 0.65rem !important;
  border-radius: 6px !important;
  min-height: 0 !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

.phu-gallery-main {
  position: relative;
  width: 100%;
  background: #E9E9E9;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phu-gallery-slide {
  margin: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
}

.phu-gallery-slide.is-active {
  display: flex !important;
}

.phu-gallery-slide[hidden] {
  display: none !important;
}

.phu-gallery-zoom {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.phu-gallery-img,
.phu-gallery-main img {
  position: static !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  margin: 0 !important;
  border-radius: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.phu-gallery-thumbs {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none !important;
  margin: 12px 0 0 !important;
  padding: 0 !important;
}

.phu-gallery-thumb {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #E9E9E9;
  transition: border-color 0.2s;
}

.phu-gallery-thumb.is-active,
.phu-gallery-thumb:hover {
  border-color: #001BB7;
}

.phu-gallery-thumb-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  line-height: 0;
}

.phu-gallery-thumb img {
  position: static !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  opacity: 1 !important;
  margin: 0 !important;
}

@media (max-width: 575px) {
  .phu-gallery-thumb {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
  }
  .phu-gallery-main {
    aspect-ratio: 1 / 1;
  }
}

/* Hide default WC gallery leftovers if any */
.phu-product-gallery-col .flex-control-thumbs,
.phu-product-gallery-col .woocommerce-product-gallery__trigger {
  display: none !important;
}

/* ==========================================================================
   PRODUCT PAGE REDESIGN – SEO + Conversion
   ========================================================================== */
.phu-sp {
  padding-bottom: 0;
}

.phu-sp-hero {
  padding: 1.5rem 0 2.5rem;
  background: #fff;
}

.phu-sp-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem 3rem;
  align-items: start;
}

.phu-sp-gallery {
  position: sticky;
  top: 90px;
}

.phu-sp-buybox {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.phu-sp-cats {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #001BB7;
}

.phu-sp-cats a {
  color: #001BB7;
  text-decoration: none;
}

.phu-sp-title {
  font-family: Roboto, sans-serif !important;
  font-size: clamp(1.6rem, 3vw, 2.1rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: #001BB7 !important;
  margin: 0 !important;
  letter-spacing: -0.02em;
}

.phu-sp-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.phu-sp-review-link {
  color: #6c757d;
  text-decoration: underline;
}

.phu-sp-price {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0.15rem 0;
}

.phu-sp-price .price {
  font-size: 1.65rem !important;
  font-weight: 700 !important;
  color: #121417 !important;
  line-height: 1.2;
}

.phu-sp-price .price del {
  font-size: 1rem;
  opacity: 0.55;
  margin-right: 0.4rem;
}

.phu-sp-price .price ins {
  text-decoration: none;
  color: #FF8040;
}

.phu-sp-price-note {
  font-size: 0.8rem;
  color: #6c757d;
}

.phu-sp-excerpt {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #495057;
  max-width: 42em;
}

.phu-sp-excerpt p {
  margin: 0 0 0.5rem;
}

/* Spec chips */
.phu-sp-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  list-style: none;
  margin: 0.35rem 0 0.5rem;
  padding: 0;
}

.phu-sp-chips li {
  background: #E9E9E9;
  border-radius: 10px;
  padding: 0.7rem 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.phu-sp-chips li strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: #001BB7;
  line-height: 1.2;
}

.phu-sp-chips li span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6c757d;
  font-weight: 500;
}

.phu-sp-chips li.is-accent strong {
  color: #FF8040;
}

/* CTAs */
.phu-sp-ctas {
  margin: 0.5rem 0;
}

.phu-sp-ctas .phu-product-ctas,
.phu-sp-ctas .phu-dual-ctas,
.phu-sp-ctas form.cart {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.75rem !important;
  align-items: center;
}

.phu-sp-ctas .button,
.phu-sp-ctas .phu-btn,
.phu-sp-ctas .single_add_to_cart_button {
  flex: 1 1 150px;
  min-height: 50px !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 8px !important;
  justify-content: center;
}

.phu-sp-ctas .quantity {
  margin: 0;
}

.phu-sp-ctas .quantity .qty {
  width: 64px;
  height: 48px;
  text-align: center;
  border: 1px solid #E9E9E9;
  border-radius: 8px;
  font-weight: 600;
}

/* Trust list */
.phu-sp-trust {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid #E9E9E9;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1rem;
}

.phu-sp-trust li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #495057;
  line-height: 1.35;
}

.phu-sp-trust svg {
  flex-shrink: 0;
  color: #001BB7;
  margin-top: 1px;
}

.phu-sp-sku {
  font-size: 0.78rem;
  color: #868e96;
  margin: 0.25rem 0 0;
}

.phu-sp-sku span {
  font-weight: 600;
}

/* Section nav */
.phu-sp-nav {
  position: sticky;
  top: 68px;
  z-index: 50;
  background: #fff;
  border-top: 1px solid #E9E9E9;
  border-bottom: 1px solid #E9E9E9;
}

.phu-sp-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0.65rem 0;
  align-items: center;
}

.phu-sp-nav a {
  display: block;
  padding: 0.45rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #495057;
  border-radius: 6px;
  text-decoration: none;
}

.phu-sp-nav a:hover {
  color: #001BB7;
  background: #E9E9E9;
}

.phu-sp-nav-cta {
  background: #FF8040 !important;
  color: #fff !important;
  font-weight: 700 !important;
  margin-left: auto;
}

.phu-sp-nav-cta:hover {
  background: #E86F32 !important;
  color: #fff !important;
}

/* Content sections */
.phu-sp-section {
  padding: 3rem 0;
  background: #fff;
}

.phu-sp-section--alt {
  background: #f7f7f8;
}

.phu-sp-narrow {
  max-width: 800px;
}

.phu-sp-section-head {
  margin-bottom: 1.5rem;
}

.phu-sp-section-head .phu-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FF8040;
  margin-bottom: 0.4rem;
}

.phu-sp-section-head h2 {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #001BB7 !important;
  margin: 0 !important;
  line-height: 1.25 !important;
  font-family: Roboto, sans-serif !important;
}

.phu-sp-description {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #343a40;
}

.phu-sp-description h2 {
  font-size: 1.25rem !important;
  color: #001BB7 !important;
  margin: 1.75rem 0 0.65rem !important;
}

.phu-sp-description h3 {
  font-size: 1.1rem !important;
  margin: 1.35rem 0 0.5rem !important;
}

.phu-sp-description p {
  margin: 0 0 1rem;
}

/* Specs table */
.phu-sp-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #E9E9E9;
  box-shadow: 0 2px 12px rgba(0, 27, 183, 0.04);
}

.phu-sp-table th,
.phu-sp-table td {
  padding: 0.9rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid #E9E9E9;
  font-size: 0.95rem;
}

.phu-sp-table tr:last-child th,
.phu-sp-table tr:last-child td {
  border-bottom: none;
}

.phu-sp-table th {
  width: 42%;
  font-weight: 500;
  color: #6c757d;
  background: #fafafa;
}

.phu-sp-table td {
  font-weight: 600;
  color: #121417;
}

/* Quote band */
.phu-sp-quote-band {
  background: linear-gradient(135deg, #001BB7 0%, #0046FF 100%);
  color: #fff;
  padding: 3rem 0;
}

.phu-sp-quote-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}

.phu-sp-quote-copy h2 {
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin: 0 0 0.65rem !important;
}

.phu-sp-quote-copy p {
  margin: 0 0 1rem;
  opacity: 0.92;
  line-height: 1.65;
  font-size: 0.98rem;
}

.phu-sp-quote-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.phu-sp-quote-bullets li {
  font-size: 0.9rem;
  padding-left: 1.35rem;
  position: relative;
}

.phu-sp-quote-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #FF8040;
  font-weight: 700;
}

.phu-sp-quote-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.phu-sp-quote-actions .phu-btn-secondary {
  background: #FF8040 !important;
  border-color: #FF8040 !important;
  color: #fff !important;
  min-height: 52px;
  font-weight: 700;
}

.phu-sp-quote-actions .phu-sp-call {
  border-color: rgba(255,255,255,0.45) !important;
  color: #fff !important;
  min-height: 48px;
}

.phu-sp-quote-actions .phu-sp-call:hover {
  background: rgba(255,255,255,0.1) !important;
}

/* FAQ */
.phu-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.phu-faq-item {
  background: #fff;
  border: 1px solid #E9E9E9;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
}

.phu-faq-item summary {
  padding: 1rem 1.15rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: #121417;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.phu-faq-item summary::-webkit-details-marker {
  display: none;
}

.phu-faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: #001BB7;
  flex-shrink: 0;
}

.phu-faq-item[open] summary::after {
  content: "−";
}

.phu-faq-answer {
  padding: 0 1.15rem 1.1rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #495057;
}

.phu-faq-answer p {
  margin: 0;
}

/* Reviews polish */
.phu-sp-reviews #review_form {
  background: #fff;
  border: 1px solid #E9E9E9;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 27, 183, 0.05);
}

.phu-sp-reviews input[type="submit"] {
  background: #001BB7 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0.75rem 1.5rem !important;
  font-weight: 600 !important;
}

/* Responsive */
@media (max-width: 991px) {
  .phu-sp-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .phu-sp-gallery {
    position: static;
  }
  .phu-sp-quote-inner {
    grid-template-columns: 1fr;
  }
  .phu-sp-nav {
    top: 60px;
  }
  .phu-sp-nav ul {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .phu-sp-nav-cta {
    margin-left: 0;
  }
}

@media (max-width: 575px) {
  .phu-sp-chips {
    grid-template-columns: repeat(2, 1fr);
  }
  .phu-sp-trust {
    grid-template-columns: 1fr;
  }
  .phu-sp-hero {
    padding-top: 1rem;
  }
}

/* Hide duplicate WC default title/price if any leak */
.phu-sp-buybox > .product_title:not(.phu-sp-title),
.phu-sp-ctas > .price {
  display: none !important;
}

/* ==========================================================================
   MOBILE / SMALL SCREEN – Header + Logo + Layout fixes
   ========================================================================== */

/* Custom logo (WordPress) – keep compact on all screens */
.phu-logo .custom-logo-link {
  display: flex !important;
  align-items: center !important;
  max-width: 100%;
  line-height: 0;
}

.phu-logo .custom-logo-link img,
.phu-logo .custom-logo,
.phu-logo img {
  height: 40px !important;
  width: auto !important;
  max-width: 180px !important;
  object-fit: contain !important;
  display: block !important;
}

.phu-header-inner {
  gap: 0.5rem !important;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.phu-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 0.15rem !important;
  flex-shrink: 0 !important;
}

.phu-header-icon {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Hamburger always visible & tappable on mobile */
.phu-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  z-index: 20;
}

.phu-mobile-toggle span {
  display: block !important;
  width: 22px !important;
  height: 2px !important;
  background: var(--phu-text, #121417) !important;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 991px) {
  :root {
    --phu-header-height: 60px;
    --phu-header-height-sticky: 56px;
  }

  .phu-header {
    height: var(--phu-header-height) !important;
  }

  .phu-nav {
    display: none !important;
  }

  .phu-mobile-toggle {
    display: flex !important;
  }

  /* Hide desktop Get Quote button in header on small screens */
  .phu-header-actions > .phu-btn {
    display: none !important;
  }

  /* Logo scales down */
  .phu-logo {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 140px) !important;
  }

  .phu-logo .custom-logo-link img,
  .phu-logo .custom-logo,
  .phu-logo img {
    height: 32px !important;
    max-width: 140px !important;
  }

  .phu-logo-text {
    font-size: 1rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
  }

  /* Mobile slide-in menu */
  .phu-mobile-nav {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: min(320px, 88vw) !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: var(--phu-bg, #fff) !important;
    z-index: 10050 !important;
    transform: translateX(105%) !important;
    transition: transform 0.3s ease !important;
    box-shadow: -8px 0 32px rgba(0,0,0,0.12) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .phu-mobile-nav.is-open {
    transform: translateX(0) !important;
  }

  body.phu-mobile-menu-open {
    overflow: hidden !important;
  }

  .phu-mobile-nav-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.85rem 1rem !important;
    border-bottom: 1px solid var(--phu-border, #E9E9E9) !important;
    min-height: 56px;
  }

  .phu-mobile-nav-header .phu-logo img,
  .phu-mobile-nav-header .custom-logo {
    height: 28px !important;
    max-width: 120px !important;
  }

  .phu-mobile-nav-list {
    padding: 0.75rem 0 !important;
    flex: 1 !important;
  }

  .phu-mobile-nav-list a,
  .phu-mobile-nav-list .phu-nav-link {
    display: block !important;
    padding: 0.85rem 1.25rem !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: var(--phu-text, #121417) !important;
    border-bottom: 1px solid #f0f0f0 !important;
  }

  .phu-mobile-nav-cta {
    padding: 1rem 1.25rem 1.5rem !important;
    border-top: 1px solid var(--phu-border, #E9E9E9) !important;
  }

  .phu-mobile-nav-cta .phu-btn {
    width: 100% !important;
    justify-content: center !important;
    min-height: 48px !important;
  }

  /* Woo notices – less noisy on mobile */
  .woocommerce-message,
  .woocommerce-info,
  .woocommerce-error {
    font-size: 0.85rem !important;
    padding: 0.75rem 1rem !important;
    margin: 0.5rem 0.75rem !important;
  }
}

@media (max-width: 575px) {
  .phu-logo .custom-logo-link img,
  .phu-logo .custom-logo,
  .phu-logo img {
    height: 28px !important;
    max-width: 120px !important;
  }

  .phu-header-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
  }

  .phu-header-icon svg {
    width: 18px !important;
    height: 18px !important;
  }

  /* Optional: hide wishlist on very small screens to free space */
  .phu-header-actions a[href*="wishlist"] {
    display: none !important;
  }
}

/* ==========================================================================
   MOBILE MENU – fixed drawer (right) + backdrop
   ========================================================================== */
.phu-mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 27, 183, 0.35);
  z-index: 10040;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.phu-mobile-backdrop.is-open {
  display: block;
  opacity: 1;
}

@media (max-width: 991px) {
  .phu-mobile-nav {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: min(300px, 85vw) !important;
    max-width: 300px !important;
    height: 100% !important;
    height: 100dvh !important;
    background: #fff !important;
    z-index: 10050 !important;
    transform: translateX(100%) !important;
    transition: transform 0.28s ease !important;
    box-shadow: -12px 0 40px rgba(0,0,0,0.15) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 0 !important;
  }

  .phu-mobile-nav.is-open {
    transform: translateX(0) !important;
  }

  .phu-mobile-nav-header {
    flex-shrink: 0 !important;
    padding: 0.75rem 1rem !important;
    gap: 0.5rem !important;
  }

  .phu-mobile-nav-header .phu-logo {
    max-width: calc(100% - 48px) !important;
    min-width: 0 !important;
  }

  .phu-mobile-nav-header .phu-logo-text {
    font-size: 0.95rem !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: block !important;
  }

  .phu-mobile-nav-list {
    text-align: left !important;
  }

  .phu-mobile-nav-list a,
  .phu-mobile-nav-list .phu-nav-link {
    text-align: left !important;
    padding: 0.9rem 1.25rem !important;
  }

  .phu-mobile-nav-cta {
    margin-top: auto !important;
  }

  .phu-mobile-nav-cta .phu-btn {
    margin-bottom: 0.5rem !important;
  }
}

/* Wishlist heart */
.phu-wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  transition: color 0.2s, transform 0.15s;
  padding: 0;
}

.phu-wishlist-btn:hover,
.phu-wishlist-btn.is-active {
  color: #FF8040;
  transform: scale(1.06);
}

.phu-wishlist-btn.is-active svg {
  fill: #FF8040;
  stroke: #FF8040;
}

.phu-product-card-image {
  position: relative;
}

.phu-sp-wishlist-wrap {
  margin: 0.25rem 0 0.5rem;
}

.phu-sp-wishlist-wrap .phu-wishlist-btn {
  position: static;
  width: auto;
  height: auto;
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #495057;
  background: #E9E9E9;
  box-shadow: none;
}

.phu-sp-wishlist-wrap .phu-wishlist-btn.is-active {
  background: #FFF0E8;
  color: #FF8040;
}

/* Hide dark mode remnants */
.phu-theme-toggle,
[data-action="toggle-theme"] {
  display: none !important;
}

/* ==========================================================================
   Cookie consent – Amazon-inspired (clean, calm, clear)
   ========================================================================== */
.phu-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  background: #232f3e;
  color: #fff;
  padding: 1rem 1.25rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.phu-cookie.is-visible {
  transform: translateY(0);
}

.phu-cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.phu-cookie-copy {
  flex: 1 1 320px;
  min-width: 0;
}

.phu-cookie-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: Roboto, sans-serif;
  color: #fff;
}

.phu-cookie-text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #ddd;
  max-width: 52rem;
}

.phu-cookie-text a {
  color: #ff9900;
  text-decoration: underline;
}

.phu-cookie-text a:hover {
  color: #ffb84d;
}

.phu-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  flex-shrink: 0;
}

.phu-cookie-accept {
  background: #ffd814;
  color: #111;
  border: 1px solid #fcd200;
  border-radius: 8px;
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: Roboto, sans-serif;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.15s;
}

.phu-cookie-accept:hover {
  background: #f7ca00;
}

.phu-cookie-reject {
  background: transparent;
  color: #fff;
  border: 1px solid #888c8c;
  border-radius: 8px;
  padding: 0.65rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: Roboto, sans-serif;
  cursor: pointer;
  min-height: 44px;
}

.phu-cookie-reject:hover {
  background: rgba(255,255,255,0.08);
  border-color: #bbb;
}

@media (max-width: 640px) {
  .phu-cookie {
    padding: 1rem;
  }
  .phu-cookie-actions {
    width: 100%;
  }
  .phu-cookie-accept,
  .phu-cookie-reject {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* Hide dark mode remnants */
.phu-theme-toggle,
[data-action="toggle-theme"] {
  display: none !important;
}

/* ==========================================================================
   Performance – mobile CLS / paint optimizations
   ========================================================================== */
img, video {
  max-width: 100%;
  height: auto;
}

.phu-product-card-image,
.phu-gallery-main {
  content-visibility: auto;
  contain-intrinsic-size: 300px;
}

.phu-blog-grid > *,
.phu-product-card {
  content-visibility: auto;
  contain-intrinsic-size: 360px;
}

/* Reduce paint on sticky header */
.phu-header {
  contain: layout style;
}

/* Prefer system font stack if Google Fonts slow (optional fallback already in vars) */
@media (max-width: 768px) {
  /* Slightly smaller base to reduce overflow reflows */
  html {
    -webkit-text-size-adjust: 100%;
  }
  .phu-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  /* Avoid huge shadows on mobile */
  .phu-product-card,
  .phu-sp-table {
    box-shadow: none !important;
  }
}
