/* Reset & Font Setup */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Ẩn con mắt mặc định của trình duyệt Edge / Chrome / IE để tránh bị 2 con mắt */
input::-ms-reveal,
input::-ms-clear {
    display: none !important;
}

:root {
    --primary-navy: #0B2238;
    --primary-navy-hover: #173859;
    --brand-orange: #E05A2B;
    --brand-orange-hover: #C84B1F;
    --bg-warm: #F5ECE1;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --border-light: #E2E8F0;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #FAFAFB;
    color: var(--text-dark);
    line-height: 1.5;
}

/* ---------------- Top Bar ---------------- */
.top-bar {
    background-color: var(--primary-navy);
    color: #E2E8F0;
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #CBD5E1;
    text-decoration: none;
    transition: color 0.2s;
}

.top-bar-item:hover {
    color: var(--white);
}

.top-bar-divider {
    color: #334155;
}

/* ---------------- Main Header ---------------- */
.main-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: var(--primary-navy);
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--brand-orange);
}

/* Search Box */
.search-box-wrapper {
    flex: 1;
    max-width: 580px;
    display: flex;
    align-items: center;
    border: 1.5px solid #CBD5E1;
    border-radius: 8px;
    position: relative;
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box-wrapper:focus-within {
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 3px rgba(11, 34, 56, 0.08);
}

.search-input {
    width: 100%;
    border: none;
    padding: 10px 34px 10px 16px;
    font-size: 0.92rem;
    outline: none;
    color: var(--text-dark);
    background: transparent;
}

.btn-clear-search {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #94A3B8;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 50%;
    transition: color 0.15s, background 0.15s;
}

.btn-clear-search:hover {
    color: #0F172A;
    background: #E2E8F0;
}

.category-select {
    border: none;
    border-left: 1px solid #E2E8F0;
    background: #F8FAFC;
    padding: 10px 14px;
    font-size: 0.88rem;
    color: var(--text-dark);
    cursor: pointer;
    outline: none;
}

.search-btn {
    background-color: var(--primary-navy);
    color: var(--white);
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.1s;
}

.search-btn:hover {
    background-color: var(--primary-navy-hover);
}

.search-btn:active {
    transform: scale(0.96);
}

/* Auto-complete Live Search Panel Dropdown */
.search-dropdown-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    z-index: 500;
    max-height: 380px;
    overflow-y: auto;
    display: none;
    animation: fadeInDropdown 0.25s ease-out;
}

.search-dropdown-results.active {
    display: block;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hot Searches Section */
.hot-searches-box {
    padding: 14px 16px;
}

.hot-searches-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hot-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hot-tag {
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
    background: #F1F5F9;
    color: #1E293B;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #E2E8F0;
}

.hot-tag:hover {
    background: var(--primary-navy);
    color: var(--white);
    border-color: var(--primary-navy);
}

/* Live Search Result Items */
.search-results-list {
    display: flex;
    flex-direction: column;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    text-decoration: none;
    border-bottom: 1px solid #F1F5F9;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #F8FAFC;
}

.search-item-img {
    width: 44px;
    height: 54px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #E2E8F0;
}

.search-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.search-item-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary-navy);
    line-height: 1.3;
}

.search-item-meta {
    font-size: 0.78rem;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-item-price {
    font-weight: 800;
    color: var(--brand-orange);
    font-size: 0.88rem;
}

/* Empty State inside Search Dropdown */
.search-empty-state {
    padding: 24px 16px;
    text-align: center;
    color: #64748B;
    font-size: 0.88rem;
}

/* Pulse Highlight when scrolled to product card */
.product-card.highlight-target {
    animation: pulseHighlight 2s ease-in-out;
}

@keyframes pulseHighlight {
    0% {
        box-shadow: 0 0 0 4px rgba(224, 90, 43, 0.6);
        transform: scale(1.02);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(224, 90, 43, 0.3);
    }
    100% {
        box-shadow: none;
        transform: scale(1);
    }
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-dark);
    position: relative;
    cursor: pointer;
}

.icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-navy);
}

.badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: var(--brand-orange);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-label {
    font-size: 0.9rem;
    font-weight: 600;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 8px;
    border-left: 1px solid var(--border-light);
}

.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 1.1rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-dark);
}

.user-status {
    font-size: 0.75rem;
    color: #64748B;
}

/* ---------------- Navigation Menu & Dropdown ---------------- */
.nav-menu {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 24px;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

#navLoginItem {
    margin-left: auto;
}

.nav-link {
    padding: 14px 10px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
    position: relative;
    cursor: pointer;
}

.nav-link.active {
    color: var(--brand-orange);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--brand-orange);
}

.nav-link:hover {
    color: var(--brand-orange);
}

/* Dropdown Menu Styling */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    min-width: 230px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.22s ease;
    z-index: 200;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: #F8FAFC;
    color: var(--brand-orange);
}

.dropdown-item .item-badge {
    font-size: 0.72rem;
    background: #F1F5F9;
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* ---------------- Hero Banner Section ---------------- */
.hero-section {
    max-width: 1240px;
    margin: 28px auto 0 auto;
    padding: 0 20px;
}

.hero-banner {
    background-color: var(--bg-warm);
    border-radius: 20px;
    padding: 40px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-tag {
    color: var(--brand-orange);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-navy);
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.hero-desc {
    font-size: 1rem;
    color: #475569;
    max-width: 440px;
    margin-bottom: 28px;
    line-height: 1.6;
}

.btn-hero {
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(11, 34, 56, 0.2);
}

.btn-hero:hover {
    background-color: var(--primary-navy-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 34, 56, 0.3);
}

.hero-image-wrapper {
    width: 100%;
    height: 340px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------------- Category Cards ---------------- */
.category-section {
    max-width: 1240px;
    margin: 24px auto 0 auto;
    padding: 0 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.cat-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    text-decoration: none;
    cursor: pointer;
}

.cat-card:hover, .cat-card.active-cat {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-navy);
}

.cat-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.cat-icon-box.green {
    background-color: #E6F4EA;
    color: #16A34A;
}

.cat-icon-box.orange {
    background-color: #FEF3C7;
    color: #D97706;
}

.cat-icon-box.purple {
    background-color: #F3E8FF;
    color: #9333EA;
}

.cat-info {
    display: flex;
    flex-direction: column;
}

.cat-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 4px;
    letter-spacing: 0.2px;
}

.cat-desc {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.cat-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: #16A34A;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cat-card:nth-child(2) .cat-link {
    color: #D97706;
}

.cat-card:nth-child(3) .cat-link {
    color: #9333EA;
}

/* ---------------- Products Section & Filter Tabs ---------------- */
.bestseller-section {
    max-width: 1240px;
    margin: 40px auto 50px auto;
    padding: 0 20px;
}

.section-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 24px;
    gap: 16px;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-navy);
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 8px;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-navy);
    border-radius: 2px;
}

.filter-tabs-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #F1F5F9;
    color: var(--text-dark);
    border: 1.5px solid transparent;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-btn:hover {
    background: #E2E8F0;
}

.filter-btn.active {
    background: var(--primary-navy);
    color: var(--white);
    border-color: var(--primary-navy);
    box-shadow: 0 4px 12px rgba(11, 34, 56, 0.2);
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 300px));
    gap: 20px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #CBD5E1;
}

.product-image-box {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    margin-bottom: 14px;
    background-color: #F8FAFC;
}

.product-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-box img {
    transform: scale(1.05);
}

.category-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(11, 34, 56, 0.85);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    color: #64748B;
    transition: all 0.2s;
    z-index: 2;
}

.wishlist-btn:hover {
    background: var(--white);
    color: var(--brand-orange);
    transform: scale(1.1);
}

.wishlist-btn.active {
    color: #EF4444;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-author {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.rating-box {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}

.stars {
    color: #F59E0B;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.reviews-count {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.product-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-orange);
    margin-bottom: 14px;
}

.btn-add-cart {
    width: 100%;
    background-color: var(--primary-navy);
    color: var(--white);
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-add-cart:hover {
    background-color: var(--primary-navy-hover);
}

.btn-add-cart:active {
    transform: scale(0.98);
}

/* ---------------- Category Block Vertical Sections ---------------- */
.category-block-section {
    margin-bottom: 48px;
    transition: all 0.4s ease;
    scroll-margin-top: 140px;
}

.category-banner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.green-banner {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    border-left: 6px solid #10B981;
}

.orange-banner {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border-left: 6px solid #F97316;
}

.purple-banner {
    background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 100%);
    border-left: 6px solid #8B5CF6;
}

.banner-title-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.category-emoji {
    font-size: 2.2rem;
}

.category-block-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-navy);
    letter-spacing: -0.3px;
    margin-bottom: 2px;
}

.category-block-desc {
    font-size: 0.88rem;
    color: #64748B;
    font-weight: 500;
}

.btn-view-more {
    background: var(--white);
    color: var(--primary-navy);
    border: 1.5px solid rgba(11, 34, 56, 0.15);
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.btn-view-more:hover {
    background: var(--primary-navy);
    color: var(--white);
    border-color: var(--primary-navy);
    transform: translateX(3px);
}

/* Category Specific Color Badges */
.green-tag {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #047857 !important;
}

.orange-tag {
    background: rgba(249, 115, 22, 0.15) !important;
    color: #C2410C !important;
}

.purple-tag {
    background: rgba(139, 92, 246, 0.15) !important;
    color: #6D28D9 !important;
}

/* ---------------- Toast Notification ---------------- */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

.toast {
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    animation: slideIn 0.3s ease, fadeOut 0.5s 2.5s forwards;
}

@keyframes slideIn {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(20px); }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-banner {
        grid-template-columns: 1fr;
        padding: 30px;
    }
    .hero-image-wrapper {
        height: 260px;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-grid {
        grid-template-columns: 1fr;
    }
    .category-banner-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}

@media (max-width: 640px) {
    .header-container {
        flex-direction: column;
        gap: 12px;
    }
    .search-box-wrapper {
        width: 100%;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .top-bar-right {
        display: none;
    }
}

/* ---------------- User Profile Dropdown ---------------- */
.user-profile-container {
    position: relative;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 12px;
    z-index: 1000;
    animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
}

.dropdown-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #E2E8F0;
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dropdown-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dropdown-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-role {
    font-size: 0.75rem;
    color: var(--brand-orange);
    font-weight: 600;
}

.dropdown-divider {
    height: 1px;
    background: #E2E8F0;
    margin: 8px 0;
}

.dropdown-item {
    width: 100%;
    background: none;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.logout-btn {
    color: #EF4444;
}

.logout-btn:hover {
    background-color: #FEF2F2;
    color: #DC2626;
}

/* ---------------- Product Detail Pop-Up Modal ---------------- */
.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.product-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.product-modal-card {
    background: #FFFFFF;
    border-radius: 20px;
    width: 100%;
    max-width: 920px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.btn-close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F1F5F9;
    border: none;
    font-size: 1.5rem;
    color: #64748B;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.btn-close-modal:hover {
    background: #E2E8F0;
    color: #0F172A;
}

.product-modal-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 32px;
}

@media (max-width: 768px) {
    .product-modal-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Gallery Left Column */
.modal-gallery-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-main-img-box {
    width: 100%;
    height: 340px;
    border-radius: 14px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.modal-main-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.modal-sub-images-list {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.modal-sub-thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    border: 2px solid #E2E8F0;
    cursor: pointer;
    object-fit: cover;
    transition: all 0.2s ease;
    background: #F8FAFC;
    padding: 2px;
}

.modal-sub-thumb:hover, .modal-sub-thumb.active {
    border-color: var(--brand-orange);
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(224, 90, 43, 0.2);
}

/* Modal Details Right Column */
.modal-info-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-product-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-navy);
    line-height: 1.3;
}

.modal-price-stock-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E2E8F0;
}

.modal-product-price {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--brand-orange);
}

.modal-stock-badge {
    background: #EFF6FF;
    color: #1D4ED8;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.modal-section-box {
    background: #F8FAFC;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #E2E8F0;
}

.modal-section-heading {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 8px;
}

.modal-description-text {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.6;
    white-space: pre-line;
}

/* Seller & Shop Card */
.modal-seller-card {
    background: #FFF7ED;
    border: 1.5px solid #FFEDD5;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.seller-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.seller-shop-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-orange);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.seller-shop-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary-navy);
}

.seller-role-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: #C2410C;
}

.seller-info-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    background: #FFFFFF;
    border-radius: 10px;
    padding: 12px 16px;
    border: 1px solid #FED7AA;
}

@media (max-width: 600px) {
    .seller-info-details {
        grid-template-columns: 1fr;
    }
}

.seller-info-item {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.seller-info-item strong {
    color: var(--text-dark);
    font-weight: 700;
}

.modal-action-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.btn-modal-add-cart {
    flex: 1;
    background: var(--brand-orange);
    color: #FFFFFF;
    border: none;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(224, 90, 43, 0.35);
}

.btn-modal-add-cart:hover {
    background: var(--brand-orange-hover);
    transform: translateY(-2px);
}

.btn-modal-wishlist {
    background: #FEF2F2;
    color: #EF4444;
    border: 1.5px solid #FCA5A5;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-modal-wishlist:hover {
    background: #EF4444;
    color: #FFFFFF;
}



