/**
Theme Name: Astra Child
Author: Fiets vooruit
Author URI: https://fietsvooruit.nl/
Description: Child theme for Astra - site customizations for Fiets vooruit (WooCommerce cart and related styles).
Version: 1.2.8
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/* Global child overrides can go here.
 * Header Variant A + footer: assets/css/header-footer.css
 *   (solid #008AFD 74px top + white secondary bar; 1200px site width)
 * Cookie banner (Complianz): assets/css/cookie-banner.css
 * Product carousel equal heights: assets/css/product-carousel.css
 * Homepage news equal heights: assets/css/homepage-news.css
 * Product category / shop archives: assets/css/woocommerce-product-archive.css
 * Single product: assets/css/woocommerce-single-product.css
 * Cart-specific CSS: assets/css/woocommerce-cart.css
 * Cart polish: assets/css/woocommerce-cart-polish.css
 * Checkout polish: assets/css/woocommerce-checkout-polish.css
 */

/* -------------------------------------------------------------------------
   Anchor jump targets (e.g. Home "Openingstijden" → Contact #openingstijden)
   scroll-margin clears sticky header / admin bar overlap.
   ------------------------------------------------------------------------- */
html {
	scroll-behavior: smooth;
}

#openingstijden {
	scroll-margin-top: 100px;
}

/* -------------------------------------------------------------------------
   WooCommerce notices — hide checkmark / error icon (::before)
   Success messages: keep text + “Bekijk winkelwagen” (and similar) buttons.
   Errors: hide icon + cart-forward button (out-of-stock / already-in-cart).
   ------------------------------------------------------------------------- */
.woocommerce-message::before,
.woocommerce-error::before,
.woocommerce-error li::before {
	display: none !important;
	content: none !important;
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-error li {
	padding-left: 1em !important;
}

.woocommerce-error .button.wc-forward,
.woocommerce-error a.wc-forward {
	display: none !important;
}

/* -------------------------------------------------------------------------
   Header cart — no mini-cart hover / flyout preview
   Click the cart icon still navigates to /winkelwagen/ (link kept).
   Scoped to header cart + Astra drawer only; mobile nav menu untouched.
   ------------------------------------------------------------------------- */
.ast-site-header-cart .ast-site-header-cart-data,
.ast-site-header-cart .widget_shopping_cart,
.woocommerce .ast-site-header-cart .widget_shopping_cart,
.ast-site-header-cart:hover .widget_shopping_cart,
.ast-site-header-cart:focus .widget_shopping_cart,
.woocommerce .ast-site-header-cart:hover .widget_shopping_cart,
.woocommerce .ast-site-header-cart:focus .widget_shopping_cart,
.open-preview-woocommerce-cart #ast-site-header-cart .widget_shopping_cart {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
	left: -999em !important;
	right: auto !important;
}

.astra-mobile-cart-overlay,
#astra-mobile-cart-drawer.astra-cart-drawer {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

/* -------------------------------------------------------------------------
   Cart design tokens — Fiets vooruit brand blue + calm shop surfaces
   ------------------------------------------------------------------------- */
body.woocommerce-cart {
	--fv-cart-blue: #2b87da;
	--fv-cart-blue-hover: #2270b8;
	--fv-cart-blue-soft: #5aa3e3;
	--fv-cart-blue-focus: rgba(43, 135, 218, 0.35);
	--fv-cart-text: #1a1a1a;
	--fv-cart-muted: #5c6670;
	--fv-cart-border: #e4e7eb;
	--fv-cart-border-strong: #cfd5dc;
	--fv-cart-bg: #ffffff;
	--fv-cart-bg-soft: #f7f8fa;
	--fv-cart-radius: 4px;
	--fv-cart-space-xs: 0.35rem;
	--fv-cart-space-sm: 0.5rem;
	--fv-cart-space: 1rem;
	--fv-cart-space-md: 1.25rem;
	--fv-cart-space-lg: 1.75rem;
	--fv-cart-space-xl: 2.5rem;
	--fv-cart-transition: 180ms ease;
	--fv-cart-focus-ring: 0 0 0 3px var(--fv-cart-blue-focus);
	--fv-cart-title-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
	--fv-cart-title-weight: 600;
	--fv-cart-title-tracking: -0.02em;
	--fv-cart-cta-min-height: 2.75rem;
}

/* -------------------------------------------------------------------------
   Checkout design tokens — same palette as cart (--fv-checkout-* aliases)
   ------------------------------------------------------------------------- */
body.woocommerce-checkout {
	--fv-checkout-blue: #2b87da;
	--fv-checkout-blue-hover: #2270b8;
	--fv-checkout-blue-soft: #5aa3e3;
	--fv-checkout-blue-focus: rgba(43, 135, 218, 0.35);
	--fv-checkout-text: #1a1a1a;
	--fv-checkout-muted: #5c6670;
	--fv-checkout-border: #e4e7eb;
	--fv-checkout-border-strong: #cfd5dc;
	--fv-checkout-bg: #ffffff;
	--fv-checkout-bg-soft: #f7f8fa;
	--fv-checkout-radius: 4px;
	--fv-checkout-space-xs: 0.35rem;
	--fv-checkout-space-sm: 0.5rem;
	--fv-checkout-space: 1rem;
	--fv-checkout-space-md: 1.25rem;
	--fv-checkout-space-lg: 1.75rem;
	--fv-checkout-space-xl: 2.5rem;
	--fv-checkout-transition: 180ms ease;
	--fv-checkout-focus-ring: 0 0 0 3px var(--fv-checkout-blue-focus);
	--fv-checkout-title-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
	--fv-checkout-title-weight: 600;
	--fv-checkout-title-tracking: -0.02em;
	--fv-checkout-cta-min-height: 2.75rem;
}

/* -------------------------------------------------------------------------
   Single product design tokens — brand #008AFD (header/footer aligned)
   ------------------------------------------------------------------------- */
body.single-product {
	--fv-sp-blue: #008afd;
	--fv-sp-blue-hover: #0074d6;
	--fv-sp-blue-soft: #2a9fff;
	--fv-sp-blue-tint: #f0f7ff;
	--fv-sp-blue-focus: rgba(0, 138, 253, 0.35);
	--fv-sp-text: #1a1a1a;
	--fv-sp-muted: #5c6670;
	--fv-sp-border: #e4e7eb;
	--fv-sp-border-strong: #cfd5dc;
	--fv-sp-bg: #ffffff;
	--fv-sp-bg-soft: #f7f8fa;
	--fv-sp-radius: 6px;
	--fv-sp-radius-lg: 10px;
	--fv-sp-space-xs: 0.35rem;
	--fv-sp-space-sm: 0.5rem;
	--fv-sp-space: 1rem;
	--fv-sp-space-md: 1.25rem;
	--fv-sp-space-lg: 1.75rem;
	--fv-sp-space-xl: 2.5rem;
	--fv-sp-transition: 180ms ease;
	--fv-sp-focus-ring: 0 0 0 3px var(--fv-sp-blue-focus);
	--fv-sp-shadow: 0 1px 2px rgba(26, 36, 48, 0.04), 0 8px 24px rgba(0, 74, 140, 0.06);
	--fv-sp-title-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
	--fv-sp-title-weight: 650;
	--fv-sp-title-tracking: -0.02em;
	--fv-sp-cta-min-height: 2.75rem;
}
