/* ============================================================
   TBL Furniture — main.css (Styles tambahan untuk PHP version)
   ============================================================ */

/* ── Base Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; border-radius: 0 !important; }
body {
  margin: 0; padding: 0;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  color: #1c1f2e;
  background: #f7f4f1;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Top Promo Banner ────────────────────────────────────── */
.top-promo-bar {
  background: #e8470a; color: #fff;
  text-align: center; padding: 9px 16px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase;
}

/* ── Site Header ─────────────────────────────────────────── */
.site-header {
  background: #fff; border-bottom: 1px solid #e2ddd8;
  position: sticky; top: 0; z-index: 100;
  padding: 12px 0;
}
.header-inner {
  max-width: 1440px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; gap: 16px;
}
.brand {
  display: flex; align-items: baseline; gap: 6px;
  white-space: nowrap; text-decoration: none;
}
.brand-badge {
  background: #e8470a; color: #fff;
  padding: 2px 9px; font-size: 17px;
  font-weight: 900; letter-spacing: -0.5px;
}
.brand-text {
  font-size: 13px; font-weight: 700;
  color: #1c1f2e; letter-spacing: 2px; text-transform: uppercase;
}
.search-wrap {
  flex: 1; max-width: 480px; position: relative;
}
.search-wrap input {
  width: 100%; height: 44px; padding: 0 16px 0 42px;
  border: 1px solid #e2ddd8; background: #f7f4f1;
  font-size: 13px; color: #1c1f2e; outline: none;
  font-family: inherit;
}
.search-wrap input:focus { border-color: #e8470a; background: #fff; }
.search-icon {
  position: absolute; left: 13px; top: 50%;
  transform: translateY(-50%); pointer-events: none;
  color: #718096;
}
.header-actions { display: flex; align-items: center; gap: 8px; }
.btn-header {
  height: 44px; padding: 0 14px;
  background: #f7f4f1; border: 1px solid #e2ddd8;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; color: #1c1f2e;
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer; transition: all 0.2s;
}
.btn-header:hover { border-color: #1c1f2e; background: #fff; }
.btn-header-brand { background: #e8470a; border-color: #e8470a; color: #fff; }
.btn-header-brand:hover { background: #c73b08; border-color: #c73b08; }

/* ── Primary Nav ─────────────────────────────────────────── */
.primary-nav {
  background: #fff; border-bottom: 1px solid #e2ddd8;
  overflow-x: auto;
}
.primary-nav ul {
  display: flex; align-items: stretch;
  list-style: none; margin: 0; padding: 0;
  max-width: 1440px; margin: 0 auto;
  padding: 0 24px;
}
.primary-nav li a, .primary-nav li button {
  display: flex; align-items: center; gap: 6px;
  height: 48px; padding: 0 18px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: #1c1f2e; background: transparent;
  border: none; cursor: pointer; white-space: nowrap;
  text-decoration: none; transition: all 0.2s;
  font-family: inherit;
}
.primary-nav li a:hover, .primary-nav li button:hover {
  background: #f7f4f1; color: #e8470a;
}
.primary-nav li a.active, .primary-nav li button.active {
  color: #e8470a; box-shadow: inset 0 -3px 0 #e8470a;
}
.nav-sale { color: #059669 !important; }
.nav-sale:hover { background: #d1fae5 !important; color: #059669 !important; }
.nav-sale.active { background: #059669 !important; color: #fff !important; box-shadow: none !important; }

/* ── Promo Slider ────────────────────────────────────────── */
.promo-slider {
  position: relative; overflow: hidden; width: 100%;
}
.slide {
  position: relative; width: 100%;
  height: 440px;
  background-size: cover; background-position: center;
  display: none;
}
.slide.active { display: block; }
.slide-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center;
}
.slide-content {
  max-width: 1440px; margin: 0 auto;
  padding: 0 24px; width: 100%;
}
.slide-inner { max-width: 560px; }
.slide-tag {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 800;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 12px; margin-bottom: 14px;
}
.slide-title {
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.5px; margin: 0 0 14px;
}
.slide-subtitle {
  font-size: 14px; line-height: 1.7;
  margin-bottom: 24px; opacity: 0.8;
  max-width: 440px;
}
.slide-cta {
  display: inline-flex; align-items: center; gap: 8px;
  height: 50px; padding: 0 24px;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  cursor: pointer; transition: all 0.2s;
  text-decoration: none;
}
.slider-nav {
  position: absolute; top: 50%;
  transform: translateY(-50%); z-index: 10;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s;
}
.slider-nav:hover { background: rgba(255,255,255,0.25); }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }
.slider-dots {
  position: absolute; bottom: 16px;
  left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; z-index: 10;
}
.slider-dot {
  height: 3px; background: rgba(255,255,255,0.4);
  cursor: pointer; transition: all 0.2s; border: none;
  width: 12px;
}
.slider-dot.active { width: 32px; background: #fff; }
.slide-counter {
  position: absolute; top: 16px; right: 24px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1px; opacity: 0.5; color: #fff;
}
.slide-accent-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
}

/* ── Sustainability Metrics ──────────────────────────────── */
.metrics-section {
  background: #1c1f2e; padding: 28px 0;
}
.metrics-grid {
  max-width: 1440px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
@media (min-width: 768px) { .metrics-grid { grid-template-columns: repeat(4, 1fr); } }
.metric-item { text-align: center; }
.metric-value {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800; color: #fff;
  letter-spacing: -0.5px; line-height: 1;
}
.metric-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: #a0aec0; margin-top: 4px;
}
.metric-note { font-size: 11px; color: #718096; margin-top: 4px; }

/* ── Breadcrumbs ─────────────────────────────────────────── */
.breadcrumbs {
  max-width: 1440px; margin: 0 auto;
  padding: 12px 24px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
  text-transform: uppercase; color: #718096;
  display: flex; align-items: center; gap: 8px;
}
.breadcrumbs a { color: #718096; text-decoration: none; }
.breadcrumbs a:hover { color: #e8470a; }

/* ── Collections Section ─────────────────────────────────── */
.collections-section {
  max-width: 1440px; margin: 0 auto;
  padding: 40px 24px;
}
.section-header {
  display: flex; align-items: flex-end;
  justify-content: space-between; margin-bottom: 28px;
}
.section-tag {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: #e8470a; margin-bottom: 4px;
}
.section-title {
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 800; color: #1c1f2e; line-height: 1.2;
}
.collections-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) { .collections-grid { grid-template-columns: repeat(3, 1fr); } }
.collection-card {
  display: flex; flex-direction: column;
  cursor: pointer; text-decoration: none;
}
.collection-img-wrap {
  position: relative; overflow: hidden;
  height: 220px; background: #f0ebe6;
  border: 1px solid #e2ddd8;
}
.collection-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.collection-card:hover .collection-img-wrap img { transform: scale(1.05); }
.collection-overlay {
  position: absolute; inset: 0;
  background: rgba(28,31,46,0.1);
  transition: background 0.3s;
}
.collection-card:hover .collection-overlay { background: rgba(28,31,46,0.25); }
.collection-badge {
  position: absolute; top: 10px; left: 10px;
  background: #e8470a; color: #fff;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.8px; text-transform: uppercase;
  padding: 4px 10px;
}
.collection-caption { padding-top: 12px; }
.collection-name {
  font-size: 15px; font-weight: 800;
  color: #1c1f2e; line-height: 1.2;
  margin-bottom: 4px;
}
.collection-card:hover .collection-name { color: #e8470a; }
.collection-sub { font-size: 12px; color: #718096; }

/* ── Product Catalog Section ─────────────────────────────── */
.catalog-section {
  max-width: 1440px; margin: 0 auto;
  padding: 8px 24px 80px;
}
.filter-bar {
  background: #fff; border: 1px solid #e2ddd8; margin-bottom: 24px;
}
.filter-tabs {
  display: flex; align-items: center; gap: 6px;
  overflow-x: auto; padding: 10px 12px 8px;
  border-bottom: 1px solid #f0ebe6;
  scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  flex-shrink: 0; padding: 7px 14px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.2px;
  background: #f7f4f1; color: #4a5568;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
  border: none; font-family: inherit;
}
.filter-tab:hover { background: #e6ddd6; }
.filter-tab.active { background: #e8470a; color: #fff; }
.filter-tab-sale { background: #d1fae5; color: #059669; }
.filter-tab-sale:hover, .filter-tab-sale.active { background: #059669; color: #fff; }
.filter-controls {
  padding: 10px 12px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.filter-select {
  height: 34px; background: #f7f4f1;
  border: 1px solid #e2ddd8;
  font-size: 12px; font-weight: 500; color: #1c1f2e;
  padding: 0 10px; outline: none; cursor: pointer;
  font-family: inherit;
}

/* ── Product Grid ────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 768px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }

/* ── Product Card ────────────────────────────────────────── */
.product-card {
  background: #fff; border: 1px solid #e2ddd8;
  display: flex; flex-direction: column;
  transition: box-shadow 0.2s;
  cursor: pointer; position: relative;
}
.product-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.product-img-wrap {
  position: relative; overflow: hidden;
  padding-top: 100%; background: #f7f4f1;
}
.product-img-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-badge {
  position: absolute; top: 8px; left: 8px;
  font-size: 9px; font-weight: 800;
  letter-spacing: 0.5px; text-transform: uppercase;
  padding: 3px 8px; z-index: 1;
}
.badge-discount { background: #e8470a; color: #fff; }
.badge-new { background: #1c1f2e; color: #fff; }
.badge-price-drop { background: #059669; color: #fff; }
.badge-expiring { background: #f59e0b; color: #fff; }
.product-actions {
  position: absolute; bottom: 8px; right: 8px;
  display: flex; gap: 6px; z-index: 2;
  opacity: 0; transition: opacity 0.2s;
}
.product-card:hover .product-actions { opacity: 1; }
.product-action-btn {
  width: 34px; height: 34px;
  background: #fff; border: 1px solid #e2ddd8;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px; transition: all 0.2s;
}
.product-action-btn:hover { background: #e8470a; border-color: #e8470a; color: #fff; }
.product-body { padding: 12px; display: flex; flex-direction: column; flex: 1; }
.product-cat {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: #475569; margin-bottom: 4px;
}
.product-name {
  font-size: 13px; font-weight: 700; color: #1c1f2e;
  line-height: 1.35; margin-bottom: 8px;
}
.product-rating { display: flex; align-items: center; gap: 5px; margin-bottom: 8px; }
.star { color: #d97706; font-size: 12px; }
.rating-val { font-size: 12px; font-weight: 700; color: #1e293b; }
.review-count { font-size: 11px; font-weight: 600; color: #475569; }
.product-price { margin-bottom: 10px; }
.price-current {
  font-size: 15px; font-weight: 800; color: #1c1f2e; display: block;
}
.price-old {
  font-size: 12px; color: #a0aec0;
  text-decoration: line-through; margin-top: 1px;
}
.product-colors { display: flex; gap: 5px; margin-bottom: 12px; }
.color-dot {
  width: 14px; height: 14px;
  border: 1px solid #e2ddd8;
}
.btn-order {
  width: 100%; height: 40px;
  background: #1c1f2e; color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; display: flex; align-items: center;
  justify-content: center; gap: 6px; cursor: pointer;
  transition: background 0.2s; text-decoration: none;
  font-family: inherit; border: none; margin-top: auto;
}
.btn-order:hover { background: #e8470a; }

/* ── Testimonials ────────────────────────────────────────── */
.testimonials-section {
  background: #f7f4f1; border-top: 1px solid #e2ddd8;
  border-bottom: 1px solid #e2ddd8; padding: 56px 0;
}
.testimonials-inner {
  max-width: 1440px; margin: 0 auto; padding: 0 24px;
}
.testimonials-header { text-align: center; margin-bottom: 36px; }
.testi-card {
  max-width: 680px; margin: 0 auto;
  background: #fff; border: 1px solid #e2ddd8;
  padding: 32px; box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.testi-stars { display: flex; gap: 4px; margin-bottom: 16px; }
.testi-quote {
  font-size: 16px; font-weight: 500; color: #1c1f2e;
  line-height: 1.6; margin-bottom: 0; font-style: normal;
}
.testi-footer {
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid #f0ebe6;
  display: flex; align-items: center; justify-content: space-between;
}
.testi-author { font-size: 14px; font-weight: 800; color: #1c1f2e; }
.testi-role { font-size: 12px; color: #718096; margin-top: 2px; }
.testi-verified { font-size: 11px; color: #059669; font-weight: 600; margin-top: 2px; }
.testi-nav { display: flex; gap: 8px; }
.testi-nav-btn {
  width: 36px; height: 36px;
  border: 1px solid #e2ddd8; background: #f7f4f1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; font-size: 16px; color: #4a5568;
}
.testi-nav-btn:hover { background: #1c1f2e; color: #fff; }
.testi-dots { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.testi-dot {
  height: 6px; width: 6px; background: #d0cac4;
  cursor: pointer; border: none; transition: all 0.2s;
}
.testi-dot.active { width: 20px; background: #e8470a; }

/* ── Newsletter Section ──────────────────────────────────── */
.newsletter-section {
  background: #1c1f2e; padding: 56px 0;
}
.newsletter-inner {
  max-width: 600px; margin: 0 auto; padding: 0 24px; text-align: center;
}
.newsletter-title { font-size: clamp(1.2rem, 3vw, 1.75rem); font-weight: 800; color: #fff; margin-bottom: 12px; }
.newsletter-sub { font-size: 14px; color: #a0aec0; margin-bottom: 28px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-input {
  flex: 1; height: 50px; padding: 0 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff; font-size: 13px; font-family: inherit; outline: none;
}
.newsletter-input::placeholder { color: #718096; }
.newsletter-input:focus { border-color: #e8470a; }
.newsletter-btn {
  height: 50px; padding: 0 24px;
  background: #e8470a; color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; white-space: nowrap;
  cursor: pointer; transition: background 0.2s; border: none; font-family: inherit;
}
.newsletter-btn:hover { background: #c73b08; }

/* ── Featured Press ──────────────────────────────────────── */
.press-section { background: #f7f4f1; padding: 32px 0; border-top: 1px solid #e2ddd8; }
.press-inner { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.press-label {
  text-align: center; font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: #a0aec0; margin-bottom: 20px;
}
.press-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 24px 40px;
}
.press-item { text-align: center; }
.press-name { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: #4a5568; }
.press-sub { font-size: 10px; color: #a0aec0; margin-top: 2px; }

/* ── Footer ──────────────────────────────────────────────── */
.tbl-footer { background: #1c1f2e; color: #f7f4f1; padding: 56px 0 0; }
.footer-grid {
  max-width: 1440px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr;
  gap: 36px; margin-bottom: 48px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-brand-col {}
.footer-col-title {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: #a0aec0; margin-bottom: 14px;
}
.footer-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 9px;
}
.footer-links a, .footer-links span {
  font-size: 13px; color: #cbd5e0; text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: #e8470a; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px; max-width: 1440px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ── Sell Tile ───────────────────────────────────────────── */
.sell-tile {
  background: #1c1f2e; padding: 28px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.sell-tile-text h3 { color: #fff; font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.sell-tile-text p { color: #a0aec0; font-size: 13px; }

/* ── Pagination ──────────────────────────────────────────── */
.pagination {
  display: flex; align-items: center;
  justify-content: center; gap: 8px; margin-top: 40px;
}
.page-btn {
  width: 40px; height: 40px; border: 1px solid #e2ddd8;
  background: #fff; color: #4a5568;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; font-size: 16px;
  text-decoration: none;
}
.page-btn:hover { border-color: #1c1f2e; color: #1c1f2e; }
.page-btn.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.page-info {
  padding: 0 16px; height: 40px;
  background: #fff; border: 1px solid #e2ddd8;
  display: flex; align-items: center;
  font-size: 13px; font-weight: 500; color: #4a5568;
}

/* ── Sell Tile (full span) ──────────────────────────────── */
.sell-tile-full { grid-column: 1 / -1; }

/* ── Toast ───────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 20px; right: 20px; z-index: 9999;
  background: #1c1f2e; color: #fff;
  padding: 14px 18px; font-size: 13px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  animation: fadeSlideUp 0.3s ease; max-width: 340px;
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.toast-close { margin-left: auto; cursor: pointer; opacity: 0.6; font-size: 16px; background: none; border: none; color: #fff; }

/* ── Modal Overlay ───────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal-overlay.hidden { display: none; }
.modal-box {
  background: #fff; max-width: 520px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  padding: 28px;
}
.modal-header {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 20px;
}
.modal-title { font-size: 16px; font-weight: 800; color: #1c1f2e; }
.modal-close {
  width: 32px; height: 32px; background: #f7f4f1;
  border: none; cursor: pointer; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  color: #4a5568;
}
.modal-close:hover { background: #e2ddd8; }

/* ── Form elements ───────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: #4a5568; margin-bottom: 6px;
}
.form-input {
  width: 100%; height: 46px; padding: 0 14px;
  border: 1px solid #e2ddd8; background: #f7f4f1;
  font-size: 14px; color: #1c1f2e; font-family: inherit; outline: none;
}
.form-input:focus { border-color: #e8470a; background: #fff; }

/* ── Quick View Modal ────────────────────────────────────── */
.qv-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 560px) { .qv-grid { grid-template-columns: 1fr 1fr; } }
.qv-img { position: relative; padding-top: 100%; background: #f7f4f1; overflow: hidden; }
.qv-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .newsletter-form { flex-direction: column; }
  .sell-tile { flex-direction: column; text-align: center; }
}
@media (max-width: 767px) {
  .slide { height: 340px; }
}

/* ── Mobile Hamburger Button ─────────────────────────────── */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: #f7f4f1;
  border: 1px solid #e2ddd8;
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger-btn span {
  display: block;
  width: 20px; height: 2px;
  background: #1c1f2e;
  transition: all 0.25s ease;
  transform-origin: center;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Nav Overlay ──────────────────────────────────── */
.mobile-nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.mobile-nav-overlay.open { display: block; }

/* ── Mobile Nav Drawer ───────────────────────────────────── */
.mobile-nav-drawer {
  position: fixed;
  top: 0; left: 0;
  width: 300px; max-width: 85vw; height: 100dvh;
  background: #fff;
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 8px 0 32px rgba(0,0,0,0.18);
}
.mobile-nav-drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #e2ddd8;
  background: #f7f4f1;
  flex-shrink: 0;
}
.drawer-brand {
  display: flex; align-items: baseline; gap: 6px;
  text-decoration: none;
}
.drawer-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: #e2ddd8; border: none; cursor: pointer;
  font-size: 20px; color: #1c1f2e; line-height: 1;
  transition: background 0.15s;
}
.drawer-close:hover { background: #1c1f2e; color: #fff; }

.drawer-body { flex: 1; overflow-y: auto; padding-bottom: 8px; }

.drawer-section-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #94a3b8;
  padding: 16px 20px 5px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #1c1f2e;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.15s;
  cursor: pointer;
  background: none; border-right: none; border-top: none; border-bottom: none;
  width: 100%; text-align: left; font-family: inherit;
}
.drawer-link:hover {
  background: #f7f4f1;
  border-left-color: #e8470a;
  color: #e8470a;
}
.drawer-link.active {
  background: #fff3ee;
  border-left-color: #e8470a;
  color: #e8470a;
  font-weight: 700;
}
.drawer-link.sale { color: #059669; }
.drawer-link.sale:hover { border-left-color: #059669; background: #f0fdf4; color: #059669; }
.drawer-link .d-icon { font-size: 15px; flex-shrink: 0; }

.drawer-divider { height: 1px; background: #e2ddd8; margin: 8px 0; }

.drawer-wa {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 16px;
  padding: 13px 16px;
  background: #25d366;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}
.drawer-wa:hover { background: #1da851; color: #fff; }

.drawer-admin-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 16px;
  padding: 13px 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 3px solid #1d4ed8;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}
.drawer-admin-link:hover { background: #dbeafe; color: #1d4ed8; }

.drawer-footer {
  padding: 14px 20px;
  border-top: 1px solid #e2ddd8;
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  flex-shrink: 0;
}

/* ── Mobile breakpoint: show hamburger, hide desktop nav ─── */
@media (max-width: 860px) {
  .header-actions { display: none !important; }
  .search-wrap { flex: 1; max-width: none; }
  .hamburger-btn { display: flex; }
  .primary-nav { display: none; }
}
@media (min-width: 861px) {
  .mobile-nav-drawer, .mobile-nav-overlay { display: none !important; }
}

/* ── Reduced Motion (E-16 Accessibility) ─────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
