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

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

html{
    scroll-behavior:smooth;
}

body{

    font-family:Arial, sans-serif;

    background:#f5f5f5;

    padding-top:90px;

    overflow-x:hidden;
}


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

.header{

    position:fixed;

    top:0;

    left:0;

    right:0;

    width:100%;

    height:70px;

    background:white;

    z-index:9999;

    border-bottom:1px solid #eee;

    transition:transform 0.3s ease;

    box-shadow:0 2px 10px rgba(0,0,0,0.03);
}


.header.hide-header{

    transform:translateY(-100%);
}


.top-header{

    width:100%;

    height:70px;

    padding:0 40px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    max-width:1440px;

    margin:0 auto;
}


/* =========================
   LEFT MENU
========================= */

.nav-left{

    display:flex;

    align-items:center;

    gap:25px;
}


.nav-left a{

    text-decoration:none;

    color:black;

    font-size:14px;

    font-weight:bold;

    transition:0.3s;
}


.nav-left a:hover{

    color:#666;
}


/* =========================
   LOGO
========================= */

.logo a{

    text-decoration:none;

    color:black;

    font-size:27px;

    font-weight:bold;

    letter-spacing:3px;

    text-transform:uppercase;
}


/* =========================
   RIGHT MENU
========================= */

.nav-right{

    display:flex;

    align-items:center;

    gap:18px;
}


.nav-right a{

    text-decoration:none;

    color:black;

    font-size:14px;

    transition:0.3s;
}


.nav-right a:hover{

    color:#666;
}


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

.search-form{

    position:relative;
}


.search-form input{

    width:220px;

    padding:11px 17px;

    border:1px solid #e5e5e5;

    border-radius:30px;

    outline:none;

    background:#fafafa;

    transition:0.3s;
}


.search-form input:focus{

    background:#fff;

    box-shadow:
        0 0 0 3px rgba(0,0,0,0.06);

    border-color:#ddd;
}


/* =========================
   USER
========================= */

.user-name{

    font-size:14px;

    font-weight:bold;
}


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

.cart-btn{

    padding:10px 18px;

    background:black;

    color:white !important;

    border-radius:30px;

    transition:0.3s;

    box-shadow:
        0 8px 20px rgba(0,0,0,0.12);
}


.cart-btn:hover{

    background:#333;
}


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

.hero{

    width:100%;

    height:460px;

    background:#111;

    display:flex;

    justify-content:center;

    align-items:center;

    color:white;

    text-align:center;

    letter-spacing:-.03em;
}


.hero-content{

    max-width:900px;

    padding:30px;
}


.hero-content h1{

    font-size:clamp(38px,6vw,72px);

    line-height:.98;

    margin-bottom:18px;
}


.hero-content p{

    font-size:18px;

    font-weight:400;

    opacity:.92;

    margin-bottom:25px;
}


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

.products{

    width:100%;

    max-width:1440px;

    margin:48px auto;

    padding:0 24px;

    display:grid;

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

    gap:22px;
}


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

.card{

    background:white;

    border-radius:10px;

    overflow:hidden;

    border:1px solid #e9e9e9;

    box-shadow:
        0 10px 30px rgba(0,0,0,.05);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}


.card:hover{

    transform:translateY(-5px);

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


/* =========================
   PRODUCT IMAGE CONTAINER
========================= */

.product-image-link{

    display:block;

    width:100%;

    text-decoration:none;
}


.image-wrap{

    position:relative;

    width:100%;

    aspect-ratio:4 / 5;

    overflow:hidden;

    background:#f7f7f7;

    line-height:0;
}


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

.card img{

    width:100%;

    height:100%;

    display:block;

    object-fit:contain;

    transition:
        transform .3s ease;
}


.card img:hover{

    transform:scale(1.03);
}


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

/*
   IMPORTANT:

   position:absolute
   means the badge sits ON TOP
   of the image and DOES NOT take
   any space.

   Therefore it cannot reduce
   the image size.
*/

.sale-badge{

    position:absolute;

    top:14px;

    left:14px;

    z-index:20;

    width:58px;

    height:58px;

    display:flex;

    align-items:center;

    justify-content:center;

    background:#111;

    color:#fff;

    border-radius:50%;

    font-size:14px;

    font-weight:800;

    letter-spacing:.02em;

    line-height:1;

    box-shadow:
        0 6px 18px rgba(0,0,0,.25);

    pointer-events:none;

    user-select:none;
}


/* =========================
   CARD BODY
========================= */

.card-body{

    padding:18px 18px 20px;

    background:#fff;
}


/* =========================
   TITLE
========================= */

.title{

    font-size:16px;

    letter-spacing:.01em;

    font-weight:bold;

    margin-bottom:10px;

    min-height:40px;

    color:#111;
}


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

.price{

    color:#111;

    font-size:19px;

    font-weight:bold;

    margin-bottom:10px;

    line-height:1.2;
}


/* =========================
   SALE PRICE CONTAINER
========================= */

.sale-product-price{

    display:flex !important;

    align-items:center;

    gap:8px;

    flex-wrap:wrap;

    min-height:24px;
}


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

.sale-product-price .old-price{

    display:inline-block !important;

    color:#888 !important;

    font-size:15px !important;

    font-weight:400 !important;

    line-height:1.2;

    margin:0 !important;

    padding:0 !important;

    text-decoration:none !important;

    white-space:nowrap;
}


/* =========================
   OLD PRICE LINE
========================= */

.sale-product-price .old-price del{

    display:inline !important;

    color:#888 !important;

    text-decoration-line:line-through !important;

    text-decoration-style:solid !important;

    text-decoration-thickness:2px !important;

    text-decoration-color:#888 !important;

    text-decoration-skip-ink:none !important;

    white-space:nowrap;
}


/* =========================
   NEW SALE PRICE
========================= */

.sale-product-price .sale-price{

    display:inline-block !important;

    color:#b00000 !important;

    font-size:20px !important;

    font-weight:800 !important;

    line-height:1.2;

    margin:0 !important;

    padding:0 !important;

    text-decoration:none !important;

    white-space:nowrap;
}


/* =========================
   SIZES
========================= */

.sizes{

    color:#6b6b6b;

    font-size:14px;

    line-height:1.5;
}


/* =========================
   NO RESULT
========================= */

.no-result{

    width:100%;

    grid-column:1 / -1;

    text-align:center;

    padding:50px;

    font-size:20px;

    color:#666;
}


/* =========================
   SALE PAGE HEADER
========================= */

.sale-heading{

    text-align:center;

    padding:55px 20px 10px;

    background:#f7f7f5;
}


.sale-heading h1{

    font-size:42px;

    letter-spacing:.08em;

    margin-bottom:8px;
}


.sale-heading p{

    color:#6b6b6b;
}


.sale-nav{

    font-weight:800 !important;
}


/* =========================
   PAGINATION
========================= */

.pagination{

    width:100%;

    display:flex;

    justify-content:center;

    align-items:center;

    gap:10px;

    margin:50px 0;
}


.pagination a{

    padding:10px 15px;

    background:white;

    color:black;

    text-decoration:none;

    border-radius:5px;

    border:1px solid #ddd;

    transition:0.3s;
}


.pagination a:hover{

    background:black;

    color:white;
}


.pagination .active{

    background:black;

    color:white;
}


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

.footer{

    width:100%;

    background:black;

    color:white;

    margin-top:80px;

    padding:50px 20px 20px;
}


.footer-container{

    width:90%;

    max-width:1440px;

    margin:auto;

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(220px,1fr));

    gap:40px;
}


.footer-box h2,
.footer-box h3{

    margin-bottom:15px;
}


.footer-box h2{

    letter-spacing:2px;
}


.footer-box p,
.footer-box a{

    color:#ccc;

    text-decoration:none;

    display:block;

    margin-bottom:10px;

    line-height:1.7;
}


.footer-box a:hover{

    color:white;
}


.footer-bottom{

    border-top:
        1px solid rgba(255,255,255,0.1);

    margin-top:40px;

    padding-top:20px;

    text-align:center;

    color:#888;
}


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

.hero-actions{

    display:flex;

    gap:12px;

    justify-content:center;

    flex-wrap:wrap;
}


.hero-actions a{

    background:#fff;

    color:#111;

    text-decoration:none;

    padding:13px 22px;

    border-radius:999px;

    font-size:14px;

    font-weight:700;
}


.hero-actions a.alt{

    background:transparent;

    color:#fff;

    border:
        1px solid rgba(255,255,255,.55);
}


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

@media(max-width:1100px){

    .products{

        grid-template-columns:
            repeat(3,minmax(0,1fr));
    }


    .card img{

        height:100%;
    }
}


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

@media(max-width:1000px){

    body{

        padding-top:185px;
    }


    .header{

        height:auto;
    }


    .top-header{

        flex-direction:column;

        height:auto;

        min-height:70px;

        padding:15px;

        gap:15px;
    }


    .nav-left,
    .nav-right{

        flex-wrap:wrap;

        justify-content:center;
    }


    .hero{

        font-size:30px;

        height:350px;
    }


    .search-form input{

        width:100%;
    }
}


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

@media(max-width:800px){

    .products{

        grid-template-columns:
            repeat(2,minmax(0,1fr));

        padding:0 16px;
    }


    .hero{

        height:390px;
    }
}


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

@media(max-width:500px){

    body{

        padding-top:215px;
    }


    .products{

        grid-template-columns:1fr;

        width:94%;

        padding:0;

        gap:15px;

        margin:30px auto;
    }


    .card img{

        height:100%;
    }


    .top-header{

        padding:15px 10px;
    }


    .logo a{

        font-size:24px;
    }


    .nav-left{

        gap:15px;
    }


    .nav-right{

        gap:10px;
    }


    .nav-left,
    .nav-right{

        width:100%;
    }


    .search-form{

        width:100%;
    }


    .search-form input{

        box-sizing:border-box;

        width:100%;
    }


    .hero{

        height:360px;
    }


    .hero-content h1{

        font-size:42px;
    }


    .hero-content p{

        font-size:16px;
    }


    .sale-heading{

        padding-top:40px;
    }


    .sale-heading h1{

        font-size:34px;
    }


    .sale-badge{

        width:54px;

        height:54px;

        top:12px;

        left:12px;

        font-size:13px;
    }


    .pagination{

        gap:5px;

        flex-wrap:wrap;

        margin:30px 10px;
    }


    .pagination a{

        padding:8px 11px;
    }
}


/* Keep the full product image stable on touch/mobile screens */

@media (max-width: 700px) {

    .card img:hover {

        transform: none;
    }
}