/* Grubox — a white, readable catalog over WoodMart's native WooCommerce UI. */
body.gx-grubox {
  --gx-accent: #c2410c;
  --gx-accent-hover: #9a3412;
  --gx-foreground: #192321;
  --gx-muted: #66706a;
  --gx-border: #e4e8e4;
  --gx-surface: #fff;
  --gx-soft-surface: #f5f6f3;
  --gx-warm-surface: #faf6f1;
  --gx-radius: 10px;
  --wd-primary-color: var(--gx-accent);
  --wd-main-bgcolor: var(--gx-surface);
  --wd-text-font: Arial, Helvetica, sans-serif;
  --wd-text-color: var(--gx-foreground);
  --wd-title-color: var(--gx-foreground);
  --wd-form-brd-color: #d9ded9;
  --wd-form-brd-color-focus: var(--gx-accent);
  --wd-form-brd-radius: 6px;
  --wd-btn-accent-bg: var(--gx-accent);
  --wd-btn-accent-bg-hover: var(--gx-accent-hover);
  --wd-btn-accent-color: #fff;
  --wd-btn-accent-color-hover: #fff;
  background: var(--gx-surface);
  color: var(--gx-foreground);
}

.gx-grubox .website-wrapper,
.gx-grubox .main-page-wrapper { background-color: var(--gx-surface); }
.gx-grubox .main-page-wrapper { padding-top: 30px; }
.gx-grubox :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--gx-accent);
  outline-offset: 3px;
}
.gx-grubox :is(button, a, input, select, textarea) { -webkit-tap-highlight-color: #c2410c20; }
.gx-grubox :is(.button, .btn, button[type="submit"], .single_add_to_cart_button) {
  border-radius: 6px;
  font-weight: 600;
}
.gx-grubox input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.gx-grubox select { min-height: 44px; }
.gx-grubox textarea { min-height: 130px; border-radius: 6px; }
.gx-grubox .form-row label { line-height: 1.5; }
.gx-grubox .woocommerce-privacy-policy-text { color: var(--gx-muted); font-size: 13px; line-height: 1.7; }
.gx-grubox .woocommerce-privacy-policy-text a { color: var(--gx-accent); text-decoration: underline; }
.gx-grubox .page-title { margin-bottom: 28px; background: var(--gx-soft-surface); }
.gx-grubox .page-title .entry-title { color: var(--gx-foreground); letter-spacing: -.035em; }
.gx-grubox .page-title { --wd-title-color: var(--gx-foreground); --wd-link-color: var(--gx-foreground); color: var(--gx-foreground); }
.gx-grubox .page-title a,
.gx-grubox .page-title .wd-show-categories { color: var(--gx-foreground); }
.gx-grubox .wd-breadcrumbs { font-size: 12px; line-height: 1.7; }

/* Header and useful touch targets; native Header Builder controls behavior. */
.gx-grubox .whb-header { margin-bottom: 0; }
.gx-grubox .whb-general-header { border-bottom-color: var(--gx-border); }
.gx-grubox .whb-header-bottom { border-bottom: 1px solid var(--gx-border); }
.gx-grubox .wd-header-search-form .searchform { border-radius: 6px; background: var(--gx-soft-surface); }
.gx-grubox .wd-header-search-form .s { min-width: 0; font-size: 14px; }
.gx-grubox .wd-header-search-form .searchsubmit { min-width: 44px; }
.gx-grubox .wd-header-search-form .searchsubmit:hover { color: var(--gx-accent); }
.gx-grubox .wd-nav-main > li > a { font-size: 13px; font-weight: 600; }
.gx-grubox .wd-header-my-account,
.gx-grubox .wd-header-cart { flex-shrink: 0; }
.gx-grubox .wd-header-cart .wd-tools-text { font-size: 12px; }

/* Home: hero text and CTA are editable in the native page editor. */
.gx-home { grid-column: 1 / -1; min-width: 0; color: var(--gx-foreground); }
.gx-home-content { width: 100%; padding-block: 0 18px; }
.gx-featured { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 18px; }
.gx-hero,
.gx-audience-card { min-width: 0; border: 1px solid var(--gx-border); border-radius: var(--gx-radius); }
.gx-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(110px, .8fr);
  align-items: center;
  gap: 10px;
  min-height: 310px;
  padding: clamp(24px, 3.1vw, 40px);
  overflow: hidden;
  background: #fff;
}
.gx-hero-copy { min-width: 0; }
.gx-hero-copy > :last-child,
.gx-hero-copy .wp-block-group > :last-child { margin-bottom: 0; }
.gx-home .gx-eyebrow,
.gx-page-intro .gx-eyebrow {
  margin: 0 0 12px;
  color: var(--gx-accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.5;
  text-transform: uppercase;
}
.gx-home h1 {
  margin: 0 0 18px;
  color: var(--gx-foreground);
  font-family: inherit;
  font-size: clamp(31px, 3.5vw, 45px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.07;
}
.gx-hero-copy p:not(.gx-eyebrow) {
  max-width: 350px;
  margin: 0 0 23px;
  color: var(--gx-muted);
  font-size: 14px;
  line-height: 1.7;
}
.gx-home .gx-primary-link,
.gx-hero-copy .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 44px;
  padding: 11px 17px;
  border: 0;
  border-radius: 5px;
  background: var(--gx-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color 150ms ease;
}
.gx-home .gx-primary-link:hover,
.gx-hero-copy .wp-block-button__link:hover { background: var(--gx-accent-hover); color: #fff; }
.gx-hero-copy .wp-block-buttons { gap: 10px; margin-top: 0; }
.gx-hero-art { min-width: 0; display: flex; align-items: center; justify-content: center; }
.gx-box-art { display: block; width: 100%; max-width: 230px; height: auto; }
.gx-hero-photo { display: block; width: 100%; max-height: 260px; object-fit: contain; }
.gx-audience-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 30px;
  background: var(--gx-warm-surface);
}
.gx-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 37px;
  margin-bottom: 18px;
  border: 1px solid #e9dbce;
  border-radius: 8px;
  color: var(--gx-accent);
  background: #fff;
}
.gx-card-icon svg { width: 23px; height: 23px; }
.gx-home .gx-audience-card .gx-eyebrow { margin-bottom: 9px; }
.gx-home .gx-audience-card h2 {
  margin: 0 0 12px;
  color: var(--gx-foreground);
  font-family: inherit;
  font-size: clamp(24px, 2.5vw, 31px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.13;
}
.gx-audience-card > p:not(.gx-eyebrow) { max-width: 270px; margin: 0 0 14px; color: var(--gx-muted); font-size: 13px; line-height: 1.7; }
.gx-home .gx-text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  color: var(--gx-accent);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}
.gx-home .gx-text-link:hover { color: var(--gx-accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.gx-category-section { margin-top: 34px; }
.gx-categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gx-home .gx-category-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 78px;
  padding: 13px 15px;
  border: 1px solid var(--gx-border);
  border-radius: 7px;
  background: #fff;
  color: var(--gx-foreground);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color 150ms ease, color 150ms ease;
}
.gx-home .gx-category-link:hover { border-color: var(--gx-accent); color: var(--gx-accent); }
.gx-category-picture { display: flex; align-items: center; justify-content: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 7px; background: var(--gx-soft-surface); color: #768478; }
.gx-category-picture svg { width: 24px; height: 24px; }
.gx-category-picture img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 7px; }
.gx-category-arrow { margin-left: auto; color: #879087; }
.gx-products { margin-top: 34px; }
.gx-section-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 18px; }
.gx-home .gx-section-heading .gx-eyebrow { margin-bottom: 6px; font-size: 10px; }
.gx-home .gx-section-heading h2 { margin: 0; color: var(--gx-foreground); font-family: inherit; font-size: 24px; font-weight: 600; letter-spacing: -.03em; line-height: 1.3; }
/* Only the native home shortcode is fixed to four/two columns. Archive view controls retain their behavior. */
.gx-products .products.elements-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 18px; }
.gx-products .product { min-width: 0; }
.gx-empty-state { display: flex; align-items: center; gap: 20px; padding: 28px; border: 1px dashed #d8ded7; border-radius: 8px; background: var(--gx-soft-surface); }
.gx-empty-symbol { display: flex; align-items: center; justify-content: center; flex: 0 0 46px; width: 46px; height: 46px; border: 1px solid #dbe1d9; border-radius: 50%; color: #7d8b7e; font-size: 24px; font-weight: 300; }
.gx-home .gx-empty-state h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.gx-empty-state p { margin: 0; color: var(--gx-muted); font-size: 13px; line-height: 1.65; }
.gx-help-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 36px; padding-top: 27px; border-top: 1px solid var(--gx-border); }
.gx-help-strip > div { position: relative; padding-left: 40px; }
.gx-step-number { position: absolute; inset: 1px auto auto 0; color: #a9b0a9; font-size: 11px; letter-spacing: .05em; }
.gx-home .gx-help-strip h3 { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.gx-help-strip p { margin: 0; color: var(--gx-muted); font-size: 12px; line-height: 1.7; }

/* Native catalog and product detail. */
.gx-grubox .shop-loop-head { padding-bottom: 18px; border-bottom: 1px solid var(--gx-border); margin-bottom: 24px; }
.gx-grubox .woocommerce-result-count { color: var(--gx-muted); font-size: 13px; }
.gx-grubox .woocommerce-ordering select { border: 1px solid var(--gx-border); border-radius: 6px; padding-inline: 12px 28px; font-size: 12px; }
.gx-grubox .shop-sidebar .widget { margin-bottom: 24px; padding-bottom: 23px; border-bottom: 1px solid var(--gx-border); }
.gx-grubox .shop-sidebar .widget-title { margin-bottom: 15px; font-size: 14px; letter-spacing: 0; text-transform: none; }
.gx-grubox .widget_product_categories .cat-item > a,
.gx-grubox .widget_layered_nav li > a { min-height: 34px; line-height: 1.5; }
.gx-grubox .wd-products.wd-loop-builder-off .wd-product:not(.product-list-item) .wd-product-wrapper { padding: 12px; border: 1px solid var(--gx-border); border-radius: 8px; background: #fff; }
.gx-grubox .wd-product .product-element-top { border-radius: 6px; background: #fff; }
.gx-grubox .wd-product .wd-product-img-link img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.gx-grubox .wd-products.wd-loop-builder-off .wd-product:not(.product-list-item) .wd-entities-title { min-height: 42px; margin-top: 12px; font-size: 14px; font-weight: 500; line-height: 1.5; }
.gx-grubox .wd-product .price { font-size: 15px; font-weight: 600; }
.gx-grubox .wd-product .product-cats { color: var(--gx-muted); font-size: 11px; }
.gx-grubox .wd-product .wd-add-btn { margin-top: 12px; }
.gx-grubox .wd-product .wd-add-btn a { border-radius: 5px; }
.gx-grubox .single-product-page .product_title { font-size: clamp(25px, 2.5vw, 35px); line-height: 1.18; letter-spacing: -.035em; }
.gx-grubox .single-product-page .summary-inner > .price { margin-block: 15px 20px; font-size: 25px; font-weight: 600; }
.gx-grubox .woocommerce-product-details__short-description { color: var(--gx-muted); font-size: 14px; line-height: 1.8; }
.gx-grubox .single-product-page .product-image-summary { margin-bottom: 35px; }
.gx-grubox .single-product-page .woocommerce-product-gallery__image { border-radius: 10px; }
.gx-grubox .single-product-page .woocommerce-product-gallery__image img { border-radius: 10px; }
.gx-grubox .single_add_to_cart_button { min-height: 46px; }
.gx-grubox .single-product-page .product_meta { padding-top: 18px; border-top: 1px solid var(--gx-border); color: var(--gx-muted); font-size: 12px; line-height: 1.8; }
.gx-grubox .woocommerce-tabs { border-top: 1px solid var(--gx-border); }
.gx-grubox .woocommerce-tabs .panel { color: #4e5b53; font-size: 14px; line-height: 1.8; }
.gx-grubox .woocommerce-product-attributes th { color: var(--gx-foreground); }

/* Cart, classic checkout and account. No changes to WooCommerce calculations. */
.gx-grubox .woocommerce-cart-form .shop_table { border-collapse: collapse; }
.gx-grubox .woocommerce-cart-form .product-name a { font-size: 14px; font-weight: 500; }
.gx-grubox .woocommerce-cart-form .product-thumbnail img { border: 1px solid var(--gx-border); border-radius: 6px; }
.gx-grubox .cart-totals-inner,
.gx-grubox .checkout-order-review { padding: 25px; border: 1px solid var(--gx-border); border-radius: 9px; background: var(--gx-soft-surface); }
.gx-grubox .cart_totals h2,
.gx-grubox .woocommerce-billing-fields h3,
.gx-grubox #order_review_heading { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.gx-grubox .checkout_coupon { border-radius: 7px; }
.gx-grubox .woocommerce-form-coupon-toggle .woocommerce-info { font-size: 13px; }
.gx-grubox .woocommerce-checkout .form-row { margin-bottom: 18px; }
.gx-grubox .gx-buyer-type { padding: 18px; border: 1px solid var(--gx-border); border-radius: 7px; background: var(--gx-soft-surface); }
.gx-grubox .gx-buyer-type label { font-weight: 600; }
.gx-grubox .gx-buyer-type select { background-color: #fff; }
.gx-grubox .gx-company-field[hidden] { display: none !important; }
.gx-grubox #payment { border: 1px solid var(--gx-border); border-radius: 7px; background: #fff; }
.gx-grubox #payment .payment_box { border-radius: 6px; }
.gx-grubox #place_order { width: 100%; min-height: 48px; font-size: 14px; }
.gx-grubox .woocommerce-terms-and-conditions-wrapper { line-height: 1.65; }
.gx-grubox .woocommerce-MyAccount-navigation { border: 1px solid var(--gx-border); border-radius: 8px; padding: 10px; }
.gx-grubox .woocommerce-MyAccount-navigation ul { margin: 0; }
.gx-grubox .woocommerce-MyAccount-navigation-link a { padding: 12px 14px; border-radius: 5px; font-size: 13px; }
.gx-grubox .woocommerce-MyAccount-navigation-link.is-active a { color: var(--gx-accent); background: #faf0e8; }
.gx-grubox .woocommerce-MyAccount-content { font-size: 14px; line-height: 1.8; }
.gx-grubox .woocommerce-MyAccount-content .woocommerce-Address { padding: 20px; border: 1px solid var(--gx-border); border-radius: 8px; }
.gx-grubox .woocommerce-form-login,
.gx-grubox .woocommerce-form-register { border-radius: 8px; }

/* Informational pages and footer can be maintained with ordinary WP content. */
.gx-info-page { max-width: 940px; margin-inline: auto; font-size: 15px; line-height: 1.85; }
.gx-page-intro { max-width: 710px; margin-bottom: 30px; }
.gx-page-intro h1 { margin-bottom: 16px; font-size: clamp(30px, 4vw, 43px); line-height: 1.13; letter-spacing: -.04em; }
.gx-page-intro p:not(.gx-eyebrow) { color: var(--gx-muted); font-size: 16px; }
.gx-info-page h2 { margin-top: 28px; font-size: 23px; line-height: 1.3; letter-spacing: -.02em; }
.gx-info-page h3 { font-size: 18px; line-height: 1.4; }
.gx-info-page a:not(.wp-block-button__link) { color: var(--gx-accent); text-underline-offset: 3px; }
.gx-info-page .wp-block-details { padding: 16px 20px; border: 1px solid var(--gx-border); border-radius: 7px; margin-bottom: 12px; }
.gx-info-page .wp-block-details summary { cursor: pointer; font-weight: 600; line-height: 1.6; }
.gx-info-page .wp-block-details[open] summary { margin-bottom: 15px; }
.gx-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.gx-info-grid > div,
.gx-info-grid > section { padding: 24px; border: 1px solid var(--gx-border); border-radius: 8px; background: #fff; }
.gx-info-grid > div h2:first-child,
.gx-info-grid > div h3:first-child { margin-top: 0; }
.gx-info-grid > div > :last-child { margin-bottom: 0; }
.gx-site-footer { padding-block: 36px; border-top: 1px solid var(--gx-border); color: var(--gx-muted); background: var(--gx-soft-surface); font-size: 13px; line-height: 1.8; }
.gx-footer-inner { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 28px 50px; }
.gx-footer-brand { display: inline-block; max-width: 280px; color: var(--gx-foreground); font-size: 25px; font-weight: 700; letter-spacing: -.04em; }
.gx-footer-brand span { color: var(--gx-accent); }
.gx-footer-brand strong { display: block; color: var(--gx-foreground); font-size: 23px; letter-spacing: -.04em; }
.gx-footer-links { display: grid; gap: 8px; }
.gx-footer-links a { color: var(--gx-foreground); }
.gx-footer-links a:hover { color: var(--gx-accent); }
.gx-footer-note { margin: 20px 0 0; font-size: 11px; }
.gx-grubox .copyrights-wrapper { border-top: 1px solid var(--gx-border); }
.gx-grubox .min-footer { min-height: 56px; font-size: 11px; color: var(--gx-muted); }

@media (max-width: 1024px) {
  .gx-hero { min-height: 300px; padding: 26px; grid-template-columns: minmax(0, 1.4fr) minmax(90px, .7fr); }
  .gx-home h1 { font-size: 34px; }
  .gx-audience-card { padding: 24px; }
  .gx-home .gx-audience-card h2 { font-size: 27px; }
  .gx-hero-copy p:not(.gx-eyebrow) { font-size: 13px; }
  .gx-grubox .wd-header-search-form .s { font-size: 13px; }
  .gx-products .products.elements-grid { gap: 22px 14px; }
}

@media (max-width: 767px) {
  .gx-grubox .main-page-wrapper { padding-top: 20px; }
  .gx-featured { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .gx-hero { min-height: 270px; padding: 25px 22px; grid-template-columns: minmax(0, 1.5fr) minmax(90px, .8fr); gap: 7px; }
  .gx-home h1 { margin-bottom: 15px; font-size: 32px; }
  .gx-home .gx-eyebrow { font-size: 10px; }
  .gx-hero-copy p:not(.gx-eyebrow) { margin-bottom: 20px; font-size: 13px; }
  .gx-home .gx-primary-link,
  .gx-hero-copy .wp-block-button__link { font-size: 12px; padding: 11px 14px; }
  .gx-audience-card { padding: 23px; }
  .gx-card-icon { position: absolute; top: 24px; right: 24px; }
  .gx-home .gx-audience-card h2 { padding-right: 48px; font-size: 25px; }
  .gx-audience-card > p:not(.gx-eyebrow) { max-width: none; padding-right: 18px; margin-bottom: 8px; }
  .gx-category-section,
  .gx-products { margin-top: 28px; }
  .gx-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gx-home .gx-category-link { gap: 9px; min-height: 72px; padding: 12px 10px; font-size: 12px; }
  .gx-category-picture { width: 32px; height: 36px; flex-basis: 32px; }
  .gx-category-picture svg { width: 22px; height: 22px; }
  .gx-category-arrow { display: none; }
  .gx-section-heading { margin-bottom: 16px; }
  .gx-home .gx-section-heading h2 { font-size: 22px; }
  .gx-home .gx-text-link { min-height: 38px; font-size: 12px; }
  .gx-products .products.elements-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .gx-empty-state { align-items: flex-start; gap: 14px; padding: 22px 18px; }
  .gx-empty-symbol { width: 34px; height: 34px; flex-basis: 34px; font-size: 21px; }
  .gx-home .gx-empty-state h3 { font-size: 15px; }
  .gx-empty-state p { font-size: 12px; }
  .gx-help-strip { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 28px; padding-top: 24px; }
  .gx-help-strip > div { padding-left: 35px; }
  .gx-home .gx-help-strip h3 { margin-bottom: 5px; }
  .gx-help-strip p { max-width: 400px; }
  .gx-grubox .wd-products.wd-loop-builder-off .wd-product:not(.product-list-item) .wd-product-wrapper { padding: 9px; }
  .gx-grubox .wd-products.wd-loop-builder-off .wd-product:not(.product-list-item) .wd-entities-title { font-size: 12px; line-height: 1.5; min-height: 36px; }
  .gx-grubox .wd-product .price { font-size: 14px; }
  .gx-grubox .wd-product .wd-add-btn a { min-height: 42px; font-size: 11px; padding-inline: 7px; }
  .gx-grubox .single-product-page .product_title { font-size: 26px; }
  .gx-grubox .cart-totals-inner,
  .gx-grubox .checkout-order-review { padding: 20px 17px; }
  .gx-grubox .woocommerce-cart-form .product-name a { font-size: 13px; }
  .gx-grubox .woocommerce-MyAccount-navigation { margin-bottom: 24px; }
  .gx-grubox .woocommerce-MyAccount-content .woocommerce-Address { margin-bottom: 20px; }
  .gx-grubox .gx-buyer-type { padding: 14px; }
  .gx-info-page { font-size: 14px; }
  .gx-page-intro { margin-bottom: 24px; }
  .gx-page-intro p:not(.gx-eyebrow) { font-size: 14px; }
  .gx-info-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .gx-info-grid > div { padding: 20px; }
  .gx-site-footer { padding-block: 28px; }
  .gx-footer-inner { gap: 24px; }
}

@media (max-width: 390px) {
  .gx-hero { grid-template-columns: minmax(0, 1fr); min-height: 250px; padding: 24px 21px; }
  .gx-hero-art { display: none; }
  .gx-home h1 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .gx-home .gx-primary-link,
  .gx-hero-copy .wp-block-button__link,
  .gx-home .gx-category-link { transition: none; }
}
