:root {
    --bg: #000000;
    --surface: #111111;
    --primary: #ffffff;
    --secondary: #000000;
    --accent: #d4af37; /* Gold */
    --text: #e0e0e0;
    --text-muted: #aaaaaa;
    --border: #333333;
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
}

/* Remove previous navbar styles override if necessary */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    background: rgba(20, 20, 20, 0.95); /* More opaque */
    position: sticky;
    top: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    z-index: 1000;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
}

.logo {
    font-size: 1.1rem; /* Smaller, cleaner */
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    /* Removed heavy text-shadow for minimalism */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    margin-left: 2rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--primary); /* White instead of gold */
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 70vh; /* Increased height for impact */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    color: var(--primary);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Subtle background texture/glow */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.hero h1 {
    font-size: 5rem; /* Larger */
    margin-bottom: 1.5rem;
    font-weight: 200; /* Thinner */
    letter-spacing: 8px; /* More spacing */
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.3s;
    background: linear-gradient(to right, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.6s;
    max-width: 500px;
    line-height: 1.8;
    letter-spacing: 2px;
    font-weight: 300;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.8); 
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--surface);
    margin: 10% auto; 
    padding: 2rem;
    border: 1px solid var(--border);
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    color: var(--text);
}

.close-modal {
    color: var(--text-muted);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary);
    text-decoration: none;
}

.modal h2 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal input {
    padding: 0.8rem;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 4px;
}

.modal button {
    padding: 0.8rem;
    background: var(--primary);
    color: var(--bg);
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
}

.modal button:hover {
    background: var(--text-muted);
}



/* Products Section */
.products-section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary);
    font-weight: 300;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform 0.3s, border-color 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.product-image {
    width: 100%;
    height: 250px; /* Reduced from 400px to fix "too long" look */
    object-fit: contain;
    background-color: var(--surface);
    padding: 1rem; /* Reduced padding */
    transition: transform 0.5s ease;
}

.product-info {
    padding: 1.5rem; /* Reduced padding */
    text-align: center;
}

.actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Product Detail Page */
.product-detail-container {
    display: flex;
    flex-wrap: wrap;
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
}

.product-gallery {
    flex: 1;
    min-width: 300px;
}

.main-image {
    width: 100%;
    height: auto;
    max-height: 80vh; /* Allow large images but keep within view */
    object-fit: contain; /* Show the full image */
    background-color: var(--surface);
    border: 1px solid var(--border);
    padding: 2rem;
    margin-bottom: 2rem;
}

.thumbnails {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
}

.thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid var(--border);
    opacity: 0.6;
    transition: opacity 0.3s;
}

.thumb:hover, .thumb.active {
    opacity: 1;
    border-color: var(--accent);
}

.product-details {
    flex: 1;
    min-width: 300px;
    padding-top: 1rem;
}

.detail-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
    color: var(--primary);
}

.detail-price {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.detail-desc {
    line-height: 1.8;
    margin-bottom: 3rem;
    color: var(--text-muted);
    font-size: 1rem;
}

.options-group {
    margin-bottom: 3rem;
}

.options-group h3 {
    margin-bottom: 1rem;
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.option-btn {
    padding: 1rem 2rem;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    margin-right: 0.8rem;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.option-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.option-btn.selected {
    background: var(--accent);
    color: var(--secondary);
    border-color: var(--accent);
    font-weight: bold;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.btn-detail {
    padding: 1.2rem 2.5rem !important; /* Larger buttons for details page */
    font-size: 0.9rem !important;
}

.btn {
    padding: 0.8rem 1.5rem; /* Reduced from 1.2rem 2.5rem */
    border: none;
    cursor: pointer;
    font-size: 0.8rem; /* Slightly smaller text */
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
    flex: 1;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}

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

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

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

.btn-secondary:hover {
    background: var(--surface);
    border-color: var(--accent);
    color: var(--accent);
}

/* Cart Slide-out */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: #000;
    border-left: 1px solid var(--border);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

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

.cart-header h2 {
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.close-cart {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary);
    cursor: pointer;
    line-height: 1;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.cart-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
}

.cart-item img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.cart-item h4 {
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.cart-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.cart-footer {
    padding: 2rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Checkout Form */
.checkout-container {
    max-width: 700px;
    margin: 6rem auto;
    padding: 3rem;
    background: var(--surface);
    border: 1px solid var(--border);
}

.checkout-container h1 {
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    text-align: center;
}

.checkout-form .form-group {
    margin-bottom: 2rem;
}

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

.checkout-form input, .checkout-form textarea {
    width: 100%;
    padding: 1.2rem;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.checkout-form input:focus, .checkout-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.order-summary {
    background: var(--bg) !important;
    border: 1px solid var(--border);
    padding: 1.5rem !important;
    color: var(--text-muted);
}

.order-summary h3 {
    margin-bottom: 1.5rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Footer */
footer {
    background: var(--surface);
    color: var(--text-muted);
    padding: 4rem 2rem 2rem;
    margin-top: auto; /* Push to bottom if flex container */
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 400;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =========================================
   Top Filters (Replaces Sidebar)
   ========================================= */
.main-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 2rem;
    gap: 2rem;
}

.top-filters {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    gap: 1.5rem;
}

/* Search Styles */
.search-container {
    width: 100%;
    max-width: 500px; /* Slightly narrower for elegance */
    position: relative;
    margin-bottom: 0;
}

.search-input {
    width: 100%;
    padding: 1.2rem 2rem;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.03); /* Glassmorphism */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0; /* Sharp edges for luxury feel, or keep rounded? Let's go minimal rounded */
    border-radius: 4px; 
    color: var(--primary);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    backdrop-filter: blur(10px);
    letter-spacing: 1px;
    text-align: center; /* Center text for premium feel */
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #111;
    border: 1px solid var(--border);
    border-radius: 4px;
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.suggestion-item {
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

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

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
}

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

.suggestion-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.suggestion-title {
    font-weight: 500;
    color: var(--primary);
}

.suggestion-price {
    font-size: 0.9rem;
    color: var(--accent);
}

/* Price Filter Group */
.price-filter-group {
    display: flex;
    flex-direction: column; /* Stack vertically for cleaner look */
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    margin-top: 1rem;
}

.price-filter-group h3 {
    margin: 0;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 500;
}

.price-inputs {
    display: flex;
    gap: 1rem;
    align-items: center;
    position: relative;
}

.price-inputs input {
    width: 100px;
    padding: 0.8rem;
    text-align: center;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--primary);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.price-inputs input:focus {
    border-color: var(--accent);
    outline: none;
    background: rgba(255, 255, 255, 0.05);
}

.price-inputs span {
    color: var(--text-muted);
    font-weight: 300;
}

.filter-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.filter-actions .btn {
    padding: 0.8rem 2rem;
    border-radius: 4px; /* Consistent with inputs */
    font-size: 0.8rem;
    letter-spacing: 2px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.filter-actions .btn:hover {
    background: var(--primary);
    color: var(--bg);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.filter-actions .btn-secondary {
    border-color: var(--border);
    color: var(--text-muted);
}

.filter-actions .btn-secondary:hover {
    border-color: var(--text-muted);
    background: transparent;
    color: var(--text);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100; /* Above navbar */
    position: relative; /* Ensure z-index works */
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ... */
@media (max-width: 768px) {
    /* Cart Sidebar Mobile Fix */
    .cart-sidebar {
        width: 100%;
        right: -100%;
        z-index: 2000;
        border-left: none; /* No border needed for full width */
    }

    .navbar {
        padding: 1rem;
    }
    
    .main-container {
        padding: 1rem; /* Reduce padding on mobile to prevent cropping */
    }
/* ... */

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.19, 1, 0.22, 1);
        z-index: 1000;
        padding-top: 0; /* Remove padding to let flexbox center perfectly */
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 0;
        padding: 1.5rem 0;
        font-size: 1.8rem; /* Premium size */
        margin-left: 0;
        font-weight: 300;
        letter-spacing: 4px; /* More spacing for elegance */
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        width: auto; /* Allow natural width */
        border-bottom: none; /* Remove harsh lines */
        text-align: center;
        display: block;
        text-transform: uppercase;
        position: relative;
    }
    
    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 1px;
        background: var(--accent);
        transition: width 0.3s ease;
        box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
    }
    
    .nav-links a:hover::after {
        width: 40px; /* Subtle underline on hover */
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-links.active .user-menu {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* User Menu Styling */
    .user-menu {
        margin-left: 0;
        margin-top: 3rem;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        border-top: none;
        padding-top: 0;
    }
    
    .user-menu-trigger {
        display: none !important; /* Hide the trigger image/icon on mobile to simplify */
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        background: transparent;
        border: none;
        text-align: center;
        margin-top: 0;
        display: flex; /* Use flex to layout items */
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        align-items: center;
    }
    
    .dropdown-content a {
        padding: 0;
        font-size: 1rem !important; /* Smaller than main nav */
        border-bottom: none;
        color: var(--text-muted) !important;
        letter-spacing: 2px;
        width: auto;
        display: inline-block;
        text-transform: uppercase;
    }
    
    .dropdown-content a:hover {
        color: var(--accent) !important;
        background: transparent;
    }
    
    /* Special styling for Profile link to act as a separator */
    .dropdown-content a:first-child {
        margin-top: 1rem;
        position: relative;
    }
    
    .dropdown-content a:first-child::before {
        content: '';
        display: block;
        width: 20px;
        height: 1px;
        background: rgba(255, 255, 255, 0.2);
        margin: 0 auto 2rem auto; /* Space above profile link */
    }

    /* Hero Adjustments */
    .hero {
        height: 50vh;
        padding: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Filter Adjustments */
    .top-filters {
        padding: 0 1rem;
    }

    .price-filter-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .price-inputs {
        width: 100%;
        display: flex;
        justify-content: space-between;
        gap: 0.5rem;
    }
    
    .price-inputs input {
        width: auto;
        flex: 1;
        min-width: 0; /* Allow shrinking */
    }
    
    .filter-actions {
        width: 100%;
        display: flex;
        justify-content: center;
        flex-wrap: wrap; /* Allow wrapping if needed */
        gap: 0.5rem;
    }

    .filter-actions .btn {
        width: 100%; /* Make Apply button full width on mobile */
        margin: 0;
    }
    
    .filter-actions .btn-secondary {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%; /* Make Clear button full width on mobile */
    }

    /* Product Grid */
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); /* Smaller cards on mobile */
        gap: 1rem;
    }

    .product-image {
        height: 180px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        padding: 0.6rem;
        font-size: 0.7rem;
    }
    
    /* Fix Collections Bar Cropping */
    .collections-bar {
        justify-content: flex-start; /* Start from left to avoid cropping */
        padding-left: 0; /* Align with container */
    }
    
    .scroll-container {
        padding: 0; /* Remove padding to align with edge */
    }
}

/* Collections Horizontal Bar */
.collections-bar {
    width: 100%;
    margin-bottom: 0;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    display: flex;
    justify-content: center;
}

.collections-bar::-webkit-scrollbar {
    display: none;
}

.scroll-container {
    display: flex;
    gap: 1rem;
    min-width: max-content;
    padding: 0 1rem;
}

.collection-pill {
    display: flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.collection-pill:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.collection-pill.active {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
    font-weight: bold;
}

.collection-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.collection-pill img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-right: 0.8rem;
    border-radius: 50%;
}

/* =========================================
   Product Detail & Related Products
   ========================================= */
.seller-info {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: background 0.3s;
}

.seller-info:hover {
    background: rgba(255, 255, 255, 0.05);
}

.seller-info h3 {
    margin: 0.2rem 0;
    color: var(--primary);
    text-decoration: underline;
}

.related-products-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.related-products-section .section-title {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--primary);
}

.related-products-section .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.related-products-section .product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.related-products-section .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.related-products-section .product-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    padding: 1rem;
    background: var(--surface);
}

.related-products-section .product-info {
    padding: 1.5rem;
}

.related-products-section .product-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.related-products-section .product-price {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0;
}

@media (max-width: 768px) {
    .related-products-section .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .related-products-section .product-grid {
        grid-template-columns: 1fr;
    }
}

/* Utilities */
.text-muted {
    color: var(--text-muted);
}
.small {
    font-size: 0.9rem;
    margin: 0;
}

/* Ensure navbar spans full width if main container does */
.navbar-spacer {
    display: none;
}

.hero {
    margin-top: 0;
}

.order-summary .order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.order-summary .order-total {
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    color: var(--primary);
}

/* Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    flex-direction: column;
    padding: 2rem;
}

.google-btn {
    background-color: #dd4b39;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s;
}

.google-btn:hover {
    background-color: #c23321;
}

.alert-danger {
    background: #f44336;
    color: white;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    max-width: 400px;
    text-align: center;
}

/* Contact Page */
.contact-container {
    max-width: 600px;
    margin: 6rem auto;
    padding: 3rem;
    background: var(--surface);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.contact-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.contact-success {
    text-align: center;
    color: var(--accent);
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .contact-container {
        margin: 2rem auto;
        padding: 1.5rem;
    }
}

/* User Menu */
@media (min-width: 769px) {
.user-menu {
    position: relative;
    display: inline-block;
    margin-left: 15px;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    text-decoration: none !important;
}

.user-menu-trigger img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--surface);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-top: 10px;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content a {
    color: var(--text) !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-left: 0 !important;
    font-size: 0.9rem !important;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: rgba(255,255,255,0.05);
    color: var(--accent) !important;
}
}


