/* ===========================
   Reset
=========================== */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}
body{
    font-family:'GmarketSansMedium', sans-serif;
    font-size: large;
    background-color: rgba(0, 0, 0, 0.8);
}

/* ===========================
   Header
=========================== */
header{
    height: 90px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    padding:0 20px;
}

.logo img{
    height: 60px;
    width: auto;
    margin: 0;
}

/* ===========================
   Navigation
=========================== */
nav > ul{
    display:flex;
    align-items: bottom;
    gap:0px;
}
nav ul{
    list-style: none;
}
nav a{
    color:white;
    text-decoration:none;
    font-size: 16px;
    font-weight: 600px;
}
nav > ul > li{
    position: relative;
    padding:10px 10px;
}

nav > ul > li > ul{
    position:absolute;
    top:100%;
    left:0;
    background:#111;
    padding:10px 0;
    min-width:180px;
    box-shadow:0 5px 20px rgba(0,0,0,.2);
    z-index:100;

    opacity:0;
    visibility:hidden;
    transform:translateY(-10px);
    transition:.3s;
}
nav > ul > li:hover > ul{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

nav > ul > li > ul a{
    display: block;
    padding:10px 20px;
    transition: background 0.3s;
}
nav > ul > li > ul a:hover{
    background:#222;
    color:red;
}

nav > ul > li > a{
    display:block;
    padding:10px 20px;
    transition:background 0.3s;
}
nav > ul > li > a:hover{
    background:#222;
    color:red;
}

.login > a{
    color:white;
    text-decoration:none;
    margin: 0;
}


/* ===========================
   Content Section
=========================== */
.content-section{
    max-width:1200px;
    margin:80px auto;
}

.section-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
    color:white;
}

.section-header h2{
    margin-left: 40px;
    font-size: 52px;
}



/* ===========================
   Card
=========================== */

.card-list{
    display:flex;
    gap:25px;
    transition:transform .5s ease;
}

.card{
    min-width:260px;
    max-width:260px;
    flex-shrink:0;
}
.card img{
    width:100%;
    height:380px;
    object-fit:cover;
    border-radius: 10px;
}

.card h3{
    margin-top:15px;
    color:white;
}
.card p{
    color:#666;
}


/* ===========================
   Book
=========================== */

.book-list{
    display:flex;
    justify-content:center;
    gap:80px;
    margin-top:50px;
    flex-wrap:wrap;
}

.book-card{
    width:320px;
    text-align:center;
    color:white;
}

.book-card img{
    width:100%;
    height:450px;
    object-fit:cover;
    border-radius:10px;
    transition:.3s;
}

.book-card img:hover{
    transform:scale(1.03);
}

.book-card h3{
    margin-top:20px;
    font-size:28px;
}

.price{
    margin:15px 0;
    font-size:24px;
    color:#ffcb47;
}

.buy-btn{
    display:inline-block;
    margin-top:10px;
    padding:14px 40px;
    background:#ff4747;
    color:white;
    text-decoration:none;
    border-radius:8px;
    transition:.3s;
}

.buy-btn:hover{
    background:#ff2222;
}


/* ===========================
   book.html
=========================== */


.book-detail{
    max-width:1200px;
    margin:80px auto;
    display:flex;
    gap:60px;
    align-items:flex-start;
    color:white;
}

.detail-image img{
    width:400px;
    border-radius:10px;
}

.detail-info{
    flex:1;
}

.detail-info h2{
    font-size:42px;
    margin-bottom:20px;
}

.detail-price{
    font-size:32px;
    color:#ffcb47;
    margin-bottom:30px;
}

.detail-description{
    line-height:1.8;
    margin-bottom:40px;
    font-size:18px;
}


/* ===========================
   Footer
=========================== */

footer{
    background:#0a0a0a;
    color:#aaa;
    margin-top:150px;
}

footer .container{
    max-width:1200px;
    margin:0 auto;
    padding:30px 0;
}
.footer-logo img{
    height: 60px;
    width: auto;
}

.footer-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    margin-bottom:20px;
}

.footer-sns{
    bottom: 10px;
    display:flex;
    gap:20px;
}

.footer-sns a{
    color:#aaa;
    text-decoration:none;
    transition:.3s;
}

.footer-sns a:hover{
    color:white;
}
.footer-sns img{
    height: 30px;
    width: auto;
    margin: 0px;
}

.footer-bottom{
    border-top:1px solid #333;
    padding-top:30px;
}

.footer-bottom p{
    margin-bottom:10px;
    font-size:14px;
    color:#777;
}

/* ===========================
   Responsive
=========================== */

/* ==========================================
   Tablet (1024px 이하)
========================================== */
@media (max-width:1024px)
{
    header .container{
        padding:0 20px;
    }

    .hero{
        height:320px;
        margin:40px auto;
    }

    .section-header h2{
        font-size:40px;
    }

    .card{
        min-width:220px;
        max-width:220px;
    }

    .card img{
        height:320px;
    }

    footer .container{
        padding:30px 20px;
    }
}


/* ==========================================
   Mobile (768px 이하)
========================================== */
@media (max-width:768px)
{
    /* ---------- Header ---------- */

    header{
        height:auto;
        padding:15px 0;
    }

    header .container{
        flex-direction:column;
        gap:15px;
    }

    .logo img{
        margin:0;
        height:50px;
    }

    nav > ul{
        flex-wrap:wrap;
        justify-content:center;
    }

    nav > ul > li{
        padding:5px;
    }

    .login{
        display:none;
    }

    /* ---------- Hero ---------- */

    .hero{
        height:220px;
        margin:20px;
    }

    .hero-controls button{
        width:40px;
        height:40px;
    }

    .hero-dots{
        bottom:10px;
    }

    /* ---------- Section ---------- */

    .content-section{
        margin:40px 20px;
    }

    .section-header{
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
    }

    .section-header h2{
        margin-left:0;
        font-size:32px;
    }

    /* ---------- Carousel ---------- */

    .slider-wrapper{
        gap:10px;
    }

    .slider-wrapper button{
        width:40px;
        height:40px;
    }

    .card{
        min-width:170px;
        max-width:170px;
    }

    .card img{
        height:240px;
    }

    /* ---------- Footer ---------- */

    .footer-top{
        flex-direction:column;
        align-items:flex-start;
        gap:20px;
    }

    .footer-bottom p{
        font-size:12px;
    }
}

