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

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

:root {
    --tea-900: #1B5E20;
    --tea-700: #2E7D32;
    --tea-600: #43A047;
    --tea-400: #66BB6A;
    --tea-200: #C8E6C9;
    --tea-100: #E8F5E9;
    --tea-bg: #F3FAF3;
    --tea-ink: #1F2A1F;
    --site-bg-color: #F3FAF3;
    --site-accent: #2E7D32;
    --site-accent2: #66BB6A;
    --site-pattern-opacity: 0.08;
    --site-bg-image: none;
    --tea-bg: var(--site-bg-color);
    --tea-700: var(--site-accent);
    --tea-400: var(--site-accent2);
}

body {
    font-family: 'Sarabun', sans-serif;
    font-size: 12px;
    line-height: 1.5;
    background-color: var(--tea-bg);
    background-image:
        var(--site-bg-image),
        radial-gradient(circle at 18% 12%, rgba(46,125,50,0.08), transparent 42%),
        radial-gradient(circle at 82% 28%, rgba(102,187,106,0.08), transparent 48%),
        radial-gradient(circle at 30% 88%, rgba(46,125,50,0.06), transparent 55%),
        url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27120%27%20height%3D%27120%27%20viewBox%3D%270%200%20120%20120%27%3E%3Cpath%20d%3D%27M84%2018c-22%208-38%2028-42%2052%2022-4%2040-18%2048-38%204-10%202-14-6-14Z%27%20fill%3D%27%232E7D32%27%20opacity%3D%270.08%27/%3E%3Cpath%20d%3D%27M38%2072c18%202%2034%2014%2040%2030-20%200-36-8-46-22-4-6-2-8%206-8Z%27%20fill%3D%27%2343A047%27%20opacity%3D%270.07%27/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat, no-repeat, repeat;
    background-size: cover, auto, auto, auto, 120px 120px;
    background-attachment: fixed;
    color: var(--tea-ink);
    min-height: 100vh;
    padding-bottom: 80px;
    max-width: 960px;
    margin: 0 auto;
    position: relative;
}

h1 { font-size: 18px; font-weight: 800; line-height: 1.25; }
h2 { font-size: 16px; font-weight: 800; line-height: 1.25; }
h3 { font-size: 14px; font-weight: 800; line-height: 1.25; }
h4 { font-size: 13px; font-weight: 800; line-height: 1.25; }
h5 { font-size: 12px; font-weight: 800; line-height: 1.25; }
h6 { font-size: 11px; font-weight: 800; line-height: 1.25; }
p { font-size: 11px; line-height: 1.5; }

/* ===== HEADER ===== */
.header {
    background: rgba(255,255,255,0.92);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(46,125,50,0.08);
    border-bottom: 1px solid rgba(200,230,201,0.9);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.header-logo .logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--tea-700), var(--tea-400));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: #fff;
}

.header-logo .logo-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

.header-logo .logo-text {
    font-size: 14px;
    font-weight: 800;
    color: var(--tea-700);
    line-height: 1.2;
}

.header-logo .logo-sub {
    font-size: 9px;
    font-weight: 400;
    color: #888;
}

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-login {
    background: transparent;
    border: 2px solid var(--tea-700);
    color: var(--tea-700);
    padding: 7px 16px;
    border-radius: 20px;
    font-family: 'Sarabun', sans-serif;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-login:hover {
    background: var(--tea-100);
}

.btn-register {
    background: linear-gradient(135deg, #DCE775, #C0CA33);
    border: none;
    color: var(--tea-ink);
    padding: 7px 16px;
    border-radius: 20px;
    font-family: 'Sarabun', sans-serif;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(253,216,53,0.4);
}

.btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(253,216,53,0.5);
}

/* ===== HERO SLIDESHOW ===== */
.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 24px 24px;
}

.slides-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.slide {
    min-width: 100%;
    padding: 36px 24px 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

/* Image-only slide mode */
.slide.slide-img-mode {
    padding: 0;
    min-height: 200px;
    background: #1e293b;
    display: block;
    cursor: pointer;
}

.slide-full-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.slide.slide-img-mode::before,
.slide.slide-img-mode::after {
    display: none;
}

.slide::after {
    content: '';
    position: absolute;
    bottom: -24px;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--tea-bg);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* Slide colour themes */
.slide-1 { background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 55%, #66BB6A 100%); }
.slide-2 {
    background: var(--home-slide2-bg-image, none) center center / cover no-repeat,
                linear-gradient(135deg, var(--home-slide2-bg1, #33691E) 0%, var(--home-slide2-bg2, #558B2F) 55%, var(--home-slide2-bg3, #9CCC65) 100%);
}
.slide-3 { background: linear-gradient(135deg, #2E7D32 0%, #43A047 55%, #A5D6A7 100%); }
.slide-4 { background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 55%, #43A047 100%); }

/* Decorative blobs */
.slide::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.slide-inner {
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 1;
}

.slide-tag {
    display: inline-block;
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 10px;
}

.slide-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.18);
    line-height: 1.2;
}

.slide-sub {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.88;
    margin-bottom: 0;
}

.slide-btn {
    display: inline-block;
    margin-top: 16px;
    background: rgba(255,255,255,0.22);
    border: 1.5px solid rgba(255,255,255,0.55);
    color: #fff;
    padding: 9px 24px;
    border-radius: 24px;
    font-family: 'Sarabun', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    backdrop-filter: blur(6px);
    transition: background 0.2s;
}

.slide-btn:hover { background: rgba(255,255,255,0.35); }

/* Arrow buttons */
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.22);
    border: 1.5px solid rgba(255,255,255,0.45);
    border-radius: 50%;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
    line-height: 1;
    padding: 0;
}

.slide-arrow:hover { background: rgba(255,255,255,0.38); }
.slide-prev { left: 10px; }
.slide-next { right: 10px; }

/* Dot indicators */
.slide-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: all 0.25s;
}

.dot.active {
    background: #fff;
    width: 22px;
    border-radius: 4px;
}

.date-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}

.date-badge .icon { font-size: 14px; }

/* ===== SEARCH CARD ===== */
.search-card {
    background: rgba(255,255,255,0.92);
    border-radius: 20px;
    margin: -30px 16px 20px;
    padding: 22px;
    box-shadow: 0 8px 32px rgba(46,125,50,0.12);
    border: 1px solid rgba(200,230,201,0.75);
    position: relative;
    z-index: 10;
}

.search-card h2 {
    font-size: 14px;
    font-weight: 700;
    color: var(--tea-700);
    margin-bottom: 16px;
    padding-left: 10px;
    border-left: 4px solid var(--tea-700);
}

.search-input-wrap {
    position: relative;
    margin-bottom: 16px;
}

.search-input-wrap input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 2px solid var(--tea-100);
    border-radius: 12px;
    font-family: 'Sarabun', sans-serif;
    font-size: 12px;
    color: var(--tea-ink);
    outline: none;
    background: #F6FFF6;
    transition: border-color 0.2s;
}

.search-input-wrap input:focus {
    border-color: var(--tea-700);
    background: #fff;
}

.search-input-wrap .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #A5D6A7;
}

.search-actions {
    display: flex;
    gap: 10px;
}

.btn-search {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-family: 'Sarabun', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-search.primary {
    background: linear-gradient(135deg, var(--tea-700), var(--tea-400));
    color: #fff;
    box-shadow: 0 4px 12px rgba(46,125,50,0.28);
}

.btn-search.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(46,125,50,0.36);
}

/* ===== SECTION ===== */
.section {
    padding: 0 16px 20px;
}

.section-title {
    font-size: 14px;
    font-weight: 800;
    color: #1a2a3a;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, var(--tea-100), transparent);
    border-radius: 1px;
}

/* ===== CATEGORIES ===== */
.categories-wrap {
    position: relative;
}

.categories {
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.categories::-webkit-scrollbar { display: none; }

.cat-arrow {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-65%);
    width: 34px;
    height: 34px;
    background: #fff;
    border: 1.5px solid var(--tea-200);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(46,125,50,0.18);
    cursor: pointer;
    font-size: 14px;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.2s, box-shadow 0.2s;
    color: var(--tea-700);
    font-weight: 900;
    line-height: 1;
    padding: 0;
}

.cat-arrow:hover {
    background: var(--tea-100);
    box-shadow: 0 4px 14px rgba(46,125,50,0.24);
}

.cat-arrow.left  { left: -18px; }
.cat-arrow.right { right: -18px; }

@media (min-width: 600px) {
    .cat-arrow { display: flex; }
    .categories-wrap { padding: 0 24px; }
}

.category-item {
    background: rgba(255,255,255,0.92);
    border-radius: 14px;
    padding: 10px 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(46,125,50,0.06);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    border: 1.5px solid transparent;
    min-width: 76px;
    flex-shrink: 0;
}

.category-item:hover {
    transform: translateY(-2px);
    border-color: var(--tea-700);
    box-shadow: 0 4px 16px rgba(46,125,50,0.14);
}

.active-cat {
    border-color: var(--tea-700) !important;
}

.category-icon {
    font-size: 24px;
    margin-bottom: 6px;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.cat-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.category-name {
    font-size: 9px;
    font-weight: 600;
    color: #555;
    line-height: 1.3;
    white-space: nowrap;
}

/* ===== PRODUCTS ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.product-card {
    background: rgba(255,255,255,0.92);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(46,125,50,0.08);
    border: 1px solid rgba(200,230,201,0.75);
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(46,125,50,0.14);
}

.product-img {
    width: 100%;
    height: 130px;
    background: linear-gradient(135deg, var(--tea-100), var(--tea-200));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #E53935;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
}

.product-info {
    padding: 12px;
}

.product-name {
    font-size: 11px;
    font-weight: 700;
    color: #1a2a3a;
    margin-bottom: 4px;
    line-height: 1.4;
}

.product-desc {
    font-size: 9px;
    color: #888;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--tea-700);
}

.product-price span {
    font-size: 9px;
    color: #aaa;
    font-weight: 400;
    text-decoration: line-through;
    margin-left: 6px;
}

.btn-add-cart {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    background: linear-gradient(135deg, var(--tea-700), var(--tea-400));
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Sarabun', sans-serif;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, var(--tea-900), var(--tea-600));
}

/* ===== BANNER PROMO ===== */
.promo-banner {
    background: var(--home-promo-bg-image, none) center center / cover no-repeat,
                linear-gradient(135deg, var(--home-slide2-bg1, #33691E) 0%, var(--home-slide2-bg2, #558B2F) 55%, var(--home-slide2-bg3, #9CCC65) 100%);
    border-radius: 16px;
    padding: 28px 20px;
    min-height: 90px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(46,125,50,0.26);
    position: relative;
    overflow: hidden;
}

.promo-banner .promo-text h3 {
    font-size: 14px;
    font-weight: 800;
}

.promo-banner .promo-text p {
    font-size: 10px;
    opacity: 0.85;
    margin-top: 2px;
}

.promo-banner .promo-icon {
    font-size: 31px;
}

/* ===== PAGE WRAPPER (PC max-width) ===== */
.page-wrap {
    max-width: 960px;
    margin: 0 auto;
}

/* ===== POPULAR GRID ===== */
.pop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px;
}

@media (min-width: 600px) {
    .pop-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

.pgrid-card {
    background: rgba(255,255,255,0.92);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(46,125,50,0.08);
    border: 1px solid rgba(200,230,201,0.75);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.pgrid-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46,125,50,0.12);
}

.pgrid-img {
    width: 100%;
    height: 110px;
    background: linear-gradient(135deg, var(--tea-700), var(--tea-400));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 37px;
    position: relative;
}

@media (min-width: 600px) {
    .pgrid-img { height: 130px; font-size: 44px; }
}

.pgrid-badge {
    position: absolute;
    top: 7px;
    left: 7px;
    background: #E53935;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 8px;
}

.pgrid-body {
    flex: 1;
    padding: 10px 12px 6px;
}

.pgrid-name {
    font-size: 10px;
    font-weight: 700;
    color: #1a2a3a;
    margin-bottom: 3px;
    line-height: 1.4;
}

@media (min-width: 600px) {
    .pgrid-name { font-size: 11px; }
}

.pgrid-desc {
    font-size: 8px;
    color: #aaa;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pgrid-price {
    font-size: 13px;
    font-weight: 800;
    color: var(--tea-700);
    margin-bottom: 2px;
}

.pgrid-price s {
    font-size: 8px;
    color: #ccc;
    font-weight: 400;
    margin-left: 4px;
}

.pgrid-stock {
    font-size: 8px;
    color: #aaa;
}

.pgrid-btns {
    display: flex;
    gap: 6px;
    padding: 8px 10px 10px;
}

.pgrid-share {
    flex: 1;
    padding: 7px 0;
    border: 1.5px solid var(--tea-700);
    color: var(--tea-700);
    background: transparent;
    border-radius: 8px;
    font-family: 'Sarabun', sans-serif;
    font-size: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.pgrid-share:hover { background: var(--tea-100); }

.pgrid-cart {
    flex: 2;
    padding: 7px 0;
    background: linear-gradient(135deg, var(--tea-700), var(--tea-400));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Sarabun', sans-serif;
    font-size: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.pgrid-cart:hover { opacity: 0.88; }

/* ===== BOTTOM NAV ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 960px;
    background: rgba(255,255,255,0.92);
    display: flex;
    border-top: 1px solid var(--tea-100);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 100;
    border-radius: 0;
    backdrop-filter: blur(10px);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 8px;
    text-decoration: none;
    color: #aaa;
    font-size: 8px;
    font-weight: 600;
    transition: all 0.2s;
    gap: 4px;
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Sarabun', sans-serif;
}

.nav-item .nav-icon {
    font-size: 19px;
    line-height: 1;
}

.nav-item.active {
    color: var(--tea-700);
}

.nav-item.active .nav-icon {
    transform: scale(1.1);
}

.nav-item:hover {
    color: var(--tea-700);
}

/* ===== AUTH PAGES ===== */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(160deg, #1B5E20 0%, #43A047 40%, var(--tea-bg) 40%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 20px 40px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 28px;
    color: #fff;
}

.auth-logo .logo-circle {
    width: 72px;
    height: 72px;
    background: rgba(255,255,255,0.2);
    border: 3px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 29px;
    margin: 0 auto 10px;
    backdrop-filter: blur(8px);
}

.auth-logo .logo-circle img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
}

.auth-logo h1 {
    font-size: 17px;
    font-weight: 800;
}

.auth-logo p {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 2px;
}

.auth-card {
    background: rgba(255,255,255,0.92);
    border-radius: 24px;
    padding: 28px 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 16px 48px rgba(46,125,50,0.15);
    border: 1px solid rgba(200,230,201,0.75);
}

.auth-card h2 {
    font-size: 17px;
    font-weight: 800;
    color: #1a2a3a;
    margin-bottom: 4px;
}

.auth-card .auth-desc {
    font-size: 11px;
    color: #888;
    margin-bottom: 22px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #444;
    margin-bottom: 6px;
}

.form-group .input-wrap {
    position: relative;
}

.form-group .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #A5D6A7;
    pointer-events: none;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 2px solid var(--tea-100);
    border-radius: 12px;
    font-family: 'Sarabun', sans-serif;
    font-size: 12px;
    color: var(--tea-ink);
    outline: none;
    background: #F6FFF6;
    transition: border-color 0.2s;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--tea-700);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(46,125,50,0.08);
}

.form-group input::placeholder {
    color: #bbb;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--tea-700), var(--tea-400));
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: 'Sarabun', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(46,125,50,0.26);
    margin-top: 6px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(46,125,50,0.34);
}

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

.auth-divider {
    text-align: center;
    margin: 18px 0;
    position: relative;
    color: #bbb;
    font-size: 10px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--tea-100);
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-switch {
    text-align: center;
    margin-top: 18px;
    font-size: 11px;
    color: #888;
}

.auth-switch a {
    color: var(--tea-700);
    font-weight: 700;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.forgot-link {
    float: right;
    font-size: 10px;
    color: var(--tea-700);
    text-decoration: none;
    font-weight: 600;
}

.forgot-link:hover { text-decoration: underline; }

.alert {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 11px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error { background: #FFEBEE; color: #D32F2F; border: 1px solid #FFCDD2; }

/* ===== CART BADGE ===== */
.cart-badge {
    position: relative;
    display: inline-block;
}

.badge-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #E53935;
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* ===== SECTION HDR ===== */
.section-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    margin-bottom: 12px;
}

.section-hdr h3 {
    font-size: 14px;
    font-weight: 800;
    color: #1a2a3a;
}

.section-hdr a {
    font-size: 10px;
    color: var(--tea-700);
    font-weight: 700;
    text-decoration: none;
}
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 11px;
    font-weight: 600;
}

.alert-success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
}

.alert-error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #FFCDD2;
}

.terms-text {
    font-size: 9px;
    color: #aaa;
    text-align: center;
    margin-top: 14px;
    line-height: 1.6;
}

.terms-text a {
    color: var(--tea-700);
    text-decoration: none;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 14px;
    color: #aaa;
    background: none;
    border: none;
    padding: 0;
}

/* ===== CART BADGE ===== */
.cart-badge {
    position: relative;
}

.cart-badge .badge-count {
    position: absolute;
    top: -2px;
    right: -4px;
    background: #E53935;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 400px) {
    .header-logo .logo-text { font-size: 12px; }
    .products-grid { gap: 10px; }
    .categories { grid-template-columns: repeat(4, 1fr); gap: 8px; }
}
