﻿/* =========================================================
   GLOBAL BASE
========================================================= */

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #fafafa;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

code {
    color: #c02d76;
}

/* =========================================================
   VALIDATION
========================================================= */

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/* =========================================================
   ROOT PALETTE
========================================================= */

:root {
    --sc-bg: #fafafa;
    --sc-surface: #ffffff;
    --sc-muted: #6b7280;
    --sc-accent: #1f2937;
    --sc-soft: #e6e9ec;
    --sc-success: #2f855a;
    --sc-warning: #d69e2e;
    --sc-danger: #e53e3e;
}

/* =========================================================
   BLAZOR UI
========================================================= */

#blazor-error-ui {
    background: lightyellow;
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 0.6rem 1.25rem;
    z-index: 1000;
    display: none;
}

.blazor-error-boundary {
    background: #b32121;
    color: white;
    padding: 1rem 1rem 1rem 3.7rem;
}

/* =========================================================
   LOADING
========================================================= */

.loading-progress {
    width: 8rem;
    height: 8rem;
    margin: 20vh auto;
}

.loading-progress-text {
    text-align: center;
    font-weight: bold;
}

/* =========================================================
   LAYOUT / UTIL
========================================================= */

.no-numbers {
    list-style: none;
    padding-left: 0;
}

.active-link {
    font-weight: 600;
    border-bottom: 2px solid black;
}

.text-muted-small {
    color: var(--sc-muted);
    font-size: 0.85rem;
}

/* =========================================================
   HEADER / AVATAR
========================================================= */

.user-avatar {
    width: 32px;
    height: 32px;
    background: #6c757d;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-block {
    display: flex;
    align-items: center;
    gap: 20px;
    overflow: hidden;
}

.header-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.header-text h3,
.header-text h5 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================================
   PRODUCT GRID
========================================================= */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    justify-items: center; /* centers items inside each grid cell */
}

.product-item {
    width: 100%;
    max-width: 280px; /* keeps your card size */
}


/* =========================================================
   CARDS BASE
========================================================= */

.modern-card,
.premium-card,
.minimal-card {
    display: flex;
    flex-direction: column;
    height: auto;
}

    .modern-card .card-body,
    .premium-card .card-body {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

/* =========================================================
   MODERN CARD
========================================================= */

.modern-card {
    background: var(--sc-surface);
    border-radius: 12px;
    border: 1px solid var(--sc-soft);
    transition: 0.2s ease;
}

    .modern-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    }

.modern-img-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f8f8f8;
}

.modern-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modern-price {
    display: inline-block;
    width: 100%; /* or fixed height if needed */
    min-height: 20px; /* to ensure the space is consistent */
}
/* =========================================================
BADGES
========================================================= */
.modern-img-wrapper {
    position: relative;
}

.modern-soldout {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 6px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
    /* always visible */
    opacity: 1;
    transform: none;
}
/* =========================================================
   MODAL (ADMIN CONTACT Modal)
========================================================= */
.modal-contact-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.modal-contact-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    width: 500px;
    max-width: 90%;
}
.modal-contact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dropdown-menu {
    margin-top: 0 !important;
}
/* =========================================================
   MODAL (CLEAN CARD STYLE)
========================================================= */

/* REMOVE background overlay completely */
.modal-overlay,
.modal-backdrop {
    display: none;
}
/* FULL SCREEN CENTER */
.modal-center {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* MAX WIDTH MODAL */
.modal-container {
    background: white;
    width: 95vw;
    max-width: 900px; /* adjust if you want bigger */
    max-height: 95vh;
    overflow-y: auto;
    border-radius: 12px;
    position: relative;
    padding: 1rem;
}

/* STACKED LAYOUT */
.modal-content-wrapper.column {
    display: flex;
    flex-direction: column;
}

/* IMAGE ON TOP */
.modal-img-top {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    margin-bottom: 1rem;
}

/* DETAILS BELOW */
.modal-details {
    width: 100%;
}

/* CLOSE BUTTON */
.modal-close-x {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
}/* close button inside card */
/*.modal-close-x {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #f2f2f2;
    font-size: 18px;
    cursor: pointer;
}
*/
/* layout */
.modal-content-wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.modal-img {
    max-width: 250px;
    width: 100%;
}

.modal-details {
    flex: 1;
}

/* modal card */
.modal-card {
    background: white;
    width: 95%;
    max-width: 420px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

/* close button inside card */
.modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
}

/* image */
.modal-img {
    width: 100%;
    height: auto;
}
.product-brand {
    font-size: 0.85rem; /* smaller font size */
    font-weight: normal; /* make it lighter */
    color: #6c757d; /* optional: make it a gray color */
}
.header-container {
    display: flex;
    justify-content: center; /* Centers the left container */
    padding: 10px 0; /* Adds some spacing around */
}

.left {
    display: flex;
    justify-content: center; /* Ensures the content inside the left div is centered */
}

.header-banner {
    padding: 8px 16px; /* Adds padding around the text */
    border-radius: 10px; /* Gives the banner rounded corners */
    text-align: center; /* Centers the text inside the banner */
    max-width: fit-content; /* Makes the width just as wide as the content */
    width: auto; /* Adjusts the width based on content */
    font-size: 1rem; /* Adjust text size */
    /*font-weight: bold;*/ /* Makes the text bold */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); /* Optional: Adds a soft shadow */
}
.product-name {
    min-height: 1.2em; /* Adjust to ensure minimum height */
}
.product-brand {
    color: black;
    font-size: 0.9em;
    min-height: 1.2em; /* Adjust to ensure minimum height */
}
.product-title {
    color: blue;
    font-size: 0.8em;
    min-height: 1.2em; /* Adjust to ensure minimum height */
}
/* Ensure space between icon and text */
.toast-message {
    padding-left: 30px !important; /* adjust to fit your icon width */
}
.btn-blue{
    background-color:#72A7DA;
    color:white;
}