@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Inter',sans-serif;
}

body{
    background:#fffaf0;
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:flex-start;
    padding:40px;
    overflow-x:hidden;
}

/* MAIN APP */
navigation{
    width:100%;
    max-width:1400px;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:32px;
    padding:35px;
    box-shadow:
    0 10px 40px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.05);
    position:relative;
}

/* TOPBAR */
ul{
    display:flex;
    justify-content:space-between;
    align-items:center;
    list-style:none;
    margin-bottom:35px;
    gap:20px;
}

/* LOGO */
li a{
    text-decoration:none;
    color:#111;
    font-size:1.5rem;
    font-weight:700;
    letter-spacing:.5px;
}

/* SEARCH */
ul div{
    display:flex;
    flex-direction:column;
    width:280px;
    margin:0 auto;
    position:absolute;
    left:50%;
    transform:translateX(-50%);
}

ul{
    position:relative;
}

label{
    font-size:.9rem;
    color:#555;
    margin-bottom:8px;
    text-align:center;
}

input,
select{
    width:100%;
    padding:14px 16px;
    border-radius:14px;
    border:1px solid #d1d5db;
    background:linear-gradient(
    135deg,
    rgba(37,99,235,.15),
    rgba(124,58,237,.15)
    );
    color:#111;
    font-size:15px;
    outline:none;
    transition:.3s;
}

input:focus,
select:focus{
    border:1px solid #2563eb;
    background:#fff;
    box-shadow:
    0 0 0 4px rgba(59,130,246,.15);
    transform:translateY(-2px);
}

select:hover{
    border-color:#2563eb;
    transform:translateY(-2px);
}

option{
    background:#fff;
    color:#111;
}

/* HERO SECTION */
navigation > div{
    background:#f9fafb;
    border:1px solid #e5e7eb;
    padding:30px;
    border-radius:28px;
    margin-bottom:22px;
    position:relative;
    overflow:hidden;
    transition:.3s;
}

navigation > div:hover{
    transform:translateY(-4px);
    box-shadow:0 15px 40px rgba(0,0,0,.08);
}

h1{
    color:#111;
    font-size:3rem;
    line-height:1.1;
    margin-bottom:16px;
    text-align:center;
    font-weight:800;
}

p{
    color:#555;
    line-height:1.8;
    font-size:1rem;
    text-align:center;
}

h2{
    font-size:1.5rem;
    margin-bottom:22px;
    font-weight:700;
    text-align:center;
    color:#111;
}

/* SELECT AREA */
#county{
    margin-top:10px;
}

/* SCROLLBAR */
::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#f1f5f9;
}

::-webkit-scrollbar-thumb{
    background:#cbd5e1;
    border-radius:20px;
}

/* MOBILE */
@media(max-width:768px){

    body{
        padding:16px;
        align-items:flex-start;
    }

    navigation{
        padding:20px;
        border-radius:20px;
    }

    ul{
        flex-direction:column;
        align-items:center;
    }

    ul div{
        width:100%;
    }

    h1{
        font-size:2rem;
    }

}

/* =========================
   PRODUCT GRID
========================= */

.product-container{
    display:grid;
    grid-template-columns:
    repeat(auto-fill,minmax(280px,1fr));
    gap:24px;
    margin-top:30px;
}

/* =========================
   CARD
========================= */

.card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:20px;
    overflow:hidden;
    transition:.3s;
    color:#111;
    position:relative;
}

.card:hover{
    transform:translateY(-6px);
    box-shadow:0 15px 35px rgba(0,0,0,.1);
}

/* =========================
   IMAGE
========================= */

.card-image{
    width:100%;
    height:290px;
    overflow:hidden;
    background:#0f172a;
}

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

/* =========================
   CONTENT
========================= */

.card-content{
    padding:16px;
    text-align:center;
}

.card-content h2{
    font-size:16px;
    font-weight:700;
    color:#111;
    margin-bottom:8px;
    line-height:1.4;
}

.card-content p{
    font-size:13px;
    color:#555;
    margin-bottom:6px;
    line-height:1.6;
}

/* =========================
   BUTTON
========================= */

.card-content button{
    margin-top:12px;
    width:100%;
    border:none;
    border-radius:12px;
    padding:12px;
    background:#06c755;
    color:#fff;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

.card-content button:hover{
    background:#05ad4a;
    transform:translateY(-2px);
}

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

@media(max-width:768px){

    ul div{
        position:relative;
        left:auto;
        transform:none;
        width:100%;
    }

    h1{
        font-size:1.5rem;
    }

    p{
        font-size:.85rem;
    }

    h2{
        font-size:1.1rem;
    }

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

    .card{
        border-radius:14px;
    }

    .card-image{
        height:160px;
    }

    .card-content{
        padding:10px;
    }

    .card-content h2{
        font-size:12px;
        margin-bottom:4px;
    }

    .card-content p{
        font-size:11px;
        margin-bottom:3px;
    }

    .card-content button{
        font-size:11px;
        padding:8px;
        margin-top:6px;
    }

}

/* =========================
   GLASS BUTTON
========================= */

.glass-btn{
    padding:12px 24px;
    border-radius:14px;
    border:1px solid #e5e7eb;
    background:#fff;
    color:#111;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
}

.glass-btn:hover{
    background:#f9fafb;
    border-color:#2563eb;
    color:#2563eb;
    transform:translateY(-2px);
    box-shadow:0 6px 16px rgba(37,99,235,.15);
}

.glass-btn:active{
    transform:translateY(0);
}

/* =========================
   AUTH BUTTONS
========================= */

/* base rule มาจาก global.css แล้ว (โหลดคู่กันเสมอในหน้านี้) เหลือแค่ override ที่ต่างจริง */
#auth-buttons{
    justify-content:center;
}

#auth-buttons a,
#auth-buttons button{
    width:auto;
}

/* =========================
   FOOTER
========================= */

/* base rule มาจาก global.css แล้ว เหลือแค่ override ที่ต่างจริง (padding) */
.footer{
    padding:24px;
}

.footer p{
    margin-bottom:6px;
    line-height:1.6;
}

/* HERO SECTION */
.hero{
    background:#f9fafb;
    border:1px solid #e5e7eb;
    padding:30px;
    border-radius:28px;
    margin-bottom:22px;
}

.hero h1{
    font-size:2rem;
    font-weight:800;
    color:#111;
    text-align:center;
    margin-bottom:16px;
}

.hero-text{
    font-size:1rem;
    color:#555;
    text-align:center;
    line-height:1.8;
    margin-bottom:12px;
}

.hero-note{
    font-size:.85rem;
    color:#94a3b8;
    text-align:center;
    line-height:1.7;
    margin-bottom:0;
}

/* MOBILE */
@media(max-width:768px){

    .hero h1{
        font-size:1.4rem;
    }

    .hero-text{
        font-size:.9rem;
    }

    .hero-note{
        font-size:.8rem;
    }

}