/* ── Reset & Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --clr-bg:      #ffffff;
    --clr-surface: #f8f8f8;
    --clr-border:  #e0e0e0;
    --clr-text:    #1a1a1a;
    --clr-muted:   #666666;
    --clr-accent:  #0a0a0a;
    --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-w:       960px;
    --gap:         1.5rem;
    --radius:      4px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--clr-text); background: var(--clr-bg); line-height: 1.6; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gap); }

/* ── Header ────────────────────────────────────────────────────────────────── */
.site-header {
    border-bottom: 1px solid var(--clr-border);
    background: var(--clr-bg);
    position: sticky; top: 0; z-index: 100;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.logo {
    font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em;
}
.main-nav { display: flex; gap: 2rem; }
.main-nav a {
    font-size: 0.95rem; font-weight: 500;
    padding: 0.25rem 0; border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}
.main-nav a:hover { border-bottom-color: var(--clr-accent); }

.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
    text-align: center;
    padding: 2rem var(--gap) 2.5rem;
    background: var(--clr-surface);
}
.hero-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; }
.hero-img img { width: 100%; max-height: 300px; object-fit: cover; }
.hero h1 { font-size: 3rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 0.75rem; }
.hero-tagline { font-size: 1.2rem; color: var(--clr-muted); max-width: 600px; margin: 0 auto; }

/* ── Banner Carousel ───────────────────────────────────────────────────────── */
.banner-carousel {
    position: relative; max-width: var(--max-w); margin: 0 auto;
    overflow: hidden; background: #f0f0f0;
    padding: 0 var(--gap);
}
.carousel-track { position: relative; }
.carousel-slide {
    display: none; width: 100%;
    animation: fadeIn 0.6s ease;
}
.carousel-slide.active { display: block; }
.carousel-slide img { width: 100%; display: block; object-fit: cover; max-height: 480px; }
.carousel-slide a { display: block; }

.carousel-placeholder {
    display: flex; align-items: center; justify-content: center;
    height: 320px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}
.placeholder-inner { text-align: center; }
.placeholder-icon { font-size: 3rem; display: block; margin-bottom: 0.5rem; }
.placeholder-inner p { font-size: 1.5rem; font-weight: 600; }

.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.4); color: #fff; border: none;
    padding: 0.75rem 1rem; cursor: pointer; font-size: 1.25rem;
    border-radius: var(--radius); transition: background 0.2s;
    z-index: 2;
}
.carousel-btn:hover { background: rgba(0,0,0,0.7); }
.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }

.carousel-dots {
    position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
    display: flex; gap: 0.5rem; z-index: 2;
}
.dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.5); cursor: pointer;
    transition: background 0.2s;
}
.dot.active { background: #fff; }

@keyframes fadeIn {
    from { opacity: 0; } to { opacity: 1; }
}

/* ── Section Title ─────────────────────────────────────────────────────────── */
.section-title {
    font-size: 1.75rem; font-weight: 600; text-align: center;
    margin-bottom: 2.5rem; letter-spacing: -0.02em;
}

/* ── Product Grid ──────────────────────────────────────────────────────────── */
.showcase { padding: 4rem 0; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.product-card {
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }

.product-card-img {
    overflow: hidden;
    background: var(--clr-surface);
    display: flex; align-items: center; justify-content: center;
}
.product-card-img img { width: 100%; height: auto; object-fit: contain; }
.product-card-img.placeholder {
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; font-weight: 700; color: var(--clr-border);
}

.product-card-body { padding: 1.25rem 1.5rem; flex: 1; }
.product-card-body h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.product-card-body p  { font-size: 0.9rem; color: var(--clr-muted); }

.empty-state { text-align: center; color: var(--clr-muted); padding: 3rem 0; }

/* ── Product Detail – Three Layer Layout ───────────────────────────────────── */
.product-detail { padding: 2rem 0 4rem; }

.back-link {
    display: inline-block; margin-bottom: 2rem;
    font-size: 0.9rem; color: var(--clr-muted);
    transition: color 0.2s;
}
.back-link:hover { color: var(--clr-accent); }

/* Layer 1: Title bar (full width) */
.pd-title-bar {
    display: block;
    margin-bottom: 2rem; padding-bottom: 1rem;
    border-bottom: 1px solid var(--clr-border);
}
.pd-title-bar h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; }
.pd-price-tag { display: block; text-align: right; font-size: 2rem; font-weight: 600; margin-top: 0.5rem; }

/* Layer 2: Two columns – images + brief */
.pd-two-col {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

/* Gallery */
.pd-gallery { position: sticky; top: 80px; }
.pd-main-img {
    border-radius: var(--radius); overflow: hidden;
    background: var(--clr-surface); margin-bottom: 1rem;
}
.pd-main-img img { width: 100%; display: block; }
.pd-placeholder {
    display: flex; align-items: center; justify-content: center;
    min-height: 300px; font-size: 4rem; font-weight: 700; color: var(--clr-border);
}
.pd-thumbs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pd-thumb {
    width: 64px; height: 64px; object-fit: cover;
    border-radius: var(--radius); border: 2px solid transparent;
    cursor: pointer; transition: border-color 0.2s;
}
.pd-thumb:hover { border-color: var(--clr-muted); }
.pd-thumb.active { border-color: var(--clr-accent); }

/* Brief */
.pd-brief { padding-top: 0.5rem; }
.pd-subtitle { font-size: 1.1rem; color: var(--clr-muted); margin-bottom: 1rem; line-height: 1.6; }

/* Layer 3: A+ full-width content */
.pd-aplus {
    line-height: 1.8;
    border-top: 1px solid var(--clr-border);
    padding-top: 2.5rem;
}
.pd-aplus h2 { font-size: 1.5rem; margin: 1.5rem 0 0.75rem; }
.pd-aplus h3 { font-size: 1.25rem; margin: 1.25rem 0 0.5rem; }
.pd-aplus p  { margin-bottom: 1rem; }
.pd-aplus ul, .pd-aplus ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.pd-aplus li { margin-bottom: 0.35rem; }
.pd-aplus img { border-radius: var(--radius); margin: 1rem 0; max-width: 100%; }
.pd-aplus table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.pd-aplus td, .pd-aplus th { border: 1px solid var(--clr-border); padding: 0.5rem; }
.pd-aplus [style*="grid"] { margin: 1rem 0; }

/* ── About Page ────────────────────────────────────────────────────────────── */
.about-page { padding: 2rem 0 4rem; }
.about-page h1 { font-size: 2.25rem; font-weight: 700; margin-bottom: 1.5rem; }
.about-hero-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; }
.about-hero-img img { width: 100%; max-height: 400px; object-fit: cover; }
.about-content { line-height: 1.8; max-width: 800px; margin-bottom: 3rem; }
.about-content h2, .about-content h3 { margin-top: 1.5rem; margin-bottom: 0.75rem; }
.about-content p  { margin-bottom: 1rem; }
.about-content ul, .about-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }

.contact-info { background: var(--clr-surface); padding: 2rem; border-radius: var(--radius); max-width: 600px; }
.contact-info h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.contact-info ul { list-style: none; }
.contact-info li { margin-bottom: 0.75rem; color: var(--clr-muted); }
.contact-info li strong { color: var(--clr-text); }
.contact-info a { text-decoration: underline; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--clr-border);
    padding: 2rem 0; text-align: center;
    font-size: 0.85rem; color: var(--clr-muted);
}
.site-footer a { text-decoration: underline; }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero-tagline { font-size: 1rem; }

    .nav-toggle { display: block; }
    .main-nav {
        display: none; position: absolute; top: 64px; left: 0; right: 0;
        background: var(--clr-bg); border-bottom: 1px solid var(--clr-border);
        flex-direction: column; padding: 1rem var(--gap);
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 0.5rem 0; }

    .product-grid { grid-template-columns: 1fr; }
    .pd-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .pd-gallery { position: static; }
    .pd-info h1 { font-size: 1.5rem; }
    .pd-thumb { width: 50px; height: 50px; }
    .product-header h1 { font-size: 1.75rem; }
}
