@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --dark: #101828;
    --text: #344054;
    --muted: #667085;
    --border: #eaecf0;
    --surface: #ffffff;
    --background: #f8fafc;
    --success: #16a34a;
    --radius: 18px;
    --shadow: 0 8px 28px rgba(16, 24, 40, .06);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Cairo', Tahoma, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.8;
}

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

button,
input,
select {
    font: inherit;
}

button,
a,
select {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

.container {
    width: min(1180px, calc(100% - 36px));
    margin-inline: auto;
}

/* PWA */
.pwa-icon {
    width: 120px;
    height: 70px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(../../img/logo.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}


/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    font-size: 22px;
    font-weight: 800;
    white-space: nowrap;
}

.logo-icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    color: white;
    background: var(--primary);
    border-radius: 12px;
    font-size: 23px;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 14px;
    font-weight: 600;
}

.nav-links a {
    color: var(--muted);
    transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Buttons */

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 11px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: transform .2s, background .2s;
}

.btn:hover {
    transform: translateY(-1px);
}

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

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

.btn-outline {
    background: white;
    border-color: var(--border);
    color: var(--dark);
}

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 15% 20%,
            rgba(37, 99, 235, .28), transparent 45%),
        linear-gradient(135deg, #101828, #172554);
    color: white;
}

.hero-content {
    padding-top: 86px;
    padding-bottom: 76px;
    max-width: 1180px;
}

.eyebrow {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

.hero .eyebrow {
    display: inline-block;
    color: #bfdbfe;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .13);
    padding: 5px 14px;
    border-radius: 30px;
}

.hero h1 {
    margin: 20px 0 10px;
    font-size: clamp(35px, 5vw, 58px);
    line-height: 1.5;
    font-weight: 800;
    letter-spacing: -.7px;
}

.hero h1 span {
    color: #93c5fd;
}

.hero p {
    max-width: 590px;
    color: #d0d5dd;
    font-size: 16px;
    margin: 0 0 28px;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 720px;
    background: white;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .16);
}

.search-icon {
    padding-inline: 12px 4px;
    color: var(--muted);
    font-size: 27px;
}

.search-form input {
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    color: var(--dark);
    background: transparent;
    padding: 10px 4px;
    font-size: 14px;
}

.search-form input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 0;
    border-radius: 5px;
}

.search-form .btn {
    flex-shrink: 0;
    min-height: 47px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 25px;
    color: #e4e7ec;
    font-size: 13px;
}

/* Sections */

.section {
    padding-top: 62px;
    padding-bottom: 50px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 27px;
}

.section-heading h2,
.seller-banner h2 {
    color: var(--dark);
    font-size: clamp(23px, 3vw, 30px);
    line-height: 1.5;
    margin: 5px 0;
    font-weight: 800;
}

.section-heading p,
.seller-banner p {
    color: var(--muted);
    font-size: 14px;
    margin: 5px 0 0;
}

.brand-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-filter select {
    min-width: 155px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: white;
    color: var(--text);
}

/* Product cards */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.product-card {
    overflow: hidden;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform .22s, box-shadow .22s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.product-image {
    display: grid;
    place-items: center;
    height: 225px;
    overflow: hidden;
    background: #f2f5fa;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
    transition: transform .3s;
}

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

.image-placeholder {
    font-size: 65px;
    opacity: .7;
}

.product-info {
    padding: 17px;
}

.product-brand {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.product-info h3 {
    margin: 5px 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--dark);
    overflow-wrap: anywhere;
}

.product-specs {
    min-height: 27px;
    margin: 3px 0 15px;
    color: var(--muted);
    font-size: 12px;
}

.price-label {
    color: var(--muted);
    font-size: 11px;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.price {
    color: var(--dark);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.6;
}

.price small {
    color: var(--muted);
    font-size: 11px;
}

.compare-link {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

/* Empty state */

.empty-state {
    grid-column: 1 / -1;
    padding: 45px 20px;
    text-align: center;
    background: white;
    border: 1px dashed #d0d5dd;
    border-radius: var(--radius);
}

.empty-icon {
    font-size: 35px;
    color: var(--primary);
}

.empty-state h3 {
    margin: 5px 0;
    color: var(--dark);
}

.empty-state p {
    color: var(--muted);
    font-size: 14px;
}

/* Seller banner */

.seller-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 65px;
    padding: 30px;
    border: 1px solid #dbeafe;
    border-radius: 22px;
    background: linear-gradient(120deg, #eff6ff, #fff);
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--border);
    background: white;
}

.footer-content {
    min-height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    padding-block: 22px;
}

.footer-content p,
.footer-content>span {
    color: var(--muted);
    font-size: 12px;
}

/* Responsive */

@media (max-width: 950px) {
    .nav-links {
        gap: 14px;
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .product-image {
        height: 205px;
    }
}

@media (max-width: 650px) {
    .container {
        width: calc(100% - 24px);
    }

    .nav {
        min-height: 65px;
        gap: 10px;
        flex-wrap: wrap;
        padding-block: 10px;
    }

    .brand-logo {
        font-size: 18px;
    }

    .logo-icon {
        width: 33px;
        height: 33px;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: 8px;
        overflow-x: auto;
        padding-top: 5px;
        font-size: 12px;
    }

    .seller-link {
        padding: 8px 11px;
        font-size: 12px;
    }

    .hero-content {
        padding-top: 53px;
        padding-bottom: 45px;
    }

    .hero p {
        font-size: 14px;
    }

    .search-form {
        gap: 4px;
        padding: 6px;
    }

    .search-form input {
        font-size: 12px;
    }

    .search-form .btn {
        padding: 9px 12px;
        font-size: 12px;
    }

    .hero-points {
        gap: 9px 16px;
        font-size: 11px;
    }

    .section {
        padding-top: 40px;
        padding-bottom: 30px;
    }

    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .brand-filter select {
        flex: 1;
        min-width: 0;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .product-image {
        height: 160px;
    }

    .product-image img {
        padding: 10px;
    }

    .product-info {
        padding: 11px;
    }

    .product-info h3 {
        font-size: 14px;
    }

    .product-specs {
        font-size: 10px;
        margin-bottom: 9px;
    }

    .price {
        font-size: 17px;
    }

    .compare-link {
        font-size: 11px;
    }

    .seller-banner {
        align-items: stretch;
        flex-direction: column;
        padding: 22px;
        margin-bottom: 35px;
    }

    .footer-content {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}