:root {
    --fauba-navy: #1d1d4b;
    --fauba-green: #75b836;
    --fauba-navy-light: #2a2a6e;
    --light-grey: #f4f4f4;
    --white: #ffffff;
    --text-dark: #333333;
    --text-muted: #666666;
    --border: #e0e0e0;
    --shadow: 0 4px 20px rgba(29, 29, 75, 0.1);
    --radius: 8px;
    --transition: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header */
.site-header {
    background: var(--white);
    border-bottom: 3px solid var(--fauba-green);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-fauba {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--fauba-navy);
}

.logo-divider { color: var(--fauba-green); font-weight: 300; }
.logo-sub { color: var(--fauba-navy); font-weight: 500; font-size: 0.95rem; }

.main-nav { display: flex; gap: 1.5rem; }
.main-nav a {
    text-decoration: none;
    color: var(--fauba-navy);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color var(--transition);
}
.main-nav a:hover { color: var(--fauba-green); }

.cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--fauba-navy);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background var(--transition);
}
.cart-btn:hover { background: var(--fauba-green); }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--fauba-navy) 0%, var(--fauba-navy-light) 100%);
    color: white;
    padding: 4rem 1.5rem;
    text-align: center;
}

.hero h1 { font-size: 2.5rem; margin-bottom: 0.75rem; font-weight: 700; }
.hero p { font-size: 1.1rem; max-width: 650px; margin: 0 auto; opacity: 0.9; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem; }

.section-title {
    color: var(--fauba-navy);
    border-left: 5px solid var(--fauba-green);
    padding-left: 15px;
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.product-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    background: white;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.product-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--light-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.product-img img { width: 100%; height: 100%; object-fit: cover; }

.product-info { padding: 1.25rem; }

.product-info h3 {
    font-size: 1.05rem;
    color: var(--fauba-navy);
    margin-bottom: 0.5rem;
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-weight: 700;
    color: var(--fauba-green);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-stock {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
}

.btn-primary { background: var(--fauba-navy); color: white; }
.btn-primary:hover { background: var(--fauba-green); }
.btn-success { background: var(--fauba-green); color: white; }
.btn-success:hover { background: #5fa028; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Cart Sidebar */
.cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1999;
}
.cart-overlay.active { display: block; }

.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 380px;
    max-width: 100vw;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0,0,0,0.15);
    z-index: 2000;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: right var(--transition);
}

.cart-sidebar.open { right: 0; }

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--fauba-green);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.cart-header h3 { color: var(--fauba-navy); }
.cart-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); }

.cart-items { flex: 1; overflow-y: auto; }
.cart-empty { color: var(--text-muted); text-align: center; padding: 2rem 0; }

.cart-item {
    display: flex;
    gap: 10px;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.cart-item-info { flex: 1; }
.cart-item-title { font-weight: 600; font-size: 0.9rem; color: var(--fauba-navy); }
.cart-item-price { font-size: 0.85rem; color: var(--fauba-green); }

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-item-qty button {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.cart-item-qty span { min-width: 20px; text-align: center; font-weight: 600; }

.cart-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 0.8rem;
}

.cart-footer { margin-top: 1rem; }
.cart-total { font-size: 1.2rem; font-weight: 700; color: var(--fauba-navy); margin-bottom: 1rem; }

/* Checkout */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .main-nav { display: none; }
}

.form-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--fauba-navy);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--fauba-green);
    box-shadow: 0 0 0 3px rgba(117, 184, 54, 0.15);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

.form-error { color: #dc3545; font-size: 0.8rem; margin-top: 0.25rem; }

.delivery-options { display: flex; gap: 1rem; flex-wrap: wrap; }
.delivery-option {
    flex: 1;
    min-width: 180px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.delivery-option:has(input:checked) {
    border-color: var(--fauba-green);
    background: rgba(117, 184, 54, 0.05);
}

.delivery-option input { display: none; }
.delivery-option strong { display: block; color: var(--fauba-navy); }

.shipping-fields { display: none; margin-top: 1rem; }
.shipping-fields.visible { display: block; }

.shipping-quote-panel {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--light-grey);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.order-summary {
    background: var(--light-grey);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

.order-summary h3 { color: var(--fauba-navy); margin-bottom: 1rem; }
.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}
.summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--fauba-navy);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--fauba-green);
}

/* Confirmation */
.confirmation-card {
    max-width: 700px;
    margin: 3rem auto;
    text-align: center;
    padding: 3rem 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    background: var(--fauba-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
}

.order-number {
    font-size: 1.5rem;
    color: var(--fauba-navy);
    font-weight: 700;
    margin: 1rem 0;
}

/* Alerts */
.alert {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
}

.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* How to buy */
.how-to-buy {
    background: var(--light-grey);
    padding: 3rem 1.5rem;
}

.how-to-buy .steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    border-top: 4px solid var(--fauba-green);
}

.step-num {
    width: 36px;
    height: 36px;
    background: var(--fauba-navy);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 0.75rem;
}

/* Footer */
.site-footer {
    background: var(--fauba-navy);
    color: white;
    padding: 3rem 1.5rem;
    margin-top: 3rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.site-footer h4 { margin-bottom: 0.75rem; color: var(--fauba-green); }
.site-footer p { font-size: 0.9rem; opacity: 0.85; }

/* Admin styles */
.admin-body { background: #f0f2f5; min-height: 100vh; }

.admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: var(--fauba-navy);
    color: white;
    padding: 1.5rem 0;
    z-index: 100;
}

.admin-sidebar .brand {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1rem;
}

.admin-sidebar .brand h2 { font-size: 1.1rem; margin: 0; }
.admin-sidebar .brand small { opacity: 0.7; font-size: 0.75rem; display: block; margin-top: 0.35rem; }

.brand-logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 0.5rem;
}

.login-brand h1 {
    margin-bottom: 0;
}

.login-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.admin-nav a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition);
}

.admin-nav a:hover, .admin-nav a.active {
    background: rgba(117, 184, 54, 0.2);
    color: white;
    border-left: 3px solid var(--fauba-green);
}

.admin-main {
    margin-left: 260px;
    padding: 2rem;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--fauba-green);
}

.stat-card .stat-value { font-size: 2rem; font-weight: 700; color: var(--fauba-navy); }
.stat-card .stat-label { font-size: 0.85rem; color: var(--text-muted); }

.datatable-thumb { width: 50px; height: 50px; object-fit: cover; border-radius: 4px; }

.badge { padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.bg-success { background: #d4edda !important; color: #155724 !important; }
.bg-warning { background: #fff3cd !important; color: #856404 !important; }
.bg-info { background: #d1ecf1 !important; color: #0c5460 !important; }
.bg-primary { background: #cce5ff !important; color: #004085 !important; }
.bg-danger { background: #f8d7da !important; color: #721c24 !important; }
.bg-secondary { background: #e2e3e5 !important; color: #383d41 !important; }
.bg-dark { background: #d6d8d9 !important; color: #1b1e21 !important; }

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--fauba-navy), var(--fauba-navy-light));
}

.login-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.login-card h1 {
    color: var(--fauba-navy);
    text-align: center;
    margin-bottom: 0.5rem;
}

.login-card .subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.status-timeline { list-style: none; }
.status-timeline li {
    padding: 0.75rem 0;
    border-left: 3px solid var(--border);
    padding-left: 1rem;
    margin-left: 0.5rem;
    position: relative;
}
.status-timeline li::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--fauba-green);
    border-radius: 50%;
    position: absolute;
    left: -6px;
    top: 1rem;
}

.return-type-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .return-type-cards { grid-template-columns: 1fr; }
}

.return-type-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 1.25rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.return-type-card:has(input:checked) {
    border-color: var(--fauba-green);
    background: rgba(117, 184, 54, 0.08);
}

.return-type-card input { display: none; }

.return-type-card strong {
    color: var(--fauba-navy);
    font-size: 1rem;
}

.return-type-card small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.return-form {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 1rem;
}

.return-step {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.25rem;
}

.return-step-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: var(--fauba-navy);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.return-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.return-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 0.6rem 0.75rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.return-option:has(input:checked) {
    border-color: var(--fauba-green);
    background: rgba(117, 184, 54, 0.08);
}

.return-option input {
    width: auto !important;
    margin-top: 3px;
}

.return-hint {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: #2e7d32;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .admin-sidebar { width: 100%; height: auto; position: relative; }
    .admin-main { margin-left: 0; }
}
