/**
 * TepeTool E-Commerce - Design System CSS
 * Mobile-First Responsive Styles
 */

/* ================================================
   FONTS & CSS VARIABLES
   ================================================ */
@import url('https://fonts.googleapis.com/css2?family=Abel&family=Lato:wght@300;400;700&display=swap');

:root {
  /* Typography */
  --font-headline: 'Abel', sans-serif;
  --font-body: 'Lato', sans-serif;

  /* Color System */
  --white: #FFFFFF;
  --grey-100: #FAFAFA;
  --grey-200: #F5F5F5;
  --grey-300: #E0E0E0;
  --grey-400: #BDBDBD;
  --grey-500: #9E9E9E;
  --grey-600: #757575;
  --grey-700: #c9c9c9;
  --grey-800: #e2e2e2;
  --grey-900: #212121;
  --accent: #D32F2F;
  --accent-dark: #B71C1C;
  --success: #4CAF50;
  --warning: #FF9800;
  --error: #F44336;
  --info: #2196F3;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;

  /* Shadows */
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-elevated: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-modal: 0 8px 32px rgba(0, 0, 0, 0.15);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
  --transition-slow: 300ms ease;
}

/* ================================================
   RESET & BASE STYLES
   ================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: black;
  line-height: 1.6;
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ================================================
   TYPOGRAPHY
   ================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headline);
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--grey-800);
  margin-bottom: var(--spacing-md);
  line-height: 1.3;
}

/* Mobile-first font sizes */
h1 {
  font-size: 1.75rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.125rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.875rem;
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: black;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent);
}

/* ================================================
   LAYOUT
   ================================================ */
.container {
  width: 100%;
  padding: 0 var(--spacing-md);
  margin: 0 auto;
}

.section {
  padding: var(--spacing-lg) 0;
}

.section-grey {
  background-color: var(--grey-200);
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  min-height: 44px;
  color: white;
  /* Touch-friendly */
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
}

.btn-close {
  color: white !important;
}


.btn-primary:hover {
  background-color: var(--accent-dark);
  box-shadow: var(--shadow-elevated);
}

.btn-secondary {
  background-color: white;
  color: black;
  border: 1px solid var(--grey-300);
}

.btn-secondary:hover {
  background-color: var(--grey-100);
  border-color: var(--grey-400);
}

.btn-outline {
  background-color: transparent;
  color: var(--grey-800);
  border: 1px solid var(--grey-300);
}

.btn-outline:hover {
  border-color: var(--grey-800);
  background-color: var(--grey-100);
  color: #212121;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ================================================
   FORMS
   ================================================ */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgb(0, 0, 0);
  margin-bottom: var(--spacing-xs);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: #212121;
  background-color: #ffffff;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 44px;
  /* Touch-friendly */
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  color: #212121;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
  background-color: #ffffff;
}

/* Auth pages - dark theme form controls */
.auth-page .form-control {
  color: rgb(255, 255, 255);
  background-color: #1e2433;
}

.auth-page .form-control:focus {
  color: #ffffff;
  background-color: #1e2433;
}



.form-control::placeholder {
  color: var(--grey-500);
}

.form-control.is-invalid {
  border-color: var(--error);
}

.form-text {
  font-size: 0.75rem;
  color: var(--grey-500);
  margin-top: var(--spacing-xs);
}

.form-error {
  font-size: 0.75rem;
  color: var(--error);
  margin-top: var(--spacing-xs);
}

/* Checkbox & Radio */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.form-check-input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
}

.form-check-label {
  font-size: 0.875rem;
  color: #212121;
}

/* Auth pages - dark theme checkbox labels */
.auth-page .form-check-label {
  color: rgb(255, 255, 255);
}

/* ================================================
   CARDS
   ================================================ */
.card {

  border: 1px solid var(--grey-300);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
}

.card-body {
  padding: var(--spacing-md);
}

.card-header {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--grey-200);
  background-color: var(--grey-100);
}

.card-title {
  font-size: 1.125rem;
  margin-bottom: 0;
}

/* ================================================
   ALERTS
   ================================================ */
.alert {
  padding: var(--spacing-md);
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-md);
  font-size: 0.875rem;
}

.alert-success {
  background-color: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #A5D6A7;
}

.alert-error {
  background-color: #FFEBEE;
  color: #C62828;
  border: 1px solid #EF9A9A;
}

.alert-warning {
  background-color: #FFF3E0;
  color: #EF6C00;
  border: 1px solid #FFCC80;
}

.alert-info {
  background-color: #E3F2FD;
  color: #1565C0;
  border: 1px solid #90CAF9;
}

/* ================================================
   NAVIGATION
   ================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--white);
  border-bottom: 1px solid var(--grey-200);
  padding: var(--spacing-md) 0;
}

.navbar-brand {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  letter-spacing: 3px;
  color: var(--grey-800);
  text-transform: uppercase;
}

.navbar-nav {
  display: none;
  list-style: none;
}

.nav-link {
  font-family: var(--font-headline);
  font-size: 0.875rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: black;
  padding: var(--spacing-sm) var(--spacing-md);
}

.nav-link:hover {
  color: var(--accent);
}

/* Hamburger Menu */
.navbar-toggler {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--spacing-sm);
  background: none;
  border: none;
  cursor: pointer;
}

.navbar-toggler span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--grey-800);
  transition: var(--transition-normal);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background-color: var(--white);
  box-shadow: var(--shadow-modal);
  z-index: 1001;
  transition: left var(--transition-slow);
  padding: var(--spacing-lg);
}

.mobile-menu.open {
  left: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Cart Badge */
.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--accent);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 2px 6px;
  min-width: 18px;
  text-align: center;
}

/* User Dropdown */
.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  min-width: 180px;
  z-index: 100;
}

.user-dropdown a {
  display: block;
  padding: 12px 16px;
  color: black;
  font-size: 0.875rem;
  transition: background-color var(--transition-fast);
  border-bottom: 1px solid var(--grey-100);
}

.user-dropdown a:last-child {
  border-bottom: none;
}

.user-dropdown a:hover {
  background-color: var(--grey-100);
  color: var(--accent);
}

/* ================================================
   AUTH PAGES (Login/Register)
   ================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #0f1115;
  /* Dark background */
  color: black;
}

.auth-page .form-label {
  color: var(--white) !important;
}

.auth-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: #161b22;
  /* Darker card background */
  border: 1px solid #30363d;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  padding: var(--spacing-xl);
}

.auth-logo {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.auth-logo h1 {
  font-size: 2rem;
  letter-spacing: 4px;
  margin-bottom: 0;
  color: var(--grey-800);
}

.auth-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.auth-title h4 {
  color: var(--grey-800);
}

.auth-footer {
  text-align: center;
  margin-top: var(--spacing-lg);
  font-size: 0.875rem;
  color: var(--grey-600);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
  color: var(--grey-500);
  font-size: 0.75rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: #30363d;
}

.auth-card .alert-info {
  background-color: rgba(33, 150, 243, 0.1);
  color: #64b5f6;
  border-color: rgba(33, 150, 243, 0.2);
}

/* Auth Page Responsive */
@media (max-width: 576px) {
  .auth-container {
    padding: var(--spacing-md);
    align-items: flex-start;
    /* Better for tall forms on mobile so they scroll */
    padding-top: var(--spacing-xl);
  }

  .auth-card {
    padding: var(--spacing-lg);
    box-shadow: none;
    background: transparent;
    border: none;
  }

  .auth-logo h1 {
    font-size: 1.75rem;
  }
}

/* ================================================
   UTILITIES
   ================================================ */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-muted {
  color: var(--grey-500);
}

.text-accent {
  color: var(--accent);
}

.text-success {
  color: var(--success);
}

.text-error {
  color: var(--error);
}

.mt-1 {
  margin-top: var(--spacing-sm);
}

.mt-2 {
  margin-top: var(--spacing-md);
}

.mt-3 {
  margin-top: var(--spacing-lg);
}

.mt-4 {
  margin-top: var(--spacing-xl);
}

.mb-1 {
  margin-bottom: var(--spacing-sm);
}

.mb-2 {
  margin-bottom: var(--spacing-md);
}

.mb-3 {
  margin-bottom: var(--spacing-lg);
}

.mb-4 {
  margin-bottom: var(--spacing-xl);
}

.d-none {
  display: none;
}

.d-block {
  display: block;
}

.d-flex {
  display: flex;
}

.hidden {
  display: none !important;
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--grey-300);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ================================================
   TABLET STYLES (768px+)
   ================================================ */
@media (min-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .container {
    max-width: 720px;
    padding: 0 var(--spacing-lg);
  }

  .section {
    padding: var(--spacing-xl) 0;
  }
}

/* ================================================
   DESKTOP STYLES (1024px+)
   ================================================ */
@media (min-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .container {
    max-width: 1200px;
    padding: 0 var(--spacing-xl);
  }

  .section {
    padding: var(--spacing-xxl) 0;
  }

  /* Show desktop nav, hide hamburger */
  .navbar-toggler {
    display: none;
  }

  .navbar-nav {
    display: flex;
    gap: var(--spacing-sm);
  }

  .navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}


/* =============================================================
   CART PAGE — TEPETOOLS EXACT MATCH
   WooCommerce Block Cart (wc-block-cart)
   Matches Screenshot 1 (tepetools/cart.php)
   ============================================================= */

/* Page Background */
body.woocommerce-cart {
  background: #fafafa !important;
}

/* Hide default page elements */
.woocommerce-cart .entry-header,
.woocommerce-cart .page-header,
body.woocommerce-cart .page-title-wrapper,
.woocommerce-cart .page-title {
  display: none !important;
}

/* Breadcrumb styling */
.woocommerce-cart .woocommerce-breadcrumb {
  text-align: center !important;
  font-family: 'Lato', sans-serif !important;
  font-size: 0.85rem !important;
  color: #777 !important;
  background: transparent !important;
  padding: 30px 20px 10px !important;
  margin: 0 auto !important;
  max-width: 1320px !important;
  border: none !important;
}

/* WINKELWAGEN Header */
.woocommerce-cart .wc-block-cart::before {
  content: 'WINKELWAGEN';
  display: block !important;
  text-align: center !important;
  font-family: 'Abel', sans-serif !important;
  font-size: clamp(2rem, 5vw, 2.5rem) !important;
  font-weight: 400 !important;
  letter-spacing: 2px !important;
  color: #1a1a1a !important;
  margin: 10px auto 40px !important;
  grid-column: 1 / -1;
}

/* ── Main Layout ── */
.wc-block-cart {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 20px 80px !important;
  display: grid !important;
  grid-template-columns: 1.5fr 1fr !important;
  gap: 30px !important;
  align-items: start !important;
}

/* ── Common Card Styles ── */
.wc-block-cart-items,
.wc-block-cart__totals,
.wc-block-components-totals-wrapper {
  background: #ffffff !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04) !important;
  padding: 30px 40px !important;
  border: none !important;
}

/* ── Left Column: Items ── */
.wc-block-cart__main {
  grid-column: 1 !important;
  grid-row: 2 !important;
}

.wc-block-cart-items {
  padding-top: 25px !important;
}

/* "WINKELWAGENARTIKELEN" Header Injection (Via pseudo element on the items block, or styling the existing header) */
.wc-block-cart-items__header {
  border-bottom: 1px solid #eee !important;
  margin-bottom: 25px !important;
  padding-bottom: 20px !important;
  background: transparent !important;
  text-align: center !important;
}

.wc-block-cart-items__header span,
.wc-block-cart-items__header {
  font-family: 'Abel', sans-serif !important;
  font-size: 1.25rem !important;
  letter-spacing: 1px !important;
  color: #222 !important;
  text-transform: uppercase !important;
}

/* Item Card Inner */
.wc-block-cart-item {
  background: #fbfbfb !important;
  border-radius: 8px !important;
  padding: 20px !important;
  margin-bottom: 15px !important;
  border: 1px solid transparent !important;
  display: grid !important;
  grid-template-columns: 140px 1fr !important;
  gap: 20px !important;
  align-items: center !important;
}

/* Item Image wrapper */
.wc-block-cart-item__image {
  background: #ffffff !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
  padding: 10px !important;
  width: 120px !important;
  max-width: 120px !important;
  height: 120px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.wc-block-cart-item__image img {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

/* Item Details */
.wc-block-cart-item__product {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  text-align: center !important;
  /* Centers text like in Tepetools */
  min-width: 0 !important;
}

.wc-block-components-product-name,
.wc-block-components-product-name a {
  font-family: 'Lato', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #333 !important;
  text-transform: uppercase !important;
  margin-bottom: 6px !important;
  text-align: center !important;
}

.wc-block-components-product-metadata {
  font-family: 'Lato', sans-serif !important;
  font-size: 0.8rem !important;
  color: #888 !important;
  text-align: center !important;
}

.wc-block-components-product-price {
  font-family: 'Abel', sans-serif !important;
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  color: #981b1e !important;
  /* Tepetools Red */
  text-align: center !important;
  margin-top: 10px !important;
  display: block !important;
}

/* Quantity and Controls Row */
.wc-block-components-quantity-selector {
  margin: 15px auto 0 !important;
  background: #fff !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
}

.wc-block-cart-item__remove-link {
  color: #981b1e !important;
  font-size: 0.85rem !important;
  text-align: center !important;
  display: block !important;
  margin-top: 10px !important;
  font-family: 'Lato', sans-serif !important;
}

/* ── Right Column: Totals (BESTELOVERZICHT) ── */
.wc-block-cart__totals,
.wc-block-components-totals-wrapper {
  grid-column: 2 !important;
  grid-row: 2 !important;
  position: sticky !important;
  top: 40px !important;
}

/* White Header / Overwrite previous black one */
.wc-block-cart__totals-title {
  background: #ffffff !important;
  color: #222 !important;
  text-align: center !important;
  font-family: 'Abel', sans-serif !important;
  font-size: 1.25rem !important;
  letter-spacing: 1px !important;
  padding: 0 0 20px !important;
  border-bottom: 1px solid #eee !important;
  text-transform: uppercase !important;
}

.wc-block-components-totals-item {
  padding: 15px 0 !important;
  border-bottom: 1px dotted #e4e4e4 !important;
  font-family: 'Lato', sans-serif !important;
  font-size: 0.95rem !important;
  color: #888 !important;
}

.wc-block-components-totals-item__label {
  color: #888 !important;
}

/* Subtotals numbers */
.wc-block-components-totals-item .wc-block-components-formatted-money-amount {
  color: #333 !important;
  font-weight: 700 !important;
}

/* Total Row */
.wc-block-components-totals-footer-item {
  background: #ffffff !important;
  padding: 25px 0 10px !important;
  border-top: 2px solid #981b1e !important;
  /* Thick red line */
  border-bottom: none !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-top: 10px !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-family: 'Lato', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.2rem !important;
  color: #333 !important;
}

.wc-block-components-totals-footer-item .wc-block-components-formatted-money-amount {
  font-family: 'Abel', sans-serif !important;
  color: #981b1e !important;
  font-size: 1.6rem !important;
  font-weight: 700 !important;
}

/* ── Checkout Button ── */
.wc-block-cart__submit-container {
  padding: 25px 0 0 !important;
}

.wc-block-cart__submit-button,
a.wc-block-cart__submit-button {
  width: 100% !important;
  background: #a91f24 !important;
  /* Solid Dark Red */
  color: #ffffff !important;
  padding: 18px !important;
  border-radius: 6px !important;
  font-family: 'Lato', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 4px 12px rgba(169, 31, 36, 0.2) !important;
  transition: all 0.3s ease !important;
  text-align: center !important;
  border: none !important;
}

.wc-block-cart__submit-button:hover,
a.wc-block-cart__submit-button:hover {
  background: #8b181c !important;
  transform: translateY(-2px) !important;
}

/* Secondary Button (mimic VERDER WINKELEN via pseudo-element if needed, or style outline bounds) */
.wc-block-cart__submit-container::after {
  content: 'VERDER WINKELEN';
  display: block;
  text-align: center;
  margin-top: 15px;
  padding: 16px;
  border: 2px solid #a91f24;
  border-radius: 6px;
  color: #a91f24;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wc-block-cart__submit-container:hover::after {
  background: #fdf2f2;
}

/* Return to shop link inside WooCommerce */
.wc-block-cart__return-to-shop {
  display: none !important;
}

/* ── Mobile Layout ── */
@media (max-width: 1024px) {
  .wc-block-cart {
    grid-template-columns: 1fr !important;
  }

  .wc-block-cart__main {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .wc-block-cart__totals,
  .wc-block-components-totals-wrapper {
    grid-column: 1 !important;
    position: static !important;
  }
}

@media (max-width: 600px) {
  .wc-block-cart-item {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }

  .wc-block-cart-item__image {
    margin: 0 auto 15px !important;
  }
}

/* =============================================================
   PRODUCT CATEGORY PAGE ENHANCEMENTS
   ============================================================= */
.tax-product_cat ul.products li.product-category {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.tax-product_cat ul.products li.product-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tax-product_cat ul.products li.product-category img {
  border-radius: 8px 8px 0 0;
  transition: transform 0.6s ease;
}

.tax-product_cat ul.products li.product-category:hover img {
  transform: scale(1.05);
}

.tax-product_cat ul.products li.product-category .woocommerce-loop-category__title {
  padding: 15px;
  font-family: 'Abel', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #111;
  font-size: 1.1rem;
  background: #fff;
  margin: 0;
  display: block;
  text-align: center;
}

.tax-product_cat ul.products li.product-category .count {
  color: #a4161a;
  background: rgba(164, 22, 26, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  margin-left: 5px;
  font-family: 'Lato', sans-serif;
}

/* =============================================================
   CHECKOUT PAGE - PREMIUM REDESIGN
   Targets WooCommerce Block Checkout (wc-block-checkout)
   ============================================================= */

/* Hide default page headers */
.woocommerce-checkout .entry-header,
.woocommerce-checkout .page-header,
body.woocommerce-checkout .page-title-wrapper,
.woocommerce-checkout .page-title {
  display: none !important;
}

body.woocommerce-checkout {
  background: #f8f9fa !important;
}

/* ── Custom Hero Header ── */
body.woocommerce-checkout #primary::before {
  content: 'AFREKENEN';
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 180px;
  background: #1a1a1a;
  color: #ffffff;
  font-family: 'Abel', sans-serif !important;
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 0;
  box-shadow: inset 0 -20px 40px rgba(0, 0, 0, 0.2);
}

.wc-block-checkout {
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding: 50px 20px 80px !important;
}

.wc-block-checkout__main {
  display: grid !important;
  grid-template-columns: 1fr 400px !important;
  gap: 40px !important;
  align-items: start !important;
}

@media (max-width: 1024px) {
  .wc-block-checkout__main {
    grid-template-columns: 1fr !important;
  }
}

/* Steps (Left Panel) */
.wc-block-components-checkout-step {
  background: #ffffff !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid #f0f0f0 !important;
  padding: 30px !important;
  margin-bottom: 30px !important;
}

.wc-block-components-checkout-step__title {
  font-family: 'Abel', sans-serif !important;
  font-size: 1.5rem !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #222 !important;
  margin-bottom: 20px !important;
  padding-bottom: 15px !important;
  border-bottom: 2px solid #a4161a !important;
}

/* Form Inputs */
.wc-block-components-text-input input,
.wc-block-components-combobox-control input,
.wc-block-components-validation-input input {
  padding: 12px 16px !important;
  border: 2px solid #eee !important;
  border-radius: 6px !important;
  font-family: 'Lato', sans-serif !important;
  font-size: 1rem !important;
  transition: all 0.3s ease !important;
  background: #fff !important;
}

.wc-block-components-text-input input:focus,
.wc-block-components-combobox-control input:focus,
.wc-block-components-validation-input input:focus {
  border-color: #a4161a !important;
  box-shadow: 0 0 0 3px rgba(164, 22, 26, 0.1) !important;
}

/* Payment Methods */
.wc-block-checkout__payment-method {
  border: 2px solid #eee !important;
  border-radius: 8px !important;
  padding: 15px !important;
  margin-bottom: 10px !important;
  transition: all 0.3s ease !important;
}

.wc-block-checkout__payment-method:hover {
  border-color: #a4161a !important;
}

/* Order Summary (Right Panel) */
.wc-block-checkout__sidebar {
  background: #ffffff !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08) !important;
  border: 2px solid #222 !important;
  position: sticky !important;
  top: 100px;
  padding: 30px !important;
}

.wc-block-components-order-summary {
  margin-bottom: 0 !important;
}

.wc-block-components-order-summary-item {
  padding: 15px 0 !important;
  border-bottom: 1px solid #f0f0f0 !important;
}

/* Checkout Button */
.wc-block-checkout__actions .wc-block-components-checkout-place-order-button {
  background: #a4161a !important;
  color: #ffffff !important;
  width: 100% !important;
  height: 60px !important;
  font-size: 1.2rem !important;
  font-family: 'Abel', sans-serif !important;
  letter-spacing: 0.15em !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 15px rgba(164, 22, 26, 0.25) !important;
  margin-top: 20px !important;
  text-transform: uppercase;
}

.wc-block-checkout__actions .wc-block-components-checkout-place-order-button:hover {
  background: #8a1216 !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(164, 22, 26, 0.4) !important;
}

/* Trust markers */
.wc-block-checkout__sidebar::after {
  content: '🔒 Veilig & Versleuteld  •  ✅ A-Merk Kwaliteit  •  🚚 Snelle Levering';
  display: block;
  text-align: center;
  margin-top: 25px;
  font-size: 0.8rem;
  color: #666;
  font-family: 'Lato', sans-serif;
  letter-spacing: 0.05em;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

/* FIX SQUISHED THEME CONTAINERS */
body.woocommerce-cart .site-content .container {
  max-width: 1320px !important;
  width: 100% !important;
}

body.woocommerce-cart .entry-content>.wp-block-woocommerce-cart {
  max-width: 1200px !important;
  margin: 0 auto !important;
  width: 100% !important;
}

body.woocommerce-cart .wc-block-cart-items table {
  display: table !important;
  width: 100% !important;
}

body.woocommerce-cart .wc-block-cart-item {
  display: table-row !important;
}

body.woocommerce-cart .wc-block-cart-item>td {
  display: table-cell !important;
  vertical-align: middle !important;
}


.wp-block-woocommerce-filled-cart-block {
  display: grid !important;
  grid-template-columns: 1.5fr 1fr !important;
  gap: 40px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  width: 100% !important;
  align-items: start !important;
  justify-content: center !important;
}

.wp-block-woocommerce-cart-items-block {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.wp-block-woocommerce-cart-totals-block {
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.wp-block-woocommerce-cart {
  max-width: 100% !important;
}

.site-content .container {
  max-width: 1320px !important;
}

.wc-block-cart-items td {
  padding: 10px !important;
  border: none !important;
}

/* =============================================================
   CART PAGE � PRECISE TEPETOOLS MATCH (CLASSIC WOOCOMMERCE)
   Matches Screenshot 1 (tepetools/cart.php) exactly.
   ============================================================= */

/* Page Background */
body.woocommerce-cart {
  background: #fafafa !important;
}

/* Container width fixes for the standard structure */
body.woocommerce-cart .site-content .container {
  max-width: 1320px !important;
  width: 100% !important;
}

body.woocommerce-cart .entry-content>.woocommerce {
  max-width: 1200px !important;
  margin: 0 auto !important;
  width: 100% !important;
}

/* Hide default themes page title/header */
.woocommerce-cart .entry-header,
.woocommerce-cart .page-header,
.woocommerce-cart .page-title-wrapper,
.woocommerce-cart .page-title {
  display: none !important;
}

/* Breadcrumb */
.woocommerce-cart .woocommerce-breadcrumb {
  text-align: center !important;
  font-family: 'Lato', sans-serif !important;
  font-size: 0.85rem !important;
  color: #777 !important;
  background: transparent !important;
  padding: 30px 20px 10px !important;
  margin: 0 auto !important;
  max-width: 1200px !important;
}

/* WINKELWAGEN Header */
.woocommerce-cart .woocommerce::before {
  content: 'WINKELWAGEN';
  display: block !important;
  text-align: center !important;
  font-family: 'Abel', sans-serif !important;
  font-size: clamp(2rem, 5vw, 2.5rem) !important;
  font-weight: 400 !important;
  letter-spacing: 2px !important;
  color: #1a1a1a !important;
  margin: 10px auto 40px !important;
  grid-column: 1 / -1;
  width: 100% !important;
}

/* -- Main CSS Layout -- */
.woocommerce-cart .woocommerce {
  display: grid !important;
  grid-template-columns: 1.6fr 1fr !important;
  gap: 30px !important;
  align-items: start !important;
}

/* -- Left Column: Items Card (orm.woocommerce-cart-form) -- */
.woocommerce-cart .woocommerce-cart-form {
  grid-column: 1 !important;
  background: #ffffff !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04) !important;
  padding: 30px 40px !important;
  border: none !important;
}

/* Add custom header "WINKELWAGENARTIKELEN" mimicking tepetools */
.woocommerce-cart .woocommerce-cart-form::before {
  content: 'WINKELWAGENARTIKELEN';
  display: block;
  font-family: 'Abel', sans-serif !important;
  font-size: 1.25rem !important;
  letter-spacing: 1px !important;
  color: #222 !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid #eee !important;
  margin-bottom: 25px !important;
  padding-bottom: 20px !important;
  text-align: center !important;
}

/* Cart Table Overrides */
.woocommerce-cart .woocommerce-cart-form table.shop_table {
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

.woocommerce-cart .woocommerce-cart-form th {
  display: none !important;
  /* Hide table headers to match Tepetools */
}

/* Inner Cart Item Grey Panels */
.woocommerce-cart .woocommerce-cart-form tr.cart_item {
  background: #fbfbfb !important;
  border-radius: 8px !important;
  padding: 20px !important;
  margin-bottom: 15px !important;
  border: 1px solid #f0f0f0 !important;
  display: grid !important;
  grid-template-columns: 140px 1fr 1fr 1fr !important;
  gap: 15px !important;
  align-items: center !important;
}

.woocommerce-cart .woocommerce-cart-form td {
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
}

/* Image */
.woocommerce-cart .woocommerce-cart-form td.product-thumbnail {
  grid-column: 1 !important;
  background: #ffffff !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
  padding: 10px !important;
  width: 120px !important;
  max-width: 120px !important;
  height: 120px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.woocommerce-cart .woocommerce-cart-form td.product-thumbnail img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 !important;
}

/* Product Name/Meta */
.woocommerce-cart .woocommerce-cart-form td.product-name {
  grid-column: 2 !important;
  font-family: 'Lato', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #333 !important;
  text-transform: uppercase !important;
  text-align: center !important;
}

.woocommerce-cart .woocommerce-cart-form td.product-name a {
  color: #333 !important;
  text-decoration: none !important;
}

/* Unit Price (Optional visual change, hiding it or restyling it) */
.woocommerce-cart .woocommerce-cart-form td.product-price {
  display: none !important;
}

/* Quantity */
.woocommerce-cart .woocommerce-cart-form td.product-quantity {
  grid-column: 3 !important;
  text-align: center !important;
}

.woocommerce-cart .woocommerce-cart-form td.product-quantity .quantity {
  margin: 0 auto !important;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: inline-block;
}

/* Subtotal */
.woocommerce-cart .woocommerce-cart-form td.product-subtotal {
  grid-column: 4 !important;
  font-family: 'Abel', sans-serif !important;
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  color: #981b1e !important;
  text-align: center !important;
}

/* Product Remove */
.woocommerce-cart .woocommerce-cart-form td.product-remove {
  display: none !important;
  /* Hide default X */
}

/* Coupon row inside table form */
.woocommerce-cart .woocommerce-cart-form tr.actions {
  display: flex !important;
  justify-content: space-between;
  padding: 20px 0 0 !important;
  background: transparent !important;
  border: none !important;
}

.woocommerce-cart .woocommerce-cart-form tr.actions .coupon {
  display: flex;
  gap: 10px;
}

/* Update Cart Button inside actions */
.woocommerce-cart button[name="update_cart"] {
  background: #f1f1f1 !important;
  color: #333 !important;
  font-family: 'Lato', sans-serif;
  border-radius: 6px;
  padding: 10px 20px;
  border: none;
}

.woocommerce-cart button[name="update_cart"]:hover {
  background: #e2e2e2 !important;
}


/* -- Right Column: Totals (.cart-collaterals) -- */
.woocommerce-cart .cart-collaterals {
  grid-column: 2 !important;
  width: 100% !important;
}

.woocommerce-cart .cart_totals {
  background: #ffffff !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04) !important;
  padding: 30px 40px !important;
  width: 100% !important;
  float: none !important;
  position: sticky !important;
  top: 40px !important;
}

/* BESTELOVERZICHT Header */
.woocommerce-cart .cart_totals h2 {
  font-family: 'Abel', sans-serif !important;
  font-size: 1.25rem !important;
  letter-spacing: 1px !important;
  color: #222 !important;
  text-transform: uppercase !important;
  padding: 0 0 20px !important;
  border-bottom: 1px solid #eee !important;
  text-align: center !important;
  margin-bottom: 20px !important;
}

/* Totals Table */
.woocommerce-cart .cart_totals table {
  width: 100% !important;
  border: none !important;
  margin: 0 !important;
}

.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td {
  padding: 15px 0 !important;
  border-bottom: 1px dotted #e4e4e4 !important;
  font-family: 'Lato', sans-serif !important;
  font-size: 0.95rem !important;
  background: transparent !important;
  border-top: none !important;
}

.woocommerce-cart .cart_totals table th {
  color: #888 !important;
  font-weight: 400 !important;
}

.woocommerce-cart .cart_totals table td {
  text-align: right !important;
  color: #333 !important;
  font-weight: 700 !important;
}

/* Order Total Row */
.woocommerce-cart .cart_totals table tr.order-total th,
.woocommerce-cart .cart_totals table tr.order-total td {
  border-top: 2px solid #981b1e !important;
  border-bottom: none !important;
  padding-top: 25px !important;
  padding-bottom: 10px !important;
}

.woocommerce-cart .cart_totals table tr.order-total th {
  font-weight: 700 !important;
  font-size: 1.2rem !important;
  color: #333 !important;
}

.woocommerce-cart .cart_totals table tr.order-total td strong .amount {
  font-family: 'Abel', sans-serif !important;
  color: #981b1e !important;
  font-size: 1.6rem !important;
  font-weight: 700 !important;
}

/* -- Checkout Button -- */
.woocommerce-cart .wc-proceed-to-checkout {
  padding: 25px 0 0 !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: block !important;
  width: 100% !important;
  background: #a91f24 !important;
  color: #ffffff !important;
  padding: 18px !important;
  border-radius: 6px !important;
  font-family: 'Lato', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 4px 12px rgba(169, 31, 36, 0.2) !important;
  transition: all 0.3s ease !important;
  text-align: center !important;
  border: none !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  background: #8b181c !important;
  transform: translateY(-2px) !important;
}

/* Trust Markers under button */
.woocommerce-cart .wc-proceed-to-checkout::after {
  content: '?? Veilig afrekenen  �  ?? Snelle levering  �  ? Topkwaliteit';
  display: block;
  text-align: center;
  margin-top: 18px;
  font-size: 0.75rem;
  color: #999;
  font-family: 'Lato', sans-serif;
  letter-spacing: 0.05em;
  line-height: 1.8;
}

/* Secondary Button (VERDER WINKELEN) */
.woocommerce-cart .cart-collaterals::after {
  content: 'VERDER WINKELEN';
  display: block;
  text-align: center;
  margin-top: 25px;
  padding: 16px;
  border: 2px solid #a91f24;
  border-radius: 6px;
  color: #a91f24;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.woocommerce-cart .cart-collaterals:hover::after {
  background: #fdf2f2;
}

/* -- Mobile Layout -- */
@media (max-width: 1024px) {
  .woocommerce-cart .woocommerce {
    grid-template-columns: 1fr !important;
  }

  .woocommerce-cart .woocommerce-cart-form,
  .woocommerce-cart .cart-collaterals {
    grid-column: 1 !important;
  }

  .woocommerce-cart .cart_totals {
    position: static !important;
  }
}

@media (max-width: 600px) {
  .woocommerce-cart .woocommerce-cart-form tr.cart_item {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    padding: 15px !important;
  }

  .woocommerce-cart .woocommerce-cart-form td.product-thumbnail {
    margin: 0 auto 15px !important;
  }

  .woocommerce-cart .woocommerce-cart-form td {
    grid-column: 1 !important;
    text-align: center !important;
    margin-bottom: 10px !important;
  }
}