﻿/* Kindred Custom CSS â€” full Tailwind-like utility system */
/* ===== CSS VARIABLES (from original tailwind.config) ===== */
:root {
  /* ==== IHEMA reference palette (from tailwind.config) ==== */
  --primary: #000B28;
  --on-primary: #FFFFFF;
  --primary-container: #0D2149;
  --on-primary-container: #7889B7;
  --secondary: #006E0D;
  --on-secondary: #FFFFFF;
  --secondary-container: #90FB81;
  --on-secondary-container: #00750F;
  --secondary-fixed: #90FB81;
  --secondary-fixed-dim: #74DD68;
  --tertiary: #160A00;
  --on-tertiary: #FFFFFF;
  --tertiary-container: #341E00;
  --on-tertiary-container: #BF7B00;
  --tertiary-fixed: #FFDDB6;
  --tertiary-fixed-dim: #FFB95A;
  --on-tertiary-fixed: #2A1800;
  --on-tertiary-fixed-variant: #643F00;
  --surface: #FAF8FF;
  --surface-bright: #FAF8FF;
  --surface-dim: #D4D9ED;
  --surface-container: #E9EDFF;
  --surface-container-low: #F1F3FF;
  --surface-container-lowest: #FFFFFF;
  --surface-container-high: #E2E8FC;
  --surface-container-highest: #DDE2F6;
  --surface-variant: #DDE2F6;
  --on-surface: #151B29;
  --on-surface-variant: #44464E;
  --outline: #75777F;
  --outline-variant: #C5C6D0;
  --background: #FAF8FF;
  --on-background: #151B29;
  --error: #BA1A1A;
  --on-error: #FFFFFF;
  --font-body: 'Inter', sans-serif;
  --font-headline: 'Hanken Grotesk', sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--on-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== TYPOGRAPHY SCALE ===== */
.font-display-lg { font-family: var(--font-headline); font-size: 64px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
.font-headline-lg { font-family: var(--font-headline); font-size: 48px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; }
.font-headline-md { font-family: var(--font-headline); font-size: 32px; line-height: 1.3; font-weight: 600; }
.font-headline-sm { font-family: var(--font-headline); font-size: 24px; line-height: 1.4; font-weight: 600; }
.font-body-lg { font-family: var(--font-body); font-size: 18px; line-height: 1.6; }
.font-body-md { font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
.font-label-md { font-family: var(--font-body); font-size: 14px; line-height: 1; letter-spacing: 0.05em; font-weight: 600; }
.text-display-lg { font-size: 64px; }
.text-headline-lg { font-size: 48px; }
.text-headline-md { font-size: 32px; }
.text-headline-sm { font-size: 24px; }
.text-body-md { font-size: 16px; }
.text-label-md { font-size: 14px; }
.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }
.text-xl { font-size: 20px; }
.text-3xl { font-size: 30px; }
.text-4xl { font-size: 36px; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.font-bold { font-weight: 700; }
.font-light { font-weight: 300; }
.tracking-wider { letter-spacing: 0.05em; }
.uppercase { text-transform: uppercase; }
.underline { text-decoration: underline; }
.underline-offset-4 { text-underline-offset: 4px; }
.decoration-secondary { text-decoration-color: var(--secondary); }
.text-center { text-align: center; }
.text-left { text-align: left; }

/* ===== TEXT COLORS ===== */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-secondary-fixed { color: var(--secondary-fixed); }
.text-on-surface { color: var(--on-surface); }
.text-on-surface-variant { color: var(--on-surface-variant); }
.text-on-primary { color: var(--on-primary); }
.text-tertiary-fixed-dim { color: var(--tertiary-fixed-dim); }
.text-tertiary-container { color: var(--tertiary-container); }
.text-\[\#90FB81\] { color: #90FB81; }
.text-green-900 { color: #14532d; }
.text-green-800 { color: #166534; }
.text-\[\#00750F\] { color: #00750F; }

/* ===== BACKGROUND COLORS ===== */
.bg-primary { background-color: var(--primary); }
.bg-primary-container { background-color: var(--primary-container); }
.bg-surface { background-color: var(--surface); }
.bg-surface-container { background-color: var(--surface-container); }
.bg-surface-container-low { background-color: var(--surface-container-low); }
.bg-tertiary-fixed-dim { background-color: var(--tertiary-fixed-dim); }
.bg-secondary-container { background-color: var(--secondary-container); }
.bg-\[\#90FB81\] { background-color: #90FB81; }
.bg-green-900 { background-color: #14532d; }
.bg-white { background-color: #FFFFFF; }

/* ===== OPACITY COLORS ===== */
.bg-primary\/60 { background-color: rgba(0,11,40,0.6); }
.bg-secondary-fixed\/15 { background-color: rgba(144,251,129,0.15); }
.bg-tertiary-fixed-dim\/20 { background-color: rgba(255,185,90,0.2); }

/* ===== GRADIENTS ===== */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--from-color, rgba(0,11,40,0.9)), var(--to-color, rgba(0,11,40,0.4))); }
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--from-color, rgba(0,11,40,0.9)), var(--to-color, transparent)); }
.from-primary\/90 { --from-color: rgba(0,11,40,0.9); }
.from-primary\/30 { --from-color: rgba(0,11,40,0.3); }
.to-primary\/40 { --to-color: rgba(0,11,40,0.4); }
.to-transparent { --to-color: transparent; }
.via-primary\/20 { --via-color: rgba(0,11,40,0.2); }
.via-primary\/30 { --via-color: rgba(0,11,40,0.3); }
.via-primary\/40 { --via-color: rgba(0,11,40,0.4); }

/* Fix: gradient with from+via+to needs multi-stop */
.bg-gradient-to-t[class*="via-"] {
  background-image: linear-gradient(to top, rgba(0,11,40,0.9), rgba(0,11,40,0.2), transparent);
}
.bg-gradient-to-r[class*="from-primary\/90"] {
  background-image: linear-gradient(to right, rgba(0,11,40,0.9), rgba(0,11,40,0.4));
}

/* ===== BORDERS ===== */
.border { border: 1px solid var(--outline-variant); }
.border-b { border-bottom: 1px solid var(--outline-variant); }
.border-b-2 { border-bottom: 2px solid; }
.border-y { border-top: 1px solid var(--outline-variant); border-bottom: 1px solid var(--outline-variant); }
.border-outline-variant { border-color: var(--outline-variant); }
.border-outline-variant\/30 { border-color: rgba(197,198,208,0.3); }
.border-secondary { border-color: var(--secondary); }
.border-surface\/10 { border-color: rgba(255,255,255,0.1); }
.border-surface-variant { border-color: var(--outline-variant); }

/* ===== SHADOWS ===== */
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.shadow-md { box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.shadow-2xl { box-shadow: 0 25px 50px rgba(0,0,0,0.25); }

/* ===== BORDER RADIUS ===== */
.rounded { border-radius: 4px; }
.rounded-full { border-radius: 9999px; }
.rounded-xl { border-radius: 12px; }
.rounded-lg { border-radius: 8px; }
.rounded-2xl { border-radius: 16px; }

/* ===== SPACING â€” MARGIN ===== */
.mt-0\.5 { margin-top: 2px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.ml-auto { margin-left: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ===== SPACING â€” PADDING ===== */
.p-2 { padding: 8px; }
.p-8 { padding: 32px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-5 { padding-left: 20px; padding-right: 20px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.px-8 { padding-left: 32px; padding-right: 32px; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.py-10 { padding-top: 40px; padding-bottom: 40px; }
.py-16 { padding-top: 64px; padding-bottom: 64px; }
.pt-20 { padding-top: 80px; }
.pt-24 { padding-top: 96px; }
.pt-28 { padding-top: 112px; }
.pb-1 { padding-bottom: 4px; }
.pb-8 { padding-bottom: 32px; }
.pb-16 { padding-bottom: 64px; }
.pb-20 { padding-bottom: 80px; }

/* ===== SPACING â€” GAP ===== */
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-10 { gap: 40px; }
.gap-12 { gap: 48px; }
.space-y-4 > * + * { margin-top: 16px; }
.space-y-2 > * + * { margin-top: 8px; }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-6 > * + * { margin-top: 24px; }

/* ===== LAYOUT â€” DISPLAY ===== */
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

/* ===== LAYOUT â€” FLEX ===== */
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* ===== LAYOUT â€” GRID ===== */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }

/* ===== LAYOUT â€” SIZING ===== */
.w-full { width: 100%; }
.w-2 { width: 8px; }
.w-10 { width: 40px; }
.w-12 { width: 48px; }
.h-full { height: 100%; }
.h-2 { height: 8px; }
.h-10 { height: 40px; }
.h-12 { height: 48px; }
.min-h-\[500px\] { min-height: 500px; }

/* ===== FIXED HEIGHTS ===== */
.h-\[240px\] { height: 240px; }
.h-\[288px\] { height: 288px; }
.h-\[300px\] { height: 300px; }
.h-\[400px\] { height: 400px; }
.h-\[500px\] { height: 500px; }
.h-\[600px\] { height: 600px; }

/* ===== MAX WIDTH ===== */
.max-w-4xl { max-width: 56rem; }
.max-w-container-max { max-width: 1280px; }

/* ===== POSITION ===== */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-6 { top: 24px; }
.top-24 { top: 96px; }
.top-4 { top: 16px; }
.top-8 { top: 32px; }
.bottom-6 { bottom: 24px; }
.bottom-8 { bottom: 32px; }
.left-0 { left: 0; }
.left-6 { left: 24px; }
.left-8 { left: 32px; }
.right-6 { right: 24px; }
.right-8 { right: 32px; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* ===== OVERFLOW ===== */
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* ===== OBJECT FIT ===== */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* ===== BLEND MODE ===== */
.mix-blend-overlay { mix-blend-mode: overlay; }
.opacity-40 { opacity: 0.4; }

/* ===== BACKDROP ===== */
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

/* ===== TRANSITIONS ===== */
.transition-all { transition: all 0.2s ease; }
.transition-colors { transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

/* ===== HOVER ===== */
.hover\:bg-surface-variant:hover { background-color: var(--surface-container); }
.hover\:opacity-90:hover { opacity: 0.9; }
.hover\:text-secondary:hover { color: var(--secondary); }
.hover\:bg-green-800:hover { background-color: #166534; }
.hover\:bg-\[\#90FB81\]\/90:hover { background-color: rgba(144,251,129,0.9); }
.text-on-primary\/70 { color: rgba(255,255,255,0.7); }
.text-on-primary\/80 { color: rgba(255,255,255,0.8); }

/* ===== CUSTOM COMPONENT ===== */
.text-underline-yellow { position: relative; display: inline-block; }
.text-underline-yellow::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 6px; background-color: var(--tertiary-fixed-dim); z-index: -1; }

/* ===== HERO SLIDER ===== */
.hero-slide { position: absolute; inset: 0; animation: heroFade 15s infinite; opacity: 0; }
@keyframes heroFade { 0% { opacity: 0; } 6.67% { opacity: 1; } 33.33% { opacity: 1; } 40% { opacity: 0; } 100% { opacity: 0; } }
.hero-slide-1 { animation-delay: 0s; }
.hero-slide-2 { animation-delay: 5s; }
.hero-slide-3 { animation-delay: 10s; }

/* ===== PRODUCT GRID ===== */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--surface); border: 1px solid var(--outline-variant);
  border-radius: 12px; overflow: hidden; transition: all 0.2s ease;
}
.product-card:hover { border-color: var(--secondary); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }

/* ===== SECTION SPACING ===== */
section { padding-top: 64px; padding-bottom: 64px; }

/* ===== LAYOUT ===== */
.px-gutter { padding-left: 24px; padding-right: 24px; }
.py-section-padding-mobile { padding-top: 40px; padding-bottom: 40px; }
.py-section-padding-desktop { padding-top: 64px; padding-bottom: 64px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 4px; font-family: var(--font-body);
  font-size: 14px; font-weight: 600; letter-spacing: 0.05em; cursor: pointer;
  transition: all 0.2s ease; border: none;
}
.btn-tertiary { background: var(--tertiary-fixed-dim); color: var(--tertiary-container); }
.btn-tertiary:hover { opacity: 0.9; }
.btn-outline { background: transparent; border: 1px solid var(--on-primary); color: var(--on-primary); }
.btn-outline:hover { background: var(--on-primary); color: var(--primary); }

/* ===== FOOTER ===== */
footer { background: var(--primary); color: var(--on-primary); }

/* ===== MOBILE MENU ===== */
#mobile-menu { display: none; }
#mobile-menu.show { display: flex; }

/* ===== WOOCOMMERCE PRODUCT CARD ===== */
.woocommerce ul.products li.product {
  background: var(--surface); border: 1px solid var(--outline-variant);
  border-radius: 12px; overflow: hidden; transition: all 0.2s ease;
  list-style: none; margin: 0; padding: 0;
}
.woocommerce ul.products li.product:hover {
  border-color: var(--secondary); box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.woocommerce ul.products li.product img {
  width: 100%; height: 220px; object-fit: cover; margin: 0;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-body); font-size: 16px; font-weight: 600;
  color: var(--on-surface); padding: 12px 16px 4px;
}
.woocommerce ul.products li.product .price {
  font-family: var(--font-body); font-size: 16px; font-weight: 700;
  color: var(--secondary); padding: 0 16px 12px;
}
.woocommerce ul.products li.product .button {
  background: var(--tertiary-fixed-dim); color: var(--tertiary-container);
  border: none; border-radius: 4px; padding: 10px 20px; font-weight: 600;
  font-size: 14px; margin: 0 16px 16px; width: calc(100% - 32px);
  transition: opacity 0.2s ease; cursor: pointer;
}
.woocommerce ul.products li.product .button:hover { opacity: 0.9; }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering {
  font-family: var(--font-body); color: var(--on-surface-variant);
}
.woocommerce nav.woocommerce-pagination ul {
  border: none; display: flex; justify-content: center; gap: 8px;
}
.woocommerce nav.woocommerce-pagination ul li {
  border: 1px solid var(--outline-variant); border-radius: 4px;
}
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
  padding: 8px 16px; font-size: 14px; color: var(--on-surface);
}
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--primary); color: var(--on-primary); border-color: var(--primary);
}

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
  .sm\:flex { display: flex; }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:inline-flex { display: inline-flex; }
  .md\:gap-6 { gap: 24px; }
  .md\:p-10 { padding: 40px; }
  .md\:py-section-padding-desktop { padding-top: 64px; padding-bottom: 64px; }
  .md\:pt-28 { padding-top: 112px; }
  .md\:pb-20 { padding-bottom: 80px; }
  .md\:font-headline-md { font-size: 32px; font-family: var(--font-headline); font-weight: 600; }
  .md\:h-\[400px\] { height: 400px; }
  section { padding-top: 64px; padding-bottom: 64px; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:col-span-1 { grid-column: span 1 / span 1; }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none !important; }
  .lg\:h-\[288px\] { height: 288px; }
  .lg\:h-\[600px\] { height: 600px; }
  .products-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1280px) {
  .xl\:flex { display: flex; }
}
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .products-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .font-display-lg, .text-display-lg { font-size: 36px; }
  .font-headline-lg, .text-headline-lg { font-size: 28px; }
  .font-headline-md, .text-headline-md { font-size: 24px; }
}

/* ===== MATERIAL ICONS ===== */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal; font-style: normal; font-size: 24px;
  line-height: 1; letter-spacing: normal; text-transform: none;
  display: inline-block; white-space: nowrap; word-wrap: normal;
  direction: ltr; font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* ===== WORDPRESS OVERRIDES ===== */
body.page-template-default main { padding: 0; }
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-info, .woocommerce-message, .woocommerce-error {
  font-family: var(--font-body); border-radius: 8px; padding: 16px;
}

/* ===== ADDITIONAL CLASSES FOR HOMEPAGE MATCH ===== */
.bg-white { background-color: #FFFFFF; }
.text-on-secondary-container { color: #00750F; }
.border-outline { border-color: var(--outline-variant); }
.text-on-primary\/80 { color: rgba(255,255,255,0.8); }
.glass-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
}
/* Star fill via font-variation-settings for Material Symbols */
.material-symbols-outlined[style*="FILL"] { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
/* Partners grid responsive */
@media (max-width: 640px) { .lg\:grid-cols-4 { grid-template-columns: repeat(2,1fr); } }

/* Kindred commerce: shared cards, native WooCommerce details and blocks. */
.kindred-shop { padding-top: 120px; padding-bottom: 72px; min-height: 65vh; }
.catalog-heading { margin: 20px 0 40px; }
.catalog-heading h1 { margin: 12px 0; }
.breadcrumbs { font-size: 14px; color: var(--on-surface-variant); margin-bottom: 24px; }
.woocommerce ul.products, ul.products-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; clear: both; list-style: none; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product, ul.products-grid li.product { float: none; width: auto; margin: 0; min-width: 0; background: var(--surface); border: 1px solid var(--outline-variant); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.product-card .woocommerce-LoopProduct-link { display: block; flex: 1; }
.woocommerce ul.products li.product img, ul.products-grid li.product img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: var(--surface-container-low); margin: 0; }
.woocommerce ul.products li.product .woocommerce-loop-product__title, .products-grid .woocommerce-loop-product__title { font: 600 17px/1.45 var(--font-headline); padding: 18px 18px 8px; }
.woocommerce ul.products li.product .price, .products-grid .price { display: block; color: var(--secondary); font-weight: 700; padding: 0 18px 16px; margin: 0; }
.woocommerce ul.products li.product .button, .products-grid .button { display: block; text-align: center; background: var(--tertiary-fixed-dim); color: var(--tertiary-container); padding: 13px 16px; margin: 0 18px 18px; width: calc(100% - 36px); border-radius: 4px; font: 600 14px/1.4 var(--font-body); }
.products-grid .added_to_cart, .woocommerce ul.products li.product .added_to_cart { padding: 0 18px 18px; text-decoration: underline; }
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .wc-block-components-button:not(.is-link) { background: var(--tertiary-fixed-dim); color: var(--tertiary-container); border-radius: 4px; font-weight: 600; }
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--secondary); color: var(--on-primary); }
.woocommerce div.product .product_title { font: 700 clamp(28px,4vw,44px)/1.15 var(--font-headline); color: var(--primary); margin-bottom: 20px; }
.woocommerce div.product p.price { color: var(--secondary); font-weight: 700; margin-bottom: 18px; }
.woocommerce-product-details__short-description { margin-bottom: 24px; }
.woocommerce div.product div.images { border-radius: 12px; overflow: hidden; background: var(--surface-container-low); }
.woocommerce div.product .quantity .qty { padding: 10px; min-height: 44px; width: 80px; }
.woocommerce div.product form.cart .button { min-height: 46px; }
.woocommerce div.product .product_meta { display: grid; gap: 8px; font-size: 14px; color: var(--on-surface-variant); }
.woocommerce div.product .woocommerce-tabs { clear: both; padding-top: 28px; }
.woocommerce div.product .woocommerce-tabs h2, .related h2 { font: 600 28px/1.3 var(--font-headline); margin-bottom: 20px; }
.woocommerce div.product section { padding: 32px 0; }
.woocommerce-cart main, .woocommerce-checkout main { padding-top: 120px; padding-bottom: 72px; min-height: 65vh; }
.wc-block-cart, .wc-block-checkout { color: var(--on-surface); font-family: var(--font-body); }
.wc-block-components-sidebar { background: var(--surface-container-low); padding: 24px; border-radius: 12px; }
.wc-block-components-title, .wc-block-components-checkout-step__title { font-family: var(--font-headline); color: var(--primary); }
.wc-block-components-text-input input, .wc-block-components-combobox .components-combobox-control__input, .woocommerce input.input-text, .woocommerce select, .woocommerce textarea { border: 1px solid var(--outline-variant); border-radius: 4px; font-family: var(--font-body); }
.woocommerce table.shop_table { border-color: var(--outline-variant); border-radius: 12px; }
.woocommerce .woocommerce-info, .woocommerce .woocommerce-message { border-top-color: var(--secondary); background: var(--surface-container-low); }
:where(a,button,input,select,textarea):focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; }
#ship-modal { margin: auto; padding: 32px; width: min(640px,calc(100% - 32px)); max-height: 90dvh; overflow: auto; color: var(--on-primary); background: var(--primary); border: 1px solid var(--secondary); border-radius: 16px; }
#ship-modal::backdrop { background: rgb(15 25 40 / 70%); backdrop-filter: blur(4px); }
#ship-modal h2 { padding-right: 24px; margin-bottom: 12px; }
#ship-modal p { margin-bottom: 20px; }
#ship-modal fieldset { border: 0; min-width: 0; }
#ship-modal legend { font: 600 20px var(--font-headline); margin-bottom: 16px; }
#ship-modal label { display: block; font-size: 14px; margin-bottom: 14px; }
#ship-modal input, #ship-modal select, #ship-modal textarea { display: block; width: 100%; padding: 12px; margin-top: 6px; border: 1px solid var(--secondary); border-radius: 6px; font: inherit; background: var(--surface); color: var(--on-surface); }
#ship-modal :focus-visible { outline-color: var(--tertiary-fixed-dim); }
.ship-close { position: absolute; right: 14px; top: 10px; width: 44px; height: 44px; background: transparent; border: 0; color: inherit; font-size: 32px; cursor: pointer; }
.ship-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; margin-top: 24px; }
#ship-summary { white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.7 var(--font-body); margin: 16px 0; }
.ship-open { overflow: hidden; }
#ship-modal [hidden] { display: none !important; }
@media(max-width: 1023px) { .woocommerce ul.products, ul.products-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width: 600px) {
  .woocommerce ul.products, ul.products-grid { gap: 14px; }
  .catalog-heading h1 { font-size: 36px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title, .products-grid .woocommerce-loop-product__title { font-size: 15px; padding: 12px 10px 8px; }
  .woocommerce ul.products li.product .price, .products-grid .price { padding: 0 10px 12px; font-size: 14px; }
  .woocommerce ul.products li.product .button, .products-grid .button { margin: 0 10px 12px; width: calc(100% - 20px); padding: 12px 6px; font-size: 13px; }
  .woocommerce .woocommerce-ordering, .woocommerce .woocommerce-result-count { float: none; width: 100%; }
  .woocommerce .woocommerce-ordering select { width: 100%; padding: 12px; }
  #ship-modal { padding: 24px 20px; }
  .wc-block-components-sidebar { padding: 16px; }
  .home .font-display-lg { font-size: clamp(34px,8vw,48px); }
}
@media(max-width: 359px) { .woocommerce ul.products, ul.products-grid { grid-template-columns: 1fr; } }
@media(prefers-reduced-motion: reduce) { .hero-slide { animation: none !important; } .hero-slide:first-child { opacity: 1; } }
/* Constrain branding independently of optional utility classes. */
#navbar > div { min-height: 80px; }
#navbar img { height: 40px; width: auto; max-width: 160px; object-fit: contain; }
#navbar a, #navbar .font-label-md { white-space: nowrap; }
footer img[alt="IHEMA LOGISTICS Ltd"] { height: 64px; width: auto; }
@media(max-width: 600px) { #navbar img { max-width: 130px; } }
body.woocommerce-cart main, body.woocommerce-checkout main { padding: 120px 24px 72px; }
footer > .grid > div { min-width: 0; overflow-wrap: anywhere; }
@media(max-width: 767px) { footer > .grid { grid-template-columns: minmax(0,1fr); gap: 32px; } }
/* Override WooCommerce's legacy floated mobile column widths inside our grid. */
.woocommerce ul.products[class*="columns-"] li.product { width: 100%; margin: 0; float: none; }

/* ===== SERVICES PAGE UTILITIES (reference match) ===== */
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.mt-1 { margin-top: 4px; }
.text-2xl { font-size: 24px; }
.font-semibold { font-weight: 600; }
.max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-2xl { max-width: 42rem; }
.opacity-5 { opacity: 0.05; }
.bg-transparent { background-color: transparent; }
.border-2 { border-width: 2px; }
.font-headline-lg-mobile { font-family: var(--font-headline); font-size: 32px; line-height: 1.2; font-weight: 700; }
.text-headline-lg-mobile { font-size: 32px; }
.bg-white\/10 { background-color: rgba(255,255,255,0.1); }
.bg-white\/20 { background-color: rgba(255,255,255,0.2); }
.border-white\/10 { border-color: rgba(255,255,255,0.1); }
.bg-\[\#90FB81\]\/15 { background-color: rgba(144,251,129,0.15); }
.bg-green-800 { background-color: #166534; }
.bg-green-800\/10 { background-color: rgba(22,101,52,0.1); }
.bg-green-800\/15 { background-color: rgba(22,101,52,0.15); }
.border-green-800\/20 { border-color: rgba(22,101,52,0.2); }
.border-on-primary\/30 { border-color: rgba(255,255,255,0.3); }
.decoration-green-500 { text-decoration-color: #22c55e; }
.group:hover .group-hover\:text-\[\#90FB81\] { color: #90FB81; }
.group:hover .group-hover\:underline { text-decoration: underline; }
.hover\:bg-white\/20:hover { background-color: rgba(255,255,255,0.2); }
.hover\:bg-on-primary\/10:hover { background-color: rgba(255,255,255,0.1); }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:w-auto { width: auto; }
}
@media (min-width: 768px) {
  .md\:font-headline-lg { font-family: var(--font-headline); font-size: 48px; line-height: 1.2; font-weight: 700; }
  .md\:text-headline-lg { font-size: 48px; }
}
