/* NUCLEAR FIX: Filled header on product pages - ULTRA STRENGTH */
/* Use the same dark gradient background as the scrolled header state */
body.single-product header,
body.single-product .header,
body.single-product header.header,
body.woocommerce-page header,
body.woocommerce-page .header,
body.woocommerce-page header.header,
.single-product header,
.single-product .header,
.woocommerce-page header,
.woocommerce-page .header {
    /* Copy the scrolled header background styles */
    background-color: rgba(26, 29, 35, 0.95) !important;
    background: linear-gradient(135deg, #1A1D23 0%, #2D3748 100%) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    opacity: 1 !important;
}

/* NUCLEAR FIX: Active nav link highlighting */
.nav__link.active,
a.nav__link.active {
    color: #FFCD00 !important;
}

/* NUCLEAR FIX: WooCommerce orderby form select - override ALL browser defaults */
form.woocommerce-ordering select,
.woocommerce-ordering select,
.woocommerce form.woocommerce-ordering select.orderby,
select[name="orderby"] {
    display: inline-block !important;
    width: auto !important;
    min-width: 220px !important;
    max-width: 100% !important;
    height: auto !important;
    padding: 12px 45px 12px 18px !important;
    margin: 0 !important;

    /* Typography */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #1a1a1a !important;
    text-align: left !important;

    /* Borders & Background */
    border: 2px solid #dde2e5 !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    box-shadow: none !important;
    outline: none !important;

    /* Remove ALL browser styling */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;

    /* Custom dropdown arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px 16px !important;

    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

form.woocommerce-ordering select:hover,
.woocommerce-ordering select:hover,
select[name="orderby"]:hover {
    border-color: #b0b0b0 !important;
}

form.woocommerce-ordering select:focus,
.woocommerce-ordering select:focus,
select[name="orderby"]:focus {
    border-color: #FFCD00 !important;
    box-shadow: 0 0 0 3px rgba(255, 205, 0, 0.15) !important;
    outline: none !important;
}

/* ============================================
   GLOBAL PREMIUM FORM STYLES
   ============================================ */

/* Input Fields - Consistent with Machine Manager */
.woocommerce-Input,
.woocommerce-edit-address input.input-text,
.woocommerce-edit-account input.input-text,
.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea,
.contact-form .form-input,
.contact-form .form-textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
    padding: 12px 18px !important;
    border: 2px solid #e9ecef !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    transition: all 0.2s !important;
    background: #fff !important;
    color: #1a1a1a !important;
    box-shadow: none !important;
    height: auto !important;
}

.woocommerce-Input:focus,
.woocommerce-edit-address input.input-text:focus,
.woocommerce-edit-account input.input-text:focus,
.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus,
.contact-form .form-input:focus,
.contact-form .form-textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: #FFCD00 !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(255, 205, 0, 0.15) !important;
}

/* Fix for WooCommerce labels */
.woocommerce-form-row label {
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.03em !important;
    margin-bottom: 0.5rem !important;
    display: inline-block !important;
}

/* Unified Buttons */
.woocommerce button.button,
.woocommerce-page button.button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button.alt,
.woocommerce-page button.button.alt,
.ebo-primary-btn {
    background-color: #FFCD00 !important;
    color: #000000 !important;
    font-weight: 800 !important;
    padding: 14px 32px !important;
    border-radius: 8px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.05em !important;
    transition: all 0.2s !important;
    border: none !important;
    box-shadow: 0 4px 0px #d4ab00 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.woocommerce button.button:hover,
.woocommerce-page button.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.ebo-primary-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 0px #b08d00 !important;
    background-color: #ffd700 !important;
}

.woocommerce button.button:active,
.ebo-primary-btn:active {
    transform: translateY(2px) !important;
    box-shadow: none !important;
}

/* ============================================
   NUCLEAR FIX: WOOCOMMERCE NOTICES
   Consistent premium look, removes broken icons/boxes.
   ============================================ */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    background-color: #ffffff !important;
    padding: 1.5rem 2rem !important;
    border-radius: 12px !important;
    border: 1px solid #e9ecef !important;
    border-top-width: 5px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 2.5rem !important;
    list-style: none outside !important;
    color: #1a1a1a !important;
    position: relative !important;
}

/* Specific colors */
.woocommerce-info {
    border-top-color: #FFCD00 !important;
}

.woocommerce-message {
    border-top-color: #2ecc71 !important;
}

.woocommerce-error {
    border-top-color: #e74c3c !important;
    padding-left: 2rem !important;
}

/* NUCLEAR: Remove the broken/glitchy standard icons */
.woocommerce-error::before,
.woocommerce-info::before,
.woocommerce-message::before,
.woocommerce-error::after,
.woocommerce-info::after,
.woocommerce-message::after {
    content: none !important;
    display: none !important;
    background: none !important;
    border: none !important;
}

/* Fallback for potential nested elements within notices that might act as icons */
.woocommerce-error i,
.woocommerce-info i,
.woocommerce-message i,
.woocommerce-error [class*="icon"],
.woocommerce-info [class*="icon"],
.woocommerce-message [class*="icon"] {
    display: none !important;
}

/* Smooth out the list in errors */
.woocommerce-error li {
    padding: 0 !important;
    margin: 0 !important;
}

/* ============================================
   FORCE 3-COLUMN PRODUCT GRID ON WEBBSHOP
   ============================================ */
.woocommerce-grid-wrapper ul.products,
.woocommerce-grid-wrapper .products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

.woocommerce-grid-wrapper ul.products li.product,
.woocommerce-grid-wrapper .products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
}

/* Tablet: 2 columns */
@media (max-width: 900px) {

    .woocommerce-grid-wrapper ul.products,
    .woocommerce-grid-wrapper .products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile: 1 column */
@media (max-width: 600px) {

    .woocommerce-grid-wrapper ul.products,
    .woocommerce-grid-wrapper .products {
        grid-template-columns: 1fr !important;
    }
}