:root {
    --butterfly-purple: #5b21b6;
    --pennywort-green: #15803d;
    --roselle-red: #be123c;
    --tamarind-brown: #92400e;
    --bael-amber: #d97706;
    --bg-cream: #fcfbf7;
    --text-dark: #1f2937;
    --text-muted: #4b5563;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Prompt', 'Sarabun', sans-serif;
    background: linear-gradient(180deg, #f8f5ff 0%, #f3faf5 45%, #fff8f6 100%);
    color: var(--text-dark);
    line-height: 1.65;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(100deg, #4c1d95 0%, #166534 52%, #9f1239 100%);
    box-shadow: 0 6px 20px rgba(76, 29, 149, 0.25);
    padding: 0.85rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
    font-size: 1.25rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.25);
    transition: transform 0.25s ease;
}

.brand:hover {
    transform: scale(1.03);
}

.nav-links {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    padding: 0.45rem 0.95rem;
    border-radius: 50px;
    position: relative;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-links a:active {
    transform: translateY(1px) scale(0.96);
    background: rgba(255, 255, 255, 0.35);
}

.btn-call {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: var(--white) !important;
    padding: 0.55rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.4);
    transition: all 0.25s ease;
}

.btn-call:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.55);
}

.btn-call:active {
    transform: scale(0.96);
}

.hero {
    position: relative;
    z-index: 1;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 4.5rem 5% 6rem;
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, rgba(76, 29, 149, 0.84) 0%, rgba(21, 128, 61, 0.78) 50%, rgba(190, 18, 60, 0.82) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.45);
    padding: 0.4rem 1.15rem;
    border-radius: 50px;
    font-size: 0.92rem;
    margin-bottom: 1.2rem;
    backdrop-filter: blur(6px);
}

.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
    text-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.18rem);
    color: #f9fafb;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, #f59e0b, #e11d48);
    color: var(--white);
    padding: 0.9rem 1.9rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.35);
    transition: all 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(225, 29, 72, 0.5);
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-outline {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border: 2px solid var(--white);
    padding: 0.85rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--butterfly-purple);
    transform: translateY(-3px);
}

.btn-outline:active {
    transform: scale(0.97);
}

.preorder-banner {
    max-width: 1140px;
    margin: -3rem auto 2rem;
    padding: 0 5%;
    position: relative;
    z-index: 30;
}

.preorder-box {
    background: linear-gradient(135deg, #fffbeb 0%, #fef2f2 50%, #f5f3ff 100%);
    border: 2px solid #f59e0b;
    border-left: 8px solid #be123c;
    padding: 1.35rem 1.7rem;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.14);
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    flex-wrap: wrap;
}

.preorder-badge {
    background: linear-gradient(135deg, #be123c, #5b21b6);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
}

.preorder-text {
    color: #1f2937;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.75;
    flex: 1;
}

.highlights {
    max-width: 1140px;
    margin: 0 auto 2.5rem;
    padding: 0 5%;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.4rem;
    border-radius: 12px;
    transition: transform 0.2s;
}

.highlight-item:hover {
    transform: translateY(-2px);
}

.highlight-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    color: #fff;
}

.section {
    max-width: 1140px;
    margin: 0 auto;
    padding: 3.5rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 2.6rem;
}

.section-header h2 {
    font-size: 2.1rem;
    background: linear-gradient(90deg, #5b21b6, #15803d, #be123c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.8rem;
}

.product-card {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border-top: 6px solid var(--card-color, #15803d);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 34px -8px rgba(0, 0, 0, 0.16);
}

.product-img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f3f4f6;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.05);
}

.product-volume {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--card-color, #15803d);
    color: #fff;
    padding: 0.28rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.product-body {
    padding: 1.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--card-color, #15803d);
    margin-bottom: 0.4rem;
}

.product-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.product-benefit {
    background: #f8fafc;
    border-left: 4px solid var(--card-color, #15803d);
    padding: 0.55rem 0.8rem;
    font-size: 0.85rem;
    color: #334155;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.2rem;
}

.product-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
}

.product-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--card-color, #15803d);
}

.btn-add-cart-inactive {
    background: #e5e7eb;
    color: #6b7280;
    border: 1px dashed #9ca3af;
    padding: 0.5rem 0.9rem;
    border-radius: 10px;
    cursor: not-allowed;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.84rem;
    opacity: 0.85;
    user-select: none;
}

.preorder-hint-mini {
    font-size: 0.75rem;
    color: #be123c;
    margin-top: 0.45rem;
    text-align: right;
    font-weight: 500;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    border-color: var(--butterfly-purple);
    transform: translateY(-4px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-overlay {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
    color: #fff;
    padding: 1.2rem 1rem 0.9rem;
}

.gallery-overlay h4 {
    font-size: 1rem;
}

.gallery-overlay p {
    font-size: 0.8rem;
    opacity: 0.85;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 860px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
    }
}

.card-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--butterfly-purple);
    box-shadow: 0 0 0 3px rgba(91, 33, 182, 0.12);
}

.map-frame {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 12px;
    margin-top: 1rem;
}

.cart-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, #5b21b6, #be123c);
    color: #fff;
    padding: 0.85rem 1.35rem;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(91, 33, 182, 0.4);
    cursor: pointer;
    z-index: 999;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.95rem;
    transition: transform 0.25s ease;
}

.cart-float:hover {
    transform: translateY(-3px);
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    cursor: zoom-out;
    user-select: none;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 850px;
    width: 100%;
    text-align: center;
    color: #fff;
    pointer-events: none;
}

.modal-content img {
    max-height: 75vh;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2010;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.38);
    transform: translateY(-50%) scale(1.08);
}

.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

footer {
    background: linear-gradient(100deg, #3b0764 0%, #14532d 50%, #881337 100%);
    color: #f3f4f6;
    text-align: center;
    padding: 2.5rem 5%;
    margin-top: 3rem;
}

footer a {
    color: #fde68a;
    text-decoration: none;
}
