/* --- Reset & Base --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Kanit', sans-serif;
    background-color: #eef2f5;
    -webkit-tap-highlight-color: transparent;
    padding-bottom: env(safe-area-inset-bottom);
    overflow-x: hidden;
    transition: filter 0.15s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 35px 0;
}

/* --- Premium Hero Section --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.background-video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(10,30,20,0.85) 100%);
    z-index: 0;
}

.hero-section .content {
    z-index: 1;
    text-align: center;
    color: white;
    padding: 20px;
    animation: fadeInDown 1s ease-out;
}

.badge-premium {
    display: inline-block;
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 15px;
    backdrop-filter: blur(5px);
    letter-spacing: 1px;
}

.logo { 
    font-size: 3.5rem; 
    font-weight: 700; 
    margin-bottom: 5px; 
    text-shadow: 0 4px 15px rgba(0,0,0,0.5); 
    letter-spacing: 2px;
}
.brand-logo-img, .store-logo-img, img {
    pointer-events: none;
}
.tagline { font-size: 1.05rem; font-weight: 300; color: #e0e0e0; }

/* --- Premium Glassmorphism Card (Row Layout) --- */
.auth-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 90%;
    max-width: 440px; 
    padding: 30px 25px;
    border-radius: 35px;
    box-shadow: 0 25px 50px rgba(10, 30, 20, 0.1);
    margin: -70px auto 0 auto;
    position: relative;
    z-index: 10;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(10, 30, 20, 0.15);
}

.auth-header-wrap {
    display: flex;
    align-items: center;
    gap: 18px; 
    margin-bottom: 22px;
    text-align: left; 
}

.brand-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; 
}
.brand-logo-img {
    width: 70px; 
    height: 70px;
    object-fit: contain;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 6px 15px rgba(39, 174, 96, 0.1);
    padding: 4px;
    border: 2px solid #ffffff;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.auth-card:hover .brand-logo-img {
    transform: scale(1.06) rotate(-5px); 
}

.auth-title-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.section-title { 
    color: #1a252f; 
    font-size: 1.35rem; 
    margin-bottom: 3px; 
    font-weight: 700; 
    text-align: left;
}
.subtitle { 
    color: #7f8c8d; 
    font-size: 0.85rem; 
    margin-bottom: 0; 
    font-weight: 300; 
    text-align: left;
    line-height: 1.3;
}

/* --- ส่วนประกาศข่าววิ่งอัตโนมัติ --- */
.luxury-marquee-wrap {
    width: 90%;
    max-width: 440px;
    margin: 12px auto 30px auto; 
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    transition: opacity 0.5s ease, transform 0.5s ease, margin 0.5s ease; 
    opacity: 1;
}
.luxury-marquee-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #b8912d; 
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    background: #fff9e6;
    padding: 4px 10px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.15);
}
.luxury-marquee-box {
    overflow: hidden;
    width: 100%;
    display: flex;
    white-space: nowrap;
}
.luxury-marquee-text {
    display: inline-block;
    padding-left: 100%;
    font-size: 0.88rem;
    color: #4f5d6c;
    font-weight: 400;
    animation: luxuryMarqueeEffect 14s linear 3;
}
@keyframes luxuryMarqueeEffect {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* --- Modern Input Field --- */
.form-group { position: relative; margin-bottom: 22px; }
.input-icon {
    position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
    color: #bdc3c7; font-size: 1.2rem; transition: all 0.3s ease; z-index: 5;
}
.form-control {
    width: 100%; height: 58px; font-size: 18px !important; font-family: 'Kanit', sans-serif; font-weight: 600;
    text-align: center; letter-spacing: 3px; border: 2px solid #eef2f5; border-radius: 20px;
    color: #2c3e50; background-color: #ffffff; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-appearance: none; padding: 0 45px;
}
.form-control::placeholder { color: #bdc3c7; font-weight: 300; letter-spacing: 0px; }
.form-control:focus { outline: none; border-color: #27ae60; background-color: #ffffff; box-shadow: 0 10px 25px rgba(39, 174, 96, 0.08); }
.form-control:focus + .input-icon { color: #27ae60; transform: translateY(-50%) scale(1.1); }

/* --- Gradient Premium Button --- */
.btn {
    width: 100%; height: 58px; font-family: 'Kanit', sans-serif; font-size: 1.15rem; font-weight: 600;
    border: none; border-radius: 20px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; align-items: center; justify-content: center; gap: 12px; -webkit-appearance: none;
}
.btn.primary { background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%); color: white; box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3); border: 1px solid rgba(255,255,255,0.15); }
.btn.primary:hover { box-shadow: 0 12px 30px rgba(39, 174, 96, 0.4); filter: brightness(1.05); }
.btn.primary:active { transform: scale(0.96); }

/* --- Swiper / Slider Custom Styles --- */
.swiper-container-wrapper { padding: 10px 0 35px 0; position: relative; }
.info-card {
    background: white; border-radius: 24px; padding: 30px 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.01); text-align: center; height: 100%; display: flex;
    flex-direction: column; justify-content: space-between; align-items: center;
}
.info-card-content { display: flex; flex-direction: column; align-items: center; margin-bottom: 15px; }
.card-icon-wrap {
    width: 65px; height: 65px; background: rgba(46, 204, 113, 0.1); color: #27ae60;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 15px;
}
.info-card h4 { color: #2c3e50; font-size: 1.2rem; margin-bottom: 8px; font-weight: 600; }
.info-card p { color: #7f8c8d; font-size: 0.9rem; line-height: 1.5; font-weight: 300; }

.btn-detail-trigger {
    background: #eef2f5; color: #2c3e50; padding: 6px 16px; border-radius: 12px;
    font-size: 0.85rem; font-weight: 500; border: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px; transition: all 0.2s ease;
}
.btn-detail-trigger:hover { background: #27ae60; color: white; }

.swiper-pagination-bullet { background: #bdc3c7; opacity: 0.7; width: 8px; height: 8px; transition: all 0.3s ease; }
.swiper-pagination-bullet-active { background: #27ae60; width: 22px; border-radius: 4px; opacity: 1; }

/* --- Products Section --- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 25px; margin-top: 20px; }
.product-card { background: white; border-radius: 24px; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.01); position: relative; }
.product-img-container { width: 100%; height: 220px; background: #e0e0e0; overflow: hidden; }
.product-img-container img { width: 100%; height: 100%; object-fit: cover; }
.product-badge { position: absolute; top: 15px; right: 15px; background: rgba(10, 30, 20, 0.75); color: #ffd700; backdrop-filter: blur(5px); padding: 4px 12px; border-radius: 10px; font-size: 0.75rem; font-weight: 500; }
.product-info { padding: 20px; }
.product-info h4 { font-size: 1.25rem; color: #2c3e50; margin-bottom: 6px; font-weight: 600; }
.product-desc { color: #7f8c8d; font-size: 0.85rem; margin-bottom: 15px; font-weight: 300; line-height: 1.4;}
.product-meta { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #f2f4f5; padding-top: 12px; }
.product-price { color: #27ae60; font-size: 1.3rem; font-weight: 700; }
.product-price span { font-size: 0.8rem; color: #7f8c8d; font-weight: 400; }
.btn-reserve { background: #2c3e50; color: white; padding: 8px 18px; border-radius: 10px; text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: 0.3s; }
.btn-reserve:hover { background: #27ae60; }

/* --- Section Header --- */
.section-title-main { color: #2c3e50; font-size: 1.8rem; margin-bottom: 8px; font-weight: 700; text-align: center; position: relative;}
.section-title-main::after { content: ''; display: block; width: 45px; height: 4px; background: #27ae60; margin: 8px auto; border-radius: 2px;}

/* --- Floating Contact Buttons --- */
.floating-contact-wrap { position: fixed; top: calc(15px + env(safe-area-inset-top)); right: 15px; display: flex; flex-direction: row; gap: 10px; z-index: 1000; }
.float-btn { width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.25rem; text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,0.25); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.2); transition: all 0.3s; }
.float-btn.line { background: linear-gradient(135deg, rgba(9,231,100,0.9) 0%, rgba(6,199,85,0.95) 100%); }
.float-btn.phone { background: linear-gradient(135deg, rgba(46,204,113,0.9) 0%, rgba(33,150,83,0.95) 100%); }

/* --- Premium Modern Footer Styles --- */
footer { background: #141d26; color: #a6b8c7; text-align: center; padding: 35px 20px; font-size: 0.85rem; border-top: 1px solid rgba(255, 255, 255, 0.04); position: relative; }
footer p { font-weight: 300; letter-spacing: 0.5px; opacity: 0.8; }
.footer-social-links { margin: 20px 0 15px 0; display: flex; justify-content: center; gap: 15px; }
.footer-social-links a { width: 44px; height: 44px; color: #ffffff; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; text-decoration: none; transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); }
.footer-social-links a.fb-link:hover { background: linear-gradient(135deg, #1877F2 0%, #3b5998 100%); border-color: #1877F2; box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4); transform: translateY(-5px) scale(1.05); }
.footer-social-links a.ig-link:hover { background: linear-gradient(135deg, #405DE6 0%, #E1306C 50%, #FFDC80 100%); border-color: #E1306C; box-shadow: 0 8px 20px rgba(225, 48, 108, 0.4); transform: translateY(-5px) scale(1.05); }
.footer-social-links a.tiktok-link:hover { background: linear-gradient(135deg, #000000 0%, #25F4EE 50%, #FE2C55 100%); border-color: #FE2C55; box-shadow: 0 8px 20px rgba(254, 44, 85, 0.4); transform: translateY(-5px) scale(1.05); }
.footer-social-links a.yt-link:hover { background: linear-gradient(135deg, #FF0000 0%, #cc181e 100%); border-color: #FF0000; box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4); transform: translateY(-5px) scale(1.05); }
.footer-social-links a:active { transform: scale(0.95); }

/* 🔒 คลาสสำหรับป้องกันระบบ Screen Capture / สลับแอปมือถือ */
.screen-protected {
    filter: blur(22px) !important;
}

/* สไตล์ชุดล็อกรูปและห้ามเลือกข้อความ */
img {
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
}