/* ===== OHMI Spiritware Design System ===== */

/* --- Custom Properties --- */
:root {
    --color-primary: #32373c;
    --color-magenta: #c3357b;
    --color-blue: #2e86c1;
    --color-green: #28a745;
    --color-red: #dc3545;
    --color-orange: #fd7e14;
    --color-cyan: #17a2b8;
    --color-text: #32373c;
    --color-text-muted: #6c757d;
    --color-border: #dee2e6;
    --color-bg: #ffffff;
    --color-bg-subtle: #f8f9fa;
    --color-bg-card: rgba(255,255,255,0.6);
    --radius-pill: 9999px;
    --radius-card: 12px;
    --radius-sm: 6px;
    --shadow-card: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.12);
    --container-width: 1100px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    background:
        linear-gradient(rgba(255,255,255,0.55), rgba(255,255,255,0.55)),
        url('/static/img/background.jpg') center/cover no-repeat fixed;
    color: var(--color-text);
}
a { color: var(--color-blue); }
a:hover { color: var(--color-magenta); }
img { max-width: 100%; height: auto; }

/* --- Container --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 24px 20px;
}

/* --- Navigation --- */
nav {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0 20px;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}
nav .nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 60px;
}
nav .nav-left, nav .nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
}
nav .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px;
    border: none;
    background: none;
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.15em;
}
nav .brand:hover {
    background: none;
    border: none;
    color: var(--color-magenta);
}
nav .brand img {
    height: 36px;
    width: auto;
}
nav a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.88em;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--color-border);
    background: var(--color-bg-subtle);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
nav a:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    text-decoration: none;
}
nav .cart-link {
    position: relative;
    border: 1.5px solid var(--color-border);
}
nav .cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--color-magenta);
    color: white;
    font-size: 0.7em;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}
nav .admin-link {
    color: white;
    font-weight: 700;
    background: var(--color-magenta);
}
nav .admin-link:hover {
    background: var(--color-primary);
    color: white;
}
nav .user-info {
    color: var(--color-text-muted);
    font-size: 0.85em;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    line-height: 1.4;
    text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: var(--color-primary);
    color: #fff;
}
.btn-primary:hover { background: #23272b; color: #fff; }
.btn-magenta {
    background: var(--color-magenta);
    color: #fff;
}
.btn-magenta:hover { background: #a52d69; color: #fff; }
.btn-green {
    background: var(--color-green);
    color: #fff;
}
.btn-green:hover { background: #1e7e34; color: #fff; }
.btn-blue {
    background: var(--color-blue);
    color: #fff;
}
.btn-blue:hover { background: #2472a4; color: #fff; }
.btn-secondary {
    background: var(--color-bg-subtle);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}
.btn-secondary:hover { background: #e9ecef; color: var(--color-text); }
.btn-danger {
    background: var(--color-red);
    color: #fff;
}
.btn-danger:hover { background: #c82333; color: #fff; }
.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-sm {
    padding: 6px 14px;
    font-size: 0.85em;
}
.btn-lg {
    padding: 14px 32px;
    font-size: 1.05em;
}
button.btn-primary,
button.btn-green,
button.btn-magenta,
button.btn-blue,
button.btn-danger {
    border: none;
}

/* --- Cards --- */
.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.card-body {
    padding: 20px;
}

/* --- Tables --- */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: var(--color-bg-card);
}
.table th, .table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}
.table th {
    background: rgba(248,249,250,0.7);
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.table tbody tr:hover {
    background: rgba(248,249,250,0.5);
}
.table tfoot td {
    font-weight: 700;
    border-top: 2px solid var(--color-border);
}
.total-label {
    text-align: right;
    font-weight: bold;
}
.total-value {
    font-weight: bold;
    font-size: 1.15em;
}

/* --- Badges --- */
.badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.8em;
    font-weight: 600;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}
.badge.pre-order { background: #fff3cd; color: #856404; }
.badge.in-stock { background: #d4edda; color: #155724; }
.badge.coming-soon { background: #cce5ff; color: #004085; }
.badge.ending-soon { background: #fff3cd; color: #856404; }
.badge.campaign-ended { background: #e2e3e5; color: #6c757d; }

/* --- Status Badges --- */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.85em;
    border-radius: var(--radius-pill);
    font-weight: 600;
}
.status-badge.large {
    font-size: 1.05em;
    padding: 8px 18px;
}
.status-badge.pending { background: #fff3cd; color: #856404; }
.status-badge.paid { background: #d4edda; color: #155724; }
.status-badge.ready { background: var(--color-cyan); color: white; }
.status-badge.partial { background: var(--color-orange); color: white; }
.status-badge.delivered { background: #cce5ff; color: #004085; }
.status-badge.cancelled { background: #f8d7da; color: #721c24; }
.status-badge.active { background: #d4edda; color: #155724; }
.status-badge.upcoming { background: #cce5ff; color: #004085; }
.status-badge.ended { background: #e2e3e5; color: #6c757d; }
.status-badge.inactive { background: #e2e3e5; color: #6c757d; }

/* --- Forms --- */
form { max-width: 480px; }
.form-wide { max-width: none; }
label {
    display: block;
    margin-top: 12px;
    font-weight: 600;
    font-size: 0.95em;
    color: var(--color-text);
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="search"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    margin-top: 5px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.95em;
    color: var(--color-text);
    background: #fff;
    transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(46,134,193,0.15);
}
button {
    margin-top: 15px;
    padding: 10px 24px;
    cursor: pointer;
    border-radius: var(--radius-pill);
    font-weight: 600;
    border: none;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.95em;
    transition: background 0.2s;
}
button:hover { background: #23272b; }
button:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.optional { font-weight: normal; color: var(--color-text-muted); }

/* --- Flash Messages --- */
.flash-messages { margin-bottom: 20px; }
.flash-message {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    font-size: 0.95em;
}
.flash-error, .flash-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.flash-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.flash-info {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}
.flash-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* --- Hero Section (index) --- */
.hero {
    text-align: center;
    padding: 60px 30px;
    background: rgba(255,255,255,0.35);
    border-radius: var(--radius-card);
    margin-bottom: 30px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
}
.hero h1 {
    margin: 0 0 10px;
    font-size: 2.4em;
    color: var(--color-primary);
}
.hero .greeting {
    font-size: 1.2em;
    color: var(--color-magenta);
    margin-bottom: 5px;
}
.hero .tagline {
    font-size: 1.15em;
    color: var(--color-text-muted);
    margin: 0;
}

/* --- Shop Sections Grid (index) --- */
.shop-sections { margin-bottom: 30px; }
.shop-sections h2 {
    margin-bottom: 20px;
    text-align: center;
    color: var(--color-primary);
}
.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 320px));
    justify-content: center;
    gap: 25px;
}
.section-card {
    display: block;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--color-bg-card);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-card);
}
.section-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    color: inherit;
}
.section-card.no-campaigns-card {
    cursor: default;
    opacity: 0.7;
}
.section-card.no-campaigns-card:hover {
    transform: none;
    box-shadow: var(--shadow-card);
}
.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.section-card:hover .card-image img {
    transform: scale(1.05);
}
.card-image .no-image {
    width: 100%;
    height: 100%;
    background: var(--color-bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 1.1em;
    font-weight: 500;
}
.card-content {
    padding: 20px;
    text-align: center;
}
.card-content h3 {
    margin: 0 0 8px;
    font-size: 1.25em;
    color: var(--color-primary);
}
.date-range {
    color: var(--color-text-muted);
    margin: 0 0 15px;
    font-size: 0.95em;
}
.card-content .message {
    color: var(--color-text-muted);
    margin: 0 0 15px;
    font-size: 0.95em;
}
.btn-card {
    display: inline-block;
    padding: 10px 28px;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95em;
    transition: background 0.2s;
}
.section-card:hover .btn-card {
    background: #23272b;
}

/* --- CTA Section (index) --- */
.cta {
    text-align: center;
    padding: 25px 30px;
    max-width: 480px;
    margin: 0 auto;
    background: rgba(255,255,255,0.35);
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
}
.cta h2 {
    margin-top: 0;
    color: var(--color-primary);
}
.cta p { color: var(--color-text-muted); }
.btn-register {
    display: inline-block;
    padding: 14px 36px;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1em;
    transition: background 0.2s;
}
.btn-register:hover { background: #23272b; color: white; }

/* --- Page Header (catalog) --- */
.page-header {
    background: var(--color-bg-card);
    color: var(--color-primary);
    padding: 25px 30px;
    border-radius: var(--radius-card);
    margin-bottom: 25px;
    border: 1px solid var(--color-border);
}
.page-header h1 {
    margin: 0;
    font-size: 1.8em;
}
.page-subtitle {
    margin: 8px 0 0;
    color: var(--color-text-muted);
    font-size: 1.05em;
}

/* --- Product Grid (catalog) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.product-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 15px;
    text-align: center;
    background: var(--color-bg-card);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.product-card h3 { margin: 10px 0 5px; font-size: 1.1em; }
.product-card h3 a { text-decoration: none; color: var(--color-primary); }
.product-card h3 a:hover { color: var(--color-magenta); }
.product-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: var(--color-bg-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: opacity 0.2s;
}
.product-image:hover { opacity: 0.85; }
.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
}
.price { font-weight: bold; color: var(--color-primary); margin: 5px 0; }
.campaign-name {
    font-size: 0.85em;
    color: var(--color-blue);
    margin: 2px 0 5px;
    font-weight: 500;
}

/* --- Product Detail --- */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.product-images { display: flex; flex-direction: column; gap: 10px; }
.product-images .product-image { height: auto; max-height: 500px; object-fit: contain; border-radius: var(--radius-card); }
.product-info h1 { margin-top: 0; }
.campaign-info-box {
    background: #eaf4fd;
    border: 1px solid #b8daff;
    border-radius: var(--radius-sm);
    padding: 10px 15px;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.campaign-label { color: var(--color-text-muted); font-size: 0.9em; }
.campaign-dates-info { color: var(--color-text-muted); font-size: 0.9em; }
.campaign-dates-info::before { content: "|"; margin-right: 8px; color: #ccc; }
.base-price { color: var(--color-text-muted); }
.total-price { font-size: 1.3em; }
.description { margin: 15px 0; color: #555; }
.campaign-banner {
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    margin: 15px 0;
    font-weight: bold;
    text-align: center;
}
.ending-soon-banner { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }
.campaign-message {
    padding: 20px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    text-align: center;
}
.campaign-message p { margin: 5px 0; }
.campaign-message p:first-child { font-size: 1.2em; font-weight: bold; }
.message-subtext { color: var(--color-text-muted); font-size: 0.9em; }
.coming-soon-message { background: #cce5ff; color: #004085; border: 1px solid #b8daff; }
.ended-message { background: #e2e3e5; color: #6c757d; border: 1px solid #d6d8db; }
.stock-status { font-weight: bold; margin: 10px 0; }
.stock-status.out-of-stock { color: var(--color-red); }
.stock-status.available { color: var(--color-green); }
.price-adjustment { color: var(--color-text-muted); font-style: italic; }
#add-to-cart-form { max-width: none; }
#add-to-cart-btn {
    width: 100%;
    padding: 14px;
    font-size: 1.1em;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s;
}
#add-to-cart-btn:hover { background: #23272b; }
#add-to-cart-btn:disabled { background: #ccc; cursor: not-allowed; }

/* --- Cart --- */
.quantity-form {
    display: flex;
    gap: 5px;
    align-items: center;
    max-width: none;
}
.quantity-input {
    width: 60px !important;
    padding: 5px !important;
    margin: 0 !important;
}
.btn-small {
    padding: 5px 12px;
    margin: 0;
    font-size: 0.85em;
    border-radius: var(--radius-pill);
    background: var(--color-primary);
    color: #fff;
    border: none;
    cursor: pointer;
}
.btn-small:hover { background: #23272b; }
.btn-remove {
    padding: 5px 12px;
    background: var(--color-red);
    color: white;
    border: none;
    cursor: pointer;
    margin: 0;
    border-radius: var(--radius-pill);
    font-size: 0.85em;
}
.btn-remove:hover { background: #c82333; }
.remove-form { max-width: none; margin: 0; }
.cart-total-label { text-align: right; font-weight: bold; }
.cart-total-value { font-weight: bold; font-size: 1.2em; }
.cart-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}
.login-prompt { margin: 0; }

/* --- Checkout --- */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.order-summary, .payment-section {
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-bg-card);
}
.order-summary h2, .payment-section h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}
.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.15s;
}
.payment-option:hover {
    border-color: var(--color-blue);
    background: #fafbfc;
}
.payment-option input[type="radio"] { margin-top: 3px; }
.option-content { display: flex; flex-direction: column; }
.option-desc { font-size: 0.9em; color: var(--color-text-muted); margin-top: 3px; }
.btn-place-order {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    background: var(--color-primary);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-pill);
    font-weight: 700;
}
.btn-place-order:hover { background: #23272b; }
.payment-section form { max-width: none; }

/* --- Confirmation --- */
.confirmation-header {
    text-align: center;
    padding: 24px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    margin-bottom: 20px;
}
.confirmation-header h1 {
    color: var(--color-green);
    margin: 0;
}
.order-number { font-size: 1.2em; font-weight: bold; margin: 10px 0 5px; }
.order-date { color: var(--color-text-muted); margin: 0; }
.confirmation-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.order-details, .whats-next {
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-bg-card);
}
.order-details h2, .whats-next h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}
.next-steps ol { padding-left: 20px; }
.next-steps li { margin-bottom: 10px; }
.status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.9em;
    font-weight: 600;
}
.status.pending { background: #fff3cd; color: #856404; }
.btn-download {
    display: inline-block;
    padding: 10px 24px;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-pill);
    margin-top: 10px;
    font-weight: 600;
}
.btn-download:hover { background: #23272b; color: white; }
.actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--color-border);
}
.btn-continue {
    display: inline-block;
    padding: 10px 24px;
    background: var(--color-bg-subtle);
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border);
    font-weight: 600;
}
.btn-continue:hover { background: #e9ecef; color: var(--color-text); }

/* --- Auth Pages (login/register) --- */
.auth-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -24px -20px;
    padding: 40px 20px;
}
.auth-card {
    background: var(--color-bg-card);
    padding: 40px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-hover);
    width: 100%;
    max-width: 440px;
}
.auth-card h1 {
    text-align: center;
    margin-top: 0;
    color: var(--color-primary);
}
.auth-card form { max-width: none; }
.auth-card button {
    width: 100%;
    padding: 12px;
    font-size: 1em;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-pill);
}
.auth-card button:hover { background: #23272b; }
.auth-card p {
    text-align: center;
    margin-top: 18px;
    color: var(--color-text-muted);
}

/* --- Account Orders --- */
.btn-view {
    display: inline-block;
    padding: 6px 16px;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-size: 0.85em;
    font-weight: 600;
}
.btn-view:hover { background: #23272b; color: white; }

/* --- Order Detail --- */
.order-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}
.info-card {
    background: var(--color-bg-card);
    padding: 20px;
    border-radius: var(--radius-card);
    margin-bottom: 20px;
    border: 1px solid var(--color-border);
}
.info-card h2 {
    margin-top: 0;
    font-size: 1.1em;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
}
.status-display { text-align: center; margin: 15px 0; }
.status-timeline {
    margin-top: 15px;
    border-top: 1px solid var(--color-border);
    padding-top: 15px;
}
.timeline-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    color: #aaa;
    font-size: 0.9em;
}
.timeline-item.active { color: var(--color-text); }
.timeline-item.active .timeline-label { font-weight: bold; }
.timeline-item.cancelled { color: #721c24; }
.invoice-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--color-border);
}
.btn-invoice {
    display: inline-block;
    padding: 10px 20px;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-weight: 600;
}
.btn-invoice:hover { background: #23272b; color: white; }

/* --- Admin: Stat Cards --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-card);
}
.stat-card .stat-number {
    font-size: 2em;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 4px;
}
.stat-card .stat-label {
    color: var(--color-text-muted);
    font-size: 0.9em;
    font-weight: 500;
}

/* --- Admin: Quick Links / Report Cards --- */
.quick-links, .report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}
.quick-link, .report-card {
    display: block;
    padding: 20px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    text-decoration: none;
    color: var(--color-text);
    text-align: center;
    font-weight: 600;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: var(--shadow-card);
}
.quick-link:hover, .report-card:hover {
    border-color: var(--color-magenta);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    color: var(--color-magenta);
}

/* --- Admin: Filter Bar --- */
.filter-bar, .filters {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 16px 20px;
    margin-bottom: 20px;
}
.filter-bar form, .filters form {
    max-width: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}
.filter-bar label, .filters label {
    margin-top: 0;
    font-size: 0.85em;
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.filter-group input, .filter-group select {
    margin-top: 0;
    padding: 8px 10px;
}

/* --- Admin: Action Buttons Row --- */
.admin-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* --- Admin: Summary Cards (reports) --- */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}
.summary-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-card);
}
.summary-card .number {
    font-size: 1.8em;
    font-weight: 800;
    color: var(--color-primary);
}
.summary-card .label {
    color: var(--color-text-muted);
    font-size: 0.85em;
    margin-top: 4px;
}

/* --- Summary Card Modifiers --- */
.summary-card.danger { border-color: var(--color-red); background: #f8d7da; }
.summary-card.success { border-color: var(--color-green); background: #d4edda; }
.summary-card.warning { border-color: #ffc107; background: #fff3cd; }
.summary-card.highlight { border-color: var(--color-blue); background: #cce5ff; }
.summary-card.cancelled { border-color: #f5c6cb; background: #f8d7da; }

/* --- Export / Print Buttons --- */
.btn-export {
    display: inline-block;
    padding: 10px 20px;
    background: var(--color-green);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95em;
}
.btn-export:hover { background: #1e7e34; color: white; }
.btn-print-action {
    display: inline-block;
    padding: 10px 20px;
    background: var(--color-blue);
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95em;
}
.btn-print-action:hover { background: #2472a4; color: white; }
.export-row { margin-bottom: 20px; display: flex; gap: 10px; }

/* --- Badge Variants --- */
.badge.cash { background: #d4edda; color: #155724; }
.badge.account { background: #cce5ff; color: #004085; }

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 60px 40px;
    background: var(--color-bg-card);
    border-radius: var(--radius-card);
}
.empty-state h2 { margin: 0 0 10px; }
.empty-state p { color: var(--color-text-muted); }
.empty-state.success { background: #d4edda; border: 1px solid var(--color-green); }
.empty-state.success h2, .empty-state.success p { color: #155724; }

/* --- Report Sections --- */
.report-section {
    margin-bottom: 30px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    overflow: hidden;
}
.report-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    margin: 0;
    color: white;
    font-size: 1em;
}
.report-section-header.danger { background: var(--color-red); }
.report-section-header.dark { background: var(--color-primary); }
.report-note {
    background: #fff3cd;
    padding: 20px;
    border-radius: var(--radius-card);
    border: 1px solid #ffc107;
    margin-top: 20px;
}
.report-note h3 { margin: 0 0 10px; color: #856404; }
.report-note p { margin: 0 0 15px; color: #856404; }
.report-note ul { margin: 0; padding-left: 20px; color: #856404; }
.report-note li { margin-bottom: 8px; }
.report-note ul ul { margin-top: 5px; }
.report-note ul ul li { margin-bottom: 3px; }
.note-text { color: var(--color-text-muted); font-size: 0.9em; margin-bottom: 15px; }

/* --- Responsive --- */
@media (max-width: 700px) {
    .checkout-container,
    .confirmation-container { grid-template-columns: 1fr; }
    .order-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .product-detail { grid-template-columns: 1fr; }
    .sections-grid { grid-template-columns: 1fr; }
    .sections-grid .card-image { height: 150px; }
    .hero h1 { font-size: 1.8em; }
    nav .nav-container { padding: 10px 0; flex-wrap: wrap; justify-content: center; }
    nav .nav-left, nav .nav-right { gap: 8px; }
    nav a { padding: 5px 10px; font-size: 0.82em; }
    .product-images .product-image { max-height: 250px; }
    .product-image { height: 120px; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
    .product-card { padding: 10px; }
    .product-card h3 { font-size: 0.95em; }
    .container { padding: 15px 12px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .quick-links, .report-grid { grid-template-columns: 1fr; }
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-20 { margin-bottom: 20px; }
.back-link { display: inline-block; margin-bottom: 15px; font-size: 0.95em; }
