/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Segoe UI;
    background:#f3f4f6;
    color:#333;
}

/* HEADER */
header{
    background:linear-gradient(135deg,#ec4899,#f43f5e);
    color:white;
    text-align:center;
    padding:40px 20px;
}

header h1{
    font-size:2.7rem;
}

/* NAV */
nav{
    background:#be185d;
    padding:16px;
}

nav ul{
    display:flex;
    justify-content:center;
    list-style:none;
    gap:40px;
}

nav a{
    color:white;
    text-decoration:none;
    font-size:18px;
}

nav a:hover{
    color:#fecdd3;
}

/* MAIN */
.main-content{
    padding:40px;
}

/* PRODUCT */
.product-list{
    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));

    gap:30px;
}

/* CARD */
.product-card{
    background:white;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    transition:0.3s;
}

.product-card:hover{
    transform:translateY(-10px);
}

.product-card img{
    width:100%;
    height:250px;
    object-fit:cover;
}

.product-card h2{
    padding:18px 18px 10px;
}

.product-card p{
    padding:0 18px 10px;
}

.price{
    color:#e11d48;
    font-size:1.5rem;
    font-weight:bold;
}

/* BUTTON */
.button{
    width:90%;
    margin:15px auto;
    display:block;
    padding:14px;
    border:none;
    border-radius:10px;
    background:#ec4899;
    color:white;
    font-size:16px;
    cursor:pointer;
    transition:0.3s;
}

.button:hover{
    background:#db2777;
}

/* DETAIL BUTTON */
.detail-btn{
    width:90%;
    margin:0 auto 20px;
    display:block;
    text-align:center;
    padding:14px;
    border:2px solid #ec4899;
    border-radius:10px;
    background:white;
    color:#ec4899;
    text-decoration:none;
    transition:0.3s;
}

.detail-btn:hover{
    background:#ec4899;
    color:white;
}

/* FOOTER */
.footer{
    margin-top:50px;
    background:#111827;
    color:white;
    padding-top:50px;
}

.footer-container{
    width:90%;
    margin:auto;

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(220px,1fr));

    gap:40px;

    padding-bottom:40px;
}

.footer-box h2,
.footer-box h3{
    margin-bottom:20px;
}

.footer-box p{
    color:#d1d5db;
    margin-bottom:12px;
}

.footer-bottom{
    border-top:1px solid rgba(255,255,255,0.1);
    text-align:center;
    padding:20px;
    color:#9ca3af;
}

/* DETAIL PAGE */
.detail-container{
    width:90%;
    max-width:1200px;
    margin:50px auto;

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:40px;

    background:white;

    padding:40px;

    border-radius:20px;

    box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

.detail-image img{
    width:100%;
    border-radius:20px;
}

.detail-info h2{
    font-size:2.5rem;
    margin-bottom:20px;
}

.detail-price{
    color:#e11d48;
    font-size:2rem;
    font-weight:bold;
    margin-bottom:20px;
}

.detail-desc{
    line-height:1.8;
    margin-bottom:20px;
}

.detail-info ul{
    margin-bottom:30px;
    padding-left:20px;
}

.detail-info li{
    margin-bottom:12px;
}

.back-btn{
    display:inline-block;
    margin-top:20px;
    color:#ec4899;
    text-decoration:none;
    font-weight:bold;
}

.back-btn:hover{
    color:#be185d;
}

/* RESPONSIVE */
@media(max-width:768px){

    nav ul{
        flex-direction:column;
        align-items:center;
        gap:15px;
    }

    .main-content{
        padding:20px;
    }

    .detail-container{
        grid-template-columns:1fr;
        padding:20px;
    }

    .detail-info h2{
        font-size:2rem;
    }

}