/* ========================================== */
/* 🍷 CLEAN & PREMIUM RED THEME (SINGLE RED)  */
/* ========================================== */
:root {
    --primary-red: #8b262a !important;      /* สีแดงไวน์หลัก */
    --hover-red: #6b1b1e !important;        /* สีแดงเข้มเมื่อเมาส์ชี้ */
    --bg-main: #fafafa !important;          /* พื้นหลังเว็บสีขาวอมเทาอ่อน มินิมอล */
    --bg-card: #ffffff !important;          /* พื้นหลังการ์ดสีขาวบริสุทธิ์ */
    --bg-section: ##FFB6C1 !important;       /* พื้นหลังกล่องไฮไลท์/แผนที่ สไตล์คลีน */
    --border-line: #e4e4e7 !important;     /* เส้นขอบสีเทาอ่อนสบายตา */
    --text-dark: #1f1f21 !important;        /* สีฟอนต์หลัก */
    --text-muted: #71717a !important;       /* สีฟอนต์รอง */
}

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

body {
    font-family: 'Kanit', sans-serif;
    background-color: var(--bg-main) !important;
    color: var(--text-dark) !important;
    line-height: 1.6;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* ========================================== */
/* 📌 HEADER & LOGO SECTION                   */
/* ========================================== */
header, 
.header-container, 
.nav-wrapper,
.nav-container,
div[class*="header"] {
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.logo-section,
.header-top {
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-red) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* ========================================== */
/* 🔴 FULL-WIDTH RED NAVBAR (แดงเดียว 100% ไร้ขอบซ้อน) */
/* ========================================== */

/* ล้างขอบและบังคับให้ทุกแท็กที่เกี่ยวกับเมนูเป็นสีแดงไวน์เดียวกันทั้งหมด */
nav, 
.nav-center-list,
ul.nav-center-list,
.header-row-3,
div[class*="nav"],
ul[class*="nav"],
li[class*="nav"] {
    width: 100% !important;
    background-color: #8b262a !important;
    background: #8b262a !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* ปรับแต่งปุ่มและตัวหนังสือภายในเมนู */
nav a, 
.nav-center-list a,
.nav-center-list li a,
div[class*="nav"] a,
ul[class*="nav"] a {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 400;
    padding: 12px 20px !important;
    margin: 0 4px !important;
    transition: background 0.2s ease;
    border-radius: 6px;
    display: inline-block !important;
}

/* เอฟเฟกต์ Hover และ Active บนเมนู */
nav a:hover, nav a.active,
.nav-center-list a:hover, .nav-center-list a.active,
div[class*="nav"] a:hover, div[class*="nav"] a.active {
    background-color: rgba(0, 0, 0, 0.22) !important;
    background: rgba(0, 0, 0, 0.22) !important;
    color: #ffffff !important;
}

/* ========================================== */
/* 📐 MAIN CONTAINER                          */
/* ========================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
}

/* ========================================== */
/* 🎀 HERO / WELCOME BANNER (โทนเทา-ขาว)       */
/* ========================================== */
.hero-banner,
.welcome-banner {
    background: var(--bg-section) !important;
    border-radius: 20px;
    padding: 45px 30px;
    text-align: center;
    margin-bottom: 35px;
    border: 1px solid var(--border-line) !important;
}

.hero-banner h1,
.welcome-banner h1 {
    font-size: 30px;
    color: var(--primary-red) !important;
    margin-bottom: 10px;
    font-weight: 600;
}

.hero-banner p,
.welcome-banner p {
    color: var(--text-muted) !important;
    font-size: 15px;
}

/* ========================================== */
/* 🔍 FILTER BAR & OPTIONS                   */
/* ========================================== */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card) !important;
    padding: 18px 25px;
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid var(--border-line) !important;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-bar h3 {
    color: var(--primary-red) !important;
    font-size: 18px;
}

.filter-select {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-line);
    background-color: #ffffff;
    color: var(--text-dark);
    font-family: 'Kanit', sans-serif;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

/* ========================================== */
/* 🛍️ PRODUCT GRID SYSTEM                     */
/* ========================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--bg-card) !important;
    border-radius: 16px;
    padding: 18px;
    text-align: center;
    border: 1px solid var(--border-line) !important;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    border-color: #d4d4d8 !important;
}

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

.badge {
    position: absolute;
    top: 25px;
    left: 25px;
    background: var(--primary-red) !important;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 300;
    z-index: 2;
}

.product-card h4 {
    font-size: 17px;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.product-price {
    color: var(--primary-red) !important;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.btn-contact {
    display: block;
    width: 100%;
    background: #ffffff !important;
    color: var(--primary-red) !important;
    border: 1px solid var(--primary-red) !important;
    padding: 8px 0;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s;
}

.btn-contact:hover {
    background: var(--primary-red) !important;
    color: #ffffff !important;
}

/* ========================================== */
/* 🛠️ CUSTOMIZER BUILDER                      */
/* ========================================== */
.builder-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 30px;
}

.builder-section {
    background: #ffffff;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border-line);
    margin-bottom: 20px;
}

.builder-section h3 {
    color: var(--primary-red) !important;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid var(--bg-section);
    padding-bottom: 8px;
}

.item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

.item-row input[type="number"],
.item-row select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-line);
    font-family: 'Kanit', sans-serif;
}

.summary-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 16px;
    border: 2px dashed var(--primary-red);
    position: sticky;
    top: 95px;
}

.summary-card h3 {
    color: var(--primary-red) !important;
    text-align: center;
    margin-bottom: 15px;
}

.summary-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    border-bottom: 1px dashed var(--border-line);
    padding-bottom: 5px;
}

.total-box {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-line);
}

.total-box h2 {
    color: var(--primary-red) !important;
    font-size: 26px;
}

.btn-download {
    width: 100%;
    padding: 14px;
    background: var(--primary-red) !important;
    color: #ffffff;
    border: none;
    border-radius: 25px;
    margin-top: 20px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Kanit', sans-serif;
    transition: all 0.3s;
}

.btn-download:hover {
    background: var(--hover-red) !important;
}

/* ========================================== */
/* 💖 POP-UP MODAL STYLE                      */
/* ========================================== */
.modal-overlay {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #ffffff;
    padding: 30px 25px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    border: 1px solid var(--border-line);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--primary-red) !important;
}

/* ========================================== */
/* 🦶 FOOTER & OVERRIDES                      */
/* ========================================== */
footer, 
.map-section,
div[style*="background-color: #f"],
div[style*="background:#f"],
div[style*="background: #f"],
div[style*="background: rgb"] {
    background-color: rgba(139, 38, 42, 0.08) !important;
    background: rgba(139, 38, 42, 0.08) !important;
    border-color: rgba(139, 38, 42, 0.15) !important;
}

footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 1px solid var(--border-line) !important;
}

footer h3 {
    color: var(--primary-red) !important;
    margin-bottom: 10px;
}

.btn-filter, 
button[type="submit"],
.preset-btn,
.price-preset-btn {
    background-color: var(--primary-red) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Kanit', sans-serif;
}

.btn-filter:hover,
.preset-btn:hover,
.price-preset-btn:hover {
    background-color: var(--hover-red) !important;
}

hr, .logo-line {
    border-color: var(--border-line) !important;
}

/* ========================================== */
/* 📱 RESPONSIVE MEDIA QUERIES                */
/* ========================================== */
@media (min-width: 1200px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 992px) {
    .container { width: 92%; margin: 25px auto; }
    .builder-layout { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .logo-section { padding: 12px 4%; flex-direction: column; gap: 12px; }
    nav, .nav-center-list { gap: 4px !important; flex-wrap: wrap; }
    nav a, .nav-center-list a { font-size: 13px !important; padding: 6px 10px !important; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-card img { height: 140px; }
}

@media (max-width: 480px) {
    .logo-line { display: none !important; }
    .product-card img { height: 125px; }
}
/* ========================================== */
/* 🖼️ HERO BANNER IMAGE STYLES                */
/* ========================================== */
.hero-banner {
    padding: 0 !important;             /* ลบ padding เดิมออกเพื่อขยายรูปเต็มกล่อง */
    overflow: hidden;                   /* ให้มุมรูปมนตามกล่อง */
    background: transparent !important; /* ซ่อนพื้นหลังเดิม */
    border: none !important;            /* ลบเส้นขอบเดิมออก (ถ้าต้องการขอบ ให้ลบบรรทัดนี้ได้ครับ) */
    margin-bottom: 35px;
}

.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;               /* ปรับความโค้งมนของมุมรูปภาพ */
    object-fit: cover;
}