:root {
    --bg-dark: #111111;
    --bg-darker: #181818;
    --accent: #D90429;
    --accent-hover: #b00320;
    --text-main: #FFFFFF;
    --text-muted: #9ca3af;
    --border-color: #374151;
    --font-inter: 'Inter', sans-serif;
    --font-poppins: 'Poppins', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-inter);
    line-height: 1.6;
    overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-poppins);
}

a {
    text-decoration: none;
    color: inherit;
}

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

.highlight {
    color: var(--accent);
}

.text-gradient {
    background: linear-gradient(to right, var(--accent), #ff8a00, var(--accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: flowWave 4s linear infinite;
}

@keyframes flowWave {
    to { background-position: 200% center; }
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-poppins);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-icon {
    color: var(--accent);
    width: 32px;
    height: 32px;
}

.nav-links {
    display: none;
    gap: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 1px;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    transition: color 0.3s;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--accent);
}

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

.icon-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s;
}

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

.primary-btn {
    background: linear-gradient(45deg, var(--accent), #ff4d4d, var(--accent));
    background-size: 200% auto;
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    font-weight: 500;
    font-family: var(--font-inter);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 20px rgba(217, 4, 41, 0.5);
    position: relative;
    overflow: hidden;
    animation: pulseGlow 2s infinite, bgShift 3s linear infinite;
}

@keyframes bgShift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 15px rgba(217, 4, 41, 0.4); }
    50% { box-shadow: 0 0 30px rgba(217, 4, 41, 0.8); }
    100% { box-shadow: 0 0 15px rgba(217, 4, 41, 0.4); }
}

.primary-btn:hover {
    transform: translateY(-3px) scale(1.05);
}

.primary-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%) rotate(45deg) translateY(100%);
    transition: transform 0.6s ease;
}

.primary-btn:hover::after {
    transform: translate(-50%, -50%) rotate(45deg) translateY(-100%);
}

.secondary-btn {
    background: var(--bg-darker);
    color: #fff;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    font-weight: 500;
    font-family: var(--font-inter);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.secondary-btn:hover {
    background: #222;
}

.lg-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    background-image: 
        linear-gradient(rgba(10, 10, 10, 0.2), rgba(10, 10, 10, 0.3)),
        url('https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17,17,17,0.9) 0%, rgba(17,17,17,0.4) 40%, rgba(17,17,17,0.1) 100%);
    z-index: 10;
}

.hero-content-wrapper {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    width: 100%;
}

@keyframes textFocusReveal {
    0% {
        opacity: 0;
        filter: blur(20px);
        transform: translateY(50px) scale(0.9);
        letter-spacing: 4px;
    }
    100% {
        opacity: 1;
        filter: blur(0px);
        transform: translateY(0) scale(1);
        letter-spacing: normal;
    }
}

.hero-content {
    width: 100%;
    max-width: 700px;
    padding-bottom: 6rem; /* Prevents overlap with the search box */
}

.hero-content h1 {
    animation: textFocusReveal 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.hero-content p {
    animation: textFocusReveal 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: textFocusReveal 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
    opacity: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(24, 24, 24, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    margin-bottom: 1.5rem;
    animation: floatBadge 4s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(217, 4, 41, 0.2);
}

@keyframes floatBadge {
    0% { transform: translateY(0px); box-shadow: 0 0 20px rgba(217, 4, 41, 0.2); }
    50% { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(217, 4, 41, 0.5); }
    100% { transform: translateY(0px); box-shadow: 0 0 20px rgba(217, 4, 41, 0.2); }
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(217, 4, 41, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(217, 4, 41, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(217, 4, 41, 0); }
}

.hero-badge span:last-child {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #d1d5db;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero h1 { font-size: 4.5rem; }
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Search Banner */
.search-banner {
    position: relative;
    z-index: 30;
    margin-top: -4rem;
    margin-bottom: 5rem;
}

.search-box {
    background: rgba(25, 25, 25, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    opacity: 0;
    animation: textFocusReveal 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

.search-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), 0 0 30px rgba(217, 4, 41, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@media (min-width: 768px) {
    .search-box { padding: 2rem; }
}

.search-box h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

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

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

.search-grid select {
    width: 100%;
    background-color: var(--bg-dark);
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%239ca3af%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 0.65rem auto;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border-radius: 0.75rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-family: var(--font-inter);
    font-size: 0.875rem;
    outline: none;
}

.search-grid select option {
    background-color: #ffffff;
    color: #000000;
}

.search-grid select:focus {
    border-color: var(--accent);
}

.search-grid select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.search-btn {
    background: var(--bg-dark);
    color: #000;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-family: var(--font-inter);
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #e5e7eb;
}

/* Page Headers */
.page-header {
    padding-top: 6rem;
    padding-bottom: 3rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Shop Layout */
.shop-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 5rem;
}

@media (min-width: 768px) {
    .shop-layout { flex-direction: row; }
}

.sidebar {
    width: 100%;
}

@media (min-width: 768px) {
    .sidebar { width: 25%; }
}

.filter-box {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

.products-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

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

.product-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 1rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.3s, background 0.3s;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: -150%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.75s ease;
    z-index: 2;
    pointer-events: none;
}

.product-card:hover::before {
    left: 200%;
    transition: all 0.75s ease;
}

.product-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(217, 4, 41, 0.25);
    z-index: 10;
}

.product-img {
    height: 12rem;
    background: var(--bg-dark);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1rem;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-img i {
    width: 3rem;
    height: 3rem;
    color: var(--border-color);
    transition: transform 0.3s;
}

.product-card:hover .product-img i {
    transform: scale(1.1);
}

.product-cat {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.product-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
}

.add-btn {
    background: var(--bg-dark);
    color: #000;
    border: none;
    padding: 0.375rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.3s;
}

.add-btn:hover {
    background: #e5e7eb;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

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

@media (min-width: 1024px) {
    .categories-grid { grid-template-columns: repeat(5, 1fr); }
}

.category-card {
    background: linear-gradient(180deg, rgba(40, 40, 40, 0.7) 0%, rgba(20, 20, 20, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: rgba(217, 4, 41, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 10px 20px rgba(217,4,41,0.2);
    z-index: 10;
}

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

.cat-icon-wrap {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.25rem;
    background: rgba(217, 4, 41, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(217, 4, 41, 0.2);
    transition: all 0.4s ease;
    box-shadow: 0 0 15px rgba(217, 4, 41, 0.1);
}

.cat-icon {
    width: 2.2rem;
    height: 2.2rem;
    color: var(--accent);
    transition: all 0.4s ease;
}

.category-card:hover .cat-icon-wrap {
    background: var(--accent);
    box-shadow: 0 0 25px rgba(217, 4, 41, 0.5);
    transform: scale(1.1);
}

.category-card:hover .cat-icon {
    color: #ffffff;
}

.category-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    transition: color 0.3s;
}

.category-card:hover h3 {
    color: var(--accent);
}

/* Home Page Sections */
section {
    padding: 4rem 0;
}

.hero {
    padding: 0;
}

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

.section-header h2 {
    font-size: 2rem;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s;
}

.view-all:hover {
    color: var(--text-main);
}

/* Statistics */
.statistics {
    background-color: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
}

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

.stat-num {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

/* Brands */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

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

.brand-box {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    font-weight: 600;
    font-family: var(--font-poppins);
    color: var(--text-muted);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.3s, color 0.3s;
    cursor: pointer;
    transform-style: preserve-3d;
}

.brand-box:hover {
    border-color: var(--accent);
    color: var(--text-main);
    transform: translateY(-5px) scale(1.05) rotateX(5deg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(217, 4, 41, 0.15);
}

/* Footer */
.footer {
    background-color: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-bottom: 4rem;
}

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

@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

.footer-col h3 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-links, .footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li, .footer-contact li {
    margin-bottom: 0.75rem;
}

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

.footer-links a:hover {
    color: var(--accent);
}

.footer-contact li {
    color: var(--text-muted);
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.4;
}

.footer-contact i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--accent);
}

.footer-bottom {
    background-color: #000;
    padding: 1.5rem 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background-image: 
        linear-gradient(rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.85)),
        url('https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    position: relative;
}

.auth-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17,17,17,0.85);
    backdrop-filter: blur(5px);
}

.auth-card {
    position: relative;
    z-index: 10;
    background: rgba(24, 24, 24, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

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

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

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
}

.form-group input {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-family: var(--font-inter);
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: var(--accent);
}

.auth-submit {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    margin-top: 1rem;
}

.auth-links {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.auth-links a {
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Input Groups for Auth */
.input-group {
    display: flex;
    align-items: center;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: border-color 0.3s;
}

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

.input-group input {
    border: none;
    background: transparent;
    flex: 1;
    border-radius: 0;
}

.input-group input:focus {
    border-color: transparent;
}

.country-select {
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 0 0.5rem;
    font-family: var(--font-inter);
    outline: none;
    border-right: 1px solid var(--border-color);
    cursor: pointer;
}

.country-select option {
    background: var(--bg-dark);
    color: var(--text-main);
}

.password-toggle {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

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

/* Modern Product Actions (Amazon Style) */
.product-bottom-modern {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.add-to-cart-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #FF3366, #D90429);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(217, 4, 41, 0.4);
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 4, 41, 0.6);
}

.add-to-cart-btn i {
    width: 16px;
    height: 16px;
}

.wishlist-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.wishlist-btn:hover {
    color: var(--text-main);
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.wishlist-btn i {
    width: 16px;
    height: 16px;
}

/* Inline Search Bar */
.nav-search-wrap {
    position: relative;
    display: none;
    align-items: center;
}

@media (min-width: 768px) {
    .nav-search-wrap {
        display: flex;
    }
}

.nav-search-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border-radius: 999px;
    font-family: var(--font-inter);
    font-size: 0.875rem;
    outline: none;
    transition: all 0.3s ease;
    width: 200px;
}

.nav-search-input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(217, 4, 41, 0.2);
    width: 250px;
}

.nav-search-icon {
    position: absolute;
    left: 0.8rem;
    color: var(--text-muted);
    width: 16px;
    height: 16px;
    pointer-events: none;
}

/* Premium Wishlist Animations */
.wishlist-active i {
    animation: heartPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.wishlist-sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #FFB347;
    border-radius: 50%;
    pointer-events: none;
    animation: sparkleFloat 0.8s forwards;
    z-index: 10;
}

@keyframes sparkleFloat {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    50% { transform: translate(-50%, -150%) scale(1.5); opacity: 0.8; }
    100% { transform: translate(-50%, -250%) scale(0); opacity: 0; }
}

.wishlisted-card {
    border-color: rgba(255, 51, 102, 0.3) !important;
    box-shadow: 0 10px 20px rgba(255, 51, 102, 0.1) !important;
    transform: translateY(-2px);
    background: linear-gradient(to bottom, var(--bg-card), rgba(255, 51, 102, 0.03));
}

.wishlist-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #FF0055, #FFB347);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(255, 51, 102, 0.3);
    animation: badgeFadeIn 0.3s ease;
}

@keyframes badgeFadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
}
.page-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}
.page-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}
.page-btn.active {
    background: var(--accent);
    border-color: var(--accent);
}
.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.brand-box img {
    max-width: 100%;
    max-height: 40px;
    object-fit: contain;
    filter: grayscale(100%) brightness(10) opacity(70%);
    transition: all 0.3s;
}
.brand-box:hover img {
    filter: grayscale(0%) brightness(1) opacity(100%);
}

    /* --- Mobile View Adjustments (Requested by User) --- */
@media (max-width: 767px) {
    /* Navbar Layout Fixes */
    .nav-actions {
        gap: 0.5rem !important;
    }
    .mobile-menu-btn {
        order: 99; /* Push hamburger to the far right */
        margin-left: 0.25rem;
    }
    .primary-btn {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.8rem !important;
        white-space: nowrap !important; /* Prevent text wrapping */
    }
    .logo {
        font-size: 1.4rem !important;
    }
    .logo-icon {
        width: 30px !important;
        height: 30px !important;
    }

    /* Fix iOS/Mobile background-attachment: fixed bug */
    .hero {
        background-attachment: scroll !important;
        background-position: center center !important;
    }

    /* 1. Reduce unnecessary spaces between sections */
    section { padding: 2.5rem 0 !important; }
    .page-header { padding-top: 4rem !important; padding-bottom: 2rem !important; }
    .featured-brands { padding: 2.5rem 0 !important; }

    /* 2. Smaller headings */
    .hero h1 { font-size: 2rem !important; margin-bottom: 1rem !important; }
    .section-header h2 { font-size: 1.5rem !important; margin-bottom: 1.5rem !important; }
    .hero p { font-size: 1rem !important; }

    /* 3. Trending product area 2 columns and visible product name */
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.75rem !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        padding: 0 0.5rem !important;
    }
    .product-card { 
        padding: 0.75rem !important; 
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
    }
    .product-card::before {
        display: none !important;
    }
    .product-img {
        height: 7.5rem !important;
        padding: 0.5rem !important;
        margin-bottom: 0.75rem !important;
    }
    .product-title {
        font-size: 0.85rem !important;
        white-space: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        word-break: break-word !important;
    }
    .product-price { font-size: 1rem !important; }
    .product-actions {
        gap: 0.25rem !important;
        flex-wrap: wrap !important;
    }
    .add-to-cart-btn {
        font-size: 0.7rem !important;
        padding: 0.4rem 0.2rem !important;
        gap: 0.2rem !important;
        min-width: 0 !important;
    }
    .wishlist-btn {
        padding: 0.4rem !important;
    }

    /* 4. Trusted by top brand */
    .marquee-brand-box {
        min-width: 110px !important;
        padding: 0.5rem 0.75rem !important;
        gap: 0.4rem !important;
    }
    .marquee-brand-box img {
        height: 20px !important;
        max-width: 60px !important;
    }
    .marquee-brand-box span { font-size: 0.75rem !important; }

    /* 5. Footer in 2 lines */
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1.5rem !important;
        padding-bottom: 2rem !important;
    }
    .footer-col > div { flex-wrap: wrap !important; gap: 0.5rem !important; }
    .footer-col h3 { font-size: 1rem !important; margin-bottom: 1rem !important; }
    .footer-links a, .footer-contact li { font-size: 0.8rem !important; }
    .footer-col .logo { font-size: 1.25rem !important; }
}

/* Fix mobile zoom */
input[type='text'], input[type='email'], input[type='password'], input[type='number'], select, textarea { font-size: 16px !important; }

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

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none !important;
    }
}

.nav-links.show-mobile-menu {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 40;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}


/* Safe Browsing fix */
.secure-text { -webkit-text-security: disc; }
