@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,700;0,800;1,700&display=swap');

:root {
    --bg-color: #0a0a0a;
    --surface-color: #161616;
    --primary-color: #ffbe33;
    --primary-hover: #e6ab2e;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: #2a2a2a;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-bg: rgba(10, 10, 10, 0.85);
    --header-border: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-hover: rgba(255, 255, 255, 0.1);
    --input-text: #ffffff;
    --footer-bg: #050505;
    --footer-border: rgba(255, 255, 255, 0.05);
    --icon-btn-bg: rgba(255, 255, 255, 0.1);
    --icon-btn-color: #ffffff;
    --shipping-bg: rgba(255, 255, 255, 0.03);
    --shipping-border: rgba(255, 255, 255, 0.05);
    --history-icon-bg: rgba(255, 255, 255, 0.03);
    --btn-dark-bg: #1a1a1a;
    --btn-dark-bg-hover: #2a2a2a;
    --btn-dark-color: #ffffff;
    --cart-border: rgba(255, 255, 255, 0.03);
    --cart-summary-border: rgba(255, 255, 255, 0.05);
    --product-card-border: rgba(255, 255, 255, 0.03);
    --info-card-border: rgba(255, 255, 255, 0.03);
    --provision-card-border: rgba(255, 255, 255, 0.03);
    --cta-card-bg: rgba(255, 255, 255, 0.02);
    --qty-hover-color: #ffffff;
    --qty-hover-bg: rgba(255, 255, 255, 0.1);
    --auth-overlay: radial-gradient(circle, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.95) 100%);
    --auth-card-bg: rgba(22, 22, 22, 0.8);
    --auth-card-border: rgba(255, 255, 255, 0.05);
    --map-bg: #111;
    --hero-overlay: linear-gradient(160deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.75) 50%, rgba(10,10,10,0.45) 100%);
    --category-overlay: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    --category-after-opacity: 0;    --text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    --drawer-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
    --card-border-width: 1px;
}

body.light-mode {
    --bg-color: #f8f9fa;
    --surface-color: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #6c757d;
    --border-color: #ced4da;
    --header-bg: rgba(255, 255, 255, 0.92);
    --header-border: rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(0, 0, 0, 0.04);
    --glass-bg-hover: rgba(0, 0, 0, 0.07);
    --input-text: #1a1a1a;
    --footer-bg: #f0f0f0;
    --footer-border: rgba(0, 0, 0, 0.08);
    --icon-btn-bg: rgba(0, 0, 0, 0.07);
    --icon-btn-color: #1a1a1a;
    --shipping-bg: rgba(0, 0, 0, 0.03);
    --shipping-border: rgba(0, 0, 0, 0.06);
    --history-icon-bg: rgba(0, 0, 0, 0.04);
    --btn-dark-bg: #1a1a1a;
    --btn-dark-bg-hover: #333333;
    --btn-dark-color: #ffffff;
    --cart-border: rgba(0, 0, 0, 0.15);
    --cart-summary-border: rgba(0, 0, 0, 0.15);
    --product-card-border: rgba(0, 0, 0, 0.15);
    --info-card-border: rgba(0, 0, 0, 0.15);
    --provision-card-border: rgba(0, 0, 0, 0.15);
    --cta-card-bg: rgba(0, 0, 0, 0.02);
    --qty-hover-color: #1a1a1a;
    --qty-hover-bg: rgba(0, 0, 0, 0.08);
    --auth-overlay: radial-gradient(circle, rgba(240,240,240,0.85) 0%, rgba(248,249,250,0.97) 100%);
    --auth-card-bg: rgba(255, 255, 255, 0.95);
    --auth-card-border: rgba(0, 0, 0, 0.08);
    --map-bg: #e8e8e8;
    --hero-overlay: linear-gradient(160deg, rgba(10,10,10,0.88) 0%, rgba(10,10,10,0.65) 50%, rgba(10,10,10,0.3) 100%);
    --category-overlay: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    --category-after-opacity: 0;
    --text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.5);
    --drawer-shadow: none;
    --card-border-width: 2px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

main, .main-content {
    padding-top: 120px !important; /* Increased offset and enforced */
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

.text-gold {
    color: var(--primary-color);
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.6rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
    filter: grayscale(1);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
    box-shadow: 0 4px 20px rgba(255,190,51,0.35);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255,190,51,0.45);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1.5px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background-color: var(--glass-bg-hover);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Header */
header {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--header-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active {
    position: relative;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-container {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 4rem;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.search-bar {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    width: 300px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-main);
    width: 100%;
    padding-left: 0.5rem;
    outline: none;
}

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

.nav-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon .badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary-color);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Market Page Styles */
.market-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
}

.filters-panel h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-group h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.filter-item:hover, .filter-item.active {
    color: var(--primary-color);
}

.filter-item input {
    accent-color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-overlay);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
}

.hero-tagline {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--primary-color);
    background: rgba(255,190,51,0.12);
    border: 1px solid rgba(255,190,51,0.25);
    padding: 0.4rem 1rem;
    border-radius: 50px;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 5.5rem;
    line-height: 1.0;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 2px 30px rgba(0,0,0,0.3);
    font-weight: 800;
}

.hero-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2.5rem;
    max-width: 480px;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Categories Grid */
.section {
    padding: 6rem 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
}

.view-all {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.view-all:hover {
    gap: 0.8rem;
    border-bottom-color: var(--primary-color);
}

.category-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, 250px);
    gap: 1.5rem;
}

.category-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.category-card.large {
    grid-row: span 2;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.8rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.4) 65%, transparent 100%);
    z-index: 2;
}

.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.1);
    transition: background 0.3s ease;
    z-index: 1;
}

.category-card:hover::after {
    background: rgba(0,0,0,0.0);
}

.category-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
    color: #fff;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-card h3::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background: var(--primary-color);
    border-radius: 2px;
    flex-shrink: 0;
}

.category-card p {
    color: rgba(255,255,255,0.65);
    font-size: 0.8rem;
    position: relative;
    z-index: 3;
    padding-left: 0.85rem;
}

/* Fresh Arrivals */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 3rem;
    background: var(--glass-bg);
    padding: 0.4rem;
    border-radius: 50px;
    width: fit-content;
    border: 1px solid var(--border-color);
}

.tab {
    padding: 0.55rem 1.4rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    color: var(--text-muted);
}

.tab.active {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 2px 12px rgba(255,190,51,0.4);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

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

.product-card {
    background: var(--surface-color);
    border-radius: 20px;
    padding: 1.2rem;
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--product-card-border);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,190,51,0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,190,51,0.25);
    box-shadow: 0 16px 40px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,190,51,0.1);
}

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

.product-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 14px;
    object-fit: cover;
    margin-bottom: 1.2rem;
    transition: transform 0.4s ease;
}

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

.product-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.product-cat {
    text-transform: uppercase;
    font-size: 0.65rem;
    color: var(--primary-color);
    letter-spacing: 1.5px;
    font-weight: 700;
    opacity: 0.8;
}

.product-name {
    font-size: 1.05rem;
    margin: 0.25rem 0 0.4rem;
    font-weight: 700;
    line-height: 1.3;
}

.product-price {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.add-cart {
    background: var(--primary-color);
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transition: var(--transition);
    flex-shrink: 0;
}

.add-cart:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(255,190,51,0.5);
}

/* Newsletter */
.newsletter-section {
    padding: 5rem 4rem;
    background: linear-gradient(135deg, var(--surface-color) 0%, rgba(255,190,51,0.04) 100%);
    border-radius: 32px;
    text-align: center;
    margin: 4rem 0;
    border: 1px solid rgba(255,190,51,0.12);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(255,190,51,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.newsletter-section::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255,190,51,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.newsletter-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.newsletter-desc {
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 2.5rem;
    font-size: 1rem;
    line-height: 1.7;
}

.newsletter-form {
    display: flex;
    max-width: 460px;
    margin: 0 auto;
    gap: 0;
    background: var(--glass-bg);
    border: 1.5px solid var(--border-color);
    padding: 6px;
    border-radius: 50px;
    transition: border-color 0.2s;
}

.newsletter-form:focus-within {
    border-color: var(--primary-color);
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.6rem 1.2rem;
    color: var(--text-main);
    outline: none;
    font-size: 0.9rem;
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-form .btn {
    border-radius: 50px;
    padding: 0.7rem 1.6rem;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Footer */
footer {
    padding: 5rem 0 2rem;
    background: var(--footer-bg);
    border-top: 1px solid var(--footer-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
    letter-spacing: -0.5px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 1.8rem;
    line-height: 1.7;
}

.footer-socials {
    display: flex;
    gap: 0.7rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-muted);
}

.social-icon:hover {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-links h4 {
    margin-bottom: 1.2rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-main);
    font-weight: 700;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--footer-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* Icons simulation */
/* Product Details Page */
.breadcrumb {
    display: flex;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.product-gallery {
    position: relative;
}

.main-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: var(--surface-color);
}

.badge-organic {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--primary-color);
    color: #000;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.thumb-card {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
}

.thumb-card.active {
    border-color: var(--primary-color);
}

.thumb-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
}

.product-info-panel h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stars {
    color: var(--primary-color);
    display: flex;
    gap: 2px;
}

.review-count {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-long-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.option-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: block;
}

.weight-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.weight-option {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.weight-option.active {
    background: rgba(255, 190, 51, 0.1);
    border-color: var(--primary-color);
}

.weight-val {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
}

.weight-price {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.btn-full {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
}

.btn-dark {
    background: var(--btn-dark-bg);
    color: var(--btn-dark-color);
}

.btn-dark:hover {
    background: var(--btn-dark-bg-hover);
}

.shipping-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--shipping-bg);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--shipping-border);
}

.shipping-icon {
    color: var(--primary-color);
}

.shipping-text h5 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.shipping-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Pairings Section */
.pairings-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.pairings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Auth Pages (Login/Signup) */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 2rem;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--auth-overlay);
}

.auth-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 450px;
    background: var(--auth-card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--auth-card-border);
    padding: 3rem;
    border-radius: 30px;
    text-align: center;
}

.auth-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: block;
}

.auth-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    background: var(--glass-bg);
    border: var(--card-border-width) solid var(--border-color);
    padding: 1rem 1rem 1rem 3rem;
    border-radius: 12px;
    color: var(--input-text);
    outline: none;
    transition: var(--transition);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus {
    border-color: var(--primary-color);
    background: var(--glass-bg-hover);
}

select.form-control {
    background-color: var(--surface-color);
    color: var(--text-main);
}

select.form-control option {
    background-color: var(--surface-color);
    color: var(--text-main);
}

.auth-footer {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Cart Page Styles */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 4rem;
    margin-bottom: 5rem;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr 150px 100px;
    align-items: center;
    gap: 2rem;
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: 20px;
    border: var(--card-border-width) solid var(--cart-border);
}

.cart-item img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
}

.cart-item-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.cart-item-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--glass-bg);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    width: fit-content;
}

.qty-btn {
    cursor: pointer;
    color: var(--primary-color);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    text-decoration: none;
    transition: var(--transition);
}

.qty-btn:hover {
    color: var(--qty-hover-color);
    background: var(--qty-hover-bg);
    border-radius: 50%;
}

.cart-summary {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: 30px;
    border: var(--card-border-width) solid var(--cart-summary-border);
    height: fit-content;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.summary-total {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Profile Page Styles */
.profile-hero {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
}

.profile-name {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.badge-member {
    background: rgba(255, 190, 51, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: inline-block;
    border: 1px solid rgba(255, 190, 51, 0.3);
}

.profile-pic-container {
    position: relative;
}

.profile-pic {
    width: 250px; /* Reduced from 300px */
    height: 320px; /* Adjusted aspect ratio */
    border-radius: 20px;
    object-fit: cover;
    border: 4px solid var(--surface-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.edit-pic-btn {
    position: absolute;
    bottom: -15px;
    left: -15px;
    background: var(--primary-color);
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    cursor: pointer;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (max-width: 992px) {
    .profile-hero, .profile-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .profile-pic {
        width: 200px;
        height: 250px;
    }
}

.info-card {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: 25px;
    border: 1px solid var(--info-card-border);
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.info-item label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.info-item p {
    font-size: 1.1rem;
    font-weight: 500;
}

.wallet-card {
    background: linear-gradient(135deg, #ffbe33 0%, #ff9d00 100%);
    color: #000;
    padding: 1.8rem;
    border-radius: 20px;
    height: 200px;
    position: relative;
    box-shadow: 0 15px 35px rgba(255, 190, 51, 0.2);
    overflow: hidden;
    transition: var(--transition);
}

.wallet-card:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 20px 45px rgba(255, 190, 51, 0.3);
}

.wallet-card .chip {
    width: 40px;
    height: 30px;
    background: rgba(0,0,0,0.1);
    border-radius: 6px;
    position: relative;
    margin-bottom: 2rem;
}

.wallet-card .chip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0,0,0,0.1);
}

.wallet-card .chip::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(0,0,0,0.1);
}

.wallet-brand {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-weight: 800;
    font-style: italic;
    opacity: 0.6;
}

.provision-card {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: var(--surface-color);
    border-radius: 15px;
    border: var(--card-border-width) solid var(--provision-card-border);
}

.provision-status {
    position: absolute;
    top: 15px;
    left: 15px;
    height: 8px;
    width: 80px;
    background: #4ade80;
    border-radius: 4px;
    z-index: 5;
}

.cta-card {
    background: var(--cta-card-bg);
    border: 1px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
}

/* Checkout Page Styles */
.checkout-header {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.steps-indicator {
    display: flex;
    gap: 3rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.active .step-dot {
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
}

.toggle-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.toggle-btn {
    flex: 1;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.toggle-btn.active {
    background: var(--primary-color);
    color: #000;
}

.payment-method-card {
    background: var(--surface-color);
    border: var(--card-border-width) solid var(--border-color);
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
}

.payment-method-card.active {
    border-color: var(--primary-color);
    background: rgba(255, 190, 51, 0.05);
}

/* Market Pills */
.pill {
    padding: 0.6rem 1.5rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pill:hover {
    border-color: var(--primary-color);
    color: var(--text-main);
}

.pill.active {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 190, 51, 0.3);
}
.tracking-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
    min-height: calc(100vh - 120px);
    margin-bottom: 2rem;
    padding-top: 100px;
}

.map-container {
    background: var(--map-bg);
    border-radius: 30px;
    position: sticky;
    top: 100px;
    height: calc(100vh - 160px);
    overflow: hidden;
}

.status-panel {
    background: var(--surface-color);
    border-radius: 20px;
    padding: 1.5rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
    margin-top: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -2.4rem;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--border-color);
    border: 3px solid var(--surface-color);
}

.timeline-item.completed .timeline-dot {
    background: var(--primary-color);
}

.timeline-item.active .timeline-dot {
    background: var(--surface-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 190, 51, 0.2);
}

/* Mobile Menu Drawer */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: var(--surface-color);
    z-index: 1060;
    padding: 2rem;
    box-shadow: none;
    transition: var(--transition);
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
}

.mobile-menu-drawer.active {
    left: 0;
    box-shadow: var(--drawer-shadow);
}

.mobile-menu-drawer a {
    color: var(--text-main);
    transition: var(--transition);
}

.mobile-menu-drawer a:hover {
    color: var(--primary-color);
}

/* ==========================================
   RESPONSIVE DESIGN (MOBILE FIXES)
   ========================================== */

@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .market-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .filters-panel {
        position: fixed;
        top: 0;
        left: -320px;
        width: 320px;
        height: 100%;
        background: var(--surface-color);
        z-index: 1100;
        padding: 2rem;
        box-shadow: none;
        transition: var(--transition);
        overflow-y: auto;
        border-right: 1px solid var(--border-color);
    }
    
    .filters-panel.active {
        left: 0;
        box-shadow: var(--drawer-shadow);
    }
    
    .mobile-filter-btn {
        display: flex !important;
    }
    
    .close-filters-btn {
        display: block !important;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: span 2;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        text-align: center;
    }

    #mobile-menu-toggle {
        display: block !important;
    }
    .desktop-nav {
        display: none !important;
    }
    header {
        padding: 1rem 0;
    }

    .logo {
        font-size: 1.2rem;
    }

    header .search-bar {
        display: none !important;
    }

    .order-card {
        padding: 1.2rem !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }

    .favorite-card {
        padding: 0.8rem !important;
    }

    .hero {
        height: 80vh;
        padding-top: 60px;
    }

    /* Cart Mobile Fixes */
    .cart-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* History Page Fixes */
    .history-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1.5rem !important;
    }

    .stats-card {
        width: 100% !important;
        text-align: left !important;
        padding: 1.2rem !important;
    }

    .history-card {
        padding: 1.5rem !important;
    }

    .cart-item {
        grid-template-columns: 80px 1fr !important;
        gap: 1rem !important;
        padding: 1.2rem !important;
    }

    .cart-item img {
        width: 80px !important;
        height: 80px !important;
    }

    .cart-item .qty-control {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        justify-content: space-between !important;
        margin-top: 0.5rem !important;
    }

    .cart-item > div:last-child {
        grid-column: 1 / -1 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        text-align: left !important;
        border-top: 1px solid var(--border-color);
        padding-top: 1rem !important;
    }


    .hero-title {
        font-size: 2.8rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .hero-btns {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    .hero-btns .btn {
        flex: 1 1 auto;
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        border-radius: 12px;
    }

    .section {
        padding: 3rem 0;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: auto !important;
        gap: 1rem;
    }

    .category-card.large {
        grid-column: span 2 !important;
        grid-row: span 1 !important;
        height: 180px !important;
    }

    .category-card {
        height: 150px !important;
    }

    .category-card h3 {
        font-size: 1.1rem;
    }

    .category-card p {
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .newsletter-section {
        padding: 2.5rem 1rem;
        margin: 2rem 0;
    }

    .newsletter-title {
        font-size: 1.6rem;
    }
    
    .newsletter-desc {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .footer-socials {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    footer {
        padding: 2.5rem 0 1.5rem;
    }

    .footer-links h4 {
        margin-bottom: 0.8rem;
    }

    .footer-links li {
        margin-bottom: 0.5rem;
    }

    /* Product Detail */
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-info-panel h1 {
        font-size: 2.5rem;
    }
    
    .pairings-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .pairings-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1rem;
    }

    /* Profile Page Fixes */
    .profile-hero {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 1rem !important;
        padding: 1.5rem 0 !important;
    }

    .profile-pic {
        width: 80px !important;
        height: 80px !important;
        border-radius: 50% !important;
        border-width: 2px !important;
    }

    .profile-name {
        font-size: 1.6rem !important;
        margin-bottom: 0.2rem !important;
    }

    .profile-intro {
        text-align: left;
    }

    .profile-intro .badge-member {
        margin-bottom: 0.3rem !important;
        font-size: 0.55rem !important;
        padding: 0.2rem 0.5rem !important;
    }

    .profile-hero .hero-desc {
        display: none !important;
    }

    .info-card {
        padding: 1.2rem !important;
        border-radius: 12px !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    .info-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .info-item p {
        word-break: break-all !important;
        overflow-wrap: break-word !important;
        font-size: 0.95rem !important;
    }

    .recent-orders-grid {
        display: grid;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.8rem !important;
        width: 100% !important;
    }

    .recent-orders-grid > a > div {
        padding: 0.8rem !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }

    .recent-orders-grid h4 {
        font-size: 0.9rem !important;
    }

    .favorites-grid {
        display: grid;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.8rem !important;
        width: 100% !important;
    }

    .favorites-grid > div {
        padding: 0.6rem !important;
    }

    .favorites-grid img {
        height: 100px !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Tracking layout */
    .tracking-layout {
        display: flex;
        flex-direction: column;
    }
    
    .map-container {
        height: 300px;
        width: 100%;
        order: 2;
        margin-top: 2rem;
        position: relative;
        top: 0;
    }
    
    .status-panel {
        order: 1;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 1rem;
    }
    
    .pairings-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 1rem;
    }

    .product-card {
        padding: 1rem;
    }

    .product-image {
        aspect-ratio: 1;
        height: auto;
        margin-bottom: 0.8rem;
    }

    .product-name {
        font-size: 0.95rem;
    }

    .product-price {
        font-size: 0.9rem;
    }

    .product-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .add-cart {
        width: 100%;
        margin-top: 0.5rem;
    }

    .tabs {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
        padding: 0.5rem 1rem;
        display: flex;
        gap: 0.5rem;
    }
    
    .tab {
        flex-shrink: 0;
    }
}

/* ── Light mode overrides for components that use hardcoded dark values ── */
body.light-mode .newsletter-section {
    background: linear-gradient(135deg, #fff 0%, rgba(255,190,51,0.06) 100%);
    border-color: rgba(255,190,51,0.18);
}

body.light-mode .newsletter-section::before {
    background: radial-gradient(circle, rgba(255,190,51,0.1) 0%, transparent 70%);
}

body.light-mode .category-card {
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

body.light-mode .product-card {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

body.light-mode .product-card:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(255,190,51,0.15);
}

body.light-mode .product-card::before {
    background: linear-gradient(135deg, rgba(255,190,51,0.06) 0%, transparent 60%);
}

body.light-mode .tabs {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.1);
}

body.light-mode .tab {
    color: #6c757d;
}

body.light-mode .tab.active {
    color: #000;
}

body.light-mode .view-all {
    color: var(--primary-color);
}

body.light-mode footer {
    background: #f0f0f0;
    border-top-color: rgba(0,0,0,0.08);
}

body.light-mode .footer-logo {
    color: var(--primary-color);
}

body.light-mode .social-icon {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.1);
    color: #555;
}

body.light-mode .social-icon:hover {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
}

body.light-mode .footer-links h4 {
    color: #1a1a1a;
}

body.light-mode .footer-links a {
    color: #6c757d;
}

body.light-mode .footer-bottom {
    color: #999;
    border-top-color: rgba(0,0,0,0.08);
}

body.light-mode .hero-tagline {
    background: rgba(255,190,51,0.15);
    border-color: rgba(255,190,51,0.3);
}

body.light-mode .btn-outline {
    color: #1a1a1a;
    border-color: rgba(0,0,0,0.2);
}

body.light-mode .btn-outline:hover {
    background: rgba(0,0,0,0.05);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ==========================================
   HISTORY PAGE STYLES
   ========================================== */
.history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.stats-card {
    background: rgba(255, 190, 51, 0.1);
    padding: 1rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 190, 51, 0.2);
    text-align: right;
    transition: var(--transition);
}

.stats-card:hover {
    background: rgba(255, 190, 51, 0.15);
    transform: scale(1.02);
}

.stats-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.stats-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.history-card {
    background: var(--surface-color);
    border-radius: 20px;
    padding: 2rem;
    border: var(--card-border-width) solid var(--border-color);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.history-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.history-icon-box {
    width: 60px;
    height: 60px;
    background: var(--history-icon-bg);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: var(--card-border-width) solid var(--border-color);
}

.history-actions {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.history-amount-box, .history-status-box {
    text-align: right;
}

.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

/* ==========================================
   GLOBAL MOBILE RESPONSIVE FIXES
   ========================================== */
@media (max-width: 900px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .container {
        padding: 0 1rem;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }

    main, .main-content {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    /* Hide desktop search bar & nav, show hamburger */
    #globalSearchForm {
        display: none !important;
    }
    .desktop-nav {
        display: none !important;
    }
    #mobile-menu-toggle {
        display: flex !important;
    }

    /* Product grid: 2 columns on mobile - minmax(0,1fr) prevents overflow */
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.6rem !important;
    }
    .product-card {
        padding: 0.5rem !important;
        border-radius: 12px !important;
        display: flex;
        flex-direction: column !important;
    }
    .product-image {
        aspect-ratio: unset !important;
        height: 100px !important;
        width: 100% !important;
        object-fit: cover !important;
        margin-bottom: 0.4rem !important;
        border-radius: 8px !important;
    }
    .product-cat { font-size: 0.6rem !important; }
    .product-name {
        font-size: 0.8rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 0.1rem !important;
    }
    .product-price {
        font-size: 0.8rem !important;
        margin-bottom: 0.5rem !important;
    }
    .product-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        flex: 1;
    }
    .product-info > div { width: 100%; }
    .add-cart {
        width: 100% !important;
        height: 32px !important;
        border-radius: 8px !important;
        font-size: 0.75rem !important;
        margin-top: auto;
        flex-shrink: unset !important;
    }

    /* Tracking layout stacks on mobile */
    .tracking-layout {
        grid-template-columns: 1fr;
        min-height: unset;
    }
    .map-container {
        position: relative;
        top: unset;
        height: 50vh;
    }

    /* Checkout stacks */
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    /* Footer grid stacks */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Product detail stacks */
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Hero shrinks */
    .hero-title {
        font-size: 3rem;
    }

    /* Category grid stacks */
    .category-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .category-card.large {
        grid-row: span 1;
        grid-column: span 2;
    }
}
