/* ═══════════════════════════════════════════════════════════════
   千葉園 CHIBA — store.css
   Storefront: home + orchid configurator. Green/red per logo.
═══════════════════════════════════════════════════════════════ */

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

:root {
    --green:       #2E9E41;   /* logo leaf green (primary) */
    --green-dark:  #237A32;
    --green-hover: #268538;
    --green-soft:  #E8F5E9;   /* pale green wash */
    --red:         #D8241F;   /* plum-blossom red (accent) */
    --red-dark:    #B01B17;
    --cream:       #F5FAF2;   /* faint green-tinted background */
    --dark-text:   #2A2E2A;
    --light-text:  #667066;
    --white:       #FFFFFF;
    --border:      #E1E8E0;
    --shadow:      rgba(30,60,30,0.08);
    --shadow-lg:   rgba(30,60,30,0.16);
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    color: var(--dark-text);
    background-color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Noto Serif TC', serif; }

/* ── Header ────────────────────────────────────────────────── */
header {
    background-color: var(--white);
    box-shadow: 0 2px 12px var(--shadow);
    position: sticky; top: 0; z-index: 1000;
    border-top: 4px solid var(--green);
}

.header-container {
    max-width: 1200px; margin: 0 auto; padding: 0.9rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
}

.logo { text-decoration: none; display: flex; align-items: center; gap: 0.65rem; }
.logo-img { height: 50px; width: auto; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-cn {
    font-family: 'Noto Serif TC', serif; font-size: 1.4rem; font-weight: 700;
    color: var(--green); letter-spacing: 0.04em;
}
.logo-en {
    font-family: 'Montserrat', 'Arial Black', sans-serif;
    font-style: italic; font-weight: 800; font-size: 0.95rem;
    color: var(--green); letter-spacing: 0.01em; text-transform: uppercase;
}

nav ul { list-style: none; display: flex; gap: 1.6rem; flex-wrap: wrap; }
nav a {
    text-decoration: none; color: var(--dark-text); font-size: 0.92rem;
    transition: color 0.3s ease; position: relative;
}
nav a:hover { color: var(--green); }
nav a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background-color: var(--green); transition: width 0.3s ease;
}
nav a:hover::after { width: 100%; }

.mobile-menu-toggle {
    display: none; flex-direction: column; gap: 5px; cursor: pointer;
    background: none; border: none; padding: 4px;
}
.mobile-menu-toggle span {
    width: 25px; height: 3px; background-color: var(--green);
    display: block; transition: all 0.3s ease; border-radius: 2px;
}

/* ── Button ─────────────────────────────────────────────────── */
.btn {
    display: inline-block; padding: 0.75rem 2rem;
    background-color: var(--green); color: var(--white);
    text-decoration: none; border-radius: 50px; font-weight: 500;
    font-size: 0.95rem; transition: all 0.3s ease; border: none; cursor: pointer;
    font-family: 'Noto Sans TC', sans-serif;
}
.btn:hover {
    background-color: var(--green-hover); transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46,158,65,0.35); color: var(--white);
}
.btn-full { width: 100%; text-align: center; }

/* ── Section base ───────────────────────────────────────────── */
.section-inner { max-width: 1200px; margin: 0 auto; padding: 4.5rem 2rem; }
.section-title { text-align: center; font-size: 2.1rem; margin-bottom: 0.6rem; color: var(--dark-text); }
.section-title::after {
    content: ''; display: block; width: 54px; height: 3px;
    background: var(--red); margin: 0.8rem auto 0; border-radius: 2px;
}
.section-subtitle { text-align: center; color: var(--light-text); font-size: 1.02rem; margin-bottom: 2.8rem; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero { position: relative; width: 100%; height: 460px; overflow: hidden; }
.hero-slider { position: relative; width: 100%; height: 100%; }
.hero-slide {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 1s ease-in-out; background-size: cover; background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::before { content: ''; position: absolute; inset: 0; background: rgba(20,50,20,0.34); }
.slide-1 { background: linear-gradient(135deg, #2E9E41 0%, #237A32 55%, #14532b 100%); }
.hero-content { position: relative; z-index: 2; text-align: center; color: var(--white); max-width: 820px; padding: 2rem; }
.hero-content h1 { font-size: 2.8rem; margin-bottom: 1rem; animation: fadeInUp 1s ease; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.hero-content p { font-size: 1.18rem; margin-bottom: 1.8rem; animation: fadeInUp 1.2s ease; }
.hero-content .btn {
    animation: fadeInUp 1.4s ease; padding: 0.9rem 2.5rem;
    background: var(--red);
}
.hero-content .btn:hover { background: var(--red-dark); box-shadow: 0 6px 20px rgba(216,36,31,0.4); }

/* ── Product / Orchid Grid ──────────────────────────────────── */
.product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2rem;
}
.product-card {
    background: var(--white); border-radius: 16px; overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow); transition: all 0.3s ease;
    display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 14px 32px var(--shadow-lg); }
.card-image-link { display: block; overflow: hidden; }
.product-card img { width: 100%; height: 240px; object-fit: cover; display: block; transition: transform 0.4s ease; }
.product-card:hover img { transform: scale(1.06); }
.product-image-placeholder {
    width: 100%; height: 240px; background: linear-gradient(135deg, var(--green-soft), var(--cream));
    display: flex; align-items: center; justify-content: center; font-size: 3.5rem;
}
.product-info { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.product-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.4rem; font-family: 'Noto Serif TC', serif; }
.product-desc { font-size: 0.85rem; color: var(--light-text); margin-bottom: 0.8rem; flex: 1; }
.product-price { color: var(--red); font-weight: 600; font-size: 1rem; margin-bottom: 1rem; }
.product-price .price-from { font-size: 1.15rem; }

/* ── Services ───────────────────────────────────────────────── */
.services-section { background-color: var(--green-soft); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2rem; }
.service-item { text-align: center; padding: 2rem 1.5rem; background: var(--white); border-radius: 15px; transition: all 0.3s ease; }
.service-item:hover { transform: translateY(-5px); box-shadow: 0 10px 30px var(--shadow); }
.service-icon { font-size: 2.6rem; margin-bottom: 0.8rem; display: block; }
.service-title { font-size: 1.15rem; margin-bottom: 0.4rem; }
.service-text { color: var(--light-text); font-size: 0.9rem; }

/* ── About ──────────────────────────────────────────────────── */
.about-section { background-color: var(--white); }
.about-content { max-width: 780px; margin: 0 auto; text-align: center; font-size: 1.04rem; color: var(--light-text); line-height: 1.95; }
.about-content p + p { margin-top: 1.1rem; }

/* ── Configurator / Checkout ────────────────────────────────── */
.checkout-container { max-width: 1080px; margin: 2.5rem auto; padding: 0 2rem; }
.back-link { display: inline-block; color: var(--green); text-decoration: none; font-size: 0.9rem; margin-bottom: 1.2rem; }
.back-link:hover { color: var(--green-dark); }
.checkout-wrapper { display: grid; grid-template-columns: 1fr 1.25fr; gap: 2.5rem; align-items: start; }

.card { background: var(--white); padding: 2rem; border-radius: 16px; box-shadow: 0 5px 22px var(--shadow); }
.product-summary { position: sticky; top: 90px; }
.product-summary img { width: 100%; border-radius: 12px; margin-bottom: 1rem; aspect-ratio: 1/1; object-fit: cover; }
.product-summary-placeholder {
    width: 100%; height: 240px; border-radius: 12px; background: linear-gradient(135deg, var(--green-soft), var(--cream));
    display: flex; align-items: center; justify-content: center; font-size: 4rem; margin-bottom: 1rem;
}
.product-name { font-size: 1.4rem; font-weight: 700; font-family: 'Noto Serif TC', serif; }

.summary-box { margin-top: 1rem; border-top: 1px dashed var(--border); padding-top: 1rem; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.92rem; padding: 0.35rem 0; color: var(--light-text); }
.summary-row span:last-child { color: var(--dark-text); font-weight: 500; text-align: right; }
.summary-total {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-top: 0.6rem; padding-top: 0.8rem; border-top: 2px solid var(--green-soft); font-size: 1rem; font-weight: 600;
}
.final-price { color: var(--red); font-weight: 700; font-size: 1.5rem; font-family: 'Noto Serif TC', serif; }

/* Config steps */
.config-step { margin-bottom: 1.8rem; }
.config-step-title { font-size: 1.1rem; margin-bottom: 0.9rem; display: flex; align-items: center; gap: 0.55rem; }
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff;
    font-size: 0.85rem; font-family: 'Noto Sans TC', sans-serif; font-weight: 700;
}

.option-grid { display: grid; gap: 0.7rem; }
.stems-grid { grid-template-columns: repeat(3, 1fr); }
.deco-grid  { grid-template-columns: repeat(4, 1fr); }
.option-card {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
    border: 1.5px solid var(--border); border-radius: 12px; padding: 0.9rem 0.4rem; cursor: pointer;
    transition: all 0.2s ease; text-align: center;
}
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-card:hover { border-color: var(--green); }
.option-card:has(input:checked) { border-color: var(--green); background: var(--green-soft); box-shadow: 0 0 0 3px rgba(46,158,65,0.12); }
.option-label { font-weight: 600; font-size: 1rem; }
.option-price { font-size: 0.8rem; color: var(--light-text); }
.option-card:has(input:checked) .option-price { color: var(--green-dark); }

.toggle-card {
    display: flex; align-items: center; gap: 0.8rem; border: 1.5px solid var(--border);
    border-radius: 12px; padding: 0.9rem 1.1rem; cursor: pointer; transition: all 0.2s ease;
}
.toggle-card:hover { border-color: var(--green); }
.toggle-card:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.toggle-card input { width: 20px; height: 20px; accent-color: var(--green); }
.toggle-label { font-weight: 500; flex: 1; }

/* Form */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 500; font-size: 0.92rem; }
.req { color: var(--red); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: 9px;
    font-size: 0.95rem; font-family: 'Noto Sans TC', sans-serif; transition: border-color 0.2s;
    background: var(--white); color: var(--dark-text);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(46,158,65,0.15);
}
.form-group textarea { resize: vertical; min-height: 76px; }

.stripe-card { padding: 0.8rem 1rem; border: 1px solid var(--border); border-radius: 9px; background: #fff; }

.checkout-alert { padding: 0.9rem 1rem; border-radius: 9px; margin-bottom: 1rem; font-size: 0.95rem; display: none; white-space: pre-line; }
.checkout-alert.success { background: #d1fae5; color: #065f46; }
.checkout-alert.error   { background: #fee2e2; color: #991b1b; }

.checkout-submit {
    width: 100%; padding: 1rem; background: var(--red); color: var(--white);
    border: none; border-radius: 50px; font-size: 1.02rem; cursor: pointer; margin-top: 0.5rem;
    font-family: 'Noto Sans TC', sans-serif; font-weight: 600; transition: all 0.3s ease;
}
.checkout-submit:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(216,36,31,0.35); }
.checkout-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Footer ─────────────────────────────────────────────────── */
footer { background-color: #1c3a20; color: var(--white); padding: 3rem 2rem 1rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-section h3 { margin-bottom: 1rem; color: #9fe0a8; font-size: 1.1rem; }
.footer-section p, .footer-section a { color: #cfe3d0; text-decoration: none; display: block; margin-bottom: 0.4rem; font-size: 0.9rem; transition: color 0.3s ease; }
.footer-section a:hover { color: #fff; }
.footer-bottom { max-width: 1200px; margin: 0 auto; text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.12); color: #9db69f; font-size: 0.85rem; }

/* ── WhatsApp Float ─────────────────────────────────────────── */
.whatsapp-float {
    position: fixed; bottom: 28px; right: 28px; width: 58px; height: 58px;
    background-color: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 18px rgba(37,211,102,0.45); text-decoration: none; z-index: 999; transition: all 0.3s ease; font-size: 1.8rem;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ── Empty state ────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--light-text); }
.empty-state .empty-icon { font-size: 3.5rem; margin-bottom: 1rem; display: block; }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.anim-item { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.anim-item.visible { opacity: 1; transform: translateY(0); }

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .mobile-menu-toggle { display: flex; }
    nav { position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); box-shadow: 0 5px 20px var(--shadow); max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
    nav.open { max-height: 600px; }
    nav ul { flex-direction: column; padding: 1rem 2rem; gap: 0; }
    nav li { padding: 0.8rem 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
    .hero { height: 360px; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }
    .section-inner { padding: 3rem 1rem; }
    .section-title { font-size: 1.7rem; }
    .product-grid { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
    .services-grid { grid-template-columns: 1fr; }
    .checkout-wrapper { grid-template-columns: 1fr; gap: 1.5rem; }
    .product-summary { position: static; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.6rem; }
    .product-grid { grid-template-columns: 1fr; }
    .deco-grid { grid-template-columns: repeat(2, 1fr); }
    .whatsapp-float { width: 50px; height: 50px; bottom: 18px; right: 18px; font-size: 1.5rem; }
    .footer-inner { grid-template-columns: 1fr; }
}
