:root {
    --accent: #f97316;
    --accent-hover: #ea6d10;
    --dark-fitness: #111827;
    --dark-card: #1f2937;
}

body {
    background-color: #f8fafc;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; }

.bg-dark-fitness { background-color: var(--dark-fitness) !important; }
.bg-dark-card { background-color: var(--dark-card); }

.text-accent { color: var(--accent) !important; }
.bg-accent { background-color: var(--accent) !important; }
.border-accent { border-color: var(--accent) !important; }

.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}
.btn-accent:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
}
.btn-outline-accent {
    border-color: var(--accent);
    color: var(--accent);
}
.btn-outline-accent:hover {
    background-color: var(--accent);
    color: #fff;
}

.navbar-brand { text-decoration: none; }

.hero-section {
    background: linear-gradient(135deg, var(--dark-fitness) 0%, #1a2535 60%, #1f2d40 100%);
    color: white;
    padding: 3rem 0 2rem;
}

.hero-section .display-6 { font-weight: 700; }

.product-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.05);
    overflow: hidden;
}

.table-fitness thead {
    background-color: var(--dark-fitness);
    color: white;
}

.table-fitness thead th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 16px;
    border: none;
    white-space: nowrap;
}

.table-fitness tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s;
}

.table-fitness tbody tr:hover {
    background-color: #fef9f5;
}

.table-fitness tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    font-size: 0.9rem;
}

.product-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

.product-thumb-placeholder {
    width: 52px;
    height: 52px;
    background-color: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.2rem;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}

.price-badge {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
}

.min-qty-badge {
    background-color: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.qty-input {
    width: 70px;
    text-align: center;
    border-radius: 6px;
    border: 1.5px solid #e2e8f0;
    padding: 4px 8px;
    font-size: 0.9rem;
}
.qty-input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}

.category-pill {
    background-color: #f1f5f9;
    color: #475569;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 500;
}

.filter-bar {
    background: white;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    margin-bottom: 1.5rem;
}

.cart-summary-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.05);
    position: sticky;
    top: 80px;
}

.cart-item-row {
    border-bottom: 1px solid #f1f5f9;
    padding: 12px 0;
}

.step-header {
    background: linear-gradient(135deg, var(--dark-fitness), #1f2937);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.form-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    margin-bottom: 1.5rem;
}

.form-section h6 {
    color: var(--dark-fitness);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent);
    margin-bottom: 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}

.stock-ok { color: #16a34a; font-weight: 600; }
.stock-low { color: #ca8a04; font-weight: 600; }
.stock-out { color: #dc2626; font-weight: 600; }

.admin-nav { background-color: #1e293b; }
.admin-nav .nav-link { color: #94a3b8; padding: 0.5rem 1rem; border-radius: 6px; }
.admin-nav .nav-link:hover, .admin-nav .nav-link.active { background-color: rgba(249,115,22,.15); color: var(--accent); }

.admin-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    padding: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--accent);
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.badge-status-pending   { background-color: #fef9c3; color: #854d0e; border: 1px solid #fde047; }
.badge-status-reviewing { background-color: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
.badge-status-approved  { background-color: #dcfce7; color: #166534; border: 1px solid #86efac; }
.badge-status-shipped   { background-color: #f0f9ff; color: #075985; border: 1px solid #7dd3fc; }
.badge-status-rejected  { background-color: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

.alert-success-custom {
    background-color: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
    border-radius: 10px;
}

.footer-link {
    color: rgba(255,255,255,.6) !important;
    text-decoration: none !important;
}
.footer-link:hover {
    color: var(--accent) !important;
}
.footer-text {
    color: rgba(255,255,255,.55) !important;
    margin-bottom: 0.25rem;
}
.footer-shield {
    font-size: .85rem;
    color: rgba(255,255,255,.3);
    transition: color .2s;
}
.footer-shield:hover {
    color: rgba(255,255,255,.7);
}

/* Size grid in variant modal */
.size-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.size-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 6px 6px;
    min-width: 62px;
    transition: border-color .15s, background .15s;
}
.size-card:focus-within {
    border-color: var(--accent);
    background: #fff7ed;
}
.size-label {
    font-size: .78rem;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: .03em;
    line-height: 1;
}
.size-qty-input {
    width: 52px;
    text-align: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 2px;
    font-size: .9rem;
    font-weight: 600;
    color: #111827;
    background: white;
    -moz-appearance: textfield;
}
.size-qty-input::-webkit-outer-spin-button,
.size-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.size-qty-input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}
.size-qty-input[value="0"] { color: #9ca3af; }

@media (max-width: 768px) {
    .table-fitness { font-size: 0.8rem; }
    .table-fitness td, .table-fitness th { padding: 8px 10px; }
    .hero-section { padding: 1.5rem 0 1rem; }
    .size-card { min-width: 54px; }
}
