/* CSS Variables */
:root {
	--color-blue: #3A59A6;
	--color-blue-dark: #203669;
	--color-silver: #f5f5f7;
}

/* Base CSS used with Tailwind CDN */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { border-radius: 1rem; }
a { text-decoration: none; }
.border-black\/5 { border-color: rgba(0,0,0,.05); }
.bg-silver { background-color: var(--color-silver); }
.text-ink { color: #111111; }

/* Product search form (header) */
header .woocommerce-product-search .search-field { font-size: 0.875rem; padding: 0.5rem 1rem; border-color: rgba(0,0,0,.05); border-width: 1px; border-radius: 5rem; }
header .woocommerce-product-search button[type="submit"] { font-size: 0.875rem; }

/* Logo */
.logo svg {
    width: 10rem;
    height: auto;
}

/* Swiper styling */
.swiper-button-disabled { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity 0.5s ease; }

/* === Mega Menu Layout === */
.mega-menu-layout {
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    background: #fff;
    padding: 20px;
    border-top: 2px solid #eee;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 999;
    opacity: 0;
}

.has-mega-menu a.menu-link svg {
    transition: transform .5s ease;
}

.has-mega-menu a.menu-link:hover svg {
    transform: rotate(180deg);
}

.has-mega-menu.open a.menu-link svg {
    transform: rotate(180deg);
}

.has-mega-menu.open .mega-menu-layout {
  display: block;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Default mobile/tablet layout: one column */
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    justify-content: start;
    gap: 6rem;
}

/* Desktop >= 1280px: multi-column layout */
@media (min-width: 1280px) {
  .mega-menu-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 6rem;
  }
}

.mega-menu-row {
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 1rem;
}

.mega-menu-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mega-menu-layout .mega-menu-column-title {
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: .5rem;
}

@media (max-width: 1279px) {
    .mega-menu-layout .mega-menu-column-title {
        font-size: 1rem;
        font-weight: normal;
    }
}

.mega-menu-layout .mega-menu-image {
    width: 100%;
    height: auto;
    border-radius: .5rem;
    background-color: #f5f5f5;
}

.mega-menu-layout .mega-menu-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

.mega-menu-layout .mega-menu-links {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.mega-menu-layout .mega-menu-link {
  position: relative;
  padding-left: 0.75rem;
  transition: transform 0.25s ease;
  display: inline-block;
}

.mega-menu-layout .mega-menu-link::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  opacity: 0;
  color: var(--color-blue);
  font-size: 1rem;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mega-menu-layout .mega-menu-link:hover {
  transform: translateX(4px);
  color: var(--color-blue);
}

.mega-menu-layout .mega-menu-link:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}


/* =========================================================
   MOBILE + TABLETS (0–1279px)
   ========================================================= */

@media (max-width: 1279px) {

  /* Mega menu behaves like mobile (no hover) */
  .mega-menu-layout {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    box-shadow: none !important;
    padding: 1.25rem 0;
  }

  .mega-menu-layout .mega-menu-grid {
      gap: 1rem;
  }

  .mega-menu-layout .mega-menu-row {
      padding: 0 !important;
  }

  .mega-menu-layout .mega-menu-column {
      border-bottom: 1px solid #e5e7eb;
      padding-bottom: 1rem;
  }

  .mega-menu-layout .mega-menu-column:last-of-type {
      border-bottom: none;
      padding-bottom: 0;
  }

  /* Remove desktop arrow spacing */
  .has-mega-menu > .mega-menu-item-wrapper > a::after {
      display: none !important;
  }

  /* Mobile vertical menu layout */
  #menu-mobile-holder #menu-base {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  #menu-mobile-holder #menu-base > li {
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,.08);
  }

  #menu-mobile-holder .menu-link {
    display: block;
    width: 100%;
    padding: 14px 0;
    font-size: 1rem;
  }

  #menu-mobile-holder .menu-link::after {
    display: none;
  }

  /* Overlay active on mobile/tablet */
  body:has(.has-mega-menu.open) .mega-menu-overlay {
      display: block;
      opacity: 1;
      visibility: visible;
  }
}


/* =========================================================
   MOBILE OVERLAY
   ========================================================= */

.mega-menu-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 40;
    display: none;
}


/* =========================================================
   HAMBURGER MENU ANIMATION
   ========================================================= */

.hamburger-lines {
  width: 24px;
  height: 18px;
  position: relative;
}

.hamburger-lines .line {
  display: block;
  width: 100%;
  height: 2px;
  background: #111;
  position: absolute;
  left: 0;
  transition: transform .25s ease, opacity .25s ease;
}

.hamburger-lines .top { top: 0; }
.hamburger-lines .middle { top: 8px; }
.hamburger-lines .bottom { bottom: 0; }

.hamburger-active .top {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-active .middle {
  opacity: 0;
}

.hamburger-active .bottom {
  transform: translateY(-8px) rotate(-45deg);
}

/* Body no scroll */
.body-no-scroll {
    overflow: hidden;
    height: 100vh;
}

/* Shop filters */
.range-input-thumb {
    -webkit-appearance: none;
    background: none;
}

.range-input-thumb::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--color-blue);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
}

.range-input-thumb::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--color-blue);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
}

/* Product single styling */
.single-product.woocommerce #content div.product div.summary,
.single-product.woocommerce div.product div.summary,
.single-product.woocommerce-page #content div.product div.summary,
.single-product.woocommerce-page div.product div.summary {
    float: unset;
    width: 100%;
    clear: unset;
}

/* Gallery */
/* Default thumbnails */
.product-thumb-slider .swiper-slide {
    opacity: 0.6;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.product-thumb-slider .swiper-slide:hover {
    opacity: 1;
}

/* Active thumbnail (Swiper adds this class automatically) */
.product-thumb-slider .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--color-blue);
}

.swiper-button-next svg path,
.swiper-button-prev svg path {
    fill: var(--color-blue);
}

/* No Scroll bar utility class */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Notice styling */
.wc-notices-wrapper a.button,
.wc-notices-wrapper a.wc-forward {
    background-color: rgb(22, 101, 52);
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
}

.wc-notices-wrapper a.button:hover {
    background-color: rgb(13, 58, 30);
    color: white;
}

/* --- REVIEW FORM WRAPPER --- */
#review-form-wrapper {
    margin-top: 1.5rem;
}

/* --- TITEL --- */
#respond .comment-reply-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827; /* gray-900 */
    margin-bottom: 1rem;
    display: block;
}

/* --- LABELS --- */
#respond label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151; /* gray-700 */
    margin-bottom: 0.25rem;
    display: block;
}

/* --- INPUTS + TEXTAREA --- */
#respond input[type="text"],
#respond input[type="email"],
#respond textarea {
    width: 100%;
    border: 1px solid #d1d5db; /* gray-300 */
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: #111827;
    font-size: 1rem;
    outline: none;
    transition: box-shadow 0.2s, border-color 0.2s;
}

#respond input:focus,
#respond textarea:focus {
    border-color: #3b82f6; /* blue-500 */
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3); /* blue ring */
}

/* --- SUBMIT BUTTON --- */
#respond input.submit {
    width: 100%;
    background-color: var(--color-blue) !important;
    color: white !important;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

#respond input.submit:hover {
    background-color: var(--color-blue-dark) !important;
}

/* --- STAR RATING WRAPPER --- */
.comment-form-rating .stars {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

/* --- STAR BASE STYLE --- */
.comment-form-rating .stars a {
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db; /* gray-300 */
    transition: color 0.2s;
    cursor: pointer;
    font-size: 0; /* hide default text */
    text-decoration: none;
}

/* Add yellow star */
.comment-form-rating .stars a::before {
    content: "★";
    font-size: 28px;
    line-height: 1;
}

/* Hover effect */
.comment-form-rating .stars a:hover {
    color: #facc15; /* yellow-400 */
}

/* Hover propagate backwards (visual fill) */
.comment-form-rating .stars a:hover ~ a {
    color: #d1d5db; /* reset stars to gray */
}

/* WooCommerce assigns .active to selected stars */
.comment-form-rating .stars a.active {
    color: #facc15; /* yellow-400 */
}

/* Hide select box */
.comment-form-rating select {
    display: none;
}

@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-2px); }
  40% { transform: translateX(2px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
  100% { transform: translateX(0); }
}

.remove-item-btn:hover {
  animation: shake 0.35s ease-in-out;
}

/* ============================================================
   PAYMENT SECTION — POLISHED THEME MATCH (FINAL)
   ============================================================ */

/* Outer payment wrapper */
.woocommerce-checkout-payment,
#payment {
    background: var(--color-silver) !important;
    padding: 22px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0;
}

/* Reset WC purple tint anywhere */
.woocommerce-checkout-payment *,
#payment * {
    background-image: none !important;
    box-shadow: none;
}

/* Payment method wrapper */
#payment .wc_payment_method {
    background: #ffffff;
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 16px;
    transition: all .25s ease;
    position: relative;
}

/* Add subtle hover highlight */
#payment .wc_payment_method:hover {
    border-color: var(--color-blue);
    cursor: pointer;
}

/* ACTIVE payment method styling */
#payment .wc_payment_method input[type="radio"]:checked + label {
    color: var(--color-blue-dark);
}

#payment .wc_payment_method input[type="radio"]:checked + label::before {
    background: var(--color-blue) !important;
    border-color: var(--color-blue) !important;
}

/* Turn active payment method border blue */
#payment .wc_payment_method input[type="radio"]:checked + label,
#payment .wc_payment_method input[type="radio"]:checked ~ .payment_box {
    border-color: var(--color-blue);
}

/* Hide WooCommerce purple arrow/triangle */
.payment_box::before {
    display: none !important;
}

/* Payment info text box */
#payment .payment_box {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    padding: 14px 16px;
    border-radius: 10px;
    margin-top: 12px;
    color: #4b5563;
    font-size: 14px;
}

/* Remove harsh dividing line (the light grey HR) */
#payment hr {
    display: none;
}

/* Privacy + terms box */
.woocommerce-terms-and-conditions-wrapper {
    margin-top: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
}

/* Checkbox spacing fix */
.woocommerce-terms-and-conditions-wrapper label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    line-height: 1.4;
}

/* Place order button — remains excellent */
#place_order {
    width: 100%;
    margin-top: 18px;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
    background: var(--color-blue) !important;
    color: #ffffff !important;
    border-radius: 10px;
    border: none;
    transition: background-color .2s ease;
}

#place_order:hover {
    background: var(--color-blue-dark) !important;
}

/* WooCommerce Payment methods */
.woocommerce-checkout .wc_payment_methods.payment_methods.methods {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 0rem !important;
}

@media (max-width: 768px) {
    /* WooCommerce Payment methods */
    .woocommerce-checkout .wc_payment_methods.payment_methods.methods {
        display: flex;
        flex-direction: column;
        gap: .5rem;
        padding: .5rem !important;
    }
}

.woocommerce-checkout #payment ul.payment_methods::before {
    content: '';
    display: none;
}

/* Hide default WooCommerce radio and its purple pseudo-element */
.wc_payment_method input.input-radio {
    opacity: 0;
    position: absolute;
    left: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.wc_payment_method label::before {
    content: none !important;
}

/* Wrap the label in a relative container */
.wc_payment_method label {
    position: relative;
    padding-left: 32px; /* space for custom radio */
    display: block;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    color: #1f2937;
}

/* Outer ring */
.wc_payment_method label::after {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #cbd5e1; /* neutral light grey */
    background: #fff;
    transition: all 0.25s ease;
}

/* When input is checked → blue dot + blue border */
.wc_payment_method input.input-radio:checked + label::after {
    border-color: var(--color-blue);
    background: radial-gradient(circle, var(--color-blue) 45%, #fff 46%);
}

/* Blue border highlight when selected */
.wc_payment_method input.input-radio:checked ~ .payment_box,
.wc_payment_method input.input-radio:checked + label {
    border-color: var(--color-blue) !important;
}

/* Entire method card gets a subtle blue glow */
.wc_payment_method input.input-radio:checked {
    outline: none;
}

.wc_payment_method input.input-radio:checked ~ .payment_box {
    box-shadow: 0 0 0 2px var(--color-blue)20;
}

/* Light hover to make the method feel clickable */
.wc_payment_method:hover label::after {
    border-color: var(--color-blue);
}

.wc_payment_method {
    position: relative;
}

.wc_payment_method input.input-radio:checked ~ .payment_box,
.wc_payment_method input.input-radio:checked + label {
    background: #ffffff;
}

.wc_payment_method input.input-radio:checked + label::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--color-blue);
    border-radius: 4px;
}

/* ================================
   MOBILE — Full-width white cards
   ================================ */
@media (max-width: 768px) {

    /* Outer container: reduce padding so inner cards can breathe */
    .woocommerce-checkout-payment,
    #payment {
        padding: 10px !important;
        border-radius: 12px;
    }

    /* White payment method boxes go full-width */
    #payment .wc_payment_method {
        margin-left: -2px !important;
        margin-right: -2px !important;
        width: calc(100% + 4px);
        border-radius: 12px;
        padding: 16px 14px !important;
    }

    /* Payment description box */
    #payment .payment_box {
        padding: 12px 14px !important;
        border-radius: 10px;
    }

    /* Privacy box full width */
    .woocommerce-terms-and-conditions-wrapper {
        margin-left: -2px !important;
        margin-right: -2px !important;
        width: calc(100% + 4px);
        padding: 14px !important;
        border-radius: 12px;
    }

    /* Give space below the last card before the button */
    .woocommerce-terms-and-conditions-wrapper {
        margin-bottom: 16px !important;
    }

    /* Place order button stays full width */
    #place_order {
        width: 100%;
    }
}

form.checkout_coupon {
    display: block !important;
}

/* ─────────────────────────────── */
/* LOGIN WRAPPER */
/* ─────────────────────────────── */
#returning-customer {
    background: var(--color-silver);
    border-radius: 12px;
    padding: 16px;
}

#toggle-login {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

#toggle-login span:last-child {
    color: var(--color-blue);
    text-decoration: none;
    font-size: 0.95rem;
}

#toggle-login span:last-child:hover {
    opacity: 0.7;
}

/* ─────────────────────────────── */
/* LOGIN FORM BOX */
/* ─────────────────────────────── */
.woocommerce-form-login {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-top: 16px;
}

/* ─────────────────────────────── */
/* LABELS */
/* ─────────────────────────────── */
.woocommerce-form-login label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1f2937;
}

/* ─────────────────────────────── */
/* INPUTS */
/* ─────────────────────────────── */
#login-panel input.input-text,
#login-panel .password-input input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font-size: 0.95rem;
    transition: 0.2s ease;
}

#login-panel input.input-text:focus,
#login-panel .password-input input:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

/* ─────────────────────────────── */
/* RESPONSIVE FORM LAYOUT */
/* ─────────────────────────────── */
/* Mobile — alles onder elkaar */
#login-panel .form-row,
#login-panel .form-row-first,
#login-panel .form-row-last {
    width: 100% !important;
    float: none !important;
    display: block !important;
    margin-bottom: 14px !important;
}

/* Desktop — 2 kolommen met gap */
@media (min-width: 768px) {
    #login-panel .form-row-first,
    #login-panel .form-row-last {
        width: calc(50% - 0.75rem) !important;
        float: left !important;
    }

    #login-panel .form-row-first {
        margin-right: 1.5rem !important;
    }
}

/* ─────────────────────────────── */
/* CHECKBOX */
/* ─────────────────────────────── */
#login-panel .woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #444;
}

/* ─────────────────────────────── */
/* BUTTON */
/* ─────────────────────────────── */
#login-panel button.woocommerce-form-login__submit {
    background: var(--color-blue);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    width: 100%;
    transition: 0.2s ease;
    margin-top: 16px;
}

#login-panel button.woocommerce-form-login__submit:hover {
    background: var(--color-blue-dark);
}

/* ─────────────────────────────── */
/* LOST PASSWORD */
/* ─────────────────────────────── */
#login-panel .lost_password {
    text-align: center;
}

#login-panel .lost_password a {
    color: var(--color-blue);
    font-size: 0.9rem;
    text-decoration: none;
}

#login-panel .lost_password a:hover {
    opacity: 0.7;
}

/* Clean, minimal coupon toggle */
.woocommerce-form-coupon-toggle p {
    padding: 0;
    background: transparent;
    border: none;
}

.woocommerce-form-coupon-toggle span {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.woocommerce-form-coupon-toggle a.showcoupon {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-blue);
    text-decoration: none;
}

.woocommerce-form-coupon-toggle a.showcoupon:hover {
    opacity: 0.7;
}


.checkout_coupon.woocommerce-form-coupon {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wcpay-express-checkout-wrapper {
    margin-top: 1rem;
}