/*
Theme Name: COMPAN Shop
Theme URI: https://compan.pl
Author: COMPAN Sierpc
Author URI: https://compan.pl
Description: Dedykowany motyw sklepu internetowego COMPAN z Sierpca. Profesjonalne zaopatrzenie — tonery, elektronika, ekspresy, akumulatory i zasilacze Volt.
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
WC requires at least: 8.0
WC tested up to: 10.5
License: Proprietary
Text Domain: compan
Tags: e-commerce, woocommerce, shop
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --c-blue:        #0052a5;
  --c-blue-dark:   #003d7a;
  --c-blue-light:  #1a6dc2;
  --c-blue-xlight: #e8f0fa;
  --c-orange:      #ff6b00;
  --c-orange-dark: #e05e00;
  --c-orange-light:#fff3e0;
  --c-green:       #16a34a;
  --c-green-light: #dcfce7;
  --c-red:         #dc2626;

  --c-white:  #ffffff;
  --c-bg:     #f5f6f8;
  --c-bg2:    #eef0f3;
  --c-border: #e2e5ea;
  --c-text:   #1a1d23;
  --c-text2:  #4a5568;
  --c-text3:  #8896a5;

  --c-star-active: #f59e0b;
  --c-star-empty:  #d1d5db;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --r:    10px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-sm: 6px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.06);
  --shadow:     0 4px 12px rgba(0,0,0,.07);
  --shadow-md:  0 8px 24px rgba(0,82,165,.10);
  --shadow-lg:  0 16px 40px rgba(0,82,165,.12);
  --shadow-blue:   0 4px 16px rgba(0,82,165,.25);
  --shadow-orange: 0 4px 16px rgba(255,107,0,.30);

  --t:      color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, opacity .2s ease, transform .2s ease;
  --t-slow: color .35s cubic-bezier(.4,0,.2,1), background-color .35s cubic-bezier(.4,0,.2,1), transform .35s cubic-bezier(.4,0,.2,1), opacity .35s cubic-bezier(.4,0,.2,1);
  --max-w:  1320px;
  --header-h: 72px;

  /* Semantic aliases — used by newer blog/search/widget styles.
     Kept in sync with the c-* tokens above. */
  --primary:       var(--c-blue);
  --primary-dark:  var(--c-blue-dark);
  --primary-light: var(--c-blue-xlight);
  --text-primary:  var(--c-text);
  --text-secondary: var(--c-text2);
  --text-muted:    var(--c-text3);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--c-blue); text-decoration: none; transition: var(--t); }
a:hover { color: var(--c-blue-dark); }
img { max-width: 100%; height: auto; display: block; }

/* Skip to content — accessibility */
.skip-to-content {
  position: absolute; top: -100px; left: 16px; z-index: 10000;
  background: var(--c-blue); color: #fff; padding: 12px 24px;
  border-radius: 0 0 var(--r) var(--r); font-weight: 700; font-size: 14px;
  transition: top .2s ease;
}
.skip-to-content:focus {
  top: 0; color: #fff; outline: 3px solid var(--c-orange); outline-offset: 2px;
}

/* Focus visible — lepszy focus ring dla klawiatury */
:focus-visible {
  outline: 3px solid var(--c-blue);
  outline-offset: 2px;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--c-blue);
  outline-offset: 2px;
}

h1,h2,h3,h4,h5,h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-text);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.compan-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; padding: 32px 0 48px; }

/* ============================================================
   TOPBAR
   ============================================================ */
.site-topbar {
  background: var(--c-blue-dark);
  color: rgba(255,255,255,.8);
  font-size: 12.5px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-topbar a { color: rgba(255,255,255,.8); }
.site-topbar a:hover { color: #fff; }

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-contact { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar-contact span { display: flex; align-items: center; gap: 5px; }
.topbar-contact svg, .topbar-right svg { vertical-align: middle; flex-shrink: 0; }
.topbar-right { display: flex; align-items: center; gap: 16px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--c-blue);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
  transition: transform .3s ease;
}
.header-hidden { transform: translateY(-100%); }

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
  min-height: var(--header-h);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo:hover { opacity: .9; text-decoration: none; }

.logo-icon-svg {
  width: 46px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 7px rgba(0,0,0,.28));
  transition: var(--t);
}
.site-logo:hover .logo-icon-svg {
  filter: drop-shadow(0 5px 11px rgba(0,0,0,.34));
  transform: scale(1.04) rotate(-2deg);
}

.logo-text .brand-name {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 3px;
  line-height: 1;
}
.logo-text .brand-tagline {
  display: block;
  font-size: 10.5px;
  color: rgba(255,255,255,.65);
  letter-spacing: .5px;
  margin-top: 2px;
}

/* Search */
.header-search { width: 100%; max-width: 520px; }
.search-form {
  display: flex;
  border-radius: 50px;
  overflow: visible;
  position: relative;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.25);
  transition: var(--t);
}
.search-form:focus-within {
  background: rgba(255,255,255,.98);
  border-color: var(--c-orange);
  box-shadow: var(--shadow-orange);
}
.search-form:focus-within .search-input { color: var(--c-text); }
.search-form:focus-within .search-btn { color: var(--c-text2); }

.search-input {
  flex: 1;
  padding: 10px 18px;
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
  color: rgba(255,255,255,.9);
  font-family: var(--font);
  border-radius: 50px 0 0 50px;
}
.search-input::placeholder { color: rgba(255,255,255,.55); }
.search-form:focus-within .search-input::placeholder { color: var(--c-text3); }

.search-btn {
  background: transparent;
  border: none;
  padding: 10px 16px;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  font-size: 16px;
  transition: var(--t);
  display: flex;
  align-items: center;
  border-radius: 0 50px 50px 0;
}
.search-btn:hover { color: var(--c-orange); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.header-action-btn {
  appearance: none;
  background: transparent;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px;
  color: rgba(255,255,255,.85);
  border-radius: var(--r);
  text-decoration: none;
  font-size: 11px;
  font-family: var(--font);
  transition: var(--t);
  position: relative;
  white-space: nowrap;
  cursor: pointer;
}
.header-action-btn:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
  text-decoration: none;
}
.header-action-btn .icon { font-size: 21px; margin-bottom: 2px; display: flex; align-items: center; justify-content: center; }
.header-action-btn .icon svg { stroke: currentColor; }

.cart-count {
  position: absolute;
  top: 3px;
  right: 6px;
  background: var(--c-orange);
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--c-blue);
}
.cart-count--hidden { display: none !important; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  background: var(--c-blue-dark);
  border-top: 1px solid rgba(255,255,255,.08);
}
.nav-inner { display: flex; align-items: stretch; }
.nav-menu { display: flex; list-style: none; flex-wrap: wrap; }
.nav-menu > li { position: relative; }

.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  color: rgba(255,255,255,.85);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: var(--t);
  white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
  color: #fff;
  border-bottom-color: var(--c-orange);
  text-decoration: none;
}

/* ============================================================
   BENEFITS BAR
   ============================================================ */
.compan-benefits-bar {
  background: var(--c-bg2);
  border-bottom: 1px solid var(--c-border);
  padding: 8px 0;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}
.benefit-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #2b3a4b;
  justify-content: center;
}
.benefit-item svg {
  color: var(--c-orange);
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .benefit-item {
    justify-content: flex-start;
  }
}

/* ============================================================
   REVIEWS SECTION
   ============================================================ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.review-card {
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  position: relative;
  transition: var(--t);
}
.review-card::before {
  content: '';
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--c-orange) 0%, var(--c-blue) 100%);
  opacity: 0;
  transition: opacity .25s ease;
}
.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-blue-xlight);
}
.review-card:hover::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .review-card:hover { transform: none; }
}
.review-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.review-card__author {
  font-weight: 700;
  font-size: 14px;
  color: #1f2937;
}
.review-card__text {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 10px;
}
.review-card__product {
  font-size: 12px;
  color: #0052a5;
  text-decoration: none;
  font-weight: 600;
}
.review-card__product:hover {
  text-decoration: underline;
}
@media (max-width: 900px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

/* Dropdown */
.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu { display: block; }

.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-radius: 0 var(--r) var(--r) var(--r);
  z-index: 1100;
  list-style: none;
  padding: 6px 0;
  border-top: 3px solid var(--c-orange);
}
.sub-menu li a {
  display: block;
  padding: 9px 18px;
  color: var(--c-text);
  font-size: 13.5px;
  transition: var(--t);
}
.sub-menu li a:hover {
  background: var(--c-blue-xlight);
  color: var(--c-blue);
  padding-left: 24px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid rgba(255,255,255,.3);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 18px;
  margin: 8px 0;
}

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero-banner {
  background: linear-gradient(135deg, #0052a5 0%, #003d7a 50%, #001e40 100%);
  color: #fff;
  padding: 72px 0 64px;
  margin: -32px -24px 0;
  position: relative;
  overflow: hidden;
}
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  position: relative;
}

.hero-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -.5px;
  color: #fff;
}
.hero-title span { color: var(--c-orange); }

.hero-subtitle {
  font-size: 17px;
  opacity: .88;
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-badge {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 500;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-orange);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--t);
  box-shadow: var(--shadow-orange);
}
.hero-cta:hover {
  background: var(--c-orange-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,107,0,.45);
  text-decoration: none;
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  color: #fff;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,.3);
  transition: var(--t);
}
.hero-cta-secondary:hover {
  background: rgba(255,255,255,.2);
  color: #fff;
  text-decoration: none;
}

.hero-stat-group {
  display: flex;
  gap: 24px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--c-orange);
  display: block;
  line-height: 1;
}
.hero-stat-label {
  font-size: 11.5px;
  color: rgba(255,255,255,.65);
  margin-top: 3px;
}

.hero-visual {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
/* soft energy-ring halos behind the core */
.hero-visual__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-visual__ring--outer {
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255,255,255,.10);
  background: radial-gradient(circle, rgba(26,109,194,.28) 0%, rgba(26,109,194,0) 62%);
}
.hero-visual__ring--inner {
  width: 210px;
  height: 210px;
  border: 1px dashed rgba(255,255,255,.16);
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 70%);
}
/* central glassmorphism hex-core card */
.hero-hexcore {
  position: relative;
  z-index: 2;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.04) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-lg);
  box-shadow: 0 20px 50px rgba(0,30,64,.45), inset 0 1px 0 rgba(255,255,255,.18);
}
.hero-hexcore__hex {
  filter: drop-shadow(0 8px 18px rgba(0,30,64,.35)) drop-shadow(0 0 14px rgba(255,107,0,.18));
}
/* orbiting frosted category chips */
.hero-chip {
  position: absolute;
  z-index: 3;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0,30,64,.30);
}
.hero-chip--toner   { top: 14px;  left: 8px;   color: var(--c-orange); }
.hero-chip--coffee  { top: 50%;   right: 0;    transform: translateY(-50%); }
.hero-chip--battery { bottom: 18px; left: 22px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-hexcore { animation: heroCoreFloat 6s ease-in-out infinite; }
  .hero-visual__ring--outer { animation: heroRingPulse 5s ease-in-out infinite; }
  .hero-visual__ring--inner { animation: heroRingSpin 40s linear infinite; }
  .hero-chip { animation: heroChipFloat 5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .9s); }
  .hero-chip--coffee { animation-name: heroChipFloatCenter; }
  @keyframes heroCoreFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-9px); }
  }
  @keyframes heroChipFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
  }
  @keyframes heroChipFloatCenter {
    0%, 100% { transform: translateY(-50%); }
    50%      { transform: translateY(calc(-50% - 7px)); }
  }
  @keyframes heroRingPulse {
    0%, 100% { opacity: .85; }
    50%      { opacity: 1; }
  }
  @keyframes heroRingSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
  }
}

/* ============================================================
   USP BAR
   ============================================================ */
.usp-bar {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  margin: 32px 0 40px;
  overflow: hidden;
  border: 1px solid var(--c-border);
}
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); }

.usp-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-right: 1px solid var(--c-border);
  transition: var(--t);
}
.usp-item:last-child { border-right: none; }
.usp-item:hover { background: var(--c-blue-xlight); }

.usp-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-blue-xlight);
  border-radius: var(--r);
  color: var(--c-blue);
  transition: var(--t);
}
.usp-item:hover .usp-icon {
  background: var(--c-blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.usp-icon svg { width: 22px; height: 22px; }
.usp-text { flex: 1; }
.usp-title {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--c-text);
  display: block;
  line-height: 1.3;
}
.usp-desc {
  font-size: 12px;
  color: var(--c-text3);
  display: block;
  margin-top: 2px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-text);
  position: relative;
  padding-left: 14px;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  background: linear-gradient(180deg, var(--c-orange) 0%, var(--c-blue) 100%);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(255,107,0,.22);
}
.section-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-blue);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--t);
}
.section-link:hover { color: var(--c-orange); gap: 7px; }
.section-link svg { transition: transform .2s ease; }
.section-link:hover svg { transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) {
  .section-link:hover { gap: 4px; }
  .section-link:hover svg { transform: none; }
}

.products-section { margin-bottom: 48px; }
.products-section--last { margin-bottom: 0; }

.section-cta { text-align: center; margin-top: 32px; }

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.category-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 24px 16px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--c-text);
  box-shadow: var(--shadow-sm);
  transition: var(--t-slow);
  border: 1.5px solid var(--c-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 1;
  transform: translateY(0);
}
.js .category-card {
  opacity: 0;
  transform: translateY(16px);
}
.js .category-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-blue);
  color: var(--c-blue);
  text-decoration: none;
}

.category-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-blue-xlight), #d6e6f7);
  border-radius: 14px;
  color: var(--c-blue);
  transition: var(--t);
}
.category-icon svg { width: 25px; height: 25px; transition: var(--t); }
.category-card:hover .category-icon {
  transform: scale(1.08) translateY(-1px);
  background: linear-gradient(135deg, var(--c-blue-light), var(--c-blue));
  color: #fff;
  box-shadow: 0 6px 14px rgba(0,82,165,.28);
}
.category-card:hover .category-icon svg { stroke: #fff; }

.category-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}
.category-count {
  font-size: 11.5px;
  color: var(--c-text3);
  background: var(--c-bg);
  padding: 2px 8px;
  border-radius: 50px;
  margin-top: 6px;
}

/* ============================================================
   PRODUCT CARDS (custom content-product.php)
   ============================================================ */
ul.products {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.compan-product-card {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--t-slow), border-color .25s ease;
  border: 1.5px solid var(--c-border);
  display: flex;
  flex-direction: column;
  position: relative;
}
.compan-product-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--c-blue-light);
}
@media (prefers-reduced-motion: no-preference) {
  .compan-product-card:hover {
    transform: translateY(-5px);
  }
}

/* Badges */
.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .3px;
}
.badge--sale {
  background: linear-gradient(135deg, var(--c-orange) 0%, var(--c-orange-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-orange);
}
.badge--featured {
  background: linear-gradient(135deg, var(--c-blue-light) 0%, var(--c-blue) 100%);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.badge--outofstock {
  background: var(--c-text3);
  color: #fff;
}

/* Image */
.product-card__image-wrap {
  display: block;
  background: linear-gradient(160deg, #fff 0%, var(--c-bg) 100%);
  padding: 20px;
  text-decoration: none;
  overflow: hidden;
  position: relative;
}
.product-card__image {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
}
@media (prefers-reduced-motion: no-preference) {
  .compan-product-card:hover .product-card__image {
    transform: scale(1.07);
  }
}
.product-card__no-image {
  width: 100%;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--c-text3);
  font-size: 12px;
  background: var(--c-bg2);
}
.product-card__no-image-icon {
  opacity: .35;
}

/* Body */
.product-card__body {
  padding: 14px 16px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__category {
  display: inline-block;
  font-size: 11px;
  color: var(--c-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}

.product-card__title-link {
  text-decoration: none;
  color: inherit;
}
.product-card__title-link:hover { color: var(--c-blue); text-decoration: none; }

.product-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__sku {
  font-size: 11px;
  color: var(--c-text3);
  margin-bottom: 4px;
}

.product-card__rating {
  margin-top: auto;
  padding-top: 4px;
}

/* Footer / Price + CTA */
.product-card__footer {
  padding: 0 16px 0;
  margin-top: auto;
}
.product-card__price {
  padding: 8px 0;
  font-size: 21px;
  font-weight: 800;
  color: var(--c-blue);
  letter-spacing: -.2px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 8px;
}
.product-card__price ins {
  text-decoration: none;
  color: var(--c-orange-dark);
}
.product-card__price ins .woocommerce-Price-amount { color: var(--c-orange-dark); }
.product-card__price del {
  font-size: 13px;
  color: var(--c-text3);
  font-weight: 500;
  margin-right: 0;
  opacity: .85;
}
.product-card__price del .woocommerce-Price-amount { color: var(--c-text3); }
.product-card__price .woocommerce-Price-amount { color: var(--c-blue); }

.product-card__actions { margin-top: 0; }

.product-card__cart-btn {
  display: block;
  width: 100%;
  margin: 0;
  background: linear-gradient(135deg, var(--c-blue-light) 0%, var(--c-blue) 100%);
  color: #fff;
  text-align: center;
  padding: 13px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: var(--t);
  border: none;
  cursor: pointer;
  letter-spacing: .3px;
  border-radius: 10px;
  font-family: var(--font);
}
.product-card__cart-btn:hover {
  background: linear-gradient(135deg, var(--c-orange) 0%, var(--c-orange-dark) 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-orange);
}
@media (prefers-reduced-motion: no-preference) {
  .product-card__cart-btn:hover { transform: translateY(-1px); }
}
.product-card__cart-btn:active {
  transform: translateY(0);
  filter: brightness(.96);
}
.product-card__cart-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--c-blue-xlight), 0 0 0 4px var(--c-blue-light);
}
.product-card__cart-btn.loading {
  opacity: .85;
}
.product-card__cart-btn.added {
  background: linear-gradient(135deg, var(--c-green) 0%, #128a3e 100%);
}
.product-card__cart-btn.added::after {
  content: ' ✓';
}

/* Legacy WC product card compat (shortcodes still use these) */
ul.products li.product { position: relative; }
ul.products li.product .onsale {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--c-orange) 0%, var(--c-orange-dark) 100%);
  color: #fff;
  padding: 4px 11px;
  border-radius: 50px;
  font-size: 11.5px;
  font-weight: 700;
  z-index: 1;
  box-shadow: var(--shadow-orange);
}

/* ============================================================
   PRODUCT SINGLE PAGE
   ============================================================ */
.woocommerce div.product {
  position: relative;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--c-border);
}
.woocommerce div.product .product_title {
  font-size: 26px;
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: 12px;
  line-height: 1.3;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-size: 34px;
  font-weight: 800;
  color: var(--c-blue);
}

.woocommerce div.product .single_add_to_cart_button {
  background: var(--c-orange) !important;
  color: #fff !important;
  padding: 15px 36px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-radius: 50px !important;
  border: none !important;
  cursor: pointer;
  transition: var(--t) !important;
  box-shadow: var(--shadow-orange) !important;
  letter-spacing: .3px !important;
}
.woocommerce div.product .single_add_to_cart_button:hover {
  background: var(--c-orange-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(255,107,0,.45) !important;
}

/* ============================================================
   CART & CHECKOUT
   ============================================================ */
.woocommerce table.shop_table {
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.woocommerce table.shop_table th {
  background: var(--c-blue);
  color: #fff;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 600;
}
.woocommerce table.shop_table td { padding: 16px 18px; vertical-align: middle; }
.woocommerce table.shop_table tr:nth-child(even) td { background: var(--c-bg); }

.woocommerce .cart .button,
.woocommerce .checkout-button {
  background: var(--c-blue) !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: 12px 28px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  transition: var(--t) !important;
  border: none !important;
}
.woocommerce .cart .button:hover,
.woocommerce .checkout-button:hover {
  background: var(--c-blue-dark) !important;
  transform: translateY(-1px) !important;
}

.woocommerce #payment .button {
  background: var(--c-orange) !important;
  color: #fff !important;
  font-size: 16px !important;
  padding: 15px 36px !important;
  font-weight: 700 !important;
  border-radius: 50px !important;
  box-shadow: var(--shadow-orange) !important;
}

/* ============================================================
   FORMS
   ============================================================ */
.woocommerce form .input-text,
.woocommerce-page form .input-text,
.woocommerce form select,
.woocommerce-page form select {
  border: 1.5px solid var(--c-border);
  border-radius: var(--r);
  padding: 10px 14px;
  font-size: 14px;
  transition: var(--t);
  width: 100%;
  font-family: var(--font);
}
.woocommerce form .input-text:focus,
.woocommerce-page form .input-text:focus {
  border-color: var(--c-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,82,165,.12);
}

/* ============================================================
   NOTICES
   ============================================================ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: var(--r);
  padding: 14px 20px;
  margin-bottom: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.woocommerce-message { background: var(--c-green-light); border-left: 4px solid var(--c-green); color: #166534; }
.woocommerce-info    { background: var(--c-blue-xlight); border-left: 4px solid var(--c-blue); color: var(--c-blue-dark); }
.woocommerce-error   { background: #fef2f2; border-left: 4px solid var(--c-red); color: #991b1b; }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.woocommerce-breadcrumb { font-size: 13px; color: var(--c-text3); margin-bottom: 20px; padding: 10px 0; }
.woocommerce-breadcrumb a { color: var(--c-blue); }
.woocommerce-breadcrumb a:hover { color: var(--c-orange); }
.breadcrumb-sep { margin: 0 2px; color: var(--c-text3); }

/* ============================================================
   SHOP LAYOUT (archive with sidebar)
   ============================================================ */
.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.shop-layout > * {
  min-width: 0;
}

.shop-sidebar {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.shop-category-desc {
  background: var(--c-blue-xlight);
  border-radius: var(--r);
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--c-text2);
  border-left: 4px solid var(--c-blue);
}

/* Sidebar widgets */
.widget {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--c-border);
}
.widget:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.widget-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--c-text);
  padding-left: 10px;
  border-left: 3px solid var(--c-orange);
}

/* Filtr ceny — pełne style suwaka jQuery UI (bazowy CSS WooCommerce jest
   wyłączony przez woocommerce_enqueue_styles => [], więc track/uchwyty
   muszą mieć własne wymiary, inaczej suwak jest niewidoczny) */
.widget_price_filter .price_slider_wrapper { padding-top: 6px; }
.widget_price_filter .price_slider {
  position: relative;
  height: 6px;
  margin: 14px 8px 22px;
  background: var(--c-bg2);
  border-radius: 3px;
}
.widget_price_filter .ui-slider-range {
  position: absolute;
  top: 0;
  height: 100%;
  background: var(--c-blue);
  border-radius: 3px;
}
.widget_price_filter .ui-slider-handle {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  transform: translateY(-50%);
  background: var(--c-blue);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  cursor: grab;
  outline-offset: 2px;
}
.widget_price_filter .ui-slider-handle:active { cursor: grabbing; background: var(--c-blue-dark); }
.widget_price_filter .ui-slider-handle:focus-visible { outline: 3px solid var(--c-orange); }
.widget_price_filter .price_slider_amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--c-text2);
}
.widget_price_filter .price_slider_amount .price_label { order: 1; }
.widget_price_filter .price_slider_amount .button {
  order: 2;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: var(--c-blue);
  color: #fff;
  border-radius: var(--r-sm);
  transition: var(--t);
}
.widget_price_filter .price_slider_amount .button:hover { background: var(--c-blue-dark); }
/* clearfix po float'owanym buttonie WC */
.widget_price_filter .price_slider_amount::after { content: ""; display: table; clear: both; }

/* Sidebar widget category list */
.widget_product_categories ul { list-style: none; padding: 0; margin: 0; }
.widget_product_categories ul li {
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid var(--c-bg2);
}
.widget_product_categories ul li a {
  flex: 1;
  padding: 8px 0;
  font-size: 13.5px;
  color: var(--c-text2);
  transition: var(--t);
}
.widget_product_categories ul li a:hover { color: var(--c-blue); padding-left: 4px; }
.widget_product_categories ul li .count {
  background: var(--c-bg);
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 11px;
  color: var(--c-text3);
  min-width: 24px;
  text-align: center;
  line-height: 1.4;
}
.widget_product_categories ul li > ul.children {
  flex-basis: 100%;
  border-bottom: none;
}
.widget_product_categories .children { margin-left: 14px; }
.widget_product_categories .children li a { font-size: 12.5px; padding: 6px 0; }

/* Sidebar product search */
.widget_product_search form {
  display: flex;
  gap: 0;
  min-width: 0;
}
.widget_product_search label { display: none; }
.widget_product_search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 1.5px solid var(--c-border);
  border-right: none;
  border-radius: var(--r) 0 0 var(--r);
  padding: 10px 14px;
  font-size: 13px;
  font-family: var(--font);
  color: var(--c-text);
  transition: var(--t);
}
.widget_product_search input[type="search"]:focus {
  border-color: var(--c-blue);
  outline: none;
}
.widget_product_search button[type="submit"] {
  background: var(--c-blue);
  color: #fff;
  flex: 0 0 auto;
  border: none;
  border-radius: 0 var(--r) var(--r) 0;
  padding: 10px 14px;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--t);
}
.widget_product_search button[type="submit"]:hover {
  background: var(--c-blue-dark);
}

/* ============================================================
   SHOP TOOLBAR (ordering, result count)
   ============================================================ */
.woocommerce-result-count,
.woocommerce-ordering {
  margin-bottom: 20px;
}
.shop-main .woocommerce-result-count {
  float: left;
  font-size: 13px;
  color: var(--c-text3);
  line-height: 36px;
}
.shop-main .woocommerce-ordering {
  float: right;
}
.shop-main .woocommerce-ordering select {
  border: 1.5px solid var(--c-border);
  border-radius: var(--r);
  padding: 8px 32px 8px 12px;
  font-size: 13px;
  color: var(--c-text2);
  background: #fff;
  cursor: pointer;
  font-family: var(--font);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a5568' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: var(--t);
}
.shop-main .woocommerce-ordering select:focus {
  border-color: var(--c-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,82,165,.12);
}
.shop-main::after {
  content: '';
  display: table;
  clear: both;
}
.shop-main ul.products {
  clear: both;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.woocommerce-pagination {
  margin-top: 32px;
  text-align: center;
  clear: both;
}
.woocommerce-pagination ul.page-numbers {
  display: inline-flex;
  gap: 6px;
  list-style: none;
}
.woocommerce-pagination .page-numbers li a,
.woocommerce-pagination .page-numbers li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text2);
  background: #fff;
  transition: var(--t);
  text-decoration: none;
}
.woocommerce-pagination .page-numbers li a:hover {
  border-color: var(--c-blue);
  color: var(--c-blue);
  background: var(--c-blue-xlight);
}
.woocommerce-pagination .page-numbers li span.current {
  background: var(--c-blue);
  color: #fff;
  border-color: var(--c-blue);
}

/* ============================================================
   SINGLE PRODUCT LAYOUT
   ============================================================ */
.single-product.woocommerce div.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  max-width: var(--max-w);
}
.single-product.woocommerce div.product .woocommerce-product-gallery {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
}
.single-product.woocommerce div.product .woocommerce-product-gallery img {
  width: 100%;
  height: auto;
}
.single-product.woocommerce div.product .summary {
  padding: 0;
}
.woocommerce div.product .woocommerce-tabs {
  grid-column: 1 / -1;
  margin-top: 20px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
  list-style: none;
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--c-border);
  margin-bottom: 20px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  margin: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text3);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--t);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--c-blue);
  border-bottom-color: var(--c-blue);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--c-blue);
}
.woocommerce div.product .woocommerce-tabs .panel { padding: 0 4px; }
.woocommerce div.product .woocommerce-tabs .panel h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

/* ============================================================
   PRODUCT REVIEWS / OPINIONS FORM
   ============================================================ */
#reviews {
  padding: 8px 0;
}
#reviews #comments {
  margin-bottom: 32px;
}
#reviews .woocommerce-Reviews-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--c-blue);
  display: flex;
  align-items: center;
  gap: 10px;
}
#reviews .woocommerce-Reviews-title::before {
  content: "\2605";
  color: var(--c-star-active);
  font-size: 24px;
}
#reviews .woocommerce-noreviews {
  color: var(--c-text3);
  font-size: 14px;
  font-style: italic;
  padding: 24px;
  text-align: center;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: var(--r-lg);
  border: 1px dashed var(--c-border);
}

/* Existing reviews list */
#reviews .commentlist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#reviews .commentlist .comment {
  padding: 24px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}
#reviews .commentlist .comment:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
#reviews .commentlist .comment .comment_container {
  display: flex;
  gap: 16px;
}
#reviews .commentlist .comment img.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--c-blue-light, #e8f0fe);
  flex-shrink: 0;
}
#reviews .commentlist .comment .meta {
  font-size: 13px;
  color: var(--c-text3);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
#reviews .commentlist .comment .meta strong {
  color: var(--c-text);
  font-weight: 700;
  font-size: 15px;
}
#reviews .commentlist .comment .meta .woocommerce-review__dash {
  display: none;
}
#reviews .commentlist .comment .meta time {
  font-size: 12px;
  color: var(--c-text3);
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 10px;
}
#reviews .commentlist .comment .meta .verified {
  color: #16a34a;
  font-size: 12px;
  font-weight: 600;
}
#reviews .commentlist .comment .description p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-text2);
  margin: 0;
}
#reviews .commentlist .star-rating {
  margin-bottom: 10px;
}

/* Review form wrapper */
#review_form_wrapper {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 32px 36px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}
#review_form_wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-orange));
}
#review_form .comment-reply-title {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 6px;
  padding-top: 4px;
}
#review_form .comment-reply-title small {
  display: none;
}
#review_form .comment-notes {
  font-size: 13px;
  color: var(--c-text3);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-border);
}

/* Star rating selector */
#review_form .comment-form-rating {
  margin-bottom: 24px;
}
#review_form .comment-form-rating label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 10px;
}

/* Hide the native select, show star links */
#review_form .comment-form-rating select {
  display: none;
}
#review_form .comment-form-rating .stars {
  display: inline-flex;
  gap: 6px;
  padding: 8px 18px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  transition: border-color 0.2s;
  overflow: visible;
}
#review_form .comment-form-rating .stars:hover {
  border-color: var(--c-star-active);
}
#review_form .comment-form-rating .stars a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  width: 40px;
  height: 40px;
  position: relative;
  text-decoration: none;
  color: var(--c-star-empty);
  transition: color 0.15s, text-shadow 0.15s;
  cursor: pointer;
  touch-action: manipulation;
}
#review_form .comment-form-rating .stars a:hover {
  transform: none;
}
#review_form .comment-form-rating .stars a::before {
  content: "\2605";
  font-size: 32px;
  line-height: 1;
}
#review_form .comment-form-rating .stars a:hover ~ a::before {
  color: var(--c-star-empty);
}
#review_form .comment-form-rating .stars:hover a::before {
  color: var(--c-star-active);
  text-shadow: 0 1px 4px rgba(245, 158, 11, 0.3);
}
#review_form .comment-form-rating .stars a:hover ~ a::before {
  color: var(--c-star-empty) !important;
  text-shadow: none;
}
#review_form .comment-form-rating .stars.selected a::before {
  color: var(--c-star-active);
  text-shadow: 0 1px 4px rgba(245, 158, 11, 0.3);
}
#review_form .comment-form-rating .stars.selected a.active ~ a::before {
  color: var(--c-star-empty);
  text-shadow: none;
}

/* Comment textarea */
#review_form .comment-form-comment {
  margin-bottom: 24px;
}
#review_form .comment-form-comment label,
#review_form .comment-form-author label,
#review_form .comment-form-email label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 6px;
}
#review_form .comment-form-comment label .required,
#review_form .comment-form-author label .required,
#review_form .comment-form-email label .required {
  color: var(--c-orange);
  margin-left: 2px;
}
#review_form .comment-form-comment textarea {
  width: 100%;
  min-height: 140px;
  padding: 14px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: 14px;
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--c-white);
}
#review_form .comment-form-comment textarea:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(0, 82, 165, 0.1);
}
#review_form .comment-form-comment textarea::placeholder {
  color: #94a3b8;
}

/* Name & Email fields — side by side on desktop */
#review_form .comment-form-author,
#review_form .comment-form-email {
  margin-bottom: 20px;
  float: left;
  width: calc(50% - 10px);
  box-sizing: border-box;
}
#review_form .comment-form-author {
  margin-right: 20px;
}
#review_form .comment-form-cookies-consent {
  clear: both;
}
#review_form .comment-form-author input,
#review_form .comment-form-email input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--c-white);
}
#review_form .comment-form-author input:focus,
#review_form .comment-form-email input:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(0, 82, 165, 0.1);
}

/* Cookies consent checkbox */
#review_form .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--c-text3);
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
}
#review_form .comment-form-cookies-consent input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--c-blue);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Submit button */
#review_form .form-submit {
  margin-top: 8px;
}
#review_form .form-submit input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 40px;
  background: linear-gradient(135deg, var(--c-blue) 0%, #003d7a 100%);
  color: var(--c-white);
  border: none;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 82, 165, 0.25);
  letter-spacing: 0.3px;
}
#review_form .form-submit input[type="submit"]:hover {
  background: linear-gradient(135deg, #003d7a 0%, var(--c-blue) 100%);
  box-shadow: 0 4px 14px rgba(0, 82, 165, 0.35);
  transform: translateY(-1px);
}
#review_form .form-submit input[type="submit"]:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 1px 4px rgba(0, 82, 165, 0.2);
}

/* Star-rating display (in reviews list & product page) */
.star-rating {
  display: inline-flex;
  font-size: 0;
  line-height: 1;
  overflow: hidden;
  position: relative;
  width: 5.4em;
  height: 1.1em;
  font-size: 15px;
}
.star-rating::before {
  content: "\2605\2605\2605\2605\2605";
  color: var(--c-star-empty);
  float: left;
  top: 0;
  left: 0;
  position: absolute;
  letter-spacing: 3px;
}
.star-rating span {
  overflow: hidden;
  float: left;
  top: 0;
  left: 0;
  position: absolute;
  padding-top: 1.5em;
}
.star-rating span::before {
  content: "\2605\2605\2605\2605\2605";
  color: var(--c-star-active);
  top: 0;
  position: absolute;
  left: 0;
  letter-spacing: 3px;
}

/* Responsive */
@media (max-width: 768px) {
  #review_form_wrapper {
    padding: 20px 16px;
  }
  #review_form .comment-form-author,
  #review_form .comment-form-email {
    width: 100%;
    display: block;
  }
  #review_form .comment-form-author {
    margin-right: 0;
  }
}

/* Related products */
.woocommerce div.product .related.products {
  grid-column: 1 / -1;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--c-border);
}
.woocommerce div.product .related.products > h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-left: 14px;
  border-left: 4px solid var(--c-orange);
}

/* Product meta */
.woocommerce div.product .product_meta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
  font-size: 13px;
  color: var(--c-text3);
}
.woocommerce div.product .product_meta > span {
  display: block;
  margin-bottom: 6px;
}
.woocommerce div.product .product_meta a { color: var(--c-blue); }
.woocommerce div.product .product_meta a:hover { color: var(--c-orange); }

/* Stock status */
.woocommerce div.product .stock {
  font-size: 13px;
  font-weight: 600;
  margin: 12px 0;
}
.woocommerce div.product .stock.in-stock { color: var(--c-green); }
.woocommerce div.product .stock.out-of-stock { color: var(--c-red); }

/* Quantity on single product */
.woocommerce div.product form.cart {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}
.woocommerce div.product form.cart .quantity input.qty {
  border: 1.5px solid var(--c-border);
  border-radius: var(--r);
  padding: 10px;
  font-size: 16px;
  width: 70px;
  text-align: center;
  font-family: var(--font);
}

/* Product gallery placeholder */
.single-product .woocommerce-product-gallery--without-images .woocommerce-product-gallery__wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  background: var(--c-bg);
}
.single-product .woocommerce-product-gallery--without-images .woocommerce-product-gallery__image img {
  opacity: 0.35;
  max-width: 120px;
}

/* Summary enhancements */
.woocommerce div.product .summary .product_title {
  font-size: 26px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.25;
  margin-bottom: 12px;
}
.woocommerce div.product .summary .price {
  font-size: 28px;
  font-weight: 800;
  color: var(--c-blue);
  margin: 12px 0 6px;
}
.woocommerce div.product .summary .price del {
  font-size: 18px;
  color: var(--c-text3);
  font-weight: 500;
}
.woocommerce div.product .summary .price ins {
  text-decoration: none;
  color: var(--c-red);
}
.woocommerce div.product .summary .woocommerce-product-details__short-description {
  color: var(--c-text2);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.woocommerce div.product form.cart .single_add_to_cart_button {
  background: var(--c-orange);
  color: #fff;
  border: none;
  border-radius: var(--r);
  padding: 13px 32px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--t);
  box-shadow: var(--shadow-orange);
}
.woocommerce div.product form.cart .single_add_to_cart_button:hover {
  background: var(--c-orange-dark);
  transform: translateY(-1px);
}

/* Trust badges under add to cart */
.compan-trust-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
}
.compan-trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--c-text2);
}
.compan-trust-badge svg { color: var(--c-blue); }

/* ============================================================
   PRODUCT DELIVERY BOX
   ============================================================ */
.compan-delivery-box {
  margin: 18px 0 6px;
  padding: 14px 16px;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: var(--c-bg2);
}
.compan-delivery-box h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: var(--c-blue);
}
.compan-delivery-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  font-size: 13px;
  color: var(--c-text);
}
.compan-delivery-box li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.compan-delivery-box svg { color: var(--c-blue); }
@media (max-width: 640px) {
  .compan-delivery-box ul { grid-template-columns: 1fr; }
}

/* ============================================================
   FREE SHIPPING PROGRESS
   ============================================================ */
.compan-free-shipping {
  margin: 14px 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: #f7fbf6;
}
.compan-free-shipping__message {
  font-weight: 600;
  margin-bottom: 8px;
}
.compan-free-shipping__bar {
  height: 8px;
  background: #e6ecf2;
  border-radius: 999px;
  overflow: hidden;
}
.compan-free-shipping__bar span {
  display: block;
  height: 100%;
  background: var(--c-green);
  width: 0;
  transition: width .3s ease;
}
.compan-free-shipping__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 12px;
  color: var(--c-text3);
}

/* ============================================================
   STICKY ADD TO CART
   ============================================================ */
.compan-sticky-atc {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translate(-50%, 16px);
  width: calc(100% - 24px);
  max-width: 1020px;
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: var(--t-slow);
  z-index: 500;
}
.compan-sticky-atc.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.compan-sticky-atc__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
}
.compan-sticky-atc__info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.compan-sticky-atc__thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--c-border);
  background: #f5f6f8;
}
.compan-sticky-atc__text {
  min-width: 0;
}
.compan-sticky-atc__title {
  font-weight: 600;
  font-size: 14px;
  color: var(--c-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 420px;
}
.compan-sticky-atc__price {
  font-size: 13px;
  color: var(--c-text2);
}
.compan-sticky-atc__actions .button {
  background: var(--c-orange);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--t);
}
.compan-sticky-atc__actions .button:hover {
  background: var(--c-orange-dark);
}
@media (max-width: 768px) {
  .compan-sticky-atc__inner {
    gap: 10px;
    padding: 10px;
  }
  .compan-sticky-atc__title {
    max-width: 180px;
  }
  .compan-sticky-atc__actions .button {
    padding: 10px 14px;
  }
}
.compan-trust-badge svg {
  flex-shrink: 0;
  color: var(--c-green);
}

/* Sale badge on single product */
.woocommerce div.product .onsale {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--c-red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  z-index: 2;
}

@media (max-width: 768px) {
  .single-product.woocommerce div.product {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .woocommerce div.product .summary .product_title { font-size: 22px; }
  .woocommerce div.product .summary .price { font-size: 24px; }
  .compan-trust-badges { gap: 10px; }
  .compan-trust-badge { font-size: 11.5px; }
}

/* ============================================================
   CART PAGE
   ============================================================ */
.woocommerce-cart .woocommerce {
  max-width: var(--max-w);
}

/* Empty cart */
.woocommerce-cart .cart-empty.woocommerce-info,
.wc-block-cart__empty-cart__title {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: var(--c-text2);
  padding: 40px 20px 20px;
}
.woocommerce-cart .return-to-shop,
.wc-block-cart__empty-cart__actions {
  text-align: center;
  margin-bottom: 32px;
}
.woocommerce-cart .return-to-shop .button,
.wc-block-cart__empty-cart__actions .wc-block-components-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-orange);
  color: #fff;
  border: none;
  border-radius: var(--r);
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--t);
  text-decoration: none;
}
.woocommerce-cart .return-to-shop .button:hover {
  background: var(--c-orange-dark);
  transform: translateY(-1px);
}

/* Cart table */
.woocommerce-cart table.cart,
.woocommerce-cart .woocommerce-cart-form table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
}
.woocommerce-cart table.cart th {
  background: var(--c-bg);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--c-text3);
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
}
.woocommerce-cart table.cart td {
  padding: 16px;
  border-bottom: 1px solid var(--c-border);
  vertical-align: middle;
  font-size: 14px;
}
.woocommerce-cart table.cart .product-thumbnail img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
}
.woocommerce-cart table.cart .product-name a {
  color: var(--c-text);
  font-weight: 600;
  text-decoration: none;
}
.woocommerce-cart table.cart .product-name a:hover {
  color: var(--c-blue);
}
.woocommerce-cart table.cart .product-price,
.woocommerce-cart table.cart .product-subtotal {
  font-weight: 600;
  color: var(--c-text);
}
.woocommerce-cart table.cart .product-remove a {
  color: var(--c-text3);
  font-size: 20px;
  text-decoration: none;
}
.woocommerce-cart table.cart .product-remove a:hover {
  color: var(--c-red);
}
.woocommerce-cart table.cart .actions {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.woocommerce-cart table.cart .actions .coupon {
  display: flex;
  gap: 8px;
}
.woocommerce-cart table.cart .actions .coupon input {
  border: 1.5px solid var(--c-border);
  border-radius: var(--r);
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font);
}
.woocommerce-cart table.cart .actions .coupon button,
.woocommerce-cart table.cart .actions > button {
  background: var(--c-blue);
  color: #fff;
  border: none;
  border-radius: var(--r);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--t);
}
.woocommerce-cart table.cart .actions button:hover {
  background: var(--c-blue-dark);
}

/* Cart totals */
.woocommerce-cart .cart_totals,
.woocommerce-cart .cart-collaterals {
  max-width: 420px;
  margin-left: auto;
  margin-top: 24px;
}
.woocommerce-cart .cart_totals h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.woocommerce-cart .cart_totals table {
  width: 100%;
  background: #fff;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--c-border);
}
.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--c-border);
}
.woocommerce-cart .cart_totals table th {
  font-weight: 600;
  color: var(--c-text2);
  background: var(--c-bg);
  width: 40%;
}
.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-text);
}
.woocommerce-cart .cart_totals .wc-proceed-to-checkout a {
  display: block;
  background: var(--c-orange);
  color: #fff;
  text-align: center;
  padding: 15px 24px;
  border-radius: var(--r);
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font);
  text-decoration: none;
  margin-top: 16px;
  transition: var(--t);
  box-shadow: var(--shadow-orange);
}
.woocommerce-cart .cart_totals .wc-proceed-to-checkout a:hover {
  background: var(--c-orange-dark);
  transform: translateY(-1px);
}

/* WooCommerce notices — styles defined in NOTICES section above */
.woocommerce-message a,
.woocommerce-info a {
  color: inherit;
  font-weight: 600;
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
  display: none;
}

@media (max-width: 768px) {
  .woocommerce-cart table.cart,
  .woocommerce-cart table.cart thead {
    display: block;
  }
  .woocommerce-cart table.cart thead { display: none; }
  .woocommerce-cart table.cart tbody,
  .woocommerce-cart table.cart tr,
  .woocommerce-cart table.cart td {
    display: block;
    width: 100%;
  }
  .woocommerce-cart table.cart tr {
    padding: 16px;
    border-bottom: 1px solid var(--c-border);
    position: relative;
  }
  .woocommerce-cart table.cart td {
    padding: 4px 0;
    border: none;
    text-align: left;
  }
  .woocommerce-cart table.cart td::before {
    content: attr(data-title) ': ';
    font-weight: 600;
    color: var(--c-text3);
    font-size: 12px;
  }
  .woocommerce-cart table.cart .product-remove {
    position: absolute;
    top: 16px;
    right: 16px;
  }
  .woocommerce-cart table.cart .actions {
    flex-direction: column;
  }
  .woocommerce-cart .cart_totals {
    max-width: 100%;
  }
}

/* ============================================================
   CLASSIC CART & CHECKOUT POLISH
   ============================================================ */
.woocommerce-cart .page-content > .woocommerce,
.woocommerce-checkout .page-content > .woocommerce {
  max-width: var(--max-w);
  margin-inline: auto;
}

.woocommerce-cart .woocommerce-cart-form,
.woocommerce-checkout form.checkout {
  margin-top: 18px;
}

.woocommerce-cart .woocommerce-cart-form {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.woocommerce-cart .woocommerce-cart-form table.cart {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  table-layout: fixed;
  margin: 0;
}

.woocommerce-cart table.cart th.product-remove,
.woocommerce-cart table.cart td.product-remove {
  width: 52px;
  text-align: center;
}

.woocommerce-cart table.cart th.product-thumbnail,
.woocommerce-cart table.cart td.product-thumbnail {
  width: 94px;
}

.woocommerce-cart table.cart th.product-price,
.woocommerce-cart table.cart td.product-price,
.woocommerce-cart table.cart th.product-subtotal,
.woocommerce-cart table.cart td.product-subtotal {
  width: 132px;
  white-space: nowrap;
}

.woocommerce-cart table.cart th.product-quantity,
.woocommerce-cart table.cart td.product-quantity {
  width: 142px;
  text-align: center;
}

.woocommerce-cart table.cart .product-name {
  min-width: 0;
}

.woocommerce-cart table.cart .product-name a {
  display: inline-block;
  max-width: 100%;
  line-height: 1.45;
}

.woocommerce-cart table.cart .quantity {
  justify-content: center;
}

.woocommerce-cart table.cart .actions {
  background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
  border-top: 1px solid var(--c-border);
  display: table-cell;
  text-align: right;
}

.woocommerce-cart table.cart .actions::after {
  content: "";
  display: block;
  clear: both;
}

.woocommerce-cart table.cart .actions .coupon {
  float: left;
  flex: 1 1 420px;
  max-width: 560px;
}

.woocommerce-cart table.cart .actions .coupon input {
  flex: 1 1 240px;
  min-width: 180px;
  background: #fff;
}

.woocommerce-cart table.cart .actions > button {
  float: right;
  margin-left: auto;
}

.woocommerce-cart .cart-collaterals {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.woocommerce-cart .cart_totals {
  width: min(100%, 460px);
  max-width: none;
  margin: 0;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.woocommerce-cart .cart_totals h2 {
  color: var(--c-blue-dark);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-border);
}

.woocommerce-cart .cart_totals table {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td {
  background: transparent;
  padding-inline: 0;
}

.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-error,
.woocommerce-cart .woocommerce-info,
.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-error {
  border-radius: var(--r);
  box-shadow: none;
}

.woocommerce-checkout form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 28px;
  align-items: start;
}

.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup,
.woocommerce-checkout form.checkout > .woocommerce-form-login-toggle,
.woocommerce-checkout form.checkout > .woocommerce-form-coupon-toggle,
.woocommerce-checkout form.checkout > .woocommerce-info,
.woocommerce-checkout form.checkout > .woocommerce-error,
.woocommerce-checkout form.checkout > .woocommerce-message {
  grid-column: 1 / -1;
}

.woocommerce-checkout .woocommerce-form-login-toggle,
.woocommerce-checkout .woocommerce-form-coupon-toggle {
  margin-bottom: 12px;
}

.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info,
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
  display: block;
  margin: 0;
  padding: 15px 20px;
  background: #eef6ff;
  border-left: 4px solid var(--c-blue);
  color: var(--c-text2);
}

.woocommerce-checkout .woocommerce-form-login-toggle .showlogin,
.woocommerce-checkout .woocommerce-form-coupon-toggle .showcoupon {
  margin-left: 8px;
  font-weight: 800;
}

.woocommerce-checkout #customer_details {
  grid-column: 1;
  grid-row: 1;
  float: none;
  width: auto;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}

.woocommerce-checkout #customer_details::before,
.woocommerce-checkout #customer_details::after {
  content: "";
  display: table;
  clear: both;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
  float: none;
  width: 100%;
}

.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout .woocommerce-additional-fields h3,
.woocommerce-checkout #order_review_heading {
  color: var(--c-blue-dark);
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 18px;
}

.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--c-border);
}

.woocommerce-checkout .form-row {
  margin-bottom: 16px;
}

.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
  width: calc(50% - 8px);
}

.woocommerce-checkout .form-row-first {
  margin-right: 16px;
}

.woocommerce-checkout label {
  color: var(--c-text);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
}

.woocommerce-checkout .woocommerce-input-wrapper {
  display: block;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select,
.woocommerce-checkout .select2-container .select2-selection--single {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--c-text);
  font-family: var(--font);
  font-size: 14px;
  padding: 12px 14px;
  transition: var(--t);
}

.woocommerce-checkout textarea {
  min-height: 120px;
  resize: vertical;
}

.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout .select2-container--open .select2-selection--single {
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(0, 82, 165, .1);
  outline: none;
}

.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

.woocommerce-checkout #order_review_heading {
  background: #fff;
  border: 1px solid var(--c-border);
  border-bottom: 0;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: var(--shadow-sm);
  padding: 24px 24px 0;
}

.woocommerce-checkout #order_review {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  margin-top: 54px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-top: 0;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 10px 24px 24px;
}

.woocommerce-checkout #order_review table.shop_table {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0 0 18px;
}

.woocommerce-checkout #order_review table.shop_table th,
.woocommerce-checkout #order_review table.shop_table td {
  background: transparent;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border);
  padding: 13px 0;
  font-size: 14px;
}

.woocommerce-checkout #order_review table.shop_table thead th {
  color: var(--c-text3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.woocommerce-checkout #order_review table.shop_table .order-total th,
.woocommerce-checkout #order_review table.shop_table .order-total td {
  color: var(--c-blue-dark);
  font-size: 18px;
  font-weight: 800;
}

.woocommerce-checkout #shipping_method,
.woocommerce-cart #shipping_method {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.woocommerce-checkout #shipping_method li,
.woocommerce-cart #shipping_method li {
  margin: 0;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.woocommerce-checkout #shipping_method label,
.woocommerce-cart #shipping_method label {
  display: block;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  background: #f8fbff;
  color: var(--c-text2);
  font-weight: 700;
  cursor: pointer;
}

.woocommerce-checkout #shipping_method input,
.woocommerce-cart #shipping_method input {
  margin: 0;
  accent-color: var(--c-orange);
}

.woocommerce-checkout #shipping_method input:checked + label,
.woocommerce-cart #shipping_method input:checked + label {
  border-color: rgba(255, 107, 0, .45);
  background: #fff7ed;
  color: var(--c-blue-dark);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, .08);
}

.woocommerce-checkout #payment {
  background: linear-gradient(135deg, #f8fbff 0%, #fff7ed 100%);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  margin-top: 16px;
  overflow: hidden;
}

.woocommerce-checkout #payment ul.payment_methods {
  list-style: none;
  margin: 0;
  border: 0;
  padding: 16px;
}

.woocommerce-checkout #payment ul.payment_methods li {
  list-style: none;
  margin: 0;
}

.woocommerce-checkout #payment ul.payment_methods input[type="radio"] {
  margin: 0 8px 0 0;
  accent-color: var(--c-orange);
}

.woocommerce-checkout #payment ul.payment_methods label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-blue-dark);
  font-weight: 800;
}

.woocommerce-checkout #payment ul.payment_methods label img {
  display: none;
}

.woocommerce-checkout #payment div.payment_box {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  color: var(--c-text2);
  line-height: 1.6;
}

.woocommerce-checkout #payment div.payment_box::before {
  display: none;
}

.woocommerce-checkout #payment .place-order {
  padding: 16px;
}

.woocommerce-checkout #payment #place_order {
  width: 100%;
  min-height: 54px;
  background: var(--c-orange) !important;
  border-radius: 999px !important;
  box-shadow: var(--shadow-orange) !important;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  color: var(--c-text2);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .woocommerce-checkout form.checkout {
    grid-template-columns: 1fr;
  }

  .woocommerce-checkout #customer_details,
  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review {
    grid-column: 1;
    grid-row: auto;
  }

  .woocommerce-checkout #order_review {
    position: static;
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .woocommerce-cart .woocommerce-cart-form {
    overflow: visible;
  }

  .woocommerce-cart table.cart .actions {
    display: block;
    text-align: left;
  }

  .woocommerce-cart table.cart .actions .coupon,
  .woocommerce-cart table.cart .actions > button {
    float: none;
    margin-left: 0;
    max-width: none;
  }

  .woocommerce-cart table.cart .actions .coupon {
    display: grid;
    gap: 10px;
    flex: 1 1 100%;
    width: 100%;
    margin-bottom: 12px;
  }

  .woocommerce-cart table.cart .actions .coupon input,
  .woocommerce-cart table.cart .actions .coupon button,
  .woocommerce-cart table.cart .actions > button {
    width: 100%;
  }

  .woocommerce-checkout #customer_details,
  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review,
  .woocommerce-cart .cart_totals {
    padding: 20px;
  }

  .woocommerce-checkout .form-row-first,
  .woocommerce-checkout .form-row-last {
    width: 100%;
    margin-right: 0;
  }
}

/* ============================================================
   WHY COMPAN
   ============================================================ */
.why-compan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.why-item {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--c-border);
  transition: var(--t-slow);
  position: relative;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
}
.js .why-item { opacity: 0; transform: translateY(16px); }
.js .why-item.is-visible { opacity: 1; transform: translateY(0); }
.why-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-blue) 0%, var(--c-orange) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.why-item:hover::before { transform: scaleX(1); }
.why-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-blue);
}
.why-icon { margin-bottom: 14px; display: flex; align-items: center; justify-content: center; }
.why-item h3 { font-size: 15px; font-weight: 700; color: var(--c-text); margin-bottom: 8px; }
.why-item p { font-size: 13.5px; color: var(--c-text2); line-height: 1.6; }

/* ============================================================
   CONTACT BAR
   ============================================================ */
.contact-bar {
  background: linear-gradient(135deg, var(--c-blue) 0%, var(--c-blue-dark) 100%);
  border-radius: var(--r-lg);
  padding: 36px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.contact-bar::after {
  content: '';
  position: absolute;
  right: -40px; top: -40px;
  width: 180px; height: 180px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  pointer-events: none;
}
.contact-bar::before {
  content: '';
  position: absolute;
  left: -60px; bottom: -80px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,107,0,.18) 0%, rgba(255,107,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}
.contact-bar-content h3 { color: #fff; font-size: 22px; margin-bottom: 6px; }
.contact-bar-content p { color: rgba(255,255,255,.8); font-size: 15px; }
.contact-bar-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

/* ============================================================
   VOLT BRAND SECTION
   ============================================================ */
.brand-volt {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--r-lg);
  padding: 36px 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: var(--shadow-md);
}
.brand-volt::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-orange) 0%, var(--c-orange-dark) 100%);
  opacity: .9;
}
.brand-volt::before {
  content: '⚡';
  position: absolute;
  right: 30px; top: 50%;
  transform: translateY(-50%);
  font-size: 100px;
  opacity: .07;
}
.brand-volt-content { position: relative; max-width: 70%; }
.brand-volt h3 { color: var(--c-orange); font-size: 22px; margin-bottom: 10px; }
.brand-volt p { opacity: .85; font-size: 15px; line-height: 1.6; margin-bottom: 16px; }

/* ============================================================
   GLOBAL BUTTONS
   ============================================================ */
.compan-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--c-blue-light) 0%, var(--c-blue) 60%, var(--c-blue-dark) 100%);
  color: #fff;
  padding: 12px 26px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: var(--t);
  border: none;
  cursor: pointer;
}
.compan-btn-primary:hover {
  background: linear-gradient(135deg, var(--c-blue) 0%, var(--c-blue-dark) 100%);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}
.compan-btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.compan-btn-orange {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--c-orange) 0%, var(--c-orange-dark) 100%);
  color: #fff;
  padding: 12px 26px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: var(--t);
  border: none;
  cursor: pointer;
}
.compan-btn-orange:hover {
  background: linear-gradient(135deg, var(--c-orange-dark) 0%, var(--c-orange-dark) 100%);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange);
}
.compan-btn-orange:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.compan-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #fff;
  padding: 11px 24px;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,.5);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: var(--t);
}
.compan-btn-outline:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}
.compan-btn-outline:active {
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .compan-btn-primary:hover,
  .compan-btn-orange:hover,
  .compan-btn-outline:hover { transform: none; }
}

/* ============================================================
   QUANTITY BUTTONS
   ============================================================ */
.quantity { display: flex; align-items: stretch; }
.quantity input.qty { text-align: center; border-left: none; border-right: none; width: 50px; }
.qty-btn {
  background: var(--c-bg2);
  border: 1px solid var(--c-border);
  padding: 0 12px;
  cursor: pointer;
  font-size: 18px;
  color: var(--c-text2);
  line-height: 1;
  transition: var(--t);
}
.qty-btn:hover { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 24px;
  background: var(--c-blue);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 20px;
  cursor: pointer;
  z-index: 490;
  box-shadow: var(--shadow-md);
  transition: var(--t);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}
.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top-btn:hover { background: var(--c-orange); transform: translateY(-2px); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  background:
    radial-gradient(1100px 380px at 12% -8%, rgba(26,109,194,.16), transparent 60%),
    radial-gradient(900px 320px at 100% 0%, rgba(255,107,0,.07), transparent 55%),
    var(--c-text);
  color: rgba(255,255,255,.7);
  margin-top: auto;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-blue) 0%, var(--c-blue-light) 45%, var(--c-orange) 100%);
  opacity: .9;
}
.footer-main { padding: 56px 0 32px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.footer-logo-icon {
  width: 36px;
  height: auto;
  flex-shrink: 0;
}
.footer-brand .brand-name {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 3px;
  display: block;
}
.footer-brand p {
  font-size: 13.5px;
  line-height: 1.75;
  margin-bottom: 20px;
  color: rgba(255,255,255,.6);
}

.footer-contact-list { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255,255,255,.72);
}
.footer-contact-item a {
  color: rgba(255,255,255,.72);
  transition: var(--t);
}
.footer-contact-item a:hover { color: var(--c-orange); }
.footer-icon {
  width: 28px;
  height: 28px;
  padding: 6px;
  flex-shrink: 0;
  color: rgba(255,255,255,.82);
  background: rgba(26,109,194,.18);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--r-sm);
  transition: var(--t);
}
.footer-contact-item:hover .footer-icon {
  background: rgba(255,107,0,.16);
  color: #fff;
  border-color: rgba(255,107,0,.32);
}

.footer-col h4 {
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-col__subtitle { margin-top: 24px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  display: inline-block;
  color: rgba(255,255,255,.62);
  font-size: 13.5px;
  transition: color var(--t), transform var(--t);
}
.footer-col ul li a:hover {
  color: var(--c-orange);
  transform: translateX(4px);
}

.footer-payments {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.payment-badge {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.78);
  padding: 5px 11px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 600;
  transition: transform var(--t), background var(--t), border-color var(--t);
}
.payment-badge:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.22);
}
.payment-badge--accent { background: var(--c-orange); border-color: rgba(255,107,0,.5); color: #fff; }
.payment-badge--accent:hover { background: var(--c-orange-dark); border-color: rgba(255,107,0,.7); }
.payment-badge--applepay { background: #000; border-color: rgba(255,255,255,.18); color: #fff; }
.payment-badge--googlepay { background: #4285f4; border-color: rgba(66,133,244,.5); color: #fff; }

.footer-bottom {
  background: rgba(0,0,0,.4);
  padding: 18px 0;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255,255,255,.65);
  border-top: 1px solid rgba(255,255,255,.1);
}
.footer-bottom p { margin: 0; }
.footer-bottom a {
  color: rgba(255,255,255,.75);
  background-image: linear-gradient(var(--c-orange), var(--c-orange));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: color var(--t), background-size var(--t);
}
.footer-bottom a:hover {
  color: var(--c-orange);
  background-size: 100% 1px;
}

/* ============================================================
   CMS PAGES
   ============================================================ */
.page-content {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 40px 48px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
}
.page-content .page-title,
.page-title {
  font-size: 30px;
  color: var(--c-blue);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--c-bg2);
}
.page-content h2 { font-size: 22px; color: var(--c-text); margin: 28px 0 14px; }
.page-content h3 { font-size: 17px; color: var(--c-text); margin: 22px 0 10px; }
.page-content p { margin-bottom: 16px; line-height: 1.75; color: var(--c-text2); }
.page-content ul,
.page-content ol { margin: 0 0 16px 20px; }
.page-content li { margin-bottom: 6px; line-height: 1.65; color: var(--c-text2); }
.page-content table { width: 100%; border-collapse: collapse; margin-bottom: 20px; border-radius: var(--r); overflow: hidden; }
.page-content table th { background: var(--c-blue); color: #fff; padding: 12px 16px; font-size: 13.5px; }
.page-content table td { padding: 12px 16px; border-bottom: 1px solid var(--c-border); font-size: 14px; }
.page-content table tr:last-child td { border-bottom: none; }
.page-content table tr:nth-child(even) td { background: var(--c-bg); }

/* ============================================================
   STRONA KONTAKTOWA
   ============================================================ */
.contact-page { padding: 16px 0 48px; }
.contact-page .woocommerce-breadcrumb { margin-bottom: 20px; }
.contact-page .page-title { font-size: 32px; color: var(--c-text); margin-bottom: 8px; }
.contact-subtitle { color: var(--c-text2); font-size: 15px; margin-bottom: 32px; max-width: 600px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

/* -- Formularz -- */
.contact-form-col { min-width: 0; }

.contact-form .form-row { margin-bottom: 16px; }
.contact-form .form-row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form .form-group { display: flex; flex-direction: column; gap: 6px; }
.contact-form .form-group label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-text);
}
.contact-form .form-group label .required { color: var(--c-red); }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r);
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-white);
  transition: var(--t);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--c-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,82,165,.1);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form select { cursor: pointer; appearance: auto; }

.form-group--consent { margin-top: 8px; }
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--c-text2);
  line-height: 1.5;
}
.consent-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--c-blue);
}

.contact-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 14px 32px;
  background: var(--c-orange);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--t);
  box-shadow: var(--shadow-orange);
}
.contact-submit-btn:hover {
  background: var(--c-orange-dark);
  transform: translateY(-1px);
}

/* -- Alerty -- */
.contact-alert {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--r);
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.5;
}
.contact-alert strong { display: block; margin-bottom: 2px; }
.contact-alert svg { flex-shrink: 0; margin-top: 2px; }
.contact-alert--success {
  background: var(--c-green-light);
  border: 1px solid #86efac;
  color: #166534;
}
.contact-alert--success svg { stroke: #16a34a; }
.contact-alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.contact-alert--error svg { stroke: #dc2626; }

/* -- Dane kontaktowe sidebar -- */
.contact-info-col { display: flex; flex-direction: column; gap: 20px; }

.contact-info-card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
}
.contact-info-card--highlight {
  background: var(--c-blue-xlight);
  border-color: rgba(0,82,165,.15);
}
.contact-info-card--highlight h3 {
  font-size: 16px;
  color: var(--c-blue-dark);
  margin-bottom: 8px;
}
.contact-info-card--highlight p {
  font-size: 13.5px;
  color: var(--c-text2);
  margin-bottom: 16px;
  line-height: 1.5;
}

.contact-info-title {
  font-size: 18px;
  color: var(--c-text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--c-blue);
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-bg2);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-blue-xlight);
  border-radius: var(--r);
  flex-shrink: 0;
}
.contact-info-icon svg { stroke: var(--c-blue); }
.contact-info-item strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--c-text3);
  margin-bottom: 2px;
  font-weight: 600;
}
.contact-info-item span,
.contact-info-item a {
  font-size: 14.5px;
  color: var(--c-text);
  line-height: 1.4;
}
.contact-info-item a:hover { color: var(--c-blue); }

.contact-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--c-blue);
  color: #fff !important;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: var(--shadow-blue);
  transition: var(--t);
}
.contact-phone-btn:hover {
  background: var(--c-blue-dark);
  color: #fff !important;
  transform: translateY(-1px);
}
.contact-phone-btn svg { stroke: #fff; }

.contact-map { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.contact-map__placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 40px 20px; background: var(--c-bg2); color: var(--c-text2); text-align: center;
  min-height: 250px;
}
.contact-map__placeholder p { font-size: 14px; margin: 0; max-width: 280px; }
.contact-map__placeholder svg { color: var(--c-text3); }
.contact-map__consent-btn {
  background: var(--c-blue); color: #fff; border: none; padding: 10px 20px;
  border-radius: var(--r); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background-color .2s ease;
}
.contact-map__consent-btn:hover { background: var(--c-blue-dark); }

/* ============================================================
   MOJE KONTO — LOGIN / REJESTRACJA
   ============================================================ */
.woocommerce-account .woocommerce {
  max-width: var(--max-w);
}

/* Dwukolumnowy layout login | register */
.woocommerce-account:not(.logged-in) .woocommerce {
  padding: 32px 0 48px;
}
.woocommerce-account:not(.logged-in) #customer_login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.woocommerce-account:not(.logged-in) #customer_login > div {
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
}
.woocommerce-account:not(.logged-in) #customer_login h2 {
  font-size: 22px;
  color: var(--c-text);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--c-blue);
}

/* Formularz WooCommerce — wspólne style */
.woocommerce form .form-row { margin-bottom: 16px; }
.woocommerce form .form-row label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 6px;
}
.woocommerce form .form-row .required { color: var(--c-red); }

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row input[type="text"],
.woocommerce form .form-row input[type="email"],
.woocommerce form .form-row input[type="password"] {
  width: 100%;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r);
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-white);
  transition: var(--t);
}
.woocommerce form .form-row input:focus {
  border-color: var(--c-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,82,165,.1);
}

.woocommerce form .form-row-first { float: left; width: 48%; }
.woocommerce form .form-row-last { float: right; width: 48%; }
.woocommerce form .clear { clear: both; }

/* Przyciski WC */
.woocommerce button.woocommerce-button,
.woocommerce .woocommerce-form-login .button,
.woocommerce .woocommerce-form-register .button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--c-blue);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--t);
  box-shadow: var(--shadow-blue);
}
.woocommerce .woocommerce-form-login .button:hover,
.woocommerce .woocommerce-form-register .button:hover {
  background: var(--c-blue-dark);
  transform: translateY(-1px);
}

/* "Zapamiętaj mnie" checkbox */
.woocommerce-form__label-for-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--c-text2);
  cursor: pointer;
}

/* Link "Nie pamiętasz hasła?" */
.woocommerce .lost_password {
  margin-top: 16px;
  font-size: 13px;
}

/* Zalogowany — Moje konto dashboard */
.woocommerce-account.logged-in .woocommerce {
  padding: 24px 0 48px;
}
.woocommerce-MyAccount-navigation {
  float: left;
  width: 240px;
  background: var(--c-white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  overflow: hidden;
  margin-right: 32px;
}
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.woocommerce-MyAccount-navigation ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  font-size: 14px;
  color: var(--c-text2);
  border-bottom: 1px solid var(--c-bg2);
  transition: var(--t);
}
.woocommerce-MyAccount-navigation ul li a::before {
  content: '';
  width: 18px; height: 18px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
/* Navigation icons via CSS masks */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--dashboard a::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
}
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--orders a::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 2L3 6v14a2 2 0 002 2h14a2 2 0 002-2V6l-3-4z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cpath d='M16 10a4 4 0 01-8 0'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 2L3 6v14a2 2 0 002 2h14a2 2 0 002-2V6l-3-4z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cpath d='M16 10a4 4 0 01-8 0'/%3E%3C/svg%3E");
}
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--downloads a::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
}
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--edit-address a::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--edit-account a::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M9 21H5a2 2 0 01-2-2V5a2 2 0 012-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M9 21H5a2 2 0 01-2-2V5a2 2 0 012-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
}
.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
  background: var(--c-blue-xlight);
  color: var(--c-blue);
}
.woocommerce-MyAccount-navigation ul li.is-active a {
  font-weight: 600;
  border-left: 3px solid var(--c-blue);
}
.woocommerce-MyAccount-content {
  overflow: hidden;
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
}

/* My Account — Custom Dashboard */
.compan-dashboard__welcome h2 {
  font-size: 22px; font-weight: 700; color: var(--c-blue); margin: 0 0 6px;
}
.compan-dashboard__welcome p {
  color: var(--c-text3); font-size: 14px; margin: 0 0 24px;
}
.compan-dashboard__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px;
}
.compan-dash-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 24px 16px; border-radius: var(--r-lg);
  border: 1px solid var(--c-border); background: var(--c-bg);
  text-align: center; transition: var(--t); text-decoration: none; color: var(--c-text2);
}
.compan-dash-card:hover {
  border-color: var(--c-blue); background: var(--c-blue-xlight);
  color: var(--c-blue); transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.compan-dash-card svg { color: var(--c-blue); }
.compan-dash-card__title { font-size: 15px; font-weight: 700; color: var(--c-text); }
.compan-dash-card__desc { font-size: 12px; color: var(--c-text3); }

.compan-dashboard__recent h3 {
  font-size: 16px; font-weight: 700; color: var(--c-text); margin: 0 0 12px;
}
.compan-recent-orders {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.compan-recent-orders th {
  text-align: left; padding: 10px 12px; font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.5px; color: var(--c-text3);
  border-bottom: 2px solid var(--c-border); background: var(--c-bg);
}
.compan-recent-orders td {
  padding: 10px 12px; border-bottom: 1px solid var(--c-bg2);
}
.compan-recent-orders a { color: var(--c-blue); font-weight: 600; }
.compan-order-status {
  display: inline-block; padding: 3px 10px; border-radius: 12px;
  font-size: 12px; font-weight: 600;
}
.compan-order-status--processing { background: #dbeafe; color: #1e40af; }
.compan-order-status--completed { background: #dcfce7; color: #166534; }
.compan-order-status--on-hold { background: #fef3c7; color: #92400e; }
.compan-order-status--pending { background: #f3f4f6; color: #6b7280; }
.compan-order-status--cancelled, .compan-order-status--failed { background: #fef2f2; color: #991b1b; }
.compan-order-status--refunded { background: #f5f3ff; color: #6d28d9; }

@media (max-width: 600px) {
  .compan-dashboard__grid { grid-template-columns: 1fr; }
  .compan-recent-orders { font-size: 13px; }
  .compan-recent-orders th, .compan-recent-orders td { padding: 8px; }
}

/* WC messages — additional overrides */
.woocommerce-error { list-style: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .why-compan-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .shop-layout { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
}

/* Mobile shop filter toggle button */
.shop-filter-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--c-text);
  cursor: pointer;
  transition: var(--t);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.shop-filter-toggle:hover { border-color: var(--c-blue); color: var(--c-blue); }
.shop-filter-toggle svg:first-child { color: var(--c-blue); }
.shop-filter-toggle__chevron {
  margin-left: auto;
  transition: transform .25s ease;
}
.shop-filter-toggle[aria-expanded="true"] .shop-filter-toggle__chevron {
  transform: rotate(180deg);
}

@media (max-width: 1024px) {
  .hero-title { font-size: 36px; }
  .hero-visual { width: 250px; height: 250px; }
  .hero-visual__ring--outer { width: 234px; height: 234px; }
  .hero-visual__ring--inner { width: 168px; height: 168px; }
  .hero-hexcore { width: 152px; height: 152px; }
  .hero-hexcore__hex { width: 128px; height: 128px; }
  .hero-chip { width: 40px; height: 40px; }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .usp-item { border-bottom: 1px solid var(--c-border); }
  .usp-item:nth-child(2n) { border-right: none; }
  .shop-layout { grid-template-columns: minmax(0, 1fr); }
  .shop-sidebar { position: static; }
  .brand-volt-content { max-width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .woocommerce-account:not(.logged-in) #customer_login { grid-template-columns: 1fr; }
  .woocommerce-MyAccount-navigation { float: none; width: 100%; margin-right: 0; margin-bottom: 20px; }

  /* Show filter toggle, hide sidebar by default on tablet/mobile */
  .shop-filter-toggle { display: flex; order: -1; }
  .shop-sidebar {
    display: none;
    order: -1;
    animation: slideDown 0.25s ease-out;
  }
  .shop-sidebar.open { display: block; }
}

/* Mobile search (hidden on desktop) */
.mobile-search-toggle { display: none; }
.mobile-search { display: none; }

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .topbar-inner { flex-direction: column; gap: 4px; text-align: center; }
  .topbar-contact { justify-content: center; }
  .topbar-contact .topbar-hide-mobile { display: none; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .header-search { display: none; }
  .mobile-search-toggle { display: flex; }
  .mobile-search {
    width: 100%;
    padding: 8px 16px 12px;
    background: var(--c-blue-dark);
    animation: slideDown 0.25s ease-out;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .mobile-search-form {
    display: flex;
    background: rgba(255,255,255,.12);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.15);
    overflow: hidden;
  }
  .mobile-search-form .search-input {
    flex: 1;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    outline: none;
  }
  .mobile-search-form .search-input::placeholder { color: rgba(255,255,255,.5); }
  .mobile-search-form .search-btn {
    padding: 10px 14px;
    background: var(--c-orange);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
  }
  .logo-icon-svg { width: 38px; }
  .logo-text .brand-name { font-size: 19px; letter-spacing: 2px; }
  .logo-text .brand-tagline { font-size: 9.5px; }

  .nav-toggle { display: flex; }
  .nav-menu { display: none; flex-direction: column; width: 100%; }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .sub-menu { position: static; box-shadow: none; border-radius: 0; border-top: none; background: rgba(0,0,0,.2); display: none; }
  .sub-menu.sub-menu--open { display: block; }
  .sub-menu li a { color: rgba(255,255,255,.8) !important; padding: 9px 32px; }

  .hero-banner { margin: -32px -16px 0; padding: 48px 16px 40px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-title { font-size: 28px; }
  .hero-stat-group { gap: 16px; flex-wrap: wrap; }

  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .why-compan-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .contact-bar { flex-direction: column; text-align: center; padding: 28px 24px; }
  .contact-bar-actions { justify-content: center; }
  .contact-form .form-row--half { grid-template-columns: 1fr; }
  .woocommerce form .form-row-first,
  .woocommerce form .form-row-last { float: none; width: 100%; }

  ul.products { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .page-content { padding: 24px 20px; }
}

@media (max-width: 480px) {
  .compan-container { padding: 0 16px; }
  .hero-banner { margin: -32px -16px 0; padding: 44px 16px 36px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .why-compan-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 24px; }
  .logo-icon-svg { width: 34px; }
  .logo-text .brand-name { font-size: 17px; letter-spacing: 1.5px; }
  .logo-text .brand-tagline { display: none; }
  .hero-badges { gap: 6px; }
  .hero-badge { font-size: 11.5px; padding: 4px 10px; }
  ul.products { grid-template-columns: 1fr 1fr; gap: 12px; }
  .usp-grid { grid-template-columns: 1fr; }
  .usp-item { border-right: none; }
  .product-card__image { height: auto; }
  .product-card__price { font-size: 17px; }
}

/* ============================================================
   WC BLOCK CHECKOUT & CART (nowy checkout WooCommerce)
   ============================================================ */

/* --- Checkout page wrapper --- */
.woocommerce-checkout .wp-block-woocommerce-checkout,
.woocommerce-cart .wp-block-woocommerce-cart {
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Place Order button (pomarańczowy, pill) --- */
.wc-block-components-checkout-place-order-button,
.wp-block-woocommerce-checkout .wc-block-components-button.contained {
  background: var(--c-orange) !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: 14px 36px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: var(--shadow-orange) !important;
  transition: var(--t) !important;
  text-transform: none !important;
}
.wc-block-components-checkout-place-order-button:hover,
.wp-block-woocommerce-checkout .wc-block-components-button.contained:hover {
  background: #e55d00 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(255,107,0,.35) !important;
}

/* --- Return to cart link --- */
.wc-block-components-checkout-return-to-cart-button {
  color: var(--c-blue) !important;
  font-weight: 600;
}
.wc-block-components-checkout-return-to-cart-button:hover {
  color: var(--c-orange) !important;
}

/* --- Text inputs (block checkout) --- */
.wc-block-components-text-input input,
.wc-block-components-text-input textarea,
.wc-block-components-combobox .components-combobox-control .components-form-token-field__input-container {
  border: 1.5px solid var(--c-border) !important;
  border-radius: var(--r) !important;
  font-family: var(--font) !important;
  font-size: 14px !important;
  transition: var(--t) !important;
}
.wc-block-components-text-input input:focus,
.wc-block-components-text-input textarea:focus {
  border-color: var(--c-blue) !important;
  box-shadow: 0 0 0 3px rgba(0,82,165,.12) !important;
}

/* --- Section headings --- */
.wc-block-components-checkout-step__heading,
.wc-block-components-title.wc-block-components-title {
  font-family: var(--font) !important;
  color: var(--c-text) !important;
  font-weight: 700 !important;
}

/* --- Order summary sidebar --- */
.wc-block-components-order-summary .wc-block-components-order-summary-item__description {
  font-family: var(--font);
}

/* --- Shipping options radio --- */
.wc-block-components-radio-control__option:checked + .wc-block-components-radio-control__label,
.wc-block-components-radio-control .wc-block-components-radio-control__input:checked {
  border-color: var(--c-blue) !important;
}
.wc-block-components-radio-control .wc-block-components-radio-control__input:checked::before {
  background: var(--c-blue) !important;
}

/* --- Payment method radio --- */
.wc-block-components-payment-method-label {
  font-weight: 600;
}

/* --- Coupon toggle --- */
.wc-block-components-totals-coupon-link {
  color: var(--c-blue) !important;
}

/* --- Totals section --- */
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--c-blue-dark) !important;
}
.wc-block-components-totals-footer-item .wc-block-components-totals-footer-item-tax {
  color: var(--c-text3) !important;
  font-size: 12px !important;
}

/* --- Cart page buttons --- */
.wc-block-cart__submit-button,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button {
  background: var(--c-orange) !important;
  color: #fff !important;
  border-radius: var(--r) !important;
  padding: 14px 36px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border: none !important;
  transition: var(--t) !important;
  box-shadow: var(--shadow-orange) !important;
}
.wc-block-cart__submit-button:hover,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button:hover {
  background: var(--c-orange-dark) !important;
  transform: translateY(-1px) !important;
}

/* --- Cart item quantity stepper --- */
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
  color: var(--c-blue) !important;
}
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover {
  color: var(--c-orange) !important;
}

/* --- Checkout step numbers --- */
.wc-block-components-checkout-step::before {
  color: var(--c-blue) !important;
}
.wc-block-components-checkout-step--with-step-number .wc-block-components-checkout-step__container::after {
  border-color: var(--c-border) !important;
}

/* --- Order confirmation page --- */
.woocommerce-order-received .woocommerce-thankyou-order-received {
  font-size: 16px;
  color: var(--c-text2);
  margin-bottom: 20px;
}
.woocommerce-order-received .woocommerce-order-overview {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}
.woocommerce-order-received .woocommerce-order-overview li {
  padding: 8px 0;
  border-bottom: 1px solid var(--c-border);
  font-size: 14px;
}
.woocommerce-order-received .woocommerce-order-overview li strong {
  color: var(--c-text);
}
.woocommerce-order-received .woocommerce-bacs-bank-details {
  background: var(--c-blue-xlight);
  border-radius: var(--r);
  padding: 20px 24px;
  margin: 20px 0;
  border-left: 4px solid var(--c-blue);
}
.woocommerce-order-received .woocommerce-bacs-bank-details .wc-bacs-bank-details-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-blue-dark);
  margin-bottom: 12px;
}
.woocommerce-order-received .woocommerce-bacs-bank-details ul {
  list-style: none;
  padding: 0;
}
.woocommerce-order-received .woocommerce-bacs-bank-details li {
  padding: 4px 0;
  font-size: 14px;
}
.woocommerce-order-received .woocommerce-bacs-bank-details li strong {
  font-weight: 700;
}

/* --- Checkout block link colors --- */
.wp-block-woocommerce-checkout a,
.wp-block-woocommerce-cart a {
  color: var(--c-blue);
}
.wp-block-woocommerce-checkout a:hover,
.wp-block-woocommerce-cart a:hover {
  color: var(--c-orange);
}

/* --- Checkout page title — larger and bolder --- */
.woocommerce-checkout .entry-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--c-blue);
  margin-bottom: 8px;
}

/* --- Checkout sections — card-like appearance --- */
.wc-block-components-checkout-step {
  padding-bottom: 12px !important;
  margin-bottom: 8px !important;
}

/* --- Checkout step headings — better visual hierarchy --- */
.wc-block-components-checkout-step__heading h2 {
  font-size: 17px !important;
  letter-spacing: -.01em;
}

/* --- Selected shipping/payment option — highlight --- */
.wc-block-components-radio-control__option--checked {
  background: var(--c-blue-xlight) !important;
  border-color: var(--c-blue) !important;
  border-radius: var(--r) !important;
}

/* --- Payment method descriptions --- */
.wc-block-components-radio-control-accordion-content {
  font-size: 13px;
  color: var(--c-text2);
  line-height: 1.6;
}

/* --- Checkout actions area — trust badge --- */
.wc-block-checkout__actions {
  position: relative;
}
.wc-block-checkout__actions::after {
  content: '\1F512 Bezpieczne zakupy — dane szyfrowane SSL';
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--c-text3, #94a3b8);
  margin-top: 12px;
  letter-spacing: .01em;
}

/* --- Legal/terms text styling --- */
.wc-block-checkout__terms {
  font-size: 13px !important;
  color: var(--c-text3) !important;
  line-height: 1.6;
}

/* --- Order summary sidebar — sticky on desktop --- */
@media (min-width: 769px) {
  .wp-block-woocommerce-checkout-order-summary-block {
    position: sticky;
    top: 90px;
  }
}

/* --- Block checkout responsive --- */
@media (max-width: 768px) {
  .wc-block-components-checkout-place-order-button {
    width: 100% !important;
    text-align: center !important;
  }
  .woocommerce-checkout .entry-title {
    font-size: 22px;
  }
}

/* ============================================================
   WALIDACJA PÓL — hinty i błędy
   ============================================================ */
.compan-field-hint {
  display: block;
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.4;
}
.compan-field-error {
  color: var(--c-red);
}

/* ============================================================
   CHECKOUT — SEKCJA FAKTURY
   ============================================================ */
.compan-invoice-section {
  background: var(--c-blue-xlight);
  border-radius: var(--r, 10px);
  padding: 20px 24px;
  margin: 20px 0;
  border: 1.5px solid var(--c-border);
}
/* Wariant na klasycznym checkoucie — sekcja siedzi między polami billing,
   ciaśniejszy padding i pełna szerokość rzędu formularza */
.compan-invoice-section--classic {
  width: 100%;
  clear: both;
  padding: 16px 18px;
  margin: 8px 0 16px;
}
.compan-invoice-section--classic .compan-invoice-nip-row { margin-bottom: 4px; }
.compan-invoice-toggle {
  margin-bottom: 0;
}
.compan-invoice-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-blue-dark, #0a2540);
  cursor: pointer;
}
.compan-invoice-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--c-orange, #ff6b00);
  cursor: pointer;
}
.compan-invoice-fields {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.compan-invoice-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text, #1e293b);
  margin-bottom: 4px;
}
.compan-invoice-field label .required {
  color: var(--c-red);
}
.compan-invoice-field input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: 8px;
  font-size: 14px;
  transition: border-color .2s;
  box-sizing: border-box;
}
.compan-invoice-field input:focus {
  border-color: var(--c-blue, #0052a5);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,82,165,.1);
}
.compan-invoice-nip-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.compan-invoice-field--nip {
  flex: 1;
}
.compan-gus-btn {
  padding: 10px 18px;
  background: var(--c-blue, #0052a5);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
  height: 42px;
}
.compan-gus-btn:hover { background: var(--c-blue-dark, #003d7a); }
.compan-gus-btn:disabled { opacity: .6; cursor: not-allowed; }
.compan-gus-status {
  font-size: 13px;
  min-height: 0;
}
.compan-gus-success { color: #16a34a; font-weight: 600; }
.compan-gus-error { color: var(--c-red); font-weight: 600; }
.compan-invoice-row-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .compan-invoice-nip-row { flex-direction: column; }
  .compan-invoice-row-half { grid-template-columns: 1fr; }
}

/* ============================================================
   INPOST PACZKOMAT — mapa
   ============================================================ */
.compan-inpost-section {
  background: #fffbf0;
  border: 1.5px solid #ffd666;
  border-radius: var(--r, 10px);
  padding: 16px 20px;
  margin: 12px 0;
}
.compan-inpost-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 14px;
}
.compan-inpost-selected {
  color: #16a34a;
  font-weight: 700;
  font-size: 13px;
}
.compan-inpost-btn {
  background: #ffcb05;
  color: #333;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.compan-inpost-btn:hover { background: #f0bc00; }
.compan-inpost-map {
  margin-top: 12px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--c-border);
}
.compan-inpost-manual {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #333;
}
.compan-inpost-manual input {
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
}
.compan-inpost-manual input:focus {
  outline: none;
  border-color: #ffcb05;
  box-shadow: 0 0 0 2px rgba(255, 203, 5, 0.2);
}
.compan-inpost-fallback {
  margin-top: 12px;
}
.compan-inpost-list-btn {
  background: var(--c-blue);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--t);
}
.compan-inpost-list-btn:hover {
  background: var(--c-blue-dark);
}
.compan-inpost-list-btn:disabled {
  background: var(--c-text3);
  opacity: 0.7;
  cursor: not-allowed;
}
.compan-inpost-list {
  margin-top: 10px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}
.compan-inpost-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px;
  border-bottom: 1px dashed var(--c-border);
}
.compan-inpost-list-item:last-child {
  border-bottom: none;
}
.compan-inpost-list-title {
  font-size: 14px;
  color: var(--c-text);
}
.compan-inpost-list-pick {
  background: #16a34a;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.compan-inpost-list-pick:hover {
  background: #14803d;
}
.compan-inpost-required {
  margin-top: 10px;
  color: #b91c1c;
  font-weight: 700;
  font-size: 13px;
}
.compan-inpost-disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
}
.compan-inpost-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}
.compan-inpost-modal.is-open {
  display: flex;
}
.compan-inpost-modal-content {
  width: 100%;
  max-width: 760px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.compan-inpost-modal-body {
  width: 100%;
  height: 70vh;
  min-height: 420px;
}
.compan-inpost-modal-body .compan-inpost-map,
.compan-inpost-modal-body #inpost-geowidget,
.compan-inpost-modal-body #compan-inpost-geowidget,
.compan-inpost-modal-body iframe {
  width: 100% !important;
  height: 100% !important;
}
.compan-inpost-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--c-text);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 768px) {
  .compan-inpost-modal-content {
    max-width: 100%;
    border-radius: 10px;
  }
  .compan-inpost-modal-body {
    height: 75vh;
    min-height: 360px;
  }
}

/* ============================================================
   CHECKOUT — WIĘKSZE POLE NOTATEK
   ============================================================ */
.wc-block-components-textarea,
.wc-block-checkout__add-note textarea,
textarea#order_comments {
  min-height: 120px !important;
  resize: vertical !important;
}

/* ============================================================
   KONTAKT — WHATSAPP
   ============================================================ */
.contact-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background .2s, transform .2s;
  margin-top: 8px;
}
.contact-whatsapp-btn:hover {
  background: #1ebe57;
  transform: translateY(-1px);
  color: #fff;
}
.contact-whatsapp-btn svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   WYNIKI WYSZUKIWANIA
   ============================================================ */
.search-term {
  color: var(--c-orange);
}
.search-results-count {
  color: var(--c-text2);
  font-size: 14px;
  margin-bottom: 24px;
}
.search-no-results {
  text-align: center;
  padding: 48px 24px;
  background: var(--c-blue-xlight);
  border-radius: var(--r-lg, 14px);
}
.search-no-results p { margin-bottom: 8px; }
.search-no-results a { color: var(--c-blue); font-weight: 600; }
.search-result-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--c-border);
}
.search-result-item h2 { font-size: 17px; margin-bottom: 4px; }
.search-result-item h2 a { color: var(--c-blue-dark); }
.search-result-item h2 a:hover { color: var(--c-orange); }
.search-excerpt { font-size: 14px; color: var(--c-text2); }

/* ============================================================
   STRONA 404
   ============================================================ */
.error-404-page {
  text-align: center;
  padding: 40px 0 60px;
}
.error-404-code {
  font-size: clamp(80px, 15vw, 160px);
  font-weight: 900;
  background: linear-gradient(135deg, var(--c-blue) 0%, var(--c-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -4px;
}
.error-404-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--c-blue-dark);
  margin-bottom: 12px;
}
.error-404-desc {
  font-size: 15px;
  color: var(--c-text2);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.error-404-search {
  max-width: 480px;
  margin: 0 auto 32px;
}
.error-404-search p {
  font-size: 14px;
  color: var(--c-text2);
  margin-bottom: 10px;
}
.search-form--404 {
  display: flex;
  border: 2px solid var(--c-blue);
  border-radius: 50px;
  overflow: hidden;
}
.search-form--404 .search-input {
  flex: 1;
  border: none;
  padding: 12px 20px;
  font-size: 15px;
  outline: none;
}
.search-form--404 .search-btn {
  background: var(--c-blue);
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background .2s;
}
.search-form--404 .search-btn:hover { background: var(--c-blue-dark); }
.error-404-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.btn-404 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s;
}
.btn-404--primary {
  background: var(--c-orange);
  color: #fff;
  box-shadow: var(--shadow-orange);
}
.btn-404--primary:hover { background: #e65f00; transform: translateY(-1px); color: #fff; }
.btn-404--secondary {
  background: var(--c-blue);
  color: #fff;
}
.btn-404--secondary:hover { background: var(--c-blue-dark); transform: translateY(-1px); color: #fff; }
.btn-404--outline {
  border: 2px solid var(--c-border);
  color: var(--c-text);
  background: transparent;
}
.btn-404--outline:hover { border-color: var(--c-blue); color: var(--c-blue); }
/* 404 popular products */
.error-404-products { margin-bottom: 32px; }
.error-404-products h2 { font-size: 16px; font-weight: 700; color: var(--c-text2); margin-bottom: 16px; }
.error-404-products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.error-404-product {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px; border-radius: var(--r-lg);
  border: 1px solid var(--c-border); background: var(--c-white);
  text-decoration: none; color: var(--c-text); transition: var(--t); text-align: center;
}
.error-404-product:hover { border-color: var(--c-blue); box-shadow: var(--shadow); transform: translateY(-2px); }
.error-404-product img { width: 100px; height: 100px; object-fit: contain; border-radius: var(--r-sm); }
.error-404-product__name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.error-404-product__price { font-size: 14px; font-weight: 700; color: var(--c-blue); }
@media (max-width: 600px) { .error-404-products-grid { grid-template-columns: repeat(2, 1fr); } }

.error-404-categories h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text2);
  margin-bottom: 16px;
}
.error-404-cats-grid {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.error-404-cat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--c-blue-xlight);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-blue-dark);
  text-decoration: none;
  transition: all .2s;
  border: 1.5px solid transparent;
}
.error-404-cat:hover {
  border-color: var(--c-blue);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.error-404-cat-icon { width: 20px; height: 20px; display: flex; align-items: center; }
.error-404-cat-icon svg { width: 18px; height: 18px; stroke: currentColor; }

@media (max-width: 480px) {
  .error-404-links { flex-direction: column; align-items: center; }
  .error-404-cats-grid { flex-direction: column; align-items: center; }
}

/* ============================================================
   SOCIAL LINKS (footer)
   ============================================================ */
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  transition: all .2s;
}
.footer-social-link {
  border: 1px solid rgba(255,255,255,.08);
}
.footer-social-link:hover {
  background: var(--c-orange);
  border-color: var(--c-orange);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange);
}
.footer-social-link svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: cookieSlideUp 0.4s ease-out;
}
@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cookie-consent__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
}
.cookie-consent__content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.cookie-consent__icon {
  flex-shrink: 0;
  color: var(--c-orange);
  line-height: 0;
  line-height: 1;
}
.cookie-consent__title {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
}
.cookie-consent__desc {
  color: rgba(255,255,255,.85);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}
.cookie-consent__link {
  color: var(--c-orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-consent__link:hover { color: #fff; }

/* Details panel */
.cookie-consent__details {
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.cookie-category {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.cookie-category:last-child { border-bottom: 0; }
.cookie-category__label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.cookie-category__label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--c-orange);
  cursor: pointer;
}
.cookie-category p {
  color: rgba(255,255,255,.65);
  font-size: 12px;
  margin: 4px 0 0 26px;
  line-height: 1.4;
}
.cookie-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.cookie-tag--always {
  background: rgba(22,163,74,.2);
  color: #4ade80;
}

/* Buttons */
.cookie-consent__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
  white-space: nowrap;
}
.cookie-btn--accept {
  background: var(--c-orange);
  color: #fff;
}
.cookie-btn--accept:hover {
  background: var(--c-orange-dark);
  transform: translateY(-1px);
}
.cookie-btn--reject {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
}
.cookie-btn--reject:hover {
  background: rgba(255,255,255,.2);
}
.cookie-btn--save {
  background: var(--c-blue);
  color: #fff;
}
.cookie-btn--save:hover {
  background: var(--c-blue-dark);
}
.cookie-btn--settings {
  background: transparent;
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.15);
}
.cookie-btn--settings:hover {
  color: #fff;
  border-color: rgba(255,255,255,.3);
}

@media (max-width: 768px) {
  .cookie-consent__content { flex-direction: column; gap: 8px; }
  .cookie-consent__actions { flex-direction: column; }
  .cookie-btn { width: 100%; text-align: center; }
}

/* ============================================================
   REDUCED MOTION (WCAG 2.1 AA)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  /* Ukryj elementy UI niepotrzebne na wydruku */
  .site-header, .site-nav, .site-topbar, .site-footer,
  .shop-sidebar, .scroll-top-btn, .cookie-consent,
  .wc-block-checkout__actions, .woocommerce-form-coupon-toggle,
  .wc-block-components-sidebar-layout .wc-block-components-main,
  button, .btn, .compan-inpost-section, .cart-count,
  #compan-invoice-section .compan-invoice-toggle { display: none !important; }

  /* Reset */
  body { background: #fff !important; color: #000 !important; font-size: 12pt; line-height: 1.5; }
  .site-main { padding: 0 !important; margin: 0 !important; }
  .compan-container { max-width: 100% !important; padding: 0 !important; }
  .shop-layout { grid-template-columns: 1fr; }

  /* Logo na wydruku zamówienia */
  .site-wrapper::before {
    content: 'COMPAN — Profesjonalne zaopatrzenie | compan.pl';
    display: block; font-size: 16pt; font-weight: 700;
    color: #0052a5; margin-bottom: 16pt;
    padding-bottom: 8pt; border-bottom: 2pt solid #0052a5;
  }

  /* Tabele zamówień */
  .woocommerce-table, .wc-block-order-confirmation-summary,
  .woocommerce-order-details table { width: 100%; border-collapse: collapse; }
  .woocommerce-table th, .woocommerce-table td { border: 1px solid #ddd; padding: 6pt 8pt; text-align: left; }
  .woocommerce-table th { background: #f5f5f5 !important; font-weight: 600; }

  /* Dane fakturowe na wydruku */
  .compan-invoice-summary { border: 1px solid #0052a5 !important; page-break-inside: avoid; }

  /* Linki — pokaż URL */
  a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
  a[href^="#"]::after, a[href^="javascript"]::after, a.no-print-url::after { content: none; }

  /* Kontrola łamania stron */
  .woocommerce-order-details, .compan-invoice-summary { page-break-inside: avoid; }
  h1, h2, h3 { page-break-after: avoid; }
  img { max-width: 200px !important; }
}

/* ============================================================
   SHOP UI REFRESH (2026-03)
   ============================================================ */
.shop-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
}

.shop-main__hero {
  background: linear-gradient(130deg, #ffffff 0%, #f4f8fe 62%, #eef4fc 100%);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
  display: grid;
  gap: 12px;
}

.shop-main__hero-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-blue);
}

.shop-main__hero .woocommerce-products-header {
  margin: 0;
}

.shop-main__hero .woocommerce-products-header__title {
  margin: 0;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.05;
  color: var(--c-blue-dark);
}

.shop-main__hero .term-description,
.shop-main__hero .woocommerce-products-header__description {
  margin-top: 8px;
  max-width: 72ch;
  color: var(--c-text2);
  font-size: 14px;
  line-height: 1.6;
}

.shop-main__hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-main__hero-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: rgba(0, 82, 165, 0.08);
  color: var(--c-blue-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 11px;
}

.shop-main__hero-benefits span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--c-orange);
}

.shop-active-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 11px 12px;
  border: 1px solid rgba(0, 82, 165, 0.16);
  background: #f8fbff;
  border-radius: 12px;
}

.shop-active-filters__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-blue-dark);
}

.shop-active-filters__chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 82, 165, 0.18);
  color: var(--c-text2);
  font-size: 12px;
  font-weight: 600;
}

.shop-active-filters__reset {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(220, 38, 38, 0.22);
  color: #b91c1c;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.shop-active-filters__reset:hover {
  color: #fff;
  background: #dc2626;
  border-color: #dc2626;
}

.shop-quick-filters {
  border: 1px solid var(--c-border);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.shop-quick-filters__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-text3);
  margin-right: 4px;
}

.shop-quick-filters__chip {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #dbe6f4;
  background: #f8fbff;
  color: #26435f;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--t);
}

.shop-quick-filters__chip:hover {
  border-color: var(--c-blue);
  background: #eef5ff;
  color: var(--c-blue-dark);
}

.shop-quick-filters__chip.is-active {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: #fff;
}

.shop-main__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--c-border);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 0;
}

.shop-main__toolbar > .woocommerce-notices-wrapper {
  width: 100%;
  margin-bottom: 0;
}

.shop-main__toolbar .woocommerce-message,
.shop-main__toolbar .woocommerce-info,
.shop-main__toolbar .woocommerce-error {
  margin: 0;
}

.shop-main__toolbar .woocommerce-result-count,
.shop-main__toolbar .woocommerce-ordering {
  margin: 0;
  float: none;
}

.shop-main__toolbar .woocommerce-result-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text2);
  line-height: 1.35;
}

.shop-main__toolbar .woocommerce-ordering {
  margin-left: auto;
}

.shop-main__results {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.shop-main ul.products {
  clear: none;
  margin-top: 0;
  gap: 22px;
  min-width: 0;
}

.shop-main .product-category {
  display: block;
}

.shop-main .compan-product-category .category-card {
  min-height: 238px;
  justify-content: flex-start;
  padding: 16px 14px 14px;
  border-radius: 14px;
}

.shop-main .compan-product-category .category-card--active {
  border-color: var(--c-blue);
  box-shadow: var(--shadow-md);
}

.category-card__media {
  width: 100%;
  min-height: 114px;
  border-radius: 12px;
  background: var(--c-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 10px;
}

.category-card__image {
  width: 100%;
  height: 94px;
  object-fit: contain;
  margin: 0 auto;
}

.category-card__fallback {
  display: none;
}

.category-card__media.is-fallback .category-card__image {
  display: none;
}

.category-card__media.is-fallback .category-card__fallback {
  display: inline-flex;
}

.shop-main .compan-product-category .category-icon {
  width: 48px;
  height: 48px;
  margin: 0;
}

.shop-main .compan-product-category .category-name {
  font-size: 16px;
  margin-bottom: 6px;
  line-height: 1.25;
}

.shop-main .compan-product-category .category-count {
  padding: 4px 10px;
  font-size: 12px;
}

.shop-main .compan-product-card {
  border-radius: 14px;
}

.shop-main__pagination {
  margin-top: 6px;
}

.shop-main__empty {
  border: 1px dashed var(--c-border);
  background: #fff;
  border-radius: 12px;
  padding: 20px;
}

.shop-category-strip {
  border: 1px solid var(--c-border);
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  display: grid;
  gap: 14px;
}

.shop-category-strip__header h2 {
  margin: 0 0 4px;
  font-size: 20px;
  color: var(--c-blue-dark);
}

.shop-category-strip__header p {
  margin: 0;
  color: var(--c-text2);
  font-size: 13px;
}

.shop-category-strip__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
}

.shop-category-strip__link {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: #fdfefe;
  padding: 9px 11px;
  transition: var(--t);
}

.shop-category-strip__thumb {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--c-bg);
}

.shop-category-strip__fallback {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--c-bg);
  color: var(--c-blue);
  display: none;
  align-items: center;
  justify-content: center;
}

.shop-category-strip__fallback svg {
  width: 20px;
  height: 20px;
}

.shop-category-strip__link--fallback .shop-category-strip__fallback {
  display: inline-flex;
}

.shop-category-strip__link--fallback .shop-category-strip__thumb {
  display: none;
}

.shop-category-strip__meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.shop-category-strip__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.3;
}

.shop-category-strip__count {
  font-size: 12px;
  color: var(--c-text3);
}

.shop-category-strip__arrow {
  color: var(--c-text3);
  font-size: 18px;
  line-height: 1;
}

.shop-category-strip__link:hover {
  border-color: var(--c-blue);
  background: #f7fbff;
  transform: translateY(-1px);
}

.shop-category-strip__link:hover .shop-category-strip__arrow {
  color: var(--c-blue);
}

.shop-sidebar .widget_product_categories {
  overflow-x: hidden;
}

.shop-sidebar .widget_product_categories ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shop-sidebar .widget_product_categories li {
  border-bottom: none;
}

.shop-sidebar .widget_product_categories > ul > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 1px 0;
}

.shop-sidebar .widget_product_categories > ul > li.shop-cat-branch {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.shop-sidebar .widget_product_categories > ul > li > a {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.3;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.shop-sidebar .widget_product_categories > ul > li > a:hover {
  background: var(--c-blue-xlight);
  color: var(--c-blue-dark);
  padding-left: 10px;
}

.shop-sidebar .widget_product_categories .shop-cat-toggle {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid #d7e2ef;
  background: #f7fbff;
  color: var(--c-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: var(--t);
}

.shop-sidebar .widget_product_categories .shop-cat-toggle:hover {
  background: #eaf3ff;
  border-color: #c6d9f1;
}

.shop-sidebar .widget_product_categories .shop-cat-toggle__line {
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  display: block;
}

.shop-sidebar .widget_product_categories .shop-cat-toggle__line--v {
  position: absolute;
  transform: rotate(90deg);
  transition: transform .18s ease;
}

.shop-sidebar .widget_product_categories > ul > li.is-open .shop-cat-toggle__line--v,
.shop-sidebar .widget_product_categories > ul > li.current-cat > .shop-cat-toggle .shop-cat-toggle__line--v,
.shop-sidebar .widget_product_categories > ul > li.current-cat-parent > .shop-cat-toggle .shop-cat-toggle__line--v,
.shop-sidebar .widget_product_categories > ul > li.current-cat-ancestor > .shop-cat-toggle .shop-cat-toggle__line--v {
  transform: rotate(0deg);
}

.shop-sidebar .widget_product_categories .count {
  align-self: center;
  background: #eef3f8;
  color: #6b7b8e;
  border: 1px solid #dde6f0;
  border-radius: 999px;
  min-width: 32px;
  height: 20px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  margin-right: 4px;
}

.shop-sidebar .widget_product_categories > ul > li > ul.children {
  grid-column: 1 / -1;
  margin: 4px 0 8px 12px;
  padding: 2px 0 2px 10px;
  border-left: 2px solid #e7edf5;
  display: none;
  gap: 3px;
}

.shop-sidebar .widget_product_categories > ul > li.current-cat > ul.children,
.shop-sidebar .widget_product_categories > ul > li.current-cat-parent > ul.children,
.shop-sidebar .widget_product_categories > ul > li.current-cat-ancestor > ul.children {
  display: grid;
}

.shop-sidebar .widget_product_categories > ul > li.is-open > ul.children {
  display: grid;
}

.shop-sidebar .widget_product_categories .children li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
}

.shop-sidebar .widget_product_categories .children li a {
  font-size: 13px;
  color: var(--c-text2);
  padding: 4px 6px;
  border-radius: 6px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.shop-sidebar .widget_product_categories .children li a:hover {
  color: var(--c-blue);
  background: #f6f9fd;
  padding-left: 6px;
}

.shop-sidebar {
  max-height: calc(100vh - var(--header-h) - 28px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.shop-sidebar::-webkit-scrollbar {
  width: 8px;
}

.shop-sidebar::-webkit-scrollbar-thumb {
  background: #cfd7e2;
  border-radius: 999px;
}

@media (max-width: 1180px) {
  .shop-main ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-category-strip__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .shop-filter-toggle {
    position: sticky;
    top: calc(var(--header-h) + 10px);
    z-index: 20;
    background: #fff;
    backdrop-filter: blur(8px);
  }

  .shop-main__toolbar .woocommerce-ordering {
    width: 100%;
    margin-left: 0;
  }

  .shop-main__toolbar .woocommerce-ordering select {
    width: 100%;
  }

  .shop-main .compan-product-category .category-card {
    min-height: 220px;
  }
}

@media (max-width: 680px) {
  .shop-main__hero {
    padding: 16px;
    gap: 10px;
  }

  .shop-main__hero .woocommerce-products-header__title {
    font-size: 30px;
  }

  .shop-main__hero-benefits {
    gap: 7px;
  }

  .shop-main__hero-benefits span {
    font-size: 11px;
    padding: 6px 10px;
  }

  .shop-active-filters {
    padding: 10px;
  }

  .shop-active-filters__reset {
    margin-left: 0;
  }

  .shop-quick-filters {
    padding: 10px;
  }

  .shop-quick-filters__label {
    width: 100%;
    margin-right: 0;
  }

  .shop-main ul.products {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .woocommerce-pagination ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  .woocommerce-pagination .page-numbers li a,
  .woocommerce-pagination .page-numbers li span {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    font-size: 13px;
  }

  .shop-main .compan-product-category .category-card {
    min-height: 0;
  }

  .shop-category-strip {
    padding: 12px;
  }

  .shop-category-strip__header h2 {
    font-size: 18px;
  }

  .shop-category-strip__link {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    padding: 8px 9px;
  }

  .shop-category-strip__thumb,
  .shop-category-strip__fallback {
    width: 40px;
    height: 40px;
  }
}

/* ============================================================
   LIVE SEARCH DROPDOWN
   ============================================================ */
.compan-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 229, 234, 0.8);
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: var(--shadow-lg), 0 8px 30px rgba(0, 82, 165, 0.06);
  z-index: 1200;
  max-height: 420px;
  overflow-y: auto;
  transform-origin: top center;
  animation: companSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes companSlideDown {
  from {
    opacity: 0;
    transform: translateY(6px) scaleY(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

/* Custom Scrollbar for Search Dropdown */
.compan-search-dropdown::-webkit-scrollbar {
  width: 6px;
}
.compan-search-dropdown::-webkit-scrollbar-track {
  background: transparent;
}
.compan-search-dropdown::-webkit-scrollbar-thumb {
  background: var(--c-blue-xlight);
  border-radius: 3px;
}
.compan-search-dropdown::-webkit-scrollbar-thumb:hover {
  background: var(--c-blue-light);
}
.csd-section { padding: 0; }
.csd-label {
  display: block;
  padding: 8px 14px 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--c-text3);
}
.csd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.15s;
}
.csd-item:hover, .csd-item.csd-active { background: var(--c-blue-xlight); }
.csd-thumb { flex-shrink: 0; width: 40px; height: 40px; }
.csd-thumb img { width: 40px; height: 40px; object-fit: contain; border-radius: 4px; border: 1px solid var(--c-border); }
.csd-no-img { display: block; width: 40px; height: 40px; background: #f5f5f5; border-radius: 4px; }
.csd-info { display: flex; flex-direction: column; min-width: 0; }
.csd-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csd-price { font-size: 12px; color: var(--primary); font-weight: 600; }
.csd-price del { color: #999; font-weight: 400; }
.csd-price ins { text-decoration: none; }
.csd-category { padding: 6px 14px; }
.csd-cat-name { font-size: 13px; font-weight: 500; }
.csd-cat-count { font-size: 12px; color: var(--c-text3); margin-left: auto; }
.csd-empty { padding: 16px 14px; text-align: center; color: var(--c-text3); font-size: 13px; }
.csd-all {
  display: block;
  padding: 10px 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  border-top: 1px solid var(--c-border);
}
.csd-all:hover { background: var(--c-blue-xlight); }

/* ============================================================
   RECENTLY VIEWED PRODUCTS
   ============================================================ */
.compan-recently-viewed-section {
  margin: 40px 0 20px;
}
.compan-recently-viewed-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.compan-recently-viewed-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.compan-rv-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.compan-rv-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,82,165,0.1);
}
.compan-rv-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 8px;
}
.compan-rv-name {
  font-size: 12px;
  text-align: center;
  line-height: 1.3;
  margin-bottom: 4px;
}
.compan-rv-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}
.compan-rv-price del { color: #999; font-weight: 400; font-size: 11px; }
.compan-rv-price ins { text-decoration: none; }

@media (max-width: 768px) {
  .compan-recently-viewed-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 480px) {
  .compan-recently-viewed-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   BLOG TEMPLATES
   ============================================================ */
/* Archive */
.compan-blog-archive { margin-bottom: 40px; }
.blog-archive-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 30px 0 20px;
}
.blog-archive-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.blog-archive-desc {
  font-size: 15px;
  color: var(--c-text3);
  max-width: 600px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.blog-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(0,82,165,0.1);
}
.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.blog-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #f5f5f5;
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.blog-card:hover .blog-card-image img { transform: scale(1.03); }
.blog-card-image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
}
.blog-card-content { padding: 16px; }
.blog-card-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 6px;
}
.blog-card-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 8px;
  color: var(--text-primary);
}
.blog-card-excerpt {
  font-size: 13px;
  color: var(--c-text3);
  line-height: 1.5;
  margin: 0 0 12px;
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
}

/* Single Post */
.compan-blog-single {
  max-width: 780px;
  margin: 0 auto 40px;
}
.blog-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-border);
}
.blog-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--c-text3);
  align-items: center;
}
.blog-meta svg { vertical-align: -2px; margin-right: 3px; }
.blog-meta a { color: var(--primary); text-decoration: none; }
.blog-meta a:hover { text-decoration: underline; }
.blog-featured-image {
  margin-bottom: 24px;
  border-radius: 10px;
  overflow: hidden;
}
.blog-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}
.blog-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
}
.blog-content h2 {
  font-size: 24px;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.blog-content h3 {
  font-size: 20px;
  margin-top: 24px;
  margin-bottom: 10px;
}
.blog-content p { margin-bottom: 16px; }
.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}
.blog-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 12px 20px;
  margin: 20px 0;
  background: var(--c-blue-xlight);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: #555;
}
.blog-content ul, .blog-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.blog-content li { margin-bottom: 6px; }

.blog-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
}
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.blog-tags svg { color: var(--c-text3); }
.blog-tags a {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  background: var(--c-blue-xlight);
  color: var(--primary);
  border-radius: 20px;
  text-decoration: none;
}
.blog-tags a:hover { background: #dbeafe; }

.blog-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
}
.blog-nav-link {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 0.2s;
}
.blog-nav-link:hover { border-color: var(--primary); }
.blog-nav-prev { text-align: left; }
.blog-nav-next { text-align: right; }
.blog-nav-label { font-size: 12px; color: var(--c-text3); margin-bottom: 4px; }
.blog-nav-title { font-size: 14px; font-weight: 600; }

.blog-pagination { margin-top: 30px; text-align: center; }
.blog-pagination .nav-links { display: flex; justify-content: center; gap: 6px; }
.blog-pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
  color: var(--text-primary);
}
.blog-pagination .page-numbers.current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.blog-pagination .page-numbers:hover:not(.current) { background: var(--c-blue-xlight); }

.blog-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--c-text3);
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-title { font-size: 24px; }
  .blog-nav { grid-template-columns: 1fr; }
  .blog-content { font-size: 15px; }
}


/* ============================================================
   SKELETON LOADERS FOR AJAX LIVE SEARCH
   ============================================================ */
.csd-skeleton-item {
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
}
.csd-skeleton-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: companPulse 1.5s infinite linear;
}
.csd-skeleton-line {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: companPulse 1.5s infinite linear;
  border-radius: 4px;
}
.csd-skeleton-name {
  width: 70%;
  height: 12px;
  margin-bottom: 6px;
}
.csd-skeleton-price {
  width: 40%;
  height: 10px;
}
.csd-skeleton-label {
  animation: companFade 1.2s infinite alternate ease-in-out;
}

@keyframes companPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes companFade {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}
