/* =====================================================
   Wildcat Corner Store — Global Styles
   ===================================================== */

:root {
    --wcs-primary: #1e3a5f;
    --wcs-accent: #D1AC60;
    --wcs-accent-hover: #b8943f;
    --wcs-bg: #f5f6f8;
    --wcs-card: #ffffff;
    --wcs-text: #1f2937;
    --wcs-text-muted: #6b7280;
    --wcs-border: #e5e7eb;
}

html {
    scroll-behavior: smooth;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--wcs-bg);
    color: var(--wcs-text);
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: var(--wcs-primary);
}

/* Business sidebar nav */
.biz-nav {
    flex: 1;
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.biz-nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    background: #264a73;
    border-radius: 6px;
    border-top: 1px solid rgba(255,255,255,0.18);
    border-bottom: 1px solid rgba(0,0,0,0.25);
    border-left: 3px solid transparent;
    border-right: none;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.biz-nav-link:hover {
    background: #2f5a8a;
    color: #ffffff;
    text-decoration: none;
}

.biz-nav-link:focus {
    text-decoration: none;
}

.biz-nav-link.active {
    background: #2a4f75;
    color: #D1AC60;
    border-left: 3px solid #D1AC60;
    text-decoration: none;
}

.btn-primary {
    color: #fff;
    background-color: var(--wcs-primary);
    border-color: var(--wcs-primary);
}

/* ── Hero ────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8e 60%, #3a6fa8 100%);
    color: #ffffff;
    padding: 5rem 1.5rem 4rem;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.hero-btn {
    display: inline-block;
    background-color: var(--wcs-accent);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0.75rem 2.25rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.15s, transform 0.15s;
}

.hero-btn:hover {
    background-color: var(--wcs-accent-hover);
    color: #ffffff;
    transform: translateY(-1px);
}

/* ── Category TOC (horizontally scrolling grey pill buttons) ── */
.category-toc {
    background-color: #ffffff;
    border-bottom: 1px solid var(--wcs-border);
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0.75rem 1.5rem;
}

.category-toc::-webkit-scrollbar {
    display: none;
}

.toc-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: max-content;
}

.toc-link {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background-color: #f3f4f6;
    color: var(--wcs-text);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.toc-link:hover {
    background-color: var(--wcs-primary);
    color: #ffffff;
    border-color: var(--wcs-primary);
}

/* ── Floating bottom bar ─────────────────────────── */
.floating-bottom-bar {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.floating-bottom-bar.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.floating-categories-btn,
.floating-cart-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 0.6rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
    transition: background-color 0.15s;
}

.floating-categories-btn {
    background-color: var(--wcs-primary);
}

.floating-categories-btn:hover {
    background-color: var(--wcs-accent);
}

.floating-cart-btn {
    display: none;
    background-color: #ffffff;
    color: #000000;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.floating-cart-btn:hover {
    background-color: #e5e5e5;
}

.fcb-icon {
    font-size: 1.1rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .floating-bottom-bar {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        justify-content: center;
        gap: 0.75rem;
    }

    .floating-categories-btn,
    .floating-cart-btn {
        flex: 1;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .floating-cart-btn {
        display: flex;
    }
}

/* ── Store Body ──────────────────────────────────── */
.store-body {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* ── Category Section ────────────────────────────── */
.category-section {
    margin-bottom: 3.5rem;
    scroll-margin-top: 116px; /* clears fixed navbar */
}

.category-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--wcs-accent);
}

.category-heading-text {
    flex: 1;
}

.category-heading h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--wcs-primary);
    margin: 0;
}

.category-description {
    font-size: 0.9rem;
    color: var(--wcs-text-muted);
    margin: 0.25rem 0 0;
    line-height: 1.5;
}

.category-count {
    font-size: 0.82rem;
    color: var(--wcs-text-muted);
    font-weight: 400;
    white-space: nowrap;
    padding-top: 0.35rem;
}

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

/* ── Loading / Empty State ───────────────────────── */
.store-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 1rem;
    text-align: center;
    color: var(--wcs-text-muted);
}

/* ── Back to top ─────────────────────────────────── */
.back-to-top-wrap {
    text-align: center;
    padding: 1rem 0 3rem;
}

.back-to-top {
    background: none;
    border: none;
    color: var(--wcs-text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.back-to-top:hover {
    color: var(--wcs-primary);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* =====================================================
   Business Portal — Shared Page Styles
   ===================================================== */

/* ── Page header ─────────────────────────────────────── */
.biz-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.biz-page-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e3a5f;
    margin: 0;
}

/* ── Alerts ──────────────────────────────────────────── */
.biz-alert {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.biz-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.biz-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

/* ── Buttons ─────────────────────────────────────────── */
.biz-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border-radius: 7px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s, opacity 0.15s;
    text-decoration: none;
}

.biz-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.biz-btn-primary {
    background: #D1AC60;
    color: #ffffff;
}

.biz-btn-primary:hover:not(:disabled) {
    background: #b8943f;
    color: #ffffff;
}

.biz-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.biz-btn-secondary:hover:not(:disabled) {
    background: #e5e7eb;
}

.biz-btn-danger {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.biz-btn-danger:hover:not(:disabled) {
    background: #fecaca;
}

.biz-btn-sm {
    padding: 0.3rem 0.65rem;
    font-size: 0.8rem;
}

.biz-btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem 0.4rem;
    border-radius: 4px;
    transition: background-color 0.15s;
    line-height: 1;
}

.biz-btn-icon:hover {
    background: #f3f4f6;
}

.biz-btn-icon.biz-btn-danger:hover {
    background: #fee2e2;
}

/* ── Form card ───────────────────────────────────────── */
.biz-form-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.biz-form-card h2,
.biz-form-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 1.25rem;
}

.biz-form-card h3 {
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.biz-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.biz-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.biz-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
}

.biz-field input,
.biz-field select,
.biz-field textarea {
    padding: 0.55rem 0.8rem;
    border: 1.5px solid #d1d5db;
    border-radius: 7px;
    font-size: 0.9rem;
    color: #1f2937;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fff;
}

.biz-field input:focus,
.biz-field select:focus,
.biz-field textarea:focus {
    outline: none;
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30,58,95,0.1);
}

.biz-field textarea {
    resize: vertical;
}

.biz-field-full {
    grid-column: 1 / -1;
}

.biz-field-check {
    justify-content: flex-end;
}

.biz-field-check label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    cursor: pointer;
}

.biz-form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

/* ── Table ───────────────────────────────────────────── */
.biz-table-wrap {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.biz-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.biz-table thead tr {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.biz-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.biz-table td {
    padding: 0.75rem 1rem;
    color: #1f2937;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.biz-table tr:last-child td {
    border-bottom: none;
}

.biz-table tbody tr:hover {
    background: #fafafa;
}

.row-obsolete td {
    color: #9ca3af;
}

.cell-muted {
    color: #9ca3af !important;
}

.cell-actions {
    text-align: right;
    white-space: nowrap;
}

/* ── Badges ──────────────────────────────────────────── */
.biz-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-right: 0.25rem;
}

.biz-badge-green {
    background: #dcfce7;
    color: #15803d;
}

.biz-badge-yellow {
    background: #fef9c3;
    color: #a16207;
}

.biz-badge-grey {
    background: #f3f4f6;
    color: #6b7280;
}

.biz-badge-red {
    background: #fee2e2;
    color: #dc2626;
}

.biz-badge-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

/* ── Misc ────────────────────────────────────────────── */
.biz-loading {
    padding: 2rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

.biz-empty {
    padding: 2rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* ── Photos page ─────────────────────────────────────── */
.photos-picker {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.photos-picker label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.photos-picker select {
    padding: 0.5rem 0.8rem;
    border: 1.5px solid #d1d5db;
    border-radius: 7px;
    font-size: 0.9rem;
    font-family: inherit;
    color: #1f2937;
    min-width: 260px;
}

.photos-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 1rem;
}

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

.photo-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.photo-card.photo-primary {
    border-color: #D1AC60;
}

.photo-card img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: #f3f4f6;
}

.photo-primary-badge {
    position: absolute;
    top: 0.4rem;
    left: 0.4rem;
    background: #D1AC60;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
}

.photo-actions {
    padding: 0.5rem;
    display: flex;
    gap: 0.4rem;
    justify-content: center;
}

.photos-add-form {
    margin-top: 1rem;
}

/* ── Friday Special Countdown Banner ─────────────────────────────────────── */

.friday-countdown-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: center;
}

.friday-countdown-banner.friday-available-now {
    background: linear-gradient(135deg, #155724 0%, #1e7e34 100%);
}

.friday-countdown-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 900px;
    width: 100%;
}

.friday-star {
    font-size: 1.4rem;
}

.friday-countdown-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.friday-date-pill {
    background: rgba(255,255,255,0.2);
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.friday-countdown-timer {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 3rem;
}

.countdown-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.countdown-label {
    font-size: 0.65rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.countdown-sep {
    font-size: 1.4rem;
    font-weight: 700;
    opacity: 0.5;
    margin-bottom: 0.75rem;
}

/* ── Friday Special Category Section ─────────────────────────────────────── */

.category-section-friday {
    background: linear-gradient(to bottom, #fffbeb, #fff);
    border-top: 3px solid #f59e0b;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.friday-heading-star {
    margin-right: 0.35rem;
}

.friday-notice {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}

.friday-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.toc-link-friday {
    background: #fef3c7 !important;
    border-color: #f59e0b !important;
    color: #92400e !important;
}

/* ── Checkout: Friday Special Styles ─────────────────────────────────────── */

.checkout-section-friday {
    border: 2px solid #f59e0b;
    border-radius: 0.5rem;
    background: #fffbeb;
}

.friday-verify-info {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.friday-verify-question {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.friday-verify-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.friday-btn {
    padding: 0.6rem 1.4rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.15s;
}

.friday-btn-yes {
    background: #d1fae5;
    border-color: #6ee7b7;
    color: #065f46;
}

.friday-btn-yes.active,
.friday-btn-yes:hover {
    background: #059669;
    border-color: #059669;
    color: #fff;
}

.friday-btn-no {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

.friday-btn-no.active,
.friday-btn-no:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.friday-declined {
    background: #fee2e2;
    border-radius: 0.375rem;
    padding: 1rem;
    color: #991b1b;
    font-size: 0.9rem;
}

.friday-pickup-notice {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
    border-radius: 0.375rem;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.checkout-section-friday-pickup {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 0.5rem;
}

.friday-pickup-card {
    background: #fff;
    border: 1px solid #d1fae5;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.friday-pickup-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.5rem;
}

.friday-pickup-date {
    font-size: 0.85rem;
    color: #059669;
    font-weight: 600;
}

.friday-pickup-message {
    font-size: 0.875rem;
    color: #374151;
    margin: 0;
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 0.25rem;
}

.friday-pickup-note {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0.5rem 0 0;
}

/* ── Business: Friday Special Admin Styles ────────────────────────────────── */

.biz-form-card-friday {
    border-top: 3px solid #f59e0b;
}

.biz-friday-notice {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 0.375rem;
    padding: 0.6rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #92400e;
}

.biz-label-hint {
    font-weight: 400;
    font-size: 0.75rem;
    color: #6b7280;
}

.biz-field-error {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 0.2rem;
    display: block;
}

/* ── Product category option exclusions (in product form) ──────────────────── */

.prod-excl-section {
    border-top: 1px solid #e5e7eb;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}

.prod-excl-section h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.prod-excl-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.prod-excl-tag {
    font-size: 0.8rem;
    background: #eef2f7;
    color: #1e3a5f;
    padding: 0.3rem 0.7rem;
    border-radius: 10px;
    font-weight: 500;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.prod-excl-tag:hover {
    border-color: #1e3a5f;
}

.prod-excl-tag.excluded {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
    font-weight: 600;
}

.prod-excl-tag.excluded:hover {
    background: #fecaca;
    border-color: #f87171;
}

.prod-excl-hint {
    font-size: 0.78rem;
    color: #6b7280;
    margin: 0;
}

.row-friday {
    background: #fffbeb;
}

@media (max-width: 768px) {
    .biz-form-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Friday Countdown "closing today" variant ─────────────────────────────── */
.friday-closing-today {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

/* ── Order Confirmation Page ────────────────────────────────────────────────── */
.confirmation-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 2rem;
}

.confirmation-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.confirmation-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--wcs-primary);
    margin-bottom: 0.5rem;
}

.confirmation-subtext {
    color: var(--wcs-text-muted);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.confirmation-back-btn {
    margin-top: 1.5rem;
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: var(--wcs-primary);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.confirmation-back-btn:hover { background: #16305a; }

.confirmation-pickup-block {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.25rem 0;
}

.confirmation-pickup-card {
    background: #fffbeb;
    border: 1.5px solid #fcd34d;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    text-align: left;
}

.confirmation-pickup-product {
    font-weight: 700;
    color: var(--wcs-primary);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.confirmation-pickup-message {
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* ── Square Pay section (pre-iframe) ────────────────────────────────────────── */
.square-pay-section {
    background: #f8fafc;
    border: 1.5px solid var(--wcs-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.square-pay-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.square-pay-logo {
    font-size: 1.4rem;
    line-height: 1;
}

.square-pay-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--wcs-primary);
}

.square-pay-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.square-pay-features li {
    font-size: 0.9rem;
    color: var(--wcs-text-muted, #4b5563);
}

/* ── Square iframe page ─────────────────────────────────────────────────────── */
.square-iframe-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    text-align: center;
}

.square-iframe-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wcs-primary);
    margin-bottom: 0.35rem;
}

.square-iframe-subtext {
    color: var(--wcs-text-muted, #6b7280);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.square-iframe-container {
    width: 100%;
    max-width: 640px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
}

.square-iframe {
    width: 100%;
    height: 700px;
    border: none;
    display: block;
}

.square-iframe-note {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: var(--wcs-text-muted, #6b7280);
}

.square-iframe-note a {
    color: var(--wcs-primary);
    text-decoration: underline;
}

.confirmation-loading {
    font-size: 1.1rem;
    color: var(--wcs-text-muted, #6b7280);
    padding: 3rem;
}

/* ── Payment error ──────────────────────────────────────────────────────────── */
.payment-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* ── Business Orders page ───────────────────────────────────────────────────── */
.biz-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.biz-filter-search {
    flex: 1;
    min-width: 200px;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--wcs-border);
    border-radius: 6px;
    font-size: 0.9rem;
}

.biz-filter-date-label {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--wcs-text-muted, #6b7280);
    white-space: nowrap;
}

.biz-filter-date {
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--wcs-border);
    border-radius: 6px;
    font-size: 0.9rem;
}

.biz-filters select {
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--wcs-border);
    border-radius: 6px;
    font-size: 0.9rem;
    background: #fff;
}

.orders-summary-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #f0f4ff;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--wcs-text-muted);
}

.order-card {
    background: #fff;
    border: 1px solid var(--wcs-border);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.order-card-open {
    border-color: var(--wcs-primary);
    box-shadow: 0 2px 8px rgba(30,58,95,0.1);
}

.order-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    cursor: pointer;
    user-select: none;
}

.order-card-header:hover { background: #f9fafb; }

.order-card-id {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--wcs-text-muted);
    min-width: 40px;
}

.order-card-customer {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.order-customer-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.order-customer-email {
    font-size: 0.8rem;
    color: var(--wcs-text-muted);
}

.order-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.order-pickup-date {
    font-size: 0.8rem;
    color: var(--wcs-text-muted);
}

.order-total {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--wcs-primary);
}

.order-date {
    font-size: 0.8rem;
    color: var(--wcs-text-muted);
}

.order-toggle-icon {
    font-size: 0.75rem;
    color: var(--wcs-text-muted);
    margin-left: auto;
}

.order-card-body {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--wcs-border);
}

.order-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem 1.5rem;
    margin-bottom: 1rem;
}

.order-detail-full { grid-column: 1 / -1; }

.order-detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--wcs-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
}

.order-items-table {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.order-pickup-msg-row td {
    background: #fffbeb;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
}

.order-pickup-msg {
    color: var(--wcs-text-muted);
}

.order-card-totals {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    justify-content: flex-end;
}

.order-status-update {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
}

.order-status-update label {
    font-weight: 600;
    color: var(--wcs-text-muted);
}

.order-status-update select {
    padding: 0.35rem 0.6rem;
    border: 1px solid var(--wcs-border);
    border-radius: 5px;
    font-size: 0.875rem;
}

.biz-badge-blue   { background: #dbeafe; color: #1e40af; }
.biz-badge-green  { background: #d1fae5; color: #065f46; }
.biz-badge-grey   { background: #f3f4f6; color: #6b7280; }
.biz-badge-orange { background: #fef3c7; color: #92400e; }

/* ── Category Options Panel ─────────────────────────────────────────────────── */

.cat-options-btn {
    font-size: 0.78rem;
    padding: 0.25rem 0.6rem;
    margin-right: 0.25rem;
}

.cat-options-row td {
    padding: 0;
    border-bottom: 2px solid #e5e7eb;
}

.cat-options-cell {
    padding: 0 !important;
}

.cat-options-panel {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 1rem 1.25rem 1.25rem;
}

.cat-options-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.cat-options-panel-title {
    font-size: 0.85rem;
    color: #6b7280;
}

.cat-options-empty {
    font-size: 0.85rem;
    color: #9ca3af;
    padding: 0.5rem 0;
}

/* Option item */
.cat-option-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.cat-option-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.75rem;
}

.cat-option-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.88rem;
    color: #1f2937;
    flex: 1;
    text-align: left;
    padding: 0;
}

.cat-option-toggle:hover { color: #1e3a5f; }

.cat-option-chevron {
    font-size: 0.7rem;
    color: #9ca3af;
    width: 0.75rem;
    flex-shrink: 0;
}

.cat-option-name { font-weight: 600; }

.cat-option-count {
    font-size: 0.75rem;
    color: #9ca3af;
}

.cat-option-actions {
    display: flex;
    gap: 0.1rem;
    flex-shrink: 0;
}

/* Details panel (inside expanded option) */
.cat-details-panel {
    border-top: 1px solid #f3f4f6;
    padding: 0.5rem 0.75rem 0.75rem;
    background: #fafafa;
}

.cat-detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.3rem 0.25rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.875rem;
}

.cat-detail-item:last-of-type { border-bottom: none; }

.cat-detail-value { color: #374151; }

.cat-detail-actions { display: flex; gap: 0.1rem; }

.cat-text-input-note {
    font-size: 0.82rem;
    color: #6b7280;
    font-style: italic;
    padding: 0.4rem 0;
}

.cat-add-detail-btn {
    background: none;
    border: 1px dashed #d1d5db;
    border-radius: 5px;
    color: #6b7280;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.3rem 0.75rem;
    margin-top: 0.4rem;
    width: 100%;
    text-align: left;
    transition: border-color 0.15s, color 0.15s;
}

.cat-add-detail-btn:hover {
    border-color: #1e3a5f;
    color: #1e3a5f;
}

/* Inline forms */
.cat-inline-form {
    background: #f0f4ff;
    border: 1px solid #c7d7f8;
    border-radius: 7px;
    padding: 0.65rem 0.75rem;
    margin: 0.5rem 0;
}

.cat-inline-form-edit {
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: 1px solid #e5e7eb;
}

.cat-inline-form-fields {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.cat-inline-input {
    flex: 1;
    min-width: 180px;
    padding: 0.4rem 0.65rem;
    border: 1.5px solid #c7d7f8;
    border-radius: 6px;
    font-size: 0.875rem;
    font-family: inherit;
    background: #fff;
}

.cat-inline-input:focus {
    outline: none;
    border-color: #1e3a5f;
}

.cat-detail-input { min-width: 140px; }

.cat-detail-order-input {
    width: 80px;
    min-width: unset;
    flex: none;
}

.cat-detail-price-input {
    width: 100px;
    min-width: unset;
    flex: none;
}

.cat-inline-check {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
}

.cat-detail-inline-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    background: none;
    border: none;
    border-top: 1px dashed #d1d5db;
    border-radius: 0;
    padding: 0.4rem 0.25rem;
    margin: 0;
}

.cat-detail-inline-form .cat-inline-form-actions { margin-left: auto; }

.cat-inline-form-actions {
    display: flex;
    gap: 0.5rem;
}

.cat-inline-error {
    font-size: 0.8rem;
    color: #dc2626;
    margin-top: 0.25rem;
}

/* ── Restore button ─────────────────────────────────────────────────────────── */
.biz-btn-restore {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.biz-btn-restore:hover:not(:disabled) {
    background: #dcfce7;
}

/* ── Archived products collapsible section ──────────────────────────────────── */
.biz-archive-section {
    margin-top: 1.5rem;
}

.biz-archive-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: background-color 0.15s, color 0.15s;
}

.biz-archive-toggle:hover {
    background: #f9fafb;
    color: #374151;
}

.biz-archive-toggle-icon {
    font-size: 0.75rem;
    width: 0.75rem;
    flex-shrink: 0;
}

.biz-archive-table-wrap {
    margin-top: 0.5rem;
    border-color: #e5e7eb;
}

/* ── NavBar: responsive hamburger menu ────────────────────────── */
.wcs-nav-toggler {
    display: none;
}

@media (max-width: 768px) {
    .wcs-nav-toggler {
        display: flex !important;
    }

    .wcs-nav-links {
        display: none !important;
        position: absolute;
        top: 100px;
        left: 0;
        right: 0;
        background-color: #1e3a5f;
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem 1rem 1rem;
        gap: 0.25rem;
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
        z-index: 999;
    }

    .wcs-nav-links.open {
        display: flex !important;
    }

    .wcs-nav-link {
        padding: 0.65rem 1rem;
    }

    .wcs-cart-btn {
        margin-left: 0 !important;
        justify-content: center;
        width: 100%;
    }
}

/* ── Business portal: phone-screen restriction ─────────────────── */
.biz-mobile-block {
    display: none;
}

@media (max-width: 767px) {
    .biz-mobile-block {
        display: flex;
        position: fixed;
        inset: 0;
        z-index: 9999;
        background: #1e3a5f;
        color: #ffffff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 2rem;
        gap: 1rem;
    }

    .biz-mobile-block-icon {
        font-size: 3rem;
    }

    .biz-mobile-block h2 {
        font-size: 1.5rem;
        font-weight: 700;
        margin: 0;
    }

    .biz-mobile-block p {
        color: rgba(255,255,255,0.8);
        font-size: 1rem;
        max-width: 320px;
        margin: 0;
    }

    .biz-mobile-block-link {
        display: inline-block;
        margin-top: 0.5rem;
        padding: 0.6rem 1.5rem;
        background: #D1AC60;
        color: #ffffff;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 600;
    }
}

/* ── Checkout & Payment mobile responsive ────────── */
@media (max-width: 768px) {
    .checkout-page {
        grid-template-columns: 1fr !important;
        padding: 1.5rem 1rem 4rem;
    }

    .checkout-summary {
        order: -1;
        position: static !important;
    }

    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr !important;
    }

    .fulfillment-toggle {
        grid-template-columns: 1fr !important;
    }

    .payment-page {
        grid-template-columns: 1fr !important;
        padding: 1.5rem 1rem 4rem;
    }

    .payment-summary {
        order: -1;
        position: static !important;
    }
}

/* ── Orders pagination controls ──────────────────── */
.orders-page-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.6rem 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.orders-page-size {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: #374151;
}

.orders-page-size input[type="number"] {
    width: 70px;
    padding: 0.3rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    background: #fff;
    text-align: center;
}

.orders-pagination {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.orders-page-info {
    font-size: 0.875rem;
    color: #6b7280;
    white-space: nowrap;
}