@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

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

.logo { font-family: "Lora", serif; font-size: large; }
body { background: #fff; }

/* ===== NAV ===== */
.container-menu { max-width: 1200px; margin: auto; padding: 20px; }

nav {
    font-family: "Prompt", sans-serif;
    background: #5f2119;
    margin: auto;
    padding: 12px 20px;
}
.nav-con { display: flex; justify-content: space-between; align-items: center; }
.logo a { color: #fff; font-size: 24px; font-weight: bold; text-decoration: none; }

.menu { display: flex; list-style: none; align-items: center; }
.menu li { margin-left: 3rem; }
.menu a { color: #fff; text-decoration: none; }
.menu a:hover { color: #c3766f; }

.has-dropdown, .navUser, .navContract { font-family: "Prompt", sans-serif; }

/* ===== PRODUCT DETAIL ===== */
.product-details {
    font-family: "Poppins", sans-serif;
    margin: 40px 20px;
    padding: 40px 30px;
}
.product-details-thai {
    font-family: "Prompt", sans-serif;
    margin: 40px 20px;
    padding: 40px 30px;
}
.product-con-details {
    max-width: 1100px;
    margin: auto;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}
.product-img img { width: 250px; height: auto; border-radius: 6px; }

.product-info-1 { flex: 1; min-width: 0; }
.product-info-1 h1 { font-size: 26px; line-height: 1.3; }
.product-info-1 p { font-size: 16px; line-height: 1.7; }

.detail-book { font-size: 14px; margin-top: 20px; line-height: 1.8; }
.detail-book-thai { font-family: "Prompt", sans-serif; font-size: 15px; margin-top: 20px; line-height: 1.8; }

.status-book { font-size: 14px; margin-top: 10px; line-height: 1.8; }
.status-book label { font-size: 16px; }
.status-book input { width: 60px; padding: 5px; font-size: 16px; }

.online-price, .member-price { margin-bottom: 5px; }

.product-btn { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.product-btn-1 {
    display: inline-block;
    padding: 10px 25px;
    background: #7c2220; color: #fff;
    text-decoration: none; border-radius: 30px;
    transition: 0.3s; cursor: pointer; border: none;
    font-family: "Poppins", sans-serif; font-size: 14px;
}
.product-btn-1:hover { background: #c3766f; color: #5f2119; }

/* ===== YOU MAY ALSO LIKE ===== */
.container {
    font-family: "Poppins", sans-serif;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}
.product-title { margin: 40px 0 10px; }
.product-title-thai { font-family: "Prompt", sans-serif; margin: 40px 0 40px; }

.product-con {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.product-item {
    margin: 10px 0;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    transition: 0.3s;
    outline: 1px solid rgba(0,0,0,0.1);
    overflow: hidden;
}
.product-item:hover { box-shadow: 0 0 15px rgba(0,0,0,0.3); }
.product-item img { width: 100%; height: 320px; object-fit: cover; display: block; }

.product-info { margin: 10px 0; padding: 15px; font-size: 14px; }
.product-info-thai { margin: 10px 0; padding: 15px; font-size: 14px; font-family: "Prompt", sans-serif; }
.product-info p { padding: 5px 5px 0 0; font-size: 14px; }

.product-details-price { padding: 10px; }
.product-price {
    font-family: "Poppins", sans-serif;
    font-size: 15px; font-weight: 600;
    color: #333; margin: 10px 0; padding: 0 10px;
}

a { color: black; text-decoration: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .product-con { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .product-img img { width: 200px; }
    .product-con-details { gap: 40px; }
}

@media (max-width: 768px) {
    /* Nav */
    .nav-con { flex-wrap: wrap; gap: 10px; }
    .menu { flex-wrap: wrap; }
    .menu li { margin-left: 1rem; }

    /* Product detail — stack vertically */
    .product-details { margin: 20px 10px; padding: 20px 16px; }
    .product-details-thai { margin: 20px 10px; padding: 20px 16px; }
    .product-con-details { flex-direction: column; gap: 24px; }
    .product-img img { width: 100%; max-width: 280px; margin: 0 auto; display: block; }
    .product-info-1 h1 { font-size: 22px; }
    .product-info-1 p { font-size: 15px; }

    /* Grid */
    .product-con { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .product-item img { height: 220px; }
}

@media (max-width: 480px) {
    /* Nav */
    .menu li { margin-left: 0.6rem; }

    /* Product detail */
    .product-details { padding: 16px 10px; }
    .product-details-thai { padding: 16px 10px; }
    .product-info-1 h1 { font-size: 18px; }
    .product-btn-1 { padding: 8px 18px; font-size: 13px; }

    /* Grid */
    .product-con { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .product-item img { height: 160px; }
    .product-info { font-size: 12px; padding: 8px; }
    .product-info-thai { font-size: 12px; padding: 8px; }
    .product-price { font-size: 13px; }
}