:root {
    --tech-blue: #0071e3;
    --tech-blue-glow: rgba(0, 113, 227, 0.2);
    --tech-dark: #1d1d1f;
    --tech-dark-deep: #000000;
    --tech-gray: #f5f5f7;
    --tech-gray-dark: #86868b;
    --tech-text: #1d1d1f;
    --tech-accent: #0077ed;
    --success: #28a745;
    --warning: #ffcc00;
    --glass: rgba(255, 255, 255, 0.85);
    --glass-dark: rgba(0, 0, 0, 0.85);
    --container-width: 1200px;
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    --card-shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.1);
    --radius-lg: 18px;
    --radius-md: 12px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: #fff;
    color: var(--tech-text);
    line-height: 1.6;
    font-family: 'Inter', -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

h1,
h2,
h3,
h4,
.logo,
.btn-hero {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.01em;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Header & Navigation */
.main-header {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.top-bar {
    background: var(--tech-dark);
    color: #fff;
    font-size: 0.75rem;
    padding: 6px 0;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.navbar {
    padding: 12px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 42px;
    width: auto;
    max-width: 100%;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo:hover img {
    transform: scale(1.08) rotate(-2deg);
}

.search-bar {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 1;
    margin: 0 20px;
}

.search-bar form {
    display: flex;
    flex-direction: row-reverse;
    /* Button stays on the right, input expands to left */
    background: rgba(0, 0, 0, 0.05);
    border-radius: 40px;
    padding: 0;
    width: 42px;
    height: 42px;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid transparent;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.search-bar form.active {
    width: 100%;
    max-width: 450px;
    background: #fff;
    border-color: var(--tech-blue);
    box-shadow: 0 0 0 4px var(--tech-blue-glow);
}

.search-bar input {
    border: none;
    background: transparent;
    padding: 0;
    flex: 1;
    outline: none;
    font-size: 0.95rem;
    width: 0;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.search-bar form.active input {
    width: 100%;
    padding: 0 15px;
    opacity: 1;
    visibility: visible;
}

.search-bar button {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--tech-blue);
    font-size: 1.1rem;
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-icons a {
    color: var(--tech-dark);
    font-size: 1.35rem;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.nav-icons a:hover {
    background: var(--tech-gray);
    color: var(--tech-blue);
}

.cart-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--tech-blue);
    color: #fff;
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--tech-dark);
    padding: 5px;
}

.category-nav {
    background: #fff;
    padding: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.category-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0;
}

.category-nav a {
    text-decoration: none;
    color: var(--tech-gray-dark);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 15px 25px;
    display: block;
    transition: all 0.3s;
    position: relative;
}

.category-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--tech-blue);
    transition: width 0.3s ease;
}

.category-nav a:hover {
    color: var(--tech-dark);
}

.category-nav a:hover::after {
    width: 100%;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    z-index: 1500;
    transition: all 0.4s;
    backdrop-filter: blur(4px);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #000 0%, #1d1d1f 60%, var(--tech-blue) 100%);
    color: #fff;
    padding: 140px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.1;
    background: linear-gradient(to bottom, #fff, #a1a1a6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: #a1a1a6;
    max-width: 700px;
    margin: 0 auto 40px;
}

.btn-hero {
    background: #fff;
    color: var(--tech-dark) !important;
    padding: 16px 40px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-hero:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    text-align: center;
}

.feature-item {
    padding: 30px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: var(--tech-gray);
}

.feature-item:hover {
    transform: translateY(-10px);
    background: #fff;
    box-shadow: var(--card-shadow);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--tech-blue);
    margin-bottom: 20px;
    display: block;
}

.feature-item h3,
.feature-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--tech-dark);
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

.feature-item p {
    color: var(--tech-gray-dark);
    font-size: 0.95rem;
}

/* Product Section */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    color: var(--tech-dark);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.product-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(0, 113, 227, 0.2);
}

.product-image {
    position: relative;
    padding-top: 100%;
    background: #fdfdfd;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-cat {
    font-size: 0.7rem;
    color: var(--tech-blue);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.1em;
}

.product-name {
    font-size: 1.15rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--tech-dark);
    text-decoration: none;
    line-height: 1.4;
    height: 3.2em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tech-dark);
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.old-price {
    text-decoration: line-through;
    color: var(--tech-gray-dark);
    font-size: 1rem;
    font-weight: 400;
}

.add-to-cart {
    background: var(--tech-dark);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.add-to-cart:hover {
    background: var(--tech-blue);
    transform: scale(1.02);
}

/* Footer */
.main-footer {
    background: var(--tech-dark);
    color: #fff;
    padding: 80px 0 40px;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 60px;
}

.footer-col h3,
.footer-title {
    margin-bottom: 25px;
    font-size: 1.25rem;
    background: linear-gradient(to bottom, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

.footer-col p {
    color: #a1a1a6;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 15px;
}

.footer-col a {
    color: #888;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: #fff;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    font-size: 1.5rem;
    color: #fff;
    opacity: 0.6;
    transition: all 0.3s;
}

.social-links a:hover {
    opacity: 1;
    color: var(--tech-blue);
    transform: translateY(-5px);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.85rem;
    color: #555;
    letter-spacing: 0.05em;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: #FFF;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
    color: #fff;
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--tech-dark);
}

.form-control {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    background: #fdfdfd;
}

.form-control:focus {
    border-color: var(--tech-blue);
    outline: none;
    box-shadow: 0 0 0 4px var(--tech-blue-glow);
    background: #fff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .category-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        z-index: 2000;
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        padding-top: 60px;
    }

    .category-nav.active {
        right: 0;
    }

    .category-nav ul {
        flex-direction: column;
        padding: 20px;
    }

    .category-nav a {
        padding: 15px 0;
        border-bottom: 1px solid #f5f5f7;
        font-size: 1rem;
    }

    .navbar .container {
        flex-wrap: nowrap;
        gap: 15px;
        padding: 0 20px;
    }

    .search-bar {
        display: none;
        /* Hide search bar on mobile to prioritize menu */
    }

    .logo img {
        height: 38px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .add-to-cart {
        padding: 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .nav-icons {
        gap: 15px;
    }

    .logo img {
        height: 35px;
    }

    .footer-grid {
        gap: 40px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
}