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

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Montserrat',sans-serif;
    background:#f3f3f3;
    color:#1a1a1a;
}

/* ===========================
   APP
=========================== */

.app{
    width:100%;
    max-width:1400px;
    margin:40px auto;
    background:#fff;
    border-radius:24px;
    overflow:hidden;
    box-shadow:
        0 20px 60px rgba(0,0,0,.08),
        0 5px 15px rgba(0,0,0,.04);
}

.page-topbar{display:flex;align-items:center;justify-content:space-between;padding:25px 60px 0}.page-back{display:inline-flex;align-items:center;gap:8px;color:#333;font-size:14px;font-weight:600;text-decoration:none}.page-actions{display:flex;gap:10px}.page-actions a{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid #e4e4e4;border-radius:50%;color:#555;text-decoration:none}.page-actions a:hover,.page-actions a.active{background:#111;border-color:#111;color:#fff}

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

.header{
    position:relative;
    height:520px;

    background:
        linear-gradient(rgba(15,15,15,.45),
        rgba(15,15,15,.55)),
        url("https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?auto=format&fit=crop&w=1600&q=80")
        center center/cover;

    display:flex;
    align-items:center;
}

.header::before{
    content:"";
    position:absolute;
    inset:0;

    background:
    linear-gradient(
    90deg,
    rgba(0,0,0,.65),
    rgba(0,0,0,.15)
    );
}

.header-content{

    position:relative;
    z-index:2;

    width:100%;
    max-width:1200px;

    margin:auto;

    padding:60px;
}

/* ===========================
   TOP
=========================== */

.header-city{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:40px;
}

/* ===========================
   CITY
=========================== */

.city-wrapper{

    position:relative;
}

.city-current{

    display:flex;

    align-items:center;

    gap:12px;

    background:rgba(255,255,255,.95);

    padding:15px 22px;

    border-radius:100px;

    font-size:15px;

    font-weight:500;

    cursor:pointer;

    transition:.25s;
}

.city-current:hover{

    transform:translateY(-2px);

    box-shadow:0 12px 25px rgba(0,0,0,.15);
}

.city-current i{

    color:#111;
}

.arrow{

    font-size:12px;

    transition:.3s;
}

.city-dropdown{

    position:absolute;

    width:240px;

    top:70px;

    left:0;

    background:#fff;

    border-radius:18px;

    overflow:hidden;

    opacity:0;

    pointer-events:none;

    transform:translateY(-10px);

    transition:.25s;

    box-shadow:0 20px 50px rgba(0,0,0,.12);

    z-index:50;
}

.city-dropdown.active{

    opacity:1;

    transform:translateY(0);

    pointer-events:auto;
}

.city-dropdown div{

    padding:16px 20px;

    cursor:pointer;

    transition:.25s;
}

.city-dropdown div:hover{

    background:#f5f5f5;
}

/* ===========================
   SEARCH
=========================== */

.search-wrapper{

    flex:1;
}

.search-wrapper input{

    width:100%;

    height:56px;

    border:none;

    outline:none;

    border-radius:100px;

    padding:0 25px;

    font-size:15px;

    background:#fff;

    transition:.3s;

    box-shadow:
    0 12px 30px rgba(0,0,0,.08);
}

.search-wrapper input:focus{

    box-shadow:
    0 15px 35px rgba(0,0,0,.16);
}

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

.promo{

    margin-top:90px;

    max-width:560px;
}

.tag{

    display:inline-block;

    padding:10px 18px;

    border-radius:100px;

    background:rgba(255,255,255,.18);

    backdrop-filter:blur(10px);

    color:#fff;

    font-size:13px;

    letter-spacing:2px;

    text-transform:uppercase;
}

.promo h2{

    margin-top:24px;

    font-size:58px;

    line-height:1.05;

    color:#fff;

    font-weight:700;
}

.promo p{

    margin-top:20px;

    color:#efefef;

    font-size:19px;

    line-height:1.8;

    max-width:420px;
}

/* ===========================
   SECTION
=========================== */

.section{

    padding:60px 60px 10px;
}

.section-title{

    font-size:34px;

    font-weight:700;

    color:#111;

    margin-bottom:10px;
}
/* ==========================================
   BRANDS
========================================== */

.brands{

    display:flex;

    gap:24px;

    padding:20px 60px 70px;

    overflow-x:auto;

    scrollbar-width:none;
}

.brands::-webkit-scrollbar{
    display:none;
}

.brand-card{

    flex:0 0 230px;

    height:140px;

    background:#fff;

    border-radius:24px;

    border:1px solid #ececec;

    display:flex;

    justify-content:center;

    align-items:center;

    cursor:pointer;

    transition:.35s;

    overflow:hidden;

    position:relative;
}

.brand-card::before{

    content:"";

    position:absolute;

    inset:0;

    background:linear-gradient(
        135deg,
        rgba(255,255,255,0),
        rgba(245,245,245,.8)
    );

    opacity:0;

    transition:.35s;
}

.brand-card:hover{

    transform:translateY(-8px);

    box-shadow:
        0 18px 45px rgba(0,0,0,.08);

    border-color:#ddd;
}

.brand-card:hover::before{

    opacity:1;
}

.brand-card img{

    max-width:140px;

    max-height:55px;

    object-fit:contain;

    transition:.35s;

    filter:grayscale(100%);
}

.brand-card:hover img{

    filter:none;

    transform:scale(1.08);
}

/* ==========================================
   CATEGORY
========================================== */

.menu-icons{

    display:flex;

    justify-content:space-between;

    gap:24px;

    padding:15px 60px 70px;

    overflow-x:auto;

    scrollbar-width:none;

    background:transparent;

    box-shadow:none;
}

.menu-icons::-webkit-scrollbar{
    display:none;
}

.menu-item{

    flex:1;

    min-width:140px;

    display:flex;

    flex-direction:column;

    align-items:center;

    cursor:pointer;

    transition:.35s;
}

.icon-box{

    width:95px;

    height:95px;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    background:#fafafa;

    border:1px solid #ececec;

    transition:.35s;
}

.icon-box i{

    font-size:32px;

    color:#222;

    transition:.35s;
}

.menu-item span{

    margin-top:18px;

    font-size:15px;

    font-weight:600;

    color:#444;
}

.menu-item:hover{

    transform:translateY(-8px);
}

.menu-item:hover .icon-box{

    background:#111;

    border-color:#111;

    box-shadow:
        0 18px 40px rgba(0,0,0,.18);
}

.menu-item:hover .icon-box i{

    color:#fff;

    transform:scale(1.15);
}

/* ==========================================
   DIVIDER
========================================== */

.section{

    position:relative;
}

/* На странице корзины декоративная линия секции перекрывала заголовок,
   фотографии товаров и блок итоговой суммы. */
.section::after{
    content:none;
}

/* ==========================================
   SMALL ANIMATIONS
========================================== */

.brand-card,
.menu-item,
.icon-box{

    will-change:transform;
}

.brand-card:active{

    transform:scale(.98);
}

.menu-item:active{

    transform:scale(.97);
}
/* ==========================================
   PRODUCTS
========================================== */

.products{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:35px;

    padding:30px 60px 80px;

    background:#fff;

    margin-bottom:0;
}

/* ==========================================
   PRODUCT CARD
========================================== */

.product-card{

    position:relative;

    display:flex;

    flex-direction:column;

    background:#fff;

    border-radius:24px;

    overflow:hidden;

    cursor:pointer;

    transition:.35s;

    border:1px solid #ececec;
}

.product-card:hover{

    transform:translateY(-10px);

    box-shadow:
        0 25px 60px rgba(0,0,0,.12);
}

/* ==========================================
   IMAGE
========================================== */

.product-card img{

    width:100%;

    height:370px;

    object-fit:cover;

    transition:.45s;

    background:#f5f5f5;
}

.product-card:hover img{

    transform:scale(1.06);
}

/* ==========================================
   BRAND
========================================== */

.product-brand{

    padding:18px 22px 5px;

    display:block;

    font-size:13px;

    color:#888;

    font-weight:600;

    letter-spacing:1px;

    text-transform:uppercase;
}

/* ==========================================
   NAME
========================================== */

.product-name{

    padding:0 22px;

    font-size:18px;

    font-weight:600;

    line-height:1.5;

    color:#111;

    min-height:58px;

    display:-webkit-box;

    -webkit-line-clamp:2;

    -webkit-box-orient:vertical;

    overflow:hidden;
}

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

.product-body{

    margin-top:auto;

    padding:22px;

    display:flex;

    justify-content:space-between;

    align-items:flex-end;
}

/* ==========================================
   PRICE
========================================== */

.price-wrapper{

    display:flex;

    flex-direction:column;

    align-items:flex-start;

    gap:6px;
}

.new-price{

    font-size:24px;

    font-weight:700;

    color:#111;
}

.old-price{

    font-size:14px;

    color:#9d9d9d;

    text-decoration:line-through;
}

.product-price{

    font-size:24px;

    font-weight:700;

    color:#111;
}

/* ==========================================
   RATING
========================================== */

.product-rating{

    display:flex;

    align-items:center;

    gap:6px;

    font-size:15px;

    color:#ffb400;

    font-weight:600;
}

.product-rating i{

    font-size:15px;
}

/* ==========================================
   SALE
========================================== */

.sale-badge{

    position:absolute;

    top:18px;

    left:18px;

    background:#111;

    color:#fff;

    padding:8px 18px;

    border-radius:100px;

    font-size:12px;

    font-weight:700;

    letter-spacing:1px;

    animation:none;

    z-index:5;
}

/* ==========================================
   IMAGE SHADOW
========================================== */

.product-card::after{

    content:"";

    position:absolute;

    left:0;

    right:0;

    top:280px;

    height:90px;

    background:linear-gradient(
        rgba(255,255,255,0),
        rgba(255,255,255,1)
    );

    pointer-events:none;
}

/* ==========================================
   HOVER DETAILS
========================================== */

.product-card:hover .product-name{

    color:#000;
}

.product-card:hover .new-price,
.product-card:hover .product-price{

    transform:translateX(4px);

    transition:.3s;
}

.product-card:hover .product-brand{

    color:#444;
}
/* ==========================================
   BOTTOM NAV (DESKTOP)
========================================== */

.bottom-nav{

    position:fixed;

    bottom:0;

    left:0;

    width:100%;

    background:rgba(255,255,255,.96);

    backdrop-filter:blur(18px);

    border-top:1px solid #ececec;

    display:flex;

    justify-content:center;

    gap:80px;

    padding:22px 40px;

    z-index:999;
}

.bottom-nav a{

    display:flex;

    align-items:center;

    gap:12px;

    text-decoration:none;

    color:#666;

    font-size:15px;

    font-weight:600;

    transition:.30s;
}

.bottom-nav a i{

    font-size:20px;

    transition:.30s;
}

.bottom-nav a:hover{

    color:#111;

    transform:translateY(-2px);
}

.bottom-nav a.active{

    color:#111;
}

@media(min-width:601px){.bottom-nav{display:none}}

/* ==========================================
   GLOBAL TRANSITIONS
========================================== */

button,
input,
img,
a,
.product-card,
.brand-card,
.menu-item,
.icon-box{

    transition:.3s ease;
}

/* ==========================================
   SCROLLBAR
========================================== */

::-webkit-scrollbar{

    width:10px;

    height:10px;
}

::-webkit-scrollbar-track{

    background:#f3f3f3;
}

::-webkit-scrollbar-thumb{

    background:#cfcfcf;

    border-radius:100px;
}

::-webkit-scrollbar-thumb:hover{

    background:#999;
}

/* ==========================================
   SELECTION
========================================== */

::selection{

    background:#111;

    color:#fff;
}

/* ==========================================
   IMAGE QUALITY
========================================== */

img{

    display:block;

    user-select:none;

    -webkit-user-drag:none;
}

/* ==========================================
   LINKS
========================================== */

a{

    color:inherit;
}

/* ==========================================
   INPUT PLACEHOLDER
========================================== */

input::placeholder{

    color:#999;

    font-size:15px;
}

/* ==========================================
   SECTION SPACING
========================================== */

.section+.brands{

    margin-top:-10px;
}

.brands+.menu-icons{

    margin-top:15px;
}

.menu-icons+.products{

    margin-top:25px;
}

/* ==========================================
   SOFT BACKGROUND
========================================== */

body{

    background:
    linear-gradient(
        180deg,
        #efefef 0%,
        #f7f7f7 100%
    );

    padding-bottom:0;
}

@media(max-width:600px){
    body{padding-bottom:76px;}
    .page-topbar{padding:20px 25px 0;}
}

/* ==========================================
   APP HOVER
========================================== */

.app{

    transition:.35s;
}

.app:hover{

    box-shadow:
        0 25px 70px rgba(0,0,0,.10);
}

/* ==========================================
   FADE ANIMATION
========================================== */

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(35px);

    }

    to{

        opacity:1;

        transform:none;

    }
}

.header,
.section,
.brands,
.menu-icons,
.products{

    animation:fadeUp .7s ease;
}

/* ==========================================
   READY FOR RESPONSIVE
========================================== */

/*
Следующим этапом здесь будут media-запросы
для планшетов и мобильных устройств.
*/
#cartItems{
    padding:0 60px 40px;
    display:flex;
    flex-direction:column;
    gap:28px;
}

.cart-card{
    display:flex;
    gap:30px;
    background:#fff;
    border:1px solid #ececec;
    border-radius:24px;
    overflow:hidden;
    transition:.35s;
    box-shadow:0 10px 30px rgba(0,0,0,.04);
}

.cart-card:hover{
    transform:translateY(-6px);
    box-shadow:0 20px 50px rgba(0,0,0,.10);
}

.cart-image{
    width:220px;
    height:260px;
    object-fit:cover;
    background:#f5f5f5;
}

.cart-info{
    flex:1;
    padding:28px;
    display:flex;
    flex-direction:column;
}

.cart-brand{
    font-size:13px;
    color:#888;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:1px;
    margin-bottom:10px;
}

.cart-name{
    font-size:28px;
    font-weight:700;
    color:#111;
    line-height:1.3;
    margin-bottom:25px;
}

.cart-bottom{
    margin-top:auto;
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
}

.remove-btn{
    border:none;
    background:#111;
    color:#fff;
    padding:14px 26px;
    border-radius:100px;
    cursor:pointer;
    font-size:14px;
    font-weight:600;
    transition:.3s;
}

.remove-btn:hover{
    background:#222;
    transform:translateY(-2px);
}

#cartTotal{
    padding:0 60px 70px;
}

.total-box{
    background:#fff;
    border-radius:24px;
    border:1px solid #ececec;
    padding:35px;
    box-shadow:0 10px 30px rgba(0,0,0,.05);
}

.total{
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:28px;
    font-weight:700;
    margin-bottom:30px;
}

.checkout{
    width:100%;
    height:64px;
    border:none;
    border-radius:18px;
    background:#111;
    color:#fff;
    font-size:18px;
    font-weight:600;
    cursor:pointer;
    transition:.35s;
}

.checkout:hover{
    background:#222;
    transform:translateY(-3px);
}

.empty{
    margin:80px 60px;
    background:#fff;
    border:1px solid #ececec;
    border-radius:24px;
    padding:70px;
    text-align:center;
    font-size:24px;
    font-weight:600;
    color:#777;
}

/* ==========================================
   CART PAGE OVERRIDES
========================================== */

.page-topbar + .section{
    padding-top:34px;
}

#cartItems{
    gap:18px;
}

.cart-card{
    min-height:220px;
}

.cart-image{
    width:200px;
    height:auto;
    min-height:220px;
}

.cart-name{
    max-width:680px;
    font-size:23px;
}

.cart-bottom .price-wrapper,
.cart-bottom .product-price{
    font-size:22px;
}

.cart-bottom .new-price{
    font-size:24px;
}

.cart-bottom .old-price{
    font-size:14px;
}

.total-box{
    max-width:760px;
    margin-left:auto;
}

@media(max-width:768px){
    .page-topbar{
        padding:20px 20px 0;
    }

    .page-topbar + .section{
        padding:28px 20px 10px;
    }

    .section-title{
        font-size:28px;
    }

    #cartItems{
        padding:0 20px 28px;
        gap:16px;
    }

    .cart-card{
        flex-direction:column;
        gap:0;
        border-radius:18px;
    }

    .cart-image{
        width:100%;
        height:260px;
        min-height:0;
    }

    .cart-info{
        padding:20px;
    }

    .cart-name{
        margin-bottom:22px;
        font-size:19px;
    }

    .cart-bottom{
        align-items:center;
        gap:14px;
    }

    .remove-btn{
        padding:11px 15px;
        font-size:12px;
    }

    #cartTotal{
        padding:0 20px 35px;
    }

    .total-box{
        padding:23px 20px;
        border-radius:18px;
    }

    .total{
        margin-bottom:20px;
        font-size:21px;
    }

    .checkout{
        height:54px;
        border-radius:14px;
        font-size:15px;
    }

    .empty{
        margin:30px 20px;
        padding:50px 20px;
        border-radius:18px;
        font-size:19px;
    }
}

.checkout-open{overflow:hidden}
.checkout-modal{position:fixed;inset:0;z-index:2500;display:grid;place-items:center;padding:20px;background:rgba(0,0,0,.5)}
.checkout-modal[hidden]{display:none!important}
.checkout-modal__dialog{position:relative;width:min(100%,510px);max-height:calc(100vh - 40px);overflow:auto;padding:32px;border-radius:22px;background:#fff;box-shadow:0 25px 70px rgba(0,0,0,.28)}
.checkout-modal__close{position:absolute;top:14px;right:16px;width:34px;height:34px;border:0;border-radius:50%;background:#f2f2f2;cursor:pointer;font-size:25px;line-height:1}.checkout-modal__eyebrow{color:#777;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}.checkout-modal h2{margin:8px 0;font-size:25px}.checkout-modal__summary{margin:0 0 22px;color:#666;font-size:14px;font-weight:600}.checkout-form{display:grid;gap:14px}.checkout-form label{display:grid;gap:7px;color:#333;font-size:12px;font-weight:600}.checkout-form input,.checkout-form textarea,.checkout-form select{width:100%;padding:12px;border:1px solid #ddd;border-radius:10px;outline:0;background:#fff;font:inherit;resize:vertical}.checkout-form input:focus,.checkout-form textarea:focus,.checkout-form select:focus{border-color:#111}.checkout-form__notice{padding:11px;border-radius:10px;background:#f6f6f6;color:#777;font-size:12px;line-height:1.5}.checkout-confirm{padding:14px;border:0;border-radius:10px;background:#111;color:#fff;cursor:pointer;font:inherit;font-size:14px;font-weight:700}.checkout-result{min-height:18px;margin:0;color:#18794e;font-size:12px;font-weight:600}@media(max-width:600px){.checkout-modal{padding:12px}.checkout-modal__dialog{padding:26px 20px}}
