/* Base rules below are ported verbatim (same property values) from the old
   static site's index.HTML <style> block, so every shared page element -
   header, nav, dropdown, banner, section title, grid/item cards, about
   footer, footer, WhatsApp button - looks pixel-identical. Rules after the
   "NEW (dynamic site only)" marker are additions needed for pages that did
   not exist as single pages on the old site (product detail, filters,
   category/section listing with price). */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, #fff9e6, #f4e3b2);
  color: #333;
}

html { scroll-behavior: smooth; }

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #8d6a11, #d7b765, #f3e3b2, #b89538, #8d6a11);
  padding: 5px 40px;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  z-index: 999;
  transition: top 0.45s ease, opacity 0.35s ease;
  opacity: 1;
}

.logo { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); }
.logo img { height: 55px; width: auto; border-radius: 16px; display: block; }

/* Header's right side: the search bar lives here, always visible (not
   hidden behind a toggle icon) - shake-hand style. */
.header-right { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 10px; }

.header-search {
  display: flex; align-items: center; gap: 9px;
  background: #fff; border-radius: 24px; padding: 9px 18px;
  width: 270px; max-width: 100%;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.header-search svg { width: 18px; height: 18px; flex-shrink: 0; color: #b8860b; }
.header-search input[type="search"] {
  border: none; outline: none; background: transparent; width: 100%;
  font-size: 14.5px; color: #333;
}
.header-search input[type="search"]::placeholder { color: #999; }
.header-search input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }

.search-panel {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; padding: 18px 40px; box-shadow: 0 10px 24px rgba(0,0,0,.15); z-index: 1250;
}
.search-panel.is-open { display: block; }
.search-panel input[type="search"] {
  width: 100%; padding: 12px 16px; border-radius: 10px; border: 1px solid #d9c98b; font-size: 16px;
  background: #fffdf5;
}
.search-suggestions { margin-top: 10px; max-height: 60vh; overflow-y: auto; }
.search-group-label { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #b8860b; font-weight: 700; margin: 12px 4px 4px; }
.search-suggestions a { display: flex; align-items: center; gap: 12px; padding: 9px 6px; border-radius: 10px; text-decoration: none; color: #333; }
.search-suggestions a:hover { background: #fdf6e3; }
.search-suggestions img { width: 40px; height: 40px; object-fit: contain; background: #f7f7f7; border-radius: 8px; flex-shrink: 0; }
.search-suggestions .s-label { font-weight: 600; font-size: 14.5px; }
.search-suggestions .s-meta { font-size: 12px; color: #888; }
.search-empty, .search-hint { color: #999; padding: 10px 6px; font-size: 13.5px; }

/* NAVIGATION */
nav { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }

nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  padding: 10px 28px;
  border-radius: 22px;
  color: #5a4c1e;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  transition: .25s ease;
}
nav a:hover { background: #fff; color: #b8860b; box-shadow: 0 0 12px rgba(255, 255, 255, 0.8); }

/* DROPDOWN */
/* padding-bottom + negative margin-bottom: a real (but visually cancelled)
   bridge so the gap between the pill and the panel is still "inside"
   .dropdown-container, otherwise the mouse leaves hover while crossing it
   and the dropdown closes before you reach it. */
.dropdown-container { position: relative; padding-bottom: 14px; margin-bottom: -14px; }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  padding: 18px 22px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 25px;
  width: 260px;
  z-index: 1000;
}
.dropdown-container:hover .dropdown { display: grid; }
.dropdown a { font-size: 16px; color: #444; padding: 4px 0; text-decoration: none; }
.dropdown a:hover { color: #b8860b; font-weight: 600; }

/* BANNER */
.banner {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  height: 650px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  position: relative;
  margin-top: 53px;
}
.banner h2 { position: relative; font-size: 52px; font-weight: 600; max-width: 760px; line-height: 1.25; padding: 0 20px; }

/* SECTION TITLE */
.section-title { font-size: 38px; color: #b8860b; margin: 60px auto 25px; text-align: center; }
.section-title::after { content: ""; width: 70px; height: 3px; background: #b8860b; display: block; margin: 12px auto; border-radius: 2px; }

/* GRID */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; padding: 30px 40px 50px; }

.item { background: white; border-radius: 18px; overflow: hidden; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); transition: 0.3s; }
.item:hover { transform: translateY(-8px); box-shadow: 0 6px 22px rgba(0, 0, 0, 0.2); }
.item img { width: 100%; height: 260px; object-fit: contain; padding: 10px; background: white; }
.item p { padding: 18px; margin: 0; font-size: 20px; font-weight: 600; text-align: center; color: #b8860b; }
.item a { text-decoration: none; color: inherit; display: block; }

/* ABOUT US */
.about-footer {
  position: relative;
  background: url("/static/img/slider/bgimg-3.9c555ac50b04.jpg") center/cover no-repeat;
  padding: 80px 60px;
  border-radius: 28px;
  margin: 60px 40px;
  overflow: hidden;
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.25);
}
.about-overlay { position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.55)); }
.about-container { position: relative; max-width: 1250px; margin: auto; display: flex; justify-content: space-between; gap: 60px; }
.about-left { width: 60%; color: white; }
.about-left h2 { font-size: 40px; font-weight: 700; margin-bottom: 20px; color: #f4d27d; text-shadow: 0 0 10px rgba(0, 0, 0, 0.5); }
.about-left p { font-size: 19px; line-height: 1.75; margin-bottom: 15px; opacity: 0.95; }
.about-info p { font-size: 19px; margin: 10px 0; font-weight: 500; }
.icon { margin-right: 10px; font-size: 20px; }
.about-right { width: 22%; display: flex; flex-direction: column; }
.about-right h3 { font-size: 28px; margin-bottom: 18px; color: #f4d27d; }
.about-right a { font-size: 18px; color: white; padding: 10px 0; opacity: 0.8; border-bottom: 1px solid rgba(255, 255, 255, 0.15); text-decoration: none; transition: 0.3s; }
.about-right a:hover { opacity: 1; padding-left: 5px; color: #f7dd90; }

footer.site-footer { background: linear-gradient(90deg, #b78a29, #e4cc84, #b78a29); color: white; text-align: center; padding: 22px; font-weight: 500; }

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  width: 65px;
  height: 65px;
  bottom: 25px;
  right: 20px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 35px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s;
}
.whatsapp-float:hover { transform: scale(1.12); box-shadow: 0 6px 14px rgba(0,0,0,0.3); }
.whatsapp-float img { width: 38px; height: 38px; }

/* ======================== */
/* MOBILE RESPONSIVE FIXES  */
/* ======================== */
@media (max-width: 992px) {
  nav a { font-size: 15px; padding: 8px 18px; }
  .banner { height: 480px; }
  .banner h2 { font-size: 34px; }
}

/* Bottom tab bar (phones only) - same pattern as a native-app bottom nav:
   Home / Men / Women / Rates always reachable, "Menu" opens everything else. */
.site-bottom-nav { display: none; }
.menu-toggle {
  -webkit-appearance: none; appearance: none; border: none; background: none; font: inherit; cursor: pointer;
}

@media (max-width: 768px) {
  header { flex-direction: row; flex-wrap: nowrap; justify-content: space-between; align-items: center; padding: 10px 14px; gap: 8px; }
  .logo { position: static; transform: none; order: 1; flex-shrink: 0; }
  .logo img { height: 36px; }
  .header-right { order: 2; position: static; transform: none; flex: 1 1 auto; min-width: 0; justify-content: center; gap: 8px; }
  .header-search { width: 100%; padding: 7px 14px; }
  .search-panel { padding: 14px 16px; }

  body { padding-bottom: 62px; }

  .site-bottom-nav {
    display: flex; flex-direction: row; align-items: stretch; gap: 0;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1300;
    background: #fff; border-top: 1px solid #ecddb0;
    box-shadow: 0 -2px 14px rgba(0,0,0,.08);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .site-bottom-nav a, .site-bottom-nav button {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 8px 2px 7px; color: #8a7a4a; font-size: 10.5px; font-weight: 600;
    text-decoration: none; -webkit-tap-highlight-color: transparent;
  }
  .site-bottom-nav svg { width: 21px; height: 21px; }
  .site-bottom-nav a:active, .site-bottom-nav button:active { color: #b8860b; }
  .menu-toggle.is-open { color: #b8860b; }

  nav {
    display: none;
    position: fixed; left: 0; right: 0; bottom: 62px; top: auto; max-height: 75vh; overflow-y: auto;
    background: #fffaf0; flex-direction: column; align-items: stretch;
    padding: 14px 16px; gap: 6px; box-shadow: 0 -10px 20px rgba(0,0,0,.15);
    z-index: 1200; border-radius: 16px 16px 0 0;
  }
  nav.nav-open { display: flex; }
  nav a { font-size: 15px; padding: 11px 14px; background: transparent; border: none; text-align: left; color: #5a4c1e; }
  nav a:hover { background: #f3e3b2; box-shadow: none; }
  .dropdown-container { position: static; }
  .dropdown {
    position: static; display: none; width: auto; grid-template-columns: repeat(2, 1fr);
    box-shadow: none; padding: 6px 0 6px 14px; margin-top: 2px;
  }
  .dropdown-container:hover .dropdown { display: none; }
  .dropdown-container.open .dropdown { display: grid; }
  .banner { height: 320px; margin-top: 68px; }
  .banner h2 { font-size: 24px; }
  .page-title { margin-top: 78px; font-size: 24px; }
  .product-wrap { margin-top: 68px; grid-template-columns: 1fr; }
  .about-container { flex-direction: column; }
  .about-left, .about-right { width: 100%; }
  .about-footer { margin: 40px 16px; padding: 36px 20px; }
  .grid { padding: 24px 16px 40px; gap: 18px; }
  .section-title { font-size: 28px; margin: 40px auto 18px; }
  .filter-bar { padding: 0 16px 10px; }
  .whatsapp-float { bottom: 78px; width: 56px; height: 56px; }
  .whatsapp-float img { width: 32px; height: 32px; }
}

@media (max-width: 480px) {
  .banner { height: 260px; margin-top: 72px; }
  .banner h2 { font-size: 20px; }
  .page-title { margin-top: 82px; font-size: 21px; }
  .product-wrap { margin-top: 72px; }
  .item img { height: 170px; }
  .about-footer { margin: 30px 10px; padding: 28px 16px; }
  .about-left h2 { font-size: 28px; }
  .about-left p, .about-info p { font-size: 16px; }
  .about-right a { font-size: 15px; }
}

/* ===================== NEW (dynamic site only) ===================== */
/* Pages below didn't exist as single pages on the old static site:
   category/section listing with live price + filters, and product detail.
   Kept in the same gold theme; .item/.grid/.banner above are untouched. */

.page-title { text-align: center; margin: 100px auto 10px; color: #b8860b; font-size: 30px; }

.item .ref-no { padding: 4px 10px 0; margin: 0; font-size: 11px; font-weight: 400; color: #bbb; text-align: right; }
.item .meta { padding: 0 18px; margin: -10px 0 4px; font-size: 13px; color: #888; text-align: center; }
.item .price { padding: 0 18px 14px; margin: 0; font-size: 17px; font-weight: 700; color: #4a3600; text-align: center; }
.item .get-price-btn {
  display: block;
  margin: 2px 14px 14px;
  padding: 9px 0;
  text-align: center;
  background: #25d366;
  color: white;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.item .get-price-btn:hover { background: #1fb959; }

.filter-bar { max-width: 1400px; margin: 0 auto; padding: 0 40px 10px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.filter-bar select, .filter-bar input { padding: 9px 14px; border-radius: 10px; border: 1px solid #d9c98b; background: white; font-size: 14px; }
.filter-bar button { padding: 9px 18px; border-radius: 10px; border: none; background: #b8860b; color: white; font-weight: 600; cursor: pointer; }

.product-wrap { max-width: 1100px; margin: 90px auto 50px; padding: 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.product-gallery img { width: 100%; height: 480px; max-height: 480px; object-fit: contain; background: white; border-radius: 18px; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.product-thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.product-thumbs img { width: 70px; height: 70px; object-fit: cover; border-radius: 10px; cursor: pointer; border: 2px solid transparent; background: white; }
.product-thumbs img.active { border-color: #b8860b; }
.product-info h1 { color: #b8860b; font-size: 30px; margin-bottom: 6px; }
.product-info .ref-no-detail { font-size: 12px; color: #aaa; margin: 0 0 10px; }
.product-info .tag { display: inline-block; background: #f3e3b2; color: #5a4c1e; padding: 4px 12px; border-radius: 20px; font-size: 13px; margin: 4px 4px 4px 0; }
.product-info .price-box { background: white; border-radius: 16px; padding: 18px 22px; margin: 18px 0; box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.product-info .price-box .amount { font-size: 28px; font-weight: 800; color: #4a3600; }
.product-info .price-box .note { font-size: 12px; color: #999; margin-top: 4px; }
.product-info .wa-btn { display: inline-flex; align-items: center; gap: 10px; background: #25d366; color: white; font-weight: 700; padding: 14px 26px; border-radius: 30px; text-decoration: none; font-size: 16px; }
.product-info .desc { margin-top: 20px; line-height: 1.7; color: #555; }

.empty-state { text-align: center; padding: 60px 20px; color: #999; }

.site-flash-wrap { max-width: 700px; margin: 85px auto 0; padding: 0 20px; }
.site-flash { background: #fff3cd; border: 1px solid #d9c98b; padding: 10px 16px; border-radius: 10px; margin-bottom: 8px; }
@media (max-width: 768px) { .site-flash-wrap { margin-top: 75px; } }
@media (max-width: 480px) { .site-flash-wrap { margin-top: 205px; } }

@media (max-width: 992px) {
  .product-wrap { grid-template-columns: 1fr; }
}
