/* Resetting default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styles */
body {
    font-family: 'Kanit', 'Prompt', sans-serif;
    background-color: #f5f5f5;
    background-image: linear-gradient(#e5e5e5 1px, transparent 1px), 
                      linear-gradient(90deg, #e5e5e5 1px, transparent 1px);
    background-size: 20px 20px;
    color: #333;
}

/* Header styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid #FF8C00;
}

/* Logo styles */
.logo {
    width: 50px;
    height: 50px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Navigation styles */
nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: #FF8C00;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #8B4513;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: #8B4513;
}

nav ul li a:hover::after {
    width: 100%;
}

/* User actions styles */
.user-actions {
    display: flex;
    align-items: center;
}

.user-actions a {
    margin-left: 1.5rem;
    color: #FF8C00;
    font-size: 1.2rem;
}

.user-actions a img {
    width: 24px;
    height: auto;
    vertical-align: middle;
}

/* Main content styles */
main {
    padding: 1rem; /* ลดจาก 3rem 2rem เป็น 1rem */
    max-width: 100%; /* เพิ่มความกว้างจาก 1200px เป็น 100% */
    margin: 0 auto;
    box-sizing: border-box;
}

/* Product display styles */
.product-display {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    overflow: hidden;
    border: 1px solid #ddd;
}

.product-image {
    width: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image img {
    max-width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.product-image:hover img {
    transform: scale(1.05);
}

/* Product info styles */
.product-info {
    width: 40%;
    padding: 0 2rem;
}

.product-info h1 {
    font-size: 2.5rem;
    color: #8B4513;
    margin-bottom: 1rem;
    font-weight: 700;
}

.product-info p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #555;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #FF8C00;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #FF8C00;
}

.btn:hover {
    background-color: #8B4513;
    border-color: #8B4513;
}

/* Footer styles */
footer {
    background-color: #333;
    padding: 2rem;
    text-align: center;
    color: #fff;
    margin-top: 3rem;
    border-top: 3px solid #FF8C00;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .product-display {
        flex-direction: column;
    }
    
    .product-image, .product-info {
        width: 100%;
    }
    
    .product-info {
        padding: 2rem 0 0 0;
    }
}

@media screen and (max-width: 576px) {
    nav ul li {
        margin: 0 0.7rem;
    }
}
/* Resetting default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styles */
body {
    font-family: 'Kanit', 'Prompt', sans-serif;
    background-color: #f5f5f5;
    background-image: linear-gradient(#e5e5e5 1px, transparent 1px), 
                      linear-gradient(90deg, #e5e5e5 1px, transparent 1px);
    background-size: 20px 20px;
    color: #333;
}

/* Header styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid #FF8C00;
}

/* Logo styles */
.logo {
    width: 50px;
    height: 50px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Navigation styles */
nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: #FF8C00;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #8B4513;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: #8B4513;
}

nav ul li a:hover::after {
    width: 100%;
}

/* User actions styles */
.user-actions {
    display: flex;
    align-items: center;
}

.user-actions a {
    margin-left: 1.5rem;
    color: #FF8C00;
    font-size: 1.2rem;
}

.user-actions a img {
    width: 24px;
    height: auto;
    vertical-align: middle;
}

/* Main content styles */
main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero banner with text overlay */
.hero-banner {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-bottom: 3rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    top: 0;
    left: 60px; /* เพิ่มระยะห่างจากขอบซ้าย จากเดิม left: 0 */
    padding: 2rem;
    width: 40%; /* ลดความกว้างลงเล็กน้อยจาก 40% */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
}

.new-tag {
    display: inline-block;
    background-color: #3D9970;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: fit-content;
}

.banner-content h2 {
    font-size: 3rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.banner-content p {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: #333;
}

.banner-content .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FF8C00;
    margin-bottom: 1.5rem;
}

/* Product display styles */
.product-display {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    overflow: hidden;
    border: 1px solid #ddd;
}

.product-image {
    width: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image img {
    max-width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.product-image:hover img {
    transform: scale(1.05);
}

/* Product info styles */
.product-info {
    width: 40%;
    padding: 0 2rem;
}

.product-info h1 {
    font-size: 2.5rem;
    color: #8B4513;
    margin-bottom: 1rem;
    font-weight: 700;
}

.product-info p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #555;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #FF8C00;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #FF8C00;
}

.btn:hover {
    background-color: #8B4513;
    border-color: #8B4513;
}

/* Footer styles */
footer {
    background-color: #333;
    padding: 2rem;
    text-align: center;
    color: #fff;
    margin-top: 3rem;
    border-top: 3px solid #FF8C00;
}

/* Responsive design */
@media screen and (max-width: 992px) {
    .banner-content {
        width: 60%;
    }
}

@media screen and (max-width: 768px) {
    .product-display {
        flex-direction: column;
    }
    
    .product-image, .product-info {
        width: 100%;
    }
    
    .product-info {
        padding: 2rem 0 0 0;
    }
    
    .banner-content {
        width: 100%;
        background-color: rgba(255, 255, 255, 0.7);
    }
}

@media screen and (max-width: 576px) {
    nav ul li {
        margin: 0 0.7rem;
    }
    
    .banner-content h2 {
        font-size: 2.2rem;
    }
    
    .banner-content .price {
        font-size: 2rem;
    }
}
/* Carousel styles */
.carousel-container {
    position: relative;
    width: 100%;
    margin-bottom: 3rem;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 500px;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

/* Hero banner (inside carousel) */
.hero-banner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Button styles */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    color: #333;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-button:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.carousel-button.prev {
    left: 20px;
}

.carousel-button.next {
    right: 20px;
}

/* Indicators styles */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: #FF8C00;
    width: 15px;
    height: 15px;
}

/* เพิ่มความสวยงามให้กับปุ่มในโหมด hover */
.btn:hover {
    background-color: #8B4513;
    border-color: #8B4513;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive design for carousel */
@media screen and (max-width: 992px) {
    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 768px) {
    .carousel-track {
        height: 400px;
    }
    
    .carousel-button {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media screen and (max-width: 576px) {
    .carousel-track {
        height: 350px;
    }
    
    .carousel-button {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
    
    .indicator.active {
        width: 10px;
        height: 10px;
    }
}
/* CSS สำหรับส่วนข้อเสนอพิเศษ - เพิ่มลงในไฟล์ styles.css ของคุณ */

/* ส่วนข้อเสนอพิเศษ */
.special-offers {
    width: 100%;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
}

/* แท็บเมนู */
.offer-tabs {
    margin-bottom: 2rem;
}

.tab-links {
    display: flex;
    list-style: none;
    border-bottom: 2px solid #ddd;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    white-space: nowrap;
}

.tab-links li {
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
}

.tab-links li.active {
    color: #000;
}

.tab-links li.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #FF8C00;
}

.tab-links li:hover {
    color: #FF8C00;
}

/* เนื้อหาแท็บ */
.tab-content {
    display: block;
}

/* กริดสินค้า */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.main-product {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.sub-products {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* การ์ดสินค้า */
.product-card {
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.product-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    z-index: 1;
}

.product-tag.hot {
    background-color: #3498db;
}

.product-tag.sale {
    background-color: #e74c3c;
}

.product-image {
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    position: relative;
    background-color: #f8f8f8;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.product-info {
    padding: 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.product-info p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Responsive design */
@media screen and (max-width: 992px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .main-product {
        grid-column: 1;
        grid-row: 1;
    }
    
    .sub-products {
        grid-column: 1;
        grid-row: 2;
    }
}

@media screen and (max-width: 768px) {
    .product-row {
        grid-template-columns: 1fr;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .tab-links li {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
}

/* สำหรับปุ่มสั่งซื้อเลยโดยเฉพาะ */
.buy-now-btn {
    width: fit-content; /* ให้ปุ่มกว้างเท่ากับเนื้อหาข้างใน */
    font-size: 1rem; /* ปรับขนาดตัวอักษร */
    padding: 0.7rem 1.2rem; /* ปรับขนาด padding */
    margin-top: 1rem; /* เพิ่มระยะห่างด้านบน */
}/* Navigation styles */
nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: #FF8C00;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #8B4513;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: #8B4513;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
}

.mobile-menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: #FF8C00;
    margin: 4px 0;
    transition: 0.4s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* User actions styles */
.user-actions {
    display: flex;
    align-items: center;
}

.user-actions a {
    margin-left: 1.5rem;
    color: #FF8C00;
    font-size: 1.2rem;
}

.user-actions a img {
    width: 24px;
    height: auto;
    vertical-align: middle;
}

/* Responsive Navigation */
@media screen and (max-width: 768px) {
    nav {
        justify-content: space-between;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1000;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        height: 100vh;
        padding-top: 80px;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 2.5rem 0;
    }

    .nav-menu li a {
        font-size: 1.5rem;
    }

    .user-actions {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
    }
}
