/* =========================================================
   OTARU — Global Stylesheet
   Mobile-first, minimal, premium. No heavy framework required.
   ========================================================= */

:root {
    --color-primary: #111111;
    --color-secondary: #666666;
    --color-background: #ffffff;
    --color-offwhite: #f7f6f3;
    --color-border: #e6e3dd;
    --color-accent: #c9a96e;
    --font-serif: Georgia, 'Times New Roman', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --container-width: 1200px;
    --radius: 4px;
    --transition: 0.25s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--color-primary);
    background: var(--color-background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    margin: 0 0 0.5em;
    line-height: 1.25;
}

p { margin: 0 0 1em; }

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 16px;
}

.section { padding: 48px 0; }
.section-title { font-size: 1.75rem; margin-bottom: 8px; }
.section-subtitle { color: var(--color-secondary); margin-bottom: 32px; }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    white-space: nowrap;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-accent { background: var(--color-accent); color: #111; }
.btn-accent:hover { filter: brightness(0.93); }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5b; }
.btn-shopee { background: #ee4d2d; color: #fff; }
.btn-tokopedia { background: #03ac0e; color: #fff; }
.btn-instagram { background: #e1306c; color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--color-border);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.site-logo img { height: 40px; width: auto; }
.site-logo { font-family: var(--font-serif); font-size: 1.4rem; letter-spacing: 2px; }
.main-nav { display: none; }
.main-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.main-nav a { font-size: 0.92rem; padding: 4px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { border-color: var(--color-accent); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn { background: none; border: none; cursor: pointer; padding: 6px; color: var(--color-primary); }
.hamburger-btn { display: inline-flex; }

.mobile-nav {
    display: none;
    position: fixed;
    inset: 64px 0 0 0;
    background: #fff;
    z-index: 99;
    padding: 24px;
    overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav li { border-bottom: 1px solid var(--color-border); }
.mobile-nav a { display: block; padding: 16px 0; font-size: 1.1rem; }
.mobile-search { margin-bottom: 20px; }

.search-overlay {
    display: none;
    position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200;
    align-items: flex-start; justify-content: center; padding-top: 100px;
}
.search-overlay.open { display: flex; }
.search-box { background: #fff; padding: 20px; border-radius: var(--radius); width: 90%; max-width: 480px; }
.search-box input { width: 100%; padding: 12px; font-size: 1rem; border: 1px solid var(--color-border); border-radius: var(--radius); }

@media (min-width: 992px) {
    .main-nav { display: block; }
    .hamburger-btn { display: none; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 62vh;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    color: #fff;
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.65) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 40px 0 56px; }
.hero-title { font-size: 2rem; color: #fff; margin-bottom: 12px; }
.hero-subtitle { font-size: 1rem; color: #eee; max-width: 480px; margin-bottom: 24px; }

@media (min-width: 992px) {
    .hero { min-height: 78vh; }
    .hero-title { font-size: 3.2rem; }
    .hero-subtitle { font-size: 1.15rem; }
}

/* ---------- Value props ---------- */
.value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.value-item { text-align: center; padding: 16px; }
.value-item i { font-size: 1.8rem; color: var(--color-accent); margin-bottom: 10px; display: inline-block; }
.value-item h3 { font-size: 1rem; }
.value-item p { color: var(--color-secondary); font-size: 0.88rem; margin: 0; }

@media (min-width: 768px) {
    .value-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Product grid & cards ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (min-width: 576px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (min-width: 992px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

.product-card {
    display: block;
    position: relative;
    background: var(--color-offwhite);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition);
}
.product-card:hover { transform: translateY(-3px); }
.product-card-img { aspect-ratio: 4 / 5; overflow: hidden; background: #eee; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-card-body { padding: 12px 14px 16px; }
.product-card-category { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--color-secondary); }
.product-card-name { font-size: 0.95rem; margin: 4px 0; font-family: var(--font-sans); font-weight: 600; }
.product-card-price { font-size: 0.9rem; color: var(--color-primary); }
.badge {
    position: absolute; top: 10px; left: 10px;
    background: var(--color-accent); color: #111;
    font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.5px;
    padding: 4px 8px; border-radius: 2px;
}
.badge.badge-new { background: var(--color-primary); color: #fff; }
.badge.badge-best-seller { background: #c9a96e; color: #111; }
.badge.badge-limited { background: #111; color: #fff; }
.badge.badge-sold-out { background: #6d7280; color: #fff; }
.badge.badge-pre-order { background: #2d6cdf; color: #fff; }

.badge-inline {
    display: inline-block;
    font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.5px;
    padding: 4px 10px; border-radius: 2px;
    background: var(--color-accent); color: #111;
    margin-bottom: 8px;
}
.badge-inline.badge-new { background: var(--color-primary); color: #fff; }
.badge-inline.badge-best-seller { background: #c9a96e; color: #111; }
.badge-inline.badge-limited { background: #111; color: #fff; }
.badge-inline.badge-sold-out { background: #6d7280; color: #fff; }
.badge-inline.badge-pre-order { background: #2d6cdf; color: #fff; }

/* ---------- Lookbook / gallery ---------- */
.lookbook-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.lookbook-item { position: relative; overflow: hidden; border-radius: var(--radius); }
.lookbook-item img { width: 100%; height: 100%; object-fit: cover; }
.lookbook-item:nth-child(1) { grid-row: span 2; }
.lookbook-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 10px 12px; font-size: 0.78rem; color: #fff;
    background: linear-gradient(0deg, rgba(0,0,0,0.6), transparent);
}
@media (min-width: 768px) {
    .lookbook-grid { grid-template-columns: repeat(4, 1fr); }
    .lookbook-item:nth-child(1) { grid-row: span 1; }
}

/* ---------- CTA section ---------- */
.cta-section {
    background: var(--color-primary);
    color: #fff;
    padding: 56px 0;
    text-align: center;
}
.cta-section h2 { color: #fff; font-size: 1.6rem; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-offwhite); border-top: 1px solid var(--color-border); padding: 40px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.footer-logo { height: 44px; width: auto; margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--color-secondary); font-size: 0.9rem; }
.footer-col a:hover { color: var(--color-primary); }
.footer-bottom { text-align: center; padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--color-border); font-size: 0.82rem; color: var(--color-secondary); }
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Floating WhatsApp ---------- */
.floating-whatsapp {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 150;
    background: #25D366;
    color: #fff;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.floating-whatsapp span { display: none; font-size: 0.9rem; padding-right: 6px; }
@media (min-width: 992px) {
    .floating-whatsapp span { display: inline; }
}

/* ---------- Catalog page ---------- */
.catalog-toolbar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.category-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; -ms-overflow-style: none; scrollbar-width: none; }
.category-scroll::-webkit-scrollbar { display: none; }
.category-chip {
    flex: none; padding: 8px 16px; border: 1px solid var(--color-border);
    border-radius: 30px; font-size: 0.85rem; white-space: nowrap; background: #fff;
}
.category-chip.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.toolbar-row { display: flex; gap: 10px; }
.form-control, select.form-control {
    padding: 10px 14px; border: 1px solid var(--color-border); border-radius: var(--radius);
    font-size: 0.9rem; width: 100%; background: #fff;
}
.empty-state { text-align: center; padding: 64px 16px; color: var(--color-secondary); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.pagination a, .pagination span {
    padding: 8px 14px; border: 1px solid var(--color-border); border-radius: var(--radius); font-size: 0.85rem;
}
.pagination a:hover { border-color: var(--color-primary); }
.pagination .active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 992px) {
    .product-detail { grid-template-columns: 1.1fr 1fr; }
}
.gallery-main { aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius); background: #eee; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; }
.gallery-thumbs img {
    width: 72px; height: 90px; object-fit: cover; border-radius: var(--radius);
    cursor: pointer; border: 2px solid transparent; opacity: 0.7;
}
.gallery-thumbs img.active { border-color: var(--color-accent); opacity: 1; }
.product-info-category { text-transform: uppercase; font-size: 0.78rem; letter-spacing: 1px; color: var(--color-secondary); }
.product-info-name { font-size: 1.6rem; margin: 6px 0; }
.product-info-price { font-size: 1.3rem; color: var(--color-primary); margin-bottom: 16px; }
.product-cta-group { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.spec-block { margin-top: 24px; border-top: 1px solid var(--color-border); padding-top: 16px; }
.spec-block h4 { font-size: 0.95rem; margin-bottom: 6px; }
.spec-block p { color: var(--color-secondary); font-size: 0.92rem; }

.lightbox-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 300;
    align-items: center; justify-content: center; padding: 20px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: 100%; max-height: 90vh; }
.lightbox-close { position: absolute; top: 18px; right: 20px; color: #fff; font-size: 2rem; cursor: pointer; background: none; border: none; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question {
    width: 100%; text-align: left; background: none; border: none; cursor: pointer;
    padding: 16px 0; font-size: 1rem; display: flex; justify-content: space-between; align-items: center;
}
.faq-answer { display: none; padding: 0 0 16px; color: var(--color-secondary); }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform var(--transition); font-size: 1.2rem; }

/* ---------- Misc pages ---------- */
.error-page { text-align: center; padding: 100px 16px; }
.error-page h1 { font-size: 5rem; color: var(--color-accent); }
.breadcrumb { font-size: 0.85rem; color: var(--color-secondary); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--color-primary); }
