/*
Theme Name: CowBook
Theme URI: https://cowbook.in
Author: Brand Core Media
Author URI: https://brandcoremedia.com
Description: Custom WooCommerce theme for CowBook — Sacred. Sensible. Sustainable.
Version: 1.0.6
Requires at least: 6.0
Tested up to: 6.5
WC requires at least: 8.0
WC tested up to: 9.0
License: Private
Text Domain: cowbook
Tags: woocommerce, custom, ecommerce
*/

/* ============================================================
   WORDPRESS FULL-WIDTH OVERRIDES
   Targeted — does NOT affect .cb-container or its children
   ============================================================ */
html, body {
  width: 100%;
  max-width: 100% !important;
  overflow-x: hidden;
  background: var(--cb-white) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* Kill WP classic-themes 700px body constraint specifically */
body { max-width: 100% !important; }

/* WP wrapper elements — full width, no padding */
.site, #page, #content, #primary, #main,
.wp-site-blocks, .site-main, .site-content {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

/* Block elements that might constrain width */
.wp-block-group, .wp-block-group__inner-container,
[class*="wp-block"],
.is-layout-constrained,
.is-layout-constrained > * {
  max-width: 100% !important;
}

/* Kill Storefront sidebar */
#secondary, .widget-area,
.storefront-product-section,
.col-full,
.storefront-handheld-footer-bar {
  display: none !important;
}

/* WP post wrappers — no extra spacing */
.hentry, .type-page, .page-content,
.entry-content, .post-content {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Classic themes override */
.wp-block-post-content,
.entry-content > *,
.wp-block-group.alignwide,
.wp-block-group.alignfull,
body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 100% !important;
}

/* WooCommerce price HTML inside our cards */
.cb-product-price-row .woocommerce-Price-amount,
.cb-product-price-row ins .woocommerce-Price-amount {
  font-size: 20px;
  font-weight: 700;
  color: var(--cb-navy);
  text-decoration: none;
}
.cb-product-price-row del .woocommerce-Price-amount {
  font-size: 14px;
  color: #aaa;
  font-weight: 400;
}
.cb-product-price-row del { margin-left: 6px; }
.cb-product-price-row ins { text-decoration: none; }

/* WooCommerce ul.products — force our grid layout
   ============================================================ */
ul.products {
  list-style: none !important;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  padding: 0 !important;
  margin: 0 !important;
}
ul.products li.product {
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: auto !important;
  background: none !important;
}
@media (max-width: 768px) {
  ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  ul.products { grid-template-columns: 1fr !important; }
}

:root {
  --cb-navy:        #1B2B4B;
  --cb-navy-dark:   #0f1e36;
  --cb-navy-mid:    #243a5e;
  --cb-green:       #7AB730;
  --cb-green-dark:  #5A8A1A;
  --cb-green-light: #EAF3DE;
  --cb-cream:       #FAF7F0;
  --cb-earth:       #8B6914;
  --cb-amber:       #D4942A;
  --cb-text:        #1a1a1a;
  --cb-muted:       #5a5a5a;
  --cb-border:      #e8e8e8;
  --cb-white:       #ffffff;
  --cb-red:         #c0392b;
  --cb-success:     #27ae60;

  --cb-font-display: 'Playfair Display', Georgia, serif;
  --cb-font-body:    'DM Sans', -apple-system, sans-serif;

  --cb-radius-sm:   6px;
  --cb-radius-md:   10px;
  --cb-radius-lg:   16px;
  --cb-radius-xl:   24px;

  --cb-shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --cb-shadow-md:   0 4px 16px rgba(0,0,0,0.10);
  --cb-shadow-lg:   0 8px 32px rgba(0,0,0,0.12);

  --cb-transition:  all 0.25s ease;
  --cb-container:   1200px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--cb-font-body);
  font-size: 16px;
  color: var(--cb-text);
  background: var(--cb-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--cb-transition); }
button, input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* ============================================================
   CONTAINER
   ============================================================ */
.cb-container {
  max-width: var(--cb-container);
  margin: 0 auto !important;
  padding: 0 24px !important;
  min-width: 0;
}

@media (max-width: 768px) {
  .cb-container { padding: 0 16px !important; }
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--cb-font-display);
  color: var(--cb-navy);
  line-height: 1.2;
  font-weight: 700;
}

.cb-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--cb-green);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.cb-heading-xl { font-size: clamp(32px, 4vw, 52px); }
.cb-heading-lg { font-size: clamp(28px, 3vw, 42px); }
.cb-heading-md { font-size: clamp(22px, 2.5vw, 34px); }
.cb-heading-sm { font-size: clamp(18px, 2vw, 24px); }

.cb-text-muted  { color: var(--cb-muted); }
.cb-text-green  { color: var(--cb-green); }
.cb-text-navy   { color: var(--cb-navy); }
.cb-text-white  { color: var(--cb-white); }

/* ============================================================
   BUTTONS
   ============================================================ */
.cb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--cb-radius-md);
  font-size: 15px;
  font-weight: 500;
  font-family: var(--cb-font-body);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--cb-transition);
  text-decoration: none;
  white-space: nowrap;
}

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

.cb-btn-dark {
  background: var(--cb-navy);
  color: var(--cb-white);
  border-color: var(--cb-navy);
}
.cb-btn-dark:hover {
  background: var(--cb-navy-mid);
  color: var(--cb-white);
  transform: translateY(-1px);
}

.cb-btn-outline {
  background: transparent;
  color: var(--cb-white);
  border-color: rgba(255,255,255,0.4);
}
.cb-btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  color: var(--cb-white);
}

.cb-btn-outline-dark {
  background: transparent;
  color: var(--cb-navy);
  border-color: var(--cb-navy);
}
.cb-btn-outline-dark:hover {
  background: var(--cb-navy);
  color: var(--cb-white);
}

.cb-btn-sm {
  padding: 9px 18px;
  font-size: 13px;
}

.cb-btn-full { width: 100%; justify-content: center; }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
#cb-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--cb-white);
  border-bottom: 1px solid var(--cb-border);
  box-shadow: var(--cb-shadow-sm);
}

.cb-topbar {
  background: var(--cb-navy);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  text-align: center;
  padding: 8px 24px;
}

.cb-topbar strong { color: var(--cb-green); }

.cb-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  max-width: var(--cb-container);
  margin: 0 auto;
  min-height: calc(var(--cb-logo-height, 70px) + 20px);
  height: auto;
}

.cb-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.cb-logo img { height: var(--cb-logo-height, 70px); width: auto; max-width: 240px; object-fit: contain; }

.cb-logo-fallback {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.cb-logo-name {
  font-family: var(--cb-font-display);
  font-size: 28px;
  font-weight: 700;
}

.cb-logo-name span:first-child { color: var(--cb-navy); }
.cb-logo-name span:last-child  { color: var(--cb-green); }

.cb-logo-tagline {
  font-size: 9px;
  font-weight: 700;
  color: var(--cb-green);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 3px;
}

/* NAV MENU — bold, spaced, underline animation */
.cb-nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.cb-nav-menu a {
  font-size: 15px;
  font-weight: 700;
  color: var(--cb-navy);
  padding: 12px 20px;
  text-decoration: none;
  position: relative;
  letter-spacing: 0.4px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.cb-nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: var(--cb-green);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.cb-nav-menu a:hover {
  color: var(--cb-green-dark);
  background: transparent;
}

.cb-nav-menu a:hover::after {
  transform: scaleX(1);
}

.cb-nav-menu a.current-menu-item,
.cb-nav-menu .current-menu-item > a {
  color: var(--cb-green-dark);
  background: transparent;
}

.cb-nav-menu a.current-menu-item::after,
.cb-nav-menu .current-menu-item > a::after {
  transform: scaleX(1);
}

/* Divider dots between nav items */
.cb-nav-menu a:not(:last-child)::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cb-border);
}

/* NAV ACTIONS */
.cb-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cb-nav-search,
.cb-nav-account {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--cb-navy);
  font-size: 20px;
  transition: var(--cb-transition);
  cursor: pointer;
  border: none;
  background: transparent;
}

.cb-nav-search:hover,
.cb-nav-account:hover {
  background: var(--cb-green-light);
  color: var(--cb-green-dark);
}

/* CART BUTTON — green pill */
.cb-nav-cart {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--cb-green);
  color: #fff;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
  letter-spacing: 0.3px;
  box-shadow: 0 3px 16px rgba(122,183,48,0.45);
}

.cb-nav-cart:hover {
  background: var(--cb-green-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(122,183,48,0.55);
}

.cb-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--cb-navy);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.cb-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.cb-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cb-navy);
  border-radius: 2px;
  transition: var(--cb-transition);
}

/* Mobile nav */
.cb-mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--cb-white);
  z-index: 2000;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.cb-mobile-nav.active { display: flex; }

.cb-mobile-nav-close {
  align-self: flex-end;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--cb-navy);
  margin-bottom: 16px;
}

.cb-mobile-nav a {
  font-size: 18px;
  font-weight: 500;
  color: var(--cb-navy);
  padding: 14px 0;
  border-bottom: 1px solid var(--cb-border);
  display: block;
}

/* ============================================================
   FREE SHIPPING BAR
   ============================================================ */
.cb-shipping-bar {
  background: var(--cb-green);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 24px;
}

.cb-shipping-bar strong { font-weight: 700; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.cb-hero {
  background: var(--cb-navy);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}

.cb-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(122,183,48,0.06);
  pointer-events: none;
}

.cb-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 30%;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: rgba(122,183,48,0.04);
  pointer-events: none;
}

.cb-hero-inner {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.cb-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(122,183,48,0.18);
  color: #a8e05a;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid rgba(122,183,48,0.3);
}

.cb-hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cb-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.3); }
}

.cb-hero h1 {
  font-size: clamp(36px, 4vw, 54px);
  color: var(--cb-white);
  margin-bottom: 20px;
  line-height: 1.15;
}

.cb-hero h1 em {
  color: var(--cb-green);
  font-style: normal;
}

.cb-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.70);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 460px;
}

.cb-hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.cb-hero-trust {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cb-hero-trust-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.70);
}

.cb-hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cb-hero-stat {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: var(--cb-radius-lg);
  padding: 18px 14px;
}

.cb-hero-stat.wide { grid-column: span 2; }

.cb-hero-stat-num {
  font-family: var(--cb-font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--cb-green);
  line-height: 1;
}

.cb-hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.60);
  margin-top: 6px;
  line-height: 1.4;
}

.cb-hero-shloka {
  font-size: 15px;
  color: #a8e05a;
  font-style: italic;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.cb-trust-bar {
  background: var(--cb-green);
  padding: 16px 0;
}

.cb-trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.cb-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cb-white);
  font-size: 13px;
  font-weight: 500;
}

.cb-trust-item-icon { font-size: 18px; }

/* ============================================================
   SECTIONS
   ============================================================ */
.cb-section { padding: 72px 0; }
.cb-section-sm { padding: 48px 0; }
.cb-section-alt  { background: var(--cb-cream); }
.cb-section-dark { background: var(--cb-navy); }
.cb-section-green { background: var(--cb-green); }

.cb-section-header { max-width: 620px; }
.cb-section-header-center { max-width: 620px; margin: 0 auto; text-align: center; }

.cb-section-header h2 { margin-bottom: 14px; }
.cb-section-header p { color: var(--cb-muted); line-height: 1.75; margin-bottom: 0; }

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.cb-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.cb-cat-card {
  background: var(--cb-white);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius-lg);
  padding: 32px 20px 24px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
  transition: var(--cb-transition);
}

.cb-cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--cb-green);
  border-radius: var(--cb-radius-lg) var(--cb-radius-lg) 0 0;
}

.cb-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cb-shadow-lg);
  border-color: var(--cb-green);
}

.cb-cat-icon {
  width: 64px; height: 64px;
  background: var(--cb-green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 28px;
  transition: var(--cb-transition);
}

.cb-cat-card:hover .cb-cat-icon {
  background: var(--cb-green);
  transform: scale(1.1);
}

.cb-cat-name {
  font-family: var(--cb-font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--cb-navy);
  margin-bottom: 6px;
}

.cb-cat-count {
  font-size: 12px;
  color: var(--cb-muted);
}

.cb-cat-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cb-green-dark);
  margin-top: 14px;
  opacity: 0;
  transform: translateY(4px);
  transition: var(--cb-transition);
}

.cb-cat-card:hover .cb-cat-arrow {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.cb-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cb-product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.cb-product-card {
  background: var(--cb-white);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius-lg);
  overflow: hidden;
  transition: var(--cb-transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.cb-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cb-shadow-lg);
  border-color: var(--cb-green);
}

.cb-product-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: var(--cb-radius-lg) var(--cb-radius-lg) 0 0;
}

.cb-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform 0.4s ease;
  box-sizing: border-box;
}

.cb-product-card:hover .cb-product-thumb img {
  transform: scale(1.04);
}

.cb-product-badges {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.cb-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}

.cb-badge-sale  { background: var(--cb-green); color: #fff; }
.cb-badge-new   { background: var(--cb-navy); color: #fff; }
.cb-badge-stock { background: var(--cb-red); color: #fff; }

.cb-product-wishlist {
  position: absolute;
  top: 12px; right: 12px;
  width: 34px; height: 34px;
  background: var(--cb-white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: var(--cb-transition);
  box-shadow: var(--cb-shadow-sm);
  z-index: 2;
}

.cb-product-wishlist:hover { background: var(--cb-red); color: #fff; }

.cb-product-body {
  padding: 18px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cb-product-cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--cb-green-dark);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cb-product-title {
  font-family: var(--cb-font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--cb-navy);
  margin-bottom: 12px;
  line-height: 1.3;
  flex: 1;
}

.cb-product-title a { color: inherit; text-decoration: none; }
.cb-product-title a:hover { color: var(--cb-green-dark); }

.cb-product-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.cb-price-current {
  font-size: 20px;
  font-weight: 700;
  color: var(--cb-navy);
}

.cb-price-original {
  font-size: 14px;
  color: #aaa;
  text-decoration: line-through;
}

.cb-price-save {
  font-size: 12px;
  font-weight: 600;
  color: var(--cb-green-dark);
  background: var(--cb-green-light);
  padding: 2px 8px;
  border-radius: 100px;
}

.cb-product-atc {
  width: 100%;
  padding: 11px;
  background: var(--cb-navy);
  color: var(--cb-white);
  border: 2px solid var(--cb-navy);
  border-radius: var(--cb-radius-md);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--cb-font-body);
  cursor: pointer;
  transition: var(--cb-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.cb-product-atc:hover {
  background: var(--cb-green);
  border-color: var(--cb-green);
  color: var(--cb-white);
}

/* ============================================================
   PILLARS / MISSION
   ============================================================ */
.cb-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 52px;
}

.cb-pillar {
  border-left: 3px solid var(--cb-green);
  padding-left: 24px;
}

.cb-pillar-icon { font-size: 32px; margin-bottom: 14px; }

.cb-pillar-title {
  font-family: var(--cb-font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--cb-white);
  margin-bottom: 10px;
}

.cb-pillar-text {
  font-size: 14px;
  color: rgba(255,255,255,0.62);
  line-height: 1.7;
}

/* ============================================================
   COMMUNITY / REVOLUTION
   ============================================================ */
.cb-rev-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.cb-rev-card {
  background: var(--cb-cream);
  border: 1px solid #ece8de;
  border-radius: var(--cb-radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: var(--cb-transition);
}

.cb-rev-card:hover {
  border-color: var(--cb-green);
  transform: translateY(-3px);
}

.cb-rev-icon { font-size: 36px; margin-bottom: 16px; }
.cb-rev-title {
  font-family: var(--cb-font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--cb-navy);
  margin-bottom: 10px;
}
.cb-rev-text { font-size: 13px; color: var(--cb-muted); line-height: 1.65; }

/* ============================================================
   SDG GRID
   ============================================================ */
.cb-sdg-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 48px;
}

.cb-sdg-tile {
  border-radius: var(--cb-radius-md);
  padding: 16px 10px;
  text-align: center;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.cb-sdg-num { font-size: 20px; font-weight: 700; display: block; margin-bottom: 4px; }

/* ============================================================
   TAGLINE BAND / CTA
   ============================================================ */
.cb-cta-band {
  background: var(--cb-green);
  padding: 72px 0;
  text-align: center;
}

.cb-cta-band h2 {
  font-size: clamp(28px, 3vw, 40px);
  color: var(--cb-white);
  margin-bottom: 16px;
}

.cb-cta-band p {
  font-size: 16px;
  color: rgba(255,255,255,0.82);
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.75;
}

.cb-cta-words {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-bottom: 28px;
}

.cb-cta-word {
  font-family: var(--cb-font-display);
  font-size: 24px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
}

.cb-cta-word.active { color: #fff; }

.cb-btn-white {
  background: var(--cb-white);
  color: var(--cb-green-dark);
  border: 2px solid var(--cb-white);
}

.cb-btn-white:hover {
  background: var(--cb-green-light);
  border-color: var(--cb-green-light);
  color: var(--cb-green-dark);
  transform: translateY(-2px);
}

/* ============================================================
   FOOTER
   ============================================================ */
#cb-footer {
  background: var(--cb-navy-dark);
  color: rgba(255,255,255,0.7);
}

.cb-footer-top {
  padding: 56px 0 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cb-footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.50);
  line-height: 1.75;
  margin-top: 14px;
  max-width: 260px;
}

.cb-footer-trust-pills {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.cb-footer-pill {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--cb-radius-sm);
  padding: 6px 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.50);
}

.cb-footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--cb-white);
  margin-bottom: 18px;
  letter-spacing: 0.5px;
  font-family: var(--cb-font-body);
}

.cb-footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.50);
  margin-bottom: 10px;
  transition: var(--cb-transition);
}

.cb-footer-col a:hover { color: var(--cb-green); }

.cb-footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.cb-footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   SHOP PAGE — ARCHIVE
   ============================================================ */
.cb-shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  padding: 48px 0 72px;
}

.cb-shop-sidebar {
  position: sticky;
  top: 120px;
  align-self: start;
}

.cb-sidebar-widget {
  background: var(--cb-white);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius-lg);
  padding: 22px;
  margin-bottom: 20px;
}

.cb-sidebar-widget h3 {
  font-family: var(--cb-font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--cb-navy);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--cb-green);
}

.cb-cat-filter-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--cb-text);
  border-bottom: 1px solid var(--cb-border);
  transition: var(--cb-transition);
}

.cb-cat-filter-list li:last-child a { border-bottom: none; }
.cb-cat-filter-list li a:hover { color: var(--cb-green-dark); padding-left: 4px; }
.cb-cat-filter-list li.current-cat a { color: var(--cb-green-dark); font-weight: 600; }

.cb-shop-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.cb-shop-count { font-size: 14px; color: var(--cb-muted); }

.cb-shop-sort select {
  padding: 8px 16px;
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius-md);
  font-size: 14px;
  font-family: var(--cb-font-body);
  color: var(--cb-text);
  background: var(--cb-white);
  cursor: pointer;
  outline: none;
}

.cb-shop-sort select:focus { border-color: var(--cb-green); }

/* ============================================================
   SINGLE PRODUCT PAGE
   ============================================================ */
.cb-single-product {
  padding: 48px 0 72px;
}

.cb-single-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 72px;
}

.cb-product-gallery {
  position: sticky;
  top: 120px;
  align-self: start;
}

.cb-gallery-main {
  border-radius: var(--cb-radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid var(--cb-border);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cb-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  box-sizing: border-box;
}

.cb-gallery-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cb-gallery-thumb {
  width: 72px; height: 72px;
  border-radius: var(--cb-radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--cb-transition);
}

.cb-gallery-thumb.active { border-color: var(--cb-green); }
.cb-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.cb-product-info { padding-top: 8px; }

.cb-product-info-cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--cb-green-dark);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.cb-product-info h1 {
  font-size: clamp(24px, 2.5vw, 36px);
  margin-bottom: 16px;
}

.cb-product-stars {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.cb-stars { color: var(--cb-amber); font-size: 16px; }
.cb-review-count { font-size: 13px; color: var(--cb-muted); }

.cb-product-price-block {
  background: var(--cb-cream);
  border-radius: var(--cb-radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.cb-product-price-main { font-size: 32px; font-weight: 700; color: var(--cb-navy); }
.cb-product-price-orig { font-size: 16px; color: #aaa; text-decoration: line-through; margin-left: 12px; }
.cb-product-price-save {
  display: inline-block;
  background: var(--cb-green);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  margin-top: 8px;
}

.cb-product-price-tax {
  font-size: 12px;
  color: var(--cb-muted);
  margin-top: 8px;
}

.cb-qty-atc {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.cb-qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius-md);
  overflow: hidden;
}

.cb-qty-control button {
  width: 42px; height: 50px;
  background: var(--cb-cream);
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--cb-navy);
  transition: var(--cb-transition);
}

.cb-qty-control button:hover { background: var(--cb-green-light); color: var(--cb-green-dark); }

.cb-qty-control input {
  width: 60px; height: 50px;
  border: none;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--cb-font-body);
  color: var(--cb-navy);
  outline: none;
}

.cb-atc-btn {
  flex: 1;
  padding: 0 28px;
  height: 50px;
  background: var(--cb-green);
  color: #fff;
  border: none;
  border-radius: var(--cb-radius-md);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--cb-font-body);
  cursor: pointer;
  transition: var(--cb-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cb-atc-btn:hover { background: var(--cb-green-dark); transform: translateY(-1px); }

.cb-buy-now-btn {
  width: 100%;
  padding: 14px;
  background: var(--cb-navy);
  color: #fff;
  border: none;
  border-radius: var(--cb-radius-md);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--cb-font-body);
  cursor: pointer;
  transition: var(--cb-transition);
  margin-bottom: 24px;
}

.cb-buy-now-btn:hover { background: var(--cb-navy-mid); }

.cb-product-meta {
  background: var(--cb-cream);
  border-radius: var(--cb-radius-md);
  padding: 18px;
  font-size: 13px;
  margin-bottom: 24px;
}

.cb-product-meta-row {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--cb-border);
}

.cb-product-meta-row:last-child { border-bottom: none; }
.cb-meta-label { font-weight: 600; color: var(--cb-navy); min-width: 80px; }
.cb-meta-value { color: var(--cb-muted); }

.cb-product-share {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--cb-muted);
}

.cb-share-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--cb-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: var(--cb-transition);
  text-decoration: none;
  color: var(--cb-navy);
}

.cb-share-btn:hover { background: var(--cb-green-light); border-color: var(--cb-green); }

/* Product Tabs */
.cb-product-tabs { margin-top: 0; }

.cb-tab-nav {
  display: flex;
  border-bottom: 2px solid var(--cb-border);
  margin-bottom: 32px;
}

.cb-tab-btn {
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--cb-font-body);
  color: var(--cb-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--cb-transition);
}

.cb-tab-btn.active {
  color: var(--cb-green-dark);
  border-bottom-color: var(--cb-green);
}

.cb-tab-pane { display: none; }
.cb-tab-pane.active { display: block; }

.cb-tab-content { font-size: 15px; line-height: 1.8; color: var(--cb-muted); }
.cb-tab-content h3 { color: var(--cb-navy); font-size: 20px; margin-bottom: 14px; margin-top: 24px; }
.cb-tab-content ul { margin-left: 20px; list-style: disc; }
.cb-tab-content li { margin-bottom: 8px; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.cb-breadcrumb {
  padding: 14px 0;
  font-size: 13px;
  color: var(--cb-muted);
  border-bottom: 1px solid var(--cb-border);
  margin-bottom: 0;
}

.cb-breadcrumb a { color: var(--cb-green-dark); }
.cb-breadcrumb a:hover { text-decoration: underline; }
.cb-breadcrumb span { margin: 0 6px; }

/* ============================================================
   CATEGORY PAGE BANNER
   ============================================================ */
.cb-cat-banner {
  background: var(--cb-navy);
  padding: 52px 0;
  margin-bottom: 0;
}

.cb-cat-banner h1 { color: var(--cb-white); font-size: clamp(28px, 3vw, 44px); margin-bottom: 12px; }
.cb-cat-banner p { color: rgba(255,255,255,0.65); font-size: 15px; max-width: 500px; line-height: 1.7; }

/* ============================================================
   PAGINATION
   ============================================================ */
.cb-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.cb-pagination a,
.cb-pagination span {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--cb-radius-sm);
  border: 1px solid var(--cb-border);
  font-size: 14px;
  font-weight: 500;
  transition: var(--cb-transition);
}

.cb-pagination a:hover { border-color: var(--cb-green); color: var(--cb-green-dark); }
.cb-pagination span.current { background: var(--cb-green); color: #fff; border-color: var(--cb-green); }

/* ============================================================
   WOOCOMMERCE OVERRIDES
   ============================================================ */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  border-radius: var(--cb-radius-md) !important;
  border-top: 4px solid var(--cb-green) !important;
  padding: 16px 20px !important;
}

.woocommerce-error { border-top-color: var(--cb-red) !important; }

.woocommerce form .form-row label { font-weight: 500; font-size: 14px; color: var(--cb-navy); }

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select {
  border-radius: var(--cb-radius-md) !important;
  border: 1px solid var(--cb-border) !important;
  padding: 12px 14px !important;
  font-family: var(--cb-font-body) !important;
  font-size: 15px !important;
  transition: var(--cb-transition) !important;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus {
  border-color: var(--cb-green) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(122,183,48,0.15) !important;
}

.woocommerce #payment #place_order,
.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  background: var(--cb-green) !important;
  border-radius: var(--cb-radius-md) !important;
  font-family: var(--cb-font-body) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  padding: 16px 32px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.woocommerce #payment #place_order:hover,
.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
  background: var(--cb-green-dark) !important;
}

.woocommerce-cart table.cart th { background: var(--cb-cream); }
.woocommerce .cart-collaterals .cart_totals { background: var(--cb-cream); border-radius: var(--cb-radius-lg); padding: 24px; }

/* ============================================================
   ADMIN DASHBOARD
   ============================================================ */
.cb-admin-wrap {
  padding: 20px;
  font-family: var(--cb-font-body);
}

.cb-admin-title {
  font-family: var(--cb-font-display);
  font-size: 28px;
  color: var(--cb-navy);
  margin-bottom: 24px;
}

.cb-admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.cb-admin-stat-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px;
}

.cb-admin-stat-label { font-size: 12px; color: #777; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.cb-admin-stat-num { font-size: 28px; font-weight: 700; color: var(--cb-navy); line-height: 1; }
.cb-admin-stat-sub { font-size: 12px; color: var(--cb-green-dark); margin-top: 6px; }

.cb-admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.cb-admin-panel {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}

.cb-admin-panel-head {
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cb-admin-panel-head h3 { font-size: 16px; color: var(--cb-navy); margin: 0; }

.cb-admin-table { width: 100%; border-collapse: collapse; }
.cb-admin-table th { background: #f9f9f9; padding: 10px 16px; font-size: 12px; font-weight: 600; color: #555; text-align: left; text-transform: uppercase; letter-spacing: 0.5px; }
.cb-admin-table td { padding: 12px 16px; font-size: 13px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.cb-admin-table tr:last-child td { border-bottom: none; }
.cb-admin-table tr:hover td { background: #fafafa; }

.cb-stock-ok  { color: var(--cb-success); font-weight: 600; }
.cb-stock-low { color: var(--cb-amber); font-weight: 600; }
.cb-stock-out { color: var(--cb-red); font-weight: 600; }

.cb-admin-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}

.cb-admin-badge-green { background: #eaf6f0; color: #1a7a45; }
.cb-admin-badge-red   { background: #fdf0ef; color: #c0392b; }
.cb-admin-badge-amber { background: #fdf6ec; color: #8a5c00; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Large tablet / small laptop (below 1024px) */
@media (max-width: 1024px) {
  .cb-cat-grid    { grid-template-columns: repeat(2, 1fr); }
  .cb-rev-grid    { grid-template-columns: repeat(2, 1fr); }
  .cb-sdg-grid    { grid-template-columns: repeat(4, 1fr); }
  .cb-footer-top  { grid-template-columns: 1fr 1fr; }
  .cb-shop-layout { grid-template-columns: 220px 1fr; gap: 24px; }
  .cb-single-layout { grid-template-columns: 1fr; gap: 36px; }
  .cb-product-gallery { position: static; }
  .cb-admin-stats { grid-template-columns: repeat(2, 1fr); }
  .cb-admin-grid  { grid-template-columns: 1fr; }
}

/* Tablet portrait (below 768px) */
@media (max-width: 768px) {
  .cb-hero-stats     { grid-template-columns: 1fr 1fr; }
  .cb-hero           { padding: 52px 0 48px; }
  .cb-cat-grid       { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cb-product-grid   { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cb-product-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cb-pillars-grid   { grid-template-columns: 1fr; gap: 20px; }
  .cb-rev-grid       { grid-template-columns: repeat(2, 1fr); }
  .cb-sdg-grid       { grid-template-columns: repeat(3, 1fr); }
  .cb-footer-top     { grid-template-columns: 1fr; gap: 32px; }
  .cb-shop-layout    { grid-template-columns: 1fr; }
  .cb-shop-sidebar   { position: static; display: none; }
  .cb-nav-menu       { display: none; }
  .cb-hamburger      { display: flex; }
  .cb-trust-bar-inner { gap: 24px; }
  .cb-section        { padding: 52px 0; }
  .cb-admin-stats    { grid-template-columns: repeat(2, 1fr); }
}

/* Hero collapses later than everything else */
@media (max-width: 700px) {
  .cb-hero-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* Mobile (below 540px) */
@media (max-width: 540px) {
  .cb-product-grid   { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cb-hero-stats     { grid-template-columns: 1fr 1fr; }
  .cb-cat-grid       { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cb-rev-grid       { grid-template-columns: 1fr; }
  .cb-sdg-grid       { grid-template-columns: repeat(3, 1fr); }
  .cb-hero-btns      { flex-direction: column; }
  .cb-qty-atc        { flex-direction: column; gap: 12px; }
  .cb-atc-btn        { width: 100%; }
  .cb-admin-stats    { grid-template-columns: 1fr; }
  .cb-footer-bottom  { flex-direction: column; text-align: center; }
}

/* Small mobile (below 400px only — true phone) */
@media (max-width: 400px) {
  .cb-product-grid   { grid-template-columns: 1fr; }
  .cb-hero-stats     { grid-template-columns: 1fr; }
}
