*{
    box-sizing:border-box;
}

body{
    margin:0;
    background:#f7f6f4;
    color:#191919;
    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

a{
    color:inherit;
}

.site-header{
    position:sticky;
    top:0;
    z-index:50;
    background:rgba(255,255,255,.96);
    border-bottom:1px solid #e8e4df;
}

.header-inner{
    max-width:1250px;
    margin:auto;
    padding:16px 22px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
}

.brand{
    font-size:21px;
    font-weight:900;
    letter-spacing:1px;
    text-decoration:none;
}

.nav{
    display:flex;
    align-items:center;
    gap:18px;
}

.nav a{
    text-decoration:none;
    font-size:14px;
    font-weight:700;
}

.cart-link{
    padding:9px 13px;
    background:#171717;
    color:#fff;
    border-radius:999px;
}

.wrap{
    max-width:1250px;
    margin:auto;
    padding:28px 22px 60px;
}

.hero{
    min-height:420px;
    padding:55px;
    border-radius:28px;
    background:
        linear-gradient(
            135deg,
            #e9ded3,
            #f6f0ea
        );
    display:flex;
    align-items:center;
}

.hero-content{
    max-width:620px;
}

.eyebrow{
    text-transform:uppercase;
    letter-spacing:2px;
    font-size:11px;
    font-weight:900;
    color:#73675e;
}

.hero h1{
    margin:10px 0 15px;
    font-size:54px;
    line-height:1.02;
}

.hero p{
    color:#655e59;
    line-height:1.7;
    font-size:17px;
}

.button{
    display:inline-block;
    padding:13px 18px;
    border:0;
    border-radius:11px;
    background:#171717;
    color:#fff;
    text-decoration:none;
    font-weight:800;
    cursor:pointer;
}

.button.secondary{
    background:#fff;
    color:#171717;
    border:1px solid #ddd7d1;
}

.section-head{
    margin:42px 0 18px;
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:20px;
}

.section-head h2{
    margin:0;
    font-size:28px;
}

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

.category{
    min-height:150px;
    padding:22px;
    border-radius:18px;
    background:#fff;
    border:1px solid #e7e3df;
    text-decoration:none;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
}

.category strong{
    font-size:19px;
}

.category span{
    margin-top:6px;
    color:#7b746e;
    font-size:13px;
}

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

.product-card{
    background:#fff;
    border:1px solid #e7e3df;
    border-radius:18px;
    overflow:hidden;
}

.product-image{
    height:210px;
    background:
        linear-gradient(
            145deg,
            #eee9e4,
            #ddd4cc
        );
    display:flex;
    align-items:center;
    justify-content:center;
    color:#847a72;
    font-weight:800;
}

.product-body{
    padding:17px;
}

.product-name{
    margin:0 0 7px;
    font-size:17px;
}

.product-meta{
    color:#837b74;
    font-size:12px;
    text-transform:capitalize;
}

.product-price{
    margin:13px 0;
    font-size:18px;
    font-weight:900;
}

.product-card form{
    margin:0;
}

.product-card .button{
    width:100%;
}

.panel{
    max-width:780px;
    margin:20px auto;
    padding:25px;
    background:#fff;
    border:1px solid #e7e3df;
    border-radius:20px;
}

.field{
    margin-bottom:16px;
}

.field label{
    display:block;
    margin-bottom:7px;
    font-size:13px;
    font-weight:800;
}

.field input,
.field select{
    width:100%;
    padding:13px;
    border:1px solid #d9d4cf;
    border-radius:10px;
    background:#fff;
    font:inherit;
}

.cart-row{
    display:grid;
    grid-template-columns:
        1fr auto auto;
    gap:15px;
    align-items:center;
    padding:16px 0;
    border-bottom:1px solid #eeeae6;
}

.cart-row:last-child{
    border-bottom:0;
}

.total{
    display:flex;
    justify-content:space-between;
    gap:20px;
    padding:20px 0;
    font-size:20px;
    font-weight:900;
}

.notice{
    padding:14px;
    border-radius:11px;
    background:#f2f0ed;
    margin:15px 0;
}

.success{
    background:#eaf7ed;
}

.footer{
    padding:35px 22px;
    text-align:center;
    color:#77706a;
    font-size:13px;
}

@media(max-width:900px){

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

    .hero{
        min-height:350px;
        padding:35px;
    }

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

@media(max-width:580px){

    .header-inner{
        padding:14px 16px;
    }

    .nav a:not(.cart-link){
        display:none;
    }

    .wrap{
        padding:18px 16px 45px;
    }

    .hero{
        min-height:330px;
        padding:26px;
        border-radius:20px;
    }

    .hero h1{
        font-size:34px;
    }

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

    .category-grid{
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .product-image{
        height:160px;
    }

    .product-body{
        padding:13px;
    }

    .cart-row{
        grid-template-columns:1fr;
    }
}


/* ============================================================
   FASHION PRODUCT IMAGES
   ============================================================ */

.product-image{
    position:relative;
    width:100%;
    height:auto;
    aspect-ratio:4 / 5;
    overflow:hidden;
    background:#f1efec;
}

.product-image img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    transition:transform .35s ease;
}

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

.product-card{
    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.product-card:hover{
    transform:translateY(-3px);
    box-shadow:0 12px 30px rgba(0,0,0,.08);
}

@media(max-width:580px){

    .product-image{
        height:auto;
        aspect-ratio:4 / 5;
    }

}

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

.catalog-section{
    padding-top:25px;
}

.catalog-toolbar{
    margin-top:34px;
    padding:20px;
    background:#fff;
    border:1px solid #e7e3df;
    border-radius:18px;
}

.catalog-search{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:10px;
}

.catalog-search input{
    width:100%;
    padding:14px 16px;
    border:1px solid #d9d4cf;
    border-radius:11px;
    font:inherit;
}

.catalog-filter-grid{
    display:grid;
    grid-template-columns:
        repeat(5,minmax(0,1fr))
        auto;
    gap:12px;
    align-items:end;
    margin-top:15px;
}

.catalog-filter-grid .field{
    margin:0;
}

.catalog-filter-actions{
    display:flex;
    gap:7px;
}

.catalog-page-count{
    color:#77706a;
    font-size:14px;
    font-weight:700;
}

.product-sku{
    margin-bottom:7px;
    color:#99918a;
    font-size:10px;
    font-weight:800;
    letter-spacing:.7px;
}

.product-option-preview{
    margin-top:7px;
    color:#706963;
    font-size:12px;
    line-height:1.4;
}

.delivery-text{
    margin:-4px 0 12px;
    color:#706963;
    font-size:11px;
}

.product-badge{
    position:absolute;
    top:12px;
    left:12px;
    padding:6px 9px;
    border-radius:999px;
    background:#171717;
    color:#fff;
    font-size:10px;
    font-weight:800;
}

.product-placeholder{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#847a72;
    font-weight:800;
}

.pagination{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:center;
    gap:7px;
    margin-top:35px;
}

.page-button{
    min-width:42px;
    padding:10px 13px;
    border:1px solid #ded9d4;
    border-radius:9px;
    background:#fff;
    color:#292522;
    text-align:center;
    text-decoration:none;
    font-size:13px;
    font-weight:800;
}

.page-button:hover{
    border-color:#171717;
}

.page-button.active{
    background:#171717;
    color:#fff;
    border-color:#171717;
}

.page-dots{
    padding:8px 3px;
    color:#8b837c;
}

@media(max-width:1050px){

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

    .catalog-filter-actions{
        align-self:end;
    }
}

@media(max-width:700px){

    .catalog-toolbar{
        padding:14px;
    }

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

    .catalog-filter-grid{
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .catalog-filter-actions{
        grid-column:1 / -1;
    }

    .catalog-filter-actions .button{
        flex:1;
        text-align:center;
    }
}

@media(max-width:430px){

    .catalog-filter-grid{
        grid-template-columns:1fr 1fr;
        gap:9px;
    }

    .catalog-filter-grid label{
        font-size:11px;
    }

    .catalog-filter-grid input,
    .catalog-filter-grid select{
        font-size:13px;
        padding:11px 9px;
    }

    .pagination{
        gap:5px;
    }

    .page-button{
        min-width:38px;
        padding:9px 10px;
    }
}



/* ============================================================
   PRODUCT CARD REDESIGN
   Image above — information below
   ============================================================ */

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

.product-card{
    display:flex;
    flex-direction:column;
    overflow:hidden;

    background:#ffffff;
    border:1px solid #ebe7e3;
    border-radius:18px;

    box-shadow:
        0 4px 18px rgba(0,0,0,.045);

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

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

    box-shadow:
        0 14px 32px rgba(0,0,0,.09);
}


/* PHOTO */

.product-image{
    position:relative;

    width:100%;
    aspect-ratio:4 / 5;

    overflow:hidden;

    background:#f2f0ed;

    border-radius:0;
}

.product-image img{
    display:block;

    width:100%;
    height:100%;

    object-fit:cover;
    object-position:center;

    transition:
        transform .35s ease;
}

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


/* PRODUCT INFORMATION */

.product-body{
    position:relative;

    display:flex;
    flex-direction:column;
    flex:1;

    padding:17px 17px 18px;

    background:#ffffff;

    color:#171717;
}


/* SKU */

.product-sku{
    margin:0 0 7px;

    color:#9a938d;

    font-size:10px;
    font-weight:700;

    letter-spacing:.7px;

    line-height:1.3;
}


/* NAME */

.product-name{
    margin:0 0 7px;

    color:#171717;

    font-size:17px;
    font-weight:800;

    line-height:1.25;
}


/* CATEGORY */

.product-meta{
    margin:0 0 11px;

    color:#746d67;

    font-size:12px;
    line-height:1.4;
}


/* COLORS / SIZES */

.product-option-preview{
    margin:3px 0;

    color:#625c57;

    font-size:12px;
    line-height:1.4;
}


/* PRICE */

.product-price{
    margin-top:15px;
    margin-bottom:8px;

    color:#171717;

    font-size:22px;
    font-weight:900;

    line-height:1.2;
}


/* DELIVERY */

.delivery-text{
    min-height:34px;

    margin:0 0 15px;

    color:#817a74;

    font-size:11px;
    line-height:1.45;
}


/* Keep button at bottom */

.product-body form{
    margin-top:auto;
}

.product-body .button{
    display:block;

    width:100%;

    padding:14px 16px;

    border-radius:12px;

    text-align:center;
}


/* FEATURED BADGE */

.product-badge{
    position:absolute;

    top:12px;
    left:12px;

    z-index:2;

    padding:6px 10px;

    background:#171717;
    color:#ffffff;

    border-radius:999px;

    font-size:10px;
    font-weight:800;

    letter-spacing:.3px;
}


/* TABLET */

@media(max-width:1050px){

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

}


/* SMALL TABLET */

@media(max-width:780px){

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

        gap:14px;
    }

}


/* PHONE */

@media(max-width:520px){

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

        gap:10px;
    }

    .product-card{
        border-radius:13px;
    }

    .product-body{
        padding:12px;
    }

    .product-name{
        font-size:14px;
    }

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

    .product-sku{
        font-size:8px;
    }

    .product-meta,
    .product-option-preview{
        font-size:10px;
    }

    .delivery-text{
        font-size:9px;
        min-height:28px;
    }

    .product-body .button{
        padding:12px 8px;
        font-size:13px;
    }

}



/* ============================================================
   FINAL PRODUCT CARD LAYOUT
   NEVER PLACE PRODUCT INFORMATION OVER IMAGE
   ============================================================ */

.product-card{
    position:relative !important;
    display:flex !important;
    flex-direction:column !important;
    height:100% !important;
    overflow:hidden !important;

    background:#fff !important;
}


/* IMAGE AREA — IMAGE ONLY */

.product-card .product-image{
    position:relative !important;

    display:block !important;

    width:100% !important;
    height:auto !important;
    aspect-ratio:4 / 5 !important;

    flex:none !important;

    overflow:hidden !important;

    background:#f2f0ed !important;
}


.product-card .product-image img{
    position:static !important;

    display:block !important;

    width:100% !important;
    height:100% !important;

    object-fit:cover !important;
    object-position:center !important;
}


/* INFORMATION AREA — ALWAYS BELOW IMAGE */

.product-card .product-body{
    position:static !important;

    top:auto !important;
    right:auto !important;
    bottom:auto !important;
    left:auto !important;

    transform:none !important;

    display:flex !important;
    flex-direction:column !important;
    flex:1 !important;

    width:100% !important;

    padding:16px !important;

    background:#fff !important;

    color:#171717 !important;

    opacity:1 !important;
}


/* FORCE ALL TEXT DARK ON WHITE */

.product-card .product-body,
.product-card .product-body h3,
.product-card .product-body strong,
.product-card .product-body span,
.product-card .product-body div{
    text-shadow:none !important;
}


.product-card .product-name{
    color:#171717 !important;
}


.product-card .product-price{
    color:#171717 !important;
}


.product-card .product-meta,
.product-card .product-option-preview,
.product-card .delivery-text,
.product-card .product-sku{
    position:static !important;
}


/* Only badge may remain over image */

.product-card .product-badge{
    position:absolute !important;
    top:12px !important;
    left:12px !important;
    z-index:5 !important;
}


@media(max-width:520px){

    .product-card .product-body{
        padding:12px !important;
    }

}

