/*==================================================
    RESET
==================================================*/

*,
*::before,
*::after{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background:#ffffff;
    color:#222;
    line-height:1.6;
    overflow-x:hidden;
}

img{
    display:block;
    width:100%;
    max-width:100%;
    height:auto;
    object-fit:cover;
}

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

/*==================================================
    HEADER
==================================================*/

.header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 8%;
    background:#111827;
    position:sticky;
    top:0;
    z-index:999;
}

.header__logo img{
    width:160px;
}

/*==================================================
    NAVIGATION
==================================================*/

.header__nav{
    display:flex;
}

.header__menu{
    display:flex;
    align-items:center;
    gap:35px;
}

.header__link{
    color:#ffffff;
    font-size:16px;
    font-weight:500;
    transition:.3s;
}

.header__link:hover{
    color:#38bdf8;
}

/*==================================================
    SEARCH
==================================================*/

.header__search{
    display:flex;
    align-items:center;
}

.header__search-input{

    width:260px;
    height:46px;

    padding:0 18px;

    border:none;
    border-radius:40px;

    outline:none;

    font-size:15px;

    transition:.3s;
}

.header__search-input:focus{

    box-shadow:0 0 0 3px rgba(37,99,235,.2);

}

/*==================================================
    MENU BUTTON
==================================================*/

.header__menu-btn{

    display:none;

    background:none;

    border:none;

    color:#ffffff;

    font-size:30px;

    cursor:pointer;

}

/*==================================================
    HEADER RESPONSIVE
==================================================*/

@media(max-width:768px){

.header{

    flex-wrap:wrap;

}

.header__menu-btn{

    display:block;

}

.header__nav{

    width:100%;
    display:none;
    margin-top:20px;

}

.header__nav--active{

    display:block;

}

.header__menu{

    flex-direction:column;
    align-items:flex-start;
    gap:18px;

}

.header__search{

    width:100%;
    margin-top:20px;

}

.header__search-input{

    width:100%;

}

}

/*==================================================
    HERO
==================================================*/

.hero{

    padding:20px 8%;
    overflow:hidden;

}

.hero-slider{

    position:relative;
    width:100%;
    border-radius:18px;
    overflow:hidden;

}

.hero-slider__track{

    display:flex;
    transition:transform .8s ease;

}

.hero-slider__slide{

    flex:0 0 100%;

}

.hero-slider__slide img{

    width:100%;
    height:600px;
    object-fit:cover;

}

.hero-slider__dots{

    position:absolute;
    bottom:20px;
    left:50%;
    transform:translateX(-50%);

    display:flex;
    gap:10px;

}

.hero-slider__dot{

    width:12px;
    height:12px;

    border-radius:50%;

    background:#ffffff;

    opacity:.5;

    cursor:pointer;

    transition:.3s;

}

.hero-slider__dot--active{

    opacity:1;
    background:#2563eb;

}

@media(max-width:768px){

.hero{

    padding:15px 20px;

}

.hero-slider__slide img{

    height:220px;

}

.hero-slider__dot{

    width:10px;
    height:10px;

}

}

/*==================================================
    BRANDS
==================================================*/

.brands{

    padding:70px 8%;
    background:#ffffff;

}

.brands__grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(150px,1fr));

    gap:25px;

}

.brand-card{

    background:#ffffff;

    border-radius:16px;

    padding:22px;

    display:flex;
    justify-content:center;
    align-items:center;

    border:1px solid #ececec;

    transition:.35s;

}

.brand-card:hover{

    transform:translateY(-8px);

    box-shadow:0 15px 35px rgba(0,0,0,.12);

}

.brand-card__image{

    width:90px;
    height:70px;
    object-fit:contain;

    transition:.35s;

}

.brand-card:hover .brand-card__image{

    transform:scale(1.08);

}

@media(max-width:768px){

.brands{

    padding:45px 20px;

}

.brands__grid{

    grid-template-columns:repeat(2,1fr);

}

.brand-card{

    padding:18px;

}

.brand-card__image{

    width:75px;
    height:60px;

}

}
/*==================================================
    PRODUCTS SECTION
==================================================*/

.products{
    padding:70px 8%;
    background:#f5f7fb;
}

.products__heading{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:40px;
    flex-wrap:wrap;
    gap:20px;
}

.products__title{
    font-size:34px;
    font-weight:700;
    color:#111827;
}

.products__view-all{
    color:#2563eb;
    font-weight:600;
    transition:.3s;
}

.products__view-all:hover{
    color:#1d4ed8;
}

.products__grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
    align-items:stretch;
}

/*==================================================
    PRODUCT CARD
==================================================*/

.product-card{
    display:flex;
    flex-direction:column;
    background:#ffffff;
    border-radius:18px;
    overflow:hidden;
    border:1px solid #ececec;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    transition:all .35s ease;
    height:100%;
}

.product-card:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 35px rgba(0,0,0,.15);
}

/*==================================================
    IMAGE AREA
==================================================*/

.product-card__image-area{
    position:relative;
    display:flex;
    justify-content:center;
    align-items:center;
    height:250px;
    padding:25px;
    background:#ffffff;
    border-bottom:1px solid #eeeeee;
}

.product-card__image-box{
    display:flex;
    justify-content:center;
    align-items:center;
    width:100%;
    height:100%;
}

.product-card__image{
    width:100%;
    max-width:180px;
    max-height:180px;
    object-fit:contain;
    transition:transform .35s ease;
}

.product-card:hover .product-card__image{
    transform:scale(1.08);
}

/*==================================================
    BADGES
==================================================*/

.product-card__badge{
    position:absolute;
    top:15px;
    padding:8px 14px;
    border-radius:8px;
    font-size:13px;
    font-weight:700;
    color:#ffffff;
    z-index:5;
}

.product-card__badge--sale{
    left:15px;
    background:#ef4444;
}

.product-card__badge--new{
    right:15px;
    background:#22c55e;
}

/*==================================================
    CONTENT
==================================================*/

.product-card__content{
    display:flex;
    flex-direction:column;
    flex:1;
    padding:20px;
}

/*==================================================
    TITLE
==================================================*/

.product-card__title{
    margin:0 0 18px;
    font-size:18px;
    font-weight:600;
    line-height:1.5;
    min-height:56px;
}

.product-card__title-link{
    color:#222;
    text-decoration:none;
    transition:.3s;

    display:-webkit-box;
     line-clamp:2; 
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.product-card__title-link:hover{
    color:#2563eb;
}

/*==================================================
    PRICE
==================================================*/

.product-card__price{
    display:flex;
    flex-direction:column;
    gap:6px;
    margin-top:auto;
}

.product-card__old-price{
    color:#9ca3af;
    font-size:15px;
    text-decoration:line-through;
}

.product-card__new-price{
    color: #000;
    font-size:30px;
    font-weight:700;
}

/*==================================================
    BUTTON
==================================================*/

.product-card__button{
    margin-top:20px;
    display:flex;
    justify-content:center;
    align-items:center;
    width:100%;
    height:48px;
    background:#2563eb;
    color:#ffffff;
    border-radius:12px;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.product-card__button:hover{
    background:#1d4ed8;
}

/*==================================================
    RESPONSIVE
==================================================*/

@media(max-width:992px){

.products{
    padding:60px 5%;
}

.products__grid{
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
}

.product-card__image-area{
    height:220px;
}

.product-card__image{
    max-width:160px;
}

.product-card__new-price{
    font-size:26px;
}

}

@media(max-width:768px){

.products{
    padding:45px 20px;
}

.products__heading{
    margin-bottom:25px;
}

.products__title{
    font-size:28px;
}

.products__grid{
    gap:20px;
}

.product-card__image-area{
    height:200px;
    padding:20px;
}

.product-card__image{
    max-width:145px;
}

.product-card__content{
    padding:18px;
}

.product-card__title{
    font-size:16px;
    min-height:48px;
}

.product-card__new-price{
    font-size:24px;
}

.product-card__old-price{
    font-size:14px;
}

.product-card__badge{
    font-size:12px;
    padding:7px 12px;
}

}

@media(max-width:480px){

.products__grid{
    grid-template-columns:1fr;
}

.product-card__image-area{
    height:190px;
}

.product-card__image{
    max-width:130px;
}

.product-card__title{
    font-size:15px;
}

.product-card__new-price{
    font-size:22px;
}

.product-card__old-price{
    font-size:13px;
}

}
/*==================================================
    FLASH SALE SECTION
==================================================*/

.flash-sale{
    padding:70px 8%;
    background:#ffffff;
}

.flash-sale__header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:25px;
    margin-bottom:40px;
}

.flash-sale__tag{
    color:#ef4444;
    font-size:14px;
    font-weight:700;
    letter-spacing:1px;
    text-transform:uppercase;
}

.flash-sale__title{
    font-size:34px;
    font-weight:700;
    color:#111827;
    margin-top:8px;
}

.flash-sale__countdown{
    display:flex;
    gap:15px;
}

.flash-sale__time{
    width:75px;
    height:75px;
    background:#111827;
    color:#ffffff;
    border-radius:14px;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
}

.flash-sale__time span{
    font-size:26px;
    font-weight:700;
}

.flash-sale__time small{
    font-size:12px;
}

.flash-sale__grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
}

/*==================================================
    FOOTER
==================================================*/

.footer{
    margin-top:80px;
    background:#111827;
    color:#ffffff;
}

.footer__container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:40px;
    padding:60px 8%;
}

.footer__logo{
    width:170px;
    margin-bottom:20px;
}

.footer__text{
    color:#d1d5db;
    line-height:1.8;
}

.footer__heading{
    font-size:20px;
    margin-bottom:20px;
}

.footer__list{
    list-style:none;
}

.footer__list li{
    margin-bottom:12px;
}

.footer__list a{
    color:#d1d5db;
    text-decoration:none;
    transition:.3s;
}

.footer__list a:hover{
    color:#3b82f6;
    padding-left:6px;
}

.footer__contact{
    color:#d1d5db;
    margin-bottom:12px;
}

.footer__social{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:20px;
}

.footer__social a{
    background:#2563eb;
    color:#ffffff;
    padding:10px 18px;
    border-radius:8px;
    text-decoration:none;
    transition:.3s;
}

.footer__social a:hover{
    background:#1d4ed8;
}

.footer__bottom{
    border-top:1px solid rgba(255,255,255,.08);
    text-align:center;
    padding:20px;
    color:#9ca3af;
}

/*==================================================
    HEADER CART
==================================================*/

.header__cart{
    position:relative;
    display:flex;
    align-items:center;
    color:#ffffff;
    text-decoration:none;
}

.header__cart svg{
    width:28px;
    height:28px;
    transition:.3s;
}

.header__cart:hover svg{
    stroke:#38bdf8;
}

.header__cart-count{
    position:absolute;
    top:-8px;
    right:-10px;

    min-width:20px;
    height:20px;

    display:flex;
    justify-content:center;
    align-items:center;

    background:#ef4444;
    color:#ffffff;

    border-radius:50%;

    font-size:11px;
    font-weight:700;
}

/*==================================================
    CART DRAWER
==================================================*/

.cart-drawer-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    opacity:0;
    visibility:hidden;
    transition:.35s;
    z-index:998;
}

.cart-drawer-overlay--visible{
    opacity:1;
    visibility:visible;
}

.cart-drawer{
    position:fixed;
    top:0;
    right:0;

    width:420px;
    max-width:100vw;
    height:100vh;

    background:#ffffff;

    display:flex;
    flex-direction:column;

    transform:translateX(100%);
    transition:transform .35s ease;

    box-shadow:-10px 0 35px rgba(0,0,0,.18);

    z-index:999;
}

.cart-drawer--open{
    transform:translateX(0);
}

.cart-drawer__header{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:22px;

    border-bottom:1px solid #ececec;
}

.cart-drawer__title{
    font-size:18px;
    font-weight:700;
    color:#111827;
}

.cart-drawer__close{
    width:36px;
    height:36px;

    border:none;
    border-radius:50%;

    background:#f3f4f6;

    cursor:pointer;

    font-size:20px;

    transition:.3s;
}

.cart-drawer__close:hover{
    background:#e5e7eb;
}

.cart-drawer__body{
    flex:1;
    overflow-y:auto;
    padding:22px;
}

.cart-drawer__empty{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    text-align:center;

    height:100%;
}

.cart-drawer__empty p{
    color:#6b7280;
    margin:18px 0;
}

.cart-drawer__continue{
    background:#16a34a;
    color:#ffffff;
    border:none;
    padding:14px 28px;
    border-radius:10px;
    cursor:pointer;
    transition:.3s;
}

.cart-drawer__continue:hover{
    background:#15803d;
}

.cart-drawer__items{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.cart-drawer__item{
    display:flex;
    gap:15px;
    padding:14px;
    background:#f9fafb;
    border-radius:14px;
}

.cart-drawer__item img{
    width:70px;
    height:70px;
    object-fit:contain;
}

.cart-drawer__item-info{
    flex:1;
}

.cart-drawer__item-name{
    font-size:15px;
    font-weight:600;
    color:#111827;
    margin-bottom:8px;
}

.cart-drawer__item-price{
    color:#2563eb;
    font-weight:700;
}

.cart-drawer__item-remove{
    width:34px;
    height:34px;

    border:none;

    border-radius:50%;

    background:#fee2e2;

    color:#ef4444;

    cursor:pointer;

    transition:.3s;
}

.cart-drawer__item-remove:hover{
    background:#ef4444;
    color:#ffffff;
}

.cart-drawer__footer{
    padding:22px;
    border-top:1px solid #ececec;
}

.cart-drawer__subtotal{
    display:flex;
    justify-content:space-between;
    font-size:18px;
    font-weight:700;
    margin-bottom:18px;
}

.cart-drawer__view-cart,
.cart-drawer__checkout{
    display:block;
    text-align:center;
    text-decoration:none;
    padding:14px;
    border-radius:10px;
    font-weight:600;
    transition:.3s;
}

.cart-drawer__view-cart{
    background:#eef2ff;
    color:#2563eb;
    margin-bottom:12px;
}

.cart-drawer__view-cart:hover{
    background:#dbeafe;
}

.cart-drawer__checkout{
    background:#16a34a;
    color:#ffffff;
}

.cart-drawer__checkout:hover{
    background:#15803d;
}

/*==================================================
    RESPONSIVE
==================================================*/

@media(max-width:768px){

.flash-sale{
    padding:50px 20px;
}

.flash-sale__header{
    flex-direction:column;
    align-items:flex-start;
}

.flash-sale__title{
    font-size:28px;
}

.flash-sale__countdown{
    width:100%;
    justify-content:space-between;
}

.flash-sale__time{
    width:65px;
    height:65px;
}

.footer__container{
    padding:50px 20px;
    text-align:center;
}

.footer__logo{
    margin:auto auto 20px;
}

.footer__social{
    justify-content:center;
}

.cart-drawer{
    width:100%;
}

}

@media(max-width:480px){

.flash-sale__grid{
    grid-template-columns:1fr;
}

.flash-sale__time{
    width:58px;
    height:58px;
}

.flash-sale__time span{
    font-size:20px;
}

.cart-drawer__item{
    flex-direction:column;
    align-items:center;
    text-align:center;
}

.cart-drawer__item img{
    width:90px;
    height:90px;
}

}