/* ============================================
   HomeAuora E-commerce - Main Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary: #0d9e71;
    --primary-dark: #0a7d5a;
    --primary-light: #e6f7f1;
    --dark: #1a1a2e;
    --dark-secondary: #0f3460;
    --text: #1f2937;
    --text-light: #4b5563;
    --text-muted: #9ca3af;
    --border: #f3f4f6;
    --bg: #ffffff;
    --bg-light: #f9fafb;
    --bg-card: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
    --font: 'Inter', -apple-system, sans-serif;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* Prevent horizontal scroll from animations */
}

/* AOS Mobile/Slow Load Fix: Ensure visibility if AOS fails or takes too long */
[data-aos] {
    transition-property: opacity, transform !important;
}

/* Prevent elements from being stuck invisible if JS fails */
.no-js [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

[data-aos].aos-animate {
    transition-delay: 0s !important;
}

[data-aos] {
    pointer-events: none;
    /* Prevent interaction with invisible elements */
}

[data-aos].aos-animate {
    pointer-events: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
.site-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.site-header.scrolled {
    padding: 8px 0;
    box-shadow: var(--shadow-sm);
}

.site-header.header-dark {
    background: rgba(26, 26, 46, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.site-header.header-dark .nav-links a,
.site-header.header-dark .header-action-btn {
    color: rgba(255, 255, 255, 0.85);
}

.site-header.header-dark .nav-links a:hover,
.site-header.header-dark .nav-links a.active {
    color: #fff;
}

.site-header.header-dark .logo-name,
.site-header.header-dark .logo-tld {
    color: #fff;
}

.site-header.header-dark .logo-icon {
    background: var(--primary);
    color: #fff;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

/* Logo */
.logo,
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.5px;
    color: var(--dark);
}

.logo-tld {
    font-weight: 700;
    font-size: 13px;
    color: var(--dark);
}

/* Nav */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-light);
    position: relative;
    padding: 4px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Header actions */
.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.header-action-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text);
    font-size: 18px;
    transition: var(--transition);
    position: relative;
}

.header-action-btn:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    background: var(--bg-light);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.hero-badge i {
    color: var(--primary);
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: 16px;
}

.hero h1 span {
    display: block;
    color: var(--primary);
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 28px;
    max-width: 460px;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font);
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(13, 158, 113, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 158, 113, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

.btn-buy {
    background: var(--primary);
    color: #fff;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.btn-buy:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 158, 113, 0.3);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 32px;
}

.hero-stat {
    text-align: left;
}

.hero-stat .stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
}

.hero-stat .stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Hero Image */
.hero-images {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-main {
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.hero-image-main img {
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.hero-floating-card {
    position: absolute;
    bottom: 20px;
    right: -20px;
    background: #fff;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.hero-floating-card .check-icon {
    width: 28px;
    height: 28px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* --- Section Titles --- */
.section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.section-link {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-link:hover {
    gap: 8px;
}

/* --- Category Cards --- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.category-card {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.category-card .cat-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 20px;
    color: var(--text-light);
    transition: var(--transition);
}

.category-card:hover .cat-icon {
    background: var(--primary-light);
    color: var(--primary);
}

.category-card .cat-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

/* --- Trending Carousel --- */
.trending-section {
    background: var(--bg-light);
    padding: 40px 0;
}

.trending-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.trending-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.trending-header-text h4 {
    font-size: 14px;
    font-weight: 600;
}

.trending-header-text p {
    font-size: 12px;
    color: var(--text-muted);
}

.trending-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    scrollbar-width: thin;
}

.trending-card {
    min-width: 200px;
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    flex-shrink: 0;
}

.trending-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.trending-card-img {
    height: 120px;
    overflow: hidden;
    background: var(--bg-light);
}

.trending-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trending-card-body {
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.trending-card-body .t-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    max-width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trending-card-body .t-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

.trending-card-body .t-actions {
    display: flex;
    gap: 4px;
}

.trending-card-body .t-actions button {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg);
    cursor: pointer;
    font-size: 11px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.trending-card-body .t-actions button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* --- Product Cards --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.products-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-image .quick-view {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-light);
    opacity: 0;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.product-card:hover .quick-view {
    opacity: 1;
}

.product-card-body {
    padding: 16px;
}

.product-card-brand {
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 4px;
}

.product-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.product-card-rating i {
    color: #f59e0b;
    font-size: 11px;
}

.product-card-rating .rating-num {
    font-weight: 500;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

.product-card-sold {
    font-size: 12px;
    color: var(--text-muted);
}

/* --- Shop Page --- */
.shop-hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-secondary) 100%);
    padding: 80px 0 60px;
    color: #fff;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.shop-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(13, 158, 113, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.shop-hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.shop-hero p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.shop-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    padding: 40px 0;
}

/* Sidebar */
.shop-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
}

.sidebar-title i {
    font-size: 16px;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Slightly more breathing room */
}

.category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
}

.category-list a:hover,
.category-list a.active {
    background: var(--primary);
    color: #fff;
}

.category-list a .cat-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.category-list a:not(.active) .cat-count {
    background: var(--bg-light);
    color: var(--text-muted);
}

.category-list a .cat-icon-sm {
    margin-right: 8px;
    width: 20px;
    text-align: center;
    font-size: 13px;
}

.category-list a .cat-label {
    flex: 1;
}

/* Shop header */
.shop-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.showing-count {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    font-size: 14px;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition);
}

.pagination span.current {
    background: var(--primary);
    color: #fff;
}

.pagination a {
    color: var(--text-light);
    border: 1px solid var(--border);
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .page-info {
    color: var(--text-muted);
    padding: 8px 16px;
    border: 1px solid transparent;
    /* Match link height */
}

/* --- Product Detail --- */
.breadcrumb {
    padding: 16px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    margin: 0 8px;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 20px 0 60px;
}

.product-detail-image {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info {
    padding: 20px 0;
}

.product-categories {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.product-cat-badge {
    background: var(--primary);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-brand-badge {
    background: var(--bg-light);
    color: var(--text-light);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.product-detail-name {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 12px;
}

.product-detail-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.product-detail-rating .stars {
    color: #f59e0b;
}

.product-detail-rating .rating-num {
    font-weight: 600;
    color: var(--dark);
}

.product-detail-rating .reviews-link {
    color: var(--primary);
    cursor: pointer;
}

.product-detail-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.product-detail-desc {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 28px;
}

/* Quantity Selector */
.product-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-selector button {
    width: 40px;
    height: 44px;
    border: none;
    background: var(--bg);
    cursor: pointer;
    font-size: 16px;
    color: var(--text);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-selector button:hover {
    background: var(--bg-light);
}

.qty-selector input {
    width: 50px;
    height: 44px;
    border: none;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font);
    color: var(--text);
    border-left: 1.5px solid var(--border);
    border-right: 1.5px solid var(--border);
}

.btn-add-cart {
    padding: 12px 24px;
    border: 1.5px solid var(--border);
    background: var(--bg);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-family: var(--font);
    color: var(--text);
}

.btn-add-cart:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-wishlist {
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--border);
    background: var(--bg);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 18px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-wishlist:hover {
    border-color: #ef4444;
    color: #ef4444;
}

/* Product badges */
.product-badges {
    display: flex;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.product-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-badge .badge-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.product-badge .badge-text h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
}

.product-badge .badge-text p {
    font-size: 11px;
    color: var(--text-muted);
}

/* Related Products */
.related-products {
    padding: 60px 0;
}

.related-products .section-title {
    margin-bottom: 24px;
}

/* --- Promo Banner --- */
.promo-section {
    padding: 40px 0 60px;
}

.promo-banner {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 300px;
}

.promo-image {
    position: relative;
    overflow: hidden;
}

.promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-image .promo-price-tag {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
}

.promo-content {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-content .promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 16px;
    width: fit-content;
}

.promo-content .promo-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.promo-content h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 12px;
}

.promo-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* View More Button */
.view-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

/* --- About Page --- */
.page-hero {
    background: var(--dark);
    padding: 60px 0;
    color: #fff;
    text-align: center;
}

.page-hero h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
}

.about-content {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.about-content p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 24px;
}

/* --- Contact Page --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 60px 0;
}

.contact-info h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-info p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item p {
    margin-bottom: 0;
}

.contact-form h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font);
    color: var(--text);
    transition: var(--transition);
    background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 158, 113, 0.1);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* --- Cart Page --- */
.cart-layout {
    padding: 40px 0 60px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
}

.cart-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.cart-product-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-product-info img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
}

.cart-product-info .cart-p-name {
    font-weight: 600;
    font-size: 14px;
}

.cart-product-info .cart-p-brand {
    font-size: 12px;
    color: var(--text-muted);
}

.cart-qty {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cart-qty button {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    background: var(--bg);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-qty button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.cart-qty span {
    width: 36px;
    text-align: center;
    font-weight: 600;
}

.cart-price {
    font-weight: 700;
    font-size: 16px;
}

.cart-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.cart-remove:hover {
    color: #ef4444;
}

.cart-summary {
    max-width: 400px;
    margin-left: auto;
    background: var(--bg-light);
    padding: 28px;
    border-radius: var(--radius);
}

.cart-summary h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.cart-summary-row.total {
    font-size: 18px;
    font-weight: 700;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid var(--border);
}

.cart-empty {
    text-align: center;
    padding: 80px 20px;
}

.cart-empty i {
    font-size: 64px;
    color: var(--border);
    margin-bottom: 16px;
}

.cart-empty h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.cart-empty p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* --- Footer --- */
.site-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    background: var(--primary);
}

.footer-logo .logo-name,
.footer-logo .logo-tld {
    color: #fff;
}

.footer-tagline {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-contact-info p {
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact-info i {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-links-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.footer-links-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-col a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.footer-links-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* --- Alert/Toast --- */
.toast {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 14px 24px;
    background: var(--dark);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    display: none;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left: 4px solid var(--primary);
}

.toast.error {
    border-left: 4px solid #ef4444;
}

@keyframes slideIn {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 36px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 28px;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-images {
        display: none;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: static;
    }

    .category-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .promo-banner {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .header-dark .nav-links {
        background: var(--dark);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-detail-name {
        font-size: 24px;
    }

    .product-detail-price {
        font-size: 28px;
    }

    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
/* --- Legal Pages --- */
.legal-content h3 { margin-top: 30px; margin-bottom: 15px; color: var(--dark); font-weight: 700; }
.legal-content p { color: var(--text-light); margin-bottom: 15px; }
.legal-content ul { margin-bottom: 15px; padding-left: 20px; }
.legal-content li { list-style: disc; margin-bottom: 8px; color: var(--text-light); }
.page-hero { background: var(--bg-light); padding: 80px 0; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.page-hero h1 { font-size: 40px; font-weight: 800; color: var(--dark); margin-bottom: 10px; }
.page-hero p { color: var(--text-muted); font-size: 16px; }

/* ============================================
   Search Overlay
   ============================================ */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-inner {
    padding-top: 120px;
}

.search-overlay.active .search-overlay-inner {
    animation: searchSlideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes searchSlideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-overlay-form {
    position: relative;
}

.search-overlay-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 60px;
    padding: 0 24px;
    transition: all 0.3s ease;
}

.search-overlay-input-wrap:focus-within {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 158, 113, 0.15), 0 8px 32px rgba(0,0,0,0.15);
}

.search-overlay-icon {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.5);
    margin-right: 16px;
    flex-shrink: 0;
}

.search-overlay-input-wrap:focus-within .search-overlay-icon {
    color: var(--primary);
}

.search-overlay-input-wrap input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 20px;
    font-family: var(--font);
    color: #fff;
    padding: 20px 0;
    font-weight: 500;
}

.search-overlay-input-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.search-overlay-close {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.search-overlay-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: rotate(90deg);
}

/* Search Suggestions */
.search-suggestions {
    margin-top: 16px;
    max-height: 420px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.search-suggestions-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.search-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.search-suggestion-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.search-suggestion-img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.search-suggestion-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-suggestion-info {
    flex: 1;
    min-width: 0;
}

.search-suggestion-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.search-suggestion-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-suggestion-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}

.search-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    margin-top: 8px;
    border-radius: var(--radius-sm);
    background: rgba(13, 158, 113, 0.15);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(13, 158, 113, 0.2);
}

.search-view-all:hover {
    background: rgba(13, 158, 113, 0.25);
    transform: translateY(-1px);
}

.search-no-results {
    text-align: center;
    padding: 32px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.search-no-results i {
    font-size: 40px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.2);
}

.search-no-results p {
    font-size: 14px;
}

/* Search Toggle Button Active State */
.search-toggle-btn.active {
    color: var(--primary) !important;
    background: var(--primary-light);
}

/* ============================================
   Search Page
   ============================================ */
.search-hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-secondary) 100%);
    padding: 80px 0 50px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.search-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13, 158, 113, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.search-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(15, 52, 96, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.search-hero h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.search-hero p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.search-hero p strong {
    color: var(--primary);
}

/* Search Hero Form */
.search-hero-form {
    display: flex;
    gap: 12px;
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.search-hero-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 0 20px;
    transition: all 0.3s ease;
}

.search-hero-input-wrap:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 158, 113, 0.15);
}

.search-hero-input-wrap i {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.4);
    margin-right: 12px;
}

.search-hero-input-wrap:focus-within i {
    color: var(--primary);
}

.search-hero-input-wrap input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: var(--font);
    color: #fff;
    padding: 14px 0;
    font-weight: 500;
}

.search-hero-input-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-clear-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    transition: all 0.2s ease;
}

.search-clear-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.btn-search-hero {
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 15px;
    white-space: nowrap;
}

/* Search Results Layout */
.search-results-layout {
    padding: 40px 0 60px;
}

.search-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.search-results-header .showing-count i {
    color: var(--primary);
    margin-right: 6px;
}

/* Search Empty State */
.search-empty-state {
    text-align: center;
    padding: 40px 20px 60px;
    max-width: 600px;
    margin: 0 auto;
}

.search-empty-icon {
    width: 90px;
    height: 90px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 24px;
    animation: float 3s ease-in-out infinite;
}

.search-empty-icon.no-results {
    background: #fef3c7;
    color: #f59e0b;
}

.search-empty-state h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.search-empty-state p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 32px;
}

/* Suggestions Box */
.search-suggestions-box {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 20px 28px;
    text-align: left;
    margin-bottom: 28px;
}

.search-suggestions-box h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.search-suggestions-box ul {
    padding-left: 18px;
}

.search-suggestions-box li {
    list-style: disc;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 6px;
}

/* Popular Searches */
.popular-searches,
.browse-categories {
    margin-top: 28px;
}

.popular-searches h4,
.browse-categories h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.popular-searches h4 i {
    color: #f59e0b;
}

.browse-categories h4 i {
    color: var(--primary);
}

.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.popular-tag {
    padding: 8px 18px;
    background: var(--bg-light);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    transition: all 0.25s ease;
    cursor: pointer;
}

.popular-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 158, 113, 0.12);
}

/* Category Chips */
.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.category-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    transition: all 0.25s ease;
}

.category-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 158, 113, 0.12);
}

.category-chip i {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.25s ease;
}

.category-chip:hover i {
    color: var(--primary);
}

.chip-count {
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

.category-chip:hover .chip-count {
    background: rgba(13, 158, 113, 0.15);
    color: var(--primary);
}

/* Highlight matching text */
.search-highlight {
    background: rgba(13, 158, 113, 0.15);
    color: var(--primary);
    padding: 0 2px;
    border-radius: 3px;
    font-weight: 600;
}

/* ============================================
   Search Responsive
   ============================================ */
@media (max-width: 768px) {
    .search-overlay-inner {
        padding-top: 80px;
    }

    .search-overlay-input-wrap input {
        font-size: 16px;
        padding: 16px 0;
    }

    .search-hero h1 {
        font-size: 28px;
    }

    .search-hero-form {
        flex-direction: column;
    }

    .btn-search-hero {
        width: 100%;
    }

    .search-suggestion-item {
        padding: 10px 12px;
    }

    .search-suggestion-img {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .search-hero {
        padding: 60px 0 40px;
    }

    .search-hero h1 {
        font-size: 24px;
    }

    .search-empty-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }

    .search-empty-state h2 {
        font-size: 22px;
    }

    .popular-tags, .category-chips {
        gap: 8px;
    }
}

