/* ==========================
   RESET
========================== */

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Inter',sans-serif;
    background:#f6f8fb;
    color:#111827;
    line-height:1.5;
}

img{
    display:block;
    width:100%;
}

a{
    text-decoration:none;
}

button{
    font-family:inherit;
}

.container{
    width:100%;
    max-width:1400px;
    margin:0 auto;
    padding:0 20px;
}

/* ==========================
   HEADER
========================== */

.header{
    position:sticky;
    top:0;
    z-index:100;
    background:#fff;
    border-bottom:1px solid #e5e7eb;
    backdrop-filter:blur(20px);
}

.header .container{
    min-height:80px;
    display:flex;
    align-items:center;
    gap:24px;
}

.logo{
    display:flex;
    align-items:center;
    flex-shrink:0;
}

.logo img{
    height:88px;
    width:auto;
    display:block;
}

.search-box{
    flex:1;
    display:flex;
    gap:10px;
}

.search-box input{
    flex:1;
    height:48px;
    border:none;
    background:#f3f4f6;
    border-radius:14px;
    padding:0 18px;
    outline:none;
    font-size:15px;
}

.search-box button{
    border:none;
    background:#2563eb;
    color:#fff;
    border-radius:14px;
    padding:0 22px;
    cursor:pointer;
    font-weight:600;
}

.nav{
    display:flex;
    gap:24px;
}

.nav a{
    color:#374151;
    font-weight:500;
}

.nav a:hover{
    color:#2563eb;
}

.header-actions{
    display:flex;
    gap:10px;
}

.icon-btn{
    width:42px;
    height:42px;
    background:#f3f4f6;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* ==========================
   HERO
========================== */

.hero{
    padding:40px 0;
}

.hero-card{
    background:#fff;
    border-radius:32px;
    padding:40px;
    display:grid;
    grid-template-columns:1.1fr 1fr;
    gap:40px;
    box-shadow:0 15px 40px rgba(0,0,0,.05);
}

.hero-badge{
    display:inline-flex;
    padding:10px 16px;
    background:#eef4ff;
    color:#2563eb;
    border-radius:100px;
    font-size:14px;
    font-weight:600;
}

.hero-content h1{
    font-size:58px;
    line-height:1.05;
    margin:20px 0;
    font-weight:800;
}

.hero-content p{
    color:#6b7280;
    font-size:18px;
    max-width:600px;
}

.hero-buttons{
    display:flex;
    gap:15px;
    margin-top:30px;
}

.btn{
    padding:15px 24px;
    border-radius:14px;
    font-weight:600;
    transition:.2s;
}

.btn-primary{
    background:#2563eb;
    color:#fff;
}

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

.btn-light{
    background:#f3f4f6;
    color:#111827;
}

.hero-stats{
    display:flex;
    gap:50px;
    margin-top:40px;
}

.stat{
    display:flex;
    flex-direction:column;
}

.stat strong{
    font-size:26px;
}

.stat span{
    color:#6b7280;
}

.hero-products{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}

.hero-product{
    position:relative;
    overflow:hidden;
    border-radius:24px;
    min-height:220px;
}

.hero-product.large{
    grid-column:span 2;
    min-height:320px;
}

.hero-product img{
    height:100%;
    object-fit:cover;
}

.hero-product span{
    position:absolute;
    left:15px;
    bottom:15px;
    background:rgba(0,0,0,.6);
    color:#fff;
    padding:8px 12px;
    border-radius:10px;
    font-size:14px;
}

/* ==========================
   SECTIONS
========================== */

.categories,
.products,
.brands,
.reviews,
.contacts{
    padding:70px 0;
}

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

.section-header h2,
.brands h2,
.reviews h2{
    font-size:36px;
}

.section-header a{
    color:#2563eb;
    font-weight:600;
}

/* ==========================
   CATEGORIES
========================== */

.categories-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.category-card{
    background:#fff;
    border-radius:24px;
    padding:30px;
    box-shadow:0 10px 25px rgba(0,0,0,.04);
    transition:.2s;
}

.category-card:hover{
    transform:translateY(-4px);
}

.category-icon{
    font-size:42px;
    margin-bottom:16px;
}

.category-card h3{
    margin-bottom:8px;
}

.category-card span{
    color:#6b7280;
}

/* ==========================
   PRODUCTS
========================== */

.products-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:24px;
}

.product-card{
    position:relative;
    overflow:hidden;
    background:#fff;
    border-radius:24px;
    box-shadow:0 10px 25px rgba(0,0,0,.05);
}

.product-image{
    height:260px;
    overflow:hidden;
    background:#f3f4f6;
}

.product-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
}

.product-body{
    padding:24px;
}

.product-rating{
    color:#f59e0b;
    margin-bottom:10px;
}

.product-card h3{
    margin-bottom:15px;
    min-height:54px;
}

.product-price{
    font-size:28px;
    font-weight:700;
    margin-bottom:18px;
}

.product-card button{
    width:100%;
    height:48px;
    border:none;
    border-radius:14px;
    background:#2563eb;
    color:#fff;
    cursor:pointer;
    font-weight:600;
}

.product-badge{
    position:absolute;
    top:15px;
    left:15px;
    z-index:2;
    background:#22c55e;
    color:#fff;
    padding:8px 12px;
    border-radius:10px;
    font-size:12px;
    font-weight:700;
}

.product-badge.sale{
    background:#ef4444;
}

/* ==========================
   BRANDS
========================== */

.brands-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:20px;
    margin-top:30px;
}

.brand-card{
    background:#fff;
    border-radius:20px;
    min-height:110px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    font-weight:700;
    box-shadow:0 10px 25px rgba(0,0,0,.04);
}

/* ==========================
   ADVANTAGES
========================== */

.advantages{
    padding:20px 0 70px;
}

.advantages .container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

.advantage-card{
    background:#fff;
    padding:28px;
    border-radius:24px;
    text-align:center;
    box-shadow:0 10px 25px rgba(0,0,0,.04);
}

.advantage-card strong{
    display:block;
    margin-bottom:8px;
    font-size:18px;
}

.advantage-card span{
    color:#6b7280;
}

/* ==========================
   REVIEWS
========================== */

.reviews-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:24px;
    margin-top:30px;
}

.review-card{
    background:#fff;
    border-radius:24px;
    padding:30px;
    box-shadow:0 10px 25px rgba(0,0,0,.04);
}

.review-user{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:20px;
}

.avatar{
    width:55px;
    height:55px;
    border-radius:50%;
    background:#2563eb;
    color:#fff;
    font-weight:700;
    display:flex;
    align-items:center;
    justify-content:center;
}

.review-user span{
    display:block;
    color:#f59e0b;
}

/* ==========================
   CONTACTS
========================== */

.contacts-card{
    display:grid;
    grid-template-columns:400px 1fr;
    gap:25px;
}

.contact-info,
.map{
    background:#fff;
    border-radius:28px;
    padding:40px;
    box-shadow:0 10px 25px rgba(0,0,0,.04);
}

.contact-info h2{
    margin-bottom:20px;
}

.contact-info p{
    margin-bottom:10px;
    color:#6b7280;
}

.map{
    min-height:350px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    font-weight:700;
    color:#6b7280;
}

/* ==========================
   FOOTER
========================== */

.footer{
    margin-top:50px;
    background:#fff;
    border-top:1px solid #e5e7eb;
}

.footer .container{
    min-height:80px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#6b7280;
}

/* ==========================
   TABLET
========================== */

@media (max-width:1200px){

    .nav{
        display:none;
    }

    .hero-content h1{
        font-size:48px;
    }

    .contacts-card{
        grid-template-columns:1fr;
    }
}

/* ==========================
   MOBILE
========================== */

@media (max-width:992px){

    .hero-card{
        grid-template-columns:1fr;
        padding:25px;
    }

    .hero-products{
        order:-1;
    }

    .hero-content h1{
        font-size:40px;
    }

    .hero-stats{
        gap:25px;
        flex-wrap:wrap;
    }

    .header .container{
        flex-wrap:wrap;
        padding:15px 20px;
    }

    .search-box{
        width:100%;
        order:10;
    }
}

@media (max-width:576px){

    .hero-content h1{
        font-size:32px;
    }

    .hero-buttons{
        flex-direction:column;
    }

    .btn{
        text-align:center;
    }

    .hero-product.large{
        min-height:240px;
    }

    .hero-product{
        min-height:160px;
    }

    .section-header{
        flex-direction:column;
        align-items:flex-start;
        gap:10px;
    }

    .section-header h2,
    .brands h2,
    .reviews h2{
        font-size:28px;
    }

    .product-price{
        font-size:24px;
    }

    .review-card,
    .category-card,
    .brand-card{
        border-radius:20px;
    }
}

/* ==========================
   CATALOG
========================== */

.catalog-page{
    padding:40px 0 80px;
}

.catalog-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
}

.catalog-top h1{
    font-size:42px;
}

.sort-select{
    border:1px solid #e5e7eb;
    background:#fff;
    border-radius:14px;
    padding:12px 16px;
}

.catalog-layout{
    display:grid;
    grid-template-columns:280px 1fr;
    gap:30px;
}

.filters{
    background:#fff;
    padding:25px;
    border-radius:24px;
    height:fit-content;
    box-shadow:0 10px 25px rgba(0,0,0,.04);
}

.filters h3{
    margin-bottom:15px;
}

.filters label{
    display:block;
    margin-bottom:12px;
    cursor:pointer;
}

.filters hr{
    margin:25px 0;
    border:none;
    border-top:1px solid #e5e7eb;
}

.filter-input{
    width:100%;
    height:46px;
    margin-bottom:12px;
    border:1px solid #e5e7eb;
    border-radius:12px;
    padding:0 15px;
}

.filter-btn{
    width:100%;
    height:48px;
    border:none;
    border-radius:14px;
    background:#2563eb;
    color:#fff;
    font-weight:600;
    cursor:pointer;
}

.pagination{
    display:flex;
    justify-content:center;
    gap:10px;
    margin-top:40px;
}

.pagination a{
    width:44px;
    height:44px;
    background:#fff;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#111827;
    font-weight:600;
    box-shadow:0 4px 10px rgba(0,0,0,.05);
}

.pagination a.active{
    background:#2563eb;
    color:#fff;
}

@media (max-width:992px){

    .catalog-layout{
        grid-template-columns:1fr;
    }

    .catalog-top{
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
    }

    .catalog-top h1{
        font-size:32px;
    }
}

/* PRODUCT PAGE */

.product-page{
    padding:40px 0;
}

.breadcrumbs{
    color:#6b7280;
    margin-bottom:25px;
}

.product-layout{
    display:grid;
    grid-template-columns:1fr 500px;
    gap:40px;
}

.product-gallery,
.product-info{
    background:#fff;
    border-radius:28px;
    padding:30px;
    box-shadow:0 10px 25px rgba(0,0,0,.04);
}

.product-main-image{
    height:520px;
    border-radius:20px;
    background:linear-gradient(135deg,#dbeafe,#eff6ff);
}

.product-thumbs{
    display:flex;
    gap:12px;
    margin-top:20px;
}

.thumb{
    width:90px;
    height:90px;
    border-radius:16px;
    background:#eef2ff;
    cursor:pointer;
}

.thumb.active{
    border:3px solid #2563eb;
}

.product-rating-large{
    color:#f59e0b;
    margin-bottom:12px;
}

.product-info h1{
    font-size:42px;
    margin-bottom:15px;
}

.product-subtitle{
    color:#6b7280;
    margin-bottom:20px;
}

.product-price-large{
    font-size:42px;
    font-weight:800;
}

.old-price{
    text-decoration:line-through;
    color:#9ca3af;
    margin-top:8px;
}

.discount-badge{
    display:inline-block;
    margin-top:12px;
    background:#dcfce7;
    color:#16a34a;
    padding:8px 12px;
    border-radius:10px;
}

.option-group{
    margin-top:25px;
}

.option-group span{
    display:block;
    margin-bottom:10px;
    font-weight:600;
}

.options{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.option{
    border:1px solid #d1d5db;
    background:#fff;
    border-radius:12px;
    padding:12px 18px;
    cursor:pointer;
}

.option.active{
    background:#2563eb;
    color:#fff;
    border-color:#2563eb;
}

.buy-actions{
    display:flex;
    gap:12px;
    margin-top:30px;
}

.buy-btn,
.fast-buy-btn{
    flex:1;
    height:54px;
    border:none;
    border-radius:14px;
    font-weight:600;
    cursor:pointer;
}

.buy-btn{
    background:#2563eb;
    color:#fff;
}

.fast-buy-btn{
    background:#f3f4f6;
}

.delivery-box{
    margin-top:25px;
    display:flex;
    flex-direction:column;
    gap:10px;
    color:#374151;
}

.product-details,
.specs{
    padding:20px 0;
}

.tabs{
    display:flex;
    gap:10px;
    margin-bottom:20px;
}

.tab{
    border:none;
    background:#fff;
    padding:12px 20px;
    border-radius:12px;
    cursor:pointer;
}

.tab.active{
    background:#2563eb;
    color:#fff;
}

.detail-card,
.specs-card{
    background:#fff;
    border-radius:24px;
    padding:30px;
    box-shadow:0 10px 25px rgba(0,0,0,.04);
}

.detail-card p{
    margin-top:15px;
}

.spec-row{
    display:flex;
    justify-content:space-between;
    padding:16px 0;
    border-bottom:1px solid #e5e7eb;
}

.spec-row:last-child{
    border-bottom:none;
}

.related-products{
    padding-top:40px;
}

@media(max-width:992px){

    .product-layout{
        grid-template-columns:1fr;
    }

    .product-info h1{
        font-size:32px;
    }

    .buy-actions{
        flex-direction:column;
    }

    .product-main-image{
        height:350px;
    }
}

.phone-box{
    display:flex;
    align-items:center;
    gap:12px;

    padding:10px 16px;

    background:#fff;
    border:1px solid #e5e7eb;

    border-radius:16px;

    color:#111827;

    transition:.2s;
}

.phone-box:hover{
    border-color:#2563eb;
}

.phone-icon{
    width:42px;
    height:42px;

    border-radius:12px;

    background:#eff6ff;

    display:flex;
    align-items:center;
    justify-content:center;

    color:#2563eb;
    font-size:18px;
}

.phone-info{
    display:flex;
    flex-direction:column;
}

.phone-info span{
    font-size:12px;
    color:#6b7280;
}

.phone-info strong{
    font-size:15px;
    font-weight:700;
}

.product-title{
    color:#111827;
    text-decoration:none;
    transition:.2s;
}

.product-title:hover{
    color:#2563eb;
    text-decoration:none;
}

.product-title:visited{
    color:#111827;
}

.product-title:active{
    color:#2563eb;
}
