@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Nunito:wght@400;600;700;800&display=swap');

/* ============================================================
   TIMBERWEAVE — MAIN STYLESHEET
   ============================================================ */

:root {
  --cream:       #fdf6ee;
  --warm:        #f5e6d0;
  --brown:       #7c4f2f;
  --dark:        #2e1a0e;
  --accent:      #d4832a;
  --green:       #4a6741;
  --text:        #3a2412;
  --light-text:  #8a6a54;
  --white:       #ffffff;
  --shadow:      0 4px 24px rgba(124,79,47,0.10);
  --shadow-lg:   0 12px 40px rgba(124,79,47,0.16);
  --radius:      14px;
  --radius-sm:   8px;
  --transition:  0.22s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Nunito', sans-serif; background: var(--cream); color: var(--text); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: var(--dark);
  padding: 8px 5%;
}
.top-bar-inner {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #f0d5b5;
  font-weight: 600;
}
.top-bar-inner a { color: #ffd49e; text-decoration: none; }
.top-bar-inner a:hover { color: var(--accent); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.main-nav {
  background: var(--white);
  border-bottom: 2px solid var(--warm);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 16px rgba(124,79,47,0.07);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 42px; height: 42px;
  background: var(--brown);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.logo-img { height: 42px; width: auto; }
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  color: var(--dark);
  font-weight: 700;
}
.logo-text span { color: var(--accent); }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links > li { position: relative; }
.nav-links a {
  display: block;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); background: var(--warm); }
.nav-links .arrow { font-size: 0.7rem; margin-left: 2px; }
.nav-whatsapp {
  background: #25d366 !important;
  color: var(--white) !important;
  border-radius: 25px !important;
  padding: 8px 18px !important;
}
.nav-whatsapp:hover { background: #1fb858 !important; }

/* Dropdown */
.has-dropdown:hover .dropdown { display: block; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 2px solid var(--warm);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 8px;
  z-index: 300;
  animation: fadeUp 0.15s ease;
}
.dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px !important;
  border-radius: var(--radius-sm) !important;
  font-size: 0.88rem !important;
}
.dropdown .count {
  background: var(--warm);
  color: var(--brown);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
}
.dropdown-divider { border-top: 1px solid var(--warm); margin: 6px 0; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 150;
}
.mobile-overlay.open { display: block; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--white);
  padding: 13px 30px; border-radius: 40px;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: #c0722a; transform: translateY(-2px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--white);
  padding: 13px 30px; border-radius: 40px;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1rem;
  text-decoration: none; border: 2px solid rgba(255,255,255,0.5); cursor: pointer;
  transition: all var(--transition);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

.btn-brown {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brown); color: var(--white);
  padding: 11px 24px; border-radius: 30px;
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.9rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-brown:hover { background: var(--accent); transform: translateY(-1px); }

.btn-submit {
  width: 100%; padding: 14px;
  background: var(--accent); color: var(--white); border: none;
  border-radius: 40px; font-family: 'Nunito', sans-serif;
  font-weight: 800; font-size: 1rem; cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-submit:hover { background: var(--brown); transform: translateY(-1px); }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--brown);
  padding: 14px 5%;
  display: flex; justify-content: center; gap: 36px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  color: #fde8c4; font-size: 0.88rem; font-weight: 700;
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section { padding: 80px 5%; }
.section-sm { padding: 50px 5%; }
.section-dark { background: var(--dark); }
.section-warm { background: var(--warm); }
.section-white { background: var(--white); }

.section-label {
  display: block;
  text-transform: uppercase; letter-spacing: 2px;
  font-size: 0.75rem; font-weight: 800; color: var(--accent);
  margin-bottom: 10px;
}
.section-dark .section-label { color: #ffd49e; }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--dark); line-height: 1.2; margin-bottom: 12px;
}
.section-dark .section-title { color: var(--white); }
.section-sub {
  color: var(--light-text); font-size: 1rem;
  max-width: 520px; line-height: 1.7;
}
.section-dark .section-sub { color: #c9a882; }
.section-header { margin-bottom: 44px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #2e1a0e 0%, #7c4f2f 58%, #d4832a 100%);
  min-height: 88vh;
  display: flex; align-items: center;
  padding: 80px 5%;
  position: relative; overflow: hidden;
}
.hero::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'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 2; max-width: 580px; animation: fadeUp 0.8s ease both; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.13);
  color: #fde8c4; border: 1px solid rgba(255,255,255,0.22);
  padding: 6px 16px; border-radius: 30px;
  font-size: 0.8rem; font-weight: 800;
  margin-bottom: 22px; letter-spacing: 1px; text-transform: uppercase;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--white); line-height: 1.14; margin-bottom: 18px;
}
.hero h1 em { color: #ffd49e; font-style: normal; }
.hero-sub { color: #f0d5b5; font-size: 1.08rem; line-height: 1.7; margin-bottom: 34px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-bg { position: absolute; right: 5%; bottom: 0; font-size: 20rem; opacity: 0.05; line-height: 1; }

/* Page hero (smaller, for inner pages) */
.page-hero {
  background: linear-gradient(135deg, #2e1a0e 0%, #7c4f2f 65%, #d4832a 100%);
  padding: 64px 5%; position: relative; overflow: hidden;
}
.page-hero::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'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-content { position: relative; z-index: 2; max-width: 600px; animation: fadeUp 0.7s ease; }
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 4vw, 3rem); color: var(--white); margin-bottom: 12px; }
.page-hero h1 em { color: #ffd49e; font-style: normal; }
.page-hero p { color: #f0d5b5; font-size: 1rem; line-height: 1.7; margin-bottom: 24px; max-width: 500px; }

/* Breadcrumb */
.breadcrumb {
  background: var(--warm); padding: 12px 5%;
  font-size: 0.83rem; color: var(--light-text);
}
.breadcrumb a { color: var(--brown); text-decoration: none; font-weight: 700; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 7px; }

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card.hidden { display: none; }

.product-img {
  height: 200px;
  background: var(--warm);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
  position: relative; overflow: hidden;
}
.product-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img img { transform: scale(1.05); }
.product-img .emoji-placeholder { font-size: 5rem; }

/* Badges */
.badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 0.7rem; font-weight: 800; padding: 4px 10px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--white);
}
.badge-popular, .badge-best  { background: var(--green); }
.badge-sale                   { background: #c0392b; }
.badge-new                    { background: #2980b9; }
.badge-storage, .badge-set    { background: #7c4f2f; }
.badge-back                   { background: #6b3f8a; }

.product-info { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.product-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; color: var(--dark); margin-bottom: 6px; line-height: 1.3;
}
.product-info p {
  color: var(--light-text); font-size: 0.85rem;
  margin-bottom: 14px; line-height: 1.5; flex: 1;
}
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.product-price { font-size: 1.2rem; font-weight: 800; color: var(--accent); }
.product-price del { font-size: 0.82rem; color: #bbb; font-weight: 400; margin-right: 4px; }
.enquire-btn {
  background: var(--brown); color: var(--white); border: none;
  padding: 8px 16px; border-radius: 25px;
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.82rem;
  cursor: pointer; transition: background var(--transition); white-space: nowrap;
}
.enquire-btn:hover { background: var(--accent); }

/* Filter Tabs */
.filter-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-tabs.center { justify-content: center; }
.tab-btn {
  padding: 8px 20px; border-radius: 30px;
  border: 2px solid var(--warm); background: var(--white);
  color: var(--text); font-family: 'Nunito', sans-serif;
  font-weight: 700; font-size: 0.88rem; cursor: pointer;
  transition: all var(--transition);
}
.tab-btn.active, .tab-btn:hover { background: var(--brown); color: var(--white); border-color: var(--brown); }

/* ============================================================
   CATEGORY CARDS (homepage)
   ============================================================ */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 22px; }
.cat-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; text-decoration: none;
  box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition);
  display: block;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-img { height: 150px; display: flex; align-items: center; justify-content: center; font-size: 5rem; }
.cat-body { padding: 20px; }
.cat-body h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--dark); margin-bottom: 6px; }
.cat-body p { color: var(--light-text); font-size: 0.86rem; line-height: 1.5; margin-bottom: 12px; }
.cat-link { color: var(--accent); font-weight: 800; font-size: 0.88rem; }

/* ============================================================
   WHY US CARDS
   ============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 22px; }
.why-card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px 22px; text-align: center;
  box-shadow: var(--shadow); transition: transform var(--transition);
}
.why-card:hover { transform: translateY(-4px); }
.why-icon { font-size: 2.2rem; margin-bottom: 14px; }
.why-card h3 { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--dark); margin-bottom: 8px; }
.why-card p { color: var(--light-text); font-size: 0.87rem; line-height: 1.6; }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 20px; }
.review-card {
  background: var(--white); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); border-left: 4px solid var(--accent);
}
.stars { color: #f5a623; font-size: 0.95rem; margin-bottom: 10px; }
.review-card p { color: var(--text); font-size: 0.93rem; line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.reviewer { display: flex; align-items: center; gap: 10px; }
.reviewer-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--warm); display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800; color: var(--brown);
  font-family: 'Playfair Display', serif; flex-shrink: 0;
}
.reviewer-info strong { display: block; font-size: 0.88rem; color: var(--dark); }
.reviewer-info span { font-size: 0.78rem; color: var(--light-text); }

/* ============================================================
   ENQUIRY / FORMS
   ============================================================ */
.enquiry-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.enquiry-info h3 { font-family: 'Playfair Display', serif; color: #ffd49e; font-size: 1.3rem; margin-bottom: 18px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.contact-icon {
  width: 42px; height: 42px; background: rgba(255,255,255,0.09);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-item a { color: #f0d5b5; text-decoration: none; font-weight: 700; }
.contact-item a:hover { color: var(--accent); }
.contact-item p { color: #c9a882; font-size: 0.86rem; margin-top: 2px; }

.form-box { background: var(--white); border-radius: var(--radius); padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; font-size: 0.84rem; color: var(--dark); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 2px solid var(--warm); border-radius: 10px;
  font-family: 'Nunito', sans-serif; font-size: 0.93rem;
  color: var(--text); background: var(--cream); outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-success {
  display: none; text-align: center; padding: 16px;
  background: #eafbea; border-radius: 10px;
  color: var(--green); font-weight: 700; margin-top: 14px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #1a0d06; color: #c9a882; padding: 50px 5% 24px; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px; margin-bottom: 36px;
}
.footer-brand .logo-text { color: var(--white); }
.footer-brand p { color: #a07c5e; font-size: 0.88rem; margin: 12px 0 16px; max-width: 240px; line-height: 1.6; }
.footer-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25d366; color: var(--white);
  padding: 9px 18px; border-radius: 25px;
  font-weight: 700; font-size: 0.88rem; text-decoration: none;
  transition: background var(--transition);
}
.footer-wa:hover { background: #1fb858; }
.footer-col h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: #a07c5e; text-decoration: none; font-size: 0.88rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--accent); }
.footer-col ul span { color: #a07c5e; font-size: 0.88rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 20px; text-align: center;
  font-size: 0.82rem; color: #7a5a44;
}

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.wa-float {
  position: fixed; bottom: 26px; right: 26px;
  background: #25d366; width: 56px; height: 56px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  text-decoration: none; z-index: 999;
  transition: transform var(--transition);
  animation: pulse 2.5s infinite;
}
.wa-float:hover { transform: scale(1.12); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.62); z-index: 800;
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white); border-radius: var(--radius);
  padding: 32px; max-width: 440px; width: 90%;
  position: relative; animation: fadeUp 0.25s ease;
}
.modal-box h3 { font-family: 'Playfair Display', serif; color: var(--dark); font-size: 1.3rem; margin-bottom: 6px; }
.modal-box p { color: var(--light-text); font-size: 0.88rem; margin-bottom: 16px; }
.modal-product { background: var(--warm); border-radius: 8px; padding: 10px 14px; font-weight: 700; color: var(--brown); margin-bottom: 18px; font-size: 0.9rem; }
.modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--light-text); }

/* ============================================================
   MISC / UTILITY
   ============================================================ */
.no-results { text-align: center; padding: 60px 20px; color: var(--light-text); }
.no-results h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--dark); margin-bottom: 10px; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50%       { box-shadow: 0 4px 32px rgba(37,211,102,0.75); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .enquiry-wrapper { grid-template-columns: 1fr; gap: 30px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .top-bar-inner { gap: 16px; font-size: 0.75rem; }
  .nav-links {
    display: none; flex-direction: column; gap: 4px;
    position: fixed; top: 68px; right: 0; bottom: 0;
    width: 280px; background: var(--white);
    padding: 20px; z-index: 180;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; padding: 12px 16px; }
  .dropdown { display: block; position: static; box-shadow: none; border: none; background: var(--cream); margin-top: 4px; }
  .hamburger { display: flex; }
  .hero { min-height: 70vh; padding: 60px 5%; }
  .hero-bg { display: none; }
  section, .section { padding: 56px 5%; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-outline { justify-content: center; }
}
