/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* MainLayout with Top Navigation */
.page[b-crx00wc8g6] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.main-content[b-crx00wc8g6] {
    flex: 1;
    background-color: #f8f9fa;
    padding: 0;
}

.content[b-crx00wc8g6] {
    background-color: white;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin: 1rem 0;
    min-height: calc(100vh - 200px);
}

/* Navbar enhancements */
.navbar[b-crx00wc8g6] {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1030;
}

.navbar-brand[b-crx00wc8g6] {
    font-weight: 700;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.navbar-brand:hover[b-crx00wc8g6] {
    transform: scale(1.02);
}

.navbar-nav .nav-link[b-crx00wc8g6] {
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover[b-crx00wc8g6] {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active[b-crx00wc8g6] {
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

.navbar-nav .nav-link.active[b-crx00wc8g6]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: #ffc107;
    border-radius: 2px 2px 0 0;
}

/* Dropdown menu styling */
.dropdown-menu[b-crx00wc8g6] {
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item[b-crx00wc8g6] {
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
    border-radius: 0.375rem;
    margin: 0.25rem;
}

.dropdown-item:hover[b-crx00wc8g6] {
    background-color: var(--durakey-primary);
    color: white;
    transform: translateX(2px);
}

.dropdown-item i[b-crx00wc8g6] {
    width: 20px;
    text-align: center;
}

/* Mobile responsive navbar */
@media (max-width: 991.98px) {
    .navbar-collapse[b-crx00wc8g6] {
        background-color: rgba(0, 0, 0, 0.1);
        border-radius: 0.5rem;
        margin-top: 1rem;
        padding: 1rem;
    }
    
    .navbar-nav[b-crx00wc8g6] {
        align-items: flex-start;
    }
    
    .navbar-nav .nav-link[b-crx00wc8g6] {
        margin: 0.25rem 0;
        padding: 0.75rem 1rem;
        border-radius: 0.375rem;
        width: 100%;
    }
    
    .navbar-nav .dropdown-menu[b-crx00wc8g6] {
        background-color: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.2);
        margin-left: 1rem;
        margin-top: 0.5rem;
    }
}

@media (max-width: 768px) {
    .content[b-crx00wc8g6] {
        margin: 0.5rem 0;
        border-radius: 0.25rem;
        min-height: calc(100vh - 180px);
    }
    
    .navbar-brand[b-crx00wc8g6] {
        font-size: 1.25rem;
    }
    
    .navbar-brand img[b-crx00wc8g6] {
        height: 35px !important;
    }
}

@media (max-width: 576px) {
    .content[b-crx00wc8g6] {
        margin: 0.25rem 0;
        padding: 1rem;
        min-height: calc(100vh - 160px);
    }
    
    .navbar-brand[b-crx00wc8g6] {
        font-size: 1.1rem;
    }
    
    .navbar-brand img[b-crx00wc8g6] {
        height: 30px !important;
        margin-right: 0.5rem !important;
    }
    
    .navbar-toggler[b-crx00wc8g6] {
        font-size: 1rem;
        padding: 0.5rem;
    }
}


/* Enhanced error UI for better visibility with top nav */
#blazor-error-ui[b-crx00wc8g6] {
    color-scheme: light only;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    bottom: 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    z-index: 1050;
    color: #856404;
    font-weight: 500;
}

#blazor-error-ui .dismiss[b-crx00wc8g6] {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    background: none;
    border: none;
    color: #856404;
    padding: 0.25rem;
    line-height: 1;
}

#blazor-error-ui .dismiss:hover[b-crx00wc8g6] {
    color: #533f03;
    background-color: rgba(133, 100, 4, 0.1);
    border-radius: 0.25rem;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/*
 * NavMenu Component Styles
 *
 * NOTE: The sidebar navigation has been replaced by top navigation in MainLayout.razor
 * This file is kept minimal for backwards compatibility.
 * Primary styling is now in app.css and MainLayout.razor.css
 */

/* Hide legacy nav menu if ever rendered */
.legacy-nav-menu[b-hbsy5celea] {
    display: none !important;
}

/* Minimal nav-icon class kept for any shared component usage */
.nav-icon[b-hbsy5celea] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
}
/* /Components/Pages/Admin/CardTemplateDesigner.razor.rz.scp.css */
/* ──────────────────────────────────────────────── */
/* Card Template Designer — Scoped Styles          */
/* ──────────────────────────────────────────────── */

/* Zone drop targets */
[b-jqfmi5y4km] .zone-drop-target {
    min-height: 48px;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

[b-jqfmi5y4km] .zone-drop-target:empty {
    border: 2px dashed #dee2e6;
    background: #f8f9fa;
}

/* SortableJS ghost (item being dragged, placeholder in list) */
[b-jqfmi5y4km] .sortable-ghost {
    opacity: 0.4;
    background: #cfe2ff !important;
    border: 2px dashed #0d6efd !important;
    border-radius: 0.375rem;
}

/* SortableJS chosen (the original item while dragging) */
[b-jqfmi5y4km] .sortable-chosen {
    opacity: 0.85;
}

/* SortableJS drag (the clone being dragged around) */
[b-jqfmi5y4km] .sortable-drag {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: rotate(2deg);
    z-index: 9999;
}

/* Field items in zones */
[b-jqfmi5y4km] .sortable-field {
    cursor: default;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
    background: #fff;
}

[b-jqfmi5y4km] .sortable-field:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Drag handle cursor */
[b-jqfmi5y4km] .sortable-field .bi-grip-vertical {
    cursor: grab;
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

[b-jqfmi5y4km] .sortable-field:hover .bi-grip-vertical {
    opacity: 1;
}

/* Palette field items */
[b-jqfmi5y4km] .palette-field {
    transition: background-color 0.15s ease, transform 0.1s ease;
    border: 1px solid transparent;
}

[b-jqfmi5y4km] .palette-field:hover {
    background-color: #e8f0fe;
    border-color: #b6d4fe;
}

[b-jqfmi5y4km] .palette-field:active {
    transform: scale(0.97);
}

/* Zone card headers — subtle color coding */
[b-jqfmi5y4km] .card-header h6 .bi {
    opacity: 0.7;
}

/* Inline field edit panel */
[b-jqfmi5y4km] .bg-light.border.rounded {
    border-color: #b6d4fe !important;
    background-color: #f0f6ff !important;
}

/* Stats cards on the list view */
[b-jqfmi5y4km] .card.bg-primary {
    border: none;
    box-shadow: 0 2px 12px rgba(13, 110, 253, 0.15);
}

[b-jqfmi5y4km] .card.bg-light {
    border: 1px solid #e9ecef;
}

/* Dashed border placeholder in empty zones */
[b-jqfmi5y4km] .border-dashed {
    border-style: dashed !important;
    border-color: #adb5bd !important;
    border-width: 2px !important;
}

/* Template table */
[b-jqfmi5y4km] .table td,
[b-jqfmi5y4km] .table th {
    vertical-align: middle;
}

/* Sticky palette sidebar */
[b-jqfmi5y4km] .col-md-4 > .card {
    max-height: calc(100vh - 100px);
}

/* Palette collapse toggle */
[b-jqfmi5y4km] .btn-link.fw-bold {
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Modal overlay */
[b-jqfmi5y4km] .modal.fade.show.d-block {
    z-index: 1050;
}

/* Badge color preview in field row */
[b-jqfmi5y4km] .badge[style*="font-size: 0.65em"] {
    padding: 0.15em 0.4em;
    font-weight: 500;
}

/* Layout settings card */
[b-jqfmi5y4km] .form-range {
    margin-top: 0.5rem;
}

/* ──────────────────────────────────────────────── */
/* Live Preview Panel                              */
/* ──────────────────────────────────────────────── */

/* Card preview container — disable all interaction */
[b-jqfmi5y4km] .preview-container {
    pointer-events: none;
    user-select: none;
}

/* Ensure preview card doesn't add extra margin inside the wrapper */
[b-jqfmi5y4km] .preview-container .card {
    margin-bottom: 0 !important;
}

/* Detail Modal inline preview — override fixed-position overlay */
[b-jqfmi5y4km] .preview-modal-container {
    position: relative;
    pointer-events: none;
    user-select: none;
}

/* Override the modal's fullscreen backdrop to render inline */
[b-jqfmi5y4km] .preview-modal-container > .modal.fade.show.d-block {
    position: relative !important;
    background-color: transparent !important;
    z-index: auto !important;
    display: block !important;
}

[b-jqfmi5y4km] .preview-modal-container .modal-dialog {
    margin: 0 !important;
    max-width: 100% !important;
    transform: none !important;
}

[b-jqfmi5y4km] .preview-modal-container .modal-content {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
}

/* Preview header badge */
[b-jqfmi5y4km] .bg-info.bg-opacity-10 {
    background-color: rgba(13, 202, 240, 0.1) !important;
}

/* ──────────────────────────────────────────────── */
/* Responsive adjustments                           */
/* ──────────────────────────────────────────────── */

@media (max-width: 767.98px) {
    [b-jqfmi5y4km] .col-md-8,
    [b-jqfmi5y4km] .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    [b-jqfmi5y4km] .col-md-4 > .card {
        position: static !important;
        max-height: none;
    }
}

/* When preview is shown, stack on medium screens */
@media (max-width: 991.98px) {
    [b-jqfmi5y4km] .col-lg-5,
    [b-jqfmi5y4km] .col-lg-4,
    [b-jqfmi5y4km] .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    /* Remove sticky on stacked layout */
    [b-jqfmi5y4km] .col-lg-4 > .card,
    [b-jqfmi5y4km] .col-lg-3 > .card {
        position: static !important;
        max-height: none;
    }
}
/* /Components/Pages/Home.razor.rz.scp.css */
/* Home page wrapper - pushes CTA section to bottom of viewport */
.home-page-wrapper[b-gze9mxtc7w] {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 180px); /* Account for navbar and margins */
}

/* Push CTA section to bottom when content is short */
.home-page-wrapper > .cta-section[b-gze9mxtc7w] {
    margin-top: auto;
}

/* Ensure modals don't participate in flex layout */
.home-page-wrapper > .modal[b-gze9mxtc7w] {
    margin-top: 0;
}
/* /Components/Shared/ProductFieldRenderer.razor.rz.scp.css */
/* ProductFieldRenderer component-scoped styles */

.field-row[b-nnkcum7lw7] {
    display: flex;
    align-items: baseline;
    padding: 4px 0;
    font-size: 0.835rem;
    line-height: 1.4;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.field-row:last-child[b-nnkcum7lw7] {
    border-bottom: none;
}

.field-label[b-nnkcum7lw7] {
    flex-shrink: 0;
    font-weight: 600;
    color: #5a6370;
    margin-right: 8px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.field-label[b-nnkcum7lw7]::after {
    content: "";
}

.field-value[b-nnkcum7lw7] {
    color: #2d3436;
    font-weight: 500;
    word-break: break-word;
}
/* /Components/Shared/ThemedProductCard.razor.rz.scp.css */
/* ThemedProductCard component-scoped styles */

.product-image[b-k7mbizbhad] {
    height: 220px;
    object-fit: contain;
    background-color: #f8f9fa;
}

.out-of-stock[b-k7mbizbhad] {
    opacity: 0.6;
    position: relative;
}

.out-of-stock img[b-k7mbizbhad] {
    filter: grayscale(70%);
}

.out-of-stock-banner[b-k7mbizbhad] {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: #dc3545;
    color: white;
    text-align: center;
    padding: 4px 0;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
    border-radius: 0.375rem 0.375rem 0 0;
}

.card[b-k7mbizbhad] {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover[b-k7mbizbhad] {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* ── Detail Attributes Container ── */
.detail-attributes[b-k7mbizbhad] {
    background: #f8f9fb;
    border-radius: 6px;
    padding: 8px 12px;
    border: 1px solid #e9ecef;
}

/* ── Default Fallback Detail Rows (non-template path) ── */
.detail-attr-row[b-k7mbizbhad] {
    display: flex;
    align-items: baseline;
    padding: 4px 0;
    font-size: 0.835rem;
    line-height: 1.4;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-attr-row:last-child[b-k7mbizbhad] {
    border-bottom: none;
}

.detail-attr-label[b-k7mbizbhad] {
    flex-shrink: 0;
    font-weight: 600;
    color: #5a6370;
    margin-right: 8px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.detail-attr-value[b-k7mbizbhad] {
    color: #2d3436;
    font-weight: 500;
    word-break: break-word;
}

/* ── Template-driven Detail Fields (child ProductFieldRenderer) ── */
[b-k7mbizbhad] .field-row {
    display: flex;
    align-items: baseline;
    padding: 4px 0;
    font-size: 0.835rem;
    line-height: 1.4;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[b-k7mbizbhad] .field-row:last-child {
    border-bottom: none;
}

[b-k7mbizbhad] .field-label {
    flex-shrink: 0;
    font-weight: 600;
    color: #5a6370;
    margin-right: 8px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

[b-k7mbizbhad] .field-value {
    color: #2d3436;
    font-weight: 500;
    word-break: break-word;
}
/* /Components/Shared/ThemedProductDetailModal.razor.rz.scp.css */
/* ThemedProductDetailModal component-scoped styles */

/* Tab styling */
[b-zixcjvyxs3] .nav-tabs .nav-link {
    color: #495057;
    border: 1px solid transparent;
    background-color: #f8f9fa;
    margin-right: 2px;
}

[b-zixcjvyxs3] .nav-tabs .nav-link:hover {
    color: #2b5797;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

[b-zixcjvyxs3] .nav-tabs .nav-link.active {
    color: #2b5797;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    font-weight: 500;
}

[b-zixcjvyxs3] .tab-content {
    border: 1px solid #dee2e6;
    border-top: none;
    background-color: #fff;
    min-height: 200px;
}

[b-zixcjvyxs3] .tab-pane {
    min-height: 150px;
}

/* Product description content */
[b-zixcjvyxs3] .product-description-content {
    background-color: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 0.375rem;
    padding: 1rem;
    color: #004085;
    line-height: 1.6;
}

/* Modal sizing */
.modal-dialog.modal-xl[b-zixcjvyxs3] {
    max-width: 1140px;
}
