/**
 * Markoon WooCommerce - Frontend Styles
 * Modern 2025 Design - v1.3.30
 * WCAG AA Compliant
 */

/* ========================================
   CSS VARIABLES
   ======================================== */

:root {
    /* Mapping to Elementor Global Colors with Fallbacks */
    --markoon-wc-primary: var(--e-global-color-primary, #0066c0);
    --markoon-wc-primary-dark: var(--e-global-color-secondary, #004d99);
    /* Using Secondary for hover/dark states */
    --markoon-wc-text: var(--e-global-color-text, #1a1a1a);
    --markoon-wc-accent: var(--e-global-color-accent, #66b3ff);

    /* Status Colors (Elementor usually doesn't have these, keeping defaults) */
    --markoon-wc-success: #10b981;
    --markoon-wc-warning: #f59e0b;
    --markoon-wc-error: #ef4444;

    --markoon-wc-radius: var(--markoon-wc-border-radius, 8px);
    --markoon-wc-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ========================================
   SUBCATEGORY GRID
   ======================================== */

.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.subcategory-card {
    position: relative;
    background: white;
    border-radius: var(--markoon-wc-radius);
    box-shadow: var(--markoon-wc-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.subcategory-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.subcategory-card:focus {
    outline: 3px solid rgba(0, 102, 192, 0.4);
    outline-offset: 2px;
}

.subcategory-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.subcategory-card-content {
    padding: 20px;
}

.subcategory-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--markoon-wc-text);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.subcategory-card-count {
    font-size: 14px;
    color: #666;
    /* Keep subtle for secondary text */
    margin: 0;
}

/* ========================================
   STOCK DISPLAY
   ======================================== */

/* Base Stock Badge */
.markoon-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--markoon-wc-radius, 6px);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.markoon-stock-icon {
    font-size: 16px;
    line-height: 1;
}

.markoon-stock-text {
    letter-spacing: 0.3px;
}

/* In Stock - Green (WCAG AA Compliant) */
.markoon-stock-in-stock {
    background-color: #d1f4e0;
    color: #0d5c2f;
}

.markoon-stock-in-stock .markoon-stock-icon {
    color: #0d5c2f;
}

/* Low Stock - Orange/Yellow (WCAG AA Compliant) */
.markoon-stock-low-stock {
    background-color: #fff3cd;
    color: #7a4f01;
}

.markoon-stock-low-stock .markoon-stock-icon {
    color: #7a4f01;
}

/* Out of Stock - Red (WCAG AA Compliant) */
.markoon-stock-out-of-stock {
    background-color: #f8d7da;
    color: #721c24;
}

.markoon-stock-out-of-stock .markoon-stock-icon {
    color: #721c24;
}

/* Hover Effects */
.markoon-stock-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Focus State for Accessibility */
.markoon-stock-badge:focus-within {
    outline: 3px solid rgba(0, 102, 192, 0.4);
    outline-offset: 2px;
}

/* Legacy Stock Badge (for backward compatibility) */
.stock-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--markoon-wc-radius, 20px);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    vertical-align: middle;
}

.stock-badge.in-stock {
    background: var(--markoon-wc-success);
    color: white;
}

.stock-badge.out-of-stock {
    background: var(--markoon-wc-error);
    color: white;
}

/* ========================================
   CATEGORY LIST
   ======================================== */

.custom-category-list {
    background: white;
    border-radius: var(--markoon-wc-radius);
    box-shadow: var(--markoon-wc-shadow);
    padding: 20px;
    margin: 24px 0;
}

.custom-category-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-category-list li {
    margin: 0;
    padding: 0;
}

.custom-category-list a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: var(--markoon-wc-radius, 6px);
    transition: all 0.2s ease;
    font-weight: 500;
}

.custom-category-list a:hover {
    background: #f5f5f5;
    color: var(--markoon-wc-primary);
}

.custom-category-list a:focus {
    outline: 3px solid rgba(0, 102, 192, 0.3);
    outline-offset: 2px;
}

.custom-category-list .category-count {
    margin-left: auto;
    font-size: 13px;
    color: #666;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: var(--markoon-wc-radius, 12px);
}

/* ========================================
   OFFCANVAS FILTER
   ======================================== */

.custom-offcanvas-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--markoon-wc-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--markoon-wc-radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 102, 192, 0.3);
}

.custom-offcanvas-button:hover {
    background: var(--markoon-wc-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 192, 0.4);
}

.custom-offcanvas-button:focus {
    outline: 3px solid rgba(0, 102, 192, 0.4);
    outline-offset: 2px;
}

/* ========================================
   REGISTRATION NOTICE
   ======================================== */

.registration-notice {
    background: #f0f9ff;
    border-left: 4px solid var(--markoon-wc-primary);
    padding: 16px 20px;
    border-radius: var(--markoon-wc-radius, 6px);
    margin: 0 0 20px 0;
}

.registration-notice h4 {
    margin: 0 0 8px 0;
    color: var(--markoon-wc-primary);
    font-size: 16px;
    font-weight: 700;
}

.registration-notice p {
    margin: 0;
    color: #1a1a1a;
    font-size: 14px;
    line-height: 1.6;
}

/* ========================================
   GRID/LIST VIEW TOGGLE
   ======================================== */

.markoon-view-toggle {
    display: inline-flex !important;
    gap: 8px !important;
    margin-bottom: 20px !important;
    background: #f3f4f6 !important;
    padding: 4px !important;
    border-radius: var(--markoon-wc-radius, 8px) !important;
    border: 1px solid #e5e7eb !important;
}

.markoon-view-btn {
    background: transparent !important;
    border: none !important;
    color: #6b7280 !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    border-radius: calc(var(--markoon-wc-radius, 8px) - 2px) !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.markoon-view-btn:hover {
    background: rgba(255, 255, 255, 0.5) !important;
    color: #374151 !important;
}

.markoon-view-btn.active {
    background: #fff !important;
    color: var(--markoon-wc-primary) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    font-weight: bold !important;
}

.markoon-view-btn .dashicons {
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    line-height: 20px !important;
}

/* ==========================================================================
   Modern Login Form & B2BKing Registration
   ========================================================================== */

/* If B2B is NOT active, format normal WooCommerce login side-by-side */
.markoon-modern-login:not(.markoon-b2b-active) #customer_login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .markoon-modern-login:not(.markoon-b2b-active) #customer_login {
        grid-template-columns: 1fr;
    }
}

.markoon-modern-login #customer_login .u-column1,
.markoon-modern-login #customer_login .u-column2 {
    width: 100%;
    float: none;
    max-width: 100%;
}

/* (Rule removed as duplication issue is fixed at the template level by wrapping the native form instead of inserting a duplicate shortcode) */

/* Style the B2B wrapper to look full-width and clean */
.markoon-modern-login .markoon-b2bking-wrapper {
    width: 100%;
    margin-bottom: 30px;
}

.markoon-modern-login .markoon-b2bking-wrapper #customer_login {
    display: flex !important;
    flex-wrap: wrap;
    gap: 40px;
    margin: 0;
}

/* Ensure B2BKing internal columns don't break */
.markoon-modern-login .markoon-b2bking-wrapper #customer_login .u-column1,
.markoon-modern-login .markoon-b2bking-wrapper #customer_login .u-column2 {
    flex: 1 1 400px;
}

/* Removed redundant hide rule for Anmelden heading to fix alignment */

/* Form Container Styling */
.markoon-modern-login .woocommerce-form-login,
.markoon-modern-login .woocommerce-form-register,
.markoon-modern-login .markoon-b2bking-wrapper .b2bking_registration_form_container,
.markoon-modern-login .markoon-b2bking-wrapper form {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 30px;
    border-radius: var(--markoon-wc-border-radius, 8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.markoon-modern-login h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Input Fields Styling */
.markoon-modern-login .woocommerce-form-login .input-text,
.markoon-modern-login .woocommerce-form-register .input-text,
.markoon-modern-login .markoon-b2bking-wrapper input[type="text"],
.markoon-modern-login .markoon-b2bking-wrapper input[type="email"],
.markoon-modern-login .markoon-b2bking-wrapper input[type="password"],
.markoon-modern-login .markoon-b2bking-wrapper select {
    background: #f8f9fa;
    border: 1px solid transparent;
    padding: 12px 15px;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.markoon-modern-login .woocommerce-form-login .input-text:focus,
.markoon-modern-login .woocommerce-form-register .input-text:focus,
.markoon-modern-login .markoon-b2bking-wrapper input:focus,
.markoon-modern-login .markoon-b2bking-wrapper select:focus {
    border-color: var(--markoon-wc-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--markoon-wc-primary-rgb, 0, 102, 192), 0.1);
    background: #fff;
}

.markoon-modern-login .woocommerce-form-row {
    margin-bottom: 20px;
}

.markoon-modern-login .woocommerce-form-login label,
.markoon-modern-login .woocommerce-form-register label,
.markoon-modern-login .markoon-b2bking-wrapper label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
    display: block;
}

/* Login Actions Row (Button + Checkbox) */
.markoon-modern-login .woocommerce-form-login p.form-row:last-of-type,
.markoon-modern-login .woocommerce-form-register p.form-row:last-of-type {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

/* Button Styling */
.markoon-modern-login .woocommerce-Button.button,
.markoon-modern-login .woocommerce-form-register .woocommerce-Button.button,
.markoon-modern-login .markoon-b2bking-wrapper .b2bking_registration_submit_button {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-weight: 700;
    text-transform: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Optional icon for buttons using pseudo-element */
.markoon-modern-login .woocommerce-Button.button::after,
.markoon-modern-login .markoon-b2bking-wrapper .b2bking_registration_submit_button::after {
    content: '→';
    font-family: inherit;
    margin-left: 8px;
    font-size: 1.2em;
    font-weight: normal;
    transition: transform 0.2s ease;
}

.markoon-modern-login .woocommerce-Button.button:hover::after,
.markoon-modern-login .markoon-b2bking-wrapper .b2bking_registration_submit_button:hover::after {
    transform: translateX(4px);
}

.markoon-modern-login .woocommerce-Button.button:hover,
.markoon-modern-login .markoon-b2bking-wrapper .b2bking_registration_submit_button:hover {
    background: var(--markoon-wc-primary);
    color: #fff;
}

/* Remember me Checkbox */
.markoon-modern-login .woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    margin: 0;
}

.markoon-modern-login .woocommerce-form-login__rememberme input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
}

/* Lost Password Link */
.markoon-modern-login .woocommerce-LostPassword {
    margin-top: 15px;
    font-size: 14px;
    text-align: left;
    width: 100%;
    display: block;
}

.markoon-modern-login .woocommerce-LostPassword a {
    color: var(--markoon-wc-primary);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.markoon-modern-login .woocommerce-LostPassword a:hover {
    color: var(--markoon-wc-primary);
}

/* B2BKing specifics */
.markoon-modern-login .markoon-b2bking-wrapper .b2bking_form_row {
    margin-bottom: 20px;
}

.markoon-modern-login .markoon-b2bking-wrapper h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1em;
}

/* ========================================
   ELEMENTOR LOOP GRID SUPPORT (AUTO & FORCED)
   ======================================== */

/* 1. Force Container to be a Single Column */
body.markoon-view-list .elementor-grid-2 .elementor-grid,
body.markoon-view-list .elementor-widget-loop-grid .elementor-loop-container,
body.markoon-view-list .elementor-widget-loop-grid .elementor-grid {
    display: grid !important;
    grid-template-columns: repeat(1, 1fr) !important;
    --grid-template-columns: repeat(1, 1fr) !important;
    /* Override Elementor Variable */
    gap: 20px !important;
}

/* 2. Loop Items - Horizontal Layout */
body.markoon-view-list .markoon-list-layout {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    width: 100% !important;
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--markoon-wc-radius, 8px);
    padding: 20px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    gap: 20px !important;
}

/* 3. Image - Fixed Width on Left */
body.markoon-view-list .markoon-list-layout>.elementor-widget-image {
    flex-shrink: 0 !important;
    width: 200px !important;
    max-width: 200px !important;
    order: -1 !important;
    /* Ensure it stays first */
}

/* 4. Content Container - Takes Remaining Space */
body.markoon-view-list .markoon-list-layout>.e-con {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 200px !important;
    /* Match image height for alignment */
}

/* 5. Ensure buttons stay at bottom */
body.markoon-view-list .markoon-list-layout .elementor-widget-button {
    margin-top: auto !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .subcategory-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }

    .subcategory-card-image {
        height: 150px;
    }

    .subcategory-card-content {
        padding: 16px;
    }

    .subcategory-card-title {
        font-size: 16px;
    }

    /* Stack image on top in mobile list view */
    body.markoon-view-list .markoon-list-layout {
        flex-direction: column !important;
    }

    body.markoon-view-list .markoon-list-layout>.elementor-widget-image {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    .subcategory-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stock-badge {
        display: block;
        margin: 8px 0 0 0;
        text-align: center;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {

    .subcategory-card,
    .sku-copy-btn,
    .custom-offcanvas-button {
        transition: none;
    }

    .subcategory-card:hover {
        transform: none;
    }
}

/* ========================================
   DARK MODE SUPPORT
   ======================================== */

@media (prefers-color-scheme: dark) {

    .subcategory-card,
    .custom-category-list {
        background: #1a1a1a;
        border: 1px solid #3a3a3a;
    }

    .subcategory-card-title,
    .custom-category-list a {
        color: #e5e5e5;
    }

    .subcategory-card-count,
    .custom-category-list .category-count {
        color: #a0a0a0;
    }

    .custom-category-list a:hover {
        background: #252525;
    }

    .registration-notice {
        background: #1a2332;
        border-left-color: var(--markoon-wc-primary);
    }

    .registration-notice h4 {
        color: #66b3ff;
    }

    .registration-notice p {
        color: #e5e5e5;
    }
}

/* ========================================
   RECENTLY VIEWED GRID SHORTCODE
   ======================================== */

.markoon-recently-viewed-grid {
    display: grid;
    gap: 20px;
    width: 100%;
    align-items: stretch;
}

.markoon-rv-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Explicit Column Classes */
.markoon-recently-viewed-grid.markoon-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.markoon-recently-viewed-grid.markoon-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Ensure Elementor content inside fills height */
.markoon-rv-item .elementor {
    height: 100%;
}

.markoon-rv-item .elementor-section,
.markoon-rv-item .elementor-container,
.markoon-rv-item .elementor-column,
.markoon-rv-item .elementor-widget-wrap {
    height: 100%;
    flex: 1;
}

/* Heading Style */
.markoon-rv-heading {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1a1a1a;
}

/* Tablet (Elementor default breakpoint is 1024px) */
@media (max-width: 1024px) {

    .markoon-recently-viewed-grid,
    .markoon-recently-viewed-grid.markoon-cols-3,
    .markoon-recently-viewed-grid.markoon-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile */
@media (max-width: 767px) {

    .markoon-recently-viewed-grid,
    .markoon-recently-viewed-grid.markoon-cols-3,
    .markoon-recently-viewed-grid.markoon-cols-4 {
        grid-template-columns: 1fr !important;
    }

    .markoon-recently-viewed-grid .markoon-rv-item {
        text-align: left !important;
    }

    .markoon-recently-viewed-grid .markoon-rv-item * {
        text-align: left !important;
    }
}

/* ========================================
   DYNAMIC PRODUCT TABS (ACCORDION)
   ======================================== */

.markoon-accordion {
    margin: 24px 0;
    border: 1px solid #e5e7eb;
    border-radius: var(--markoon-wc-radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.markoon-accordion-item {
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.markoon-accordion-item:last-child {
    border-bottom: none;
}

.markoon-accordion-header {
    padding: 18px 24px;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    transition: all 0.2s ease;
    user-select: none;
}

.markoon-accordion-header:hover {
    background: #f9fafb;
}

.markoon-accordion-title {
    font-weight: 600;
    font-size: 16px;
    color: #111827;
}

/* Custom Icon */
.markoon-accordion-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    color: #6b7280;
}

.markoon-accordion-icon::before {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -4px;
}

/* Open State */
.markoon-accordion-item[open] .markoon-accordion-header {
    background: #f3f4f6;
    color: var(--markoon-wc-primary);
}

.markoon-accordion-item[open] .markoon-accordion-title {
    color: var(--markoon-wc-primary);
}

.markoon-accordion-item[open] .markoon-accordion-icon {
    transform: rotate(180deg);
    color: var(--markoon-wc-primary);
}

.markoon-accordion-content {
    padding: 24px;
    background: #fff;
    color: #4b5563;
    line-height: 1.7;
    border-top: 1px solid #e5e7eb;
}

/* ========================================
   DOWNLOAD AREA
   ======================================== */

.markoon-downloads-section {
    margin: 32px 0;
}

.markoon-downloads-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #111827;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
    display: inline-block;
}

.markoon-downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.markoon-download-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--markoon-wc-radius);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.markoon-download-card:hover {
    border-color: var(--markoon-wc-primary);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.markoon-download-icon {
    width: 48px;
    height: 48px;
    background: #fee2e2;
    /* Light Red */
    border-radius: calc(var(--markoon-wc-radius, 12px) * 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.markoon-download-card:hover .markoon-download-icon {
    background: #fecaca;
    transform: scale(1.05);
}

.markoon-download-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #dc2626;
    /* Red 600 */
}

.markoon-download-info {
    flex: 1;
    min-width: 0;
}

.markoon-download-name {
    display: block;
    font-weight: 600;
    font-size: 16px;
    color: var(--markoon-wc-text);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.markoon-download-card:hover .markoon-download-name {
    color: var(--markoon-wc-primary);
}

.markoon-download-meta {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.markoon-download-sep {
    margin: 0 8px;
    color: #d1d5db;
}

.markoon-download-action {
    color: #d1d5db;
    transition: all 0.3s ease;
    background: #f9fafb;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.markoon-download-card:hover .markoon-download-action {
    background: var(--markoon-wc-primary);
    color: #fff;
}

/* ========================================
   HORIZONTAL TABS
   ======================================== */

.markoon-horizontal-tabs-container {
    margin: 30px 0;
    clear: both;
}

.markoon-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    list-style: none !important;
    padding: 0 0 0 10px !important;
    margin: 0 !important;
    border-bottom: 1px solid #d3ced2;
    gap: 5px;
}

.markoon-tab-item {
    margin: 0 !important;
    padding: 0 !important;
    flex: 1 1 auto;
}

.markoon-tab-link {
    display: block;
    padding: 12px 24px !important;
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-bottom: none !important;
    border-radius: var(--markoon-wc-radius, 6px) var(--markoon-wc-radius, 6px) 0 0 !important;
    color: #4b5563 !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;

    /* Reset Button Styles Aggressively */
    appearance: none !important;
    -webkit-appearance: none !important;
    line-height: normal !important;
    box-shadow: none !important;
    text-shadow: none !important;
    text-transform: none !important;
    margin: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    outline: none !important;
    text-align: center !important;
}

@media (max-width: 767px) {
    .markoon-tabs-nav {
        flex-direction: column;
        padding: 0 !important;
        border-bottom: none;
        gap: 8px;
    }

    .markoon-tab-link {
        border-radius: var(--markoon-wc-radius, 6px) !important;
        border-bottom: 1px solid #e5e7eb !important;
    }

    .markoon-tab-link.active {
        border-bottom: 1px solid var(--markoon-wc-primary) !important;
    }
}

/* ========================================
   OPTIONAL CONFIGURATOR TOGGLE BOX
   ======================================== */

.markoon-configurator-toggle-wrapper {
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    border-left: 4px solid var(--markoon-wc-primary, #0066c0);
    padding: 16px;
    margin-bottom: 24px;
    border-radius: 4px;
    display: block;
    width: 100%;
    clear: both;
}

.markoon-configurator-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin: 0;
}

.markoon-configurator-label input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.markoon-toggle-text {
    flex: 1;
    line-height: 1.4;
    color: #1a1a1a;
}

.markoon-tab-link:hover {
    background: #f3f4f6 !important;
    color: #1f2937 !important;
    box-shadow: none !important;
    transform: none !important;
}

.markoon-tab-item.active .markoon-tab-link {
    background: #fff !important;
    border-color: #e5e7eb !important;
    border-bottom-color: #fff !important;
    color: var(--markoon-wc-primary) !important;
    margin-bottom: -1px !important;
    position: relative;
    z-index: 10;
    box-shadow: 0 -2px 0 0 var(--markoon-wc-primary) inset !important;
    /* Top border effect via shadow to avoid layout shifts */
}

.markoon-tabs-panels {
    background: #fff;
    border: 1px solid #d3ced2;
    padding: 30px;
    border-radius: 0 4px 4px 4px;
}

.markoon-tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.markoon-tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive: Horizontal Scroll */
@media (max-width: 768px) {
    .markoon-tabs-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        border-bottom: 1px solid #d3ced2;
        padding-bottom: 0 !important;
        gap: 0;
        margin-left: -15px !important;
        /* Edge-to-edge on mobile */
        margin-right: -15px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .markoon-tabs-nav::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .markoon-tab-item {
        flex: 0 0 auto;
    }

    .markoon-tab-link {
        padding: 12px 20px !important;
        white-space: nowrap;
        border-radius: 0 !important;
        background: #f9f9f9 !important;
        border: 1px solid #e5e5e5 !important;
        border-bottom: none !important;
        top: 0;
        font-size: 14px !important;
    }

    .markoon-tab-item.active .markoon-tab-link {
        background: #fff !important;
        border-bottom: 2px solid var(--markoon-wc-primary, #0066c0) !important;
        color: var(--markoon-wc-primary, #0066c0) !important;
        z-index: 2;
        box-shadow: none !important;
    }

    .markoon-tabs-panels {
        border-top: none;
        border-radius: 0;
        padding: 20px 15px;
    }
}

/* Checkbox Typography Alignment */
.wc-block-components-checkbox .wc-block-components-checkbox__label,
.wc-block-components-checkbox,
.wc-block-components-checkbox input[type="checkbox"]+label {
    font-family: inherit !important;
    font-size: inherit;
    color: var(--markoon-wc-text, inherit);
}

/* ========================================
   SIMPLE PRODUCT TABS
   ======================================== */
.markoon-simple-tabs-container {
    margin: 24px 0;
}

.markoon-simple-tabs-main-title {
    font-weight: 700;
    font-size: 1.2em;
    line-height: 1.4;
    margin-bottom: 20px;
    color: var(--markoon-wc-text);
}

.markoon-simple-tabs-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.markoon-simple-tabs-item {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 20px;
}

.markoon-simple-tabs-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.markoon-simple-tabs-title {
    font-weight: 700;
    font-size: 1.1em;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--markoon-wc-text);
}

.markoon-simple-tabs-content {
    color: var(--markoon-wc-text);
    line-height: 1.6;
}

.markoon-simple-tabs-content p:last-child {
    margin-bottom: 0;
}

/* Duplicate markoon order styles removed */
/* (The .markoon-order-* styles have been moved exclusively to markoon-wishlist/assets/css/frontend.css to avoid duplication and caching overrides) */
.markoon-meta-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    font-size: 0.95rem;
}

@media (max-width: 480px) {
    .markoon-meta-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

.markoon-meta-row .meta-label {
    color: #4a5568;
    font-weight: 500;
}

.markoon-meta-row .meta-value {
    color: #1a202c;
    font-weight: 600;
}

/* Remaining markoon order styles removed */