:root {
    --primary: #243179;
    --button: #00badb;
    --button-hover: #009bb8;
    --title: #1e2d7d;
    --text: #2D3436;
    --text-light: #636E72;
    --background: #F8F9FA;
    --card-bg: #FFFFFF;
    --border: #E0E0E0;
    --star-color: #FFD700;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 15px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.search-input {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    user-select: text !important;
}

body {
    background-color: var(--background);
    color: var(--text);
    line-height: 1.5;
    font-size: 14px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.announcement-bar {
    background: var(--button);
    color: white;
    padding: 0.4rem 0;
    overflow: hidden;
    font-weight: 600;
    font-size: 0.8rem;
}

.announcement-content {
    display: flex;
    animation: scroll 20s linear infinite;
    white-space: nowrap;
}

.announcement-content span {
    padding: 0 3rem;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

header {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
    padding: 0.8rem 1rem 0.6rem;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 0.6rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.3rem;
    position: absolute;
    right: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: white;
}

.logo-icon {
    width: 26px;
    height: 26px;
    stroke: white;
    fill: none;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    white-space: nowrap;
}

.search-container {
    width: 100%;
    max-width: 600px;
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: none;
    font-size: 0.9rem;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-button {
    background: var(--button);
    border: none;
    padding: 0 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-button:hover {
    background: var(--button-hover);
}

.search-button svg {
    color: white;
    width: 20px;
    height: 20px;
}

.main-nav {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: center;
    width: 100%;
    margin-top: 0.6rem;
    border-radius: 8px;
}

.main-nav::-webkit-scrollbar {
    height: 3px;
}

.main-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.nav-item {
    background: none;
    border: none;
    color: white;
    padding: 0.7rem 1.2rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    border-bottom-color: var(--button);
    font-weight: 600;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #FF3B30;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    z-index: 10;
}

.product-info {
    padding: 0.8rem 0.8rem 0.7rem 0.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title-link {
    text-decoration: none;
    color: var(--title);
    cursor: pointer;
    display: block;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.3rem;
    line-height: 1.2;
}

.product-image-link {
    display: block;
    cursor: pointer;
    overflow: hidden;
}

.product-image-container {
    width: 100%;
    position: relative;
    padding-top: 70%;
    overflow: hidden;
    background: #F5F5F5;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rating {
    display: flex;
    align-items: center;
    margin-bottom: 0.3rem;
    gap: 0.4rem;
}

.stars {
    display: flex;
    color: var(--star-color);
    font-size: 0.85rem;
    gap: 1px;
}

.reviews-count {
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 500;
}

.product-price-container {
    margin-bottom: 0.6rem;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.8rem;
    margin-bottom: 0.1rem;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.1rem;
    display: flex;
    align-items: flex-start;
    color: var(--title);
}

.cents {
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 2px;
    position: relative;
    top: 2px;
}

.installments {
    color: #00A651;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn {
    display: block;
    width: 100%;
    padding: 0.75rem 0.5rem;
    background: var(--button);
    color: white;
    text-align: center;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: var(--transition);
    white-space: nowrap;
}

.btn:hover {
    background: var(--button-hover);
}

footer {
    background: var(--primary);
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-text {
    font-size: 12px;
    color: white;
    line-height: 1.6;
    max-width: 800px;
    margin: 1.5rem auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
    font-size: 12px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    text-decoration: underline;
}

.loading {
    text-align: center;
    padding: 2rem;
    display: none;
    color: var(--text-light);
    font-weight: 500;
}

.loading.active {
    display: block;
}

@media (max-width: 768px) {
    .announcement-content {
        animation: scroll 8s linear infinite;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        left: -100%;
        top: 0;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 1rem 0;
        transition: var(--transition);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        justify-content: flex-start;
        margin-top: 0;
        border-radius: 0;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .nav-item {
        color: var(--text);
        padding: 1rem 1.5rem;
        text-align: left;
        border-bottom: 1px solid var(--border);
        border-left: 3px solid transparent;
    }
    
    .nav-item.active {
        border-left-color: var(--button);
        border-bottom-color: var(--border);
        background: rgba(0, 186, 219, 0.05);
    }
    
    .nav-item:hover {
        background: rgba(0, 186, 219, 0.05);
    }
    
    .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.05rem;
    }
    
    .container {
        padding: 1.5rem 0.5rem;
    }
    
    .products {
        gap: 0.8rem;
    }
    
    .product-info {
        padding: 0.7rem 0.7rem 0.6rem 0.7rem;
    }
    
    .product-title {
        font-size: 0.85rem;
        min-height: 2rem;
    }
    
    .current-price {
        font-size: 1.3rem;
    }
    
    .btn {
        font-size: 0.75rem;
        padding: 0.65rem 0.3rem;
    }
}