/* ==============================================
   VALIKOVSKAYAHOME — MODERN DESIGN SYSTEM
   ============================================== */

:root {
    --color-primary: #2D2D2D;
    --color-primary-hover: #1A1A1A;
    --color-secondary: #6B6B6B;
    --color-accent: #B87333;
    --color-accent-hover: #9A5E28;
    --color-accent-light: rgba(184, 115, 51, 0.1);
    --color-accent-lighter: rgba(184, 115, 51, 0.06);
    --color-surface: #FFFFFF;
    --color-surface-alt: #F7F6F4;
    --color-surface-warm: #FAF9F7;
    --color-on-surface: #1A1A1A;
    --color-on-surface-muted: #6B6B6B;
    --color-on-surface-light: #999999;
    --color-border: #E8E6E3;
    --color-border-light: #F0EEEB;
    --color-danger: #DC3545;
    --color-success: #28A745;
    --color-warning: #FFC107;
    --color-info: #0dcaf0;

    --color-white-overlay-10: rgba(255, 255, 255, 0.1);
    --color-white-overlay-60: rgba(255, 255, 255, 0.6);
    --color-white-overlay-75: rgba(255, 255, 255, 0.75);
    --color-black-overlay-20: rgba(0, 0, 0, 0.2);
    --color-black-overlay-85: rgba(0, 0, 0, 0.85);
    --color-white-overlay-90: rgba(255, 255, 255, 0.9);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3.5rem;

    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    --navbar-height: 72px;
    --container-max: 1280px;
}

/* ==============================================
   BASE & RESET
   ============================================== */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-on-surface);
    background-color: var(--color-surface-alt);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

@media (max-width: 767.98px) {
    body { background-attachment: scroll; }
}

body, p, div, li, td, th {
    color: var(--color-on-surface);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-on-surface);
    font-weight: 700;
    line-height: 1.2;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible,
summary:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* FocusOnNavigate focuses the page h1 on every navigation — headings are
   not interactive, so suppress the focus ring entirely (incl. UA default). */
h1:focus,
h1:focus-visible {
    outline: none;
}

a {
    color: var(--color-accent);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-hover);
}

/* ==============================================
   SKIP LINK (accessibility)
   ============================================== */

/* ==============================================
   LAYOUT — NAVBAR
   ============================================== */

.navbar {
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
    z-index: 1030;
    transition: box-shadow var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-primary);
    text-decoration: none;
}

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

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.logo-icon i {
    font-size: 18px;
    color: var(--color-surface);
}

.brand-text-container {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-text-main {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.brand-text-sub {
    font-size: 0.85rem;
    color: var(--color-secondary);
    font-weight: 500;
    margin-top: -2px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.navbar-brand:hover .logo-icon {
    background: var(--color-accent);
    box-shadow: var(--shadow-md);
    transform: scale(1.05);
}

.navbar-brand:hover .logo-icon i {
    color: var(--color-surface);
}

.navbar-brand:hover .brand-text-main {
    color: var(--color-accent);
}

.navbar-brand:hover .brand-text-sub {
    color: var(--color-accent-hover);
}

.navbar-toggler {
    border: 1px solid var(--color-border);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%232D2D2D' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    transition: color var(--transition-fast);
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    border-radius: var(--radius-sm);
    min-height: 44px;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--color-accent);
    background: var(--color-accent-lighter);
}

.navbar-nav .nav-link i {
    margin-right: 0.375rem;
}

.navbar-search .input-group {
    width: 220px;
}

.navbar-search-input {
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    color: var(--color-on-surface);
    font-size: var(--font-size-sm);
    padding-left: 1rem;
}

.navbar-search-input::placeholder {
    color: var(--color-on-surface-light);
}

.navbar-search-input:focus {
    background: var(--color-surface);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
    color: var(--color-on-surface);
}

.navbar-search-btn {
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    color: var(--color-surface);
    transition: background var(--transition-fast);
}

.navbar-search-btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.navbar-search-toggle {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 1.1rem;
    padding: 0.5rem;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.navbar-search-toggle:hover {
    color: var(--color-accent);
    background: var(--color-accent-lighter);
}

.navbar-mobile-search {
    background: var(--color-surface);
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--color-border);
}

.navbar-mobile-search .input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.navbar-mobile-search .navbar-search-btn {
    border-radius: 0;
}

.navbar-search-close {
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-left: none;
    color: var(--color-on-surface);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.navbar-search-close:hover {
    background: var(--color-border-light);
}

/* ==============================================
   LAYOUT — MAIN CONTENT
   ============================================== */

.main-content {
    flex: 1;
    width: 100%;
    /* 'clip' (not 'hidden') — 'hidden' would create a scroll container and break position:sticky descendants.
       Safari < 16 does not know 'clip' (falls back to visible — acceptable). */
    overflow-x: clip;
    padding-top: 1rem;
}

.admin-unauthorized-card {
    border-radius: var(--radius-lg);
}

.admin-unauthorized-icon {
    color: var(--color-accent);
}

.admin-modal-backdrop {
    overflow-y: auto;
}

/* ==============================================
   LAYOUT — FOOTER
   ============================================== */

.footer {
    background: var(--color-primary);
    color: var(--color-surface);
    padding: 3rem 0 1rem 0;
    margin-top: 0;
    flex-shrink: 0;
    min-height: 200px;
}

.footer h5, .footer h6 {
    color: var(--color-surface);
    font-weight: 600;
    font-size: var(--font-size-base);
    letter-spacing: -0.01em;
}

.footer .text-light-50 {
    color: var(--color-white-overlay-60);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: var(--font-size-sm);
}

.footer .text-light-50:hover {
    color: var(--color-accent);
}

.social-links a {
    color: var(--color-surface);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-white-overlay-10);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 1.1rem;
}

.social-links a:hover {
    transform: translateY(-2px);
    background-color: var(--color-accent);
    color: var(--color-surface);
}

.footer .mb-1 i, .footer p i {
    color: var(--color-accent);
}

/* ==============================================
   LAYOUT — CONTAINER
   ============================================== */

.container,
.container-lg,
.container-md,
.container-sm {
    max-width: var(--container-max);
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    margin-left: auto;
    margin-right: auto;
}

.container-fluid {
    max-width: 100%;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* ==============================================
   BUTTONS
   ============================================== */

.btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.btn-outline-primary:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-primary:disabled,
.btn-accent:disabled {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-on-surface-light);
    opacity: 0.5;
    transform: none;
    box-shadow: none;
}

.btn-outline-primary:disabled,
.btn-outline-accent:disabled {
    border-color: var(--color-border);
    color: var(--color-on-surface-light);
    opacity: 0.5;
}

.btn-accent {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-surface);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.btn-accent:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: var(--color-surface);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-accent {
    border-color: var(--color-accent);
    color: var(--color-accent);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.btn-outline-accent:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-surface);
}

/* ==============================================
   CARDS
   ============================================== */

.product-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    background: var(--color-surface);
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

.product-body {
    padding: 1rem;
}

.product-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-on-surface);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-description {
    color: var(--color-on-surface-muted);
    font-size: var(--font-size-sm);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-price {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.product-availability {
    font-size: var(--font-size-sm);
    margin-bottom: 1rem;
}

.product-availability.in-stock {
    color: var(--color-success);
}

.product-availability.out-of-stock {
    color: var(--color-danger);
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.product-actions .btn {
    flex: 1;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--color-accent);
    color: var(--color-surface);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
}

.product-badge-top-left {
    top: 10px;
    left: 10px;
    z-index: 10;
}

.product-badge-top-right {
    top: 10px;
    right: 10px;
    z-index: 10;
}

.product-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    left: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 1;
}

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-badge-stock {
    font-size: var(--font-size-xs);
    white-space: nowrap;
}

.product-favorite-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.product-type {
    background: var(--color-primary);
    color: var(--color-surface);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 500;
}

.out-of-stock {
    background: var(--color-danger);
    color: var(--color-surface);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 500;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    gap: 0.5rem;
}

.product-footer .price {
    font-size: var(--font-size-lg);
    font-weight: 800;
    color: var(--color-accent);
}

.card-title a {
    color: var(--color-on-surface);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.card-title a:hover {
    color: var(--color-accent);
}

.card-text {
    color: var(--color-on-surface-muted);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

/* ==============================================
   FAVORITE BUTTON
   ============================================== */

.btn-favorite {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    color: var(--color-accent);
    font-size: 1.1rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(4px);
}

.btn-favorite:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-md);
}

.btn-favorite.active {
    color: var(--color-accent-hover);
    background: rgba(255, 255, 255, 0.95);
}

/* ==============================================
   CART — COUNTER (NAVBAR)
   ============================================== */

.cart-counter {
    height: 100%;
}

.cart-counter a {
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
}

.cart-counter a:hover {
    background: var(--color-accent-lighter);
    color: var(--color-accent);
}

.cart-icon {
    width: 22px;
    height: 22px;
    transition: all var(--transition-fast);
    color: var(--color-primary);
}

.cart-counter a:hover .cart-icon {
    color: var(--color-accent);
}

.cart-badge {
    font-size: 0.65rem;
    min-width: 18px;
    height: 18px;
    line-height: 1;
    padding: 2px 4px;
    top: -2px;
    right: -8px;
    font-weight: 700;
    background: var(--color-accent);
    color: var(--color-surface);
    border: 2px solid var(--color-surface);
}

.cart-counter a:hover .cart-badge {
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

/* ==============================================
   CART — ADD TO CART BUTTON
   ============================================== */

.quantity-controls {
    gap: 0.5rem;
}

.quantity-display {
    min-width: 36px;
    text-align: center;
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.quantity-controls .btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

@media (max-width: 767.98px) {
    .quantity-controls .btn {
        width: 44px;
        height: 44px;
    }
}

.quantity-controls .btn:hover {
    transform: scale(1.05);
}

/* Mobile pagination — comfortable touch targets */
@media (max-width: 767.98px) {
    .pagination .page-link {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ==============================================
   PRODUCT PAGE — MOBILE STICKY CTA
   ============================================== */

.product-sticky-cta {
    display: none;
}

@media (max-width: 767.98px) {
    .product-sticky-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1030;
        background-color: var(--color-surface);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
        padding: 0.625rem 1rem calc(0.625rem + env(safe-area-inset-bottom, 0px));
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: var(--spacing-md);
        transform: translateY(110%);
        transition: transform var(--transition-base);
    }

    .product-sticky-cta.sticky-cta-visible {
        display: flex;
        transform: translateY(0);
    }

    .product-sticky-cta-info {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .product-sticky-cta-name {
        font-weight: 700;
        font-size: var(--font-size-sm);
        color: var(--color-on-surface);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 55vw;
    }

    .product-sticky-cta-price {
        font-weight: 800;
        font-size: var(--font-size-lg);
        color: var(--color-accent);
    }

    .product-sticky-cta-btn {
        min-height: 48px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Reserve space so the bar does not cover page content */
    .container:has(> .product-sticky-cta) {
        padding-bottom: 92px;
    }
}

/* Mobile: sticky submit row on checkout */
@media (max-width: 767.98px) {
    .checkout-actions {
        position: sticky;
        bottom: 0;
        z-index: 1020;
        background-color: var(--color-surface);
        padding: 0.75rem 0.5rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--color-border-light);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.10);
        margin-top: var(--spacing-lg);
    }
}



/* ==============================================
   CART — PAGE
   ============================================== */

.cart-item-image {
    max-height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

/* Mobile: compact sticky checkout bar from the existing order summary */
@media (max-width: 767.98px) {
    .cart-page .col-lg-4 {
        display: flex;
        flex-direction: column;
    }

    .cart-page .promo-code {
        order: -1;
    }

    .cart-page .order-summary {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        border-bottom: 0;
    }

    /* Pinned state toggled by stickyBar (sticky-cta.js): the summary column wraps
       below the items column on mobile and is only as tall as its content, so CSS
       position:sticky has no travel room — JS pins the panel to the viewport bottom. */
    .cart-page .order-summary.fixed-bottom-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        /* Without an explicit height a fixed box with bottom:0 stretches from its
           static-position top down to the viewport bottom — pin to content height. */
        top: auto;
        height: fit-content;
        z-index: 1020;
        margin: 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
        background-color: var(--color-surface);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .cart-page .order-summary .card-header {
        display: none;
    }

    .cart-page .order-summary .card-body {
        padding: 0.75rem 1rem;
    }

    .cart-page .order-summary .summary-row {
        display: none;
    }

    .cart-page .order-summary hr {
        display: none;
    }

    .cart-page .order-summary .summary-total {
        margin-bottom: 0.5rem;
        align-items: center;
    }

    .cart-page .order-summary .btn-lg {
        margin-bottom: 0;
        padding: 0.75rem 1rem;
    }

    .cart-page .order-summary .text-center {
        display: none;
    }
}


.cart-item {
    transition: box-shadow var(--transition-base), border-color var(--transition-base);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.cart-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.order-summary {
    position: sticky;
    top: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.summary-row {
    font-size: var(--font-size-sm);
}

.summary-total {
    font-size: var(--font-size-lg);
}

.cart-item-total {
    color: var(--color-accent);
}

.empty-cart-icon {
    opacity: 0.4;
}

/* ==============================================
   CHECKOUT
   ============================================== */

.order-item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.order-item-name {
    font-size: var(--font-size-sm);
    font-weight: 500;
    line-height: 1.3;
}

.extra-small {
    font-size: var(--font-size-xs);
}

/* ==============================================
   ORDER CONFIRMATION
   ============================================== */

.next-steps {
    font-size: var(--font-size-sm);
}

.success-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ==============================================
   BREADCRUMB
   ============================================== */

.breadcrumb {
    border-radius: var(--radius-sm);
    padding: 0.625rem 1rem;
    margin-bottom: 1rem;
    box-shadow: none;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border-light);
    font-size: var(--font-size-sm);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--color-on-surface-light);
    font-weight: 600;
}

.breadcrumb-item.active {
    color: var(--color-on-surface-muted);
    font-weight: 600;
}

.breadcrumb-item a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: var(--color-accent-hover);
}

/* ==============================================
   PRODUCT CATALOG — PAGE
   ============================================== */

.page-title {
    color: var(--color-on-surface);
    font-size: var(--font-size-3xl);
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.page-subtitle {
    color: var(--color-on-surface-muted);
    font-size: var(--font-size-lg);
    margin-bottom: 2rem;
}

.filters-panel {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.filters-panel.show {
    display: block;
}

.filters-toggle button {
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
}

.filters-panel label {
    color: var(--color-on-surface);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: var(--font-size-sm);
}

.filter-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-on-surface);
    font-size: var(--font-size-base);
}

.cursor-pointer {
    cursor: pointer;
}

.category-breadcrumb {
    font-size: var(--font-size-xs);
    line-height: 1.3;
}

.category-breadcrumb .cursor-pointer:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group:last-child {
    margin-bottom: 1.5rem;
}

.results-info {
    font-weight: 500;
    color: var(--color-on-surface-muted);
    font-size: var(--font-size-sm);
}

/* Mobile catalog: compact sticky toolbar + filter apply bar */
.filters-apply-bar {
    position: sticky;
    bottom: calc(-1 * 1.25rem);
    margin: 0.5rem -1.25rem -1.25rem;
    padding: 0.75rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: var(--color-surface);
    border-top: 1px solid var(--color-border-light);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.filters-apply-bar .btn {
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .category-navigation {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        position: sticky;
        top: var(--navbar-height);
        z-index: 1015;
        background: var(--color-surface-alt);
        padding: 0.375rem 0;
        margin-bottom: 0.375rem !important;
    }

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

    .category-navigation .btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .results-info {
        display: none;
    }

    .filters-toggle {
        margin-bottom: 0.375rem !important;
    }
}

.no-products {
    color: var(--color-on-surface-muted);
    text-align: center;
    padding: 3rem;
    font-size: var(--font-size-lg);
}

/* ==============================================
   PRODUCT LIST VIEW
   ============================================== */

.product-list-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all var(--transition-base);
}

.product-list-item:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.product-list-item .product-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.product-placeholder {
    opacity: 0.6;
    background-color: var(--color-surface-alt);
    border: 1px solid var(--color-border);
}

.dropdown-menu {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
}

/* ==============================================
   PAGINATION
   ============================================== */

.active > .page-link, .page-link.active {
    z-index: 3;
    color: var(--color-surface);
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.page-link {
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    margin: 0 2px;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.page-link:hover {
    background-color: var(--color-accent-light);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ==============================================
   HOME PAGE
   ============================================== */

.home-hero {
    background: var(--color-surface);
    padding: 4rem 0 3rem;
}

.home-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.home-hero-left {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.home-hero-profile {
    flex-shrink: 0;
}

.home-hero-profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-accent-light);
    box-shadow: var(--shadow-lg);
}

.home-hero-gallery {
    position: relative;
}

.home-hero-gallery .carousel-inner {
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.home-hero-gallery .carousel-item {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.home-carousel-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(14px);
    transform: scale(1.06);
    z-index: 0;
}

.home-carousel-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--color-black-overlay-20), rgba(0, 0, 0, 0.12));
    z-index: 1;
}

.home-carousel-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    z-index: 2;
}

.home-carousel-main-img {
    max-height: 100%;
    max-width: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
}

.home-hero-content {
    padding: 1rem 0;
}

.home-hero-badge {
    display: inline-block;
    background: var(--color-accent-light);
    color: var(--color-accent);
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

.home-hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    color: var(--color-on-surface);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.home-hero-description {
    font-size: var(--font-size-lg);
    color: var(--color-on-surface-muted);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 2rem;
}

.home-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.home-hero-btn {
    min-height: 52px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
}

.home-section {
    padding: var(--spacing-3xl) 0;
}

.home-section-alt {
    background: var(--color-surface);
}

.home-section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    color: var(--color-accent);
}

.home-section-divider::before,
.home-section-divider::after {
    content: "";
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.home-section-divider-icon {
    font-size: 1.1rem;
    line-height: 1;
    opacity: 0.85;
}

.home-section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.home-section-eyebrow {
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.home-section-title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-on-surface);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.home-section-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    border-radius: 2px;
    background: var(--color-accent);
    margin: 0.75rem auto 0;
}

.home-section-subtitle {
    font-size: var(--font-size-base);
    color: var(--color-on-surface-muted);
}

.home-collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 420px));
    justify-content: center;
    gap: 1rem;
    max-width: 1100px;
    margin-inline: auto;
}

.home-collection-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    min-height: 64px;
    text-align: left;
    font-family: var(--font-family);
}

.home-collection-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.home-collection-icon {
    color: var(--color-accent);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.home-collection-name {
    font-weight: 600;
    color: var(--color-on-surface);
    font-size: var(--font-size-base);
    flex: 1;
}

.home-collection-arrow {
    color: var(--color-on-surface-light);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.home-collection-card:hover .home-collection-arrow {
    color: var(--color-accent);
    transform: translateX(4px);
}

.home-social-section {
    padding: 4rem 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border-light);
}

.home-social-links {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.home-social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--color-on-surface);
    font-weight: 500;
    font-size: var(--font-size-sm);
    transition: all var(--transition-base);
    min-height: 48px;
}

.home-social-link i {
    font-size: 1.25rem;
    color: var(--color-accent);
}

.home-social-link:hover {
    border-color: var(--color-accent);
    background: var(--color-accent-light);
    color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 991.98px) {
    .home-hero {
        padding: 2.5rem 0 2rem;
    }

    .home-hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .home-hero-left {
        flex-direction: column;
        text-align: center;
    }

    .home-hero-profile-img {
        width: 150px;
        height: 150px;
    }

    .home-hero-gallery .carousel-inner {
        height: 360px;
    }

    .home-hero-title {
        font-size: var(--font-size-4xl);
    }

    .home-hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero-actions {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .home-hero {
        padding: 1.75rem 0 1.25rem;
    }

    .home-hero-profile-img {
        width: 120px;
        height: 120px;
    }

    .home-hero-title {
        font-size: var(--font-size-3xl);
    }

    .home-hero-description {
        font-size: var(--font-size-base);
        margin-bottom: 0.875rem;
    }

    .home-hero-gallery .carousel-inner {
        height: 260px;
    }

    .home-hero-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .home-hero-btn {
        justify-content: center;
    }

    .home-hero-btn.btn-outline-primary {
        padding: 0.5rem 1.25rem;
        font-size: var(--font-size-sm);
    }

    .home-collections-grid {
        grid-template-columns: 1fr;
    }

    .home-social-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-items: center;
    }
}

/* ==============================================
   PRODUCT DETAIL
   ============================================== */

.product-info {
    background-color: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
}

.price-color {
    color: var(--color-accent);
    font-weight: 800;
}

.product-carousel .carousel-inner {
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
}

.product-slide-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: var(--color-surface-alt);
}

.glightbox-wrapper {
    cursor: pointer;
    display: block;
}

.clickable-image {
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.clickable-image:hover {
    opacity: 0.92;
}

.product-detail .product-title {
    font-weight: 800;
    color: var(--color-on-surface);
    font-size: var(--font-size-2xl);
    letter-spacing: -0.02em;
}

.product-meta .badge {
    font-size: var(--font-size-sm);
}

.product-description-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.6;
    color: var(--color-on-surface-muted);
}

.product-details .row {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border-light);
}

.product-details .row:last-child {
    border-bottom: none;
}

.related-products .card {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    cursor: pointer;
}

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

.related-products .product-image img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

/* Shop reviews block on the product page */
.product-reviews-summary {
    color: var(--color-on-surface);
}

.summary-delivery-hint {
    font-size: var(--font-size-xs);
    color: var(--color-on-surface-muted);
    margin-bottom: 0.75rem;
}

.product-reviews-avg {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
}

.product-reviews-section .btn-outline-primary {
    white-space: nowrap;
}


.carousel .carousel-item img {
    height: 480px;
}

@media (max-width: 767.98px) {
    .carousel .carousel-item img {
        height: 320px;
    }
}

@media (max-width: 575.98px) {
    .carousel .carousel-item img {
        height: 280px;
    }
}

.glightbox {
    display: block;
}

/* ==============================================
   ABOUT & CONTACTS PAGES
   ============================================== */

.hero-section {
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-alt) 100%);
    color: var(--color-on-surface);
    padding: 4rem 0;
}

.hero-title {
    color: var(--color-on-surface);
    font-weight: 800;
    font-size: clamp(1.9rem, 5vw, 3.5rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    color: var(--color-on-surface-muted);
    font-size: var(--font-size-xl);
    line-height: 1.5;
}

.section-title {
    color: var(--color-on-surface);
    font-weight: 800;
    font-size: var(--font-size-3xl);
    letter-spacing: -0.02em;
}

.content-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.content-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.content-card h4 {
    color: var(--color-on-surface);
    font-weight: 700;
}

.content-card p, .content-card li {
    color: var(--color-on-surface-muted);
}

.features-section {
    background: var(--color-surface-alt);
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.gold-icon {
    color: var(--color-accent);
}

.feature-card h4, .step-card h4 {
    color: var(--color-on-surface);
    font-weight: 700;
    margin-top: 1rem;
}

.feature-card p, .step-card p {
    color: var(--color-on-surface-muted);
}

.cta-section {
    background: var(--color-primary);
    color: var(--color-surface);
}

.cta-section h3 {
    color: var(--color-surface);
    font-weight: 800;
}

.cta-section .lead {
    color: rgba(255, 255, 255, 0.8);
}

.contact-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border-radius: var(--radius-md);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.social-section {
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-warm) 100%);
}

.section-title, .social-section p, .section-time p, .contact-card p {
    font-weight: 500;
}

.working-hours {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.working-hours h5 {
    color: var(--color-on-surface);
    font-weight: 700;
}

.order-section {
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-warm) 100%);
}

.step-card {
    padding: 2rem 1rem;
}

.badge-gold {
    background-color: var(--color-accent);
    color: var(--color-surface);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: var(--font-size-xl);
}

/* ==============================================
   COOKIE CONSENT
   ============================================== */

.cookie-consent-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-black-overlay-85);
    color: var(--color-white-overlay-90) !important;
    z-index: 9999;
    font-size: var(--font-size-sm);
    box-shadow: 0 -4px 20px var(--color-black-overlay-20);
}

.cookie-consent-container p {
    color: var(--color-white-overlay-90) !important;
}

.cookie-consent-container a {
    color: var(--color-accent) !important;
    text-decoration: underline;
}

.cookie-consent-container a:hover {
    color: var(--color-accent-hover) !important;
}

/* ==============================================
   MAINTENANCE PAGE
   ============================================== */

.maintenance-container {
    min-height: 100vh;
    background-color: var(--color-surface-alt);
    background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
    background-size: 20px 20px;
}

.maintenance-card {
    max-width: 600px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
}

/* ==============================================
   ADMIN LINKS (in navbar)
   ============================================== */

.admin-link {
    padding: 8px;
    border-radius: var(--radius-sm);
    margin-right: 8px;
    transition: all var(--transition-fast);
    background-color: var(--color-accent-light);
    min-height: 44px;
    display: flex;
    align-items: center;
}

.admin-link:hover {
    background-color: var(--color-accent);
    transform: translateY(-1px);
}

.admin-icon {
    width: 22px;
    height: 22px;
    color: var(--color-accent);
    transition: all var(--transition-fast);
}

.admin-link:hover .admin-icon {
    color: var(--color-surface);
}

/* ==============================================
   ACCOUNT MANAGEMENT
   ============================================== */

.account-sidebar {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.sidebar-title {
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
}

.account-sidebar .nav-link {
    color: var(--color-on-surface);
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    transition: all var(--transition-fast);
    font-weight: 500;
    font-size: var(--font-size-sm);
}

.account-sidebar .nav-link:hover {
    background: var(--color-accent-lighter);
    color: var(--color-accent);
}

.account-sidebar .nav-link.active {
    background: var(--color-primary);
    color: var(--color-surface);
    font-weight: 600;
}

.account-content {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.auth-container {
    max-width: 480px;
    margin: 4rem auto;
}

.account-content h1, .account-content h2, .account-content h3 {
    color: var(--color-on-surface);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.account-content .form-control,
.auth-container .form-control {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-on-surface);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-base);
    padding: 0.625rem 0.875rem;
    transition: all var(--transition-fast);
}

.account-content .form-control:focus,
.auth-container .form-control:focus {
    background-color: var(--color-surface);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
    color: var(--color-on-surface);
}

.account-content .form-control:disabled,
.auth-container .form-control:disabled {
    background-color: var(--color-surface-alt);
    border-color: var(--color-border-light);
    color: var(--color-on-surface-muted);
}

.account-content label,
.auth-container label {
    color: var(--color-on-surface-muted);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.account-content p, .account-content strong,
.auth-container p, .auth-container strong {
    color: var(--color-on-surface);
}

.account-content .form-floating > label,
.auth-container .form-floating > label {
    color: var(--color-on-surface-muted);
}

.account-content .form-floating > .form-control:focus ~ label,
.account-content .form-floating > .form-control:not(:placeholder-shown) ~ label,
.auth-container .form-floating > .form-control:focus ~ label,
.auth-container .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--color-accent);
}

.account-content .input-group-text,
.auth-container .input-group-text {
    background-color: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    color: var(--color-on-surface-muted);
}

.account-content .btn-primary,
.auth-container .btn-primary {
    background: var(--color-primary);
    border: none;
    color: var(--color-surface);
    font-weight: 600;
    transition: all var(--transition-fast);
    min-height: 48px;
    border-radius: var(--radius-sm);
}

.account-content .btn-primary:hover,
.auth-container .btn-primary:hover {
    background: var(--color-accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.auth-links a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-weight: 500;
}

.auth-links a:hover {
    color: var(--color-accent-hover);
}

/* ==============================================
   TEXT HELPERS
   ============================================== */

.text-light-on-dark {
    color: var(--color-surface);
}

.text-gold-on-dark {
    color: var(--color-accent);
}

.pre-wrap {
    white-space: pre-wrap;
}

.attribute-form-check-input {
    margin-left: 0;
}

.attribute-form-check-label {
    margin-left: 5px;
}

/* ==============================================
   ICON MAX
   ============================================== */

.icon-max {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg fill='none' viewBox='0 0 42.313 42.523' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath clip-rule='evenodd' d='M21.47 41.88c-4.11 0-6.02-.6-9.34-3-2.1 2.7-8.75 4.81-9.04 1.2 0-2.71-.6-5-1.28-7.5C1 29.5.08 26.07.08 21.1.08 9.23 9.82.3 21.36.3c11.55 0 20.6 9.37 20.6 20.91a20.6 20.6 0 0 1-20.49 20.67m.17-31.32c-5.62-.29-10 3.6-10.97 9.7-.8 5.05.62 11.2 1.83 11.52.58.14 2.04-1.04 2.95-1.95a10.4 10.4 0 0 0 5.08 1.81 10.7 10.7 0 0 0 11.19-9.97 10.7 10.7 0 0 0-10.08-11.1Z' fill-rule='evenodd' fill='currentColor'/%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg fill='none' viewBox='0 0 42.313 42.523' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath clip-rule='evenodd' d='M21.47 41.88c-4.11 0-6.02-.6-9.34-3-2.1 2.7-8.75 4.81-9.04 1.2 0-2.71-.6-5-1.28-7.5C1 29.5.08 26.07.08 21.1.08 9.23 9.82.3 21.36.3c11.55 0 20.6 9.37 20.6 20.91a20.6 20.6 0 0 1-20.49 20.67m.17-31.32c-5.62-.29-10 3.6-10.97 9.7-.8 5.05.62 11.2 1.83 11.52.58.14 2.04-1.04 2.95-1.95a10.4 10.4 0 0 0 5.08 1.81 10.7 10.7 0 0 0 11.19-9.97 10.7 10.7 0 0 0-10.08-11.1Z' fill-rule='evenodd' fill='currentColor'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
    vertical-align: middle;
}

.fa-lg.icon-max {
    font-size: 1.25em;
    line-height: 0.75em;
    vertical-align: -0.0667em;
}

.fa-2x.icon-max {
    font-size: 2em;
}

/* ==============================================
   ADMIN PANEL
   ============================================== */

.admin-wrapper {
    min-height: 100vh;
    background-color: var(--color-surface-alt);
    /* 'clip' (not 'hidden') — keeps position:sticky working inside admin pages.
       Safari < 16 does not know 'clip' (falls back to visible — acceptable). */
    overflow-x: clip;
}

.admin-wrapper .navbar {
    position: static;
    padding: 0.625rem 0;
    background: var(--color-primary);
    border-bottom: 2px solid var(--color-accent);
}

.admin-wrapper .navbar .navbar-brand {
    white-space: nowrap;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--color-surface);
    letter-spacing: -0.01em;
}

.admin-wrapper .navbar .navbar-brand i {
    color: var(--color-accent);
}

.admin-wrapper .navbar .navbar-nav.admin-nav {
    flex-wrap: wrap;
}

.admin-wrapper .navbar .nav-link {
    color: var(--color-white-overlay-75);
    font-weight: 500;
    font-size: var(--font-size-sm);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.admin-wrapper .navbar .nav-link:hover {
    color: var(--color-surface);
    background: transparent;
}

.admin-wrapper .navbar .nav-link.active {
    color: var(--color-surface);
    background: transparent;
    font-weight: 600;
    box-shadow: inset 0 -3px 0 var(--color-accent);
}


.admin-wrapper .navbar button.nav-link {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-white-overlay-75);
    padding: 0.5rem 0.75rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.admin-wrapper .navbar button.nav-link:hover {
    color: var(--color-surface);
    background: var(--color-white-overlay-10);
}

.admin-wrapper .navbar button.nav-link.active {
    color: var(--color-surface);
    font-weight: 600;
    box-shadow: inset 0 -3px 0 var(--color-accent);
}

.admin-wrapper .navbar .dropdown-toggle.active {
    color: var(--color-surface);
}

.admin-wrapper .navbar .dropdown-menu {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
}

.admin-wrapper .navbar .dropdown-menu .dropdown-item {
    color: var(--color-on-surface);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
}

.admin-wrapper .navbar .dropdown-menu .dropdown-item:hover {
    color: var(--color-on-surface);
    background-color: var(--color-accent-lighter);
}

.admin-wrapper .navbar .dropdown-menu .dropdown-item.active {
    background-color: transparent;
    color: var(--color-accent);
    font-weight: 700;
}

.admin-wrapper .navbar .btn-outline-primary {
    border-color: var(--color-white-overlay-75);
    color: var(--color-white-overlay-75);
    font-size: var(--font-size-sm);
}

.admin-wrapper .navbar .btn-outline-primary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-surface);
}

.admin-wrapper .navbar-toggler {
    border-color: var(--color-white-overlay-75);
}

.admin-wrapper .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.main-admin-content {
    padding: 1.5rem 0 2rem;
}

.main-admin-content .card {
    margin-top: 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.admin-header h1 {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--color-on-surface);
    letter-spacing: -0.02em;
}

.admin-header h1 i {
    color: var(--color-accent);
}

.orders-header-actions {
    flex-wrap: wrap;
}

/* Admin — Modal Backdrop */
.admin-modal-backdrop {
    background: var(--color-black-overlay-20);
    backdrop-filter: blur(4px);
}

/* Admin — Buttons */
.admin-wrapper .btn-primary {
    background: var(--color-accent);
    border: none;
    color: var(--color-surface);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.admin-wrapper .btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.admin-wrapper .btn-success {
    background: var(--color-success);
    border: none;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.admin-wrapper .btn-danger {
    background: var(--color-danger);
    border: none;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.admin-wrapper .btn-warning {
    background: var(--color-warning);
    border: none;
    font-weight: 600;
    color: var(--color-primary);
    border-radius: var(--radius-sm);
}

.admin-wrapper .btn-info {
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.admin-wrapper .btn-outline-primary {
    border-color: var(--color-accent);
    color: var(--color-accent);
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.admin-wrapper .btn-outline-primary:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-surface);
}

.admin-wrapper .btn-outline-info {
    border-color: var(--color-accent);
    color: var(--color-accent);
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.admin-wrapper .btn-outline-info:hover {
    background: var(--color-accent-light);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.admin-wrapper .btn-outline-danger {
    border-color: var(--color-danger);
    color: var(--color-danger);
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.admin-wrapper .btn-outline-danger:hover {
    background: var(--color-danger);
    color: var(--color-surface);
}

.admin-wrapper .btn-outline-success {
    border-color: var(--color-success);
    color: var(--color-success);
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.admin-wrapper .btn-outline-success:hover {
    background: var(--color-success);
    color: var(--color-surface);
}

.admin-wrapper .btn-outline-secondary {
    border-color: var(--color-border);
    color: var(--color-on-surface-muted);
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.admin-wrapper .btn-outline-secondary:hover {
    background: var(--color-surface-alt);
    border-color: var(--color-on-surface-muted);
    color: var(--color-on-surface);
}

.admin-wrapper .btn-outline-warning {
    border-color: var(--color-warning);
    color: var(--color-primary);
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.admin-wrapper .btn-outline-warning:hover {
    background: var(--color-warning);
    color: var(--color-primary);
}

/* Admin — Cards */
.admin-wrapper .card {
    transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.admin-wrapper .card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
}

.admin-wrapper .card-header {
    background: var(--color-surface-alt);
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
    color: var(--color-on-surface);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.admin-wrapper .card-body {
    color: var(--color-on-surface);
}

.admin-wrapper .card-footer {
    background: var(--color-surface-alt);
    border-top: 1px solid var(--color-border);
}

/* Admin — Stat Cards */
.admin-stat-card {
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-base);
    text-decoration: none;
    color: var(--color-on-surface);
}

.admin-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.admin-stat-value {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.admin-stat-label {
    font-size: var(--font-size-sm);
    color: var(--color-on-surface-muted);
    font-weight: 500;
    margin-top: 0.25rem;
}

.admin-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.admin-stat-card-new .admin-stat-value { color: var(--color-accent); }
.admin-stat-card-new .admin-stat-icon { background: var(--color-accent-light); color: var(--color-accent); }

.admin-stat-card-progress .admin-stat-value { color: var(--color-accent); }
.admin-stat-card-progress .admin-stat-icon { background: var(--color-accent-light); color: var(--color-accent); }

.admin-stat-card-ready .admin-stat-value { color: var(--color-accent); }
.admin-stat-card-ready .admin-stat-icon { background: var(--color-accent-light); color: var(--color-accent); }

.admin-stat-card-total .admin-stat-value { color: var(--color-accent); }
.admin-stat-card-total .admin-stat-icon { background: var(--color-accent-light); color: var(--color-accent); }

/* Admin — Tables */
.admin-wrapper .table {
    color: var(--color-on-surface);
    font-size: var(--font-size-sm);
}

.admin-wrapper .table thead th {
    background: var(--color-surface-alt);
    color: var(--color-on-surface-muted);
    font-weight: 600;
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--color-border);
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.admin-wrapper .table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--color-surface);
}

.admin-wrapper .table-striped tbody tr:nth-of-type(even) {
    background-color: var(--color-surface-alt);
}

.admin-wrapper .table-hover tbody tr:hover {
    background-color: var(--color-accent-lighter);
}

.admin-wrapper .table .form-check-input {
    cursor: pointer;
}

.admin-wrapper .table-active {
    background-color: var(--color-accent-light);
}

/* Admin — Filter Cards */
.admin-filters .form-label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-on-surface-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.375rem;
}

/* Admin — Badges */
.admin-wrapper .badge.bg-primary {
    background-color: var(--color-accent) !important;
}

.admin-wrapper .badge.bg-secondary {
    background-color: var(--color-on-surface-muted) !important;
}

.admin-wrapper .badge.bg-info {
    background-color: var(--color-info);
}

.admin-wrapper .badge.bg-warning {
    background-color: var(--color-warning) !important;
    color: var(--color-primary) !important;
}

.admin-wrapper .badge.bg-danger {
    background-color: var(--color-danger) !important;
}

.admin-wrapper .badge.bg-success {
    background-color: var(--color-success) !important;
}

/* Admin — Forms */
.admin-wrapper .form-control,
.admin-wrapper .form-select {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
    min-height: 40px;
    background-color: var(--color-surface);
    color: var(--color-on-surface);
}

.admin-wrapper .form-control:focus,
.admin-wrapper .form-select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

.admin-wrapper .form-label {
    color: var(--color-on-surface-muted);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.admin-wrapper .form-check-input:checked {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.admin-wrapper .form-check-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

/* Admin — Pagination */
.admin-wrapper .page-link {
    color: var(--color-on-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
    margin: 0 2px;
}

.admin-wrapper .page-link:hover {
    background: var(--color-accent-lighter);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.admin-wrapper .active > .page-link,
.admin-wrapper .page-link.active {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-surface);
}

/* Admin — Kanban */
.kanban-container {
    overflow-x: auto;
    padding: 0 0.5rem 1.5rem;
}

.kanban-board {
    display: flex;
    gap: 1rem;
    min-height: 70vh;
    align-items: flex-start;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    -webkit-overflow-scrolling: touch;
}

.kanban-column {
    flex: 1 1 280px;
    min-width: 280px;
    background-color: var(--color-surface-alt);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    max-height: 75vh;
    border: 1px solid var(--color-border);
    position: relative;
}

.kanban-column:focus-within {
    z-index: 20;
}

.kanban-column-header {
    padding: 1rem;
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.kanban-cards {
    padding: 0.75rem;
    overflow-y: auto;
    flex-grow: 1;
    scrollbar-width: thin;
}

.kanban-card {
    background-color: var(--color-surface);
    border-radius: var(--radius-sm);
    margin-bottom: 0.625rem;
    padding: 0.875rem;
    transition: all var(--transition-fast);
    border: 1px solid var(--color-border);
    cursor: default;
    position: relative;
    z-index: 1;
}

.kanban-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    z-index: 2;
    border-color: var(--color-accent);
}

.kanban-card:focus-within {
    z-index: 100;
}

.kanban-card-actions .btn-link {
    text-decoration: none;
    opacity: 0.5;
    transition: opacity var(--transition-fast);
    color: var(--color-accent);
}

.kanban-card:hover .kanban-card-actions .btn-link {
    opacity: 1;
}

.kanban-card-actions .btn-link.text-success {
    color: var(--color-success) !important;
}

.customer-name {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-on-surface);
}

.kanban-card .dropdown-menu {
    z-index: 1060;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.kanban-card .dropdown-item {
    font-size: var(--font-size-sm);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
}

.kanban-card .dropdown-item .badge {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
}

.border-new { border-left-color: var(--color-warning) !important; }
.border-confirmed { border-left-color: var(--color-info) !important; }
.border-inprogress { border-left-color: var(--color-accent) !important; }
.border-ready { border-left-color: var(--color-success) !important; }
.border-delivered { border-left-color: var(--color-on-surface-muted) !important; }
.border-cancelled { border-left-color: var(--color-danger) !important; }
.border-awaitingpayment { border-left-color: var(--color-primary) !important; }
.border-paid { border-left-color: var(--color-success) !important; }

.border-priority-high { border-left-color: var(--color-danger) !important; }
.border-priority-medium { border-left-color: var(--color-warning) !important; }
.border-priority-low { border-left-color: var(--color-on-surface-muted) !important; }

/* Admin — Kanban priority dot on card */
.priority-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.priority-dot-high { background-color: var(--color-danger); }
.priority-dot-medium { background-color: var(--color-warning); }
.priority-dot-low { background-color: var(--color-on-surface-muted); }

/* Admin — Alerts */
.admin-wrapper .alert {
    border-radius: var(--radius-md);
    border: 1px solid;
    font-size: var(--font-size-sm);
}

.admin-wrapper .alert-info {
    background: var(--color-accent-light);
    border-color: var(--color-accent);
    color: var(--color-accent-hover);
}

.admin-wrapper .alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: var(--color-warning);
    color: var(--color-primary);
}

.admin-wrapper .alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border-color: var(--color-danger);
    color: var(--color-danger);
}

/* Admin — Modals */
.admin-wrapper .modal-content {
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xl);
}

.admin-wrapper .modal-header {
    background: var(--color-surface-alt);
    border-bottom: 1px solid var(--color-border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.admin-wrapper .modal-title {
    font-weight: 700;
    color: var(--color-on-surface);
}

.admin-wrapper .modal-footer {
    background: var(--color-surface-alt);
    border-top: 1px solid var(--color-border);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Admin — Breadcrumb (in admin layout) */
.admin-wrapper .breadcrumb {
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    margin-bottom: 0;
    font-size: var(--font-size-sm);
    box-shadow: none;
}

/* Admin — Dashboard page title */
.admin-dashboard-title {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--color-on-surface);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.admin-dashboard-title i {
    color: var(--color-accent);
}

/* Admin — Spinner */
.admin-wrapper .spinner-border {
    color: var(--color-accent);
}

/* Admin — Nav Tabs */
.admin-wrapper .nav-tabs .nav-link {
    color: var(--color-on-surface-muted);
    font-weight: 500;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: all var(--transition-fast);
}

.admin-wrapper .nav-tabs .nav-link:hover {
    color: var(--color-accent);
    border-color: var(--color-border) var(--color-border) var(--color-accent);
}

.admin-wrapper .nav-tabs .nav-link.active {
    color: var(--color-accent);
    border-color: var(--color-accent) var(--color-accent) var(--color-surface);
    font-weight: 600;
}

/* Admin — Accordion */
.admin-wrapper .accordion-button {
    font-weight: 600;
    color: var(--color-on-surface);
    background: var(--color-surface);
}

.admin-wrapper .accordion-button:not(.collapsed) {
    background: var(--color-accent-lighter);
    color: var(--color-accent);
}

.admin-wrapper .accordion-button:focus {
    box-shadow: 0 0 0 3px var(--color-accent-light);
    border-color: var(--color-accent);
}

/* Admin — Product image thumbnail in tables */
.admin-product-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.admin-product-thumb-placeholder {
    width: 44px;
    height: 44px;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-on-surface-light);
}

/* ==============================================
   ADMIN ANALYTICS RESPONSIVE
   ============================================== */

.orders-analytics .btn-group {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.orders-analytics .btn-group .btn {
    white-space: nowrap;
}

@media (max-width: 992px) {
    .orders-analytics .btn-group .btn {
        padding: 0.4rem 0.6rem;
        font-size: var(--font-size-sm);
    }
}

@media (max-width: 768px) {
    .orders-analytics .btn-group {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .orders-analytics .btn-group .btn {
        width: 100%;
    }

    .orders-analytics .nav-tabs {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .orders-analytics .nav-tabs .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: var(--font-size-sm);
    }

    .orders-analytics .table {
        font-size: var(--font-size-sm);
    }

    .orders-analytics .progress {
        height: 6px;
    }
}

@media (max-width: 480px) {
    .orders-analytics .orders-analytics-filters .btn {
        width: 100%;
    }

    .orders-analytics .orders-analytics-filters .form-label {
        font-size: var(--font-size-xs);
    }

    .orders-analytics .card-body {
        padding: 0.75rem;
    }
}

/* ==============================================
   RESPONSIVE — TABLETS
   ============================================== */

@media (max-width: 991.98px) {
    .hero-content {
        max-width: 90%;
        padding: 1.5rem;
    }

    .hero-description {
        font-size: var(--font-size-lg);
        margin-bottom: 2.5rem;
    }

    .navbar .nav-link {
        font-size: var(--font-size-sm);
        padding: 0.5rem 0.75rem;
    }

    .navbar .navbar-brand {
        font-size: var(--font-size-base);
    }
}

/* ==============================================
   RESPONSIVE — MOBILE
   ============================================== */

@media (max-width: 767.98px) {
    .main-hero {
        min-height: 100vh;
        background-attachment: scroll;
        padding: 2rem 1rem;
    }

    .hero-content {
        max-width: 95%;
        padding: 1.5rem 1rem;
        border-radius: var(--radius-lg);
    }

    .hero-title {
        margin-bottom: 1rem;
        line-height: 1.15;
    }

    .hero-description {
        font-size: var(--font-size-base);
        margin-bottom: 2rem;
        line-height: 1.6;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .brand-text-main {
        font-size: 1.15rem;
    }

    .brand-text-sub {
        font-size: 0.75rem;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }

    .logo-icon i {
        font-size: 16px;
    }

    .navbar .nav-link {
        font-size: var(--font-size-sm);
    }

    .admin-wrapper .navbar .navbar-brand {
        font-size: var(--font-size-base);
        max-width: 70vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .admin-wrapper .navbar .nav-link {
        font-size: var(--font-size-sm);
    }

    .orders-header {
        gap: 1rem;
    }

    .orders-header-actions {
        width: 100%;
        justify-content: stretch;
    }

    .orders-header-actions > .btn {
        width: 100%;
    }

    .orders-filters .form-label {
        font-size: var(--font-size-xs);
    }

    .orders-table th,
    .orders-table td {
        padding: 0.5rem 0.75rem;
    }

    .orders-table .btn-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }

    .orders-table .btn-group .btn {
        width: 100%;
    }
}

/* ==============================================
   RESPONSIVE — SMALL MOBILE
   ============================================== */

@media (max-width: 575.98px) {
    .main-hero {
        padding: 1rem 0.5rem;
    }

    .hero-content {
        padding: 1rem 0.875rem;
        border-radius: var(--radius-md);
    }

    .hero-title {
        font-size: var(--font-size-2xl);
        margin-bottom: 0.75rem;
    }

    .hero-description {
        font-size: var(--font-size-sm);
        margin-bottom: 1.5rem;
    }

    .navbar .nav-link {
        font-size: var(--font-size-xs);
    }

    .navbar .navbar-brand {
        font-size: 0.95rem;
    }

    .product-slide-img {
        max-height: 280px;
    }
}

/* ==============================================
   RESPONSIVE — EXTRA SMALL
   ============================================== */

@media (max-width: 380px) {
    .hero-title {
        font-size: var(--font-size-xl);
    }

    .hero-description {
        font-size: var(--font-size-xs);
    }
}

/* ==============================================
   FORM STYLES (GLOBAL)
   ============================================== */

.form-control {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.625rem 0.875rem;
    font-size: var(--font-size-base);
    transition: all var(--transition-fast);
    min-height: 44px;
}

.form-control:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

.form-select {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.625rem 0.875rem;
    font-size: var(--font-size-base);
    transition: all var(--transition-fast);
    min-height: 44px;
}

.form-select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

.form-check-input {
    cursor: pointer;
}

.form-check-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

.form-check-input:checked {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.input-group-text {
    background-color: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    color: var(--color-on-surface-muted);
    border-radius: var(--radius-sm);
}

.btn {
    min-height: 44px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
}

/* ===== Star Rating ===== */
.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 1.1rem;
}

.star-rating .star-rating-star {
    color: #ffc107;
    cursor: default;
}

.star-rating .star-rating-star.clickable {
    cursor: pointer;
    transition: transform 0.15s;
}

.star-rating .star-rating-star.clickable:hover {
    transform: scale(1.2);
}

.star-rating .star-rating-value {
    font-weight: 600;
    color: var(--color-on-surface);
}

/* ===== Review Card ===== */
.review-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: box-shadow var(--transition-fast);
}

.review-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.review-card-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.review-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.review-card-name {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.review-card-verified {
    font-size: 0.75rem;
    color: var(--color-success, #28a745);
    font-weight: 500;
}

.review-card-date {
    font-size: 0.85rem;
    color: var(--color-on-surface-muted);
}

.review-card-body {
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.review-card-images {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.review-card-image-link {
    display: inline-block;
}

.review-card-image-wrapper {
    display: inline-block;
    cursor: pointer;
}

.review-card-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    transition: transform 0.2s;
}

.review-card-image:hover {
    transform: scale(1.05);
}

/* ===== Review Form ===== */
.review-form {
    background: var(--color-surface-alt);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.review-form .form-control:focus,
.review-form .form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-rgb, 0, 123, 255), 0.15);
}

.review-form-preview {
    display: inline-block;
}

.review-form-preview-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.review-form-preview-remove {
    padding: 0 4px !important;
    font-size: 0.65rem !important;
    line-height: 1 !important;
    min-height: auto !important;
    border-radius: 50% !important;
}

/* ===== Reviews Page ===== */
.reviews-page-header h1 {
    font-size: 2rem;
    font-weight: 700;
}

.reviews-page-big-rating {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.reviews-page-bar-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.reviews-page-bar-label {
    min-width: 40px;
    font-size: 0.85rem;
    text-align: right;
    white-space: nowrap;
}

.reviews-page-bar-track {
    flex: 1;
    height: 8px;
    background: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}

.reviews-page-bar-fill {
    height: 100%;
    background: #ffc107;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.reviews-page-bar-count {
    min-width: 25px;
    font-size: 0.85rem;
    color: var(--color-on-surface-muted);
}

.reviews-page-form-card {
    position: sticky;
    top: 80px;
}

/* ===== Reviews Home Summary ===== */
.reviews-home-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.reviews-home-big-rating {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    text-align: center;
}

.reviews-home-stars {
    text-align: center;
}

.reviews-home-count {
    font-size: 0.85rem;
    color: var(--color-on-surface-muted);
    margin-top: 0.25rem;
}

.reviews-home-distribution {
    min-width: 250px;
}

.reviews-home-bar-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.reviews-home-bar-label {
    min-width: 40px;
    font-size: 0.85rem;
    text-align: right;
    white-space: nowrap;
}

.reviews-home-bar-track {
    flex: 1;
    height: 8px;
    background: var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}

.reviews-home-bar-fill {
    height: 100%;
    background: #ffc107;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.reviews-home-bar-count {
    min-width: 25px;
    font-size: 0.85rem;
    color: var(--color-on-surface-muted);
}

.reviews-home-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .reviews-home-summary {
        flex-direction: column;
        gap: 1.5rem;
    }

    .reviews-page-summary .row {
        text-align: center;
    }

    .reviews-page-form-card {
        position: static;
    }

    .reviews-home-cards {
        grid-template-columns: 1fr;
    }
}

/* ==============================================
   UX AUDIT FIXES (plans/ux-audit-fixes.md)
   ============================================== */

/* Form validation: highlight invalid fields after user interaction
   (works alongside Blazor ValidationMessage texts) */
input:user-invalid,
select:user-invalid,
textarea:user-invalid {
    border-color: var(--bs-danger, #dc3545);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

/* Long Russian words in card titles: hyphenate instead of mid-word breaks */
.product-card .card-title,
.product-card .card-title a {
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Mobile: keep tables readable inside .table-responsive.
   Without a min-width, width:100% squeezes cells to one character per line. */
@media (max-width: 767.98px) {
    .table-responsive > .table {
        min-width: 540px;
    }

    .admin-wrapper .table-responsive > .table {
        min-width: 720px;
    }
}

/* Admin mobile: stacked tables — each row becomes a card, cells become
   "label: value" lines via data-label attributes. Applied below lg where
   the admin sidebar collapses. Must reset the min-width rules above
   (higher specificity) or stacked tables keep a horizontal scrollbar. */
@media (max-width: 991.98px) {
    .admin-wrapper .table-responsive > .table.table-mobile-stack {
        min-width: 0;
    }

    .table-mobile-stack thead {
        display: none;
    }

    .table-mobile-stack,
    .table-mobile-stack tbody {
        display: block;
        width: 100%;
    }

    .table-mobile-stack tr {
        display: block;
        background-color: var(--color-surface);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        padding: 0.625rem 0.875rem;
        margin-bottom: 0.625rem;
    }

    .table-mobile-stack td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        border: none;
        padding: 0.375rem 0;
        text-align: right;
        min-width: 0;
        overflow-wrap: anywhere;
        white-space: normal; /* undo .text-truncate single-line clipping */
    }

    .table-mobile-stack td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--color-text-muted);
        text-align: left;
        flex-shrink: 0;
        padding-right: 0.5rem;
    }

    .table-mobile-stack td.no-label::before {
        content: none;
    }

    /* Empty cells (e.g. trailing tfoot placeholders) — no blank strips */
    .table-mobile-stack td.no-label:empty {
        display: none;
    }

    /* tfoot totals: keep as a simple label:value line, not stacked cards */
    .table-mobile-stack tfoot {
        display: block;
    }

    .table-mobile-stack tfoot tr {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 0.5rem;
        border: none;
        padding: 0;
        margin: 0;
        background: transparent;
    }

    .table-mobile-stack tfoot td {
        display: block;
        padding: 0.2rem 0;
    }

    .table-mobile-stack tfoot td:empty {
        display: none;
    }

    /* colspan cells (empty states, totals rows) render as full-width blocks;
       their own text-align classes keep the intended alignment. */
    .table-mobile-stack td[colspan] {
        display: block;
        padding-top: 0.5rem;
    }
}

/* Legal/policy pages: readable line length */
.legal-content {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767.98px) {
    .legal-content {
        text-align: left;
    }

    .legal-content p {
        text-align: left;
    }
}

/* Review form: comfortable star tap targets */
.star-rating .star-rating-star.clickable {
    padding: 0.3rem 0.2rem;
    font-size: 1.5rem;
    margin: -0.3rem -0.2rem; /* keep visual size, grow hit area */
}

/* Custom file upload button: hides the native "Choose files" input
   (which renders in English regardless of page culture) */
.file-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Step cards: keep descriptions aligned when titles wrap (Contacts page) */
.step-card h4 {
    min-height: 2.6em;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==============================================
   DESIGN REFRESH
   ============================================== */

.badge-preorder {
    background: var(--color-accent-light);
    color: var(--color-accent-hover);
    border: 1px solid rgba(184, 115, 51, 0.25);
    font-weight: 600;
}

.product-description h5 {
    font-weight: 800;
    letter-spacing: -0.01em;
    display: inline-block;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid rgba(184, 115, 51, 0.35);
}

/* Wave B — catalog cards */

.btn-cart-outline {
    background: transparent;
    border: 1.5px solid var(--color-accent);
    color: var(--color-accent);
    font-weight: 700;
    font-size: var(--font-size-sm);
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

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

.carousel .carousel-item img {
    object-fit: cover;
}

.product-card .card-title {
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.filter-group {
    margin-bottom: 1.25rem;
}

/* Wave C — pages */

.btn-outline-copper {
    border: 1.5px solid var(--color-accent);
    color: var(--color-accent);
    background: transparent;
    font-weight: 700;
}

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

.hero-section-warm {
    background: linear-gradient(135deg, var(--color-surface-warm) 0%, var(--color-accent-lighter) 100%);
}

.recently-viewed-section .row {
    justify-content: center;
}

.product-trust-line {
    flex-basis: 100%;
    width: 100%;
    margin-top: 0.75rem;
    font-size: var(--font-size-sm);
    color: var(--color-on-surface-muted);
}

.product-carousel .carousel-control-prev,
.product-carousel .carousel-control-next {
    height: calc(100% - 80px);
}

.product-carousel .carousel-indicators {
    position: static;
    margin: 12px 0 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-carousel .carousel-indicators [data-bs-target] {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    opacity: 0.65;
    overflow: hidden;
    padding: 0;
    background: none;
    text-indent: 0;
}

.product-carousel .carousel-indicators [data-bs-target].active {
    border-color: var(--color-accent);
    opacity: 1;
}

.product-carousel .carousel-indicators [data-bs-target] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-info .product-meta,
.product-info .product-price,
.product-info .product-availability {
    margin-bottom: 1.25rem;
}

.footer a:not(.btn):not(.home-social-link) {
    color: #C9C9C9;
}

.footer a:not(.btn):not(.home-social-link):hover {
    color: #fff;
}

@media (max-width: 767.98px) {
    .cookie-consent-container .row {
        --bs-gutter-y: 0;
        padding-top: 0.4rem !important;
        padding-bottom: 0.4rem !important;
    }

    .cookie-consent-container p {
        font-size: var(--font-size-sm);
    }
}

/* Wave D — admin (light) */

.text-copper {
    color: var(--color-accent) !important;
}

.admin-quick-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-on-surface);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.admin-quick-link:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-sm);
    color: var(--color-on-surface);
}

.admin-wrapper .breadcrumb {
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 0.75rem;
}


.kanban-empty {
    padding: 1.25rem 0.5rem;
    text-align: center;
    color: var(--color-on-surface-light);
    font-size: var(--font-size-sm);
}

/* Blazor EditForm marks invalid fields with class "invalid" */
.form-control.invalid,
.form-select.invalid {
    border-color: var(--color-danger);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.12);
}

/* ==============================================
   ADMIN MOBILE UX (orders quickbar, order cards, mobile toolbar)
   ============================================== */

/* Order page header buttons: flex-stretch makes <a> taller than its line box
   and its content sticks to the top (unlike <button> which centers natively). */
.order-header-actions .btn {
    display: inline-flex;
    align-items: center;
}

.orders-quickbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: 0.625rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.orders-status-chips {
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.orders-status-chips::-webkit-scrollbar {
    display: none;
}

.orders-status-chips .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.orders-card-list {
    padding: 0.5rem;
}

.order-card-item {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--color-border-light);
}

.order-card-item:last-of-type {
    border-bottom: none;
}

.order-card-body {
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: var(--color-on-surface);
}

.order-card-body:hover .fw-semibold {
    color: var(--color-accent);
}

.order-card-advance {
    align-self: center;
    min-width: 44px;
    min-height: 44px;
}

/* Admin mobile card lists (generic — same purpose as .order-card-* above
   but for pages whose cards are not links; Orders keeps its own styles). */
.admin-card-text {
    min-width: 0;
}

.admin-card-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
}

.admin-card-item {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    min-width: 0;
}

.admin-card-title {
    font-weight: 700;
    min-width: 0;
    overflow-wrap: anywhere;
}

.admin-card-meta {
    color: var(--color-text-muted);
    min-width: 0;
    overflow-wrap: anywhere;
}

.admin-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.625rem;
}

.admin-card-actions .btn {
    min-height: 44px;
}

/* Order details page on phones: compact the big info card */
@media (max-width: 767.98px) {
    .order-details-page .card-header {
        padding: 0.5rem 0.75rem;
    }

    .order-details-page .card-body {
        padding: 0.75rem;
    }

    .order-details-page .card-body > .row {
        margin-bottom: 1rem;
    }

    .order-details-page h6.text-muted {
        margin-bottom: 0.5rem;
        font-size: 0.7rem;
    }

    .order-details-page .order-info-grid p {
        margin-bottom: 0.25rem;
        font-size: 0.875rem;
        overflow-wrap: anywhere;
    }

    .order-details-page .border.rounded.p-3 {
        padding: 0.625rem 0.75rem;
    }

    .order-details-page .admin-header .btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    .order-details-page .table-mobile-stack td {
        padding: 0.2rem 0;
    }

    .order-details-page .table-mobile-stack td:not([data-label="Кол-во"]):not([data-label="Цена"]) .form-control-sm {
        max-width: 120px;
    }

    /* Client/delivery info: 2-column key-value grid instead of stacked
       single-column blocks (halves the section height) */
    .order-details-page .order-info-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 1rem;
        margin-inline: 0;
        margin-bottom: 1rem;
    }

    .order-details-page .order-info-grid > .col-md-6 {
        display: contents;
    }

    .order-details-page .order-info-grid h6 {
        grid-column: 1 / -1;
        margin-bottom: 0.375rem;
    }

    .order-details-page .order-info-grid a[href^="tel:"] {
        white-space: nowrap;
    }

    .order-details-page .order-info-grid hr {
        grid-column: 1 / -1;
    }

    /* Order items: qty + price inputs share one row, sum + delete share another.
       Widths leave room for the inter-element whitespace of inline-level boxes.
       Labels are compact and the input fills the remaining width so prices fit. */
    .order-details-page .table-mobile-stack td[data-label="Кол-во"],
    .order-details-page .table-mobile-stack td[data-label="Цена"] {
        display: inline-flex;
        width: calc(50% - 3px);
        gap: 0.375rem;
    }

    .order-details-page .table-mobile-stack td[data-label="Кол-во"]::before,
    .order-details-page .table-mobile-stack td[data-label="Цена"]::before {
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .order-details-page .table-mobile-stack td[data-label="Кол-во"] input,
    .order-details-page .table-mobile-stack td[data-label="Цена"] input {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        font-size: 0.875rem;
        padding: 0.175rem 0.375rem;
    }

    .order-details-page .table-mobile-stack td[data-label="Сумма"] {
        display: inline-flex;
        width: calc(100% - 62px);
    }

    .order-details-page .table-mobile-stack tbody td.no-label:not(:empty) {
        display: inline-flex;
        width: 44px;
        justify-content: flex-end;
    }
}

.order-mobile-toolbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.order-mobile-toolbar .btn {
    min-height: 44px;
}


/* Very narrow phones: qty and price stack again instead of clipping inputs */
@media (max-width: 359.98px) {
    .order-details-page .table-mobile-stack td[data-label="Кол-во"],
    .order-details-page .table-mobile-stack td[data-label="Цена"] {
        width: 100%;
    }
}


/* Production dashboard */

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

.btn-outline-copper {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-outline-copper:hover:not(:disabled) {
    background-color: var(--color-accent);
    color: #fff;
}

.production-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--radius-sm, 8px);
    flex-shrink: 0;
}

.production-product-link {
    color: inherit;
    text-decoration: none;
}

.production-product-link:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.production-numbers strong {
    font-size: 1rem;
}

.production-progress {
    height: 6px;
}

.production-row {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.production-row-done {
    opacity: 0.55;
}

.production-items {
    background: rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-sm, 8px);
    padding: 0.25rem 0.5rem;
}

.production-item .border-start {
    border-left: 2px solid rgba(0, 0, 0, 0.15) !important;
}

.production-toggle {
    color: var(--color-on-surface-muted);
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .production-numbers {
        width: 100%;
    }
}
