:root {
    --primary-color: #003366;
    --primary-light: #0055a5;
    --accent-color: #25D366;
    --accent-hover: #1ebe5d;
    --bg-color: #f4f7f6;
    --text-color: #333;
    --muted-color: #666;
    --border-color: #e1e5e8;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    min-height: 100vh;
    font-family: "Tajawal", sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeSpeed;
}

.hero {
    width: 100%;
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--primary-light)
    );
    color: #fff;
    text-align: center;
    padding: clamp(45px, 8vw, 90px) 20px;
}

.hero-content {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}

.brand-name {
    display: inline-block;
    margin-bottom: 15px;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: clamp(1.7rem, 4vw, 2.8rem);
    line-height: 1.45;
    margin-bottom: 15px;
}

.hero p {
    max-width: 700px;
    margin: 0 auto 28px;
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    line-height: 1.8;
    opacity: 0.92;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px clamp(20px, 4vw, 30px);
    border-radius: 30px;
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.products-section {
    width: 100%;
    max-width: 1500px;
    margin: clamp(25px, 5vw, 45px) auto;
    padding: 0 clamp(10px, 3vw, 20px);
}

.search-container {
    position: relative;
    width: min(550px, 100%);
    margin: 0 auto 25px;
}

.search-container input {
    display: block;
    width: 100%;
    height: 54px;
    padding: 0 48px 0 18px;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    outline: none;
    background: #fff;
    color: var(--text-color);
    font-family: inherit;
    font-size: 16px;
    appearance: none;
    -webkit-appearance: none;
}

.search-container input::placeholder {
    color: #999;
}

.search-container input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.08);
}

.search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
}

.search-result {
    min-height: 0;
    margin-bottom: 15px;
    text-align: center;
    color: var(--primary-color);
    font-weight: 700;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.product-card {
    width: 100%;
    min-width: 0;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    content-visibility: auto;
    contain-intrinsic-size: 320px;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.11);
}

.card-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--primary-color);
}

.product-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: var(--primary-color);
}

.card-body {
    width: 100%;
    padding: clamp(12px, 2vw, 20px);
    text-align: center;
}

.model-title {
    color: var(--primary-color);
    font-size: clamp(0.95rem, 2vw, 1.3rem);
    line-height: 1.4;
    margin-bottom: 7px;
}

.model-desc {
    color: var(--muted-color);
    font-size: clamp(0.75rem, 1.5vw, 0.92rem);
    line-height: 1.6;
    margin-bottom: 15px;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 9px 6px;
    border: 0;
    border-radius: 9px;
    background: var(--accent-color);
    color: #fff;
    font-family: inherit;
    font-size: clamp(0.72rem, 1.5vw, 1rem);
    font-weight: 800;
    line-height: 1.3;
    cursor: pointer;
    touch-action: manipulation;
}

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

.btn-whatsapp i {
    margin-left: 5px;
    flex-shrink: 0;
}

.no-results {
    display: none;
    padding: 45px 20px;
    text-align: center;
    color: #777;
}

.no-results i {
    display: block;
    margin-bottom: 12px;
    font-size: 35px;
}

.no-results-title {
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 1.05rem;
    font-weight: 800;
}

.no-results-help {
    max-width: 620px;
    margin: 0 auto 20px;
    color: var(--muted-color);
    line-height: 1.8;
    font-size: 0.92rem;
}

.no-results-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 46px;
    padding: 10px 22px;
    border-radius: 28px;
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.no-results-whatsapp:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.floating-whatsapp {
    position: fixed;
    left: 25px;
    bottom: 25px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
    font-size: 29px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.2);
    touch-action: manipulation;
}

.site-footer {
    width: 100%;
    margin-top: 50px;
    padding: 22px 15px;
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    font-size: 0.9rem;
}

.site-footer p {
    margin: 0;
    opacity: 0.9;
}

@media (min-width: 360px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (min-width: 480px) {
    .products-grid {
        gap: 18px;
    }
}

@media (min-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (min-width: 768px) {
    .products-grid {
        gap: 22px;
    }
}

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

    .card-image {
        aspect-ratio: 3 / 2;
    }

    .card-body {
        padding: 18px;
    }
}

@media (min-width: 1440px) {
    .products-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 25px;
    }

    .card-body {
        padding: 20px;
    }
}

@media (max-width: 599px) {
    .hero {
        padding: 45px 15px;
    }

    .products-section {
        padding: 0 10px;
    }

    .products-grid {
        gap: 12px;
    }

    .product-card {
        border-radius: 11px;
    }

    .card-image {
        aspect-ratio: 1.35 / 1;
    }

    .card-body {
        padding: 12px 9px;
    }

    .model-title {
        font-size: 0.95rem;
        margin-bottom: 5px;
    }

    .model-desc {
        font-size: 0.73rem;
        line-height: 1.5;
        margin-bottom: 11px;
    }

    .btn-whatsapp {
        min-height: 42px;
        font-size: 0.72rem;
        padding: 8px 4px;
    }

    .floating-whatsapp {
        width: 54px;
        height: 54px;
        left: 17px;
        bottom: 17px;
        font-size: 26px;
    }
}

@media (max-width: 359px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card-image {
        aspect-ratio: 16 / 9;
    }

    .card-body {
        padding: 16px;
    }

    .model-title {
        font-size: 1.05rem;
    }

    .model-desc {
        font-size: 0.82rem;
    }

    .btn-whatsapp {
        font-size: 0.82rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
        animation: none !important;
    }
}

@media (hover: none) {
    .product-card:hover,
    .btn-primary:hover,
    .btn-whatsapp:hover {
        transform: none;
    }
}