/* ===== PIROM STORE - STYLESHEET ===== */

/* ===== RESET & VARIABLES ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #FAF8F5;
    --bg-card: #FFFFFF;
    --text: #3D3229;
    --text-light: #7A6B5D;
    --accent: #8B7355;
    --accent-dark: #6B5740;
    --accent-light: #C4B5A0;
    --border: #E8E0D8;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 2px 12px rgba(61, 50, 41, 0.06);
    --shadow-lg: 0 8px 32px rgba(61, 50, 41, 0.10);
    --font-thai: 'Noto Sans Thai', sans-serif;
    --font-en: 'Playfair Display', serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-thai);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

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

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-en);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text);
}

.logo {
    width: 40px;
    height: 40px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--accent);
    color: white;
}

.nav-cart {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
}

.nav-cart:hover {
    border-color: var(--accent);
}

.nav-cart svg {
    width: 20px;
    height: 20px;
    stroke: var(--text);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    background: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
    padding: 60px 0 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-tag {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-title {
    font-family: var(--font-thai);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 440px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.btn {
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.hero-features {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
}

.hero-feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.hero-feature-icon.green {
    background: #E8F5E9;
}

.hero-feature-icon.orange {
    background: #FFF3E0;
}

.hero-feature-icon.blue {
    background: #E3F2FD;
}

.hero-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hero-img-container {
    aspect-ratio: 1;
    background: var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0ebe5 0%, #e8e0d8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

/* ===== BENEFITS ===== */
.benefits {
    padding: 40px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.benefit-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.benefit-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.benefit-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.benefit-icon.leaf {
    background: #F5F0EB;
}

.benefit-icon.shield {
    background: #E8F5E9;
}

.benefit-icon.thumb {
    background: #FFF3E0;
}

.benefit-icon.refresh {
    background: #E3F2FD;
}

.benefit-text h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.benefit-text p {
    font-size: 12px;
    color: var(--text-light);
}

/* ===== PRODUCTS ===== */
.products {
    padding: 60px 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
}

.section-link {
    font-size: 14px;
    color: var(--accent);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

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

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.product-image {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f5f0eb 0%, #ebe5dd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #FDD835;
    color: var(--text);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
}

.product-img-placeholder {
    font-size: 56px;
    opacity: 0.6;
}

.product-info {
    padding: 16px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.4;
}

.product-sub {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.5;
}

.product-size {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.size-btn {
    flex: 1;
    padding: 6px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    background: var(--bg);
    color: var(--text-light);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.size-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.product-price .original {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 4px;
}

.add-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.add-btn:hover {
    background: var(--accent-dark);
    transform: scale(1.1);
}

/* ===== PROMO BANNER ===== */
.promo-banner {
    padding: 0 0 60px;
}

.promo-inner {
    background: var(--accent);
    border-radius: var(--radius);
    padding: 36px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.promo-text h3 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 8px;
}

.promo-text p {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
}

.promo-btn {
    padding: 14px 32px;
    background: white;
    color: var(--accent);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ===== STORY ===== */
.story {
    padding: 10px 0;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.story-imag-container {
    background: linear-gradient(135deg, #e8e0d8 0%, #d5cdc5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-image {
    width: 100%;
    height: 50%;
    object-fit: contain;
    border-radius: var(--radius);
}

.story-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.story-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
}

.story-text {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 16px;
}

.story-text-en {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.8;
    font-style: italic;
}

/* ===== COLLECTIONS ===== */
.collections {
    padding: 60px 0;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.collection-card {
    aspect-ratio: 3/4;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1.5px dashed var(--border);
    transition: all 0.3s;
    cursor: pointer;
}

.collection-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.collection-card:nth-child(1) {
    background: linear-gradient(135deg, #E8F5E9, #F1F8E9);
}

.collection-card:nth-child(2) {
    background: linear-gradient(135deg, #FFF8E1, #FFF3E0);
}

.collection-card:nth-child(3) {
    background: linear-gradient(135deg, #E3F2FD, #E8F5E9);
}

.collection-card:nth-child(4) {
    background: linear-gradient(135deg, #FCE4EC, #F3E5F5);
}

.collection-card:nth-child(5) {
    background: linear-gradient(135deg, #FFF8E1, #FCE4EC);
}

.collection-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.collection-name {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.collection-link {
    font-size: 12px;
    color: var(--text-light);
}

/* ===== PAGE SYSTEM ===== */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* ===== PROMOTIONS PAGE ===== */
.promo-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.promo-card {
    background: white;
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
}

.promo-card.green {
    background: linear-gradient(135deg, #E8F5E9, #F1F8E9);
}

.promo-card.yellow {
    background: linear-gradient(135deg, #FFF8E1, #FFF3E0);
}

.promo-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.promo-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.promo-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

.promo-combo {
    background: white;
    border-radius: var(--radius);
    padding: 28px 32px;
    border: 1px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.promo-combo p {
    font-size: 14px;
    color: var(--text-light);
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.contact-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-icon.phone {
    background: #F5F0EB;
}

.contact-icon.line {
    background: #E8F5E9;
}

.contact-icon.ig {
    background: #FFF3E0;
}

.contact-icon.email {
    background: #E3F2FD;
}

.contact-label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 2px;
}

.contact-value {
    font-size: 15px;
    font-weight: 600;
}

.newsletter-box {
    background: white;
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
}

.newsletter-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.newsletter-box p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 20px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.newsletter-input:focus {
    border-color: var(--accent);
}

.newsletter-btn {
    padding: 12px 28px;
    background: var(--accent);
    color: white;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.newsletter-btn:hover {
    background: var(--accent-dark);
}

/* ===== FOOTER ===== */
.footer {
    background: #F0EBE5;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-en);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 360px;
}

.footer-contact h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-contact p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--text);
    color: white;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    transform: translateY(80px);
    opacity: 0;
    transition: all 0.4s;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-images {
        order: -1;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .collections-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .promo-cards {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 30px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .promo-combo {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    z-index: 99;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    color: var(--accent);
}