
body {
    font-family: "Oswald", sans-serif;
    background:#e9f0ee;
    margin: 0;
}

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


/* Navber */

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:20px 40px;

    background:#1d463f; /* เขียวอ่อนพาสเทล */
}

/* logo */
.logo{
    display:flex;
    align-items:left;
    gap:10px;

    font-size:20px;
    font-weight:600;
    color:#1f3d3a;
}

.logo img{
    height: 25px;
    width: 250px;
}

/* menu */
.nav-menu{
    display:flex;
    gap:28px;
}

.nav-menu a{
    text-decoration:none;
    color: #aca9a9;
    font-weight:500;
    transition:0.25s;
}

.nav-menu a:hover{
    color:#3d6360;
}

/* active */
.nav-menu a.active{
    /* color:#2aa198; */
    color: white;
    font-weight:600;
}



/* Banner */

.banner{
    position:relative;
    width:100%;
    height:100%;
    overflow:hidden;
    border-radius: 5px;
}

.banner img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

/* ชั้นสีทับบนรูป */
.banner-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        to right,
        rgba(0,0,0,0.65),
        rgba(0,0,0,0.45),
        rgba(0,0,0,0.3)
    );
    z-index:1;
}

/* ข้อความ */
.banner-text{
    position:absolute;
    top:50%;
    left:7%;
    transform:translateY(-50%);
    z-index:2;

    color:white;
    max-width:520px;
}

.banner-text .sub{
    font-size:18px;
    letter-spacing:2px;
    margin-bottom:10px;
    color:#d9f3ee;
}

.banner-text h1{
    font-size:64px;
    line-height:1;
    margin-bottom:18px;
    text-shadow:0 4px 18px rgba(0,0,0,0.35);
}

.banner-text .desc{
    font-size:20px;
    line-height:1.5;
    color:#f1f1f1;
    margin-bottom:28px;
}

/* ปุ่ม */
.banner-btns{
    display:flex;
    gap:14px;
}

.btn{
    text-decoration:none;
    padding:12px 24px;
    border-radius:999px;
    font-size:16px;
    font-weight:500;
    transition:0.25s ease;
}

.btn.primary{
    background:#ffffff;
    color:#1d463f;
}

.btn.primary:hover{
    transform:translateY(-2px);
}

.btn.secondary{
    border:1px solid rgba(255,255,255,0.7);
    color:white;
    background:rgba(255,255,255,0.08);
    backdrop-filter:blur(4px);
}

.btn.secondary:hover{
    background:rgba(255,255,255,0.16);
}

/* Suggest */
.container{
    max-width:1200px;
    margin:auto;
    padding:80px 20px;
}

/* section title */

.section-title{
    font-size:36px;
    text-align:center;
    font-family:"Oswald",sans-serif;
}

.section-sub{
    text-align:center;
    color:#777;
    margin-bottom:40px;
}

/* featured */

.featured-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:30px;
}

.card{
    background:white;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    text-align:center;
    padding-bottom:20px;
    transition:0.3s;
}

.card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.card:hover{
    transform:translateY(-8px);
}

.card h3{
    margin:15px 0 8px;
}

.price{
    color:#c59d5f;
    font-weight:600;
}


/* about */

.about{
    background:#f7f7f7;
}

.about-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    align-items:center;
}

.about-img img{
    width:100%;
    border-radius:14px;
}

.about-text h2{
    font-size:36px;
    margin-bottom:20px;
}

.about-features{
    margin-top:25px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

.feature{
    background:white;
    padding:18px;
    border-radius:10px;
}


/* services */

.services{
    background:white;
}

.service-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:30px;
    margin-top:40px;
}

.service-card{
    padding:30px;
    background:#111;
    color:white;
    border-radius:12px;
    transition:0.3s;
}

.service-card:hover{
    background:#c59d5f;
}


/* gallery */

.gallery{
    background:#f7f7f7;
}

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    margin-top:40px;
}

.gallery-grid img{
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:12px;
}
/* END SUGGEST */

/* Products */
.product-page{
    background:#f5f7f6;
    padding: 60px 8%;
}

.product-header{
    text-align:center;
    margin-bottom:30px;
}

.product-header h1{
    font-size:48px;
    color:#1d463f;
    margin-bottom:10px;
}

.product-header p{
    color:#666;
}

.category-bar{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    justify-content:center;
    margin-bottom:25px;
}

.category-bar button{
    border:none;
    padding:10px 18px;
    border-radius:999px;
    background:#e3ebe9;
    cursor:pointer;
}

.category-bar button.active{
    background:#1d463f;
    color:white;
}

.category-bar a button{
    text-decoration: none;
    color: black;
}

.category-bar button.active a {
    color: white;
}

.product-tools{
    display:flex;
    justify-content:space-between;
    gap:15px;
    flex-wrap:wrap;
    margin-bottom:30px;
}

.product-tools input,
.product-tools select{
    padding:12px 14px;
    border:1px solid #ccc;
    border-radius:10px;
}

.product-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
}

.product-card{
    background:white;
    border-radius:18px;
    overflow:hidden;
    padding:18px;
    box-shadow:0 8px 20px rgba(0,0,0,0.08);
    padding-bottom:50px; /* เพิ่มพื้นที่ด้านล่าง */
}

.product-card img{
    width:100%;
    height:60%;
    object-fit:cover;
    border-radius:12px;
    margin-bottom:14px;
}

.product-card .tag{
    display:inline-block;
    margin-bottom:10px;
    padding:6px 10px;
    border-radius:999px;
    background:#e8f1ef;
    color:#1d463f;
    font-size:14px;
}

.product-card h3{
    margin-bottom:10px;
}

.product-card .price{
    font-size:22px;
    font-weight:bold;
    color:#1d463f;
    margin-bottom:14px;
}

.product-card a {
    color: white;
}
.btn_detail {
    border-radius: 3px;
    background-color: #1f3d3a;
    border: 0 solid;
    padding: 10px 15px;
    color: white;
    cursor: pointer;
}
.btn_detail a {
    color: black;
    text-decoration: none;
}



/* Footer */
.footer{
    background:#1d463f;
    color:white;
    padding:60px 8%;
}

.footer-container{
    display:flex;
    justify-content:space-between;
    gap:40px;
    flex-wrap:wrap;
}

.footer-col{
    flex:1;
    min-width:200px;
}

.footer-col h2{
    margin-bottom:10px;
}

.footer-col h3{
    margin-bottom:15px;
}

.footer-col p{
    margin-bottom:10px;
    color:#d7e5e2;
}

.footer-col a{
    display:block;
    color:#d7e5e2;
    text-decoration:none;
    margin-bottom:8px;
    transition:0.2s;
}

.footer-col a:hover{
    color:white;
}

.footer-bottom{
    margin-top:40px;
    padding-top:20px;
    border-top:1px solid rgba(255,255,255,0.2);
    text-align:center;
    font-size:14px;
}



/* HERO BANNER */

.hero-modern{
    background-image:url("./picture/banner/banner2");
    background-size:cover;
    background-position:center;
    height:700px;

    display:flex;
    align-items:center;
    justify-content:center;

    position:relative;
}

/* overlay ทำให้ตัวหนังสืออ่านง่าย */

.hero-modern::before{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.45);
}

.hero-content{
    position:relative;
    text-align:center;
    color:white;
}

.hero-content h1{
    font-size:46px;
    font-family:"Oswald",sans-serif;
}

.hero-content p{
    margin-top:10px;
    font-size:18px;
}


/* about */

.about-modern{
padding:80px 20px;
}

.about-wrapper{
max-width:1100px;
margin:auto;
display:grid;
grid-template-columns:1fr 1fr;
gap:60px;
align-items:center;
}

.about-wrapper img{
width:100%;
border-radius:14px;
}


/* service */

.service-modern{
padding:80px 20px;
background:#f7f7f7;
}

.service-container{
max-width:1100px;
margin:auto;
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:25px;
}

.service-box{
background:white;
padding:30px;
border-radius:14px;
box-shadow:0 10px 25px rgba(0,0,0,0.08);
transition:.3s;
}

.service-box:hover{
transform:translateY(-8px);
}


/* contact */

.contact-modern{
padding:80px 20px;
}

.contact-container{
max-width:1100px;
margin:auto;
display:grid;
grid-template-columns:1fr 1fr;
gap:30px;
}

.contact-card{
background:#1f3d3a;
color:white;
padding:40px;
border-radius:14px;
}

.map-card iframe{
width:100%;
height:350px;
border:none;
border-radius:14px;
}


/* responsive */

@media(max-width:900px){

.about-wrapper,
.contact-container{
grid-template-columns:1fr;
}

.hero-modern h1{
font-size:32px;
}

}

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

@media (max-width:1024px){

.navbar{
    padding:18px 30px;
}

/* .logo img{
    width:250px;
} */

.banner-text h1{
    font-size:46px;
}

.banner-text .desc{
    font-size:18px;
}

/* product */

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

/* about */

.about-grid{
    grid-template-columns:1fr;
}

/* contact */

.contact-container{
    grid-template-columns:1fr;
}

/* footer */

.footer-container{
    gap:30px;
}

}



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

@media (max-width:768px){

/* navbar */

.navbar{
    flex-direction:column;
    gap:15px;
}

.nav-menu{
    flex-wrap:wrap;
    justify-content:center;
    gap:18px;
}
/* product btn-detial / product card */
.btn_detail{
    margin-top:14px;
    margin-bottom:100px; /* กันปุ่มติดขอบล่าง */
    width:100%;
}

.product-card{
    padding-bottom:25px; /* เพิ่มพื้นที่ด้านล่าง */
}

/* banner */

.banner{
    height:420px;
}

.banner-text{
    left:5%;
    right:5%;
}

.banner-text h1{
    font-size:36px;
}

.banner-text .desc{
    font-size:16px;
}

/* hero */

.hero-modern{
    height:500px;
}

/* container */

.container{
    padding:60px 18px;
}

/* featured */

.featured-grid{
    grid-template-columns:1fr;
}

/* services */

.service-grid{
    grid-template-columns:1fr;
}

/* product */

.product-grid{
    grid-template-columns:1fr;
}

/* gallery */

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

/* about modern */

.about-wrapper{
    grid-template-columns:1fr;
}

/* footer */

.footer-container{
    flex-direction:column;
}

}



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

@media (max-width:480px){

/* .logo img{
    width:250px;
} */

.banner-text h1{
    font-size:28px;
}

.banner-text .desc{
    font-size:14px;
}

.section-title{
    font-size:28px;
}

.product-header h1{
    font-size:34px;
}

.hero-content h1{
    font-size:28px;
}

.gallery-grid{
    grid-template-columns:1fr;
}

.btn{
    padding:10px 18px;
    font-size:14px;
}
.banner img{
    height:100%;
    object-fit:cover;
}

}

/* hamburger */

.menu-toggle{
    display:none;
    font-size:28px;
    color:white;
    cursor:pointer;
}

@media (max-width:768px){

.menu-toggle{
    display:block;
}

.navbar{
    flex-wrap:wrap;
}

/* ซ่อน menu */

.nav-menu{
    width:100%;
    display:none;
    flex-direction:column;
    gap:15px;
    margin-top:15px;
    background:#1d463f;
    padding:20px;
    border-radius:10px;
}

/* เมื่อกด */

.nav-menu.show{
    display:flex;
}

.nav-menu a{
    color:white;
}

}