:root {
  --purple: #6f3fb3;
  --purple-dark: #442075;
  --blue: #1aa7e8;
  --blue-soft: #e8f7ff;
  --ink: #1d2433;
  --muted: #667085;
  --bg: #f8fbff;
  --card: #ffffff;
  --line: #e6edf7;
  --shadow: 0 18px 45px rgba(31, 42, 68, 0.10);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background:
    radial-gradient(
      circle at top left,
      rgba(111, 63, 179, 0.12),
      transparent 35%
    ),
    radial-gradient(
      circle at top right,
      rgba(26, 167, 232, 0.16),
      transparent 32%
    ),
    var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.container {
  width: min(1140px, calc(100% - 36px));
  margin: 0 auto;
}


/* ========================================
   HEADER
======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(248, 251, 255, 0.82);
  border-bottom: 1px solid rgba(230, 237, 247, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  gap: 22px;
}

.brand-link {
  display: flex;
  align-items: center;
}

.header-logo {
  width: 132px;
  height: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.main-nav button,
.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
}

.main-nav button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.main-nav button:hover,
.main-nav a:hover {
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 42, 68, 0.08);
  color: var(--purple-dark);
}

.header-whatsapp {
  background:
    linear-gradient(
      135deg,
      var(--purple),
      var(--blue)
    );
  color: #fff !important;
  box-shadow:
    0 12px 26px
    rgba(111, 63, 179, 0.28);
}


/* ========================================
   HERO
======================================== */

.hero {
  padding: 72px 0 40px;
  text-align: center;
  position: relative;
}

.hero-logo {
  width: min(280px, 72vw);
  height: auto;
  margin: 0 auto 24px;
  display: block;
  filter:
    drop-shadow(
      0 18px 26px
      rgba(68, 32, 117, 0.16)
    );
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin: 0 0 18px;
  border-radius: 999px;
  color: var(--purple-dark);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow:
    0 10px 30px
    rgba(31, 42, 68, 0.06);
}

.hero h1 {
  margin: 0;
  font-size:
    clamp(
      2.45rem,
      5vw,
      5rem
    );
  line-height: 0.98;
  letter-spacing: -0.055em;
  color: #172033;
}

.hero-text {
  max-width: 760px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size:
    clamp(
      1rem,
      1.8vw,
      1.22rem
    );
}


/* ========================================
   SEARCH ASSISTANT
======================================== */

.assistant-card {
  margin: 40px auto 0;
  max-width: 920px;
  background:
    rgba(255, 255, 255, 0.92);
  border:
    1px solid
    rgba(230, 237, 247, 0.92);
  border-radius: 34px;
  box-shadow: var(--shadow);
  padding:
    clamp(
      22px,
      4vw,
      36px
    );
  text-align: left;
}

.assistant-card h2 {
  text-align: center;
  font-size:
    clamp(
      1.8rem,
      3vw,
      3rem
    );
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 8px;
  color: var(--purple-dark);
}

.assistant-subtitle {
  text-align: center;
  margin: 0 auto 24px;
  color: var(--muted);
  max-width: 680px;
}

.search-row {
  display: grid;
  grid-template-columns:
    1fr auto;
  gap: 12px;
  background: #f2f7ff;
  border:
    1px solid #dbe8f7;
  border-radius: 22px;
  padding: 10px;
}

.search-row input {
  border: none;
  background: transparent;
  padding: 14px 16px;
  font-size: 1rem;
  outline: none;
  color: var(--ink);
  min-width: 0;
}

.search-row button {
  border: none;
  border-radius: 16px;
  padding: 14px 24px;
  font-weight: 900;
  color: #fff;
  background:
    linear-gradient(
      135deg,
      var(--purple),
      var(--blue)
    );
  cursor: pointer;
  box-shadow:
    0 10px 18px
    rgba(26, 167, 232, 0.22);
}

.search-row button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.search-chips button {
  border: 1px solid var(--line);
  background: #fff;
  color: #475467;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 750;
  cursor: pointer;
}

.search-chips button:hover {
  color: var(--purple-dark);
  border-color:
    rgba(111, 63, 179, 0.32);
}


/* ========================================
   GENERAL SECTIONS
======================================== */

section {
  padding: 58px 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 4px 0 0;
  font-size:
    clamp(
      2rem,
      3.2vw,
      3.1rem
    );
  line-height: 1;
  letter-spacing: -0.045em;
}

.section-heading > p {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
}

.section-label {
  color: var(--purple);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


/* ========================================
   SEARCH RESULTS
======================================== */

.search-results {
  padding-top: 38px;
}

.search-results[hidden] {
  display: none;
}

#search-summary {
  color: var(--muted);
  font-size: 0.94rem;
}

.search-status {
  margin: 8px 0 16px;
  color: var(--muted);
}

.search-status.error {
  color: #a61b1b;
}

.search-status a {
  color: var(--purple);
  font-weight: 850;
}

.result-grid {
  display: grid;
  grid-template-columns:
    repeat(3, 1fr);
  gap: 14px;
}

.result-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.result-card h4 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.result-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.result-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.result-image {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 14px;
  background: #f1eef8;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.86rem;
  font-weight: 850;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f8fbff;
}

.mini-btn.primary {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}


/* ========================================
   LATEST ARRIVALS
======================================== */

.latest-arrivals-status {
  margin-bottom: 20px;
  text-align: center;
  color: var(--muted);
}

.latest-arrivals-status.error {
  color: #a33a3a;
}

.arrival-grid {
  display: grid;
  grid-template-columns:
    repeat(4, 1fr);
  gap: 16px;
}

.arrival-card {
  overflow: hidden;
  padding: 0;
  background:
    rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    0 14px 34px
    rgba(31, 42, 68, 0.06);
}

.arrival-image,
.arrival-placeholder {
  width: 100%;
  height: 210px;
}

.arrival-image {
  display: block;
  object-fit: cover;
}

.arrival-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    rgba(255, 255, 255, 0.6);
  font-size: 52px;
}

.arrival-card-body {
  padding: 22px;
}

.arrival-card-body h3 {
  margin: 12px 0 8px;
  font-size: 1.18rem;
}

.arrival-card-body p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.96rem;
}

.badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #087db2;
  font-size: 0.78rem;
  font-weight: 900;
}


/* ========================================
   POPULAR PRODUCT CATEGORIES
======================================== */

.category-grid {
  display: grid;
  grid-template-columns:
    repeat(4, 1fr);
  gap: 18px;
}

.category-card {
  background:
    rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow:
    0 14px 34px
    rgba(31, 42, 68, 0.06);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.category-card:hover {
  transform:
    translateY(-4px);
  box-shadow: var(--shadow);
  border-color:
    rgba(111, 63, 179, 0.26);
}

.category-card:focus {
  outline:
    3px solid
    rgba(111, 63, 179, 0.25);
  outline-offset: 3px;
}

.category-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.category-card h3 {
  margin: 0;
  font-size: 1.18rem;
}


/* ========================================
   SERVICES
======================================== */

.services-section {
  background:
    linear-gradient(
      135deg,
      rgba(111, 63, 179, 0.08),
      rgba(26, 167, 232, 0.12)
    );
  border-top:
    1px solid var(--line);
  border-bottom:
    1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns:
    repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow:
    0 14px 34px
    rgba(31, 42, 68, 0.06);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.service-card:hover {
  transform:
    translateY(-4px);
  box-shadow: var(--shadow);
  border-color:
    rgba(111, 63, 179, 0.26);
}

.service-card:focus {
  outline:
    3px solid
    rgba(111, 63, 179, 0.25);
  outline-offset: 3px;
}

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.service-card h3 {
  margin: 0;
  font-size: 1.18rem;
}


/* ========================================
   MEMORIES & STORIES
======================================== */

.memories-section {
  position: relative;
}

.memory-grid {
  display: grid;
  grid-template-columns:
    repeat(3, 1fr);
  gap: 18px;
}

.memory-card {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.98),
      rgba(250, 245, 255, 0.98)
    );
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow:
    0 14px 34px
    rgba(31, 42, 68, 0.06);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.memory-card:hover {
  transform:
    translateY(-4px);
  box-shadow: var(--shadow);
  border-color:
    rgba(111, 63, 179, 0.26);
}

.memory-card:focus {
  outline:
    3px solid
    rgba(111, 63, 179, 0.25);
  outline-offset: 3px;
}

.memory-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.memory-card h3 {
  margin: 0;
  font-size: 1.18rem;
}


/* ========================================
   CATEGORY DETAIL PANELS
======================================== */

.catalogue-detail-panel {
  margin-top: 24px;
  padding:
    clamp(
      20px,
      3vw,
      30px
    );
  background:
    rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.catalogue-detail-panel[hidden] {
  display: none;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 14px;
}

.detail-header h2 {
  margin: 4px 0 0;
  font-size:
    clamp(
      1.5rem,
      2.5vw,
      2.2rem
    );
}

.detail-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.detail-close:hover {
  color: var(--purple);
  border-color:
    rgba(111, 63, 179, 0.35);
}

.detail-status {
  margin: 0 0 16px;
  color: var(--muted);
}

.detail-status.error {
  color: #a33a3a;
}

.detail-status a {
  color: var(--purple);
  font-weight: 850;
}

.detail-grid {
  display: grid;
  grid-template-columns:
    repeat(3, 1fr);
  gap: 16px;
}

.detail-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.detail-image,
.detail-placeholder,
.detail-icon {
  width: 100%;
  height: 190px;
}

.detail-image {
  display: block;
  object-fit: cover;
  background: #f1eef8;
}

.detail-placeholder,
.detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f1fb;
  font-size: 48px;
}

.detail-card-body {
  padding: 20px;
}

.detail-card-body h4 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.detail-card-body p {
  margin: 0;
  color: var(--muted);
}


/* ========================================
   WHY PAL SQUARE
======================================== */

.why-grid {
  display: grid;
  grid-template-columns:
    repeat(4, 1fr);
  gap: 16px;
}

.why-card {
  background:
    rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow:
    0 14px 34px
    rgba(31, 42, 68, 0.06);
}

.why-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.why-card h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.why-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}


/* ========================================
   ABOUT
======================================== */

.about-section {
  padding-top: 64px;
}

.about-grid {
  display: grid;
  grid-template-columns:
    0.8fr 1.2fr;
  gap: 50px;
  align-items: start;
  background:
    rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding:
    clamp(
      24px,
      4vw,
      40px
    );
  box-shadow: var(--shadow);
}

.about-grid h2 {
  margin: 5px 0 0;
  font-size:
    clamp(
      2rem,
      3vw,
      2.8rem
    );
  line-height: 1;
  letter-spacing: -0.04em;
}

.about-grid p {
  margin-top: 0;
  color: var(--muted);
}

.about-grid p:last-child {
  margin-bottom: 0;
}


/* ========================================
   CONTACT
======================================== */

.contact-section {
  padding-top: 20px;
}

.contact-card {
  background:
    linear-gradient(
      135deg,
      rgba(111, 63, 179, 0.08),
      rgba(26, 167, 232, 0.12)
    );
  border: 1px solid var(--line);
  border-radius: 30px;
  padding:
    clamp(
      26px,
      5vw,
      44px
    );
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-card h2 {
  margin: 5px 0 10px;
  font-size:
    clamp(
      2rem,
      3vw,
      2.8rem
    );
  letter-spacing: -0.04em;
}

.contact-card p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 900;
  border: 1px solid var(--line);
  background: #fff;
}

.contact-button.primary {
  background:
    linear-gradient(
      135deg,
      var(--purple),
      var(--blue)
    );
  color: #fff;
  border: 0;
}


/* ========================================
   FOOTER
======================================== */

.site-footer {
  padding: 28px 0 38px;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}


/* ========================================
   FLOATING WHATSAPP
======================================== */

.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 900;
  box-shadow:
    0 18px 34px
    rgba(37, 211, 102, 0.34);
}


/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 900px) {

  .header-inner {
    align-items: flex-start;
    min-height: auto;
    padding: 14px 0;
  }

  .header-logo {
    width: 118px;
  }

  .main-nav {
    gap: 4px;
  }

  .main-nav button,
  .main-nav a {
    padding: 8px 10px;
    font-size: 0.88rem;
  }

  .hero {
    padding-top: 42px;
  }

  .result-grid,
  .category-grid,
  .service-grid,
  .memory-grid,
  .why-grid,
  .arrival-grid,
  .detail-grid,
  .about-grid {
    grid-template-columns:
      1fr 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

}


@media (max-width: 640px) {

  .container {
    width:
      min(
        calc(100% - 24px),
        1140px
      );
  }

  .header-inner {
    flex-direction: column;
    align-items: center;
  }

  .main-nav {
    justify-content: center;
  }

  .header-logo {
    width: 150px;
  }

  .hero-logo {
    width:
      min(
        240px,
        78vw
      );
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .search-row button {
    width: 100%;
  }

  .result-grid,
  .category-grid,
  .service-grid,
  .memory-grid,
  .why-grid,
  .arrival-grid,
  .detail-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .assistant-card {
    border-radius: 26px;
  }

  .about-grid {
    gap: 22px;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    padding: 12px 14px;
  }

}