/* ==============================================
   QRFind Design System - Main Theme
   Professional Modern E-Commerce Theme
   ============================================== */

/* Import design system partials */
@import url('_variables.css');
@import url('_base.css');
@import url('_animations.css');
@import url('_buttons.css');
@import url('_cards.css');
@import url('_scanner.css');
@import url('_banner.css');
@import url('_pages.css');

/* ==============================================
   Global resets — fix browser default body margin
   ============================================== */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding: 0; }
main { display: block; margin: 0; padding: 0; }

/* ==============================================
   Page Content Area
   ============================================== */
.page-content {
    min-height: calc(100vh - 70px - 80px);
    /* No padding-bottom here — white body bg shows as gap before dark footer.
       Pages that need scroll-past-bottom-nav space add it themselves. */
    padding-bottom: 0;
}

/* Give footer enough bottom padding so mobile nav doesn't cover it */
.site-footer {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
}

/* ==============================================
   Hero Banner Section
   ============================================== */
.hero-banner {
    padding: var(--space-4) 0;
}

.hero-banner .banner-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.hero-banner .banner-img-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
}

@media (min-width: 768px) {
    .hero-banner .banner-img-wrapper {
        height: 400px;
    }
}

.hero-banner .banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-banner .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(37, 99, 235, 0.7) 50%, rgba(124, 58, 237, 0.5) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: var(--space-8);
}

@media (max-width: 576px) {
    .hero-banner .banner-overlay {
        padding: var(--space-5);
        align-items: center;
        text-align: center;
    }
}

.hero-banner .banner-text h1 {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: var(--space-2);
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero-banner .banner-text h1 {
        font-size: 42px;
    }
}

.hero-banner .banner-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-2);
}

.hero-banner .banner-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-banner .banner-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-5);
    padding: var(--space-4) var(--space-6);
    background: white;
    color: var(--primary-900);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-banner .banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    color: var(--accent-blue);
}

/* ==============================================
   Scanner Section
   ============================================== */
.scanner-section {
    padding: var(--space-8) 0;
    background: linear-gradient(180deg, var(--primary-50) 0%, white 100%);
}

.scanner-section .scanner-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
}

@media (min-width: 992px) {
    .scanner-section .scanner-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.scanner-section .scanner-box {
    background: white;
    border-radius: 24px;
    padding: var(--space-6);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.scanner-section .scanner-header {
    text-align: center;
    margin-bottom: var(--space-5);
}

.scanner-section .scanner-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.scanner-section .scanner-info h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.scanner-section .scanner-info p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-3);
}

.scanner-section .scanner-features {
    list-style: none;
    padding: 0;
    margin-top: var(--space-5);
}

.scanner-section .scanner-features li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.scanner-section .scanner-features li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: var(--success-light);
    color: var(--success);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

/* ==============================================
   Search Section (Product List)
   ============================================== */
.search-section {
    padding: var(--space-4) 0;
    background: white;
}

.search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-wrapper .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid var(--border-light);
    border-radius: 16px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: var(--primary-50);
}

.search-wrapper input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: white;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
}

.search-wrapper input::placeholder {
    color: var(--text-muted);
}

/* ==============================================
   Categories Section (Product List)
   ============================================== */
.categories-section {
    padding: var(--space-3) 0;
    background: white;
    border-bottom: 1px solid var(--border-light);
}

.categories-scroll {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    padding-bottom: var(--space-2);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    border: 2px solid var(--border-light);
    border-radius: 50px;
    background: white;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.category-btn:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    border-color: transparent;
    color: white;
    font-weight: 600;
}

/* ==============================================
   Products Section & Grid
   ============================================== */
.products-section {
    padding: var(--space-6) 0;
}

.products-section.alt-bg {
    background: var(--primary-50);
}

.products-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
}

.products-section .section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.products-section .section-header a {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

@media (min-width: 576px) {
    .products-grid {
        gap: var(--space-4);
    }
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* ==============================================
   Product Card (Modern)
   ============================================== */
.product-card {
    display: block;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.product-card-image {
    position: relative;
    background: var(--primary-50);
    padding: var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.product-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-card-overlay {
    opacity: 1;
}

.product-card-overlay .view-btn {
    padding: 8px 20px;
    background: white;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-blue);
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.product-card:hover .product-card-overlay .view-btn {
    transform: translateY(0);
}

.product-card-body {
    padding: var(--space-4);
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: var(--space-2);
}

.product-tags .tag {
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 6px;
}

.product-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: var(--space-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-price {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.product-price .current-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.product-price .old-price {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* ==============================================
   Product Detail Page
   ============================================== */
.product-detail-page {
    padding-top: var(--space-4);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

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

.product-image-section {
    background: var(--primary-50);
    border-radius: 20px;
    padding: var(--space-6);
    text-align: center;
}

.product-main-image img {
    width: 100%;
    max-height: 350px;
    object-fit: contain;
}

.product-tags-row {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.product-tags-row .tag {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
}

.tag-clothing { background: #fee2e2; color: #dc2626; }
.tag-sticker { background: #dcfce7; color: #16a34a; }
.tag-keychain { background: #dbeafe; color: #2563eb; }

.product-info-section {
    padding: var(--space-2);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.product-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
}

.info-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: var(--space-1);
    transition: color 0.3s ease;
}

.info-btn:hover {
    color: var(--accent-blue);
}

.discount-badge {
    background: var(--error);
    color: white;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.product-price-section {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.product-price-section .current-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
}

.product-price-section .old-price {
    font-size: 16px;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Quantity Selector */
.quantity-selector {
    display: inline-flex;
    align-items: center;
    background: var(--primary-100);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: var(--space-5);
}

.quantity-selector .qty-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.quantity-selector .qty-btn:hover {
    background: var(--accent-blue);
    color: white;
}

.quantity-selector input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Delivery Info Card */
.delivery-info-card {
    background: var(--primary-50);
    border-radius: 16px;
    padding: var(--space-4);
    margin-bottom: var(--space-5);
}

.delivery-info-card .delivery-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.delivery-info-card .delivery-item svg {
    color: var(--accent-blue);
    flex-shrink: 0;
}

/* Description Section */
.description-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.description-section p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Similar Products */
.similar-products-section {
    margin-top: var(--space-8);
}

.similar-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

@media (min-width: 576px) {
    .similar-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.similar-product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    transition: all 0.3s ease;
}

.similar-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.similar-product-image {
    background: var(--primary-50);
    padding: var(--space-4);
    text-align: center;
}

.similar-product-image img {
    width: 100%;
    height: 100px;
    object-fit: contain;
}

.similar-product-info {
    padding: var(--space-3);
}

.similar-product-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.similar-product-price .price {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.similar-product-price .old-price {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: var(--space-1);
}

/* Fixed Cart Bar */
.fixed-cart-bar {
    position: fixed;
    bottom: 80px;
    left: 0;
    right: 0;
    background: white;
    padding: var(--space-4);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

@media (min-width: 992px) {
    .fixed-cart-bar {
        bottom: 0;
    }
}

.cart-bar-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-to-cart-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--accent-gradient);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    color: white;
}

.cart-total {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Info Modal */
.info-item {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-light);
}

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

.info-item .tag {
    display: inline-block;
    margin-right: var(--space-2);
    margin-bottom: var(--space-1);
}

.info-item strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.info-item p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* ==============================================
   Order History Page
   ============================================== */
.orders-section {
    padding: var(--space-4) 0;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.order-card {
    display: flex;
    gap: var(--space-4);
    background: white;
    border-radius: 16px;
    padding: var(--space-4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    transition: all 0.3s ease;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.order-image {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: var(--primary-50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.order-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--space-2);
}

.order-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-1);
}

.order-header h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.order-status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.status-received, .status-processing { background: #dbeafe; color: #1d4ed8; }
.status-dispatched { background: #fef3c7; color: #b45309; }
.status-delivered { background: #dcfce7; color: #16a34a; }

.order-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-total {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.view-link {
    font-size: 13px;
    color: var(--accent-blue);
    font-weight: 500;
}

/* ==============================================
   Header Styles
   ============================================== */
header {
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 100%) !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) 0;
    max-width: 1200px;
    margin: 0 auto;
}

header .head-content {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

header .sidebar-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

header .sidebar-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

header .header-info {
    display: flex;
    align-items: center;
    text-decoration: none;
}

header .logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

header .logo-text {
    font-size: 20px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

header .logo-text span {
    color: var(--accent-blue-light);
}

header .header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.header-login-btn {
    padding: 8px 18px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.25);
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
}
.header-login-btn:hover {
    background: rgba(255,255,255,0.2);
    color: #fff !important;
    text-decoration: none;
}
.header-signup-btn {
    padding: 8px 18px;
    border-radius: 10px;
    background: #2563eb;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s;
    box-shadow: 0 4px 12px rgba(37,99,235,0.35);
}
.header-signup-btn:hover {
    background: #1d4ed8;
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-1px);
}

header .notification-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

header .notification-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

header .notification-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: var(--error);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* ==============================================
   Bottom Navigation - MOBILE ONLY
   ============================================== */
.navbar-menu {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: var(--space-2) var(--space-4);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 24px 24px 0 0;
    display: flex !important;
}

/* Hide bottom nav on desktop */
@media (min-width: 992px) {
    .navbar-menu {
        display: none !important;
    }
    
    .page-content {
        padding-bottom: 20px;
    }
}

@media (max-width: 991px) {
  .navbar-menu.mobile-nav {
      display: flex !important;
  }
}

.navbar-menu ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.navbar-menu ul li {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.navbar-menu ul li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: var(--space-2);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 12px;
    width: 100%;
    color: var(--text-muted);
}

.navbar-menu ul li a svg {
    fill: currentColor;
}

.navbar-menu ul li.active a {
    color: var(--accent-blue);
}

.navbar-menu ul li.active a svg {
    fill: var(--accent-blue);
}

.navbar-menu ul li a span {
    font-size: 9px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-menu ul li.active a span {
    color: var(--accent-blue);
    font-weight: 600;
}

/* Center scanner button */
.navbar-menu ul li.scanner-item {
    margin-top: -28px;
}

.navbar-menu ul li.scanner-item a {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.navbar-menu ul li.scanner-item a:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.5);
}

/* ==============================================
   Sidebar
   ============================================== */
.sidebar-offcanvas {
    width: 320px !important;
    max-width: 85vw;
}

.sidebar-offcanvas .offcanvas-header {
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 100%);
    padding: var(--space-6);
    border: none;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.sidebar-offcanvas .user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.sidebar-offcanvas .user-info h4 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.sidebar-offcanvas .user-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin: 0;
}

.sidebar-offcanvas .logo-text {
    font-size: 24px;
    font-weight: 800;
    color: white;
}

.sidebar-offcanvas .logo-text span {
    color: var(--accent-blue-light);
}

.sidebar-offcanvas .sidebar-plan-badge {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    border-radius: 16px;
    padding: var(--space-4);
    margin: var(--space-4) var(--space-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-offcanvas .sidebar-plan-badge span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-offcanvas .sidebar-plan-badge strong {
    color: white;
    font-size: 18px;
    display: block;
    margin-top: var(--space-1);
}

.sidebar-offcanvas .sidebar-plan-badge a {
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.sidebar-offcanvas .sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-offcanvas .sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-offcanvas .sidebar-menu li a:hover {
    background: var(--primary-50);
    padding-left: var(--space-6);
}

.sidebar-offcanvas .sidebar-menu li a .menu-icon {
    font-size: 18px;
    width: 24px;
    display: flex;
    justify-content: center;
}

.sidebar-offcanvas .sidebar-menu li a .menu-icon svg {
    width: 20px;
    height: 20px;
}

.sidebar-offcanvas .sidebar-menu li a h4 {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.sidebar-offcanvas .sidebar-menu li a .arrow {
    color: var(--text-muted);
    font-size: 18px;
}

.sidebar-offcanvas .sidebar-menu li a.danger {
    color: var(--error);
}

.sidebar-offcanvas .sidebar-menu li a.danger:hover {
    background: var(--error-light);
}

/* ==============================================
   Modals
   ============================================== */
.modal-content {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 100%);
    padding: var(--space-5) var(--space-6);
    border: none;
}

.modal-header .modal-title {
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.modal-body {
    padding: var(--space-6);
}

.modal-body p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.modal-footer {
    padding: var(--space-4) var(--space-6) var(--space-6);
    border: none;
    gap: var(--space-3);
}

/* ==============================================
   Home Page Product Cards (Original Style)
   ============================================== */
.product-box {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.product-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.product-box-img {
    position: relative;
    background: var(--primary-50);
    padding: var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

.product-box-img .img {
    width: 100%;
    height: 140px;
    object-fit: contain;
}

.product-box-img .cart-box {
    position: absolute;
    bottom: 12px;
    right: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.product-box:hover .product-box-img .cart-box {
    opacity: 1;
    transform: translateY(0);
}

.product-box-img .cart-box .cart-bag {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.product-box-img .cart-box .cart-bag:hover {
    background: var(--accent-blue);
    color: white;
}

.product-box-detail {
    padding: var(--space-4);
}

.product-box-detail h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-box-detail h5 {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: var(--space-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-box-detail .bottom-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-2);
}

.product-box-detail .bottom-panel .price h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.product-box-detail .bottom-panel .price h4 .pev-price {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: var(--space-1);
}

/* ==============================================
   Horizontal Product Box (List Style)
   ============================================== */
.horizontal-product-box {
    display: flex;
    gap: var(--space-4);
    background: white;
    border-radius: 16px;
    padding: var(--space-4);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.horizontal-product-box:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.horizontal-product-img {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: var(--primary-50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
}

.horizontal-product-img .img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--space-2);
}

.horizontal-product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.horizontal-product-details h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.horizontal-product-details h5 {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}

/* ==============================================
   Custom Scrollbar
   ============================================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--primary-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-300);
    border-radius: 3px;
}

/* ==============================================
   Responsive Adjustments
   ============================================== */
@media (max-width: 768px) {
    header .header {
        padding: var(--space-3) var(--space-4);
    }
    
    header .logo-text {
        font-size: 18px;
    }
    
    .products-section .section-header h2 {
        font-size: 18px;
    }
    
    .product-header h1 {
        font-size: 20px;
    }
    
    .product-price-section .current-price {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    header .sidebar-btn,
    header .notification-btn {
        width: 38px;
        height: 38px;
    }
    
    .navbar-menu ul li a span {
        font-size: 8px;
    }
    
    .hero-banner .banner-text h1 {
        font-size: 26px;
    }
    
    .hero-banner .banner-text p {
        font-size: 16px;
    }
    
    .order-card {
        flex-direction: column;
    }
    
    .order-image {
        width: 100%;
        height: 120px;
    }
}

/* ==============================================
   Profile Button (Header)
   ============================================== */
.profile-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.profile-btn:hover {
    border-color: white;
    transform: scale(1.05);
}

.profile-btn .profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-btn .profile-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    color: white;
    font-weight: 700;
    font-size: 16px;
}

/* ==============================================
   Add to Cart Full Button
   ============================================== */
.add-to-cart-btn-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    padding: var(--space-4);
    background: var(--accent-gradient);
    color: white;
    border-radius: 16px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: var(--space-4);
}

.add-to-cart-btn-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    color: white;
}

@media (min-width: 992px) {
    .add-to-cart-btn-full {
        margin-bottom: var(--space-4);
    }
}

/* ==============================================
   Utilities
   ============================================== */
.desktop-only {
    display: none;
}

.mobile-only {
    display: block;
}

@media (min-width: 992px) {
    .mobile-only {
        display: none !important;
    }
    
    .desktop-only {
        display: block !important;
    }
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: var(--space-5);
}
