/**
 * WooCommerce Custom Styling
 *
 * Primair: #2aa9f8
 * Secundair: #204085
 * Font: Montserrat
 */

/* Pagination Styling */
.woocommerce-pagination ul.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-pagination .page-numbers li {
    list-style: none;
}

.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
}

.woocommerce-pagination .page-numbers a {
    color: #64748B;
    background-color: white;
    border: 1px solid #E2E8F0;
}

.woocommerce-pagination .page-numbers a:hover {
    color: white;
    background-color: #2aa9f8;
    border-color: #2aa9f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(42, 169, 248, 0.3);
}

.woocommerce-pagination .page-numbers span.current {
    color: white;
    background: linear-gradient(to right, #2aa9f8, #204085);
    border: none;
    box-shadow: 0 4px 6px rgba(42, 169, 248, 0.4);
}

.woocommerce-pagination .page-numbers .prev,
.woocommerce-pagination .page-numbers .next {
    background-color: #2aa9f8;
    color: white;
    border: none;
}

.woocommerce-pagination .page-numbers .prev:hover,
.woocommerce-pagination .page-numbers .next:hover {
    background-color: #204085;
}

/* Quantity Input */
.quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
}

.quantity input[type="number"] {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    -moz-appearance: textfield;
    appearance: textfield;
}

.quantity input[type="number"]::-webkit-outer-spin-button,
.quantity input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity input[type="number"]:focus {
    outline: none;
}

/* Single Product Quantity with Plus/Minus Buttons */
.qty-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-btn {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.qty-btn:active {
    transform: scale(0.95);
}

.quantity-wrapper {
    min-width: 140px;
}

/* Single product: qty compact houden en CTA eronder */
.single-product .summary form.cart {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.single-product .summary form.cart .quantity-wrapper {
    width: auto;
    display: inline-block;
}

.single-product .summary form.cart .quantity-wrapper > .flex,
.single-product .summary form.cart .quantity {
    display: inline-flex;
    width: auto;
}

.single-product .summary form.cart .qty,
.single-product .summary form.cart .qty-input {
    width: 72px; /* ~ 4.5rem */
    max-width: 88px;
    text-align: center;
}

.single-product .summary form.cart .single_add_to_cart_button {
    width: 100%;
}

.quantity .qty {
    padding: 0 8px;
}

/* Forms Styling */
.woocommerce form .form-row {
    margin-bottom: 1.5rem;
}

.woocommerce form .form-row label {
    display: block;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.2s ease;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    outline: none;
    border-color: #2aa9f8;
    box-shadow: 0 0 0 3px rgba(42, 169, 248, 0.1);
}

/* Checkout Payment */
.woocommerce-checkout #payment {
    background: white;
    border-radius: 12px;
    padding: 0;
    border: none;
}

.woocommerce-checkout #payment ul.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    border: none;
}

.woocommerce-checkout #payment ul.payment_methods li {
    margin-bottom: 0;
    padding: 16px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    margin-top: 12px;
    transition: all 0.2s ease;
    background: white;
}

.woocommerce-checkout #payment ul.payment_methods li:first-child {
    margin-top: 0;
}

.woocommerce-checkout #payment ul.payment_methods li:hover {
    border-color: #2aa9f8;
    background-color: #F0F9FF;
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method input[type="radio"]:checked + label {
    color: #2aa9f8;
    font-weight: 600;
}

.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    accent-color: #2aa9f8;
}

.woocommerce-checkout #payment ul.payment_methods li label {
    font-weight: 600;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Payment Method Images/Logos */
.woocommerce-checkout #payment ul.payment_methods li label img {
    max-height: 30px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

/* Pay. Plugin Styling */
.woocommerce-checkout #payment ul.payment_methods li.payment_method_paynl_payment_method label img,
.woocommerce-checkout #payment ul.payment_methods li[class*="payment_method_pay"] label img {
    max-height: 24px;
    border-radius: 4px;
}

/* Payment Box Description */
.woocommerce-checkout #payment .payment_box {
    background-color: #F8FAFC;
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
    border-left: 3px solid #2aa9f8;
}

.woocommerce-checkout #payment .payment_box p {
    margin: 0;
    color: #64748B;
    font-size: 14px;
}

.woocommerce-checkout #payment #place_order {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(to right, #2aa9f8, #204085);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(42, 169, 248, 0.4);
}

.woocommerce-checkout #payment #place_order:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(42, 169, 248, 0.5);
}

/* Order Review Table */
.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.woocommerce-checkout-review-order-table thead th {
    padding: 16px;
    background-color: #F8FAFC;
    border-bottom: 2px solid #E2E8F0;
    font-weight: 700;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
}

.woocommerce-checkout-review-order-table tbody td {
    padding: 16px;
    border-bottom: 1px solid #E2E8F0;
}

.woocommerce-checkout-review-order-table tfoot tr:last-child th,
.woocommerce-checkout-review-order-table tfoot tr:last-child td {
    padding: 16px;
    border-top: 2px solid #2aa9f8;
    font-weight: 700;
    font-size: 18px;
}

.woocommerce-checkout-review-order-table .order-total .text-2xl {
    color: #2aa9f8;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.woocommerce-checkout-review-order-table .order-total .text-2xl .woocommerce-Price-amount {
    color: inherit;
    font-size: 22px;
    font-weight: 700;
}

.woocommerce-checkout-review-order-table .order-total .text-2xl .includes_tax {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    opacity: 0.75;
}

.woocommerce-checkout-review-order-table .order-total .text-2xl .includes_tax .woocommerce-Price-amount {
    font-size: 14px;
    font-weight: 600;
    color: inherit;
}

.woocommerce-checkout-review-order-table .order-total .text-2xl .includes_tax span {
    display: inline;
    margin-right: 4px;
}

.woocommerce-cart .cart_totals .order-total .text-2xl {
    color: #2aa9f8;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.woocommerce-cart .cart_totals .order-total .text-2xl .woocommerce-Price-amount {
    color: inherit;
    font-size: 22px;
    font-weight: 700;
}

.woocommerce-cart .cart_totals .order-total .text-2xl .includes_tax {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    opacity: 0.75;
}

.woocommerce-cart .cart_totals .order-total .text-2xl .includes_tax .woocommerce-Price-amount {
    font-size: 14px;
    font-weight: 600;
    color: inherit;
}

.woocommerce-cart .cart_totals .order-total .text-2xl .includes_tax span {
    display: inline;
    margin-right: 4px;
}

/* Messages & Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 12px;
    border-left: 4px solid;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
}

.woocommerce-message {
    background-color: #ECFDF5;
    border-color: #10B981;
    color: #065F46;
}

.woocommerce-info {
    background-color: #EFF6FF;
    border-color: #2aa9f8;
    color: #1E40AF;
}

.woocommerce-error {
    background-color: #FEF2F2;
    border-color: #EF4444;
    color: #991B1B;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    display: none;
}

/* Product Cards on Archive */
.woocommerce ul.products li.product {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.woocommerce ul.products li.product .button {
    background-color: #2aa9f8;
    color: white;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.2s ease;
}

.woocommerce ul.products li.product .button:hover {
    background-color: #204085;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(32, 64, 133, 0.3);
}

/* Price Styling */
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price {
    color: #2aa9f8;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins,
.woocommerce ul.products li.product .price ins {
    text-decoration: none !important;
    color: #2aa9f8;
    font-weight: 700;
}

/* Extra defensief: nooit onderstreep in/onder prijs */
.woocommerce div.product .summary .price,
.woocommerce div.product .summary .price *,
.woocommerce .price,
.woocommerce .price * {
    text-decoration: none !important;
    border-bottom: 0 !important;
}

.woocommerce div.product .summary .price a,
.woocommerce div.product .summary .price a * {
    text-decoration: none !important;
    border-bottom: 0 !important;
}

.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
    opacity: 0.6;
    text-decoration: line-through;
}

/* Remove underline from ins tag (new price) */
.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins,
ins {
    text-decoration: none !important;
}

#product-price-display del {
    text-decoration: line-through !important;
}

/* Sale Badge */
.woocommerce span.onsale {
    background: linear-gradient(to right, #2aa9f8, #204085);
    color: white;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    border-radius: 8px;
    padding: 6px 12px;
}

/* Breadcrumb */
.woocommerce-breadcrumb {
    font-family: 'Montserrat', sans-serif;
    color: #64748B;
    margin-bottom: 24px;
}

.woocommerce-breadcrumb a {
    color: #2aa9f8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.woocommerce-breadcrumb a:hover {
    color: #204085;
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    border-bottom: 2px solid #E2E8F0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 16px 24px;
    color: #64748B;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: #2aa9f8;
    border-bottom-color: #2aa9f8;
}

/* Hide WooCommerce default variation details (price/stock under selector) */
.woocommerce div.product .woocommerce-variation.single_variation {
    display: none !important;
}

/* Product tabs panel spacing */
.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel {
    padding: 32px 40px;
    background-color: #ffffff;
}

.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel .prose,
.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel .prose * {
    max-width: none;
}

.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel p,
.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel ul,
.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel ol {
    margin-bottom: 1.25rem;
}

.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel ul,
.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel ol {
    padding-left: 1.5rem;
}

.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel h2,
.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel h3,
.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel h4 {
    margin-top: 1.75rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .woocommerce div.product .woocommerce-tabs ul.tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        border-bottom: none;
        margin: 0 1.25rem;
        padding: 0 0 0.5rem;
        gap: 0.75rem;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar {
        display: none;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs li {
        flex: 0 0 auto;
        margin: 0;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs li a {
        padding: 12px 18px;
        border-radius: 9999px;
        border: 1px solid transparent;
        background-color: #f1f5f9;
        margin-bottom: 0;
        white-space: nowrap;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
    .woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
        background-color: #ffffff;
        border-color: #2aa9f8;
        box-shadow: 0 6px 18px rgba(42, 169, 248, 0.18);
    }

    .woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel {
        padding: 24px 20px;
    }
}

/* My Account Navigation */
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation ul li {
    margin-bottom: 8px;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 12px 16px;
    color: #64748B;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: #EFF6FF;
    color: #2aa9f8;
}

/* Custom Product Info */
.custom-product-info {
    animation: fadeInUp 0.3s ease-out;
}

/* Product Gallery Improvements */
.woocommerce-product-gallery {
    border-radius: 16px;
    overflow: hidden;
}

.woocommerce-product-gallery__image {
    border-radius: 16px;
}

/* Disable Zoom Cursor */
.woocommerce-product-gallery__image a {
    cursor: default !important;
}

/* Hide Zoom Icon */
.woocommerce-product-gallery__trigger {
    display: none !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .woocommerce-pagination .page-numbers a,
    .woocommerce-pagination .page-numbers span {
        min-width: 36px;
        height: 36px;
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .quantity-wrapper {
        width: 100%;
    }
}
