:root {
  --white: #fffdf8;
  --cream: #f7f0df;
  --soft-cream: #fbf7ee;
  --gold: #c49a3a;
  --deep-gold: #9a7426;
  --ink: #22201c;
  --muted: #6d6860;
  --line: #e7dbc2;
  --gray: #f2f1ee;
  --shadow: 0 16px 42px rgba(61, 49, 25, 0.14);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(196, 154, 58, 0.12), transparent 34%),
    linear-gradient(180deg, var(--white), var(--cream));
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(14px, 4vw, 48px);
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid rgba(196, 154, 58, 0.26);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(145deg, var(--deep-gold), var(--gold));
  border-radius: 50%;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(154, 116, 38, 0.28);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--deep-gold);
}

.nav-whatsapp,
.admin-link {
  padding: 10px 14px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--deep-gold);
  background: var(--white);
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(196, 154, 58, 0.12);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  gap: 26px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 22px clamp(14px, 4vw, 56px) 42px;
}

.hero-media {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(145deg, #fff7e2, #e7d3a4);
  box-shadow: var(--shadow);
  border: 1px solid rgba(196, 154, 58, 0.34);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.hero-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 30px;
  text-align: center;
  color: var(--deep-gold);
}

.hero-media.image-missing .hero-fallback {
  display: grid;
}

.hero-fallback span {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.68);
  font-size: 2.1rem;
  font-weight: 900;
}

.hero-fallback strong {
  font-size: clamp(2.2rem, 8vw, 5rem);
}

.hero-copy {
  animation: rise 640ms ease both;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--deep-gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 6px;
  font-size: clamp(3rem, 11vw, 7rem);
  line-height: 0.92;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4.6vw, 3.4rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.tagline {
  margin-bottom: 14px;
  color: var(--deep-gold);
  font-size: clamp(1.1rem, 3.3vw, 2rem);
  font-weight: 900;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.hero-actions,
.dialog-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover,
.product-card:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: var(--white);
  background: linear-gradient(145deg, var(--deep-gold), var(--gold));
  box-shadow: 0 12px 26px rgba(154, 116, 38, 0.26);
}

.btn.secondary {
  color: var(--deep-gold);
  background: var(--white);
  border: 1px solid var(--gold);
}

.about-section,
.catalogue-section,
.contact-section {
  padding: 58px clamp(14px, 4vw, 56px);
}

.about-section {
  background: rgba(255, 253, 248, 0.72);
}

.about-section p {
  max-width: 920px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.audience-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.audience-strip span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft-cream);
  color: var(--deep-gold);
  font-weight: 800;
}

.catalogue-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.catalogue-tools {
  display: grid;
  gap: 16px;
  margin: 12px 0 24px;
}

.search-box {
  display: grid;
  gap: 7px;
  color: var(--deep-gold);
  font-weight: 900;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: var(--white);
  color: var(--ink);
  outline: none;
  box-shadow: 0 8px 20px rgba(61, 49, 25, 0.06);
}

.search-box input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(196, 154, 58, 0.16);
}

.filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.filter-tabs button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 13px;
  color: var(--muted);
  background: var(--white);
  cursor: pointer;
  font-weight: 850;
}

.filter-tabs button.active {
  color: var(--white);
  border-color: var(--deep-gold);
  background: linear-gradient(145deg, var(--deep-gold), var(--gold));
}

.catalogue-status {
  min-height: 24px;
  color: var(--muted);
  font-weight: 700;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.product-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(196, 154, 58, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 10px 24px rgba(61, 49, 25, 0.1);
  transition: transform 160ms ease, box-shadow 160ms ease;
  animation: rise 440ms ease both;
}

.product-card:hover {
  box-shadow: var(--shadow);
}

.product-image-btn {
  width: 100%;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  background: var(--gray);
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-body {
  display: grid;
  gap: 7px;
  padding: 8px;
}

.product-code {
  color: var(--deep-gold);
  font-size: 0.66rem;
  font-weight: 950;
  word-break: break-word;
}

.product-name {
  min-height: 2.25em;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.15;
}

.price-box {
  display: grid;
  min-height: 42px;
  place-items: center;
  padding: 6px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  color: var(--deep-gold);
  background: linear-gradient(180deg, #fffdf7, #f6ead0);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 950;
}

.enquiry-btn {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: #1f8f4d;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 950;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.84);
  color: var(--muted);
  line-height: 1.7;
}

.contact-section {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.68), rgba(242, 241, 238, 0.9));
}

.contact-card {
  display: grid;
  gap: 6px;
  min-width: min(100%, 250px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-card span {
  color: var(--deep-gold);
  font-weight: 900;
}

.contact-card strong {
  font-size: 1.35rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 24px;
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer strong {
  color: var(--deep-gold);
}

dialog {
  border: 0;
  padding: 0;
  background: transparent;
}

dialog::backdrop {
  background: rgba(34, 32, 28, 0.72);
  backdrop-filter: blur(10px);
}

.dialog-card {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(94vw, 620px);
  max-height: 90vh;
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.dialog-card label {
  display: grid;
  gap: 7px;
  color: var(--deep-gold);
  font-weight: 900;
}

.dialog-card input,
.dialog-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--soft-cream);
  outline: none;
}

.selected-product {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.selected-product span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--soft-cream);
  font-weight: 800;
}

.icon-close,
.gallery-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.92);
  cursor: pointer;
  font-weight: 900;
}

.gallery-dialog {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
}

.gallery-shell {
  position: relative;
  display: grid;
  width: 100vw;
  height: 100vh;
  place-items: center;
  padding: 60px 48px 86px;
}

.gallery-figure {
  display: grid;
  gap: 14px;
  justify-items: center;
  margin: 0;
  color: var(--white);
  text-align: center;
}

.gallery-figure img {
  max-width: 88vw;
  max-height: 72vh;
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 20px 64px rgba(0, 0, 0, 0.42);
  transform: scale(var(--zoom, 1));
  transition: transform 160ms ease;
}

.gallery-figure figcaption {
  display: grid;
  gap: 4px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
}

.gallery-nav,
.zoom-controls button {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--white);
  background: rgba(34, 32, 28, 0.56);
  cursor: pointer;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 56px;
  border-radius: 999px;
  font-size: 2rem;
}

.gallery-nav.prev {
  left: 10px;
}

.gallery-nav.next {
  right: 10px;
}

.zoom-controls {
  position: absolute;
  bottom: 18px;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.zoom-controls button {
  min-width: 42px;
  height: 38px;
  border-radius: 999px;
  font-weight: 900;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 720px) {
  .nav-links {
    display: flex;
  }

  .hero {
    grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1.1fr);
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
  }

  .product-body {
    padding: 12px;
  }

  .product-code {
    font-size: 0.76rem;
  }

  .product-name {
    font-size: 0.92rem;
  }

  .price-box {
    font-size: 0.86rem;
  }

  .enquiry-btn {
    font-size: 0.82rem;
  }
}

@media (min-width: 1024px) {
  .hero-media,
  .hero-media img {
    min-height: 560px;
  }

  .catalogue-tools {
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    align-items: end;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 420px) {
  .site-header {
    gap: 8px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }

  .brand small,
  .nav-whatsapp {
    font-size: 0.72rem;
  }

  .nav-whatsapp {
    padding: 9px 11px;
  }

  .about-section,
  .catalogue-section,
  .contact-section {
    padding-inline: 10px;
  }
}
