/* ========== GOOGLE FONTS IMPORT ========== */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');

/* ========== CÀI ĐẶT CHUNG & BIẾN MÀU ========== */
:root {
    
    /* Teal Color Palette - Modern & Professional */
    --primary-color: #00b4a6;           /* Xanh lơ chính - teal chủ đạo */
    --primary-light: #4dd0c7;           /* Xanh lơ nhạt - hover states */
    --primary-dark: #008a7b;            /* Xanh lơ đậm - active states */
    --accent-color: #00d4c7;            /* Xanh mint - highlights */
    
    /* Text Colors */
    --text-color: #2d3748;              /* Xám đậm thay vì đen thuần */
    --text-light: #718096;              /* Xám nhạt cho phụ đề */
    --text-muted: #a0aec0;              /* Xám rất nhạt */
    
    /* Background Colors */
    --background-primary: #ffffff;       /* Trắng chính */
    --background-light: #f7fafc;        /* Trắng kem nhẹ */
    --background-gray: #edf2f7;         /* Xám rất nhạt */
    --background-teal: #e6fffa;         /* Teal rất nhạt cho sections */
    
    /* Border & Divider Colors */
    --border-color: #e2e8f0;            /* Border nhẹ nhàng */
    --border-light: #f1f5f9;           /* Border rất nhạt */
    --divider-color: #cbd5e0;          /* Đường phân cách */
    
    /* Status Colors */
    --success-color: #38a169;           /* Xanh lá thành công */
    --warning-color: #ed8936;           /* Cam cảnh báo */
    --error-color: #e53e3e;             /* Đỏ lỗi */
    --info-color: #3182ce;              /* Xanh dương thông tin */
    
    /* Font Family */
    --font-primary: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    --font-secondary: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    
    /* Special Colors */
    --price-color: #e53e3e;             /* Đỏ cho giá tiền */
    --discount-color: #38a169;          /* Xanh cho giảm giá */
    --badge-color: #00b4a6;             /* Teal cho badges */
    
    /* Gradient */
    --gradient-primary: linear-gradient(135deg, #00b4a6 0%, #4dd0c7 100%);
    --gradient-light: linear-gradient(135deg, #e6fffa 0%, #ffffff 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 180, 166, 0.1), 0 1px 2px 0 rgba(0, 180, 166, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 180, 166, 0.1), 0 2px 4px -1px rgba(0, 180, 166, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 180, 166, 0.1), 0 4px 6px -2px rgba(0, 180, 166, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 180, 166, 0.1), 0 10px 10px -5px rgba(0, 180, 166, 0.04);
}


* {
    font-family: var(--font-primary);
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background: var(--background-teal);
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== HEADER ========== */

/* -- Header chính (tất cả trên một dòng) -- */
.header-main {
    background: var(--background-primary);
    padding: 15px 0;
    transform: scale(0.95);
    transform-origin: top center;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    width: 105.26%; /* 100% / 0.95 = 105.26% to compensate for scale */
    margin-left: -2.63%; /* Center the expanded width */
    position: relative;
    z-index: 1000;
}

.header-main .container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: center;
    gap: 30px;
    flex-wrap: nowrap;
    justify-content: space-between;
}

/* Brand Section */
.brand-section {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-section .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-section .logo img {
    height: 40px;
}

.brand-name {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    white-space: nowrap;
}

/* Main Navigation */
.main-nav {
    display: flex;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links li {
    display: block;
}

.nav-links li a {
    font-weight: 500;
    color: var(--text-color);
    padding: 12px 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    border-radius: 25px;
    text-decoration: none;
    position: relative;
    border: 2px solid transparent;
    background: transparent;
}

.nav-links li a span {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: var(--text-color) !important;
    font-weight: 500;
    z-index: 2;
    position: relative;
}

.nav-links li a:hover {
    background: transparent;
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-links li a:hover span {
    color: var(--primary-color) !important;
}

/* Active state */
.nav-links li a.active {
    background: transparent;
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
}

.nav-links li a.active span {
    color: var(--primary-color) !important;
}

/* Search Bar - Compact */
.search-bar {
    display: flex;
    flex: 1;
    max-width: 450px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    overflow: hidden;
    margin: 0 15px;
    background: var(--background-primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.filter-btn {
    background-color: transparent;
    border: none;
    color: var(--text-light);
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.filter-btn:hover {
    color: var(--primary-color);
}

.search-bar input {
    border: none;
    padding: 8px 12px;
    flex-grow: 1;
    font-size: 14px;
    min-width: 120px;
    background-color: transparent;
}

.search-bar input:focus {
    outline: none;
}

.search-btn {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: scale(1.05);
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-shrink: 0;
}

.opening-hours {
    display: flex;
    align-items: center;
    font-size: 11px;
    white-space: nowrap;
    margin-right: 30px;
}

.opening-hours i {
    font-size: 14px;
    margin-right: 6px;
    color: var(--primary-color);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-actions a {
    display: flex;
    align-items: center;
    position: relative;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.user-actions i {
    margin-right: 4px;
    color: var(--primary-color);
}

/* Account Menu with Dropdown */
.account-menu {
    position: relative;
}

.account-link {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.account-link i:last-child {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.account-menu:hover .account-link i:last-child {
    transform: rotate(180deg);
}

.account-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

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

.account-dropdown a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.account-dropdown a:hover {
    background: var(--background-teal);
}

.account-dropdown a i {
    margin-right: 10px;
    width: 18px;
    text-align: center;
}


.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.logout-link {
    color: var(--text-color) !important;
}

.logout-link:hover {
    background: var(--background-teal) !important;
}

.cart-count {
    background-color: var(--price-color);
    color: #fff;
    font-size: 11px;
    padding: 1px 5px;
    border-radius: 10px;
    margin-left: 3px;
}

/* Category Bar (Always Visible) */
.category-bar {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.category-menu-horizontal {
    display: flex;
    align-items: center;
}

.category-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background-color: rgba(255,255,255,0.15);
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.category-toggle:hover {
    background-color: rgba(255,255,255,0.25);
    transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-main .container {
        gap: 15px;
    }
    
    .search-bar {
        max-width: 320px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-links li a {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .opening-hours span {
        display: none;
    }
    
    .opening-hours i {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .search-bar {
        max-width: 240px;
        margin: 0 10px;
    }
    
    .search-bar input {
        min-width: 80px;
        font-size: 13px;
    }
    
    .filter-btn,
    .search-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .header-right {
        gap: 8px;
    }
    
    .user-actions a span {
        display: none;
    }
    
    .brand-name {
        font-size: 16px;
    }
}

/* Fix Layout Issues */
.category-list {
    margin-bottom: 0;
}

.main-content-area {
    height: 100%;
}

/* Ensure no extra space below sidebar */
.sidebar {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Remove any default margins */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== PRODUCT DETAIL PAGE ========== */
.product-detail-page {
    padding: 20px 0;
}

/* Thumbnail styles */
.thumbnail {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
    transition: border-color 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

/* Specs table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.specs-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

.specs-table td:first-child {
    font-weight: 600;
    color: var(--text-color);
    width: 30%;
}

.specs-table td:last-child {
    color: var(--text-light);
}

/* Product tags */
.product-tags {
    margin-top: 20px;
}

.product-tags .tag {
    display: inline-block;
    background: #f0f0f0;
    color: var(--text-color);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin: 2px;
}

/* Reviews summary */
.reviews-summary {
    margin-bottom: 20px;
}

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

.rating-number {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.review-count {
    color: var(--text-light);
}

.product-detail-page .container {
    padding: 20px;
}

/*
.product-detail-page .product-info {
    padding: 0px 0px;
}
    */

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 8px;
    color: var(--text-light);
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr 300px;
    gap: 30px;
    margin-bottom: 40px;
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.thumbnail-images {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.thumbnail.active,
.thumbnail:hover {
    border-color: var(--primary-color);
}

.product-info h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-color);
    line-height: 1.3;
    padding: 5px 0;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin-bottom: 0px;
    font-size: 14px;
    color: var(--text-light);
}

.product-price {
    margin-bottom: 0px;
}

.current-price {
    font-size: 28px;
    font-weight: bold;
    color: var(--price-color);
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

/* Removed duplicate qty-btn styles - using main definition below */

#quantity {
    border: none;
    width: 60px;
    text-align: center;
    padding: 10px 5px;
    font-size: 16px;
}

.btn-add-cart,
.btn-buy-now {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-add-cart {
    background: var(--background-primary);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.btn-add-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-add-cart:hover {
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-add-cart:hover::before {
    left: 0;
}

.btn-buy-now {
    background: linear-gradient(135deg, var(--error-color) 0%, #c53030 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.btn-buy-now::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #c53030 0%, #9c2d2d 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-buy-now:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-buy-now:hover::before {
    left: 0;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.feature-item i {
    color: #27ae60;
    font-size: 16px;
}

.seller-info {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.seller-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.seller-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.seller-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-chat,
.btn-view-shop {
    padding: 8px 16px;
    border: 1px solid var(--primary-color);
    background-color: #fff;
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-chat:hover,
.btn-view-shop:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.related-products h4 {
    margin-bottom: 15px;
    font-size: 16px;
}

.related-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.related-item {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.related-item:hover {
    background-color: var(--background-light);
}

.related-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.item-name {
    font-size: 13px;
    color: var(--text-color);
    line-height: 1.3;
}

.item-price {
    font-size: 14px;
    color: var(--price-color);
    font-weight: bold;
}

.btn-view-more {
    width: 100%;
    padding: 8px;
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

/* Removed duplicate - using main definition below */

.tab-headers {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.product-specs {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.product-specs td {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
}

.product-specs td:first-child {
    background-color: var(--background-light);
    font-weight: bold;
    width: 200px;
}

.product-description h4 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-description p {
    line-height: 1.6;
    margin-bottom: 10px;
}

.guide-content h4 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.guide-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.guide-content li {
    margin-bottom: 5px;
    line-height: 1.5;
}

.related-products-section {
    margin-top: 40px;
}

.related-products-section h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--text-color);
}

/* ========== CATEGORY PAGE ========== */
.category-page {
    padding: 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.items-per-page {
    display: flex;
    align-items: center;
    gap: 8px;
}

.items-per-page label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.items-per-page select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.items-per-page select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.category-header h1 {
    font-size: 28px;
    color: var(--text-color);
}

.sort-options select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 15px;
    padding: 12px 0;
    background-color: transparent;
    border-radius: 0;
}

.filter-options {
    display: flex;
    gap: 10px;
}

.filter-tag {
    padding: 8px 16px;
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-tag.active,
.filter-tag:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.view-options {
    display: flex;
    gap: 5px;
}

.view-btn {
    padding: 8px 10px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}


.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn,
.page-num {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background-color: #fff;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.page-btn:hover,
.page-num:hover,
.page-num.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* ========== ABOUT PAGE ========== */
.about-page {
    padding: 40px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.page-header p {
    font-size: 18px;
    color: var(--text-light);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.company-intro {
    margin-bottom: 60px;
}

.intro-text h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.intro-text p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--text-color);
}

.intro-text ul {
    margin: 20px 0;
    padding-left: 20px;
}

.intro-text li {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 8px;
    color: var(--text-color);
}

.intro-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mission-vision {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.mission, .vision, .values {
    text-align: center;
    padding: 30px 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mission .icon, .vision .icon, .values .icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.mission .icon i, .vision .icon i, .values .icon i {
    font-size: 24px;
    color: #fff;
}

.mission h3, .vision h3, .values h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.mission p, .vision p, .values p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
}

.about-page .contact-info {
    margin-bottom: 60px;
}

.about-page .contact-info h2 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color);
}

.about-page .contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.about-page .contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.about-page .contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-page .contact-icon i {
    font-size: 20px;
    color: #fff;
}

.about-page .contact-details h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.about-page .contact-details p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.5;
}

.team-section {
    margin-bottom: 60px;
}

.team-section h2 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-member {
    text-align: center;
    padding: 30px 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.member-photo {
    width: 80px;
    height: 80px;
    background-color: var(--background-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.member-photo i {
    font-size: 30px;
    color: var(--text-light);
}

.team-member h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.team-member .position {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 10px;
}

.team-member .bio {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

.achievements h2 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color);
}

.stats-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 20px 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 200px;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-light);
}

/* Responsive for About Page */
@media (max-width: 768px) {
    .company-intro {
        grid-template-columns: 1fr;
    }
    
    .mission-vision {
        grid-template-columns: 1fr;
    }
    
    .about-page .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-item {
        min-width: auto;
    }
}

/* ========== PRODUCT HOVER EFFECTS ========== */

/* Make brand logos clickable */
.product-brand-logos img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-brand-logos img:hover {
    transform: scale(1.1);
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ========== GLASS MORPHISM EFFECTS ========== */
.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ========== ENHANCED ANIMATIONS ========== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-slide-up {
    animation: slideInUp 0.6s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out;
}

/* ========== GLOW EFFECTS ========== */
.glow-on-hover {
    position: relative;
    transition: all 0.3s ease;
}

.glow-on-hover:hover {
    box-shadow: 0 0 20px rgba(0, 180, 166, 0.4);
}

/* ========== IMPROVED FOCUS STATES ========== */
*:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 180, 166, 0.1);
}

/* ========== MAIN CONTENT ========== */

.nav-links li a {
    padding: 15px 20px;
    display: block;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    font-size: 13px;
    transition: background-color 0.3s ease;
}

.nav-links li a:hover {
    background-color: var(--primary-color);
}

.daily-deals {
    font-size: 13px;
    font-weight: bold;
}


/* ========== CATEGORY MENU ========== */
.category-menu {
    background: var(--background-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: visible;
    margin-bottom: 0;
}

.category-title {
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 12px 12px 0 0;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    position: relative;
    border-bottom: 1px solid var(--border-light);
    overflow: visible;
}

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

.category-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-item > a:hover {
    background: var(--background-light);
    color: var(--primary-color);
}

.category-item > a i:first-child {
    margin-right: 10px;
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.category-item > a i:last-child {
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.category-item:hover > a i:last-child {
    transform: rotate(90deg);
}

/* Submenu */
.category-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    background: var(--background-primary);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    width: 750px;
    padding: 12px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-left: 5px;
}

.category-item:hover .category-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Keep submenu visible when hovering over it */
.category-submenu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Ensure submenu doesn't get clipped */

.category-submenu li {
    border-bottom: none;
    margin-bottom: 2px;
}

.category-submenu li:last-child {
    margin-bottom: 0;
}

.category-submenu a {
    display: block;
    padding: 6px 10px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.category-submenu a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 180, 166, 0.3);
}

/* Force grid layout for submenu items */
.category-submenu li {
    display: block;
    width: 100%;
}

/* Ensure submenu maintains 3-column layout */
.category-submenu {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    padding: 0;
    margin: 0;
}

.main-content .container {
    padding: 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: flex-start;
    margin-top: 0;
    overflow: visible;
}

.sidebar {
    position: sticky;
    top: 20px;
}

.main-content-area {
    flex: 1;
}

.hero-section{
  display: flex;
  gap: 18px;
  align-items: stretch;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 0;
  box-sizing: border-box;
}

/* Banner chính chiếm 65% */
.hero-banner{
  position: relative;
  width: 65%;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  min-height: 280px;
}

/* Cột bên phải chiếm 35% */
.hero-side{
  width: 35%;
  display: flex;
  flex-direction: column;
}

/* QUAN TRỌNG: Container giới hạn chiều cao */
.voucher-container{
  width: 100%;
  height: 100%;
  max-height: 100%; /* KHÔNG vượt quá chiều cao banner */
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

/* Ảnh bị giới hạn trong container */
.voucher-container img{
  width: 100%;
  height: 100%;
  max-height: 100%; /* KHÔNG vượt quá container */
  object-fit: cover; /* Crop ảnh để vừa container */
  display: block;
}

/* Đảm bảo ảnh không bao giờ vượt quá banner */
.hero-side, .voucher-container, .voucher-container img {
  max-height: inherit; /* Kế thừa giới hạn chiều cao */
}

/* Slides và các phần khác giữ nguyên */
.slides{
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.8s ease-in-out;
}

.slides img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.prev, .next{
  position: absolute;
  top: calc(50% - 22px);
  z-index: 30;
  background-color: rgba(0, 0, 0, 0.192);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.175);
  pointer-events: auto;
  will-change: background-color;
  font-size: 16px;
}

.prev { left: 12px; }
.next { right: 12px; }

.prev:hover, .next:hover{
  background-color: rgba(0,0,0,0.1.75);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.hero-banner button:active{
  background-color: rgba(0,0,0,0.9);
}

/* Responsive */
@media (max-width: 880px){
  .hero-section{
    flex-direction: column;
    gap: 12px;
    padding: 8px;
  }
  .hero-banner{ 
    width: 100%; 
    min-height: 220px; 
  }
  .hero-side{ 
    width: 100%; 
    height: 150px; /* Chiều cao cố định trên mobile */
  }
  .voucher-container{
    height: 100%;
  }
  .prev, .next{ 
    width: 36px; 
    height: 36px; 
  }
}
/* Sidebar */
.sidebar {
    width: 300px;
    background: var(--background-primary);
    border-right: 1px solid var(--border-color);
    align-self: flex-start;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: visible;
    position: relative;
    margin-bottom: 0;
    padding-bottom: 0;
}


/* Submenu Hover */

/* Duplicate submenu styles removed - using the main one above */

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.category-submenu li {
    border-bottom: none;
    margin: 0;
}

.category-submenu li a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 0;
    transition: all 0.2s ease;
}

.category-submenu li a:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateX(5px);
}

/* Remove unnecessary border-radius rules as we use individual border-radius now */

/* Legacy submenu support */
.has-submenu .submenu {
    position: absolute;
    top: 0;
    left: 100%;
    background: var(--background-primary);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    width: 750px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px;
    max-height: none;
    overflow: visible;
    margin-left: 5px;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Keep submenu visible when hovering over it */
.submenu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.has-submenu {
    overflow: visible;
}

.submenu li {
    border-bottom: none;
    margin-bottom: 2px;
}

.submenu li a {
    display: block;
    padding: 6px 10px;
    font-size: 12px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.submenu li a:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 180, 166, 0.3);
}

/* Force grid layout for submenu items */
.submenu li {
    display: block;
    width: 100%;
}

/* Ensure submenu maintains 3-column layout */
.submenu {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
}

/* Main Content Area */
.main-content-area {
    flex: 1;
    background: transparent;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    margin-left: 20px;
    margin-top: 20px;
    overflow: visible;
    box-shadow: none;
}

.hero-banner {
    margin: 0;
    width: 100%;
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 12px;
}

/* Promo Section */
.promo-section {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: #fff;
    margin-bottom: 20px;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.company-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.company-badge i {
    color: var(--primary-color);
}

.register-promo {
    background-color: #ff6600;
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.account-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.btn-account, .btn-publish {
    padding: 8px 15px;
    border: 1px solid var(--primary-color);
    background-color: #fff;
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-publish {
    background-color: #ff6600;
    border-color: #ff6600;
    color: #fff;
}

.voucher-promo {
    min-width: 150px;
}

.voucher-card {
    background: linear-gradient(135deg, #ff6600, #ff9900);
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    position: relative;
}

.voucher-discount {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.voucher-text {
    font-size: 11px;
    line-height: 1.2;
}

.read-station {
    font-size: 10px;
    margin-top: 5px;
    opacity: 0.8;
}

.sub-banner-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
    padding: 20px 10px 10px;
    text-align: center;
    font-size: 12px;
}
.overlay .discount {
    background-color: var(--price-color);
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 5px;
}


/* -- Product Showcase -- */
.product-showcase {
    background-color: #fff;
    padding: 30px;
    margin-top: 30px;
    border-radius: 5px;
}

.product-showcase h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}
.product-showcase h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.product-brand-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}
.product-brand-logos img {
    height: 35px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.product-brand-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    padding: 15px 0;
}

/* Responsive grid */
@media (min-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 25px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 22px;
    }
}

@media (max-width: 767px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* ========== PRODUCT ITEM STYLING ========== */
.product-item,
.product-card {
    background: var(--background-primary);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
}

.product-item:hover,
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-light);
}

.product-item:hover .product-title {
    color: var(--primary-color);
}

.product-item:hover .current-price {
    color: var(--accent-color);
    font-weight: bold;
}

/* Product Image */
.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 7/10 !important;
}

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

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

/* Product Overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.quick-view-btn,
.add-to-cart-btn {
    background: var(--background-primary);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
    font-size: 12px;
}

.quick-view-btn:hover,
.add-to-cart-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    opacity: 0;
}

.product-item:hover .wishlist-btn,
.product-card:hover .wishlist-btn {
    opacity: 1;
}

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

.wishlist-btn.active {
    background: var(--primary-color) !important;
    color: white !important;
}

.wishlist-btn.active i {
    color: white !important;
}

.wishlist-btn i {
    font-size: 16px;
    color: var(--text-light);
}

.wishlist-btn.active i {
    color: white;
}

/* Wishlist button in product detail page */
.product-info .wishlist-btn {
    position: static !important;
    opacity: 1 !important;
    margin-left: 15px;
    flex-shrink: 0;
}

/* Discount badge in product detail page */
.product-images .discount-badge {
    background: var(--discount-color) !important;
    color: white !important;
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    z-index: 3 !important;
}

.product-images .new-badge {
    background: var(--success-color) !important;
    color: white !important;
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    z-index: 3 !important;
}

.product-item .product-title,
.product-card .product-title {
    font-size: 13px !important;
    font-weight: 600;
    margin-bottom: 6px !important;
    color: var(--text-color);
    line-height: 1.3;
    height: auto;
    min-height: auto;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.product-item .product-author,
.product-card .product-author {
    font-size: 11px !important;
    color: var(--text-light);
    margin-bottom: 4px !important;
    line-height: 1.2;
}

/* Product Rating - Hidden only for related products */
.related-products-grid .product-rating {
    display: none !important;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-rating .stars {
    display: flex;
    gap: 0px;
}

.product-item .product-rating .stars i,
.product-card .product-rating .stars i {
    color: #ffc107;
    font-size: 12px !important;
    opacity: 0.8;
}

.product-item .rating-text,
.product-card .rating-text {
    font-size: 12px !important;
    color: var(--text-muted);
    opacity: 0.9;
}

/* Product Price */
.product-price {
    display: flex;
    align-items: center;
    gap: 0px;
    flex-wrap: wrap;
    margin-bottom: 0px;
}

.product-item .current-price,
.product-card .current-price {
    font-size: 14px !important;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 0;
}

.product-item .original-price,
.product-card .original-price {
    font-size: 10px !important;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Product info padding for cards */
.product-card .product-info {
    padding: 12px 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
}

/* Badges */
.discount-badge,
.new-badge {
    position: absolute;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 8px;
    font-weight: 600;
    z-index: 2;
    line-height: 1.1;
}

.product-image .discount-badge {
    background: var(--discount-color);
    color: white;
    top: 6px;
    right: 6px;
}

.product-image .new-badge {
    background: var(--primary-color);
    color: white;
    top: 8px;
    left: 8px;
    padding: 4px 6px;
    font-size: 9px;
    border-radius: 4px;
}

/* When both badges exist, adjust positioning */
.product-item:has(.discount-badge):has(.new-badge) .new-badge {
    top: 8px;
    left: 8px;
}

.product-item:has(.discount-badge):has(.new-badge) .discount-badge {
    top: 25px;
    right: 8px;
}

/* ========== SHOP PAGE ========== */

.shop-page {
    padding: 20px 0;
    background: var(--background-teal);
    min-height: 100vh;
}

.shop-info-card {
    background: var(--background-primary);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.shop-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.shop-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.shop-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-details {
    flex: 1;
}

.shop-details h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.shop-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shop-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-rating .stars {
    color: #ffc107;
    font-size: 16px;
}

.shop-rating .rating-text {
    color: var(--text-light);
    font-size: 14px;
}

.shop-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 14px;
}

.shop-actions {
    display: flex;
    gap: 15px;
}

.btn-chat-shop,
.btn-follow-shop {
    padding: 12px 24px;
    border: 1px solid var(--primary-color);
    background: var(--background-primary);
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.btn-chat-shop:hover,
.btn-follow-shop:hover {
    background: var(--primary-color);
    color: white;
}

.btn-follow-shop {
    border-color: var(--border-color);
    color: var(--text-color);
}

.btn-follow-shop:hover {
    border-color: var(--error-color);
    background: var(--error-color);
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--background-primary);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.filter-left {
    color: var(--text-light);
    font-size: 14px;
}

.filter-right {
    display: flex;
    gap: 15px;
}

.filter-right select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--background-primary);
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
}

.filter-right select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.shop-products {
    margin-bottom: 30px;
}

.load-more-section {
    text-align: center;
    margin-bottom: 30px;
}

.btn-load-more {
    padding: 15px 30px;
    border: 1px solid var(--primary-color);
    background: var(--background-primary);
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.btn-load-more:hover {
    background: var(--primary-color);
    color: white;
}

/* Shop Chat Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--background-primary);
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-light);
    padding: 5px;
}

.modal-close:hover {
    color: var(--text-color);
}

.modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-height: 300px;
    border-bottom: 1px solid var(--border-color);
}

.chat-input {
    padding: 20px;
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
}

.chat-input input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.chat-input button {
    padding: 12px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-input button:hover {
    background: var(--primary-dark);
}

/* ========== PRODUCT DETAIL PAGE ========== */
.product-detail-page {
    padding: 10px 0;
    background: var(--background-teal);
    min-height: 100vh;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 320px 1.5fr 320px;
    gap: 30px;
    margin-bottom: 30px;
    align-items: start;
    background: var(--background-teal);
    padding: 30px;
    border-radius: 12px;
    min-height: 400px;
    width: 100%;
    grid-template-rows: auto auto;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    grid-column: 3; /* Stay in third column */
    grid-row: 1 / 3; /* Span both rows */
    align-self: start;
}

.right-column .related-products-section {
    background: var(--background-primary);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.right-column .related-products-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.related-products-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-products-grid .product-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    gap: 12px;
    position: relative;
}

.related-products-grid .product-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* Related products - no hover icons */
.related-products-grid .product-card .card-actions {
    display: none !important;
}

.related-products-grid .product-card .wishlist-btn,
.related-products-grid .product-card .quick-view-btn,
.related-products-grid .product-card .add-to-cart-btn,
.related-products-grid .product-card .product-overlay {
    display: none !important;
}

.related-products-grid .product-image {
    position: relative;
    width: 80px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.related-products-grid .product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.related-products-grid .product-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-products-grid .product-author {
    font-size: 11px;
    color: var(--text-light);
}

.related-products-grid .product-rating {
    display: flex;
    align-items: center;
    gap: 3px;
}

.related-products-grid .product-rating .stars {
    color: #ffc107;
    font-size: 11px;
}

.related-products-grid .product-rating .rating-count {
    font-size: 10px;
    color: var(--text-light);
}

.related-products-grid .product-price {
    display: flex;
    align-items: center;
    gap: 4px;
}

.related-products-grid .current-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--price-color);
}

.related-products-grid .original-price {
    font-size: 11px;
    color: var(--text-light);
    text-decoration: line-through;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablet and smaller screens */
@media (max-width: 1024px) {
    .product-detail-container {
        grid-template-columns: 280px 1.5fr 280px;
        gap: 25px;
        padding: 25px;
    }
    
    /* Tabs width handled by grid-column */
}

/* Large screens - more responsive */
@media (min-width: 1400px) {
    .product-detail-container {
        grid-template-columns: 320px 1.5fr 340px;
        gap: 35px;
        padding: 35px;
    }
    
    /* Tabs width handled by grid-column */
}

/* Mobile screens */
@media (max-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .right-column {
        order: 3;
    }
    
    .product-details-tabs {
        grid-column: 1 / -1; /* Span all columns on mobile */
        order: 4;
    }
    
    .tab-headers {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: left;
        border-bottom: 1px solid var(--border-color);
    }
    
    .tab-btn:last-child {
        border-bottom: none;
    }
    
    .tab-btn.active {
        background: var(--background-light);
        border-left: 3px solid var(--primary-color);
    }
    
    .seller-info {
        padding: 15px;
    }
    
    .seller-logo {
        width: 35px;
        height: 35px;
    }
    
    .seller-details h4 {
        font-size: 13px;
    }
    
    .related-products-grid .product-image {
        width: 70px;
        height: 90px;
    }
    
    .related-products-grid .product-title {
        font-size: 12px;
    }
    
    .related-products-grid .product-author {
        font-size: 10px;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .product-detail-container {
        padding: 15px;
        gap: 15px;
    }
    
    .product-images {
        gap: 10px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-add-cart,
    .btn-buy-now {
        width: 100%;
        padding: 12px 20px;
    }
    
    .seller-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-chat,
    .btn-view-shop {
        width: 100%;
        padding: 8px 16px;
        font-size: 13px;
    }
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image {
    width: 100%;
    aspect-ratio: 3/4 !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.image-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.image-thumbnails img:hover,
.image-thumbnails img.active {
    border-color: var(--primary-color);
}

/* Product Info Styling */
.product-info {
    padding: 12px 15px !important;
    background: var(--background-primary);
    border-radius: 12px;
    /* box-shadow: var(--shadow-sm); */
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info .product-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
    line-height: 1.3;
    height: auto;
    overflow: visible;
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: unset;
}

.product-info .product-author {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 4px !important;
}

.product-info .product-rating {
    margin-bottom: 4px !important;
}

.product-info .product-rating .stars {
    font-size: 16px;
}

.product-info .product-rating .rating-text {
    font-size: 14px;
}

.product-info .product-price {
    margin-bottom: 4px !important;
}

.product-info .current-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--price-color);
}

.product-info .original-price {
    font-size: 16px;
    margin-left: 12px;
    text-decoration: line-through;
    color: var(--text-muted);
}

/* Stock Status */
.stock-status {
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
}

.stock-status.in-stock {
    background: #e6f7f0;
    color: #00875a;
    border: 1px solid rgba(0, 135, 90, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.stock-status.in-stock i {
    color: #00875a;
    font-size: 16px;
}

.stock-status.out-of-stock {
    background: rgba(229, 62, 62, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(229, 62, 62, 0.2);
}

/* Product Actions */
.product-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.quantity-selector {
    display: flex !important;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    visibility: visible !important;
}

.qty-btn {
    background: var(--background-light);
    border: none;
    padding: 12px 12px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    visibility: visible !important;
}

.qty-btn.plus,
.qty-btn.minus {
    height: 40px;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: white;
}

#quantity {
    border: none;
    width: 60px;
    text-align: center;
    padding: 10px 8px;
    font-size: 16px;
    font-weight: 600;
    background: var(--background-primary);
    height: 40px;
}

#quantity::-webkit-outer-spin-button,
#quantity::-webkit-inner-spin-button {
    -webkit-appearance: none; /* Chrome, Safari, Edge */
    margin: 0;
}

.btn-add-cart,
.btn-buy-now {
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    white-space: nowrap;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add-cart {
    background: var(--background-primary);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-add-cart:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-buy-now {
    background: var(--primary-color);
    color: white;
}

.btn-buy-now:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Product Features */
.product-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--background-light);
    border-radius: 4px;
    border-left: 2px solid var(--primary-color);
}

.feature-item i {
    font-size: 14px;
    color: var(--primary-color);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.feature-item div {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4px;
}

.feature-item strong {
    color: var(--text-color);
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
}

.feature-item span {
    color: var(--text-light);
    font-size: 11px;
    white-space: nowrap;
}

/* Seller Info */
.seller-info {
    background: var(--background-primary);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.seller-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.seller-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.seller-details h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 3px;
}

.seller-details h4 a,
.product-meta .brand a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.seller-details h4 a:hover,
.product-meta .brand a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.seller-details span {
    color: var(--success-color);
    font-size: 12px;
    font-weight: 500;
}

.seller-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.btn-chat,
.btn-view-shop {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: var(--background-primary);
    color: var(--text-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    font-size: 12px;
}

.btn-chat:hover,
.btn-view-shop:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Related Products */
.related-products h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.related-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-view-more {
    width: 100%;
    padding: 10px;
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-more:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Product Details Tabs */
.product-details-tabs {
    background: var(--background-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 40px;
    grid-column: 1 / 3; /* Span first two columns (image + product info) */
    grid-row: 2; /* Force to second row */
    margin-top: 20px;
    align-self: start; /* Align to start of grid row */
}

.tab-headers {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn.active,
.tab-btn:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: var(--background-light);
}

.tab-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Related Products Section */
.related-products-section {
    margin-top: 40px;
}

.related-products-section h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-color);
}

/* ========== CATEGORY PAGE - USES SAME STYLING AS INDEX ========== */

/* Responsive Design */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 250px 1fr;
        gap: 20px;
    }
    
    .product-detail-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .seller-info {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .header-main .container {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .content-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar {
        position: static;
        order: 2;
    }
    
    .main-content-area {
        order: 1;
    }
    
    .has-submenu .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--background-light);
        margin-top: 10px;
        border-radius: 8px;
        display: none;
        margin-left: 0;
    }
    
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-add-cart,
    .btn-buy-now {
        width: 100%;
    }
    
    .tab-headers {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .header-main .container {
        padding: 0 15px;
    }
    
    .search-bar {
        max-width: 200px;
    }
    
    .opening-hours span {
        display: none;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .category-title {
        font-size: 14px;
        padding: 12px 15px;
    }
    
    .category-item > a {
        padding: 12px 15px;
        font-size: 14px;
    }
}

.btn-view-all {
    display: block;
    width: fit-content;
    margin: 30px auto 0;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.btn-view-all:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* -- Nút liên hệ cố định -- */
.fixed-contact-buttons {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fixed-contact-buttons a {
    width: 50px;
    height: 50px;
}

/* ========== FOOTER ========== */
footer {
    background-color: #fff;
    padding: 50px 0;
    margin-top: 50px;
    border-top: 3px solid var(--primary-color);
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-col {
    width: 23%;
}

.footer-col.about-us {
    width: 31%;
}

.footer-col h3 {
    font-size: 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-logo {
    height: 40px;
    margin-bottom: 15px;
}

.footer-col p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--text-light);
}

.phone-number {
    font-size: 24px;
    font-weight: bold;
    color: var(--price-color) !important;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-light);
}

.newsletter-form {
    display: flex;
    margin-top: 10px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    justify-content: center;
}

.newsletter-form input {
    border: none;
    padding: 10px;
    flex-grow: 1;
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-title {
    margin-top: 20px;
    font-weight: bold;
}

.social-icons {
    margin-top: 10px;
    display: flex;
    gap: 15px;
}

.social-icons a {
    font-size: 20px;
    color: var(--text-light);
}

/* ========== NOTIFICATIONS ========== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    border-left: 4px solid var(--success-color);
    animation: slideInRight 0.3s ease-out;
}

.notification.notification-error {
    border-left-color: var(--error-color);
}

.notification.notification-info {
    border-left-color: var(--primary-color);
}

.notification i {
    font-size: 20px;
    color: var(--success-color);
}

.notification.notification-error i {
    color: var(--error-color);
}

.notification.notification-info i {
    color: var(--primary-color);
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-light);
    margin-left: auto;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification.fade-out {
    animation: slideOutRight 0.3s ease-out;
}

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

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

/* ========== FILTER MODAL ========== */
.filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.filter-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--background-light);
}

.filter-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-modal-header h3 i {
    color: var(--primary-color);
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: var(--border-color);
    color: var(--text-color);
}

.filter-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.filter-section {
    margin-bottom: 24px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-color);
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-option {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-option:hover {
    border-color: var(--primary-color);
    background: var(--background-teal);
    color: var(--primary-color);
}

.filter-option.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.filter-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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


/* ========== CART DROPDOWN ========== */
.cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    max-height: 400px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    z-index: 1000;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-dropdown.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.cart-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--gradient-light);
}

.cart-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--text-color);
}

.cart-items {
    max-height: 250px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-light);
}

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

.cart-item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-size: 13px;
    margin: 0 0 8px 0;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.quantity-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.cart-item-controls .quantity {
    font-size: 13px;
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

.cart-item-price {
    font-size: 13px;
    font-weight: bold;
    color: var(--price-color);
}

.remove-item-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.remove-item-btn:hover {
    background: var(--error-color);
    color: #fff;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.cart-empty i {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--text-light);
}

.cart-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--background-light);
}

.cart-total {
    text-align: center;
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--text-color);
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background: var(--gradient-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ========== AUTOCOMPLETE DROPDOWN ========== */
.search-container {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid var(--border-light);
}

.autocomplete-item:hover {
    background-color: var(--background-light);
}

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

.autocomplete-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.autocomplete-info {
    flex: 1;
    min-width: 0;
}

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

.autocomplete-author {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 2px;
}

.autocomplete-price {
    font-size: 13px;
    font-weight: bold;
    color: var(--price-color);
}

/* ========== LOADING SPINNER ========== */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: var(--text-light);
    font-size: 14px;
}

.loading-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    font-size: 16px;
    background: var(--background-light);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
}

/* ========== PRODUCT TAGS ========== */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    align-items: center;
}

.product-tags strong {
    margin-right: 8px;
    font-size: 14px;
    color: var(--text-color);
}

.tag {
    background: var(--background-light);
    color: var(--text-color);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    border: 1px solid var(--border-color);
}

/* ========== RATING BARS ========== */
.rating-breakdown {
    margin-top: 20px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.rating-bar span:first-child {
    min-width: 40px;
    font-size: 13px;
    color: var(--text-light);
}

.rating-bar .bar {
    flex: 1;
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar .fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.rating-bar span:last-child {
    min-width: 30px;
    font-size: 13px;
    color: var(--text-light);
    text-align: right;
}

/* ========== NO PRODUCTS MESSAGE ========== */
.no-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-products i {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--border-color);
}

.no-products h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.no-products p {
    font-size: 14px;
    line-height: 1.5;
}

/* ========== ERROR MESSAGE ========== */
.error-message {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
    margin: 40px 0;
}

.error-message h2 {
    font-size: 24px;
    color: var(--error-color);
    margin-bottom: 12px;
}

.error-message p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* ========== AUTHENTICATION PAGE ========== */
.auth-page {
    background: var(--gradient-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: var(--background-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.demo-accounts {
    background: var(--background-light);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.demo-accounts p {
    margin: 5px 0;
    font-size: 13px;
    color: var(--text-color);
}

.demo-accounts p:first-child {
    font-weight: 600;
    margin-bottom: 10px;
}

.auth-tabs {
    display: flex;
    background: var(--background-light);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 30px;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--background-primary);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.input-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    transition: border-color 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--primary-color);
}

.input-icon {
    padding: 12px;
    color: var(--text-light);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border-color);
    background: white;
}

.input-group input {
    flex: 1;
    padding: 12px;
    border: none;
    background: white;
    font-size: 14px;
    outline: none;
}

.input-group input:focus {
    outline: none;
}

.toggle-password {
    padding: 12px;
    background: white;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 14px;
    transition: color 0.3s ease;
    border-left: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: #e53e3e;
    transition: all 0.3s ease;
}

.strength-text {
    font-size: 12px;
    color: #e53e3e;
    font-weight: 500;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    color: var(--text-color);
    cursor: pointer;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    margin-right: 10px;
    margin-top: 2px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    padding: 14px 20px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    background: var(--background-primary);
    padding: 0 15px;
    color: var(--text-light);
    font-size: 14px;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    background: var(--background-primary);
    color: var(--text-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.social-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.social-btn.google:hover {
    border-color: #db4437;
    color: #db4437;
}

.social-btn.facebook:hover {
    border-color: #4267b2;
    color: #4267b2;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.back-home {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.back-home:hover {
    color: var(--primary-color);
}

.terms-link {
    color: var(--primary-color);
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

/* ========== CHECKOUT PAGE ========== */
.checkout-page {
    background: var(--background-teal);
    min-height: 100vh;
}

.checkout-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

.progress-step.active {
    color: var(--primary-color);
}

.progress-step i {
    font-size: 16px;
}

.checkout-main {
    padding: 40px 0;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.checkout-card {
    background: var(--background-primary);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.checkout-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--background-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 180, 166, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.delivery-options,
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.delivery-option,
.payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--background-primary);
}

.delivery-option:hover,
.payment-option:hover {
    border-color: var(--primary-color);
}

.delivery-option.selected,
.payment-option.selected {
    border-color: var(--primary-color);
    background: rgba(0, 180, 166, 0.05);
}

.delivery-option input[type="radio"],
.payment-option input[type="radio"] {
    margin-right: 12px;
    width: auto;
}

.option-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.option-name {
    font-weight: 600;
    color: var(--text-color);
}

.option-price {
    font-weight: 700;
    color: var(--primary-color);
}

.option-desc {
    font-size: 13px;
    color: var(--text-light);
}

.payment-option .option-content {
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.payment-option i {
    font-size: 18px;
    color: var(--primary-color);
    width: 24px;
    text-align: center;
}

.order-summary-card {
    background: var(--background-primary);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 20px;
}

.order-summary-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.order-items {
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.item-image {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.item-details {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
    line-height: 1.3;
}

.item-author {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.item-quantity {
    font-size: 12px;
    color: var(--text-muted);
}

.item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--price-color);
    align-self: flex-start;
}

.order-totals {
    border-top: 2px solid var(--border-color);
    padding-top: 20px;
    margin-bottom: 25px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.total-row:last-child {
    margin-bottom: 0;
}

.total-final {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.checkout-btn {
    width: 100%;
    padding: 16px 20px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.checkout-btn:active {
    transform: translateY(0);
}

.security-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-light);
}

.security-info i {
    color: var(--success-color);
}

/* ========== ORDER SUCCESS PAGE ========== */
.order-success-page {
    background: var(--background-teal);
    min-height: 100vh;
}

.order-success-main {
    padding: 40px 0;
}

.success-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.success-icon {
    margin-bottom: 30px;
}

.success-icon i {
    font-size: 80px;
    color: var(--success-color);
}

.success-content h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.success-message {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

.order-info-card {
    background: var(--background-primary);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
    text-align: left;
}

.order-info-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.order-summary {
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row .label {
    font-weight: 600;
    color: var(--text-color);
}

.summary-row .value {
    color: var(--text-light);
}

.order-id {
    font-weight: 700;
    color: var(--primary-color);
}

.status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-shipped {
    background: #d1fae5;
    color: #065f46;
}

.status-delivered {
    background: #dcfce7;
    color: #166534;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.delivery-info {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--background-light);
    border-radius: 8px;
}

.delivery-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
}

.address-details p {
    margin-bottom: 5px;
    color: var(--text-light);
}

.order-items-section {
    margin-bottom: 25px;
}

.order-items-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item-detail {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--background-light);
    border-radius: 8px;
}

.order-item-detail .item-image {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.item-info {
    flex: 1;
    text-align: left;
}

.item-info .item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.item-info .item-author {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.item-meta {
    display: flex;
    gap: 15px;
    align-items: center;
}

.item-price {
    font-size: 12px;
    color: var(--text-light);
}

.item-quantity {
    font-size: 12px;
    color: var(--text-muted);
}

.item-total {
    font-size: 14px;
    font-weight: 700;
    color: var(--price-color);
}

.order-totals {
    border-top: 2px solid var(--border-color);
    padding-top: 20px;
}

.next-steps {
    margin-bottom: 40px;
}

.next-steps h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 30px;
}

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

.step-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--background-primary);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.step-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-icon i {
    font-size: 20px;
    color: white;
}

.step-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.step-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    flex: 1;
}

.btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--background-primary);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ========== PROFILE PAGE ========== */
.profile-page {
    background: var(--background-teal);
    min-height: 100vh;
}

.profile-main {
    padding: 40px 0;
}

.profile-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
}

.profile-sidebar {
    position: sticky;
    top: 20px;
}

.profile-card {
    background: var(--background-primary);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    margin-bottom: 20px;
}

.profile-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.profile-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--border-color);
}

.avatar-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.avatar-edit-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.profile-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}

.profile-card p {
    color: var(--text-light);
    margin-bottom: 5px;
    font-size: 14px;
}

.profile-nav {
    background: var(--background-primary);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.nav-item:hover {
    background: var(--background-light);
    color: var(--text-color);
}

.nav-item.active {
    background: var(--primary-color);
    color: white;
}

.nav-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.profile-content {
    background: var(--background-primary);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    min-height: 600px;
}

.profile-section {
    display: none;
}

.profile-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

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

.edit-btn {
    padding: 10px 20px;
    background: var(--background-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.edit-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.profile-form {
    max-width: 600px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--background-light);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 180, 166, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 64px;
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 25px;
}

.order-card {
    background: var(--background-light);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.order-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.order-date {
    font-size: 14px;
    color: var(--text-light);
}

.order-items {
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.order-item .item-image {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.order-item .item-details {
    flex: 1;
}

.order-item .item-details h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.order-item .item-details p {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.item-quantity {
    font-size: 12px;
    color: var(--text-muted);
}

.order-item .item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--price-color);
    align-self: flex-start;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.order-total {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.total-price {
    color: var(--price-color);
}

.order-actions {
    display: flex;
    gap: 10px;
}

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.review-card {
    background: var(--background-light);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.review-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.review-book-image {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.review-book-info {
    flex: 1;
}

.review-book-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.review-book-info p {
    font-size: 14px;
    color: var(--text-light);
}

.review-rating {
    display: flex;
    gap: 2px;
}

.review-content p {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-date {
    font-size: 12px;
    color: var(--text-muted);
}

.review-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: var(--background-primary);
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: var(--primary-color);
    color: white;
}

.settings-content {
    max-width: 600px;
}

.setting-group {
    margin-bottom: 30px;
}

.setting-group h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.setting-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.setting-info p {
    font-size: 14px;
    color: var(--text-light);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.btn-danger {
    background: #e53e3e;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #c53030;
    transform: translateY(-2px);
}

/* ========== REVIEWS PAGE ========== */
.reviews-page {
    background: var(--background-teal);
    min-height: 100vh;
}

.reviews-main {
    padding: 40px 0;
}

.reviews-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
    align-items: start;
}

.product-info-section {
    position: sticky;
    top: 20px;
}

.product-card-large {
    background: var(--background-primary);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.product-image-large {
    width: 200px;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.product-details h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-details p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.rating-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.rating-score {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.rating-count {
    font-size: 14px;
    color: var(--text-light);
}

.rating-breakdown {
    text-align: left;
}

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

.rating-label {
    font-size: 12px;
    color: var(--text-light);
    width: 40px;
}

.rating-progress {
    flex: 1;
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.reviews-section {
    background: var(--background-primary);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.reviews-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
}

.reviews-filters {
    display: flex;
    gap: 15px;
}

.reviews-filters select {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: var(--background-primary);
    color: var(--text-color);
    font-size: 14px;
}

.write-review-section {
    margin-bottom: 40px;
    padding: 25px;
    background: var(--background-light);
    border-radius: 8px;
}

.write-review-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
}

.review-form .form-group {
    margin-bottom: 20px;
}

.review-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.rating-input {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input label {
    cursor: pointer;
    font-size: 24px;
    color: var(--border-color);
    transition: color 0.3s ease;
    margin: 0;
}

.rating-input label:hover,
.rating-input label.active {
    color: #ffc107;
}

.rating-input input[type="radio"]:checked + label {
    color: #ffc107;
}

.review-form input,
.review-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--background-primary);
    transition: all 0.3s ease;
}

.review-form input:focus,
.review-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 180, 166, 0.1);
}

.review-form textarea {
    resize: vertical;
    min-height: 120px;
}

.login-prompt {
    text-align: center;
    padding: 40px 20px;
}

.login-prompt h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.login-prompt p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    background: var(--background-light);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.reviewer-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.review-date {
    font-size: 12px;
    color: var(--text-light);
}

.review-rating {
    display: flex;
    gap: 2px;
}

.review-content {
    margin-bottom: 15px;
}

.review-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.review-text {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
}

.review-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.review-actions .btn-icon {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-light);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-actions .btn-icon:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.review-actions .btn-icon i {
    font-size: 14px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 64px;
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 16px;
}

/* ========== ORDERS PAGE ========== */
.orders-page {
    background: var(--background-teal);
    min-height: 100vh;
}

.orders-main {
    padding: 40px 0;
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.orders-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
}

.orders-filters {
    display: flex;
    gap: 15px;
}

.orders-filters select {
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-primary);
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
}

.orders-filters select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.orders-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

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

.stat-card {
    background: var(--background-primary);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.stat-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 4px;
}

.stat-info p {
    font-size: 14px;
    color: var(--text-light);
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    background: var(--background-primary);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.order-info {
    flex: 1;
}

.order-id h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 5px;
}

.order-date {
    font-size: 14px;
    color: var(--text-light);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-shipped {
    background: #d1fae5;
    color: #065f46;
}

.status-delivered {
    background: #dcfce7;
    color: #166534;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.order-total {
    text-align: right;
}

.order-total span:first-child {
    font-size: 14px;
    color: var(--text-light);
    margin-right: 8px;
}

.total-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--price-color);
}

.order-items {
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.order-item .item-image {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.order-item .item-details {
    flex: 1;
}

.order-item .item-details h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.order-item .item-details p {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.order-item .item-quantity {
    font-size: 12px;
    color: var(--text-muted);
}

.order-item .item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--price-color);
    align-self: flex-start;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.order-details {
    flex: 1;
}

.detail-item {
    display: flex;
    margin-bottom: 8px;
    font-size: 14px;
}

.detail-item .label {
    color: var(--text-light);
    margin-right: 8px;
    min-width: 120px;
}

.detail-item .value {
    color: var(--text-color);
    font-weight: 500;
}

.order-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* ========== RESPONSIVE IMPROVEMENTS ========== */
@media (max-width: 768px) {
    .cart-dropdown {
        width: 300px;
        right: -50px;
    }
    
    .autocomplete-dropdown {
        font-size: 13px;
    }
    
    .autocomplete-item {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .autocomplete-thumb {
        width: 35px;
        height: 35px;
    }
    
    .notification {
        min-width: 250px;
        right: 10px;
        top: 10px;
    }
    
    .auth-card {
        padding: 30px 20px;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .cart-dropdown {
        width: 280px;
        right: -80px;
    }
    
    .notification {
        min-width: 200px;
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .auth-page {
        padding: 10px;
    }
    
    .auth-card {
        padding: 25px 15px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    
    .profile-layout {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        position: static;
        margin-bottom: 20px;
    }
    
    .reviews-layout {
        grid-template-columns: 1fr;
    }
    
    .product-info-section {
        position: static;
        margin-bottom: 20px;
    }
    
    .orders-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .orders-filters {
        flex-direction: column;
        width: 100%;
    }
    
    .orders-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .order-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .order-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .orders-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .order-card {
        padding: 15px;
    }
    
    .order-item {
        flex-direction: column;
        text-align: center;
    }
    
    .order-item .item-image {
        width: 100px;
        height: 140px;
        margin: 0 auto 10px;
    }
    
    .detail-item {
        flex-direction: column;
        gap: 4px;
    }
    
    .detail-item .label {
        min-width: auto;
        font-weight: 600;
    }
    
    .reviews-filters {
        flex-direction: column;
    }
    
    .reviews-filters select {
        width: 100%;
    }
    
    .rating-input {
        gap: 3px;
    }
    
    .rating-input label {
        font-size: 20px;
    }
    
    .review-actions {
        flex-wrap: wrap;
    }
    
    .review-actions .btn-icon {
        flex: 1;
        min-width: 80px;
    }
}

/* ========== LOADING ANIMATIONS ========== */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 16px;
}

/* ========== SMOOTH TRANSITIONS ========== */
* {
    transition: all 0.3s ease;
}

.btn, button {
    transition: all 0.3s ease;
}

.btn:hover, button:hover:not(.qty-btn) {
    transform: translateY(-2px);
}

.btn:active, button:active {
    transform: translateY(0);
}

/* ========== FOCUS STATES ========== */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 180, 166, 0.1);
}

input:disabled, textarea:disabled, select:disabled {
    background: var(--background-light);
    color: var(--text-light);
}

input:read-only, textarea:read-only, select:read-only {
    background-color: var(--background-primary);
    color: var(--text-color);
    cursor: default;
}

/* ========== SCROLL BEHAVIOR ========== */
html {
    scroll-behavior: smooth;
}

/* ========== SELECTION STYLES ========== */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* ========== CATEGORY PAGE SIMPLE STYLES ========== */
/* Category page uses same styles as homepage - no special overrides needed */

/* ========== ADMIN DASHBOARD STYLES ========== */
.admin-body {
    background-color: var(--background-teal);
    margin: 0;
    padding: 0;
}

.admin-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.admin-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-logo img {
    width: 40px;
    height: 40px;
}

.admin-logo span {
    font-size: 1.5rem;
    font-weight: 600;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-home {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-home:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
}

.admin-container {
    display: flex;
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.admin-sidebar {
    width: 250px;
    background: white;
    box-shadow: var(--shadow-md);
    position: fixed;
    left: 0;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.admin-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-nav-item {
    border-bottom: 1px solid var(--border-light);
}

.admin-nav-item a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.admin-nav-item:hover a,
.admin-nav-item.active a {
    background: var(--background-teal);
    color: var(--primary-color);
}

.admin-nav-item i {
    width: 20px;
    text-align: center;
}

.admin-main {
    flex: 1;
    margin-left: 250px;
    padding: 2rem;
    background: var(--background-teal);
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-section-header h1 {
    color: var(--text-color);
    font-size: 2rem;
    font-weight: 600;
}

.admin-section-header p {
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.stat-content p {
    color: var(--text-light);
    margin: 0.25rem 0 0 0;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
}

.chart-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Recent Section */
.recent-section {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
}

.recent-section h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Admin Filters */
.admin-filters {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-input,
.filter-select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    min-width: 200px;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 180, 166, 0.1);
}

/* Table Container */
.table-container {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: var(--background-gray);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-color);
}

.admin-table tr:hover {
    background: var(--background-light);
}

.table-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-shipped {
    background: #d1fae5;
    color: #065f46;
}

.status-delivered {
    background: #d1fae5;
    color: #065f46;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-inactive {
    background: #fee2e2;
    color: #991b1b;
}

/* Admin Order Details Modal */
.order-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.order-info-section,
.customer-info-section {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.order-info-section h3,
.customer-info-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

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

.info-item label {
    font-weight: 500;
    color: var(--text-light);
    min-width: 100px;
}

.info-item span {
    color: var(--text-color);
    font-weight: 500;
}

.order-items-section {
    margin-bottom: 2rem;
}

.order-items-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.order-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-light);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.order-item:last-child {
    margin-bottom: 0;
}

.item-image {
    width: 80px;
    height: 100px;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

.item-details {
    flex: 1;
}

.item-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.item-details p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.item-total {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--price-color);
}

.status-update-section {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.status-update-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.header-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.stat-item {
    font-size: 0.9rem;
    color: var(--text-light);
}

.stat-item strong {
    color: var(--text-color);
    font-weight: 600;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--background-gray);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-danger {
    background: var(--error-color);
    color: white;
}

.btn-danger:hover {
    background: #c53030;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 1rem;
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: var(--text-color);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--background-gray);
    color: var(--text-color);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 180, 166, 0.1);
}

/* Revenue Stats */
.revenue-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.revenue-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.revenue-card h3 {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.revenue-card p {
    color: var(--text-color);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

/* Notifications */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 3000;
    animation: notificationSlideIn 0.3s ease;
    max-width: 400px;
}

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

.notification-success {
    border-left: 4px solid var(--success-color);
}

.notification-error {
    border-left: 4px solid var(--error-color);
}

.notification-info {
    border-left: 4px solid var(--info-color);
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-close:hover {
    background: var(--background-gray);
    color: var(--text-color);
}

.fade-out {
    animation: notificationFadeOut 0.3s ease forwards;
}

@keyframes notificationFadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Responsive Admin */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-input,
    .filter-select {
        min-width: auto;
    }
    
    .admin-table {
        font-size: 0.8rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }
}

/* ========== PROFILE PAGE STYLES ========== */
.profile-page {
    padding: 2rem 0;
}

.profile-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.profile-sidebar {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    padding: 0;
    height: fit-content;
}

.profile-info {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
}

.profile-info h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.profile-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.profile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-nav-item {
    border-bottom: 1px solid var(--border-light);
}

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

.profile-nav-item a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.profile-nav-item:hover a,
.profile-nav-item.active a {
    background: var(--background-teal);
    color: var(--primary-color);
}

.profile-nav-item i {
    width: 20px;
    text-align: center;
}

.profile-main {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    padding: 2rem;
}

.profile-section {
    display: none;
}

.profile-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.section-header h2 {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.profile-form {
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 180, 166, 0.1);
}

.form-group input[readonly] {
    background: var(--background-light);
    color: var(--text-light);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.password-section {
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
}

.password-section h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Orders List */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-item {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

.order-item:hover {
    box-shadow: var(--shadow-sm);
}

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

.order-info h4 {
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.order-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

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

.order-product {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.order-product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.order-product-info h5 {
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.order-product-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

.order-actions {
    display: flex;
    gap: 0.5rem;
}

/* Wishlist Grid */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.wishlist-item {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

.wishlist-item:hover {
    box-shadow: var(--shadow-sm);
}

.wishlist-image {
    position: relative;
    margin-bottom: 1rem;
}

.wishlist-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.remove-wishlist-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--error-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-wishlist-btn:hover {
    background: #c53030;
}

/* Remove from wishlist button on product card */
.remove-from-wishlist-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--error-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    z-index: 2;
}

.remove-from-wishlist-btn:hover {
    background: #c53030;
    transform: scale(1.1);
}

/* Wishlist specific styling */
.wishlist-card .product-info {
    padding-bottom: 1rem;
}

/* Ẩn overlay cho wishlist cards */
.wishlist-card .product-overlay {
    display: none !important;
}

/* Đơn giản hóa wishlist card - bỏ hover effects */
.wishlist-card:hover {
    transform: none;
    box-shadow: none;
}

.wishlist-add-to-cart-btn {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.wishlist-add-to-cart-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.wishlist-add-to-cart-btn i {
    margin-right: 0.5rem;
}

.wishlist-info h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.wishlist-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.wishlist-price {
    color: var(--price-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Chat Container */
.chat-container {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    height: 500px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.user-message .message-avatar {
    background: var(--text-light);
}

.message-content {
    max-width: 70%;
    background: var(--background-light);
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    position: relative;
}

.user-message .message-content {
    background: var(--primary-color);
    color: white;
}

.message-content p {
    margin: 0;
    line-height: 1.4;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.25rem;
    display: block;
}

.chat-input {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.5rem;
}

.chat-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

.chat-input input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.chat-input button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-input button:hover {
    background: var(--primary-dark);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* Responsive Profile */
@media (max-width: 768px) {
    .profile-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .profile-sidebar {
        order: 2;
    }
    
    .profile-main {
        order: 1;
        padding: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .order-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .order-actions {
        justify-content: center;
    }
    
    .wishlist-grid {
        grid-template-columns: 1fr;
    }
    
    .chat-container {
        height: 400px;
    }
    
    .message-content {
        max-width: 85%;
    }
}

/* Responsive Auth */
@media (max-width: 480px) {
    .input-icon {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .input-group input {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .toggle-password {
        padding: 10px 12px;
        font-size: 12px;
    }
}

/* Duplicate CSS removed - using main definition above */

.btn-add-cart, .btn-buy-now {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-add-cart {
    background: var(--background-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

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

.btn-buy-now {
    background: var(--primary-color);
    color: white;
}

.btn-buy-now:hover {
    background: var(--primary-dark);
}

/* Chat Modal */
.chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.chat-modal-content {
    background: white;
    border-radius: 12px;
    width: 400px;
    max-width: 90vw;
    height: 500px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-color);
    color: white;
    border-radius: 12px 12px 0 0;
}

.chat-header h3 {
    margin: 0;
    font-size: 16px;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: var(--background-light);
}

.message {
    margin-bottom: 15px;
    display: flex;
}

.message-content {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    position: relative;
}

.user-message {
    justify-content: flex-end;
}

.user-message .message-content {
    background: var(--primary-color);
    color: white;
    border-radius: 18px 18px 4px 18px;
}

.bot-message {
    justify-content: flex-start;
}

.bot-message .message-content {
    background: white;
    color: var(--text-color);
    border-radius: 18px 18px 18px 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.message-time {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 5px;
    display: block;
}

.chat-input {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    background: white;
    border-radius: 0 0 12px 12px;
}

.chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

.chat-input input:focus {
    border-color: var(--primary-color);
}

.chat-input button {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.chat-input button:hover {
    background: var(--primary-dark);
}

/* Floating Chatbot */
.floating-chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.chatbot-toggle {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 180, 166, 0.3);
    transition: all 0.3s ease;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 180, 166, 0.4);
}

.chatbot-toggle i {
    color: white;
    font-size: 20px;
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px; /* Fixed height */
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box; /* Include padding and border in height */
}

.chatbot-header {
    padding: 15px 20px;
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0; /* Prevent shrinking */
    height: 60px; /* Fixed height */
    box-sizing: border-box;
}

.chatbot-header h4 {
    margin: 0;
    font-size: 16px;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: var(--background-light);
    height: 270px; /* Slightly reduced height */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--background-light);
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: var(--background-light);
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Chatbot Message Styles - High Priority */
#chatbotMessages .message {
    margin-bottom: 15px !important;
    display: flex !important;
    flex-direction: row !important;
}

#chatbotMessages .message-content {
    max-width: 80% !important;
    padding: 10px 15px !important;
    border-radius: 18px !important;
    position: relative !important;
}

#chatbotMessages .user-message {
    justify-content: flex-end !important;
    flex-direction: row !important;
}

#chatbotMessages .user-message .message-content {
    background: var(--primary-color) !important;
    color: white !important;
    border-radius: 18px 18px 4px 18px !important;
}

#chatbotMessages .bot-message {
    justify-content: flex-start !important;
    flex-direction: row !important;
}

#chatbotMessages .bot-message .message-content {
    background: white !important;
    color: var(--text-color) !important;
    border-radius: 18px 18px 18px 4px !important;
    border: 1px solid var(--border-color) !important;
}

#chatbotMessages .message-time {
    font-size: 11px !important;
    margin-top: 5px !important;
    text-align: right !important;
}

#chatbotMessages .user-message .message-time {
    color: rgba(255, 255, 255, 0.8) !important;
    text-align: right !important;
}

#chatbotMessages .bot-message .message-time {
    color: #666 !important;
    text-align: left !important;
}

.chatbot-input {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    background: white;
    flex-shrink: 0; /* Prevent shrinking */
    height: 60px; /* Fixed height */
    box-sizing: border-box;
}

.chatbot-input input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    outline: none;
    font-size: 13px;
}

.chatbot-input input:focus {
    border-color: var(--primary-color);
}

.chatbot-input button {
    padding: 8px 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.chatbot-input button:hover {
    background: var(--primary-dark);
}

.chatbot-actions {
    padding: 12px 15px; /* Fixed padding */
    border-top: 1px solid var(--border-color);
    background: var(--background-light);
    flex-shrink: 0; /* Prevent shrinking */
    height: 50px; /* Fixed height */
    box-sizing: border-box;
}

.btn-customer-service {
    width: 100%;
    padding: 10px 12px; /* Increased padding */
    background: var(--background-primary);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0; /* Remove any margin */
}

.btn-customer-service:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-customer-service i {
    font-size: 12px;
}

/* Related Products */
.related-products-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.related-products-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

.related-products-section .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.related-products-section .product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* No hover effects for related products */
.related-products-section .product-card .wishlist-btn,
.related-products-section .product-card .quick-view-btn,
.related-products-section .product-card .add-to-cart-btn,
.related-products-section .product-card .product-overlay {
    display: none !important;
}

.related-products-section .product-image {
    position: relative;
    aspect-ratio: 7/10 !important;
    overflow: hidden;
}

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

/* No image scale on hover for related products */

.related-products-section .product-info {
    padding: 12px 15px !important;
}

.related-products-section .product-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 5px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-products-section .product-author {
    font-size: 12px;
    color: var(--text-light);
    margin: 0 0 0px 0;
}

.related-products-section .product-rating {
    display: flex;
    align-items: center;
    gap: 0px;
    margin-bottom: 0px;
}

.related-products-section .rating-count {
    font-size: 11px;
    color: var(--text-light);
}

.related-products-section .product-price {
    display: flex;
    align-items: center;
    gap: 0px;
}

.related-products-section .current-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
}

.related-products-section .original-price {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: line-through;
}

/* Info Pages - Simple Style */
.info-page {
    padding: 40px 0;
    min-height: 70vh;
}

.info-content {
    background: white;
    padding: 40px;
    margin-top: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.info-content h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.info-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 30px 0 15px 0;
}

.info-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 20px 0 10px 0;
}

.info-content h4 {
    font-size: 16px;
    font-weight: 700; /* Bold */
    color: #333; /* Black color */
    margin: 15px 0 8px 20px; /* Indented sub-items */
}

.info-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 15px;
}

.info-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.info-content li {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 8px;
}

.contact-info {
    background: var(--primary-color);
    color: white;
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
}

.contact-info h3 {
    color: white;
    margin-top: 0;
    font-size: 20px;
}

.contact-info p,
.contact-info li {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Product Actions */
@media (max-width: 768px) {
    .product-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .chatbot-window {
        width: 300px;
        height: 420px; /* Adjusted height for mobile */
    }
    
    .chatbot-messages {
        height: 240px; /* Adjusted height for mobile */
    }
    
    .chat-modal-content {
        width: 350px;
        height: 400px;
    }
    
    .info-content {
        padding: 20px;
    }
    
    .info-content h1 {
        font-size: 24px;
    }
    
    .info-content h2 {
        font-size: 20px;
    }
    
    .info-content h3 {
        font-size: 16px;
    }
}

/* ========== SPECIFIC TEXTAREA STYLING ========== */
#address,
#orderNotes {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--background-primary);
    color: var(--text-color);
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
    transition: all 0.3s ease;
}

#address:focus,
#orderNotes:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 180, 166, 0.1);
}

#address::placeholder,
#orderNotes::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

/* ========== CATEGORY PAGE STYLES ========== */

/* Filter Bar - Removed duplicate, kept first one */

.filter-options {
    display: flex;
    gap: 10px;
}

.filter-tag {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-tag.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.view-options {
    display: flex;
    gap: 5px;
}

.view-btn {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.view-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.view-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Product Grid View */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.product-grid.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.product-grid .product-price {
    margin-bottom: 0px;
}

/* Fix icon distortion */
.view-btn i {
    font-size: 16px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-tag,
.view-btn {
    font-family: inherit;
    font-size: 14px;
    line-height: 1;
    text-align: center;
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .filter-options {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .view-options {
        justify-content: center;
    }
    
}

/* ========== FEATURED PRODUCTS & NEW RELEASES ========== */
.featured-products .product-grid,
.new-releases .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
    align-items: stretch;
}

/* Featured and new releases product grids have dynamic height */