:root {
    --accent-color: #ffc107;
    --dark-bg: #1a1a1a;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #333;
}

.fw-800 { font-weight: 800; }

/* Navbar */
.main-navbar {
    padding: 1rem 0;
    transition: all 0.3s;
}

/* Hero Section */
.hero-section {
    min-height: 70vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.85)), 
                url('https://images.unsplash.com/photo-1486006396113-ad7302ff67b1?q=80&w=1600&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}

.search-card {
    transform: translateY(20px);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Auth */
.auth-section {
    background: #f5f6f8;
    min-height: 72vh;
    padding: 4rem 0;
}

.auth-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.08);
    max-width: 480px;
    padding: 2.25rem;
}

.auth-icon {
    align-items: center;
    background: #1f2933;
    border-radius: 8px;
    color: var(--accent-color);
    display: flex;
    font-size: 1.45rem;
    height: 52px;
    justify-content: center;
    margin-bottom: 1.25rem;
    width: 52px;
}

.auth-title {
    color: #1a1a1a;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #667085;
    font-size: 0.98rem;
    margin-bottom: 1.75rem;
}

.auth-form .form-control {
    border-color: #d7dce2;
    border-radius: 8px;
    font-size: 1.25rem;
    min-height: 48px;
}

.auth-form .form-control:focus {
    border-color: #d39e00;
    box-shadow: 0 0 0 0.2rem rgba(255,193,7,0.18);
}

.auth-link,
.auth-footer a {
    color: #1f2933;
    font-weight: 700;
    text-decoration: none;
}

.auth-link:hover,
.auth-footer a:hover {
    color: #b88600;
    text-decoration: underline;
}

.auth-footer {
    border-top: 1px solid #eceff3;
    color: #667085;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    text-align: center;
}

/* Request Banner */
.request-banner {
    background: #ffffff;
    border-left: 8px solid var(--accent-color);
}

.public-flash-alert {
    margin-left: auto;
    margin-right: auto;
    max-width: 820px;
}

/* Store Cards */
.store-card {
    transition: all 0.3s ease;
    border-radius: 15px;
}

.store-card:hover {
    transform: translateY(8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12) !important;
}

.store-img-wrapper {
    background: #f8f9fa;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-store-image {
    height: 240px;
    overflow: hidden;
    background: #f3f5f7;
    padding: 12px;
}

.featured-store-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Utils */
.hvr-grow { transition: all 0.3s ease; }
.hvr-grow:hover { transform: scale(1.05); }

.hvr-forward { transition: transform 0.3s ease; display: inline-block; }
.hvr-forward:hover { transform: translateX(5px); }

.shadow-inner {
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
}

/* Store panel */
.store-panel-layout {
    align-items: stretch;
    display: flex;
    height: calc(100vh - 82px);
    min-height: calc(100vh - 82px);
    overflow: hidden;
    padding-left: 230px;
}

.store-sidebar {
    background: #1f252b;
    border-right: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    display: flex;
    flex-direction: column;
    flex: 0 0 230px;
    height: calc(100vh - 82px);
    left: 0;
    min-height: calc(100vh - 82px);
    overflow-y: auto;
    padding: 0.85rem 0.75rem;
    position: fixed;
    top: 82px;
    width: 230px;
    z-index: 1020;
}

.store-sidebar__header {
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
}

.store-sidebar__logo {
    align-items: center;
    background: var(--accent-color);
    border-radius: 8px;
    color: #111;
    display: flex;
    flex: 0 0 58px;
    font-size: 1.25rem;
    height: 58px;
    justify-content: center;
    overflow: hidden;
    width: 58px;
}

.store-sidebar__logo.has-image {
    background: #fff;
    border: 2px solid rgba(255,255,255,0.22);
    box-shadow: 0 8px 18px rgba(0,0,0,0.22);
}

.store-sidebar__logo img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.store-sidebar__name {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.store-sidebar__meta {
    color: #b8c0c8;
    font-size: 0.72rem;
    margin-top: 0.2rem;
}

.store-sidebar__nav {
    display: grid;
    gap: 0.22rem;
}

.store-sidebar__link {
    align-items: center;
    border-radius: 8px;
    color: #dce3ea;
    display: flex;
    font-size: 0.84rem;
    font-weight: 700;
    gap: 0.75rem;
    min-height: 36px;
    padding: 0.48rem 0.65rem;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.store-sidebar__link i {
    color: var(--accent-color);
    text-align: center;
    width: 20px;
}

.store-sidebar__link:hover,
.store-sidebar__link.active {
    background: #ffc107;
    color: #151515;
}

.store-sidebar__link:hover i,
.store-sidebar__link.active i {
    color: #151515;
}


.store-sidebar__link--promo {
    border: 1px solid rgba(255, 193, 7, 0.72);
    color: #f5f7fa;
    font-weight: 800;
    margin-top: 0.35rem;
    min-height: 42px;
}

.store-sidebar__link--promo i {
    color: var(--accent-color);
}

.store-sidebar__link--promo:hover,
.store-sidebar__link--promo.active {
    background: #ffc107;
    box-shadow: 0 8px 18px rgba(255, 193, 7, 0.18);
    color: #111;
    transform: translateY(-1px);
}

.store-sidebar__link--promo:hover i,
.store-sidebar__link--promo.active i {
    color: #111;
}
.store-panel-content {
    flex: 1 1 auto;
    min-width: 0;
    overflow-y: auto;
}

.store-sidebar__footer {
    border-top: 1px solid rgba(255,255,255,0.12);
    color: #b8c0c8;
    font-size: 0.65rem;
    line-height: 1.35;
    margin-top: auto;
    padding-top: 0.65rem;
}

.store-sidebar__footer strong,
.store-sidebar__footer span {
    display: block;
}

.store-sidebar__footer strong {
    color: var(--accent-color);
}

/* Admin panel */
.admin-panel-layout {
    display: flex;
    height: calc(100vh - 82px);
    min-height: calc(100vh - 82px);
    overflow: hidden;
    padding-left: 230px;
}

.admin-sidebar {
    background: #1f252b;
    border-right: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    height: calc(100vh - 82px);
    left: 0;
    overflow-y: auto;
    padding: 0.85rem 0.75rem;
    position: fixed;
    top: 82px;
    width: 230px;
    z-index: 1020;
}

.admin-sidebar__nav {
    display: grid;
    gap: 0.22rem;
    padding-top: 2rem;
}

.admin-sidebar__link {
    align-items: center;
    border-radius: 8px;
    color: #f3f5f7;
    display: flex;
    font-size: 0.84rem;
    font-weight: 600;
    gap: 0.75rem;
    min-height: 36px;
    padding: 0.48rem 0.65rem;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.admin-sidebar__link i {
    color: #ffffff;
    text-align: center;
    width: 20px;
}

.admin-sidebar__link:hover,
.admin-sidebar__link.active {
    background: var(--accent-color);
    color: #151515;
}

.admin-sidebar__link:hover i,
.admin-sidebar__link.active i {
    color: #151515;
}

.admin-panel-content {
    flex: 1 1 auto;
    min-width: 0;
    overflow-y: auto;
}

.panel-toast-stack {
    display: grid;
    gap: 0.5rem;
    bottom: 1rem;
    max-width: 360px;
    position: fixed;
    right: 1rem;
    width: min(360px, calc(100vw - 2rem));
    z-index: 1100;
}

.panel-toast-stack--payment {
    bottom: auto;
    top: 5.5rem;
}

.panel-toast {
    align-items: center;
    background: #d1e7dd;
    border: 1px solid #a3cfbb;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.14);
    color: #0f5132;
    display: flex;
    font-size: 0.84rem;
    gap: 0.75rem;
    justify-content: space-between;
    line-height: 1.35;
    padding: 0.6rem 0.75rem;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.panel-toast--danger {
    background: #f8d7da;
    border-color: #f1aeb5;
    color: #842029;
}

.panel-toast--warning {
    background: #fff3cd;
    border-color: #ffda6a;
    color: #664d03;
}

.panel-toast--info {
    background: #cff4fc;
    border-color: #9eeaf9;
    color: #055160;
}

.panel-toast--hide {
    opacity: 0;
    transform: translateY(8px);
}

.panel-toast__close {
    background: transparent;
    border: 0;
    color: inherit;
    font-size: 1.1rem;
    line-height: 1;
    opacity: 0.7;
    padding: 0;
}

.panel-toast__close:hover {
    opacity: 1;
}

@media (max-width: 991.98px) {
    .store-panel-layout {
        display: block;
        height: auto;
        overflow: visible;
        padding-left: 0;
    }

    .store-sidebar {
        height: auto;
        min-height: auto;
        overflow-x: auto;
        overflow-y: visible;
        padding: 0.85rem;
        position: sticky;
        top: 74px;
        width: auto;
        z-index: 1010;
    }

    .store-sidebar__header {
        display: none;
    }

    .store-sidebar__nav {
        display: flex;
        gap: 0.5rem;
        min-width: max-content;
    }

    .store-sidebar__link {
        min-height: 40px;
        white-space: nowrap;
    }

    
.store-sidebar__link--promo {
    border: 1px solid rgba(255, 193, 7, 0.72);
    color: #f5f7fa;
    font-weight: 800;
    margin-top: 0.35rem;
    min-height: 42px;
}

.store-sidebar__link--promo i {
    color: var(--accent-color);
}

.store-sidebar__link--promo:hover,
.store-sidebar__link--promo.active {
    background: #ffc107;
    box-shadow: 0 8px 18px rgba(255, 193, 7, 0.18);
    color: #111;
    transform: translateY(-1px);
}

.store-sidebar__link--promo:hover i,
.store-sidebar__link--promo.active i {
    color: #111;
}
.store-panel-content {
        overflow-y: visible;
    }

    .store-sidebar__footer {
        display: none;
    }

    .admin-panel-layout {
        display: block;
        height: auto;
        overflow: visible;
        padding-left: 0;
    }

    .admin-sidebar {
        height: auto;
        overflow-x: auto;
        overflow-y: visible;
        padding: 0.85rem;
        position: sticky;
        top: 74px;
        width: auto;
        z-index: 1010;
    }

    .admin-sidebar__nav {
        display: flex;
        gap: 0.5rem;
        min-width: max-content;
        padding-top: 0;
    }

    .admin-sidebar__link {
        min-height: 40px;
        white-space: nowrap;
    }

    .admin-panel-content {
        overflow-y: visible;
    }

    .panel-toast-stack {
        bottom: 0.75rem;
        right: 0.75rem;
    }
}






.store-public-card {
    border-radius: 10px;
}

.store-public-image {
    width: 100%;
    height: 100%;
    min-height: 320px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f5f7;
}

.store-public-image img {
    width: 100%;
    height: 100%;
    max-height: 360px;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    display: block;
}

.store-public-placeholder {
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-confirm-modal .modal-content {
    border-radius: 10px;
}

.app-confirm-modal .modal-title {
    color: #1f2529;
}

.app-confirm-modal .modal-footer .btn {
    min-width: 120px;
}

.search-results-list .table td,
.search-results-list .table th {
    padding: 0.95rem 1rem;
}

.search-results-list tbody tr:hover {
    background: #f8fafc;
}

.product-detail-price {
    color: #198754;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
}

.product-gallery {
    width: 100%;
}

.product-gallery .carousel-inner {
    background: #f3f5f7;
}

.product-gallery__image {
    aspect-ratio: 4 / 3;
    display: block;
    height: auto;
    max-height: 640px;
    object-fit: contain;
    width: 100%;
}

.product-gallery .carousel-control-prev,
.product-gallery .carousel-control-next {
    background: rgba(31, 37, 41, 0.35);
    border-radius: 999px;
    height: 44px;
    opacity: 1;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
}

.product-gallery .carousel-control-prev {
    left: 12px;
}

.product-gallery .carousel-control-next {
    right: 12px;
}

.product-gallery__thumbs {
    display: flex;
    gap: 0.75rem;
}

.product-gallery__thumb {
    background: #f3f5f7;
    border: 2px solid transparent;
    border-radius: 8px;
    height: 78px;
    overflow: hidden;
    padding: 0;
    width: 96px;
}

.product-gallery__thumb.active,
.product-gallery__thumb:hover {
    border-color: #ffc107;
}

.product-gallery__thumb img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.product-gallery__empty {
    align-items: center;
    aspect-ratio: 4 / 3;
    background: #f3f5f7;
    display: flex;
    justify-content: center;
}

.product-edit-photo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.product-edit-photo {
    background: #f3f5f7;
    border: 1px solid #d9dee3;
    border-radius: 8px;
    cursor: zoom-in;
    overflow: hidden;
    padding: 0;
    position: relative;
    text-align: left;
    width: 132px;
}

.product-edit-photo img {
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: cover;
    width: 100%;
}

.product-edit-photo span {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.35rem 0.45rem;
}

.product-new-preview img {
    border: 1px solid #d9dee3;
    border-radius: 8px;
    max-height: 160px;
    object-fit: contain;
    width: 100%;
}

.product-edit-photo__zoom {
    align-items: center;
    background: rgba(31, 37, 41, 0.78);
    border-radius: 999px;
    color: #fff;
    display: flex !important;
    height: 30px;
    justify-content: center;
    padding: 0 !important;
    position: absolute;
    right: 8px;
    top: 8px;
    width: 30px;
    z-index: 1;
}

.product-edit-photo:hover .product-edit-photo__zoom {
    background: #ffc107;
    color: #1f2529;
}

.store-request-alert {
    align-items: center;
    background: #fff8e1;
    border: 1px solid #ffd45c;
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.16);
    color: #1f2529;
    display: flex;
    gap: 0.75rem;
    max-width: 380px;
    padding: 0.75rem 0.9rem;
    position: fixed;
    right: 1rem;
    text-decoration: none;
    top: 98px;
    width: min(380px, calc(100vw - 2rem));
    z-index: 1090;
}

.store-request-alert:hover {
    background: #ffc107;
    color: #111;
    transform: translateY(-1px);
}

.store-request-alert__icon {
    align-items: center;
    background: #1f2529;
    border-radius: 999px;
    color: #ffc107;
    display: flex;
    flex: 0 0 38px;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.store-request-alert:hover .store-request-alert__icon {
    background: #111;
    color: #ffc107;
}

.store-request-alert__body {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.store-request-alert__body strong,
.store-request-alert__body small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-request-alert__body small {
    color: #6b7280;
}

.store-request-alert:hover .store-request-alert__body small {
    color: #2f2f2f;
}

@media (max-width: 991.98px) {
    .store-request-alert {
        bottom: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
        top: auto;
        width: auto;
    }
}

.request-public-stats {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 10px;
}

.request-stat-box {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    padding: 1.25rem;
}

.request-stat-box span {
    color: #1f2529;
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.request-stat-box small {
    color: #667085;
    display: block;
    font-weight: 700;
    margin-top: 0.45rem;
}


.request-image-preview img {
    border: 1px solid #d9dee3;
    border-radius: 8px;
    display: block;
    height: 88px;
    margin-top: 0.5rem;
    object-fit: cover;
    width: 100%;
}

.request-detail-photo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.request-detail-photo {
    background: #f3f5f7;
    border: 1px solid #d9dee3;
    border-radius: 8px;
    cursor: zoom-in;
    overflow: hidden;
    padding: 0;
    text-align: left;
    width: 150px;
}

.request-detail-photo img {
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: cover;
    width: 100%;
}

.request-detail-photo span {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.4rem 0.5rem;
}
