:root {
    --bg-dark: #0f1014;
    --bg-card: #181920;
    --text-primary: #ffffff;
    --text-secondary: #8b8e99;
    --accent: #ff4545;
    /* Red accent */
    --accent-yellow: #feb913;
    --accent-green: #2dcc70;
    --accent-blue: #3498db;
    --accent-purple: #9b59b6;
    --accent-teal: #1abc9c;
    --accent-orange: #e67e22;
    --accent-hover: #ff6b6b;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.08);
    --font-main: 'Outfit', 'Inter', sans-serif;
    --border-radius-lg: 40px;
}

body {
    margin: 0;
    font-family: var(--font-main);
    background-color: var(--bg-dark) !important;
    color: var(--text-primary);
    overflow-x: hidden;
    padding-top: 60px;
}

/* Ensure html has same background to avoid gutters showing white */
html { background-color: var(--bg-dark) !important; }

/* White header for shop page to avoid dark seam below navbar */
body.shop-body .navbar {
    background: #ffffff !important;
    color: #111;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
body.shop-body .navbar .brand,
body.shop-body .navbar .nav-links a,
body.shop-body .navbar .icon-btn {
    color: #111;
}
body.shop-body .more-dropdown {
    background: #fff;
}

/* Scrollbar styling: make track transparent to avoid thin white lines */
.shop-sidebar.active, .shop-sidebar:hover { scrollbar-width: thin; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: transparent; }
.shop-sidebar:not(.active) {
    left: -9999px !important;
    box-shadow: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 8px; }

.shop-sidebar.active {
    left: 0 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-shadow: 10px 0 30px rgba(0,0,0,0.1) !important;
}
/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 6%;
    background: rgba(15, 16, 20, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-primary);
    transition: 0.3s;
}

.menu-toggle:hover {
    color: var(--accent);
}

.brand {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 14px;
    text-transform: uppercase;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--text-primary);
}

/* More Dropdown (Brevo Style) */
.more-nav-container {
    position: relative;
    display: flex;
    align-items: center;
}

.more-trigger {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
    cursor: pointer;
    white-space: nowrap;
}

.more-trigger:hover {
    color: var(--text-primary);
}

.more-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: #fff;
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 10px 0;
    display: none;
    flex-direction: column;
    z-index: 1001;
    border: 1px solid rgba(0,0,0,0.05);
}

.more-dropdown.active {
    display: flex;
}

.more-dropdown a {
    color: #444 !important;
    padding: 12px 20px !important;
    text-transform: none !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    width: 100%;
    box-sizing: border-box;
    transition: background 0.2s;
    border-bottom: 1px solid #f5f5f5;
}

.more-dropdown a:last-child {
    border-bottom: none;
}

.more-dropdown a:hover {
    background: #f8f9fa;
    color: var(--accent) !important;
}

/* Ensure navbar doesn't wrap links */
.navbar {
    flex-wrap: nowrap !important;
}

.nav-links {
    flex-wrap: nowrap !important;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: 0.3s;
}

.icon-btn:hover {
    color: var(--accent);
}

.icon-btn {
    position: relative;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 50%;
    color: white;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* User Profile */
.profile-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.profile-trigger img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.profile-trigger:hover img {
    border-color: var(--accent);
}

/* Hero Slider - Refinement for Multi-slide */
.hero-slider {
    padding: 20px 6%;
    background: transparent;
}

.hero-track {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

.hero-banner {
    border-radius: var(--border-radius-lg);
    height: 500px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 80px;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    box-sizing: border-box;
    cursor: pointer;
}

.hero-banner.active {
    opacity: 1;
    visibility: visible;
}

.hero-banner#hero-slide-1 {
    background: #ff4545;
}

.hero-banner#hero-slide-2 {
    background: #feb913;
}

.hero-banner#hero-slide-3 {
    background: #2dcc70;
}

.hero-banner#hero-slide-4 {
    background: #0a0a0a;
}

.hero-left {
    flex: 1.2;
    z-index: 5;
}

.hero-left h5 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.hero-left h1 {
    font-size: 7rem;
    font-weight: 900;
    line-height: 0.85;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.hero-left p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.hero-image-overlay {
    position: absolute;
    right: 0;
    top: 0;
    width: 60%;
    height: 100%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
    overflow: hidden;
    background: transparent;
}

.hero-image-overlay img {
    width: 100%;
    height: auto;
    max-height: 90%;
    object-fit: contain;
    transform: scale(1.5) translateX(5%);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    mix-blend-mode: multiply;
}

.hero-banner.active .hero-image-overlay img {
    transform: scale(1.6) translateX(5%); /* Extra zoom when active */
}

.hero-right {
    flex: 0.8;
    text-align: right;
    z-index: 5;
    padding-top: 50px;
    margin-right: 40px;
    /* Space from edge */
}

.hero-right h2 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.hero-right h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-right p {
    font-size: 0.95rem;
    max-width: 300px;
    margin-left: auto;
    opacity: 0.8;
    margin-bottom: 30px;
}

.hero-btn-white {
    background: #fff;
    padding: 16px 45px;
    border: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hero-banner#hero-slide-1 .hero-btn-white {
    color: #ff4545;
}

.hero-banner#hero-slide-2 .hero-btn-white {
    color: #feb913;
}

.hero-banner#hero-slide-3 .hero-btn-white {
    color: #2dcc70;
}

.hero-banner#hero-slide-4 .hero-btn-white {
    color: #0a0a0a;
}

.hero-btn-white:hover {
    transform: scale(1.1);
}

/* Category Grid - Image 1 Style (11 Cards) */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 40px 6%;
}

.cat-card {
    border-radius: var(--border-radius-lg);
    padding: 40px;
    height: 420px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.cat-card:hover {
    transform: translateY(-10px);
}

.cat-info {
    z-index: 6;
}

.cat-info span {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.8;
    text-transform: uppercase;
}

.cat-info h2 {
    font-size: 2.8rem;
    font-weight: 900;
    margin: 10px 0 25px 0;
    line-height: 0.9;
    text-transform: uppercase;
}

.cat-browse-btn {
    background: #fff;
    color: #111;
    padding: 14px 35px;
    border-radius: 50px;
    border: none;
    font-weight: 800;
    cursor: pointer;
    width: fit-content;
    transition: 0.3s;
}

.cat-browse-btn:hover {
    transform: scale(1.1);
}

.cat-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
    transition: 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    image-rendering: -webkit-optimize-contrast;
}

.cat-card:hover img {
    transform: scale(1.1);
}

/* Special button for dark cards */
.cat-card[style*="#3a3a3a"] .cat-browse-btn,
.cat-card[style*="#e5e5e5"] .cat-browse-btn {
    background: #ff4545;
    color: #fff;
}

/* Product Card Enhancements */
.like-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 5;
    transition: 0.3s;
}

.like-overlay:hover {
    transform: scale(1.1);
}

.like-overlay i {
    font-size: 18px;
    color: #ccc;
}

.like-overlay i.liked {
    color: #ff4545;
}

.card-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.voir-plus {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    transition: 0.3s;
}

.voir-plus:hover {
    color: #111;
    text-decoration: underline;
}

.ajouter-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.ajouter-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

/* User Menu Dropdown */
.user-dropdown {
    position: fixed;
    top: 80px;
    right: 6%;
    width: 240px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown.active {
    display: flex;
}

.dropdown-user-info {
    padding: 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.dropdown-user-info h4 {
    margin: 0;
    color: #1a1a1a;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.dropdown-menu-list {
    padding: 10px 0;
}

.menu-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #444;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.2s;
}

.menu-item:hover {
    background: #fff4f4;
    color: #ff4545;
}

.menu-item i {
    font-size: 1.1rem;
    width: 20px;
}



.hero-content {
    flex: 1;
    z-index: 2;
    max-width: 600px;
}

.hero-sub {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #555;
}

.hero-title {
    font-size: 120px;
    line-height: 0.9;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    color: #111;
}

.hero-big-text {
    font-size: 15rem;
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    font-weight: 900;
    color: #fff;
    z-index: 0;
    opacity: 0.6;
    letter-spacing: -10px;
    pointer-events: none;
    user-select: none;
}

.hero-btn {
    margin-top: 40px;
    padding: 16px 40px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 69, 69, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 69, 69, 0.4);
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 2;
}

.hero-img {
    height: 550px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-desc-right {
    position: absolute;
    right: 40px;
    bottom: 40px;
    max-width: 250px;
    text-align: right;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* Products Section */
.products-section {
    padding: 80px 6%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.section-sub {
    color: var(--text-secondary);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

.product-card {
    background: transparent;
    cursor: pointer;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
}

.card-img-container {
    background: #1a1a1a;
    /* Dark Premium Card BG */
    border-radius: 4px;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
}

.card-img-container img:not(.business-logo-circle) {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .card-img-container img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #fff;
    color: #000;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    z-index: 6;
}

.business-badge-container {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    z-index: 10 !important;
}

.business-logo-circle {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    border: 1.5px solid #fff !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important;
    object-fit: cover !important;
    display: block !important;
}

.follow-icon-mini {
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: #ff4545;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: 0.3s;
    border: 1px solid #eee;
}

.follow-icon-mini:hover {
    transform: scale(1.2);
}

.follow-icon-mini.followed {
    background: #ff4545;
    color: #fff;
    border-color: #ff4545;
}

.business-location-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-size: 12px;
    color: #888;
}

.country-code-badge {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
    color: #444;
    text-transform: uppercase;
}

.location-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    color: #aaa;
}

.product-info {
    color: #111;
}

.product-name {
    font-size: 15.5px;
    font-weight: 500;
    margin: 0;
    color: #111;
}

.product-price {
    font-weight: 500;
    color: #111;
    font-size: 15.5px;
}

.product-meta {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.product-meta i {
    margin-right: 4px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-content {
    background: #fff;
    width: 900px;
    max-width: 90%;
    border-radius: 30px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    color: #111;
    /* Dark text for modal */
}

/* Modal Layout inspired by image 3 */
.modal-left {
    flex: 1;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.modal-left img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

.modal-right {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.modal-header {
    margin-bottom: 20px;
}

.modal-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 10px 0;
    line-height: 1.1;
}

.modal-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

.modal-rating-display {
    color: #ffb900;
    margin: 10px 0;
    font-size: 14px;
}

.modal-sections {
    border-top: 1px solid #eee;
    margin-top: 20px;
    padding-top: 20px;
}

.detail-section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
}

.detail-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
}

.size-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.size-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.2s;
}

.size-btn:hover,
.size-btn.selected {
    border-color: #000;
    background: #000;
    color: #fff;
}

.modal-actions {
    margin-top: auto;
    display: flex;
    gap: 16px;
}

.btn-add-cart {
    flex: 1;
    padding: 18px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-add-cart:hover {
    background: #333;
}

.btn-fav {
    width: 56px;
    height: 56px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    /* For dark bg overlay */
    z-index: 1001;
}

/* Mobile Navigation Drawer */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-nav-drawer {
    width: 280px;
    height: 100%;
    background: var(--bg-dark);
    border-right: 1px solid var(--border);
    padding: 30px 25px;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    gap: 40px;
    box-sizing: border-box;
}

.mobile-nav-overlay.active .mobile-nav-drawer {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-mobile-menu {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: 0.3s;
}

.mobile-nav-links a:hover {
    color: var(--text-primary);
    padding-left: 10px;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 40px;
    border-top: 1px solid var(--border);
}

/* Admin Quick Add Modal */
.admin-quick-add {
    width: 450px !important;
    flex-direction: column !important;
    padding: 30px !important;
}

.admin-preview-container {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    border-radius: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px dashed #ddd;
}

.admin-preview-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.admin-quick-add .form-group {
    margin-bottom: 15px;
    width: 100%;
}

.admin-quick-add label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #444;
}

.admin-quick-add input,
.admin-quick-add select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    box-sizing: border-box;
}

.btn-add-confirm {
    width: 100%;
    padding: 15px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-add-confirm:hover {
    background: #333;
    transform: translateY(-2px);
}

.admin-added-item {
    color: var(--accent) !important;
    font-weight: 700 !important;
    background: #fff4f4;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Updates */
@media (max-width: 1100px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .hero-track {
        height: 400px;
    }

    .hero-banner {
        padding: 0 40px;
        height: 400px;
    }

    .hero-big-text {
        font-size: 8rem;
    }

    .hero-left h1 {
        font-size: 4.5rem;
    }

    .hero-image-overlay {
        width: 55%;
    }

    /* Navbar Mobile Activation at 1100px */
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .navbar {
        padding: 10px 4%;
    }
}

@media (max-width: 768px) {
    .hero-track {
        height: 280px !important;
        min-height: 280px !important;
        margin-top: 10px;
        width: 100% !important;
    }
    
    .hero-banner {
        position: absolute !important;
        flex-direction: row !important;
        padding: 0 25px !important;
        height: 280px !important;
        min-height: 280px !important;
        width: 100% !important;
        border-radius: 0 !important;
        justify-content: flex-start !important;
        text-align: left !important;
        align-items: center !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    .hero-image-overlay {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        z-index: 1 !important;
        margin: 0 !important;
    }

    .hero-image-overlay img {
        width: auto !important;
        max-width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        transform: scale(1.6) translateX(5%) !important;
        margin: 0 !important;
        opacity: 1 !important;
        z-index: 2 !important;
    }

    .hero-left {
        position: relative !important;
        width: 70% !important;
        max-width: 70% !important;
        padding-left: 0 !important;
        margin-bottom: 0 !important;
        z-index: 10 !important;
        text-align: left !important;
    }

    .hero-left h1 {
        font-size: 2.8rem !important;
        line-height: 1.0;
        margin-bottom: 5px;
        color: #fff !important;
        text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }

    .hero-left p {
        font-size: 0.9rem !important;
        color: rgba(255,255,255,0.9) !important;
    }

    .hero-left h5 {
        font-size: 0.75rem !important;
        margin-bottom: 5px !important;
        color: rgba(255,255,255,0.8) !important;
    }

    .hero-banner#hero-slide-1 { background: #ff4545 !important; }
    .hero-banner#hero-slide-2 { background: #feb913 !important; }
    .hero-banner#hero-slide-3 { background: #2dcc70 !important; }
    .hero-banner#hero-slide-4 { background: #0a0a0a !important; }

    .hero-banner.active {
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
    }

    .hero-btn-white {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
        display: inline-block !important;
        width: auto !important;
        margin-top: 10px !important;
        box-shadow: none !important;
        position: relative !important;
        z-index: 15 !important;
    }

    .hero-right {
        display: none !important;
    }

    .modal-content {
        flex-direction: column;
        height: 90vh;
        overflow-y: auto;
    }

    .modal-left {
        max-height: 300px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px 4%;
    }

    .cat-card {
        padding: 25px;
        height: 320px;
    }

    .cat-info h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 10px 4% !important;
    }

    .cat-card {
        height: 180px !important;
        padding: 15px !important;
    }

    .cat-info h2 {
        font-size: 1rem !important;
        line-height: 1.2 !important;
    }
}
/* Legendary F Logo Animation */
.logo-f {
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    animation: pulseF 3s infinite ease-in-out;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
    opacity: 0;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.toast-content i {
    color: #00ffaa;
    font-size: 1.2rem;
}

/* Mobile Navbar Fix */
@media (max-width: 768px) {
    .navbar { padding: 0 15px !important; height: 60px; }
    .nav-left { flex: 0 0 auto !important; }
    .nav-center { flex: 1 !important; justify-content: flex-start !important; padding-left: 10px; overflow: visible !important; }
    .nav-right { flex: 0 0 auto !important; gap: 12px !important; }
    .icon-btn span, .profile-trigger span { display: none !important; }
    #cart-count { top: -5px; right: -5px; }
    .nav-links { gap: 15px !important; }
    .nav-links a, .more-trigger { font-size: 14px !important; }
}
/* Shopping Sidebar / Bottom Nav - Dynamic Desktop Redesign */
.side-nav {
    position: fixed;
    left: 10px;
    top: 85px;
    width: 65px;
    height: auto; /* Shrink to contents */
    background: transparent; /* No background by default */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    gap: 15px;
    z-index: 3000;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    border-radius: 20px;
    box-shadow: none;
    overflow: hidden;
}

/* Expanded state on hover */
.side-nav.expanded {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
    height: auto;
}

.side-nav-item {
    position: relative;
    width: 50px;
    height: 50px;
    display: none; /* Hidden by default on desktop if not message/active */
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(-10px);
}

/* Show only active item or first item if none active */
.side-nav-item.active-item {
    display: flex !important;
    opacity: 1;
    transform: translateY(0);
}

.side-nav:not(.has-active) .side-nav-item:first-child {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* Show all when expanded */
.side-nav.expanded .side-nav-item {
    display: flex !important;
    opacity: 1;
    transform: translateY(0);
}

.side-nav-item:hover,
.side-nav-item.active {
    color: #ff4545; /* Red as requested */
    background: rgba(255, 69, 69, 0.1);
    transform: scale(1.1);
}

/* Hover/Click Label */
.nav-label {
    position: absolute;
    left: 80px;
    background: #ff4545;
    color: white;
    padding: 6px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 69, 69, 0.3);
    pointer-events: none;
}

.side-nav-item:hover .nav-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Mobile Bottom Nav Override */
@media (max-width: 768px) {
    .side-nav {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important; /* Strictly at the bottom edge */
        top: auto !important;
        width: 100% !important; /* Full width for solid footing */
        height: 65px !important;
        z-index: 5000 !important; /* Above everything on mobile */
        flex-direction: row;
        justify-content: space-around;
        padding: 0 10px;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(15px);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        margin: 0 auto;
        display: flex !important;
    }

    .side-nav.nav-hidden {
        display: none !important;
    }

    .side-nav-item {
        display: flex !important;
        opacity: 1 !important;
        transform: none !important;
        color: #fff !important;
        width: auto;
        height: 100%;
        font-size: 20px;
    }

    .nav-label {
        display: none !important;
    }

    body {
        padding-bottom: 90px;
    }
}

/* Chat Reactions Style */
.msg-reactions-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.msg-reaction-pill {
    background: #f1f3f5;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.msg-reaction-pill:hover {
    background: #e9ecef;
    transform: scale(1.05);
}

.msg-reaction-pill.active {
    background: #e7f5ff;
    border-color: #74c0fc;
}

.msg-reaction-pill span {
    font-size: 11px;
    font-weight: 600;
    color: #495057;
}

.msg-react-trigger {
    font-size: 14px;
    color: #adb5bd;
    cursor: pointer;
    margin-left: 8px;
    transition: color 0.2s;
    opacity: 0;
}

.message-bubble:hover .msg-react-trigger {
    opacity: 1;
}

.msg-react-trigger:hover {
    color: #ffb900;
}

.msg-emoji-quick-picker {
    position: fixed;
    background: white;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 8px 15px;
    display: flex;
    gap: 12px;
    z-index: 9999;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.msg-emoji-quick-picker span {
    font-size: 22px;
    cursor: pointer;
    transition: transform 0.2s;
}

.msg-emoji-quick-picker span:hover {
    transform: scale(1.3);
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.5) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Edit indicator style for preview bar */
.editing-indicator {
    display: flex;
    align-items: center;
    background: #fff9db;
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #f08c00;
    width: 100%;
}
/* Search Bar Style */
.msg-search-container {
    padding: 10px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
}

.msg-search-container i {
    color: #adb5bd;
}

#msg-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
    color: #495057;
}

.clear-search {
    cursor: pointer;
    transition: color 0.2s;
}

.clear-search:hover {
    color: #ff4545;
}

.msg-no-results {
    padding: 30px 20px;
    text-align: center;
    color: #adb5bd;
    font-size: 14px;
}

.search-result mark {
    background: #fff3bf;
    color: #000;
    padding: 0 2px;
    border-radius: 2px;
}

.search-result {
    border-left: 3px solid #ffb900 !important;
}

/* Presence Selector Style */
.msg-presence-selector {
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.msg-presence-selector select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

.presence-select-online { border-color: #2ecc71 !important; color: #2ecc71; }
.presence-select-busy { border-color: #e74c3c !important; color: #e74c3c; }
.presence-select-away { border-color: #f1c40f !important; color: #f1c40f; }

.msg-presence-selector input {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #eee;
    font-size: 12px;
    background: #f8f9fa;
    outline: none;
}

.msg-presence-selector input:focus {
    border-color: #adb5bd;
    background: #fff;
}

/* Status dots color mapping */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    border: 2px solid #fff;
}

.status-online { background-color: #2ecc71; box-shadow: 0 0 5px #2ecc71; }
.status-busy { background-color: #e74c3c; box-shadow: 0 0 5px #e74c3c; }
.status-away { background-color: #f1c40f; box-shadow: 0 0 5px #f1c40f; }
.status-offline { background-color: #95a5a6; }

#chat-header-status {
    font-size: 12px;
    color: #666;
}

/* Group Chat Styles */
.msg-sender-name {
    font-size: 11px;
    font-weight: 700;
    color: #ff4545;
    margin-bottom: 4px;
    display: block;
}

.received .msg-sender-name {
    color: #3498db;
}

.msg-create-group-btn {
    padding: 10px 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #ff4545;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.msg-create-group-btn:hover {
    background: #f8f9fa;
}

.msg-item.group {
    border-left: 3px solid #3498db;
}

/* Sidebar Cart */
.sidebar-cart {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #fff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    color: #111;
}

.sidebar-cart.active {
    right: 0;
}

.sidebar-cart-header {
    padding: 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-cart-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #111;
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #f9f9f9;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #f5f5f5;
    border-radius: 8px;
}

.cart-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #111;
}

.cart-remove-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 20px;
}

.sidebar-cart-footer {
    padding: 24px;
    border-top: 1px solid #eee;
    background: #fff;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 18px;
    color: #111;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.checkout-btn:hover {
    opacity: 0.8;
}

/* Seller groups in cart */
.cart-seller-group {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.seller-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #111;
}

.seller-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Overlay BG */
.overlay-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

/* ========================================
   SKELETON / SHIMMER LOADING CARDS
   ======================================== */
@keyframes shimmer {
    0%   { background-position: -800px 0; }
    100% { background-position:  800px 0; }
}

.skeleton-card {
    background: transparent;
    cursor: default;
    pointer-events: none;
}

.skeleton-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #f7f7f7 37%, #f0f0f0 63%);
    background-size: 800px 100%;
    animation: shimmer 1.2s infinite linear;
}

.skeleton-info {
    padding: 10px 0 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-line {
    border-radius: 6px;
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 37%, #e8e8e8 63%);
    background-size: 800px 100%;
    animation: shimmer 1.2s infinite linear;
}

/* Make scrollbar track transparent to avoid thin white lines in some browsers */
::-webkit-scrollbar-track { background: transparent; }
body { scrollbar-color: rgba(0,0,0,0.12) transparent; }

/* Ensure the shop sidebar has a subtle separator and no stray margins */
.shop-sidebar { background: #fff; border-right: 1px solid #efefef; box-shadow: none; }

/* Dark-mode-aware: if the page body is dark, use darker shimmer */
body[data-theme="dark"] .skeleton-line,
.dark-bg .skeleton-line {
    background: linear-gradient(90deg, #1a1a1a 25%, #2e2e2e 37%, #1a1a1a 63%);
    background-size: 800px 100%;
}

.skeleton-line.w-80  { width: 80%; height: 14px; }
.skeleton-line.w-50  { width: 50%; height: 12px; }
.skeleton-line.w-30  { width: 30%; height: 11px; }
.skeleton-line.w-full{ width: 100%; height: 11px; }
