/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* Main Header Styles */
.main-header[b-29dphlue5b] {
    min-height: 72px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%);
    border-bottom: 3px solid #dee2e6;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

html.dark .main-header[b-29dphlue5b] {
    background: linear-gradient(135deg, rgba(18,25,39,.95), rgba(10,14,22,.95));
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 8px 40px rgba(0,230,255,.06);
}

.header-container[b-29dphlue5b] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.logo-section[b-29dphlue5b] {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
}

.logo-link[b-29dphlue5b] {
    display: block;
    line-height: 0;
}

.main-logo[b-29dphlue5b] {
    height: 64px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

html.dark .main-logo[b-29dphlue5b] {
    filter: drop-shadow(0 2px 22px rgba(0,230,255,.25));
}

.nav-section[b-29dphlue5b] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

html.dark .nav-section[b-29dphlue5b] {
    background: rgba(18,25,39,.7);
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 8px 30px rgba(0,230,255,.08);
}

.header-menu-btn[b-29dphlue5b] {
    display: none;
}

.user-info[b-29dphlue5b] {
    margin: 0 0.25rem 0 0;
}

.welcome-text[b-29dphlue5b] {
    font-size: 0.9rem;
    color: #495057;
    white-space: nowrap;
    max-width: 40ch;
    overflow: hidden;
    text-overflow: ellipsis;
}

html.dark .welcome-text[b-29dphlue5b] {
    color: #e6e9ef;
}

.nav-buttons[b-29dphlue5b] {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.nav-buttons .btn[b-29dphlue5b] {
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
}

/* Theme toggle small button */
:root[b-29dphlue5b] {
    --theme-toggle-size: 34px;
}

.theme-toggle[b-29dphlue5b] {
    width: 150px !important;
    height: 40px !important;
    min-width: var(--theme-toggle-size) !important;
    min-height: var(--theme-toggle-size) !important;
    max-width: var(--theme-toggle-size) !important;
    max-height: var(--theme-toggle-size) !important;
    padding: 0 !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    overflow: hidden !important;
    flex: 0 0 auto !important;
}

.theme-toggle .bi[b-29dphlue5b] {
    font-size: 1rem;
    line-height: 1;
}

/* Sidebar container adjustments */
.page[b-29dphlue5b] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-29dphlue5b] {
    flex: 1;
}

.sidebar[b-29dphlue5b] {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
    border-right: 1px solid #e5e9ef;
    box-shadow: 8px 0 24px rgba(0,0,0,0.08);
}

html.dark .sidebar[b-29dphlue5b] {
    background: linear-gradient(180deg, #111827 0%, #0f1420 100%);
    border-right: 1px solid rgba(255,255,255,.06);
    box-shadow: 8px 0 24px rgba(0,230,255,.08);
}

/* Breakpoints */
@media (max-width: 992px) {
    .main-logo[b-29dphlue5b] {
        height: 52px;
    }
}

@media (max-width: 768px) {
    .main-logo[b-29dphlue5b] {
        height: 44px;
    }
    
    .header-menu-btn[b-29dphlue5b] {
        display: inline-block;
    }
}

@media (max-width: 576px) {
    .header-container[b-29dphlue5b] {
        justify-content: space-between;
    }
    
    .nav-section[b-29dphlue5b] {
        padding: 0.4rem 0.6rem;
        gap: 0.4rem;
    }
    
    .welcome-text[b-29dphlue5b] {
        display: none;
    }
    
    .main-logo[b-29dphlue5b] {
        height: 40px;
    }
}

@media (min-width: 641px) {
    .page[b-29dphlue5b] {
        flex-direction: row;
    }

    .sidebar[b-29dphlue5b] {
        width: 300px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-29dphlue5b] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row[b-29dphlue5b], article[b-29dphlue5b] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    /* Collapsed sidebar styles */
    .sidebar.collapsed[b-29dphlue5b] {
        width: 90px;
    }
    
    .sidebar.collapsed .navbar-brand[b-29dphlue5b],
    .sidebar.collapsed .nav-text[b-29dphlue5b] {
        display: none !important;
    }
    
    .sidebar.collapsed[b-29dphlue5b]  .nav-item a {
        justify-content: left;
    }
    
    .sidebar.collapsed .collapse-toggle[b-29dphlue5b] {
        right: .25rem;
    }
}

#blazor-error-ui[b-29dphlue5b] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
  
#blazor-error-ui .dismiss[b-29dphlue5b] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-e5j9y9m5j6] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='003030'%3e%3cpath stroke='rgba%28255,255,255,0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M47h22M415h22M423h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-e5j9y9m5j6] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-e5j9y9m5j6] {
    min-height: 3.5rem;
    background: linear-gradient(180deg, #ffffff0% , #f3f6f9100%);
    border-bottom: 1px solid #e6ebf2;
}

/* Dark theme for header/top row */
html.dark .top-row[b-e5j9y9m5j6] {
    background: linear-gradient(180deg, rgba(18, 25, 39, .95)0%, rgba(10, 14, 22, .92)100%);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

/* Dark hamburger */
html.dark .navbar-toggler[b-e5j9y9m5j6] {
    border-color: rgba(255, 255, 255, .15);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='003030'%3e%3cpath stroke='rgba%280,230,255,0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M47h22M415h22M423h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, .06);
}
html.dark .navbar-toggler:checked[b-e5j9y9m5j6] { background-color: rgba(0, 230, 255, .15); }

.nav-item[b-e5j9y9m5j6] {
    font-size: .95rem;
    padding: .35rem .75rem;
}

    .nav-item:first-of-type[b-e5j9y9m5j6] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-e5j9y9m5j6] {
        padding-bottom: 1rem;
    }

    .nav-item[b-e5j9y9m5j6]  a {
        color: #2c3e50;
        background: #ffffff;
        border-radius: 10px;
        height: 2.75rem;
        display: flex;
        align-items: center;
        line-height: 2.75rem;
        border: 1px solid #e6ebf2;
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
        transition: all .2s ease;
        padding: 0 .75rem;
    }

/* Dark theme for sidebar links */
html.dark .nav-item[b-e5j9y9m5j6]  a {
    color: #e6e9ef;
    background: linear-gradient(180deg, rgba(22, 29, 43, .9)0%, rgba(12, 16, 26, .9)100%);
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 10px 24px rgba(0, 230, 255, .08), 0 1px 0 rgba(255, 255, 255, 0) inset;
}

.nav-item[b-e5j9y9m5j6]  a.active {
    background: linear-gradient(180deg, #ffffff0% , #f5f7fa100%);
    color: #0d6efd;
    border-color: #d9e5ff;
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.15), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

html.dark .nav-item[b-e5j9y9m5j6]  a.active {
    background: linear-gradient(180deg, rgba(10, 14, 22, 1)0%, rgba(18, 25, 39, 1)100%);
    color: #42a5ff;
    border-color: rgba(66, 165, 255, .55);
    box-shadow: 0 16px 32px rgba(0, 230, 255, .16), 0 0 1px rgba(66, 165, 255, .25) inset;
}

.nav-item[b-e5j9y9m5j6]  a:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12), 0 1px 0 rgba(255, 255, 255, 0.95) inset;
    border-color: #dfe6ef;
}
html.dark .nav-item[b-e5j9y9m5j6]  a:hover {
    box-shadow: 0 20px 30px rgba(0, 230, 255, .18), 0 0 0 rgba(255, 255, 255, 0) inset;
    border-color: rgba(66, 165, 255, .35);
}

.nav-item[b-e5j9y9m5j6]  a:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12), 0 0 0 rgba(255, 255, 255, 0.95) inset;
}
html.dark .nav-item[b-e5j9y9m5j6]  a:active {
    box-shadow: 0 10px 18px rgba(0, 230, 255, .14), 0 0 0 rgba(255, 255, 255, 0) inset;
}

.nav-scrollable[b-e5j9y9m5j6] {
    display: none;
    background: linear-gradient(180deg, #ffffff0% , #f7f9fb100%);
    padding: .5rem .5rem 1rem;
    position: relative;
    z-index: 1001;
}

/* Dark sidebar body */
html.dark .nav-scrollable[b-e5j9y9m5j6] {
    background: linear-gradient(180deg, #0f14200% , #0b0e14100%);
}

.navbar-toggler:checked ~ .nav-scrollable[b-e5j9y9m5j6] {
    display: block;
}

/* New: when component toggles open via class */
.nav-scrollable.open[b-e5j9y9m5j6] {
    display: block;
}

/* Collapsible (desktop) support */
.collapse-toggle[b-e5j9y9m5j6] {
    background: #ffffff;
    color: #334155;
    border: 1px solid #e6ebf2;
    font-size: .75rem;
    padding: .25rem .5rem;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all .2s ease;
}

html.dark .collapse-toggle[b-e5j9y9m5j6] {
    background: rgba(255, 255, 255, .06);
    color: #e6e9ef;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 10px 24px rgba(0, 230, 255, .10);
}

.collapse-toggle:hover[b-e5j9y9m5j6] {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}
html.dark .collapse-toggle:hover[b-e5j9y9m5j6] {
    box-shadow: 0 16px 28px rgba(0, 230, 255, .16);
}
.collapse-toggle:active[b-e5j9y9m5j6] {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.10);
    transform: translateY(0);
}
html.dark .collapse-toggle:active[b-e5j9y9m5j6] {
    box-shadow: 0 12px 20px rgba(0, 230, 255, .12);
}

@media (min-width: 641px) {
    .navbar-toggler[b-e5j9y9m5j6] {
        display: none;
    }

    .nav-scrollable[b-e5j9y9m5j6] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}

@media (max-width: 640px) {
    /* Hide desktop collapse toggle on phones; header has its own Menu button */
    .collapse-toggle[b-e5j9y9m5j6] { display:none; }
    .nav-scrollable[b-e5j9y9m5j6] {
        position: fixed;
        left: 0;
        top: 72px;
        bottom: 0;
        width: 78%;
        max-width: 320px;
        box-shadow: 8px 0 24px rgba(0, 0, 0, .25);
        overflow-y: auto;
    }
    html.dark .nav-scrollable[b-e5j9y9m5j6] { box-shadow: 8px 0 24px rgba(0, 230, 255, .15); }
}
/* /Components/Pages/AdminSettings.razor.rz.scp.css */
/* Admin Settings Page Styles */
.admin-settings-container[b-lb1rurelhn] {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.settings-header[b-lb1rurelhn] {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
}

.settings-header h1[b-lb1rurelhn] {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.settings-header .bi[b-lb1rurelhn] {
    margin-right: 0.75rem;
    color: #0d6efd;
}

.settings-sections[b-lb1rurelhn] {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Settings Card */
.settings-card[b-lb1rurelhn] {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f2f5;
    overflow: hidden;
    transition: all 0.3s ease;
}

.settings-card:hover[b-lb1rurelhn] {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.settings-card-header[b-lb1rurelhn] {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #dee2e6;
}

.settings-card-header h3[b-lb1rurelhn] {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.3rem;
}

.settings-card-header .bi[b-lb1rurelhn] {
    margin-right: 0.75rem;
    color: #0d6efd;
}

.settings-card-body[b-lb1rurelhn] {
    padding: 2rem;
}

/* Setting Item */
.setting-item[b-lb1rurelhn] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.setting-item:hover[b-lb1rurelhn] {
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.setting-item:last-child[b-lb1rurelhn] {
    margin-bottom: 0;
}

.setting-info[b-lb1rurelhn] {
    flex: 1;
    margin-right: 2rem;
}

.setting-label[b-lb1rurelhn] {
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: block;
}

.setting-description[b-lb1rurelhn] {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.setting-control[b-lb1rurelhn] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* Enhanced Toggle Switch */
.form-check-input[b-lb1rurelhn] {
    width: 3rem;
    height: 1.5rem;
    background-color: #dee2e6;
    border: 2px solid #dee2e6;
    border-radius: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.form-check-input:checked[b-lb1rurelhn] {
    background-color: #0d6efd;
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.form-check-input:focus[b-lb1rurelhn] {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-check-label[b-lb1rurelhn] {
    font-weight: 500;
    color: #495057;
    margin-left: 0.75rem;
    cursor: pointer;
}

/* Preview Section */
.setting-preview[b-lb1rurelhn] {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 12px;
    border: 1px solid #bbdefb;
}

.setting-preview h5[b-lb1rurelhn] {
    color: #1565c0;
    font-weight: 600;
    margin-bottom: 1rem;
}

.preview-examples[b-lb1rurelhn] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.preview-item[b-lb1rurelhn] {
    padding: 0.75rem 1rem;
    background: #ffffff;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.preview-item.active[b-lb1rurelhn] {
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.15);
    opacity: 1;
    transform: scale(1.02);
}

/* Actions Section */
.settings-actions[b-lb1rurelhn] {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
}

.btn-save[b-lb1rurelhn] {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

.btn-save:hover[b-lb1rurelhn] {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(40, 167, 69, 0.4);
}

.btn-save:disabled[b-lb1rurelhn] {
    opacity: 0.7;
    transform: none;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.settings-actions .btn-outline-secondary[b-lb1rurelhn] {
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.15);
    transition: all 0.3s ease;
}

.settings-actions .btn-outline-secondary:hover[b-lb1rurelhn] {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(108, 117, 125, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-settings-container[b-lb1rurelhn] {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }

    .settings-header[b-lb1rurelhn] {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .settings-card-header[b-lb1rurelhn] {
        padding: 1rem 1.5rem;
    }

    .settings-card-body[b-lb1rurelhn] {
        padding: 1.5rem;
    }

    .setting-item[b-lb1rurelhn] {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem;
    }

    .setting-info[b-lb1rurelhn] {
        margin-right: 0;
    }

    .settings-actions[b-lb1rurelhn] {
        flex-direction: column;
        padding: 1.5rem;
    }

    .settings-actions .btn[b-lb1rurelhn] {
        width: 100%;
    }

    .preview-examples[b-lb1rurelhn] {
        gap: 0.5rem;
    }
}

/* Dark overrides for Admin Settings page */
html.dark .settings-header[b-lb1rurelhn] {
    background: linear-gradient(135deg, rgba(18, 25, 39, 0.95), rgba(10, 14, 22, 0.95));
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 8px 32px rgba(0, 230, 255, 0.08);
}

html.dark .settings-header h1[b-lb1rurelhn] {
    color: #e6e9ef;
    text-shadow: none;
}

html.dark .settings-card[b-lb1rurelhn] {
    background: linear-gradient(180deg, rgba(19, 26, 38, 0.95), rgba(10, 14, 22, 0.95));
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 12px 40px rgba(0, 230, 255, 0.08);
}

html.dark .settings-card-header[b-lb1rurelhn] {
    background: linear-gradient(135deg, rgba(18, 25, 39, 0.95), rgba(10, 14, 22, 0.95));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html.dark .settings-card-header h3[b-lb1rurelhn] {
    color: #e6e9ef;
}

html.dark .setting-item[b-lb1rurelhn] {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

html.dark .setting-item:hover[b-lb1rurelhn] {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 6px 18px rgba(0, 0, 0, 0.25);
}

html.dark .setting-label[b-lb1rurelhn] {
    color: #e6e9ef;
}

html.dark .setting-description[b-lb1rurelhn] {
    color: #c5ced9;
}

html.dark .settings-actions[b-lb1rurelhn] {
    background: linear-gradient(135deg, rgba(18, 25, 39, 0.95), rgba(10, 14, 22, 0.95));
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 8px 32px rgba(0, 230, 255, 0.06);
}
/* /Components/Pages/Catalog.razor.rz.scp.css */
.product-card .title-row[b-2aa1rwtgzi] {
  height: calc(var(--title-line-height) * 2);
}
/* Scoped styles for Catalog.razor to enforce equal-height cards and clamp long text */

:root[b-2aa1rwtgzi] {
  /* Adjust these to tune total card height */
  --card-image-height: 180px;
  --card-body-min: 160px; /* area for badges, title, description, price */
  --card-footer-height: 56px; /* footer with actions */
  /* Fix title to 2 lines at 25px each (total 50px) */
  --title-line-height: 25px;
  --desc-line-height: 1.25rem;
  --pagination-height: 58px;
  --badge-row-height: 24px;
  --rating-row-height: 22px;
  --price-row-height: 28px;
}

.product-card[b-2aa1rwtgzi] {
  display: flex;
  flex-direction: column;
  height: 400px; /* Hard-coded card height */
}

.product-card > .card-img-top[b-2aa1rwtgzi] {
  height: var(--card-image-height) !important;
  object-fit: cover;
}

.product-card .placeholder-img[b-2aa1rwtgzi] {
  height: var(--card-image-height);
}

.product-card > .card-body[b-2aa1rwtgzi] {
  flex: 1 1 auto; /* fill remaining space below image and above footer */
  display: flex;
  flex-direction: column;
  gap: .25rem;
  overflow: hidden;
}

/* Title: single line with ellipsis */
.product-card .card-title[b-2aa1rwtgzi] {
  font-size: 1.05rem;
  line-height: var(--title-line-height);
  margin-top: 0;
  margin-bottom: .25rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  overflow: hidden;
  height: calc(var(--title-line-height) * 2);
  min-height: calc(var(--title-line-height) * 2);
  max-height: calc(var(--title-line-height) * 2);
}

/* Description: clamp to 2 lines */
.product-card .card-text[b-2aa1rwtgzi] {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: var(--desc-line-height);
  height: calc(var(--desc-line-height) * 2);
}

/* Fixed row heights to avoid layout shift when data is absent */
.product-card .badge-row[b-2aa1rwtgzi] { height: var(--badge-row-height); }

.product-card .rating-row[b-2aa1rwtgzi] { height: var(--rating-row-height); }

.product-card .price-row[b-2aa1rwtgzi] { height: var(--price-row-height); }

.product-card .star[data-filled="True"][b-2aa1rwtgzi] { color: #f59e0b; }
.product-card .star[data-filled="False"][b-2aa1rwtgzi] { color: #e5e7eb; }

/* Keep rating, price from pushing layout; allow them to wrap but not grow height */
.product-card .card-body > *[b-2aa1rwtgzi] {
  min-height: 0;
}

.product-card > .card-footer[b-2aa1rwtgzi] {
  margin-top: auto;
  flex: 0 0 var(--card-footer-height);
}

/* Placeholder state should keep same height */
.product-card .placeholder[b-2aa1rwtgzi],
.product-card .placeholder-glow[b-2aa1rwtgzi] {
  user-select: none;
}

/* Keep the pagination fixed at bottom; avoid jumpiness across pages */
.pagination-bar[b-2aa1rwtgzi] {
  position: sticky;
  bottom: 0;
  z-index: 5;
  padding: .5rem 0;
}

/* Add space at bottom of grid so sticky bar doesn't overlap last row */
.product-grid[b-2aa1rwtgzi] {
  padding-bottom: calc(var(--pagination-height) + .5rem);
}

/* Media column for product thumbnail: add breathing room */
.product-card .media-row[b-2aa1rwtgzi] {
  gap: .5rem; /* space between image and content */
}

.product-card .media-box[b-2aa1rwtgzi] {
  width: 140px;
  height: 180px;
  overflow: hidden;
  padding: 6px; /* prevents image from touching edges */
  box-sizing: border-box;
}

.product-card .media-box img[b-2aa1rwtgzi] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px; /* slight rounding to match card aesthetics */
  display: block;
}
/* /Components/Pages/Home.razor.rz.scp.css */
/* Home Page 3D Effects */
h1[b-myhcusr106] {
    color: #2c3e50;
    text-shadow: 
        0 1px 0 #4a5568,
        0 2px 0 #3a4b5c,
        0 3px 0 #2a3b4c,
        0 4px 0 #1a2b3c,
        0 5px 10px rgba(0,0,0,0.3),
        0 8px 20px rgba(0,0,0,0.2);
    font-weight: 700;
    margin-bottom: 1.5rem;
    transform: perspective(500px) rotateX(5deg);
}

h2[b-myhcusr106] {
    color: #34495e;
    text-shadow: 
        0 1px 0 #5a6c7d,
        0 2px 0 #4a5c6d,
        0 3px 0 #3a4c5d,
        0 4px 8px rgba(0,0,0,0.25),
        0 6px 15px rgba(0,0,0,0.15);
    font-weight: 600;
    margin-bottom: 1rem;
    transform: perspective(400px) rotateX(3deg);
}

p[b-myhcusr106] {
    color: #2c3e50;
    text-shadow: 
        0 1px 0 rgba(255,255,255,0.8),
        0 2px 3px rgba(0,0,0,0.1);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

ul li[b-myhcusr106] {
    color: #2c3e50;
    text-shadow: 
        0 1px 0 rgba(255,255,255,0.8),
        0 2px 3px rgba(0,0,0,0.1);
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

ul li strong[b-myhcusr106] {
    color: #2980b9;
    text-shadow: 
        0 1px 0 #3498db,
        0 2px 0 #2980b9,
        0 3px 5px rgba(0,0,0,0.2);
    font-weight: 700;
}

/* Content container 3D effect */
.content[b-myhcusr106] {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 2rem;
    margin: 1rem;
    box-shadow: 
        0 8px 16px rgba(0,0,0,0.1),
        0 4px 8px rgba(0,0,0,0.06),
        inset 0 1px 0 rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.9);
    transform: perspective(1000px) rotateX(1deg);
}

hr[b-myhcusr106] {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #dee2e6, transparent);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

/* Dark overrides for Home page content */
html.dark h1[b-myhcusr106], html.dark h2[b-myhcusr106], html.dark p[b-myhcusr106], html.dark ul li[b-myhcusr106], html.dark ul li strong[b-myhcusr106] { color:#e6e9ef; text-shadow:none; }
html.dark .content[b-myhcusr106] { background: linear-gradient(145deg, rgba(18,25,39,.95), rgba(10,14,22,.95)); border-color: rgba(255,255,255,.08); box-shadow:012px36px rgba(0,230,255,.08); }
html.dark hr[b-myhcusr106] { background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent); }
/* /Components/Pages/ProductDetail.razor.rz.scp.css */
/* Product Detail Page Styles */

.product-detail-container[b-xfn8spe4el] {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Product Content Card - Vertical Layout */
.product-content-card[b-xfn8spe4el] {
   /* display: flex; */
    flex-direction: column;
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 2rem;
    border: 1px solid #f0f2f5;
}

.product-content-card > *[b-xfn8spe4el] {
    width: 100%;
}

/* Title Section */
.product-title[b-xfn8spe4el] {
    display: block;
    width: 100%;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.8rem;
}

/* Images Section */
.images-section[b-xfn8spe4el] {
    width: 100%;
    display: block;
}

.images-grid[b-xfn8spe4el] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    width: 100%;
}

.image-container[b-xfn8spe4el] {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.image-container:hover[b-xfn8spe4el] {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-image[b-xfn8spe4el] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-image.clickable[b-xfn8spe4el] {
    cursor: pointer;
}

/* Description Section */
.product-description[b-xfn8spe4el] {
    width: 100%;
    display: block;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.product-description p[b-xfn8spe4el] {
    margin: 0;
    color: #495057;
    line-height: 1.6;
}

/* Purchase Card */
.product-purchase-card[b-xfn8spe4el] {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e6f3ff;
}

/* Price Display */
.price-display[b-xfn8spe4el] {
    margin-bottom: 1.5rem;
}

.price-display *[b-xfn8spe4el] {
    text-shadow: none;
    filter: none;
}

.price-row[b-xfn8spe4el] {
    font-size: 1.15rem;
}

.regular-price[b-xfn8spe4el] {
    color: #198754;
}

.old-price[b-xfn8spe4el] {
    color: #000000;
}

.new-price[b-xfn8spe4el] {
    color: #dc3545;
}

/* Sale Header */
.sale-header[b-xfn8spe4el] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sale-icon[b-xfn8spe4el] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #dc3545;
    color: #fff;
    border-radius: 6px;
}

.sale-campaign[b-xfn8spe4el] {
    background: #dc3545;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Stock Info */
.stock-info[b-xfn8spe4el] {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #e8f5e8;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #d4edda;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.1);
}

.stock-label[b-xfn8spe4el] {
    color: #495057;
    font-weight: 500;
}

.stock-quantity[b-xfn8spe4el] {
    font-weight: 700;
    color: #28a745;
    font-size: 1.1rem;
}

.out-of-stock-warning[b-xfn8spe4el] {
    color: #dc3545;
    font-weight: 600;
    display: block;
    margin-top: 0.5rem;
}

/* Stock Status Indicators */
.stock-status[b-xfn8spe4el] {
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.stock-status.in-stock[b-xfn8spe4el] {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.stock-status.low-stock[b-xfn8spe4el] {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border: 1px solid #ffeaa7;
}

.stock-status.out-of-stock[b-xfn8spe4el] {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Purchase Buttons */
.purchase-buttons[b-xfn8spe4el] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-add-to-cart[b-xfn8spe4el] {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 12px;
    padding: 0.875rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-add-to-cart:hover[b-xfn8spe4el] {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(40, 167, 69, 0.4);
}

.btn-add-to-cart:active[b-xfn8spe4el] {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.3);
}

.btn-add-to-cart:disabled[b-xfn8spe4el] {
    opacity: 0.6;
    transform: none;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.btn-view-cart[b-xfn8spe4el] {
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
    transition: all 0.3s ease;
}

.btn-view-cart:hover[b-xfn8spe4el] {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.2);
}

/* Image Modal */
.image-modal-overlay[b-xfn8spe4el] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.image-modal-content[b-xfn8spe4el] {
    position: relative;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-img[b-xfn8spe4el] {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: none;
    border-radius: 4px;
}

.image-modal-close[b-xfn8spe4el] {
    position: absolute;
    top: -40px;
    right: -10px;
    background: transparent;
    color: #fff;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.image-modal-nav[b-xfn8spe4el] {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    width: 48px;
    height: 72px;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    user-select: none;
}

.image-modal-nav.left[b-xfn8spe4el] {
    left: -60px;
}

.image-modal-nav.right[b-xfn8spe4el] {
    right: -60px;
}

/* Admin Section */
.card-header[b-xfn8spe4el] {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.card-header h5[b-xfn8spe4el] {
    color: #495057;
    font-weight: 600;
}

.card-header .fa-cog[b-xfn8spe4el] {
    color: #6c757d;
}

[b-xfn8spe4el] .media-upload-container {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

[b-xfn8spe4el] .upload-area {
    background: #f8f9fa;
    transition: all 0.2s ease;
}

[b-xfn8spe4el] .upload-area.drag-over {
    background: #e3f2fd;
    border-color: #1976d2;
}

.admin-section .btn-sm[b-xfn8spe4el] {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.admin-section .btn-outline-primary:hover[b-xfn8spe4el] {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.15);
}

.admin-section .btn-outline-success:hover[b-xfn8spe4el] {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(25, 135, 84, 0.15);
}

/* Responsive Design - Tablet */
@media (max-width: 991px) {
    .images-grid[b-xfn8spe4el] {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .image-modal-close[b-xfn8spe4el] {
        top: 10px;
        right: 10px;
    }

    .image-modal-nav.left[b-xfn8spe4el] {
        left: 10px;
    }

    .image-modal-nav.right[b-xfn8spe4el] {
        right: 10px;
    }

    .image-modal-nav[b-xfn8spe4el] {
        background: rgba(0, 0, 0, 0.6);
    }
}

@media (max-width: 576px) {
    .images-grid[b-xfn8spe4el] {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .product-detail-container[b-xfn8spe4el] {
        padding: 0 0.5rem;
        margin: 1rem auto;
    }

    .product-content-card[b-xfn8spe4el] {
        padding: 1rem;
        border-radius: 16px;
    }

    .product-title[b-xfn8spe4el] {
        font-size: 1.5rem;
    }

    .price-row[b-xfn8spe4el] {
        font-size: 1rem;
    }

    .product-purchase-card[b-xfn8spe4el] {
        padding: 1.5rem;
    }

    .purchase-buttons[b-xfn8spe4el] {
        flex-direction: column;
    }
}

/* Dark Theme Overrides */
html.dark .product-content-card[b-xfn8spe4el] {
    background: linear-gradient(180deg, rgba(19, 26, 38, 0.95), rgba(10, 14, 22, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 48px rgba(0, 230, 255, 0.08);
}

html.dark .product-title[b-xfn8spe4el] {
    color: #e6e9ef;
}

html.dark .image-container[b-xfn8spe4el] {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

html.dark .image-container:hover[b-xfn8spe4el] {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

html.dark .product-description[b-xfn8spe4el] {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

html.dark .product-description p[b-xfn8spe4el] {
    color: #e6e9ef;
}

html.dark .product-purchase-card[b-xfn8spe4el] {
    background: linear-gradient(180deg, rgba(18, 25, 39, 0.96), rgba(10, 14, 22, 0.96));
    border: 1px solid rgba(0, 230, 255, 0.18);
    box-shadow: 0 24px 60px rgba(0, 230, 255, 0.12);
}

html.dark .old-price[b-xfn8spe4el] {
    color: #ffffff;
}

html.dark .new-price[b-xfn8spe4el] {
    color: #ff0000;
}

html.dark .stock-info[b-xfn8spe4el] {
    background: rgba(46, 230, 166, 0.08);
    border-color: rgba(46, 230, 166, 0.45);
    box-shadow: 0 6px 16px rgba(46, 230, 166, 0.15);
}

html.dark .stock-label[b-xfn8spe4el] {
    color: #e6e9ef;
}

html.dark .stock-quantity[b-xfn8spe4el] {
    color: #2ee6a6;
}

html.dark .out-of-stock-warning[b-xfn8spe4el] {
    color: #ff8080;
}

html.dark .stock-status.in-stock[b-xfn8spe4el] {
    background: linear-gradient(135deg, rgba(46, 230, 166, 0.2), rgba(30, 200, 140, 0.2));
    color: #c8fff2;
    border-color: rgba(46, 230, 166, 0.35);
}

html.dark .stock-status.low-stock[b-xfn8spe4el] {
    background: linear-gradient(135deg, rgba(255, 212, 59, 0.18), rgba(230, 180, 20, 0.18));
    color: #fff1b6;
    border-color: rgba(255, 212, 59, 0.35);
}

html.dark .stock-status.out-of-stock[b-xfn8spe4el] {
    background: linear-gradient(135deg, rgba(255, 128, 128, 0.2), rgba(235, 90, 90, 0.2));
    color: #ffd6d6;
    border-color: rgba(255, 128, 128, 0.35);
}

html.dark .card-header[b-xfn8spe4el] {
    background: linear-gradient(135deg, rgba(18, 25, 39, 0.95), rgba(10, 14, 22, 0.95));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html.dark .card-header h5[b-xfn8spe4el] {
    color: #e6e9ef;
}

html.dark[b-xfn8spe4el]  .media-upload-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

html.dark[b-xfn8spe4el]  .upload-area {
    background: rgba(255, 255, 255, 0.02);
}

html.dark[b-xfn8spe4el]  .upload-area.drag-over {
    background: rgba(0, 230, 255, 0.08);
    border-color: rgba(0, 230, 255, 0.45);
}
