@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Lato:wght@300;400;700&display=swap');

:root {
  --navy: #0F1C3F;
  --navy-deep: #0a132b;
  --terracotta: #c04c36;
  --linen-base: #F5F2EB;
  --header-bg: #FFFFFF;
  --paper: rgba(255, 255, 255, 0.78);
  --paper-strong: rgba(255, 255, 255, 0.94);
  --border-soft: rgba(15, 28, 63, 0.12);
  --border-mid: rgba(15, 28, 63, 0.2);
  --text-muted: rgba(15, 28, 63, 0.68);
  --shadow-soft: 0 10px 30px rgba(15, 28, 63, 0.06);
  --shadow-hover: 0 16px 36px rgba(15, 28, 63, 0.12);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--linen-base);
  background-image:
    linear-gradient(90deg, rgba(15, 28, 63, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(15, 28, 63, 0.025) 1px, transparent 1px);
  background-size: 4px 4px;
  color: var(--navy);
  font-family: 'Lato', sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

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

h1, h2, h3, h4, .brand-text, .serif {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  color: var(--navy);
}

a {
  color: var(--navy);
  text-decoration: none;
}

/* --- HEADER --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.9rem 2.5rem;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}

.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.site-header-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.site-logo-wrap {
  display: inline-flex;
  align-items: center;
}

.site-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  text-align: center;
  font-size: 1.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.8rem;
}

.site-nav a {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.site-nav a:hover {
  color: var(--terracotta);
}

/* --- HERO SECTION --- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5.5rem 1.5rem 3.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--terracotta);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 0 0 1.25rem;
  font-style: italic;
  line-height: 1.1;
}

.hero p {
  font-size: 1.12rem;
  font-weight: 300;
  color: var(--text-muted);
  margin: 0 0 2.25rem;
  max-width: 42rem;
}

.btn-brand {
  display: inline-block;
  padding: 0.95rem 2.4rem;
  background-color: var(--navy);
  color: #ffffff;
  border: 1px solid var(--navy);
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.25s ease;
}

.btn-brand:hover {
  background-color: transparent;
  color: var(--navy);
}

/* --- CATEGORY FILTER PILLS --- */
.category-filters {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  flex-wrap: wrap;
  max-width: 1000px;
}

.filter-btn {
  appearance: none;
  -webkit-appearance: none;
  background: var(--paper-strong);
  border: 1px solid var(--border-mid);
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--navy);
  font-family: 'Lato', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(15, 28, 63, 0.04);
}

.filter-btn:hover {
  border-color: var(--navy);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
  font-weight: 700;
}

/* --- PRODUCT GRID & CARDS --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 2.25rem 1.75rem;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-strong);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  height: 310px;
  background: #ece8df;
  overflow: hidden;
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image-wrapper img {
  transform: scale(1.05);
}

.stock-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(15, 28, 63, 0.08);
}

.product-info {
  padding: 1.25rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-grow: 1;
}

.product-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.12rem;
  color: var(--navy);
  margin: 0;
  line-height: 1.35;
  font-weight: 600;
}

.product-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.product-price {
  font-size: 1.05rem;
  color: var(--terracotta);
  font-weight: 700;
  margin-top: auto;
  padding-top: 0.6rem;
}

/* --- BOUTIQUE PROMISE STRIP (ABOVE FOOTER) --- */
.boutique-highlights {
  max-width: 1220px;
  margin: 2rem auto 0;
  padding: 0 2rem;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.highlight-item h3 {
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
  color: var(--navy);
}

.highlight-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* --- FOOTER --- */
.trust-footer {
  background-color: var(--navy-deep);
  color: #ffffff;
  padding: 4.5rem 2rem 2.5rem;
  margin-top: 4.5rem;
  border-top: 3px solid var(--terracotta);
}

.trust-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.footer-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin: 0 0 1.25rem;
  color: #ffffff;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
  margin: 0;
  font-size: 0.95rem;
  max-width: 340px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.7rem;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.76);
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-col ul li a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 3.5rem auto 0;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

/* --- PRODUCT MODAL (HIDDEN BY DEFAULT) --- */
#product-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 19, 43, 0.72);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}

#product-modal {
  background: #ffffff;
  border-radius: 14px;
  max-width: 940px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: row;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(10, 19, 43, 0.35);
}

.pm-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #ffffff;
  color: var(--navy);
  border: 1px solid var(--border-soft);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  z-index: 10;
}

#pm-image-container {
  flex: 1.1;
  background: #f4f2ec;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.75rem;
}

#pm-main-image {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  border-radius: 8px;
}

.pm-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 1rem;
  overflow-x: auto;
  max-width: 100%;
}

.pm-thumb {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.65;
  transition: all 0.2s ease;
}

.pm-thumb.active, .pm-thumb:hover {
  border-color: var(--navy);
  opacity: 1;
}

#pm-details {
  flex: 1;
  padding: 3rem 2.25rem 2.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.btn-etsy {
  display: block;
  width: 100%;
  background: var(--navy);
  color: #ffffff;
  border: none;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease;
  margin-top: 1.5rem;
}

.btn-etsy:hover {
  background: #1a2c5b;
  color: #ffffff;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 900px) {
  .site-header {
    padding: 0.9rem 1.25rem;
  }
  .site-header-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .site-header-left, .site-nav {
    justify-content: center;
  }
  .brand-text {
    order: -1;
  }
  .highlights-grid, .trust-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .footer-col p {
    margin: 0 auto;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  #product-modal {
    flex-direction: column;
    max-height: 100vh;
    border-radius: 0;
    height: 100%;
  }
  #product-modal-overlay {
    padding: 0;
  }
  #pm-image-container {
    min-height: 260px;
    padding: 1rem;
  }
  #pm-details {
    padding: 1.5rem;
  }
}
/* --- DEPARTMENT SHOWCASE CARDS (OPTION 1) --- */
.dept-section {
  max-width: 1220px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
}

.dept-card {
  background: var(--paper-strong);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 1.75rem 1.35rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dept-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--navy);
}

.dept-card.active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
  box-shadow: var(--shadow-hover);
}

.dept-card-eyebrow {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--terracotta);
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.dept-card.active .dept-card-eyebrow {
  color: #f0a899;
}

.dept-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.28rem;
  margin: 0 0 0.45rem;
  color: var(--navy);
  font-weight: 600;
}

.dept-card.active h3 {
  color: #ffffff;
}

.dept-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0 0 0.9rem;
  line-height: 1.45;
}

.dept-card.active p {
  color: rgba(255, 255, 255, 0.82);
}

.dept-count {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 28, 63, 0.06);
  color: var(--navy);
}

.dept-card.active .dept-count {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

/* --- CATALOGUE HEADER & SUB-FILTERS --- */
.catalogue-header {
  max-width: 1220px;
  margin: 0 auto 1.75rem;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.catalogue-header h2 {
  font-size: 2rem;
  margin: 0 0 0.4rem;
}

.catalogue-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1.35rem;
}

.sub-filters {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.sub-filter-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--border-mid);
  padding: 0.42rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--navy);
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
}

.sub-filter-btn:hover {
  border-color: var(--navy);
  background: rgba(255, 255, 255, 0.5);
}

.sub-filter-btn.active {
  background: var(--terracotta);
  color: #ffffff;
  border-color: var(--terracotta);
  font-weight: 700;
}

/* --- UNIFORM CARD HEIGHTS & VIEW ALL BUTTON --- */
.product-title {
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalogue-actions {
  text-align: center;
  margin: -1.5rem auto 4rem;
  padding: 0 2rem;
}

.btn-outline-brand {
  appearance: none;
  background: var(--paper-strong);
  color: var(--navy);
  border: 1px solid var(--navy);
  padding: 0.9rem 2.4rem;
  border-radius: 4px;
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-outline-brand:hover {
  background: var(--navy);
  color: #ffffff;
}

@media (max-width: 980px) {
  .dept-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .dept-grid {
    grid-template-columns: 1fr;
  }
}