/* ============================================
   Rattan Craft Factory — Website Styles
   ============================================ */

:root {
    --bg: #faf8f5;
    --bg-warm: #f5f3ef;
    --text: #2d2a26;
    --text-muted: #8a8680;
    --accent: #6b4423;
    --accent-light: #8b6239;
    --border: #e0ddd8;
    --cream: #f0ebe3;
    --white: #ffffff;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-serif: Georgia, 'Times New Roman', serif;
    --container: 1400px;
    --container-narrow: 900px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container-wide { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 2rem; }

.section-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}
.text-link {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding-bottom: 2px;
    transition: border-color 0.2s;
}
.text-link:hover { border-color: var(--text); }
.bg-warm { background: var(--bg-warm); }

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}
.site-nav:hover,
.site-nav.scrolled {
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 var(--border);
}
.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}
.site-nav:hover .nav-brand,
.site-nav.scrolled .nav-brand { color: #1a1a1a; }
.nav-menu { display: flex; align-items: center; gap: 2.5rem; }
.nav-link {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text);
    padding: 0.25rem 0;
    position: relative;
    transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-link::after {
    content: ''; position: absolute;
    bottom: 0; left: 0; width: 0; height: 1px;
    background: var(--accent); transition: width 0.3s;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Dropdown */
.nav-item.has-dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: calc(100% + 0.75rem); left: -2rem;
    background: var(--bg); border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(45, 42, 38, 0.08);
    padding: 2rem; min-width: 520px;
    opacity: 0; visibility: hidden;
    transform: translateY(-4px); transition: all 0.25s ease;
    z-index: 1001;
}
.nav-item.has-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-grid { display: grid; grid-template-columns: 1fr 180px; gap: 2rem; }
.dropdown-section { display: flex; flex-direction: column; gap: 0.5rem; }
.dropdown-section a { font-size: 0.85rem; color: var(--text); padding: 0.3rem 0; transition: color 0.2s; }
.dropdown-section a:hover { color: var(--accent); }
.dropdown-title { font-weight: 600; margin-bottom: 0.25rem; }
.dropdown-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.dropdown-section.featured { border-left: 1px solid var(--border); padding-left: 2rem; }
.featured-name { font-weight: 500; display: block; margin-bottom: 0.25rem; }
.featured-arrow { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative; width: 100%; height: 100vh;
    min-height: 600px; overflow: hidden; display: flex; align-items: center;
}
.hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #e8e0d4 0%, #d8d0c4 40%, #c8c0b4 100%);
}
.hero-bg::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C8B7A' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
}
.hero-bg::after {
    content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 40%;
    background: linear-gradient(to left, rgba(216,208,196,0.8) 0%, transparent 100%);
}
/* Hero with background image */
.hero-bg.hero-bg-img {
    background: none;
    background-size: cover;
    background-position: center;
}
.hero-bg.hero-bg-img::before { display: none; }
.hero-bg.hero-bg-img::after { display: none; }

/* Hero text - white */
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; }
.hero-brand { font-family: var(--font-serif); font-size: 3.5rem; font-weight: 700; color: var(--white); letter-spacing: -0.03em; line-height: 1.1; }
.hero-tagline { font-size: 0.95rem; color: rgba(255,255,255,0.8); max-width: 280px; text-align: right; line-height: 1.5; }

/* ============================================
   BRAND INTRO
   ============================================ */
.brand-intro { padding: 6rem 0; border-top: 1px solid var(--border); margin-top: -1px; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.intro-visual { position: relative; }
.intro-img-large { aspect-ratio: 6/5; background: var(--cream); overflow: hidden; }
.intro-img-large img, .intro-img-large svg { width: 100%; height: 100%; object-fit: cover; }
.intro-content { padding: 1rem 0; }
.intro-heading { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 1.5rem; color: var(--text); }
.intro-body p { font-size: 0.95rem; line-height: 1.75; color: var(--text-muted); margin-bottom: 1rem; }
.intro-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--border); }
.intro-stat { text-align: center; }
.intro-stat-num { display: block; font-family: var(--font-serif); font-size: 2.2rem; font-weight: 600; color: var(--accent); line-height: 1; margin-bottom: 0.5rem; }
.intro-stat-label { font-size: 0.8rem; color: var(--text-muted); }
.intro-quote { margin-top: 4rem; padding: 3rem 4rem; background: var(--cream); border-left: 3px solid var(--accent); max-width: 900px; }
.intro-quote p { font-family: var(--font-serif); font-size: 1.3rem; font-style: italic; line-height: 1.7; color: var(--text); margin-bottom: 1rem; }
.intro-quote cite { font-size: 0.85rem; color: var(--text-muted); font-style: normal; }

/* ============================================
   BEST SELLERS
   ============================================ */
.bestsellers { padding: 4rem 0 5rem; border-top: 1px solid var(--border); }
.bestsellers-header { display: grid; grid-template-columns: 120px 1fr; gap: 3rem; margin-bottom: 2.5rem; align-items: start; }
.bestsellers-header p { font-size: 1.05rem; line-height: 1.7; color: var(--text); max-width: 500px; }
.bestsellers-scroll { position: relative; display: flex; align-items: center; }
.bestsellers-track { display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 0.5rem 0; scrollbar-width: none; }
.bestsellers-track::-webkit-scrollbar { display: none; }
.scroll-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; opacity: 0.8; }
.scroll-btn:hover { opacity: 1; background: var(--white); }
.scroll-btn.prev { left: -1rem; } .scroll-btn.next { right: -1rem; }
.bs-card { flex: 0 0 280px; scroll-snap-align: start; transition: transform 0.3s; }
.bs-card:hover { transform: translateY(-4px); }
.bs-img { aspect-ratio: 4/5; background: var(--cream); overflow: hidden; position: relative; margin-bottom: 0.75rem; }
.bs-img img, .bs-img svg { width: 100%; height: 100%; object-fit: cover; }
.bs-img .img-hover { position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s ease; }
.bs-card:hover .bs-img .img-hover { opacity: 1; }
.bs-name { font-size: 0.95rem; font-weight: 500; margin-bottom: 0.25rem; line-height: 1.3; }
.bs-shop { font-size: 0.8rem; color: var(--text-muted); }
.bestsellers-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.scroll-hint { display: flex; gap: 0.5rem; }
.scroll-hint button { width: 36px; height: 36px; border: 1px solid var(--border); background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.scroll-hint button:hover { background: var(--white); }

/* ============================================
   CATEGORY BAR
   ============================================ */
.cat-bar { padding: 2.5rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cat-bar-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.cat-bar-item { text-align: center; transition: opacity 0.2s; }
.cat-bar-item:hover { opacity: 0.7; }
.cat-bar-img { aspect-ratio: 1; background: var(--cream); overflow: hidden; margin-bottom: 0.75rem; }
.cat-bar-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-bar-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--cream); }
.cat-bar-fallback i { font-size: 2.5rem; color: var(--accent); opacity: 0.4; }
.cat-bar-name { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.01em; }

/* ============================================
   LATEST NEWS & VISIT US
   ============================================ */
.latest-news { padding: 4rem 0 5rem; border-top: 1px solid var(--border); }
.news-layout { display: grid; grid-template-columns: 120px 1fr; gap: 3rem; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.news-card { transition: transform 0.3s; }
.news-card:hover { transform: translateY(-4px); }
.news-date { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.news-img { aspect-ratio: 16/11; background: var(--cream); overflow: hidden; margin-bottom: 0.75rem; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-title { font-size: 1rem; font-weight: 500; line-height: 1.4; margin-bottom: 0.5rem; }
.read-more { font-size: 0.8rem; color: var(--text-muted); border-bottom: 1px solid var(--border); padding-bottom: 1px; transition: border-color 0.2s; }
.news-card:hover .read-more { border-color: var(--text); }

.visit-us { padding: 4rem 0 5rem; border-top: 1px solid var(--border); }
.visit-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.visit-content h3 { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 600; margin-bottom: 1rem; letter-spacing: -0.02em; }
.visit-content p { font-size: 0.95rem; line-height: 1.7; color: var(--text-muted); margin-bottom: 1.5rem; max-width: 420px; }
.visit-images { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.visit-img { aspect-ratio: 4/3; background: var(--cream); overflow: hidden; }
.visit-img img, .visit-img svg { width: 100%; height: 100%; object-fit: cover; }

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header { padding: 8rem 0 3rem; border-bottom: 1px solid var(--border); }
.page-header h1 { font-family: var(--font-serif); font-size: 2.5rem; font-weight: 600; letter-spacing: -0.02em; }
.page-header .breadcrumb { background: none; padding: 0; margin: 0.5rem 0 0; font-size: 0.8rem; }
.page-header .breadcrumb-item a { color: var(--text-muted); }
.page-header .breadcrumb-item a:hover { color: var(--text); }
.page-header .breadcrumb-item.active { color: var(--text-muted); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: var(--border); }

/* ============================================
   COLLECTIONS PAGE
   ============================================ */
.collections-layout { display: grid; grid-template-columns: 220px 1fr; gap: 3rem; padding: 3rem 0 5rem; }
.collections-sidebar { position: sticky; top: 100px; align-self: start; }
.sidebar-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.sidebar-filter a { display: block; font-size: 0.85rem; padding: 0.4rem 0; color: var(--text-muted); transition: color 0.2s; }
.sidebar-filter a:hover, .sidebar-filter a.active { color: var(--text); }
.sidebar-filter a.active { font-weight: 500; }
.sidebar-filter a.active::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 0.5rem; vertical-align: middle; }
.collections-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.collections-header h2 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; }
.product-count { font-size: 0.8rem; color: var(--text-muted); }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.product-item { transition: transform 0.3s; }
.product-item:hover { transform: translateY(-4px); }
.product-item-img { aspect-ratio: 3/4; background: var(--cream); overflow: hidden; position: relative; margin-bottom: 0.75rem; }
.product-item-img img, .product-item-img svg { width: 100%; height: 100%; object-fit: cover; }
.product-item-name { font-size: 0.9rem; font-weight: 500; line-height: 1.3; }

/* Hover image swap */
.product-hover-img .img-default { transition: opacity 0.4s ease; }
.product-hover-img .img-hover { position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s ease; }
.product-item:hover .product-hover-img .img-default { opacity: 0; }
.product-item:hover .product-hover-img .img-hover { opacity: 1; }

/* ============================================
   PRODUCT DETAIL
   ============================================ */
.product-detail-layout { display: grid; grid-template-columns: 45% 55%; min-height: calc(100vh - 80px); }
.product-detail-info { padding: 4rem 3rem 4rem 4rem; overflow-y: auto; border-right: 1px solid var(--border); }
.product-detail-gallery { background: var(--cream); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.detail-back { display: inline-block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 2rem; transition: color 0.2s; }
.detail-back:hover { color: var(--text); }
.detail-category { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 0.5rem; display: block; }
.detail-name { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 600; margin-bottom: 1.5rem; letter-spacing: -0.02em; line-height: 1.2; }
.detail-text-intro { font-size: 0.9rem; line-height: 1.7; color: var(--text); margin-bottom: 1.5rem; }
.detail-desc { font-size: 0.9rem; line-height: 1.7; color: var(--text-muted); margin-bottom: 2rem; }

/* Specs */
.specs-list { border-top: 1px solid var(--border); }
.spec-item { border-bottom: 1px solid var(--border); padding: 0.75rem 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; }
.spec-label { color: var(--text); font-weight: 500; }
.spec-value { color: var(--text-muted); text-align: right; max-width: 60%; }
.detail-meta { display: flex; gap: 2rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-muted); }
.detail-actions { margin-top: 2rem; display: flex; gap: 1rem; }
.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 2rem; background: var(--text); color: var(--white); font-size: 0.85rem; border: none; cursor: pointer; transition: background 0.2s; }
.btn-primary:hover { background: var(--accent); }
.btn-secondary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 2rem; background: transparent; color: var(--text); font-size: 0.85rem; border: 1px solid var(--border); cursor: pointer; transition: all 0.2s; }
.btn-secondary:hover { border-color: var(--text); }

/* Gallery slider */
.gallery-slider { width: 100%; height: 100%; position: relative; overflow: hidden; }
.gallery-track { display: flex; height: 100%; transition: transform 0.4s ease; }
.gallery-slide { flex: 0 0 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.gallery-slide img { max-width: 100%; max-height: 85vh; object-fit: contain; }
.gallery-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: rgba(255,255,255,0.9); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.gallery-btn:hover { background: var(--white); }
.gallery-btn.prev { left: 1rem; } .gallery-btn.next { right: 1rem; }
.gallery-dots { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; z-index: 10; }
.gallery-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(0,0,0,0.2); cursor: pointer; transition: all 0.2s; }
.gallery-dots .dot.active { background: var(--accent); }
.gallery-main { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 3rem; }
.gallery-main img, .gallery-main svg { max-width: 100%; max-height: 80vh; object-fit: contain; }

/* Related */
.related-section { padding: 4rem 0; border-top: 1px solid var(--border); }
.related-section h3 { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; margin-bottom: 1.5rem; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ============================================
   ABOUT US — FULL WIDTH
   ============================================ */
.about-section-full { padding: 0; }
.about-block-full { padding: 5rem 0; border-bottom: 1px solid var(--border); }
.about-block-full h2 { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 1rem; }
.about-lead { font-size: 1rem; line-height: 1.7; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 650px; }

/* Philosophy large */
.philo-grid-large { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.philo-card-large { padding: 2rem 1.5rem; background: var(--cream); text-align: center; }
.philo-card-large i { font-size: 2.2rem; color: var(--accent); margin-bottom: 1rem; display: block; }
.philo-card-large h5 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.philo-card-large p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; margin: 0 auto; }

/* Materials horizontal scroll */
.materials-scroll-wrapper { position: relative; display: flex; align-items: center; }
.materials-scroll { display: flex; gap: 1.5rem; overflow-x: auto; scroll-behavior: smooth; padding: 0.5rem 0; scrollbar-width: none; }
.materials-scroll::-webkit-scrollbar { display: none; }
.materials-scroll-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.materials-scroll-btn:hover { background: var(--white); }
.materials-scroll-btn.prev { left: -1rem; } .materials-scroll-btn.next { right: -1rem; }
.material-slide { flex: 0 0 300px; }
.material-img { aspect-ratio: 16/10; background: var(--cream); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; overflow: hidden; }
.material-img img { width: 100%; height: 100%; object-fit: cover; }
.material-img i { font-size: 2.5rem; color: var(--accent); }
.material-slide h5 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.5rem; }
.material-slide p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* Timeline full */
.timeline-full { position: relative; max-width: 900px; margin: 0 auto; }
.timeline-full::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--border); transform: translateX(-50%); }
.timeline-row { display: grid; grid-template-columns: 1fr 40px 1fr; gap: 2rem; align-items: center; padding: 1.5rem 0; }
.timeline-text-block { text-align: right; }
.timeline-reverse .timeline-text-block { grid-column: 3; text-align: left; }
.timeline-reverse .timeline-img-block { grid-column: 1; }
.timeline-year { font-size: 0.85rem; font-weight: 600; color: var(--accent); margin-bottom: 0.25rem; display: block; }
.timeline-text-block p { font-size: 0.9rem; color: var(--text); line-height: 1.5; margin: 0; }
.timeline-dot-center { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); justify-self: center; position: relative; z-index: 2; }
.timeline-img-block { aspect-ratio: 16/10; background: var(--cream); overflow: hidden; border-radius: 4px; }
.timeline-img-block img { width: 100%; height: 100%; object-fit: cover; }
.timeline-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--cream); }
.timeline-img-placeholder span { font-family: var(--font-serif); font-size: 1.5rem; color: var(--accent); opacity: 0.5; }

/* World map */
.world-map-container { position: relative; max-width: 800px; margin: 2rem auto; }
.world-map { width: 100%; height: auto; }
.world-map .continent { cursor: pointer; }
.world-map .continent path, .world-map .continent text { transition: fill 0.3s; }
.world-map .continent:hover path { fill: #8b7355; }
.map-tooltip {
    position: absolute; pointer-events: none;
    background: var(--text); color: var(--white);
    padding: 0.5rem 1rem; border-radius: 4px;
    font-size: 0.8rem; opacity: 0; transition: opacity 0.2s;
    z-index: 10; white-space: nowrap;
}
.markets-stats { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-top: 3rem; }
.market-stat { text-align: center; }
.market-num { display: block; font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600; color: var(--accent); }
.market-stat span:last-child { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================
   CONTACT
   ============================================ */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; padding: 3rem 0 5rem; }
.contact-info-block { margin-bottom: 2rem; }
.contact-info-block h6 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.5rem; }
.contact-info-block p { font-size: 0.9rem; color: var(--text); line-height: 1.6; }
.contact-form .form-group { margin-bottom: 1.25rem; }
.contact-form label { display: block; font-size: 0.8rem; font-weight: 500; margin-bottom: 0.4rem; color: var(--text); }
.contact-form .required { color: var(--accent); }
.contact-form input, .contact-form textarea { width: 100%; padding: 0.6rem 0.75rem; border: 1px solid var(--border); background: var(--white); font-size: 0.9rem; color: var(--text); transition: border-color 0.2s; font-family: var(--font-body); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form textarea { resize: vertical; min-height: 100px; }

/* ============================================
   NEWS DETAIL
   ============================================ */
.news-detail-layout { max-width: 720px; margin: 0 auto; padding: 3rem 0 5rem; }
.news-detail-cover { aspect-ratio: 16/9; background: var(--cream); margin-bottom: 2rem; overflow: hidden; }
.news-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-detail-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; display: block; }
.news-detail-title { font-family: var(--font-serif); font-size: 2rem; font-weight: 600; margin-bottom: 1.5rem; letter-spacing: -0.02em; line-height: 1.2; }
.news-detail-summary { padding: 1rem 1.5rem; border-left: 3px solid var(--accent); background: var(--cream); margin-bottom: 2rem; font-style: italic; color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.news-detail-body { font-size: 0.95rem; line-height: 1.8; color: var(--text); }
.news-detail-body p { margin-bottom: 1rem; }
.news-nav { display: flex; justify-content: space-between; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* ============================================
   MANUFACTURING
   ============================================ */
/* Shared */
.text-center { text-align: center; }
.text-center.section-label { margin-left: auto; margin-right: auto; }
.mfg-section-title { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 600; text-align: center; letter-spacing: -0.02em; margin-bottom: 1rem; color: var(--text); }
.mfg-section-title.light { color: var(--white); }
.mfg-section-lead { text-align: center; font-size: 1rem; color: var(--text-muted); max-width: 650px; margin: 0 auto 3rem; line-height: 1.7; }
.mfg-section-lead.light { color: rgba(255,255,255,0.6); }

/* 1. Production Capabilities */
.mfg-caps { padding: 5rem 0; background: var(--bg-warm); }
.caps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
.cap-card { background: var(--white); border: 1px solid var(--border); padding: 2.5rem 1.5rem; text-align: center; }
.cap-number { display: block; font-family: var(--font-serif); font-size: 2.5rem; font-weight: 600; color: var(--accent); line-height: 1; margin-bottom: 0.75rem; }
.cap-title { display: block; font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }
.cap-desc { display: block; font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* 2. Factory Complex */
.mfg-factory { padding: 5rem 0; }
.factory-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-top: 3rem; }
.factory-img-main { aspect-ratio: 3/2; background: var(--cream); overflow: hidden; }
.factory-img-main img, .factory-img-main svg { width: 100%; height: 100%; object-fit: cover; }
.factory-body { font-size: 0.95rem; line-height: 1.8; color: var(--text-muted); margin-bottom: 1.5rem; }
.factory-body p { margin-bottom: 1rem; }
.factory-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.factory-tag { display: inline-block; padding: 0.4rem 1rem; border: 1px solid var(--border); font-size: 0.8rem; color: var(--text-muted); background: var(--white); }
.factory-img-wide { margin-top: 3rem; aspect-ratio: 21/7; background: var(--cream); overflow: hidden; }
.factory-img-wide img, .factory-img-wide svg { width: 100%; height: 100%; object-fit: cover; }

/* 3. Production Process */
.mfg-process { padding: 5rem 0; background: #3a3630; }
.process-grid-8 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.process-step-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.process-step-img { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.process-step-img img { width: 100%; height: 100%; object-fit: cover; }
.process-step-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.06); }
.step-num-circle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--white); font-size: 0.85rem; font-weight: 600; }
.process-step-body { padding: 1.25rem; }
.process-step-body .step-num { display: inline-block; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--white); font-size: 0.75rem; font-weight: 600; text-align: center; line-height: 28px; margin-bottom: 0.75rem; }
.process-step-body h5 { font-size: 0.95rem; font-weight: 600; color: var(--white); margin-bottom: 0.5rem; }
.process-step-body p { font-size: 0.8rem; color: rgba(255,255,255,0.55); line-height: 1.6; margin: 0; }

/* 4. Quality Control */
.mfg-qc { padding: 5rem 0; background: var(--bg-warm); }
.qc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.qc-card { background: var(--white); padding: 1.75rem; border: 1px solid var(--border); }
.qc-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.qc-num { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--white); font-size: 0.8rem; font-weight: 600; flex-shrink: 0; }
.qc-header h5 { font-size: 1rem; font-weight: 600; color: var(--text); margin: 0; }
.qc-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; margin: 0; }
.qc-stats-bar { display: flex; justify-content: center; gap: 4rem; padding: 2.5rem 0; border-top: 1px solid var(--border); }
.qc-stat { text-align: center; }
.qc-stat-num { display: block; font-family: var(--font-serif); font-size: 2rem; font-weight: 600; color: var(--accent); line-height: 1; margin-bottom: 0.5rem; }
.qc-stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* 5. Certifications */
.mfg-certs { padding: 5rem 0; background: #3a3630; }
.certs-grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.cert-item { text-align: center; }
.cert-img { aspect-ratio: 3/4; background: rgba(255,255,255,0.05); overflow: hidden; margin-bottom: 1rem; border: 1px solid rgba(255,255,255,0.08); }
.cert-img img { width: 100%; height: 100%; object-fit: cover; }
.cert-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.cert-fallback i { font-size: 3rem; color: rgba(255,255,255,0.2); }
.cert-item h6 { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 0.25rem; }
.cert-item p { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin: 0; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { border-top: 1px solid var(--border); background: var(--bg); }
.footer-top { padding: 4rem 0 3rem; }
.footer-container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; display: grid; grid-template-columns: 1.2fr 1.5fr 2fr; gap: 3rem; }
.footer-brand { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; display: block; margin-bottom: 1rem; }
.footer-slogan { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.6; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { font-size: 1rem; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-social a:hover { color: var(--gold-light); }
.footer-contact-col p { font-size: 0.8rem; color: var(--text); line-height: 1.7; margin-bottom: 0.25rem; }
.footer-links-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer-link-group h6 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 1rem; }
.footer-link-group a { display: block; font-size: 0.8rem; color: var(--text); padding: 0.3rem 0; transition: color 0.2s; }
.footer-link-group a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.5rem 0 2rem; }
.footer-bottom .footer-container { display: block; }
.copyright { font-size: 0.75rem; color: var(--text-muted); }

/* ============================================
   PAGINATION & ALERTS
   ============================================ */
.pagination { display: flex; justify-content: center; gap: 0.25rem; margin-top: 3rem; list-style: none; padding: 0; }
.pagination a, .pagination span { display: block; padding: 0.4rem 0.75rem; font-size: 0.8rem; color: var(--text); border: 1px solid transparent; transition: all 0.2s; }
.pagination a:hover { border-color: var(--border); }
.pagination .active span { border-color: var(--text); font-weight: 500; }
.pagination .disabled span { color: var(--border); cursor: default; }
.alert { padding: 1rem 1.25rem; font-size: 0.85rem; border: 1px solid transparent; }
.alert-success { background: #e8f5e9; border-color: #c8e6c9; color: #2e7d32; }
.alert-danger { background: #ffebee; border-color: #ffcdd2; color: #c62828; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .container-wide, .container-narrow, .nav-container { padding: 0 1.5rem; }
    .hero-brand { font-size: 2.5rem; }
    .hero-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .hero-tagline { text-align: left; }
    .intro-grid { grid-template-columns: 1fr; gap: 2rem; }
    .intro-heading { font-size: 1.8rem; }
    .intro-stats { grid-template-columns: repeat(2, 1fr); }
    .intro-quote { padding: 2rem; }
    .cat-bar-grid { grid-template-columns: repeat(5, 1fr); gap: 0.75rem; }
    .news-grid { grid-template-columns: 1fr; }
    .news-layout { grid-template-columns: 1fr; }
    .visit-layout { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .product-detail-layout { grid-template-columns: 1fr; }
    .product-detail-info { border-right: none; border-bottom: 1px solid var(--border); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .collections-layout { grid-template-columns: 1fr; }
    .collections-sidebar { position: static; margin-bottom: 2rem; }
    .philo-grid-large { grid-template-columns: repeat(2, 1fr); }
    .caps-grid { grid-template-columns: repeat(2, 1fr); }
    .factory-layout { grid-template-columns: 1fr; }
    .process-grid-8 { grid-template-columns: repeat(2, 1fr); }
    .qc-grid { grid-template-columns: repeat(2, 1fr); }
    .certs-grid-6 { grid-template-columns: repeat(3, 1fr); }
    .mfg-section-title { font-size: 1.8rem; }
    .timeline-full::before { left: 20px; }
    .timeline-row { grid-template-columns: 1fr; gap: 1rem; padding-left: 50px; }
    .timeline-text-block { text-align: left !important; grid-column: 1 !important; }
    .timeline-img-block { grid-column: 1 !important; }
    .timeline-dot-center { left: 15px; position: absolute; }
    .contact-layout { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; gap: 2rem; }
    .page-header { padding-top: 6rem; }
    .dropdown-menu { display: none; }
    .bestsellers-header { grid-template-columns: 1fr; }
    .about-block-full h2 { font-size: 1.8rem; }
    .material-slide { flex: 0 0 260px; }
}
@media (max-width: 576px) {
    .hero { height: 70vh; min-height: 400px; }
    .hero-brand { font-size: 2rem; }
    .cat-bar-grid { grid-template-columns: repeat(5, 1fr); gap: 0.5rem; }
    .cat-bar-name { font-size: 0.75rem; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .philo-grid-large { grid-template-columns: 1fr; }
    .caps-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .cap-number { font-size: 1.8rem; }
    .process-grid-8 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .qc-grid { grid-template-columns: 1fr; }
    .qc-stats-bar { flex-direction: column; gap: 1.5rem; }
    .certs-grid-6 { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .factory-tags { gap: 0.4rem; }
    .factory-tag { font-size: 0.75rem; padding: 0.3rem 0.75rem; }
    .mfg-caps, .mfg-factory, .mfg-process, .mfg-qc, .mfg-certs { padding: 3rem 0; }
    .related-grid { grid-template-columns: 1fr; }
    .nav-menu { gap: 1.2rem; }
    .nav-brand { font-size: 1.2rem; }
    .intro-stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .intro-quote { padding: 1.5rem; }
    .intro-quote p { font-size: 1rem; }
    .product-detail-info { padding: 2rem 1.5rem; }
}
