/**
 * ECIP WooCommerce Styles
 * Customized WooCommerce appearance matching ecip.sk design system
 *
 * @package ECIP_Core
 * @since 1.0.0
 */

/* ==========================================================================
   CSS Custom Properties - ECIP Design System
   ========================================================================== */

:root {
    /* Primary - Teal */
    --ecip-primary-50: #e8f6ee;
    --ecip-primary-100: #cbe6d7;
    --ecip-primary-200: #cbe6d7;
    --ecip-primary-300: #3fd183;
    --ecip-primary-400: #3fd183;
    --ecip-primary-500: #15a34f;
    --ecip-primary-600: #15a34f;
    --ecip-primary-700: #10893f;
    --ecip-primary-800: #0b2a1b;
    --ecip-primary-900: #071710;

    /* Accent - Amber */
    --ecip-accent-50: #fffbeb;
    --ecip-accent-100: #fef3c7;
    --ecip-accent-400: #fbbf24;
    --ecip-accent-500: #f59e0b;
    --ecip-accent-600: #d97706;

    /* Neutral - Slate */
    --ecip-slate-50: #f8fafc;
    --ecip-slate-100: #f1f5f9;
    --ecip-slate-200: #e2e8f0;
    --ecip-slate-300: #cbd5e1;
    --ecip-slate-400: #94a3b8;
    --ecip-slate-500: #64748b;
    --ecip-slate-600: #475569;
    --ecip-slate-700: #334155;
    --ecip-slate-800: #1e293b;
    --ecip-slate-900: #0f172a;

    /* Status Colors */
    --ecip-success: #059669;
    --ecip-success-light: #d1fae5;
    --ecip-error: #dc2626;
    --ecip-error-light: #fee2e2;
    --ecip-warning: #d97706;
    --ecip-warning-light: #fef3c7;
    --ecip-info: #0284c7;
    --ecip-info-light: #e0f2fe;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 4px 15px rgba(21,163,79, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
}

/* ==========================================================================
   Typography - Inter Font
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

.woocommerce,
.woocommerce-page,
.woocommerce *,
.woocommerce-page * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}


/* ==========================================================================
   Global WooCommerce Overrides
   ========================================================================== */

/* Primary Buttons */
.woocommerce .button,
.woocommerce .button.alt,
.woocommerce button.button,
.woocommerce button.button.alt,
.woocommerce input.button,
.woocommerce input.button.alt,
.woocommerce a.button,
.woocommerce a.button.alt,
.woocommerce #respond input#submit,
.woocommerce #respond input#submit.alt {
    background: linear-gradient(135deg, var(--ecip-primary-600), var(--ecip-primary-700)) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius-full) !important;
    padding: 14px 28px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.01em;
    text-transform: none !important;
    transition: all var(--transition-normal) !important;
    box-shadow: var(--shadow-primary) !important;
    cursor: pointer !important;
}

.woocommerce .button:hover,
.woocommerce .button.alt:hover,
.woocommerce button.button:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button:hover,
.woocommerce input.button.alt:hover,
.woocommerce a.button:hover,
.woocommerce a.button.alt:hover {
    background: linear-gradient(135deg, var(--ecip-primary-700), var(--ecip-primary-800)) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(21,163,79, 0.4) !important;
}

.woocommerce .button:active,
.woocommerce button.button:active {
    transform: translateY(0) !important;
}

.woocommerce .button:disabled,
.woocommerce button.button:disabled {
    background: var(--ecip-slate-300) !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Secondary/Outline Buttons */
.woocommerce .button.wc-backward,
.woocommerce a.button.wc-backward {
    background: transparent !important;
    color: var(--ecip-primary-600) !important;
    border: 2px solid var(--ecip-primary-600) !important;
    box-shadow: none !important;
}

.woocommerce .button.wc-backward:hover,
.woocommerce a.button.wc-backward:hover {
    background: var(--ecip-primary-50) !important;
    color: var(--ecip-primary-700) !important;
    border-color: var(--ecip-primary-700) !important;
}


/* ==========================================================================
   Form Inputs
   ========================================================================== */

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text,
.woocommerce-page form .form-row textarea,
.woocommerce-page form .form-row select,
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="password"],
.woocommerce input[type="number"],
.woocommerce select,
.woocommerce textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--ecip-slate-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--ecip-slate-800);
    background: #fff;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.woocommerce input:focus,
.woocommerce select:focus,
.woocommerce textarea:focus {
    outline: none;
    border-color: var(--ecip-primary-500);
    box-shadow: 0 0 0 3px rgba(21,163,79, 0.1);
}

.woocommerce form .form-row input.input-text::placeholder,
.woocommerce input::placeholder,
.woocommerce textarea::placeholder {
    color: var(--ecip-slate-400);
}

.woocommerce form .form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--ecip-slate-700);
    font-size: 0.9rem;
}

.woocommerce form .form-row .required {
    color: var(--ecip-error);
}


/* ==========================================================================
   Messages & Notices
   ========================================================================== */

.woocommerce-message,
.woocommerce-info {
    background: var(--ecip-primary-50);
    border: none;
    border-left: 4px solid var(--ecip-primary-500);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    color: var(--ecip-primary-800);
    margin-bottom: 20px;
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: var(--ecip-primary-600);
}

.woocommerce-error {
    background: var(--ecip-error-light);
    border: none;
    border-left: 4px solid var(--ecip-error);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    color: var(--ecip-error);
    margin-bottom: 20px;
}

.woocommerce-error::before {
    color: var(--ecip-error);
}

.woocommerce-notice--success {
    background: var(--ecip-success-light);
    border-left-color: var(--ecip-success);
    color: var(--ecip-success);
}


/* ==========================================================================
   Login / Register Forms
   ========================================================================== */

.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register,
.woocommerce form.login,
.woocommerce form.register {
    background: #fff;
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--ecip-slate-100);
    max-width: 420px;
    margin: 0 auto 30px;
}

.woocommerce-account h2,
.woocommerce form.login h2,
.woocommerce form.register h2 {
    text-align: center;
    color: var(--ecip-slate-800);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

/* Login/Register page layout */
.woocommerce-account .u-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.woocommerce-account .u-columns .u-column1,
.woocommerce-account .u-columns .u-column2 {
    flex: 1;
    min-width: 300px;
    max-width: 420px;
}

/* Remember me checkbox */
.woocommerce form .form-row.woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: 8px;
}

.woocommerce form .form-row.woocommerce-form-login__rememberme input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--ecip-primary-600);
}

/* Lost password link */
.woocommerce .woocommerce-LostPassword.lost_password,
.woocommerce a.lost_password_link {
    text-align: center;
    margin-top: 16px;
}

.woocommerce .woocommerce-LostPassword a,
.woocommerce a.lost_password_link {
    color: var(--ecip-primary-600);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.woocommerce .woocommerce-LostPassword a:hover,
.woocommerce a.lost_password_link:hover {
    color: var(--ecip-primary-700);
    text-decoration: underline;
}


/* ==========================================================================
   My Account Dashboard
   ========================================================================== */

.woocommerce-account .woocommerce-MyAccount-navigation {
    background: var(--ecip-slate-50);
    border-radius: var(--radius-xl);
    padding: 8px;
    margin-bottom: 30px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--ecip-slate-600);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: #fff;
    color: var(--ecip-primary-600);
    box-shadow: var(--shadow-sm);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: linear-gradient(135deg, var(--ecip-primary-600), var(--ecip-primary-700));
    color: #fff;
    box-shadow: var(--shadow-primary);
}

/* My Account Content */
.woocommerce-account .woocommerce-MyAccount-content {
    background: #fff;
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--ecip-slate-100);
}

.woocommerce-account .woocommerce-MyAccount-content > h2,
.woocommerce-account .woocommerce-MyAccount-content > h3 {
    color: var(--ecip-slate-800);
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ecip-slate-100);
}

/* Account layout - sidebar + content */
@media (min-width: 769px) {
    .woocommerce-account .woocommerce-MyAccount-navigation {
        width: 240px;
        float: left;
        margin-right: 30px;
    }

    .woocommerce-account .woocommerce-MyAccount-content {
        overflow: hidden;
    }
}


/* ==========================================================================
   Orders Table
   ========================================================================== */

.woocommerce-orders-table,
.woocommerce table.shop_table,
.woocommerce-account table.my_account_orders {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--ecip-slate-200);
}

.woocommerce table.shop_table thead th,
.woocommerce-orders-table thead th,
.woocommerce-account table.my_account_orders thead th {
    background: var(--ecip-slate-50);
    color: var(--ecip-slate-700);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 16px;
    border-bottom: 1px solid var(--ecip-slate-200);
    text-align: left;
}

.woocommerce table.shop_table tbody td,
.woocommerce-orders-table tbody td,
.woocommerce-account table.my_account_orders tbody td {
    padding: 16px;
    border-bottom: 1px solid var(--ecip-slate-100);
    color: var(--ecip-slate-600);
    vertical-align: middle;
}

.woocommerce table.shop_table tbody tr:last-child td,
.woocommerce-orders-table tbody tr:last-child td {
    border-bottom: none;
}

.woocommerce table.shop_table tbody tr:hover,
.woocommerce-orders-table tbody tr:hover {
    background: var(--ecip-slate-50);
}

/* Order status badges */
.woocommerce-orders-table__cell-order-status mark,
.order-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

.order-status.status-processing,
mark.order-status.status-processing {
    background: var(--ecip-accent-100);
    color: var(--ecip-accent-600);
}

.order-status.status-completed,
mark.order-status.status-completed {
    background: var(--ecip-success-light);
    color: var(--ecip-success);
}

.order-status.status-on-hold,
mark.order-status.status-on-hold {
    background: var(--ecip-warning-light);
    color: var(--ecip-warning);
}

.order-status.status-cancelled,
.order-status.status-failed,
mark.order-status.status-cancelled,
mark.order-status.status-failed {
    background: var(--ecip-error-light);
    color: var(--ecip-error);
}

/* Custom ECIP statuses */
.order-status.status-waiting-sample,
mark.order-status.status-waiting-sample {
    background: var(--ecip-info-light);
    color: var(--ecip-info);
}

.order-status.status-sample-received,
mark.order-status.status-sample-received {
    background: var(--ecip-primary-100);
    color: var(--ecip-primary-700);
}

.order-status.status-shipped,
mark.order-status.status-shipped {
    background: var(--ecip-primary-50);
    color: var(--ecip-primary-600);
}


/* ==========================================================================
   Cart Page
   ========================================================================== */

.woocommerce-cart .woocommerce {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.woocommerce-cart table.shop_table {
    margin-bottom: 30px;
}

.woocommerce-cart .product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.woocommerce-cart .product-name a {
    color: var(--ecip-slate-800);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.woocommerce-cart .product-name a:hover {
    color: var(--ecip-primary-600);
}

/* Quantity controls */
.woocommerce .quantity .qty {
    width: 70px;
    text-align: center;
    padding: 10px;
    border: 1px solid var(--ecip-slate-200);
    border-radius: var(--radius-md);
}

/* Remove item */
.woocommerce-cart .product-remove a.remove {
    color: var(--ecip-slate-400) !important;
    font-size: 1.5rem;
    transition: color var(--transition-fast);
}

.woocommerce-cart .product-remove a.remove:hover {
    background: transparent !important;
    color: var(--ecip-error) !important;
}

/* Cart totals */
.woocommerce-cart .cart_totals {
    background: var(--ecip-slate-50);
    padding: 24px;
    border-radius: var(--radius-xl);
}

.woocommerce-cart .cart_totals h2 {
    color: var(--ecip-slate-800);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.woocommerce-cart .cart_totals table {
    border: none;
}

.woocommerce-cart .cart_totals th,
.woocommerce-cart .cart_totals td {
    padding: 12px 0;
    border-bottom: 1px solid var(--ecip-slate-200);
}

.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ecip-slate-800);
    border-bottom: none;
}

/* Coupon */
.woocommerce-cart .coupon {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.woocommerce-cart .coupon #coupon_code {
    flex: 1;
    min-width: 200px;
}


/* ==========================================================================
   Checkout Page
   ========================================================================== */

.woocommerce-checkout .woocommerce {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Checkout columns */
.woocommerce-checkout .col2-set {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
    flex: 1;
    min-width: 300px;
}

/* Checkout sections */
.woocommerce-checkout #customer_details,
.woocommerce-checkout .woocommerce-checkout-review-order {
    background: #fff;
    padding: 28px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--ecip-slate-100);
}

.woocommerce-checkout h3 {
    color: var(--ecip-slate-800);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ecip-slate-100);
}

/* Form rows */
.woocommerce-checkout .form-row {
    margin-bottom: 20px;
}

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

.woocommerce-checkout .form-row-first {
    margin-right: 4%;
}

/* Order review table */
.woocommerce-checkout-review-order-table {
    margin-bottom: 20px;
}

/* Payment methods */
.woocommerce-checkout #payment {
    background: var(--ecip-slate-50);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-top: 30px;
}

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

.woocommerce-checkout #payment ul.payment_methods li {
    background: #fff;
    padding: 16px;
    margin-bottom: 10px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--ecip-slate-200);
    transition: border-color var(--transition-fast);
}

.woocommerce-checkout #payment ul.payment_methods li:has(input:checked) {
    border-color: var(--ecip-primary-500);
    background: var(--ecip-primary-50);
}

.woocommerce-checkout #payment ul.payment_methods li label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
}

.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
    accent-color: var(--ecip-primary-600);
}

.woocommerce-checkout #payment .payment_box {
    background: var(--ecip-slate-100);
    padding: 16px;
    margin-top: 12px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--ecip-slate-600);
}

/* Place order button */
.woocommerce-checkout #place_order {
    width: 100%;
    padding: 18px 28px !important;
    font-size: 1.1rem !important;
}

/* Terms and conditions */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    margin-bottom: 20px;
}

.woocommerce-checkout .woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--ecip-slate-600);
}

.woocommerce-checkout .woocommerce-form__label-for-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--ecip-primary-600);
}


/* ==========================================================================
   Product Page
   ========================================================================== */

.woocommerce div.product {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.woocommerce div.product .product_title {
    color: var(--ecip-slate-800);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 12px;
}

.woocommerce div.product .woocommerce-product-rating {
    margin-bottom: 16px;
}

.woocommerce div.product .star-rating {
    color: var(--ecip-accent-400);
}

.woocommerce div.product p.price {
    color: var(--ecip-primary-600);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.woocommerce div.product p.price del {
    color: var(--ecip-slate-400);
    font-size: 1.25rem;
}

.woocommerce div.product p.price ins {
    text-decoration: none;
}

/* Product gallery */
.woocommerce div.product div.images {
    margin-bottom: 30px;
}

.woocommerce div.product div.images img {
    border-radius: var(--radius-xl);
}

/* Add to cart */
.woocommerce div.product form.cart {
    margin-bottom: 30px;
}

.woocommerce div.product form.cart .quantity {
    margin-right: 15px;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
    padding: 16px 32px !important;
}

/* Product tabs */
.woocommerce div.product .woocommerce-tabs {
    margin-top: 40px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 -1px;
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--ecip-slate-200);
}

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

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 14px 24px;
    color: var(--ecip-slate-600);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    transition: all var(--transition-fast);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    background: var(--ecip-slate-50);
    color: var(--ecip-primary-600);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    background: #fff;
    color: var(--ecip-primary-600);
    border: 1px solid var(--ecip-slate-200);
    border-bottom-color: #fff;
}

.woocommerce div.product .woocommerce-tabs .panel {
    background: #fff;
    padding: 24px;
    border: 1px solid var(--ecip-slate-200);
    border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
}


/* ==========================================================================
   Product Archive / Shop Page
   ========================================================================== */

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
}

.woocommerce ul.products li.product {
    background: #fff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--ecip-slate-100);
    transition: all var(--transition-normal);
    margin: 0;
    padding: 0;
}

.woocommerce ul.products li.product:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.woocommerce ul.products li.product a img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
    padding: 16px 16px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ecip-slate-800);
}

.woocommerce ul.products li.product .price {
    padding: 8px 16px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ecip-primary-600);
}

.woocommerce ul.products li.product .button {
    display: block;
    margin: 0 16px 16px;
    text-align: center;
}

/* Sale badge */
.woocommerce span.onsale {
    background: var(--ecip-accent-500);
    color: #fff;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    text-transform: uppercase;
}


/* ==========================================================================
   Pagination
   ========================================================================== */

.woocommerce nav.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 40px 0;
    border: none;
}

.woocommerce nav.woocommerce-pagination ul li {
    margin: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    color: var(--ecip-slate-600);
    border: 1px solid var(--ecip-slate-200);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: var(--ecip-primary-50);
    border-color: var(--ecip-primary-300);
    color: var(--ecip-primary-600);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--ecip-primary-600);
    color: #fff;
    border-color: var(--ecip-primary-600);
}


/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.woocommerce .woocommerce-breadcrumb {
    padding: 16px 0;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--ecip-slate-500);
}

.woocommerce .woocommerce-breadcrumb a {
    color: var(--ecip-primary-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.woocommerce .woocommerce-breadcrumb a:hover {
    color: var(--ecip-primary-700);
    text-decoration: underline;
}


/* ==========================================================================
   Mini Cart / Cart Widget
   ========================================================================== */

.woocommerce .widget_shopping_cart {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 20px;
}

.woocommerce .widget_shopping_cart .cart_list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--ecip-slate-100);
}

.woocommerce .widget_shopping_cart .cart_list li:last-child {
    border-bottom: none;
}

.woocommerce .widget_shopping_cart .cart_list li a {
    color: var(--ecip-slate-800);
    font-weight: 500;
}

.woocommerce .widget_shopping_cart .total {
    padding: 16px 0;
    font-weight: 600;
    border-top: 2px solid var(--ecip-slate-200);
}

.woocommerce .widget_shopping_cart .buttons {
    display: flex;
    gap: 10px;
}

.woocommerce .widget_shopping_cart .buttons a {
    flex: 1;
    text-align: center;
}


/* ==========================================================================
   Address Forms
   ========================================================================== */

.woocommerce-address-fields {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--ecip-slate-100);
}

.woocommerce address {
    font-style: normal;
    padding: 20px;
    background: var(--ecip-slate-50);
    border-radius: var(--radius-lg);
    color: var(--ecip-slate-700);
    line-height: 1.7;
}


/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {
    /* Login/Register */
    .woocommerce-account .u-columns .u-column1,
    .woocommerce-account .u-columns .u-column2 {
        min-width: 100%;
    }

    .woocommerce-account .woocommerce-form-login,
    .woocommerce-account .woocommerce-form-register {
        padding: 24px;
    }

    /* My Account */
    .woocommerce-account .woocommerce-MyAccount-navigation {
        width: 100%;
        float: none;
        margin-right: 0;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul li {
        flex: 1;
        min-width: calc(50% - 2px);
    }

    .woocommerce-account .woocommerce-MyAccount-navigation ul li a {
        justify-content: center;
        padding: 12px;
        font-size: 0.85rem;
    }

    .woocommerce-account .woocommerce-MyAccount-content {
        padding: 20px;
    }

    /* Checkout */
    .woocommerce-checkout .col2-set .col-1,
    .woocommerce-checkout .col2-set .col-2 {
        min-width: 100%;
    }

    .woocommerce-checkout .form-row-first,
    .woocommerce-checkout .form-row-last {
        width: 100%;
        margin-right: 0;
    }

    .woocommerce-checkout #customer_details,
    .woocommerce-checkout .woocommerce-checkout-review-order {
        padding: 20px;
    }

    /* Cart */
    .woocommerce-cart table.shop_table {
        font-size: 0.9rem;
    }

    .woocommerce-cart .product-thumbnail {
        display: none;
    }

    .woocommerce-cart .cart_totals {
        padding: 20px;
    }

    /* Products */
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }

    /* Tables */
    .woocommerce table.shop_table thead {
        display: none;
    }

    .woocommerce table.shop_table tbody tr {
        display: block;
        margin-bottom: 20px;
        padding: 16px;
        background: #fff;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-sm);
    }

    .woocommerce table.shop_table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px solid var(--ecip-slate-100);
    }

    .woocommerce table.shop_table tbody td::before {
        content: attr(data-title);
        font-weight: 600;
        color: var(--ecip-slate-700);
    }
}

@media (max-width: 480px) {
    .woocommerce .button,
    .woocommerce button.button,
    .woocommerce a.button {
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
    }

    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }

    .woocommerce div.product .product_title {
        font-size: 1.5rem;
    }

    .woocommerce div.product p.price {
        font-size: 1.5rem;
    }
}


/* ==========================================================================
   Utility Classes
   ========================================================================== */

.ecip-card {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--ecip-slate-100);
    padding: 24px;
}

.ecip-gradient-text {
    background: linear-gradient(135deg, var(--ecip-primary-600), var(--ecip-primary-800));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ecip-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.ecip-badge-primary {
    background: var(--ecip-primary-100);
    color: var(--ecip-primary-700);
}

.ecip-badge-success {
    background: var(--ecip-success-light);
    color: var(--ecip-success);
}

.ecip-badge-warning {
    background: var(--ecip-warning-light);
    color: var(--ecip-warning);
}

.ecip-badge-error {
    background: var(--ecip-error-light);
    color: var(--ecip-error);
}


/* ==========================================================================
   HIGH-SPECIFICITY OVERRIDES — Fix WooCommerce default styles
   Uses body.ecip-theme prefix to ensure ECIP styles win over WC defaults.
   ========================================================================== */


/* ==========================================================================
   1. Shop/Archive Page Overrides
   ========================================================================== */

/* Shop page - remove WC default box styles */
body.ecip-theme .woocommerce ul.products {
    margin: 0 !important;
}

body.ecip-theme .woocommerce ul.products li.product {
    margin-bottom: 24px !important;
    text-align: center;
}

body.ecip-theme .woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding: 0.5em 0 !important;
    font-size: 1.1em !important;
}

body.ecip-theme .woocommerce ul.products li.product .price {
    color: var(--ecip-primary-600) !important;
    font-weight: 700 !important;
    font-size: 1.15em !important;
}

body.ecip-theme .woocommerce ul.products li.product .button {
    margin-top: 12px !important;
}

body.ecip-theme .woocommerce ul.products li.product img {
    border-radius: 12px !important;
    margin-bottom: 12px !important;
}


/* ==========================================================================
   2. Single Product Page Overrides
   ========================================================================== */

body.ecip-theme .woocommerce div.product {
    max-width: 1200px;
    margin: 0 auto;
}

body.ecip-theme .woocommerce div.product div.images {
    border-radius: 16px;
    overflow: hidden;
}

body.ecip-theme .woocommerce div.product p.price {
    font-size: 1.8em !important;
    color: var(--ecip-slate-900) !important;
    font-weight: 700 !important;
}

body.ecip-theme .woocommerce div.product .product_meta {
    font-size: 0.9em;
    color: var(--ecip-slate-500);
    border-top: 1px solid var(--ecip-slate-200);
    padding-top: 16px;
    margin-top: 16px;
}

body.ecip-theme .woocommerce div.product .woocommerce-tabs {
    margin-top: 48px;
}

body.ecip-theme .woocommerce div.product .woocommerce-tabs ul.tabs {
    padding: 0 !important;
    margin: 0 0 24px !important;
    border-bottom: 2px solid var(--ecip-slate-200) !important;
}

body.ecip-theme .woocommerce div.product .woocommerce-tabs ul.tabs li {
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.ecip-theme .woocommerce div.product .woocommerce-tabs ul.tabs li a {
    padding: 12px 24px !important;
    color: var(--ecip-slate-500) !important;
    font-weight: 600 !important;
    border-bottom: 2px solid transparent !important;
    margin-bottom: -2px !important;
}

body.ecip-theme .woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--ecip-primary-600) !important;
    border-bottom-color: var(--ecip-primary-600) !important;
}

body.ecip-theme .woocommerce div.product .woocommerce-tabs .panel {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Quantity input on product page */
body.ecip-theme .woocommerce .quantity .qty {
    width: 70px !important;
    padding: 10px !important;
    border: 2px solid var(--ecip-slate-200) !important;
    border-radius: 8px !important;
    text-align: center !important;
    font-weight: 600 !important;
}


/* ==========================================================================
   3. Cart Page Overrides
   ========================================================================== */

body.ecip-theme .woocommerce-cart table.cart {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid var(--ecip-slate-200) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

body.ecip-theme .woocommerce-cart table.cart th {
    background: var(--ecip-slate-50) !important;
    padding: 16px !important;
    font-weight: 600 !important;
    color: var(--ecip-slate-700) !important;
    font-size: 0.85em !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-bottom: 2px solid var(--ecip-slate-200) !important;
}

body.ecip-theme .woocommerce-cart table.cart td {
    padding: 16px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid var(--ecip-slate-100) !important;
}

body.ecip-theme .woocommerce-cart table.cart img {
    width: 80px !important;
    border-radius: 8px !important;
}

body.ecip-theme .woocommerce-cart .cart_totals {
    border: 1px solid var(--ecip-slate-200) !important;
    border-radius: 12px !important;
    padding: 24px !important;
    background: var(--ecip-slate-50) !important;
}

body.ecip-theme .woocommerce-cart .cart_totals h2 {
    font-size: 1.3em !important;
    margin-bottom: 16px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid var(--ecip-slate-200) !important;
}

body.ecip-theme .woocommerce-cart .cart_totals table th {
    background: transparent !important;
    border: none !important;
    padding: 10px 0 !important;
}

body.ecip-theme .woocommerce-cart .cart_totals table td {
    border: none !important;
    padding: 10px 0 !important;
    text-align: right !important;
}

body.ecip-theme .woocommerce-cart .cart_totals .order-total th,
body.ecip-theme .woocommerce-cart .cart_totals .order-total td {
    font-size: 1.2em !important;
    font-weight: 700 !important;
    border-top: 2px solid var(--ecip-slate-200) !important;
    padding-top: 16px !important;
}

/* Remove coupon row borders */
body.ecip-theme .woocommerce-cart table.cart td.actions {
    padding: 24px 16px !important;
    border: none !important;
}


/* ==========================================================================
   4. Checkout Page Overrides
   ========================================================================== */

body.ecip-theme .woocommerce-checkout .col2-set {
    margin-bottom: 32px;
}

body.ecip-theme .woocommerce-checkout .col2-set .col-1,
body.ecip-theme .woocommerce-checkout .col2-set .col-2 {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--ecip-slate-200);
}

body.ecip-theme .woocommerce-checkout h3 {
    font-size: 1.3em !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid var(--ecip-slate-200) !important;
}

body.ecip-theme .woocommerce-checkout #order_review_heading {
    font-size: 1.3em !important;
}

body.ecip-theme .woocommerce-checkout #order_review {
    background: var(--ecip-slate-50);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--ecip-slate-200);
}

body.ecip-theme .woocommerce-checkout table.shop_table {
    border: none !important;
    margin-bottom: 24px !important;
}

body.ecip-theme .woocommerce-checkout table.shop_table th,
body.ecip-theme .woocommerce-checkout table.shop_table td {
    border: none !important;
    padding: 10px 0 !important;
}

body.ecip-theme .woocommerce-checkout table.shop_table tfoot .order-total th,
body.ecip-theme .woocommerce-checkout table.shop_table tfoot .order-total td {
    font-size: 1.2em !important;
    font-weight: 700 !important;
    border-top: 2px solid var(--ecip-slate-200) !important;
    padding-top: 16px !important;
}

/* Payment methods */
body.ecip-theme .woocommerce-checkout #payment {
    background: white !important;
    border-radius: 12px !important;
    border: 1px solid var(--ecip-slate-200) !important;
    padding: 0 !important;
}

body.ecip-theme .woocommerce-checkout #payment ul.payment_methods {
    padding: 16px !important;
    border-bottom: 1px solid var(--ecip-slate-200) !important;
}

body.ecip-theme .woocommerce-checkout #payment ul.payment_methods li {
    padding: 12px 16px !important;
    border: 1px solid var(--ecip-slate-200) !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
    transition: all 0.2s ease !important;
}

body.ecip-theme .woocommerce-checkout #payment ul.payment_methods li:hover {
    border-color: var(--ecip-primary-600) !important;
    background: var(--ecip-primary-50) !important;
}

body.ecip-theme .woocommerce-checkout #payment div.place-order {
    padding: 16px !important;
}

body.ecip-theme .woocommerce-checkout #payment #place_order {
    width: 100% !important;
    padding: 16px !important;
    font-size: 1.1em !important;
    background: linear-gradient(135deg, var(--ecip-primary-600) 0%, var(--ecip-primary-700) 100%) !important;
    border-radius: var(--radius-full) !important;
}

body.ecip-theme .woocommerce-checkout #payment #place_order:hover {
    box-shadow: 0 4px 15px rgba(21,163,79, 0.4) !important;
    transform: translateY(-1px) !important;
}


/* ==========================================================================
   5. My Account Page Overrides
   ========================================================================== */

body.ecip-theme .woocommerce-account .woocommerce-MyAccount-navigation {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--ecip-slate-200);
    overflow: hidden;
}

body.ecip-theme .woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.ecip-theme .woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin: 0 !important;
}

body.ecip-theme .woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block !important;
    padding: 14px 20px !important;
    color: var(--ecip-slate-600) !important;
    font-weight: 500 !important;
    border-bottom: 1px solid var(--ecip-slate-100) !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

body.ecip-theme .woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--ecip-primary-50) !important;
    color: var(--ecip-primary-600) !important;
}

body.ecip-theme .woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--ecip-primary-50) !important;
    color: var(--ecip-primary-600) !important;
    font-weight: 600 !important;
    border-left: 3px solid var(--ecip-primary-600) !important;
}

body.ecip-theme .woocommerce-account .woocommerce-MyAccount-content {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--ecip-slate-200);
    padding: 24px;
}

/* Orders table */
body.ecip-theme .woocommerce-account table.woocommerce-orders-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid var(--ecip-slate-200) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

body.ecip-theme .woocommerce-account table.woocommerce-orders-table th {
    background: var(--ecip-slate-50) !important;
    padding: 14px 16px !important;
    font-size: 0.85em !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--ecip-slate-600) !important;
    font-weight: 600 !important;
}

body.ecip-theme .woocommerce-account table.woocommerce-orders-table td {
    padding: 14px 16px !important;
    border-bottom: 1px solid var(--ecip-slate-100) !important;
}

/* Order status badges */
body.ecip-theme .woocommerce-account .woocommerce-orders-table .woocommerce-orders-table__cell-order-status {
    font-weight: 600;
}


/* ==========================================================================
   6. WooCommerce Notices/Messages Overrides
   ========================================================================== */

body.ecip-theme .woocommerce-message {
    border-top-color: var(--ecip-primary-600) !important;
    background: var(--ecip-primary-50) !important;
    border-radius: 8px !important;
    padding: 16px 16px 16px 48px !important;
}

body.ecip-theme .woocommerce-message::before {
    color: var(--ecip-primary-600) !important;
}

body.ecip-theme .woocommerce-error {
    border-top-color: var(--ecip-error) !important;
    background: var(--ecip-error-light) !important;
    border-radius: 8px !important;
}

body.ecip-theme .woocommerce-info {
    border-top-color: var(--ecip-info) !important;
    background: var(--ecip-info-light) !important;
    border-radius: 8px !important;
}

body.ecip-theme .woocommerce .woocommerce-result-count,
body.ecip-theme .woocommerce .woocommerce-ordering {
    margin-bottom: 24px !important;
}


/* ==========================================================================
   7. Responsive WooCommerce Fixes (High-Specificity)
   ========================================================================== */

@media (max-width: 768px) {
    body.ecip-theme .woocommerce-cart table.cart .product-thumbnail {
        display: none !important;
    }

    body.ecip-theme .woocommerce-checkout .col2-set .col-1,
    body.ecip-theme .woocommerce-checkout .col2-set .col-2 {
        width: 100% !important;
        float: none !important;
        margin-bottom: 24px !important;
    }

    body.ecip-theme .woocommerce-account .woocommerce-MyAccount-navigation,
    body.ecip-theme .woocommerce-account .woocommerce-MyAccount-content {
        width: 100% !important;
        float: none !important;
    }

    body.ecip-theme .woocommerce-account .woocommerce-MyAccount-navigation {
        margin-bottom: 24px !important;
    }
}


/* ==========================================================================
   8. Visual QA Fixes — 2026-07-07
   Issues found via Puppeteer screenshots at 1920px width.
   ========================================================================== */

/* --- 8.1 Shop Page Title --- */
/* The h1.page-title on /obchod/ uses default large black text.
   Match ECIP slate-800 with proper weight and spacing. */
body.ecip-theme .woocommerce-products-header__title.page-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: var(--ecip-slate-800) !important;
    margin-bottom: 8px !important;
}

/* --- 8.2 Shop Ordering Dropdown --- */
/* The <select> dropdown for sorting has default browser/WC styling. */
body.ecip-theme .woocommerce .woocommerce-ordering select.orderby {
    padding: 10px 36px 10px 14px !important;
    border: 1px solid var(--ecip-slate-200) !important;
    border-radius: var(--radius-md) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: var(--ecip-slate-700) !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%2364748b'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    cursor: pointer !important;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast) !important;
}

body.ecip-theme .woocommerce .woocommerce-ordering select.orderby:focus {
    outline: none !important;
    border-color: var(--ecip-primary-500) !important;
    box-shadow: 0 0 0 3px rgba(21,163,79, 0.1) !important;
}

/* --- 8.3 Shop Result Count --- */
/* "Zobrazuje sa X vysledkov" text looks small and default. */
body.ecip-theme .woocommerce .woocommerce-result-count {
    font-size: 0.9rem !important;
    color: var(--ecip-slate-500) !important;
    font-weight: 400 !important;
}

/* --- 8.4 Product Tabs — Kill Default WC :before/:after pseudo-elements --- */
/* WooCommerce default tabs use ::before and ::after for borders/backgrounds.
   These can leak through even with background:transparent. */
body.ecip-theme .woocommerce div.product .woocommerce-tabs ul.tabs li::before,
body.ecip-theme .woocommerce div.product .woocommerce-tabs ul.tabs li::after {
    display: none !important;
    content: none !important;
}

body.ecip-theme .woocommerce div.product .woocommerce-tabs ul.tabs::before {
    display: none !important;
}

/* Ensure active tab has clean underline indicator */
body.ecip-theme .woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    border-bottom: 2px solid var(--ecip-primary-600) !important;
    background: transparent !important;
}

body.ecip-theme .woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--ecip-primary-600) !important;
    font-weight: 600 !important;
    background: transparent !important;
    border: none !important;
}

body.ecip-theme .woocommerce div.product .woocommerce-tabs ul.tabs li a {
    background: transparent !important;
    border: none !important;
}

/* --- 8.5 Product Meta (SKU, Category) --- */
/* "Katalogove cislo: ECIP-RFID-125" and "Kategoria: RFID 125kHz"
   use default WC grey text. Style them to match ECIP design. */
body.ecip-theme .woocommerce div.product .product_meta {
    font-size: 0.875rem !important;
    color: var(--ecip-slate-500) !important;
    border-top: 1px solid var(--ecip-slate-200) !important;
    padding-top: 16px !important;
    margin-top: 16px !important;
}

body.ecip-theme .woocommerce div.product .product_meta > span {
    display: block !important;
    margin-bottom: 4px !important;
}

body.ecip-theme .woocommerce div.product .product_meta a {
    color: var(--ecip-primary-600) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

body.ecip-theme .woocommerce div.product .product_meta a:hover {
    color: var(--ecip-primary-700) !important;
    text-decoration: underline !important;
}

/* --- 8.6 Product Page Price (single product) --- */
/* Price on product detail should use teal color like shop cards, not slate-900. */
body.ecip-theme .woocommerce div.product p.price,
body.ecip-theme .woocommerce div.product span.price {
    color: var(--ecip-primary-600) !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
}

/* --- 8.7 Product Short Description --- */
body.ecip-theme .woocommerce div.product .woocommerce-product-details__short-description {
    color: var(--ecip-slate-600) !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 16px !important;
}

/* --- 8.8 Promo Banner on Product Page ("Akcia 4+1 ZDARMA") --- */
/* Already styled by ecip-core plugin. No fix needed. */

/* --- 8.9 Empty Cart/Checkout — "Vratit sa do obchodu" button --- */
/* The outline button is correct. But ensure the empty cart notice
   matches ECIP info-style box. */
body.ecip-theme .woocommerce .cart-empty.woocommerce-info,
body.ecip-theme .woocommerce .woocommerce-info {
    background: var(--ecip-primary-50) !important;
    border: 1px solid var(--ecip-primary-200) !important;
    border-left: 4px solid var(--ecip-primary-500) !important;
    border-radius: var(--radius-md) !important;
    padding: 16px 20px !important;
    color: var(--ecip-slate-700) !important;
    font-weight: 500 !important;
}

body.ecip-theme .woocommerce .return-to-shop .button,
body.ecip-theme .woocommerce a.button.wc-backward {
    background: transparent !important;
    color: var(--ecip-primary-600) !important;
    border: 2px solid var(--ecip-primary-600) !important;
    box-shadow: none !important;
    border-radius: var(--radius-full) !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
}

body.ecip-theme .woocommerce .return-to-shop .button:hover,
body.ecip-theme .woocommerce a.button.wc-backward:hover {
    background: var(--ecip-primary-50) !important;
    color: var(--ecip-primary-700) !important;
    border-color: var(--ecip-primary-700) !important;
    transform: translateY(-1px) !important;
}

/* --- 8.10 My Account Login Form (when WC shortcode renders) --- */
/* Style the login/register form with ECIP card treatment. */
body.ecip-theme .woocommerce form.woocommerce-form-login,
body.ecip-theme .woocommerce form.woocommerce-form-register {
    background: #fff !important;
    padding: 32px !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid var(--ecip-slate-100) !important;
    max-width: 460px !important;
    margin: 0 auto 30px !important;
}

body.ecip-theme .woocommerce form.woocommerce-form-login .form-row input.input-text,
body.ecip-theme .woocommerce form.woocommerce-form-register .form-row input.input-text {
    padding: 14px 16px !important;
    border: 1px solid var(--ecip-slate-200) !important;
    border-radius: var(--radius-md) !important;
    font-size: 1rem !important;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast) !important;
}

body.ecip-theme .woocommerce form.woocommerce-form-login .form-row input.input-text:focus,
body.ecip-theme .woocommerce form.woocommerce-form-register .form-row input.input-text:focus {
    outline: none !important;
    border-color: var(--ecip-primary-500) !important;
    box-shadow: 0 0 0 3px rgba(21,163,79, 0.1) !important;
}

/* --- 8.11 Shop Product Card Image Height Consistency --- */
/* Product images on shop cards have varied heights. Force consistent aspect ratio. */
body.ecip-theme .woocommerce ul.products li.product a img {
    width: 100% !important;
    max-width: 100% !important;
    height: 220px !important;
    object-fit: contain !important;
    padding: 16px !important;
    background: var(--ecip-slate-50) !important;
    display: block !important;
    margin: 0 auto !important;
}

/* --- 8.12 Shop Product Card Padding & Text Alignment --- */
body.ecip-theme .woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding: 12px 16px 0 16px !important;
    font-size: 1rem !important;
    text-align: left !important;
}

body.ecip-theme .woocommerce ul.products li.product .price {
    padding: 4px 16px 8px 16px !important;
    text-align: left !important;
}

/* --- 8.13 Breadcrumb Category Links on Product Page --- */
body.ecip-theme .woocommerce .woocommerce-breadcrumb {
    font-size: 0.85rem !important;
    color: var(--ecip-slate-400) !important;
    margin-bottom: 16px !important;
}

body.ecip-theme .woocommerce .woocommerce-breadcrumb a {
    color: var(--ecip-primary-600) !important;
    text-decoration: none !important;
}

body.ecip-theme .woocommerce .woocommerce-breadcrumb a:hover {
    text-decoration: underline !important;
}

/* --- 8.14 Product page quantity input fix --- */
/* Make the qty input better aligned with the teal add-to-cart button. */
body.ecip-theme .woocommerce div.product form.cart {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

body.ecip-theme .woocommerce div.product form.cart .quantity {
    margin-right: 0 !important;
}

body.ecip-theme .woocommerce div.product form.cart .quantity .qty {
    width: 70px !important;
    height: 48px !important;
    padding: 10px !important;
    border: 2px solid var(--ecip-slate-200) !important;
    border-radius: var(--radius-md) !important;
    text-align: center !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
}

body.ecip-theme .woocommerce div.product form.cart .quantity .qty:focus {
    border-color: var(--ecip-primary-500) !important;
    box-shadow: 0 0 0 3px rgba(21,163,79, 0.1) !important;
    outline: none !important;
}

/* --- 8.15 WooCommerce "Added to cart" view-cart link --- */
body.ecip-theme .woocommerce .added_to_cart {
    display: inline-block !important;
    margin-left: 8px !important;
    color: var(--ecip-primary-600) !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
}

body.ecip-theme .woocommerce .added_to_cart:hover {
    text-decoration: underline !important;
    color: var(--ecip-primary-700) !important;
}

/* --- 8.16 Select2 Dropdown Override (WC uses select2 on checkout) --- */
body.ecip-theme .select2-container--default .select2-selection--single {
    height: 48px !important;
    border: 1px solid var(--ecip-slate-200) !important;
    border-radius: var(--radius-md) !important;
    padding: 10px 14px !important;
}

body.ecip-theme .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 26px !important;
    color: var(--ecip-slate-800) !important;
    padding-left: 0 !important;
}

body.ecip-theme .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    right: 8px !important;
}

body.ecip-theme .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--ecip-primary-500) !important;
    box-shadow: 0 0 0 3px rgba(21,163,79, 0.1) !important;
}

body.ecip-theme .select2-dropdown {
    border: 1px solid var(--ecip-slate-200) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
}

body.ecip-theme .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--ecip-primary-600) !important;
}

/* --- 8.17 Page Title on Cart/Checkout/Account pages --- */
/* These h1 page titles (Kosik, Pokladna, Moj ucet) use default Astra styling. */
body.ecip-theme .entry-title,
body.ecip-theme .woocommerce-products-header__title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 700 !important;
    color: var(--ecip-slate-800) !important;
}

/* --- 8.18 Color Swatches on Product Page --- */
/* The color swatches look fine from the screenshot but ensure they have
   consistent sizing and hover effect. */
body.ecip-theme .woocommerce div.product .ecip-color-swatches .swatch,
body.ecip-theme .woocommerce div.product .color-swatch {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: 2px solid transparent !important;
    cursor: pointer !important;
    transition: all var(--transition-fast) !important;
}

body.ecip-theme .woocommerce div.product .ecip-color-swatches .swatch:hover,
body.ecip-theme .woocommerce div.product .color-swatch:hover {
    transform: scale(1.15) !important;
}

body.ecip-theme .woocommerce div.product .ecip-color-swatches .swatch.selected,
body.ecip-theme .woocommerce div.product .color-swatch.selected {
    border-color: var(--ecip-primary-600) !important;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ecip-primary-600) !important;
}

/* ==========================================================================
   9. Product description spec table (.ecip-specs) — SEO product descriptions
   ========================================================================== */
body.ecip-theme .ecip-specs {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 8px;
    font-size: 15px;
}
body.ecip-theme .ecip-specs th,
body.ecip-theme .ecip-specs td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}
body.ecip-theme .ecip-specs th {
    width: 40%;
    font-weight: 600;
    color: #0f172a;
    background: #f8fafc;
}
body.ecip-theme .ecip-specs td { color: #475569; }
body.ecip-theme .ecip-specs tr:last-child th,
body.ecip-theme .ecip-specs tr:last-child td { border-bottom: 0; }
body.ecip-theme .woocommerce-product-details__short-description { font-size: 16px; color: #475569; }
body.ecip-theme .woocommerce-Tabs-panel--description h3 { margin-top: 22px; font-size: 18px; color: #0f172a; }
@media (max-width: 560px) {
    body.ecip-theme .ecip-specs th { width: 46%; }
    body.ecip-theme .ecip-specs th, body.ecip-theme .ecip-specs td { padding: 8px 10px; font-size: 14px; }
}
