/*
Theme Name: Cyclefix London
Theme URI: https://cyclefixlondon.co.uk
Author: Cyclefix London
Author URI: https://cyclefixlondon.co.uk
Description: Custom WordPress theme for Cyclefix London - Professional bicycle repair and servicing in London.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cyclefix
Tags: bicycle, repair, woocommerce, custom-theme
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* Container centering */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   SHOP CATEGORY NAVIGATION BAR
   Fully responsive for all devices
   ======================================== */

/* Base nav container */
.shop-category-nav {
    -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
    scrollbar-width: none; /* Hide scrollbar Firefox */
    -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
    position: relative;
    z-index: 100;
    overflow: visible !important; /* Allow dropdowns to overflow */
}

.shop-category-nav::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

/* Category list */
.shop-cat-list {
    margin: 0;
    padding-left: 0;
}

/* Individual category item */
.shop-cat-item {
    position: relative;
}

/* Category link base */
.shop-cat-link {
    position: relative;
    border: 1px solid transparent;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
    touch-action: manipulation; /* Improve touch response */
    user-select: none;
    -webkit-user-select: none;
}

/* Non-active hover state */
.shop-cat-link:not(.is-active):hover {
    border-color: rgba(0, 159, 227, 0.3);
}

/* Make icon white on hover (prevents blue icons disappearing on blue hover background) */
.shop-cat-link:not(.is-active):not(.shop-cat-sale):hover svg {
    stroke: white !important;
}

/* Active state with animation */
.shop-cat-link.is-active {
    animation: pulse-subtle 2s infinite;
}

@keyframes pulse-subtle {
    0%, 100% { box-shadow: 0 4px 6px -1px rgba(0, 159, 227, 0.3); }
    50% { box-shadow: 0 4px 12px -1px rgba(0, 159, 227, 0.4); }
}

/* Dropdown arrow rotation on hover */
.shop-cat-item:hover .dropdown-arrow,
.shop-cat-item.is-open .dropdown-arrow {
    transform: rotate(180deg);
}

/* ========================================
   DROPDOWN STYLES
   ======================================== */
.shop-cat-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 200px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 9999;
    margin-top: 8px;
    overflow: hidden;
}

.dropdown-inner {
    padding: 8px 0;
    max-height: 60vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Desktop hover behavior */
@media (hover: hover) and (pointer: fine) {
    .shop-cat-item:hover .shop-cat-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

/* Touch device - toggle on tap via JS */
.shop-cat-item.is-open .shop-cat-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Prevent dropdown from closing when moving mouse to it */
.shop-cat-item.has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
}

/* Dropdown links */
.dropdown-link {
    display: block;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
}

.dropdown-link:hover {
    background: #009FE3;
    color: white;
    border-left-color: #0B1120;
}

/* ========================================
   MOBILE STYLES (< 640px)
   ======================================== */
@media (max-width: 639px) {
    .shop-category-nav {
        padding: 0 4px;
    }
    
    /* Horizontal scroll on mobile */
    .shop-cat-list {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 4px;
    }
    
    .shop-cat-item {
        scroll-snap-align: start;
    }
    
    /* Hide text labels on very small screens, show only icons */
    .shop-cat-link .cat-label {
        display: none;
    }
    
    .shop-cat-link {
        padding: 10px 12px;
    }
    
    /* Hide dropdown arrow on mobile */
    .dropdown-arrow {
        display: none;
    }
    
    /* Full-width dropdown on mobile */
    .shop-cat-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0 !important;
        right: 0;
        transform: translateX(0) translateY(100%);
        width: 100%;
        min-width: 100%;
        border-radius: 20px 20px 0 0;
        margin-top: 0;
        max-height: 70vh;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    }
    
    .shop-cat-item.is-open .shop-cat-dropdown {
        transform: translateX(0) translateY(0);
    }
    
    .dropdown-inner {
        padding: 20px 0 env(safe-area-inset-bottom, 20px);
    }
    
    .dropdown-link {
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* ========================================
   SMALL MOBILE (< 375px) - iPhone SE etc
   ======================================== */
@media (max-width: 374px) {
    .shop-cat-link {
        padding: 8px 10px;
    }
    
    .shop-cat-link svg {
        width: 16px;
        height: 16px;
    }
}

/* ========================================
   TABLET PORTRAIT (640px - 767px)
   ======================================== */
@media (min-width: 640px) and (max-width: 767px) {
    .shop-cat-link .cat-label {
        display: inline;
        font-size: 9px;
    }
    
    .shop-cat-link {
        padding: 8px 12px;
    }
    
    .shop-cat-dropdown {
        min-width: 180px;
    }
}

/* ========================================
   TABLET LANDSCAPE (768px - 1023px)
   ======================================== */
@media (min-width: 768px) and (max-width: 1023px) {
    .shop-cat-link .cat-label {
        display: inline;
        font-size: 10px;
    }
    
    .shop-cat-link {
        padding: 10px 14px;
    }
    
    .shop-cat-dropdown {
        min-width: 200px;
    }
    
    .dropdown-link {
        padding: 12px 16px;
        font-size: 12px;
    }
}

/* ========================================
   DESKTOP (1024px - 1279px)
   ======================================== */
@media (min-width: 1024px) and (max-width: 1279px) {
    .shop-cat-link {
        padding: 10px 16px;
    }
    
    .shop-cat-link .cat-label {
        font-size: 10px;
    }
}

/* ========================================
   LARGE DESKTOP (1280px+)
   ======================================== */
@media (min-width: 1280px) {
    .shop-cat-link {
        padding: 12px 20px;
    }
    
    .shop-cat-link .cat-label {
        font-size: 11px;
    }
    
    .shop-cat-dropdown {
        min-width: 220px;
    }
    
    .dropdown-link {
        padding: 12px 20px;
        font-size: 12px;
    }
}

/* ========================================
   ACCESSIBILITY & REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    .shop-cat-link,
    .shop-cat-dropdown,
    .dropdown-arrow,
    .dropdown-link {
        transition: none;
    }
    
    .shop-cat-link.is-active {
        animation: none;
    }
}

/* Focus states for keyboard navigation */
.shop-cat-link:focus-visible {
    outline: 2px solid #009FE3;
    outline-offset: 2px;
}

.dropdown-link:focus-visible {
    outline: 2px solid #009FE3;
    outline-offset: -2px;
    background: #e0f2fe;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .shop-cat-link {
        border: 2px solid currentColor;
    }
    
    .shop-cat-dropdown {
        border: 2px solid #000;
    }
}

/* ========================================
   END SHOP CATEGORY NAV
   ======================================== */

/* ========================================
   WOOCOMMERCE CHECKOUT STYLING
   ======================================== */

/* Reset any conflicting styles */
.woocommerce-checkout,
.woocommerce-checkout .woocommerce,
body.woocommerce-checkout {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    float: none !important;
    position: relative !important;
    transform: none !important;
}

/* Main checkout wrapper */
.cyclefix-checkout-wrapper {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 2rem 1.5rem 4rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.cyclefix-checkout-wrapper .woocommerce-checkout-content {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Checkout layout */
.woocommerce form.checkout,
.woocommerce-page form.checkout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    align-items: start;
}

/* Keep summary centered instead of pinned to the right */
.woocommerce-checkout .woocommerce-checkout-review-order {
    position: static;
}

/* Two-column layout for checkout */
.woocommerce form.checkout .col2-set {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 0;
    order: 1;
}

.woocommerce form.checkout .col2-set .col-1,
.woocommerce form.checkout .col2-set .col-2 {
    width: 100%;
    float: none;
}

.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
    order: 2;
}

@media (max-width: 768px) {
    .woocommerce form.checkout,
    .woocommerce-page form.checkout {
        grid-template-columns: 1fr;
    }
    .woocommerce-checkout .woocommerce-checkout-review-order {
        position: static;
    }
    .woocommerce form.checkout .col2-set {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Billing/Shipping fields container */
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields {
    background: #ffffff;
    padding: 2rem;
    border-radius: 1.5rem;
    border: 2px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    max-width: 880px;
    margin: 0 auto;
}

/* Order summary + payment styling */
.woocommerce-checkout #order_review,
.woocommerce-checkout .woocommerce-checkout-payment,
.woocommerce-checkout .woocommerce-form-coupon {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 2px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.woocommerce-checkout .woocommerce-form-coupon {
    margin-top: 1rem;
}

/* Form fields */
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout input[type="number"],
.woocommerce-checkout select,
.woocommerce-checkout textarea,
.woocommerce-checkout .select2-container--default .select2-selection--single {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    color: #0B1120;
    height: auto;
    line-height: 1.5;
}

.woocommerce-checkout .select2-container--default .select2-selection--single {
    height: auto;
    min-height: 52px;
    display: flex;
    align-items: center;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #0B1120;
    line-height: 1.5;
    padding-left: 0;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 10px;
}

.woocommerce-checkout input:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout .select2-container--default.select2-container--focus .select2-selection--single {
    outline: none;
    border-color: #009FE3;
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.15);
}

/* Labels */
.woocommerce-checkout label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #0B1120;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Inter', sans-serif;
}

.woocommerce-checkout label .required {
    color: #009FE3;
    font-weight: 900;
}

.woocommerce-checkout label .optional {
    color: #9ca3af;
    font-weight: 400;
    text-transform: none;
    font-size: 0.7rem;
}

/* Form rows */
.woocommerce-checkout .form-row {
    margin-bottom: 1.25rem;
    padding: 0;
    width: 100%;
    float: none;
}

.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
    width: 48%;
    display: inline-block;
}

.woocommerce-checkout .form-row-first {
    float: left;
}

.woocommerce-checkout .form-row-last {
    float: right;
}

.woocommerce-checkout .form-row-wide {
    clear: both;
    width: 100%;
}

@media (max-width: 500px) {
    .woocommerce-checkout .form-row-first,
    .woocommerce-checkout .form-row-last {
        width: 100%;
        float: none;
        display: block;
    }
}

/* Section headings */
.woocommerce-checkout h3,
.woocommerce-checkout h3#order_review_heading {
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #0B1120;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #009FE3;
    font-style: italic;
    font-family: 'Inter', sans-serif;
}

/* Order review section */
.woocommerce-checkout #order_review,
.woocommerce-checkout #order_review_heading {
    clear: both;
}

.woocommerce-checkout #order_review {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 1rem;
    margin-top: 2rem;
    border: 1px solid #e5e7eb;
}

/* Payment step: #order_review is the GRID container — strip all box styling */
body.cfl-step-payment.woocommerce-checkout #order_review {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin-top: 0 !important;
    border: none !important;
    box-shadow: none !important;
    max-width: 1100px !important;
}

/* Order review table */
.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 1rem 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    font-size: 0.9rem;
}

.woocommerce-checkout-review-order-table thead th {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: #6b7280;
    background: transparent;
    padding-bottom: 0.75rem;
}

.woocommerce-checkout-review-order-table tbody .product-name {
    font-weight: 600;
    color: #0B1120;
}

.woocommerce-checkout-review-order-table tbody .product-name .product-quantity {
    color: #009FE3;
    font-weight: 700;
}

.woocommerce-checkout-review-order-table tfoot th {
    font-weight: 600;
    color: #374151;
    text-transform: none;
    font-size: 0.9rem;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    font-size: 1.25rem;
    font-weight: 900;
    border-bottom: none;
    padding-top: 1.5rem;
    color: #0B1120;
}

.woocommerce-checkout-review-order-table .order-total .woocommerce-Price-amount {
    color: #009FE3;
}

/* Place order button */
.woocommerce-checkout #place_order {
    display: block;
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #009FE3 0%, #0077b3 100%);
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.9rem;
    font-style: italic;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 15px rgba(0, 159, 227, 0.4);
}

.woocommerce-checkout #place_order:hover {
    background: linear-gradient(135deg, #0B1120 0%, #1e293b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 17, 32, 0.4);
}

/* Payment methods */
.woocommerce-checkout #payment {
    background: transparent;
    padding: 0;
    margin-top: 1.5rem;
}

/* Payment step: #payment is a styled grid item — no margin offset */
body.cfl-step-payment.woocommerce-checkout #payment {
    margin: 0 !important;
    background: #fff !important;
    border-radius: 1.25rem !important;
    overflow: hidden !important;
}

.woocommerce-checkout .wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.woocommerce-checkout .wc_payment_methods li {
    list-style: none;
}

.woocommerce-checkout .wc_payment_method {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all 0.2s;
}

.woocommerce-checkout .wc_payment_method:hover,
.woocommerce-checkout .wc_payment_method.payment_method_stripe {
    border-color: #009FE3;
}

.woocommerce-checkout .wc_payment_method > label {
    margin: 0;
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
}

.woocommerce-checkout .wc_payment_method input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #009FE3;
    margin: 0;
}

.woocommerce-checkout .wc_payment_method .payment_box {
    background: #ffffff;
    padding: 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.woocommerce-checkout .wc_payment_method .payment_box p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
}

/* Stripe payment elements - clean white styling */
.woocommerce-checkout .wc-stripe-elements-field,
.woocommerce-checkout .wc-stripe-iban-element-field,
.woocommerce-checkout .StripeElement,
.woocommerce-checkout .stripe-card-group,
.woocommerce-checkout #wc-stripe-cc-form,
.woocommerce-checkout .wc-stripe-new-payment-method {
    background: #ffffff !important;
    border-radius: 0.75rem !important;
    border: 2px solid #e5e7eb !important;
}

/* Fix the gray background on Stripe saved payment methods */
.woocommerce-checkout .woocommerce-SavedPaymentMethods,
.woocommerce-checkout .wc-saved-payment-methods,
.woocommerce-checkout ul.woocommerce-SavedPaymentMethods {
    background: #ffffff !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-checkout .woocommerce-SavedPaymentMethods li,
.woocommerce-checkout .wc-saved-payment-methods li {
    background: #ffffff !important;
    padding: 0.75rem 1rem !important;
    margin-bottom: 0.5rem !important;
    border-radius: 0.5rem !important;
    border: 1px solid #e5e7eb !important;
    list-style: none !important;
}

.woocommerce-checkout .woocommerce-SavedPaymentMethods li:hover,
.woocommerce-checkout .wc-saved-payment-methods li:hover {
    border-color: #009FE3 !important;
}

.woocommerce-checkout .woocommerce-SavedPaymentMethods li label,
.woocommerce-checkout .wc-saved-payment-methods li label {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    color: #0B1120 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-checkout .woocommerce-SavedPaymentMethods li input[type="radio"],
.woocommerce-checkout .wc-saved-payment-methods li input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: #009FE3 !important;
    margin: 0 !important;
}

/* Stripe new payment method checkbox styling */
.woocommerce-checkout .wc-stripe-save-source,
.woocommerce-checkout .woocommerce-SavedPaymentMethods-saveNew,
.woocommerce-checkout #wc-stripe-new-payment-method {
    background: #f8fafc !important;
    padding: 1rem !important;
    border-radius: 0.5rem !important;
    margin-top: 1rem !important;
    border: 1px solid #e5e7eb !important;
}

.woocommerce-checkout .wc-stripe-save-source label,
.woocommerce-checkout .woocommerce-SavedPaymentMethods-saveNew label {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    cursor: pointer !important;
    margin: 0 !important;
}

.woocommerce-checkout .wc-stripe-save-source input[type="checkbox"],
.woocommerce-checkout .woocommerce-SavedPaymentMethods-saveNew input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: #009FE3 !important;
    margin: 0 !important;
}

/* Coupon form styling (position handled by PHP hook) */
.woocommerce-checkout .woocommerce-form-coupon-toggle {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.woocommerce-checkout .checkout_coupon {
    margin-bottom: 1.5rem;
}

/* Coupon toggle link styling */
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
    background: #f0f9ff;
    border: 2px solid #009FE3;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    color: #0B1120;
    font-size: 0.9rem;
    font-weight: 600;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before {
    color: #009FE3;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info a {
    color: #009FE3;
    font-weight: 700;
}

.woocommerce-checkout .checkout_coupon {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #f0f9ff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 2px solid #009FE3;
}

.woocommerce-checkout .checkout_coupon input[type="text"] {
    border: 2px solid #009FE3 !important;
}

.woocommerce-checkout .checkout_coupon input[type="text"]:focus {
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.15) !important;
}

.woocommerce-checkout .checkout_coupon p {
    margin: 0;
    flex: 1;
}

.woocommerce-checkout .checkout_coupon .form-row-first {
    flex: 1;
    width: auto;
    float: none;
}

.woocommerce-checkout .checkout_coupon .form-row-last {
    width: auto;
    float: none;
}

.woocommerce-checkout .checkout_coupon button {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #009FE3 0%, #0077b3 100%) !important;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 159, 227, 0.4);
}

.woocommerce-checkout .checkout_coupon button:hover {
    background: linear-gradient(135deg, #0B1120 0%, #1e293b 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 17, 32, 0.4);
}

/* Privacy policy text */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #fff;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.6;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a {
    color: #009FE3;
    text-decoration: underline;
}

/* Error/Success messages */
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-info {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.woocommerce-checkout .woocommerce-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.woocommerce-checkout .woocommerce-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

.woocommerce-checkout .woocommerce-info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0369a1;
}

/* Stripe Payment Gateway Compatibility */
.woocommerce-checkout .wc-stripe-elements-field,
.woocommerce-checkout .wc-stripe-iban-element-field {
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #fff;
    min-height: 52px;
}

.woocommerce-checkout .wc-stripe-elements-field:focus-within,
.woocommerce-checkout .wc-stripe-iban-element-field:focus-within {
    border-color: #009FE3;
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.15);
}

/* Ensure Stripe iframes are visible */
.woocommerce-checkout iframe,
.woocommerce-checkout .StripeElement,
.woocommerce-checkout .stripe-card-group {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Stripe new payment method form */
.woocommerce-checkout #wc-stripe-cc-form,
.woocommerce-checkout .wc-stripe-new-payment-method {
    margin-top: 1rem;
}

/* Save payment checkbox */
.woocommerce-checkout .wc-stripe-save-source,
.woocommerce-checkout .woocommerce-SavedPaymentMethods-saveNew {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #64748b;
}

.woocommerce-checkout .wc-stripe-save-source input,
.woocommerce-checkout .woocommerce-SavedPaymentMethods-saveNew input {
    width: 18px;
    height: 18px;
    accent-color: #009FE3;
}

/* Checkout responsive */
@media (max-width: 768px) {
    .cyclefix-checkout-wrapper {
        padding: 1rem;
    }
    
    .woocommerce-billing-fields,
    .woocommerce-shipping-fields,
    .woocommerce-additional-fields,
    .woocommerce-checkout #order_review {
        padding: 1.5rem;
    }
    
    .woocommerce-checkout .checkout_coupon {
        flex-direction: column;
    }
    
    .woocommerce-checkout .checkout_coupon button {
        width: 100%;
    }
}

/* ========================================
   END CHECKOUT STYLING
   ======================================== */

@media (max-width: 768px) {
    .footer-contact-bar {
        display: none !important;
    }
}
body {
    padding-top: 0; /* Hero sections handle their own header offset */
}
/* Custom scrollbar for storyline box */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #009FE3;
    border-radius: 8px;
}
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #009FE3 #e0f2fe;
}
/* --- STAT CARDS GLOW & PULSE --- */
.stat-card {
    background: #f8fafc;
    border-radius: 2rem;
    box-shadow: 0 0 0 0 #009FE3;
    transition: box-shadow 0.3s cubic-bezier(.4,0,.2,1), transform 0.2s;
    position: relative;
    z-index: 1;
}
.stat-card:hover {
    box-shadow: 0 0 32px 0 #009FE3cc, 0 0 0 4px #009FE333;
    animation: stat-pulse 0.7s cubic-bezier(.4,0,.2,1) infinite alternate;
    transform: translateY(-4px) scale(1.03);
}
@keyframes stat-pulse {
    0% { box-shadow: 0 0 32px 0 #009FE3cc, 0 0 0 4px #009FE333; }
    100% { box-shadow: 0 0 48px 8px #009FE3cc, 0 0 0 8px #009FE333; }
}

/* Gold 5-star card */
.stat-card-gold {
    background: linear-gradient(135deg, #fffbe6 60%, #ffe066 100%);
    box-shadow: 0 0 0 0 #FFD700;
}
.stat-card-gold:hover {
    box-shadow: 0 0 32px 0 #FFD700cc, 0 0 0 4px #FFD70033;
    animation: stat-gold-pulse 0.7s cubic-bezier(.4,0,.2,1) infinite alternate;
}
@keyframes stat-gold-pulse {
    0% { box-shadow: 0 0 32px 0 #FFD700cc, 0 0 0 4px #FFD70033; }
    100% { box-shadow: 0 0 48px 8px #FFD700cc, 0 0 0 8px #FFD70033; }
}

/* Green accent for 100% card */
.stat-card-green:hover {
    box-shadow: 0 0 32px 0 #10b981cc, 0 0 0 4px #10b98133;
    animation: stat-green-pulse 0.7s cubic-bezier(.4,0,.2,1) infinite alternate;
}
@keyframes stat-green-pulse {
    0% { box-shadow: 0 0 32px 0 #10b981cc, 0 0 0 4px #10b98133; }
    100% { box-shadow: 0 0 48px 8px #10b981cc, 0 0 0 8px #10b98133; }
}

/* Purple accent for 365 card */
.stat-card-purple:hover {
    box-shadow: 0 0 32px 0 #8b5cf6cc, 0 0 0 4px #8b5cf633;
    animation: stat-purple-pulse 0.7s cubic-bezier(.4,0,.2,1) infinite alternate;
}
@keyframes stat-purple-pulse {
    0% { box-shadow: 0 0 32px 0 #8b5cf6cc, 0 0 0 4px #8b5cf633; }
    100% { box-shadow: 0 0 48px 8px #8b5cf6cc, 0 0 0 8px #8b5cf633; }
}

/*
Theme Name: Cycle Fix London 2026 Final
Theme URI: https://cyclefixlondon.co.uk
Description: Professional cycling workshop website with smooth page transitions.
Version: 4.4.0
Author: Cycle Fix London
Text Domain: cyclefix-final
*/

/* --- DESIGN SYSTEM --- */
:root {
    --primary: #009FE3;
    --primary-hover: #00d4ff;
    --dark: #0B1120;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

/* --- BASE STYLES --- */
* {
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.5;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    overscroll-behavior-x: none;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: -0.03em;
}

/* --- HEADER --- */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

:root {
    --header-height: 64px;
}

@media (max-width: 768px) {
    :root {
        --header-height: 72px;
    }
}

.nav-pill {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: var(--dark);
}

.nav-pill-home {
    background: var(--primary) !important;
    color: #fff !important;
}

.nav-pill-home:hover {
    background: var(--primary-hover) !important;
    color: #fff !important;
}

/* Shop NEW badge */
.shop-nav-link {
    position: relative;
}

.shop-new-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: #fff;
    font-size: 7px;
    font-weight: 900;
    padding: 2px 5px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    animation: badge-pulse 2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.7);
    }
}

.nav-phone-pill {
    white-space: nowrap;
    line-height: 1;
}

@media (max-width: 767px) {
    .nav-phone-pill {
        padding-left: 0.6rem;
        padding-right: 0.6rem;
        letter-spacing: 0.08em;
    }
}

@media (max-width: 560px) {
    .header-actions {
        gap: 0.4rem;
    }

    .nav-phone-pill,
    .nav-book-pill {
        padding: 0.42rem 0.55rem;
        font-size: 9px;
        letter-spacing: 0.05em;
    }
}

@media (max-width: 420px) {
    .nav-phone-pill,
    .nav-book-pill {
        padding: 0.36rem 0.5rem;
        font-size: 8px;
        letter-spacing: 0.04em;
    }

    .nav-phone-pill svg,
    .nav-book-pill svg {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 360px) {
    .nav-phone-pill span {
        font-size: 7px;
    }
}

.mobile-menu-panel {
    position: static;
}

@media (max-width: 1024px) {
    .mobile-menu-panel {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        z-index: 998;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 24px;
    }

    body.menu-open {
        overflow: hidden;
    }
}

.hero-standard {
    padding-top: calc(var(--header-height) + 0.75rem) !important;
    padding-bottom: 1.25rem !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
}

.hero-standard h1 {
    font-size: clamp(1.9rem, 3.1vw, 3rem) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 0.25rem !important;
    font-family: 'Montserrat', sans-serif !important;
    font-style: italic !important;
    text-transform: uppercase !important;
    font-weight: 900 !important;
}

@media (max-width: 768px) {
    .hero-standard {
        padding-top: calc(var(--header-height) + 0.5rem) !important;
        padding-bottom: 1rem !important;
        min-height: 0 !important;
        height: auto !important;
    }
}

/* Ensure hero container also has padding for fixed header */
section.hero-standard > .container:first-child {
    padding-top: 0 !important;
}

.hero-standard.hero-compact {
    padding-top: calc(var(--header-height) + 0.5rem) !important;
    padding-bottom: 0.75rem !important;
    min-height: 0 !important;
    height: auto !important;
}

@media (max-width: 768px) {
    .hero-standard.hero-compact {
        padding-top: calc(var(--header-height) + 0.4rem) !important;
        padding-bottom: 0.6rem !important;
        min-height: 0 !important;
        height: auto !important;
    }
}

.nav-pill:hover {
    background: var(--primary);
    color: white;
}

.site-logo .custom-logo {
    height: 40px;
    width: auto;
    display: block;
}

/* --- FIXED FOOTER ISSUES --- */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 40px 0;
}

.social-icons-footer a {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    pointer-events: auto;
    cursor: pointer;
    filter: brightness(1);
}

.whatsapp-float {
    z-index: 10000 !important;
    pointer-events: auto !important;
}

@media (max-width: 768px) {
    .social-icons-footer {
        justify-content: center !important;
    }
}

.social-icons-footer a:hover,
.social-icons-footer a:focus-visible {
    transform: translateY(-2px) scale(1.15) !important;
    filter: brightness(1.2) drop-shadow(0 0 8px currentColor) drop-shadow(0 0 16px currentColor) !important;
    box-shadow: 0 8px 20px rgba(0, 159, 227, 0.4) !important;
}

.social-icons-footer svg {
    width: 16px !important;
    height: 16px !important;
}

.footer-logo svg {
    width: 48px;
    height: 48px;
}

.footer-logo h2 {
    font-size: 20px;
    letter-spacing: -1px;
}

.footer-nav h4,
.footer-contact h4 {
    color: var(--primary);
    font-size: 11px;
    margin-bottom: 24px;
    letter-spacing: 0.2em;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-nav a:hover {
    color: var(--primary);
}

.cert-group img,
.payment-group img {
    height: 20px;
    width: auto;
    object-fit: contain;
}

/* --- HERO SLIDER --- */
.hero-slider {
    position: relative;
    height: 90vh;
    min-height: 700px;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slider-dot.active {
    background: var(--primary);
    width: 32px;
}

/* --- CAROUSEL --- */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.brand-track {
    display: flex;
    gap: 120px;
    animation: scroll 40s linear infinite;
    width: fit-content;
}

.brand-item img {
    height: 48px;
    opacity: 1;
    transition: all 0.3s ease;
    filter: grayscale(0);
}

/* Cytech logo needs inversion since it's white on white background */
.brand-item img[alt="Cytech"],
.brand-item img[alt*="cytech"],
.brand-item img[src*="cytech"],
.brand-item img[src*="Cytech"] {
    filter: brightness(0) invert(1);
}

.brand-item:hover img {
    transform: scale(1.1);
}

/* Keep Cytech inverted on hover too */
.brand-item:hover img[alt="Cytech"],
.brand-item:hover img[alt*="cytech"],
.brand-item:hover img[src*="cytech"],
.brand-item:hover img[src*="Cytech"] {
    filter: brightness(0) invert(1);
    transform: scale(1.1);
}

/* --- PREMIUM ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-up {
    transform: translateY(40px);
}

.active.fade-up {
    transform: translateY(0);
}

.page-fade {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-down {
    animation: slide-down 0.25s ease-out forwards;
}

/* --- TOOLTIPS --- */
.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-content {
    visibility: hidden;
    width: 220px;
    background-color: #0B1120;
    color: #fff;
    text-align: center;
    border-radius: 12px;
    padding: 12px;
    position: absolute;
    z-index: 100;
    bottom: 150%;
    left: 50%;
    margin-left: -110px;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #0B1120 transparent transparent transparent;
}

.tooltip-container:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

/* --- SERVICE GRID UTILS --- */
.service-icon-box {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

/* --- SMOOTH PAGE TRANSITIONS --- */
html {
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
    background-color: #0B1120;
}

body {
    opacity: 1;
}

/* --- FOOTER TABS --- */
.footer-tab-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #6b7280;
    padding: 10px 16px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.footer-tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.footer-tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.footer-tab-panel {
    animation: fadeIn 0.3s ease-out;
}

/* Footer certification logos: normalize widths */
.footer-cert-logos img {
    max-width: 90px;
    width: 100%;
    height: 28px;
    object-fit: contain;
}

/* --- MOBILE OPTIMIZATIONS --- */
@media (max-width: 768px) {
    .stat-box-home {
        padding: 12px 16px;
    }

    .stat-number-home {
        font-size: 1.5rem;
    }

    .service-card {
        height: 280px;
    }

    .why-card {
        padding: 1.25rem;
    }

    .container {
        padding: 0 15px;
    }

    /* Improve touch targets on mobile - ensure perfect centering */
    .nav-pill,
    button,
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Perfect centering for all clickable buttons on mobile */
    a.rounded-full,
    button.rounded-full,
    a.px-4,
    a.px-6,
    a.px-8,
    a.px-10,
    button.px-4,
    button.px-6 {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        line-height: 1 !important;
        aspect-ratio: auto !important;
    }
    
    /* Phone number links */
    a[href^="tel:"] {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Certifications stack nicely on mobile */
    .cert-group,
    .payment-group {
        justify-content: center;
        gap: 8px;
    }
    
    /* Global mobile price list alignment fix */
    .grid > div.flex.justify-between {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }
    
    .grid > div.flex.justify-between span:first-child {
        flex: 1;
        text-align: left;
    }
    
    .grid > div.flex.justify-between span:last-child {
        flex-shrink: 0;
        text-align: right;
        white-space: nowrap;
    }
    
    /* Ensure small bullet point divs stay circular (not buttons) */
    div.w-2.h-2.rounded-full {
        border-radius: 9999px !important;
        aspect-ratio: 1 / 1;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .service-card {
        height: 240px;
    }
    
    /* Extra small screen optimizations */
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    /* Ensure text fits in buttons */
    .px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* --- ACCESSIBILITY --- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
    }

    body {
        opacity: 1;
    }

    .brand-track {
        animation: none;
    }
}

/* --- FOCUS STATES FOR ACCESSIBILITY --- */
a:focus,
button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Rounded focus for pills and dropdown items */
.nav-pill:focus,
.nav-pill:focus-visible,
header a:focus,
header a:focus-visible,
header button:focus,
header button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 12px;
}

/* No focus outline for mouse clicks (better UX) */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* FAQ answers: keep body text readable vs headings */
.faq-answer {
    font-weight: 400;
    color: #475569;
}

.faq-question span {
    font-weight: 600;
    color: #334155;
}

/* --- SCROLLBAR STYLING --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* --- WORKSHOP PRICE LIST --- */
.workshop-packages-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .workshop-packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .workshop-packages-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }

    .package-card {
        padding: 1.5rem 1rem;
    }
}

.package-card,
.specialty-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 2rem;
    padding: 2rem 1.25rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: visible;
}

@media (min-width: 768px) {

    .package-card,
    .specialty-card {
        min-height: auto;
    }
}

/* Service finder results grid - keeps cards same height */
.sf-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
    gap: 1rem;
    align-items: stretch;
    justify-content: center;
}

/* Keep service cards slim and centered when only a few items */
.sf-results-grid > .package-card,
.sf-results-grid > .specialty-card,
.sf-results-grid > .repair-panel {
    max-width: 320px;
    width: 100%;
    justify-self: center;
}

/* Force all package cards to same height */
.sf-results-grid > .package-card {
    display: flex;
    flex-direction: column;
}

.sf-results-grid > .package-card .package-item-list {
    flex: 1;
}

.sf-results-grid > .package-card .btn-select-package {
    margin-top: auto;
}

.repair-panel {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 2rem;
    padding: 2rem 1.25rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: visible;
}

.package-card h3 {
    font-size: 11px;
    margin-bottom: 0;
    line-height: 1.2;
    display: block;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
    letter-spacing: 0.08em;
}

.package-card.highlighted {
    border: 2px solid #009FE3;
    background: #eff6ff;
    padding-top: 1.5rem;
    position: relative;
    overflow: visible;
    box-shadow: 0 10px 30px rgba(0, 159, 227, 0.15);
    transform: none;
    z-index: 5;
}

.package-card:hover,
.repair-panel:hover,
.specialty-card:hover {
    transform: translateY(-8px);
    border-color: #009FE3;
    box-shadow: 0 20px 40px rgba(0, 159, 227, 0.2);
}

.most-popular-badge,
.best-value-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #009FE3;
    color: #fff;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 159, 227, 0.3);
    z-index: 10;
    border: 2px solid #ffffff;
}

.package-price {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #0b1120;
    line-height: 1;
    margin-bottom: 0.15rem;
}

/* Service finder package item list - grows to fill card but button stays at bottom */
.package-item-list {
    flex-grow: 1;
    flex-shrink: 0;
}

.package-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0b1120;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.package-item svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    padding: 2px;
    background: rgba(0, 159, 227, 0.1);
    border-radius: 4px;
    color: #009FE3;
}

.btn-select-package {
    margin-top: auto;
    width: 100%;
    padding: 1rem 0.75rem;
    border-radius: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    background: #009FE3;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 159, 227, 0.2);
}

.btn-select-package:hover {
    background: #0077B3;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 159, 227, 0.4);
}

.sticky-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    z-index: 1000;
}

@media (min-width: 768px) {
    .sticky-mobile-cta {
        display: none;
    }
}

/* --- SERVICE FINDER --- */
.sf-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px !important;
    max-width: 1000px;
    margin: 0 auto;
}

.sf-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 340px;
    flex: 0 1 calc(50% - 15px);
    max-width: 340px;
}

@media (min-width: 768px) {
    .sf-grid .sf-card {
        flex: 0 1 calc(25% - 15px);
    }
}

.sf-card:hover {
    border-color: #009FE3;
    box-shadow: 0 8px 30px rgba(0, 159, 227, 0.15);
    transform: translateY(-4px);
}

.sf-card.active {
    border: 4px solid #009FE3;
    box-shadow: 0 12px 40px rgba(0, 159, 227, 0.25);
    background: #f0f9ff;
}

.sf-card-icon {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    padding: 12px;
}

.sf-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sf-card-label {
    color: #0f2137;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.sf-card-sublabel {
    color: #64748b;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.sf-results-grid {
    display: none;
}

.sf-results-grid.visible {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 0.25rem !important;
    align-items: stretch !important;
}

/* Force service cards to sit tighter (no extra margins) */
.sf-card,
.sf-results-grid.visible > .package-card,
.sf-results-grid.visible > .repair-panel,
.sf-results-grid.visible > .specialty-card,
.package-card,
.repair-panel,
.specialty-card {
    margin: 0 !important;
}

/* FORCE EQUAL HEIGHT CARDS */
.sf-results-grid.visible > .package-card {
    display: flex !important;
    flex-direction: column !important;
}

.sf-results-grid.visible > .package-card .package-header {
    flex-shrink: 0;
}

.sf-results-grid.visible > .package-card .package-item-list {
    flex: 1 1 auto !important;
    display: flex;
    flex-direction: column;
}

.sf-results-grid.visible > .package-card .btn-select-package {
    flex-shrink: 0;
    margin-top: auto !important;
}

/* --- HIDE TICK BADGE ON BIKE CARDS --- */
.sf-card-selected-badge {
    display: none;
}

/* --- FADE EFFECT FOR UNSELECTED BIKE CARDS --- */
.sf-card-grid.has-selection .sf-card:not(.active) {
    opacity: 0.4;
    filter: grayscale(30%);
    transform: scale(0.95);
}

.sf-card-grid.has-selection .sf-card.active {
    opacity: 1;
    filter: none;
    transform: scale(1);
    z-index: 2;
}

/* --- IMPROVED PACKAGE CARD SPACING --- */
.package-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.package-header h3 {
    text-align: center;
    margin-bottom: 0.75rem;
}

.package-price {
    margin-top: 0.5rem;
}

.package-item-list {
    margin-top: 1rem;
    padding-top: 0.5rem;
}

/* Improved tap area and accessibility for info-trigger */
.info-trigger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    background: #009FE3 !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    font-size: 8px !important;
    font-weight: 900 !important;
    font-style: normal !important;
    cursor: pointer !important;
    margin-left: 4px !important;
    vertical-align: baseline !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    border: none !important;
    line-height: 1 !important;
    outline: none !important;
    flex-shrink: 0 !important;
}

.info-trigger:focus {
    box-shadow: 0 0 0 2px #009FE3AA !important;
    background: #0077B3 !important;
}

.info-trigger:hover {
    background: #0077B3 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 2px 6px rgba(0, 159, 227, 0.4) !important;
}


/* --- TOOLTIP POPUP STYLING --- */
.tooltip-popup {
    position: fixed;
    background: #0B1120;
    color: white !important;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    max-width: 200px;
    z-index: 99999 !important;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.5);
    border: 1px solid #009FE3;
    line-height: 1.5;
}

.tooltip-popup.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tooltip-popup::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #0B1120;
}

/* --- TRAINING PAGE CARD FIXES --- */
/* Grid container for training cards */
.training-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.training-card .card-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

/* Push the price section to the bottom and align its content to top */
.training-card .price-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    min-height: 120px;
}

.training-card .card-footer {
    margin-top: 1.5rem;
    flex-shrink: 0;
}

/* Ensure equal height cards in grid */
section .grid > .training-card {
    align-self: stretch;
}

/* --- CONTACT PAGE GRID ALIGNMENT --- */
/* Ensure contact details and map align at the top */
.contact-grid {
    align-items: flex-start !important;
}

/* --- PHONE BANNER HIGHLIGHTING (GLOBAL) --- */
.phone-banner-highlight {
    background: #009FE3;
    padding: 12px 24px;
    border-radius: 9999px;
    box-shadow: 0 10px 25px rgba(0, 159, 227, 0.3);
    transition: all 0.3s ease;
}

.phone-banner-highlight:hover {
    background: #00d4ff;
    transform: scale(1.05);
}

.phone-banner-highlight svg,
.phone-banner-highlight span {
    color: white;
}

/* --- CLEARER SERVICE CARD FONTS --- */
.package-card h3,
.sf-bike-name,
#sf-bike-name {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.package-header h3 {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.05em;
}

/* Ensure package card text is crisp */
.package-card {
    -webkit-font-smoothing: antialiased;
}

.package-price {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* --- HERO BADGES --- */
.hero-badges {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1rem !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0 !important;
    width: auto !important;
    max-width: 100% !important;
}

/* Increase spacing between hero subtext and badges/icons */
.hero-standard p + div {
    margin-top: 1.75rem !important;
}

/* Preserve homepage hero spacing */
.home .hero-standard p + div,
body.home .hero-standard p + div {
    margin-top: revert !important;
}

.home .hero-badges,
body.home .hero-badges {
    margin-top: revert !important;
}

/* Homepage blue buttons - add spacing below badges */
.home .hero-standard .flex.flex-wrap.gap-3,
body.home .hero-standard .flex.flex-wrap.gap-3 {
    margin-top: 2.5rem !important;
}

/* All other pages - spacing between subtitle and badges */
.hero-standard .hero-badges,
.hero-standard div[style*="display: flex"][style*="justify-content: center"] {
    margin-top: 2rem !important;
}

.hero-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.625rem 1.25rem !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(12px) !important;
    border-radius: 9999px !important;
    font-size: 10px !important;
    font-weight: 950 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    color: white !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    flex-shrink: 0 !important;
    width: auto !important;
    max-width: none !important;
}

.hero-badge span {
    font-size: 10px !important;
    line-height: 1.1 !important;
}

.hero-badge:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-badge-icon {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25) !important;
    overflow: hidden !important;
}

.hero-badge-icon svg {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    color: white !important;
    display: block !important;
}

@media (max-width: 900px) {
    .hero-badges {
        flex-wrap: wrap !important;
    }
}

.specialist-dropdown.is-open .specialist-panel {
    opacity: 1;
    visibility: visible;
}

.mobile-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    display: none;
    justify-content: center;
    padding: 12px 16px;
    background: #f04a24;
    box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.2);
}

.mobile-sticky-cta a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .mobile-sticky-cta {
        display: flex;
    }
}

/* ==========================================
   WOOCOMMERCE SHOP STYLING
   ========================================== */

/* Hide sidebar on shop pages */
.woocommerce-page .widget-area,
.woocommerce-page aside,
.woocommerce-page #secondary,
.woocommerce-page .sidebar,
.woocommerce-page .woocommerce-sidebar,
body.woocommerce aside.widget-area {
    display: none !important;
}

/* Make content full width */
.woocommerce-page #primary,
.woocommerce-page .content-area,
.woocommerce-page main {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

/* Hide default WooCommerce title (we use custom) */
.woocommerce-products-header {
    display: none;
}

/* Shop search bar */
.shop-search input[type="search"] {
    -webkit-appearance: none;
    appearance: none;
}

.shop-search input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

/* Shop page wrapper */
.woocommerce-page .site-main {
    padding: 2rem 1rem;
    max-width: 1280px;
    margin: 0 auto;
}

/* Page title - hidden since we use custom */
.woocommerce-products-header__title {
    display: none;
}

/* Hide "Showing all X results" and ordering dropdown */
.woocommerce-result-count,
.woocommerce-ordering {
    display: none !important;
}

/* Hide star ratings and reviews on shop page */
.woocommerce ul.products li.product .star-rating,
.woocommerce ul.products li.product .woocommerce-product-rating {
    display: none !important;
}

/* Product grid container - 4 columns */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 1200px !important;
    box-sizing: border-box;
    justify-content: center;
    justify-items: center;
}

/* Ensure parent container centers the grid */
.woocommerce-main .container,
.woocommerce-page .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* Fix: Header container must stay horizontal on WooCommerce pages */
.woocommerce-page .site-header .container,
.woocommerce-page header.site-header > .container {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Fix: Footer container must stay block layout (not flex) */
.woocommerce-page footer .container,
.woocommerce-page footer > .container {
    display: block !important;
    align-items: normal !important;
}

.woocommerce-main .woocommerce,
.woocommerce-page .woocommerce {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* Clear any floats from WooCommerce */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
}

@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
        max-width: 320px;
    }
}

/* Product card - vertical layout, fully rounded bubble */
.woocommerce ul.products li.product {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 0;
    margin: 0;
    width: 100% !important;
    max-width: 280px !important;
    float: none !important;
}

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

/* Product image - scales to fit without cutting off, rounded top */
.woocommerce ul.products li.product a img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center;
    background: #f8fafc;
    margin: 0;
    padding: 15px;
    box-sizing: border-box;
    border-radius: 1rem 1rem 0 0;
}

/* Product title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0B1120;
    padding: 1rem 1rem 0.5rem;
    margin: 0;
}

/* Product price - theme blue */
.woocommerce ul.products li.product .price {
    font-size: 1.125rem;
    font-weight: 900;
    color: #009FE3;
    padding: 0 1rem 1rem;
}

.woocommerce ul.products li.product .price del {
    color: #9ca3af;
    font-weight: 400;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    color: #009FE3;
}

/* Add to cart button */
.woocommerce ul.products li.product .button {
    display: block;
    width: calc(100% - 2rem);
    margin: 0 1rem 1rem;
    padding: 0.75rem 1rem;
    background: #009FE3;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background 0.2s;
}

.woocommerce ul.products li.product .button:hover {
    background: #00d4ff;
    animation: pulse-blue 1.5s ease-in-out infinite;
}

/* =============================================
   HIDE EXPRESS CHECKOUT ON SINGLE PRODUCT PAGES
   ============================================= */
.single-product #wc-stripe-payment-request-wrapper,
.single-product .wc-stripe-payment-request-wrapper,
.single-product #wc-stripe-payment-request-button-separator,
.single-product .wc-stripe-payment-request-button-separator,
.single-product .wc-stripe-express-checkout-wrapper,
.single-product #wc-stripe-express-checkout-element,
.single-product [id*="payment-request"],
.single-product [class*="payment-request"],
.single-product .stripe-payment-request-button,
.single-product #wc-stripe-link-button-wrapper,
.single-product .wc-stripe-link-payment-method,
.woocommerce.single-product form.cart #wc-stripe-payment-request-wrapper,
.woocommerce.single-product form.cart .wc-stripe-payment-request-wrapper {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

@keyframes pulse-blue {
    0%, 100% {
        background: #009FE3;
        box-shadow: 0 0 0 0 rgba(0, 159, 227, 0.7);
    }
    50% {
        background: #00d4ff;
        box-shadow: 0 0 20px 5px rgba(0, 159, 227, 0.4);
    }
}

/* "View Basket" link that appears after adding to cart - HIDE IT */
.woocommerce ul.products li.product .added_to_cart {
    display: none !important;
}

/* WooCommerce AJAX add to cart message/notification */
.woocommerce-message,
.woocommerce-info {
    background: #10b981 !important;
    color: #fff !important;
    padding: 1rem 1.5rem !important;
    border: none !important;
    border-radius: 0.5rem !important;
    margin-bottom: 1.5rem !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: #fff !important;
    position: static !important;
    margin-right: 0.25rem !important;
    flex: 0 0 auto !important;
}

.woocommerce-message a.button,
.woocommerce-info a.button {
    background: #fff !important;
    color: #10b981 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.4rem !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    text-decoration: none !important;
    margin-left: auto !important;
}

.woocommerce-message a.button:hover,
.woocommerce-info a.button:hover {
    background: #f0fdf4 !important;
}

/* Hide sale badge */
.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale {
    display: none !important;
}

/* Hide "Shop" breadcrumb/title above grid */
.woocommerce-products-header,
.woocommerce-breadcrumb,
.page-title,
.woocommerce-page .woocommerce > .page-title,
.woocommerce-page header.woocommerce-products-header {
    display: none !important;
}

/* Cart page */
.woocommerce-cart .woocommerce {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Ensure cart table and form are always visible */
.woocommerce-cart .woocommerce-cart-form,
.woocommerce-cart form.woocommerce-cart-form,
.woocommerce-cart .woocommerce-cart-form table,
.woocommerce-cart table.shop_table.cart,
.woocommerce-cart .cart_totals,
.woocommerce-cart .wc-proceed-to-checkout {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
}

/* Hide only suggested product sections on cart page (not the cart itself) */
.woocommerce-cart .cross-sells,
.woocommerce-cart .woocommerce .cross-sells,
.woocommerce-cart .woocommerce .up-sells,
.woocommerce-cart .woocommerce .related,
.woocommerce-cart .woocommerce-products-header,
.woocommerce-cart .storefront-product-section,
.woocommerce-cart section.storefront-product-section,
.woocommerce-cart .new-in-store,
.woocommerce-cart .featured-products {
    display: none !important;
}

/* FORCE cart table to be visible - override any conflicting rules */
.woocommerce-cart .woocommerce,
.woocommerce-cart .woocommerce > *,
.woocommerce-cart form.woocommerce-cart-form,
.woocommerce-cart .woocommerce-cart-form,
.woocommerce-cart table.shop_table,
.woocommerce-cart table.shop_table.shop_table_responsive.cart,
.woocommerce-cart table.cart,
.woocommerce-cart .cart-collaterals,
.woocommerce-cart .cart_totals,
.woocommerce-cart .wc-proceed-to-checkout,
.woocommerce-cart .shop_table tbody,
.woocommerce-cart .shop_table tr,
.woocommerce-cart .shop_table td,
.woocommerce-cart .shop_table th,
.woocommerce-cart .cart_item {
    display: revert !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    width: auto !important;
    overflow: visible !important;
    position: static !important;
    clip: auto !important;
}

/* Make sure table displays as table */
.woocommerce-cart table.shop_table,
.woocommerce-cart table.cart {
    display: table !important;
    width: 100% !important;
}

.woocommerce-cart table.shop_table tbody {
    display: table-row-group !important;
}

.woocommerce-cart table.shop_table tr {
    display: table-row !important;
}

.woocommerce-cart table.shop_table td,
.woocommerce-cart table.shop_table th {
    display: table-cell !important;
}

/* Hide default WooCommerce empty cart elements (we use custom) */
.woocommerce-cart .cart-empty,
.woocommerce-cart .return-to-shop {
    display: none !important;
}

/* Custom empty cart styling */
.cyclefix-empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 2rem auto;
}

.cyclefix-empty-cart .empty-cart-message {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 2rem;
}

/* Custom empty cart buttons */
.empty-cart-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.empty-cart-buttons .empty-cart-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #009FE3;
    color: #fff !important;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.empty-cart-buttons .empty-cart-btn:hover {
    background: #00d4ff;
    animation: pulse-blue 1.5s ease-in-out infinite;
}

/* Cart page table */
.woocommerce table.cart {
    border-collapse: collapse;
    width: 100%;
}

.woocommerce table.cart th,
.woocommerce table.cart td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.woocommerce table.cart .product-thumbnail img {
    width: 80px;
    border-radius: 0.5rem;
}

.woocommerce .cart_totals h2 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.woocommerce .checkout-button,
.woocommerce .wc-proceed-to-checkout a {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #009FE3;
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    border-radius: 0.5rem;
    text-decoration: none;
}

.woocommerce .checkout-button:hover,
.woocommerce .wc-proceed-to-checkout a:hover {
    background: #0B1120;
}

/* Single product page */
.single-product .product {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Product gallery - supports multiple images */
.single-product .product .woocommerce-product-gallery {
    width: 400px !important;
    flex-shrink: 0;
    border-radius: 1rem;
    float: none !important;
}

/* Main image container */
.single-product .product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
    width: 100%;
}

.single-product .product .woocommerce-product-gallery .woocommerce-product-gallery__image {
    overflow: hidden;
    border-radius: 0.75rem;
    position: relative;
}

/* Main product image */
.single-product .product .woocommerce-product-gallery .woocommerce-product-gallery__image img,
.single-product .product .woocommerce-product-gallery img.wp-post-image {
    width: 100% !important;
    height: 400px !important;
    object-fit: contain;
    object-position: center;
    background: #fff;
    border-radius: 0.75rem;
    cursor: zoom-in;
    transition: transform 0.25s ease-out;
}

/* Zoomed state - applied via JS */
.single-product .product .woocommerce-product-gallery .woocommerce-product-gallery__image img.zoomed,
.single-product .product .woocommerce-product-gallery img.wp-post-image.zoomed {
    cursor: zoom-out !important;
    z-index: 10;
}

/* ==========================================
   Fit & Installation Helper (Product Page)
   ========================================== */
.cfl-fit-help {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #ffffff;
    display: grid;
    gap: 0.75rem;
}

.cfl-fit-section-title {
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0B1120;
    margin-bottom: 0.25rem;
}

.cfl-fit-help p {
    margin: 0;
    font-size: 0.85rem;
    color: #334155;
}

.cfl-fit-attrs {
    margin: 0.35rem 0 0;
    padding-left: 1rem;
    font-size: 0.8rem;
    color: #334155;
}

.cfl-fit-link a {
    font-size: 0.8rem;
    font-weight: 700;
    color: #009FE3;
    text-decoration: none;
}

.cfl-fit-addons {
    display: grid;
    gap: 0.5rem;
}

.cfl-fit-addon {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0B1120;
}

.cfl-fit-addon input {
    width: 18px;
    height: 18px;
    accent-color: #009FE3;
}

.cfl-fit-addon em {
    font-style: normal;
    color: #0B1120;
    opacity: 0.7;
    font-weight: 700;
}

.cfl-fit-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cfl-fit-links a {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0B1120;
    text-decoration: none;
}

@media (max-width: 640px) {
    .cfl-fit-help {
        padding: 0.75rem;
    }
    .cfl-fit-help p,
    .cfl-fit-addon,
    .cfl-fit-attrs {
        font-size: 0.8rem;
    }
    .cfl-fit-links {
        gap: 0.5rem;
    }
}


/* Gallery thumbnails - 4 per row */
.single-product .product .woocommerce-product-gallery .flex-control-thumbs {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0;
    list-style: none;
}

.single-product .product .woocommerce-product-gallery .flex-control-thumbs li {
    width: 100% !important;
    height: auto;
    aspect-ratio: 1;
    flex-shrink: 0;
    margin: 0 !important;
    padding: 0;
}

.single-product .product .woocommerce-product-gallery .flex-control-thumbs li img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 0.5rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    opacity: 0.7;
}

.single-product .product .woocommerce-product-gallery .flex-control-thumbs li img:hover,
.single-product .product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
    border-color: #009FE3;
    opacity: 1;
}

.single-product .product .summary {
    flex: 1;
    min-width: 300px;
    float: none !important;
    padding-left: 0;
}

/* Hide category on single product */
.single-product .product .product_meta,
.single-product .product .posted_in,
.single-product .product .tagged_as,
.single-product .product_meta {
    display: none !important;
}

/* Hide reviews, ratings, and review form (but keep tabs for description) */
.single-product .woocommerce-Reviews,
.single-product #reviews,
.single-product .woocommerce-product-rating,
.single-product .star-rating,
.single-product #review_form,
.single-product #comments,
.single-product .comment-respond,
.single-product .woocommerce-tabs ul.tabs li.reviews_tab,
.woocommerce-review-link {
    display: none !important;
}

/* Show quantity selector on single product */
.single-product .product .quantity {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    margin-right: 0.75rem;
    height: 44px;
}

.single-product .product .qty {
    display: inline-block !important;
    width: 90px;
    height: 44px;
    min-height: 44px;
    padding: 0 0.8rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.4rem;
    font-weight: 800;
    text-align: center;
    font-size: 0.8rem;
    line-height: 44px;
    box-sizing: border-box;
}

.single-product .product .product_title {
    font-size: 1.75rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.single-product .product .price {
    font-size: 1.5rem;
    font-weight: 900;
    color: #009FE3;
    margin-bottom: 1rem;
}

/* Stock badge */
.cyclefix-stock-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.cyclefix-stock-badge.is-in-stock {
    background: #10b981;
}

.cyclefix-stock-badge.is-out-of-stock {
    background: #ef4444;
}

@media (max-width: 640px) {
    .cyclefix-stock-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
        margin-bottom: 0.6rem;
    }
}

/* Add to basket button - compact, good spacing */
.single-product .product .single_add_to_cart_button,
.single-product .product button.button.alt {
    background: #009FE3 !important;
    color: #fff !important;
    padding: 0.65rem 1.5rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem !important;
    border: none !important;
    border-radius: 0.4rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block !important;
    width: auto !important;
    margin-bottom: 1.5rem !important;
    height: 44px;
    line-height: 44px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.single-product .product .single_add_to_cart_button:hover,
.single-product .product button.button.alt:hover {
    background: #00d4ff !important;
    animation: pulse-blue 1.5s ease-in-out infinite;
}

/* Product description */
.single-product .product .woocommerce-product-details__short-description {
    margin-bottom: 1.5rem;
    color: #4b5563;
    line-height: 1.6;
}

/* Full product description in summary (right side) */
.single-product .product-full-description {
    margin-top: 0;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.single-product .product-full-description .description-heading {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0B1120;
    margin-bottom: 0.75rem;
}

.single-product .product-full-description .description-content {
    color: #4b5563;
    line-height: 1.7;
    font-size: 0.875rem;
}

.single-product .product-full-description .description-content p {
    margin-bottom: 0.75rem;
}

.single-product .product-full-description .description-content p:last-child {
    margin-bottom: 0;
}

/* Read More button - prominent styling */
.single-product .product-full-description .read-more-btn {
    display: inline-block;
    background: #009FE3;
    border: none;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    padding: 0.6rem 1.25rem;
    margin-top: 1rem;
    border-radius: 0.4rem;
    transition: all 0.2s;
}

.single-product .product-full-description .read-more-btn:hover {
    background: #00d4ff;
}

/* Hidden more content by default */
.single-product .product-full-description .description-more {
    display: none;
}

/* Custom scrollbar for description */
.single-product .product-full-description .description-content::-webkit-scrollbar {
    width: 4px;
}

.single-product .product-full-description .description-content::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 2px;
}

.single-product .product-full-description .description-content::-webkit-scrollbar-thumb {
    background: #009FE3;
    border-radius: 2px;
}

/* Hide tabs section since description is now in summary */
.single-product .woocommerce-tabs {
    display: none !important;
}

/* Full product description tabs - HIDDEN, moved to summary */
/*
.single-product .woocommerce-tabs {
    clear: both;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.single-product .woocommerce-tabs ul.tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

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

.single-product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 0.75rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product .woocommerce-tabs ul.tabs li a:hover {
    color: #009FE3;
    border-bottom-color: #009FE3;
}

.single-product .woocommerce-tabs .panel {
    padding: 1.5rem 0;
    color: #4b5563;
    line-height: 1.7;
}

.single-product .woocommerce-tabs .panel h2 {
    display: none;
}

.single-product .woocommerce-tabs .panel p {
    margin-bottom: 1rem;
}
*/

@media (max-width: 768px) {
    .single-product .product {
        flex-direction: column;
    }
    
    .single-product .product .woocommerce-product-gallery {
        width: 100% !important;
        max-width: 280px;
        margin: 0 auto 1.5rem;
    }
    
    .single-product .product .woocommerce-product-gallery img {
        width: 100% !important;
        height: auto !important;
    }
    
    .single-product .product .summary {
        min-width: 100%;
    }
    
    .single-product .product .woocommerce-product-gallery {
        margin-bottom: 1.5rem;
    }
}

/* Payment logos below Proceed to Checkout */
.payment-methods-logos {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.payment-methods-logos .payment-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.payment-methods-logos .payment-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.payment-methods-logos .payment-icon {
    width: 40px;
    height: 28px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.payment-methods-logos .payment-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #10b981;
}

/* Related Products - Horizontal Scroll */
.single-product .related.products {
    clear: both;
    padding-top: 3rem;
    margin-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.single-product .related.products > h2 {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.single-product .related.products ul.products {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    gap: 1rem !important;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    max-width: 100% !important;
    grid-template-columns: none !important;
}

.single-product .related.products ul.products li.product {
    flex: 0 0 250px;
    scroll-snap-align: start;
    min-width: 250px;
}

/* Scrollbar styling for related products */
.single-product .related.products ul.products::-webkit-scrollbar {
    height: 6px;
}

.single-product .related.products ul.products::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 3px;
}

.single-product .related.products ul.products::-webkit-scrollbar-thumb {
    background: #009FE3;
    border-radius: 3px;
}

.single-product .related.products ul.products::-webkit-scrollbar-thumb:hover {
    background: #0B1120;
}

/* ================================================
   COMPREHENSIVE RESPONSIVE STYLES
   Mobile, Tablet (iPad), Desktop optimizations
   ================================================ */

/* Extra Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .woocommerce ul.products {
        max-width: 1280px;
        gap: 2rem !important;
    }
    
    .single-product .product {
        max-width: 1400px;
        gap: 3rem;
    }
    
    .single-product .product .woocommerce-product-gallery {
        width: 350px !important;
    }
}

/* Large Desktop (1280px - 1439px) */
@media (min-width: 1280px) and (max-width: 1439px) {
    .woocommerce ul.products {
        max-width: 1200px;
    }
}

/* Standard Desktop (1024px - 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        max-width: 960px;
        gap: 1.25rem !important;
    }
    
    .single-product .product .woocommerce-product-gallery {
        width: 260px !important;
    }
}

/* iPad Pro landscape (narrower widths) */
@media (min-width: 1024px) and (max-width: 1180px) and (orientation: landscape) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        max-width: 950px;
    }
}

/* iPad Pro 12.9" Portrait & iPad Air/Pro 11" Landscape (834px - 1024px) */
@media (min-width: 834px) and (max-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        max-width: 850px;
        gap: 1.25rem !important;
    }
    
    .woocommerce ul.products li.product a img {
        height: 180px;
        object-fit: contain;
        padding: 15px;
    }
    
    .single-product .product {
        gap: 1.5rem;
    }
    
    .single-product .product .woocommerce-product-gallery {
        width: 240px !important;
    }
    
    .woocommerce-cart .woocommerce {
        padding: 1.5rem;
    }
}

/* iPad Mini & Standard iPad Portrait (768px - 834px) */
@media (min-width: 768px) and (max-width: 834px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 700px;
        gap: 1.25rem !important;
    }
    
    .woocommerce ul.products li.product a img {
        height: 180px;
        object-fit: contain;
        padding: 15px;
    }
    
    .single-product .product .woocommerce-product-gallery {
        width: 220px !important;
    }
}

/* Large Tablets Landscape / Small Laptops (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-standard .container {
        padding: 0 2rem;
    }
    
    .hero-badge {
        font-size: 9px;
        padding: 6px 10px;
    }
    
    .single-product .related.products ul.products li.product {
        flex: 0 0 220px;
        min-width: 220px;
    }
    
    .payment-methods-logos {
        padding: 1rem;
    }
    
    .payment-methods-logos .payment-icon {
        width: 36px;
        height: 24px;
    }
}

/* Tablet Portrait & Large Phones Landscape (600px - 767px) */
@media (min-width: 600px) and (max-width: 767px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 580px;
        gap: 1rem !important;
    }
    
    .woocommerce ul.products li.product a img {
        height: 160px;
        object-fit: contain;
        padding: 12px;
    }
    
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.8rem;
        padding: 0.75rem 0.75rem 0.5rem;
    }
    
    .woocommerce ul.products li.product .price {
        font-size: 1rem;
        padding: 0 0.75rem 0.75rem;
    }
    
    .woocommerce ul.products li.product .button {
        width: calc(100% - 1.5rem);
        margin: 0 0.75rem 0.75rem;
        padding: 0.6rem 0.75rem;
        font-size: 0.65rem;
    }
    
    .single-product .product {
        flex-direction: column;
        padding: 1.5rem 1rem;
    }
    
    .single-product .product .woocommerce-product-gallery {
        width: 100% !important;
        max-width: 320px;
        margin: 0 auto 1.5rem;
    }
    
    .single-product .related.products ul.products li.product {
        flex: 0 0 200px;
        min-width: 200px;
    }
}

/* Standard Mobile Phones (481px - 599px) */
@media (min-width: 481px) and (max-width: 599px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 480px;
        gap: 0.75rem !important;
    }
    
    .woocommerce ul.products li.product a img {
        height: 140px;
        object-fit: contain;
        padding: 10px;
    }
    
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.75rem;
        padding: 0.5rem 0.5rem 0.25rem;
    }
    
    .woocommerce ul.products li.product .price {
        font-size: 0.9rem;
        padding: 0 0.5rem 0.5rem;
    }
    
    .woocommerce ul.products li.product .button {
        width: calc(100% - 1rem);
        margin: 0 0.5rem 0.5rem;
        padding: 0.5rem;
        font-size: 0.6rem;
    }
    
    .single-product .product {
        padding: 1rem;
    }
    
    .single-product .product .product_title {
        font-size: 1.25rem;
    }
    
    .single-product .product .price {
        font-size: 1.25rem;
    }
}

/* Small Mobile Phones (320px - 480px) */
@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
        max-width: 320px;
        gap: 1rem !important;
    }
    
    .woocommerce ul.products li.product a img {
        height: 200px;
        object-fit: contain;
        padding: 15px;
    }
    
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.875rem;
        padding: 1rem 1rem 0.5rem;
    }
    
    .woocommerce ul.products li.product .price {
        font-size: 1.125rem;
        padding: 0 1rem 1rem;
    }
    
    .woocommerce ul.products li.product .button {
        width: calc(100% - 2rem);
        margin: 0 1rem 1rem;
        padding: 0.75rem 1rem;
        font-size: 0.7rem;
    }
    
    .single-product .product {
        padding: 1rem 0.75rem;
    }
    
    .single-product .product .woocommerce-product-gallery {
        max-width: 100%;
    }
    
    .single-product .product .product_title {
        font-size: 1.125rem;
    }
    
    .single-product .product .price {
        font-size: 1.125rem;
    }
    
    .single-product .product .single_add_to_cart_button,
    .single-product .product button.button.alt {
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 0.75rem;
    }
    
    .single-product .related.products ul.products li.product {
        flex: 0 0 260px;
        min-width: 260px;
    }
    
    .single-product .related.products > h2 {
        font-size: 1.25rem;
    }
    
    /* Cart page mobile */
    .woocommerce-cart .woocommerce {
        padding: 1rem 0.75rem;
    }
    
    .woocommerce table.cart th,
    .woocommerce table.cart td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .woocommerce table.cart .product-thumbnail img {
        width: 50px;
    }
    
    .woocommerce .cart_totals h2 {
        font-size: 1.25rem;
    }
    
    .payment-methods-logos {
        padding: 1rem;
    }
    
    .payment-methods-logos .payment-icon {
        width: 32px;
        height: 22px;
    }
    
    .payment-methods-logos .payment-title {
        font-size: 0.6rem;
    }
    
    .payment-methods-logos .payment-secure {
        font-size: 0.6rem;
    }
}

/* Extra Small Phones (under 360px) */
@media (max-width: 359px) {
    .woocommerce ul.products {
        max-width: 280px;
    }
    
    .woocommerce ul.products li.product a img {
        height: 160px;
        object-fit: contain;
        padding: 10px;
    }
    
    .single-product .product {
        padding: 0.75rem;
    }
    
    .single-product .product .product_title {
        font-size: 1rem;
    }
    
    .woocommerce table.cart {
        font-size: 0.7rem;
    }
    
    .woocommerce table.cart .product-thumbnail {
        display: none;
    }
}

/* Shop NEW badge responsive */
@media (max-width: 1024px) {
    .shop-new-badge {
        top: -6px;
        right: -6px;
        font-size: 6px;
        padding: 2px 4px;
    }
}

/* Hero section responsive improvements */
@media (max-width: 768px) {
    .hero-standard .container h1 {
        font-size: 1.75rem !important;
    }
    
    .hero-standard .container p {
        font-size: 0.75rem;
    }
    
    .hero-badge {
        font-size: 8px !important;
        padding: 5px 8px !important;
    }
    
    .hero-badge-icon {
        width: 16px !important;
        height: 16px !important;
    }
    
    .hero-badge-icon svg {
        width: 8px !important;
        height: 8px !important;
    }
}

@media (max-width: 480px) {
    .hero-standard .container h1 {
        font-size: 1.5rem !important;
    }
    
    .hero-badge {
        font-size: 7px !important;
        padding: 4px 6px !important;
    }
}

/* Shop search bar responsive */
.shop-search {
    width: 100%;
}

@media (max-width: 768px) {
    .shop-search input[type="search"] {
        font-size: 14px;
        padding: 0.75rem 1rem 0.75rem 2.5rem;
    }
    
    .shop-search button[type="submit"] {
        padding: 0.375rem 0.75rem;
        font-size: 0.65rem;
    }
    
    .shop-search svg {
        width: 1rem;
        height: 1rem;
        left: 0.75rem;
    }
}

/* Touch-friendly improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    .woocommerce ul.products li.product .button {
        padding: 1rem;
        min-height: 48px;
    }
    
    .single-product .product .single_add_to_cart_button,
    .single-product .product button.button.alt {
        min-height: 52px;
    }
    
    .woocommerce .checkout-button,
    .woocommerce .wc-proceed-to-checkout a {
        min-height: 52px;
        padding: 1rem;
    }
    
    .woocommerce .return-to-shop a {
        min-height: 52px;
        padding: 1rem 2rem;
    }
}

/* Landscape orientation fixes for phones */
@media (max-width: 896px) and (orientation: landscape) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        max-width: 100%;
        gap: 0.75rem !important;
    }
    
    .woocommerce ul.products li.product a img {
        height: 100px;
        object-fit: contain;
        padding: 8px;
    }
    
    .single-product .product {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .single-product .product .woocommerce-product-gallery {
        width: 200px !important;
        max-width: 200px !important;
    }
}

/* Print styles */
@media print {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .woocommerce ul.products li.product .button {
        display: none;
    }
}
/* ==========================================
   ADD TO BASKET NOTIFICATION POPUP
   ========================================== */

.cyclefix-cart-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    padding: 1.25rem 1.75rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 15px 50px rgba(16, 185, 129, 0.5), 0 0 0 4px rgba(16, 185, 129, 0.2);
    z-index: 999999;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    font-weight: 700;
    font-size: 1rem;
}

.cyclefix-cart-notification.show {
    transform: translateX(0);
    opacity: 1;
    animation: notification-bounce 0.5s ease-out;
}

@keyframes notification-bounce {
    0% { transform: translateX(120%); }
    50% { transform: translateX(-10px); }
    70% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

.cyclefix-cart-notification svg {
    flex-shrink: 0;
}

.cyclefix-cart-notification .notification-view-btn {
    background: #fff;
    color: #10b981;
    padding: 0.4rem 0.8rem;
    border-radius: 0.4rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    margin-left: 0.5rem;
    transition: background 0.2s;
}

.cyclefix-cart-notification .notification-view-btn:hover {
    background: #f0fdf4;
}

@media (max-width: 480px) {
    .cyclefix-cart-notification {
        top: auto;
        bottom: 80px;
        right: 10px;
        left: 10px;
        justify-content: center;
        font-size: 0.85rem;
    }
}

/* ==========================================
   CRITICAL: FORCE CART PAGE VISIBILITY
   This MUST be at the end to override all other rules
   ========================================== */

body.woocommerce-cart .woocommerce-content,
body.woocommerce-cart .woocommerce-content > *,
body.woocommerce-cart .woocommerce,
body.woocommerce-cart .woocommerce > * {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.woocommerce-cart form.woocommerce-cart-form {
    display: block !important;
    visibility: visible !important;
}

body.woocommerce-cart table.shop_table.shop_table_responsive.cart.woocommerce-cart-form__contents,
body.woocommerce-cart table.shop_table.cart,
body.woocommerce-cart table.cart {
    display: table !important;
    visibility: visible !important;
    width: 100% !important;
    border-collapse: collapse;
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

body.woocommerce-cart table.shop_table thead {
    display: table-header-group !important;
    background: #f8fafc;
}

body.woocommerce-cart table.shop_table tbody {
    display: table-row-group !important;
}

body.woocommerce-cart table.shop_table tr {
    display: table-row !important;
}

body.woocommerce-cart table.shop_table th,
body.woocommerce-cart table.shop_table td {
    display: table-cell !important;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

body.woocommerce-cart table.shop_table .product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 0.5rem;
    background: #f8fafc;
}

body.woocommerce-cart table.shop_table .product-name a {
    color: #0B1120;
    font-weight: 600;
    text-decoration: none;
}

body.woocommerce-cart table.shop_table .product-price,
body.woocommerce-cart table.shop_table .product-subtotal {
    font-weight: 700;
    color: #009FE3;
}

body.woocommerce-cart table.shop_table .product-quantity .qty {
    width: 56px;
    height: 40px;
    padding: 0 0.4rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 800;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.woocommerce-cart table.shop_table .product-quantity .qty:focus {
    outline: none;
    border-color: #009FE3;
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.2);
}

/* Custom cart quantity wrapper with +/- buttons */
.cyclefix-cart-wrapper .quantity-wrapper {
    display: flex;
    align-items: center;
}

.cyclefix-cart-wrapper .qty-btn {
    transition: background 0.15s ease, color 0.15s ease;
    user-select: none;
}

.cyclefix-cart-wrapper .qty-btn:hover {
    background: #e5e7eb !important;
    color: #009FE3 !important;
}

.cyclefix-cart-wrapper .qty-btn:active {
    background: #d1d5db !important;
}

/* Hide native number input spinners */
.cyclefix-cart-wrapper input.qty::-webkit-outer-spin-button,
.cyclefix-cart-wrapper input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cyclefix-cart-wrapper input.qty {
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
}

.cyclefix-cart-wrapper .quantity .qty,
.cyclefix-cart-wrapper input.qty {
    width: 50px;
    height: 36px;
    padding: 0;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    background: #fff;
}

.cyclefix-cart-wrapper input.qty:focus {
    outline: none;
}

body.woocommerce-cart table.shop_table .product-remove a {
    color: #ef4444;
    font-size: 1.5rem;
    text-decoration: none;
}

body.woocommerce-cart .cart-collaterals {
    display: block !important;
    visibility: visible !important;
    margin-top: 2rem;
}

body.woocommerce-cart .cart_totals {
    display: block !important;
    visibility: visible !important;
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    max-width: 400px;
    margin-left: auto;
}

body.woocommerce-cart .cart_totals table {
    display: table !important;
    width: 100%;
}

body.woocommerce-cart .cart_totals th,
body.woocommerce-cart .cart_totals td {
    display: table-cell !important;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

body.woocommerce-cart .wc-proceed-to-checkout {
    display: block !important;
    visibility: visible !important;
    margin-top: 1rem;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    display: block !important;
    width: 100%;
    padding: 1rem;
    background: #009FE3;
    color: #fff !important;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background 0.2s;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background: #0B1120;
}

body.woocommerce-cart .actions {
    display: block !important;
    visibility: visible !important;
}

body.woocommerce-cart .actions button,
body.woocommerce-cart .actions input[type="submit"] {
    background: #0B1120;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.2s;
}

body.woocommerce-cart .actions button:hover,
body.woocommerce-cart .actions input[type="submit"]:hover {
    background: #009FE3;
}

/* ==========================================
   FORCE PRODUCT GRID IMAGES TO CONTAIN (NOT CROP)
   Amazon-style: white box with perfectly fitted image
   NUCLEAR OPTION - Maximum specificity
   ========================================== */

/* Product card container */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products li.product,
body .products li.product,
body.woocommerce ul.products li.product {
    background: #ffffff !important;
    border-radius: 16px !important;
    overflow: visible !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    padding-bottom: 15px !important;
}

.woocommerce ul.products li.product:hover,
ul.products li.product:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

/* Image wrapper - MUST NOT clip */
.woocommerce ul.products li.product a,
.woocommerce ul.products li.product .woocommerce-loop-product__link,
ul.products li.product a,
ul.products li.product .woocommerce-loop-product__link,
body .products li.product a,
body .products li.product .woocommerce-loop-product__link {
    display: block !important;
    overflow: visible !important;
}

/* Image container wrapper */
.woocommerce ul.products li.product .attachment-woocommerce_thumbnail,
.woocommerce ul.products li.product .wp-post-image,
ul.products li.product .attachment-woocommerce_thumbnail,
ul.products li.product .wp-post-image,
body .products li.product img {
    width: 100% !important;
    height: 200px !important;
    object-fit: contain !important;
    object-position: center center !important;
    padding: 15px !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

/* Product images - Amazon style - EVERY POSSIBLE SELECTOR */
.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img,
ul.products li.product a img,
.products li.product a img,
body .woocommerce ul.products li.product img,
body .woocommerce-page ul.products li.product img,
body ul.products li.product img,
.woocommerce .products .product img,
.woocommerce-page .products .product img {
    object-fit: contain !important;
    object-position: center center !important;
    width: 100% !important;
    height: 200px !important;
    padding: 15px !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

/* ==========================================
   SINGLE PRODUCT PRICE - FORCE BLUE
   ========================================== */

.single-product .product .price,
.single-product .product .price .woocommerce-Price-amount,
.single-product .product .price .amount,
.single-product .product .summary .price,
.single-product .product .summary .price .woocommerce-Price-amount,
.single-product .product .summary .price .amount,
.single-product .product p.price,
.single-product .product p.price .woocommerce-Price-amount,
.single-product .product p.price .amount,
body.single-product .price,
body.single-product .price *,
body.single-product .woocommerce-Price-amount {
    color: #009FE3 !important;
}

.single-product .product .price del,
.single-product .product .price del .woocommerce-Price-amount,
.single-product .product .price del .amount {
    color: #9ca3af !important;
}

/* ==========================================
   PULSATE ANIMATION FOR BUTTONS
   ========================================== */

@keyframes pulsate-blue {
    0% { box-shadow: 0 0 0 0 rgba(0, 159, 227, 0.7); }
    50% { box-shadow: 0 0 0 12px rgba(0, 159, 227, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 159, 227, 0); }
}

/* Debug badge (staging only, enable with ?cfl_css_debug=1) */
.cfl-css-debug-badge {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 999999;
    background: #0B1120;
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   WooCommerce Blocks Checkout (wc-block)
   ========================================== */
.wc-block-checkout,
.wp-block-woocommerce-checkout {
    max-width: 880px !important;
    margin: 0 auto !important;
    padding: 1.5rem !important;
}

.wc-block-checkout__content,
.wp-block-woocommerce-checkout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.wc-block-checkout__main,
.wc-block-checkout__sidebar {
    width: 100% !important;
}

.wc-block-checkout__sidebar {
    order: 2;
}

.wc-block-checkout__main {
    order: 1;
}

.wc-block-components-text-input,
.wc-block-components-textarea,
.wc-block-components-select {
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #fff;
    color: #0B1120;
}

.wc-block-components-text-input:focus-within,
.wc-block-components-select:focus-within,
.wc-block-components-textarea:focus-within {
    border-color: #009FE3;
    box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.15);
}

.wc-block-components-text-input input,
.wc-block-components-textarea textarea,
.wc-block-components-select select {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.wc-block-components-title,
.wc-block-checkout__title {
    color: #0B1120;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wc-block-components-radio-control__label,
.wc-block-components-checkbox__label {
    font-weight: 700;
    color: #0B1120;
    white-space: nowrap;
}

.wc-block-components-button:not(.is-link) {
    background: #009FE3;
    color: #fff;
    border-radius: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.wc-block-components-button:not(.is-link):hover {
    background: #0077B3;
}

.wc-block-components-order-summary,
.wc-block-checkout__sidebar,
.wc-block-checkout__main {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Center alignwide checkout block */
.wp-block-woocommerce-checkout.alignwide,
.wc-block-checkout.alignwide {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 880px !important;
}

@media (max-width: 768px) {
    .wc-block-checkout,
    .wp-block-woocommerce-checkout {
        padding: 1rem;
    }
}

/* Extra strong centering for classic checkout */
body.woocommerce-checkout #customer_details,
body.woocommerce-checkout #order_review {
    float: none !important;
    width: 100% !important;
    max-width: 880px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Extra strong centering for Blocks checkout */
body.woocommerce-checkout .wc-block-checkout__content {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    max-width: 880px !important;
    margin: 0 auto !important;
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-components-order-summary {
    width: 100% !important;
    max-width: 880px !important;
    margin: 0 auto !important;
    float: none !important;
    position: static !important;
    justify-self: stretch !important;
}
