/*
Theme Name: Swiss Floor Garage
Theme URI: https://corentin.mon-dashboard.ch
Author: Swiss Floor Garage
Description: Custom theme for Swiss Floor Garage e-commerce site.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: swfloor
*/

/* ========================================
   Swiss Floor Garage - Design System
   ======================================== */

:root {
    --bg: #0b1220;
    --surface: #0f172a;
    --surface-2: #1e293b;
    --border: rgba(148,163,184,0.18);
    --accent: #0d9488;
    --accent-light: #14b8a6;
    --accent-bg: rgba(13,148,136,0.12);
    --text: #e5e7eb;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --danger: #ef4444;
    --white: #ffffff;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
    --transition: 0.2s ease;
}

/* RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

/* Background glow effect */
body::before {
    content: '';
    position: fixed;
    top: -200px; left: -200px;
    width: 800px; height: 600px;
    background: radial-gradient(ellipse, rgba(13,148,136,0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

a { color: var(--accent-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--white); }
img { max-width: 100%; display: block; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ========== TYPOGRAPHY ========== */
h1 { font-size: 48px; font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; color: var(--white); }
h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.01em; color: var(--white); }
h3 { font-size: 20px; font-weight: 600; color: var(--white); }
h4 { font-size: 16px; font-weight: 600; color: var(--text); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent-light); }
.text-center { text-align: center; }

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}
.btn-accent {
    background: var(--accent);
    color: var(--white);
}
.btn-accent:hover {
    background: var(--accent-light);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(13,148,136,0.4);
}
.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    background: var(--accent-bg);
}
.btn-ghost {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(148,163,184,0.15); }
.btn-danger { background: rgba(239,68,68,0.15); color: var(--danger); border: 1px solid rgba(239,68,68,0.3); }
.btn-danger:hover { background: rgba(239,68,68,0.25); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: var(--radius); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ========== CARDS ========== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition);
}
.card:hover { border-color: rgba(148,163,184,0.3); box-shadow: var(--shadow); }
.card-img {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
}

/* ========== NAVBAR ========== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15,23,42,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    height: 64px;
}
.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    color: var(--white);
}
.nav-logo:hover { color: var(--white); }
.logo-fd {
    width: 36px; height: 36px;
    background: var(--accent);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; color: var(--white);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.logo-fd::before {
    content: '';
    position: absolute; inset: 4px;
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 4px;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,0.12) 3px, rgba(255,255,255,0.12) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(255,255,255,0.12) 3px, rgba(255,255,255,0.12) 4px);
}
.logo-text { font-size: 15px; font-weight: 700; color: var(--white); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}
.nav-link {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted) !important;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    text-decoration: none;
}
.nav-link:hover, .nav-link.active {
    color: var(--white) !important;
    background: var(--surface-2);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-cart {
    position: relative;
    display: flex; align-items: center; gap: 6px;
    padding: 8px;
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    border-radius: var(--radius-sm);
}
.nav-cart:hover { color: var(--accent-light); }
.nav-cart svg { width: 22px; height: 22px; }
.cart-badge {
    position: absolute;
    top: -4px; right: -6px;
    background: var(--accent);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    min-width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bg);
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    background: none; border: none; color: var(--text); cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========== FOOTER ========== */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 40px 0 24px;
    margin-top: 80px;
}
.footer-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.footer-brand .logo-fd {
    width: 30px; height: 30px;
    font-size: 9px;
}
.footer-brand span { font-size: 15px; font-weight: 700; color: var(--white); }
.footer-desc { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 14px;
}
.footer-col a {
    display: block;
    color: var(--text-dim);
    font-size: 14px;
    padding: 4px 0;
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent-light); }
.footer-col p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.5;
}
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-dim);
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0 60px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(11,18,32,0.85) 0%,
        rgba(11,18,32,0.6) 45%,
        rgba(11,18,32,0.25) 75%,
        rgba(11,18,32,0.15) 100%
    );
}
.hero .container {
    position: relative;
    z-index: 1;
}
.hero h1 { margin-bottom: 16px; text-shadow: 0 2px 20px rgba(0,0,0,0.5); }
.hero .subtitle {
    font-size: 18px;
    color: rgba(229,231,235,0.9);
    margin-bottom: 32px;
    max-width: 560px;
    line-height: 1.5;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(13,148,136,0.2);
    border: 1px solid rgba(13,148,136,0.35);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}

/* ========== SECTION ========== */
.section { padding: 60px 0; }
.section-header {
    margin-bottom: 36px;
}
.section-header h2 { margin-bottom: 8px; }
.section-header p { color: var(--text-muted); font-size: 15px; }

/* ========== GRID ========== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* ========== PRODUCT CARD ========== */
.product-card { position: relative; }
.product-card .card-img {
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.tile-preview {
    width: 120px; height: 120px;
    border-radius: 8px;
    position: relative;
}
.tile-preview::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(0deg, rgba(0,0,0,0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.2) 1px, transparent 1px);
    background-size: 25% 25%;
    border-radius: 8px;
}
.product-card h4 { margin-bottom: 4px; }
.product-card .price {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-light);
    margin: 8px 0 12px;
}
.product-card .price span {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
}
.product-actions {
    display: flex; gap: 8px;
}

/* ========== FEATURES GRID ========== */
.feature-card {
    text-align: center;
    padding: 32px 20px;
}
.feature-icon {
    width: 56px; height: 56px;
    background: var(--accent-bg);
    border: 1px solid rgba(13,148,136,0.2);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    color: var(--accent-light);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h4 { margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* ========== CTA BANNER ========== */
.cta-banner {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.cta-banner h2 { margin-bottom: 8px; }
.cta-banner p { color: var(--text-muted); }

/* ========== FORMS ========== */
.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-input {
    width: 100%;
    padding: 12px 14px;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    transition: border-color var(--transition);
}
.form-input:focus { outline: none; border-color: var(--accent); }
.form-input::placeholder { color: var(--text-dim); }
textarea.form-input { resize: vertical; min-height: 100px; }
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* ========== AUTH TABS ========== */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
}
.auth-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-family: inherit;
}
.auth-tab.active {
    color: var(--accent-light);
    border-bottom-color: var(--accent);
}
.auth-panel { display: none; }
.auth-panel.active { display: block; }

/* ========== CART TABLE ========== */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}
.cart-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.cart-item-info {
    display: flex; align-items: center; gap: 14px;
}
.cart-item-swatch {
    width: 44px; height: 44px;
    border-radius: 8px;
    flex-shrink: 0;
    position: relative;
}
.cart-item-swatch::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(0deg, rgba(0,0,0,0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.2) 1px, transparent 1px);
    background-size: 25% 25%;
    border-radius: 8px;
}
.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.qty-btn {
    width: 34px; height: 34px;
    background: var(--surface-2);
    border: none;
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition);
    font-family: inherit;
}
.qty-btn:hover { background: rgba(148,163,184,0.2); }
.qty-val {
    width: 40px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    background: var(--surface);
    border: none;
    color: var(--text);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    height: 34px;
    font-family: inherit;
}
.cart-total {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    border-top: 2px solid var(--border);
    margin-top: 8px;
}
.cart-total .total-label {
    font-size: 16px;
    color: var(--text-muted);
}
.cart-total .total-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
}

/* ========== FILTERS ========== */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.filter-tabs-sm { margin-bottom: 20px; }
.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}
.filter-tabs-sm .filter-tab {
    padding: 7px 14px;
    font-size: 13px;
    border-radius: 8px;
}
.filter-tab:hover {
    border-color: var(--accent);
    color: var(--text);
    background: rgba(13,148,136,0.08);
}
.filter-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.filter-tab.active svg { color: #fff; }
.filter-tab svg { color: var(--text-dim); flex-shrink: 0; }
.filter-tab-count {
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
}
.filter-tab:not(.active) .filter-tab-count {
    background: var(--surface);
    color: var(--text-dim);
}

.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    align-items: center;
}
.filter-bar .form-input {
    max-width: 280px;
    padding: 10px 14px;
    font-size: 14px;
}

/* ========== BADGE ========== */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-accent { background: var(--accent-bg); color: var(--accent-light); border: 1px solid rgba(13,148,136,0.25); }
.badge-muted { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-state svg { width: 64px; height: 64px; color: var(--text-dim); margin-bottom: 16px; }
.empty-state h3 { margin-bottom: 8px; color: var(--text-muted); }
.empty-state p { color: var(--text-dim); margin-bottom: 24px; }

/* ========== PAGE HEADER ========== */
.page-header {
    padding: 40px 0 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}
.page-header h1 { font-size: 32px; margin-bottom: 6px; }
.page-header p { color: var(--text-muted); font-size: 15px; }

/* ========== ADMIN BAR ========== */
body.admin-bar .navbar { top: 32px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
    h1 { font-size: 34px; }
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .cta-banner { flex-direction: column; text-align: center; padding: 32px 20px; }
    .hero { min-height: 100vh; padding: 60px 0 32px; }
    .hero-bg::after {
        background: linear-gradient(
            to top,
            rgba(11,18,32,0.9) 0%,
            rgba(11,18,32,0.6) 50%,
            rgba(11,18,32,0.3) 100%
        );
    }
    .nav-menu { display: none; }
    .nav-menu.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: 12px;
        box-shadow: var(--shadow-lg);
    }
    .nav-toggle { display: flex; }
    .nav-actions .btn { display: none; }
    .logo-text { font-size: 13px; }
    .filter-tabs { gap: 6px; }
    .filter-tab { padding: 8px 14px; font-size: 13px; }
    .filter-tabs-sm .filter-tab { padding: 6px 10px; font-size: 12px; }
    .filter-bar { flex-direction: column; }
    .filter-bar .form-input { max-width: 100%; }
    .cart-table { font-size: 13px; }
    .cart-table th:nth-child(n+3), .cart-table td:nth-child(n+3) { display: none; }
    body.admin-bar .navbar { top: 46px; }
}

@media (min-width: 961px) and (max-width: 1200px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

/* ============ WOOCOMMERCE OVERRIDES ============ */

/* ---- Global WC resets ---- */
.woocommerce,
.woocommerce-page {
    color: var(--text);
}
.woocommerce a { color: var(--accent-light); }

/* ---- Buttons WC ---- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce .checkout-button {
    background: var(--accent) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.4 !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    background: var(--accent-light) !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow) !important;
}
.woocommerce a.button.disabled,
.woocommerce button.button.disabled,
.woocommerce button.button:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* ---- Cart table ---- */
.woocommerce table.shop_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
}
.woocommerce table.shop_table thead {
    background: var(--surface-2);
}
.woocommerce table.shop_table th {
    background: transparent;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.woocommerce table.shop_table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 14px;
    vertical-align: middle;
    background: transparent;
}
.woocommerce table.shop_table tbody tr:last-child td {
    border-bottom: none;
}
.woocommerce table.shop_table tbody tr:hover td {
    background: rgba(148,163,184,0.04);
}

/* Product remove button */
.woocommerce table.shop_table .product-remove {
    width: 40px;
    text-align: center;
}
.woocommerce table.shop_table .product-remove a.remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(239,68,68,0.1);
    color: #ef4444 !important;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.15s;
    line-height: 1;
}
.woocommerce table.shop_table .product-remove a.remove:hover {
    background: #ef4444;
    color: #fff !important;
}

/* Product thumbnail - hide WC placeholder, show color swatch */
.woocommerce table.shop_table .product-thumbnail {
    width: 60px;
    padding: 16px 8px 16px 16px;
}
.woocommerce table.shop_table .product-thumbnail img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface-2);
}

/* Product name */
.woocommerce table.shop_table .product-name {
    font-weight: 500;
}
.woocommerce table.shop_table .product-name a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}
.woocommerce table.shop_table .product-name a:hover {
    color: var(--accent-light);
}

/* Product price */
.woocommerce table.shop_table .product-price,
.woocommerce table.shop_table .product-subtotal {
    font-weight: 600;
}

/* Quantity input */
.woocommerce .quantity .qty,
.woocommerce table.shop_table .quantity .qty {
    width: 56px;
    padding: 8px 4px;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    font-family: inherit;
    -moz-appearance: textfield;
}
.woocommerce .quantity .qty::-webkit-inner-spin-button,
.woocommerce .quantity .qty::-webkit-outer-spin-button {
    opacity: 1;
}
.woocommerce .quantity .qty:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface);
}

/* Cart actions row (coupon + update) */
.woocommerce table.shop_table td.actions {
    padding: 16px;
    background: var(--surface-2);
    border-bottom: none;
}
.woocommerce .coupon {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.woocommerce .coupon .input-text {
    padding: 10px 14px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    width: 180px;
}
.woocommerce .coupon .input-text::placeholder {
    color: var(--text-dim);
}
.woocommerce .coupon .input-text:focus {
    outline: none;
    border-color: var(--accent);
}
.woocommerce .coupon .button {
    padding: 10px 16px !important;
    font-size: 13px !important;
}
.woocommerce button[name="update_cart"] {
    background: var(--surface) !important;
    color: var(--text-muted) !important;
    border: 1.5px solid var(--border) !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    float: right;
}
.woocommerce button[name="update_cart"]:hover {
    background: var(--surface-2) !important;
    color: var(--text) !important;
    border-color: var(--border-2) !important;
}

/* ---- Cart totals ---- */
.woocommerce .cart_totals,
.woocommerce-page .cart_totals {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-top: 24px;
    max-width: 480px;
    margin-left: auto;
}
.woocommerce .cart_totals h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}
.woocommerce .cart_totals table {
    width: 100%;
    border-collapse: collapse;
}
.woocommerce .cart_totals table th,
.woocommerce .cart_totals table td {
    padding: 14px 0;
    color: var(--text);
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    background: transparent;
}
.woocommerce .cart_totals table th {
    font-weight: 500;
    color: var(--text-muted);
    text-align: left;
    width: 40%;
}
.woocommerce .cart_totals table td {
    text-align: right;
}
.woocommerce .cart_totals .order-total th,
.woocommerce .cart_totals .order-total td {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-light);
    border-bottom: none;
    padding-top: 18px;
}
.woocommerce .cart_totals .wc-proceed-to-checkout {
    margin-top: 20px;
}
.woocommerce .cart_totals .wc-proceed-to-checkout .checkout-button {
    width: 100%;
    padding: 14px 24px !important;
    font-size: 15px !important;
}

/* ---- WC Notices ---- */
.woocommerce-message,
.woocommerce-info {
    background: var(--accent-bg) !important;
    border: 1px solid rgba(13,148,136,0.3) !important;
    border-left: 4px solid var(--accent) !important;
    border-radius: var(--radius) !important;
    padding: 14px 20px !important;
    color: var(--accent-light) !important;
    font-size: 14px !important;
    margin-bottom: 20px !important;
    line-height: 1.5 !important;
}
.woocommerce-message::before,
.woocommerce-info::before {
    color: var(--accent-light) !important;
    margin-right: 10px;
}
.woocommerce-message a,
.woocommerce-info a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    background: var(--accent);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    float: right;
    margin-left: 12px;
}
.woocommerce-message a:hover,
.woocommerce-info a:hover {
    background: var(--accent-light);
}
.woocommerce-error {
    background: rgba(239,68,68,0.08) !important;
    border: 1px solid rgba(239,68,68,0.25) !important;
    border-left: 4px solid #ef4444 !important;
    border-radius: var(--radius) !important;
    padding: 14px 20px !important;
    color: #fca5a5 !important;
    font-size: 14px !important;
    margin-bottom: 20px !important;
    list-style: none !important;
}
.woocommerce-error li {
    list-style: none;
}

/* ---- Checkout form ---- */
.woocommerce form .form-row {
    margin-bottom: 16px;
}
.woocommerce form .form-row label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.woocommerce form .form-row .input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea,
.woocommerce-checkout .select2-container .select2-selection--single {
    width: 100%;
    padding: 12px 14px;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}
.woocommerce form .form-row .input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface);
}
.woocommerce-checkout .select2-container .select2-selection--single {
    height: auto;
    line-height: 1.4;
}
.woocommerce form .form-row .required {
    color: var(--accent-light);
}

/* ---- Checkout sections ---- */
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3,
#order_review_heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.woocommerce-checkout .col2-set {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
@media (max-width: 768px) {
    .woocommerce-checkout .col2-set {
        grid-template-columns: 1fr;
    }
}

/* Order review table */
.woocommerce table.shop_table.woocommerce-checkout-review-order-table {
    background: var(--surface);
}

/* Payment methods */
.woocommerce-checkout #payment {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 20px;
}
.woocommerce-checkout #payment ul.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}
.woocommerce-checkout #payment ul.payment_methods li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.woocommerce-checkout #payment ul.payment_methods li:last-child {
    border-bottom: none;
}
.woocommerce-checkout #payment ul.payment_methods li label {
    color: var(--text);
    font-weight: 500;
    cursor: pointer;
}
.woocommerce-checkout #payment div.payment_box {
    background: var(--surface-2);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 13px;
}
.woocommerce-checkout #payment .place-order {
    padding-top: 16px;
}

/* ---- My Account page ---- */
.woocommerce-MyAccount-navigation {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 24px;
}
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 8px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}
.woocommerce-MyAccount-navigation ul li a:hover {
    color: var(--text);
    background: var(--surface-2);
}
.woocommerce-MyAccount-navigation ul li.is-active a {
    color: #fff;
    background: var(--accent);
}
.woocommerce-MyAccount-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}
.woocommerce-MyAccount-content p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}
.woocommerce-MyAccount-content a {
    color: var(--accent-light);
}

/* ---- Login/Register forms ---- */
.woocommerce form.login,
.woocommerce form.register {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
}
.woocommerce form.login h2,
.woocommerce form.register h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text);
}
.woocommerce form.login p.form-row,
.woocommerce form.register p.form-row {
    margin-bottom: 16px;
}
.woocommerce .woocommerce-form-login .woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 13px;
}
.woocommerce .lost_password a {
    color: var(--text-muted);
    font-size: 13px;
}
.woocommerce .lost_password a:hover {
    color: var(--accent-light);
}

/* ---- Empty cart ---- */
.woocommerce .cart-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
    font-size: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.woocommerce .return-to-shop {
    text-align: center;
    margin-top: 20px;
}
.woocommerce .return-to-shop a {
    display: inline-flex;
}

/* ---- Price amounts ---- */
.woocommerce .amount,
.woocommerce .woocommerce-Price-amount {
    color: var(--accent-light);
    font-weight: 600;
}
/* Keep subtotal white in cart table for readability */
.woocommerce table.shop_table .product-subtotal .amount {
    color: var(--text);
}

/* ---- Responsive cart ---- */
@media (max-width: 768px) {
    .woocommerce table.shop_table .product-thumbnail {
        display: none;
    }
    .woocommerce table.shop_table th,
    .woocommerce table.shop_table td {
        padding: 10px 8px;
        font-size: 13px;
    }
    .woocommerce .coupon {
        flex-direction: column;
        width: 100%;
    }
    .woocommerce .coupon .input-text {
        width: 100%;
    }
    .woocommerce button[name="update_cart"] {
        float: none;
        width: 100%;
        margin-top: 8px;
    }
    .woocommerce .cart_totals {
        max-width: 100%;
    }
}
