/* ==========================================================================
   Jenica Unleashed — design system
   ========================================================================== */

:root {
  /* Colors: warm neutrals with teal + coral accents inspired by the fabrics */
  --cream: #faf6ef;
  --cream-2: #f2ebdd;
  --ink: #22201d;
  --ink-soft: #5b544b;
  --muted: #8a8378;
  --line: #e6dfd0;
  --teal: #2a8a90;
  --teal-deep: #1e6a70;
  --coral: #e07a5f;
  --coral-deep: #b7583e;
  --sale: #b7583e;

  /* Type */
  --f-display: "Playfair Display", "Georgia", serif;
  --f-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-script: "Caveat", "Segoe Script", cursive;

  /* Layout */
  --wrap: 1280px;
  --gap: clamp(1rem, 2vw, 2rem);
  --radius: 6px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--teal-deep); }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.05; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.15; }
h3 { font-size: 1.25rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }

/* ---- Announcement bar ---- */
.announce {
  background: var(--ink);
  color: var(--cream);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  padding: .55rem 1rem;
}
.announce a { color: var(--cream); border-bottom: 1px solid #ffffff33; }

/* ---- Header ---- */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .top-row {
  display: flex;
  align-items: center;
  padding: .25rem var(--gap) .25rem 0;
  gap: 1rem;
  max-width: none;
  margin: 0;
}
.brand {
  order: -1;
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  flex: 0 0 auto;
}
.brand-logo {
  height: clamp(91px, 12.25vw, 154px);
  width: auto;
  display: block;
}

.social-links {
  order: 2;
  display: flex;
  gap: .5rem;
  align-items: center;
}
.social-links a {
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background .15s, color .15s;
}
.social-links a:hover {
  color: var(--cream);
  background: var(--teal-deep);
}

.nav-toggle { order: 3; }
.icon-btn {
  background: transparent; border: 0; color: var(--ink);
  width: 36px; height: 36px; display: inline-grid; place-items: center;
  cursor: pointer;
}
.icon-btn:hover { color: var(--teal-deep); }

.search-open { grid-column: 1; justify-self: start; }

/* ---- Mega nav ---- */
.mega-nav { border-top: 1px solid var(--line); }
.mega-nav > .wrap {
  display: flex; justify-content: center; align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-top: .4rem; padding-bottom: .4rem;
}
.mega-nav a {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  color: var(--ink);
  padding: .35rem 0;
  position: relative;
}
.mega-nav a.sale { color: var(--sale); }
.mega-nav a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.35rem;
  border-bottom: 1px solid currentColor;
}

.nav-toggle { display: none; background: transparent; border: 0; padding: .5rem; }

/* ---- Hero ---- */
.hero {
  padding: clamp(3rem, 8vw, 6rem) var(--gap);
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  text-align: center;
}
.hero .eyebrow {
  font-family: var(--f-script); color: var(--coral); font-size: 1.5rem; margin-bottom: .5rem;
}
.hero h1 { max-width: 22ch; margin: 0 auto .75rem; }
.hero p { max-width: 42ch; margin: 0 auto 1.75rem; color: var(--ink-soft); font-size: 1.05rem; }
.hero .cta-row { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  border-radius: var(--radius);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  transition: background .15s, color .15s, transform .05s;
}
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--cream); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--cream); }

/* ---- Section ---- */
section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section-head { text-align: center; margin-bottom: 2.25rem; }
.section-head .eyebrow { font-family: var(--f-script); color: var(--coral); font-size: 1.3rem; }
.section-head h2 { margin-top: .1rem; }

/* ---- Product grid ---- */
.product-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 2rem);
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  padding: 0 var(--gap);
}
.product-card { color: var(--ink); }
.product-card .thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--cream-2);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: .85rem;
  display: grid; place-items: center;
}
.product-card .thumb.empty::after {
  content: "photo coming soon";
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.product-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: .5rem; }
.product-card:hover .thumb { transform: none; }
.product-card:hover img { transform: scale(1.03); }
.product-card img { transition: transform .5s ease; }

.product-card .badge {
  position: absolute; top: .6rem; left: .6rem;
  background: var(--coral); color: white;
  font-size: .65rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .25rem .55rem; border-radius: 999px;
  z-index: 2;
}
.product-card h3 { font-family: var(--f-body); font-size: 1rem; font-weight: 500; margin: 0 0 .2rem; }
.product-card .price { color: var(--ink-soft); font-size: .95rem; }
.product-card .swatches { display: flex; gap: .35rem; margin-top: .45rem; }
.product-card .swatch {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid #00000022;
}

.thumb-strip {
  display: flex;
  gap: .35rem;
  margin: .5rem 0 .5rem;
}
.thumb-strip-btn {
  flex: 1;
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid transparent;
  background: var(--cream-2);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s ease;
}
.thumb-strip-btn.active { border-color: var(--ink); }
.thumb-strip-btn:hover { border-color: var(--muted); }
.thumb-strip-btn img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Category tiles ---- */
.category-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 0 var(--gap);
}
.category-tile {
  aspect-ratio: 4 / 5;
  background: var(--cream-2);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  display: grid;
  place-items: end center;
  padding: 1.25rem;
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.category-tile::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}
.category-tile span { position: relative; z-index: 1; }
.category-tile span {
  background: var(--cream);
  border: 1px solid var(--ink);
  padding: .55rem 1rem;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.category-tile:hover span { background: var(--ink); color: var(--cream); }

/* ---- Story strip ---- */
.story {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(3rem, 6vw, 5rem) var(--gap);
  text-align: center;
}
.story .eyebrow { font-family: var(--f-script); color: var(--coral); font-size: 1.4rem; }
.story h2 { color: var(--cream); max-width: 24ch; margin: .25rem auto 1rem; }
.story p { max-width: 52ch; margin: 0 auto 1.5rem; color: #d9d3c6; }

/* ---- Product detail ---- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2rem, 4vw, 4rem) var(--gap);
  align-items: start;
}
.product-detail .gallery {
  display: grid; gap: .75rem;
}
.product-detail .gallery .main {
  aspect-ratio: 1 / 1;
  background: var(--cream-2);
  border-radius: var(--radius);
  display: grid; place-items: center;
  color: var(--muted); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  overflow: hidden;
}
.product-detail .gallery .thumbs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem;
}
.product-detail .gallery .thumbs div {
  aspect-ratio: 1 / 1; background: var(--cream-2); border-radius: 4px;
  overflow: hidden;
}
.product-detail .info h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.product-detail .info .price { font-size: 1.5rem; margin: .25rem 0 1rem; }
.product-detail .info .description { color: var(--ink-soft); margin-bottom: 1.5rem; }
.product-detail .options { display: grid; gap: 1.25rem; margin-bottom: 1.75rem; }
.product-detail .option-group label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .5rem; color: var(--ink-soft); }
.product-detail .swatch-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.product-detail .swatch-lg {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--cream); box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  background-size: cover;
  background-position: center;
}
.product-detail .swatch-lg.selected { box-shadow: 0 0 0 2px var(--ink); }
.product-card .swatch {
  background-size: cover;
  background-position: center;
}
.product-detail select {
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  font: inherit;
  min-width: 12rem;
}
.product-detail .feature-list {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}
.product-detail .feature-list h3 { font-family: var(--f-body); font-weight: 500; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .75rem; }
.product-detail .feature-list ul { padding-left: 1.1rem; margin: 0; color: var(--ink-soft); }
.product-detail .feature-list li { margin-bottom: .35rem; }

/* ---- Filter bar (shop) ---- */
.filter-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem var(--gap); border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.filter-bar .count { color: var(--ink-soft); font-size: .9rem; }
.filter-bar select { padding: .5rem .75rem; border: 1px solid var(--line); border-radius: var(--radius); background: white; font: inherit; }

/* ---- About / Contact ---- */
.page-head {
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) var(--gap) 2rem;
}
.page-head .eyebrow { font-family: var(--f-script); color: var(--coral); font-size: 1.4rem; }
.prose {
  max-width: 62ch; margin: 0 auto;
  padding: 0 var(--gap) clamp(2rem, 5vw, 4rem);
  color: var(--ink-soft); font-size: 1.05rem; line-height: 1.7;
}
.prose h2 { color: var(--ink); margin-top: 2rem; }
.prose a { color: var(--teal-deep); border-bottom: 1px solid currentColor; }

.contact-form {
  max-width: 32rem; margin: 0 auto;
  padding: 0 var(--gap) 4rem;
  display: grid; gap: 1rem;
}
.contact-form label { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); }
.contact-form input, .contact-form textarea {
  padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: white; font: inherit; width: 100%;
}
.contact-form textarea { min-height: 8rem; resize: vertical; }
.contact-form .btn { justify-self: start; }

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: #d9d3c6;
  padding: clamp(3rem, 5vw, 4rem) var(--gap) 1.5rem;
}
.footer-grid {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem;
}
.footer-grid h4 { font-family: var(--f-body); font-weight: 500; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--cream); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5rem; font-size: .9rem; }
.footer-grid a:hover { color: var(--cream); }
.newsletter-input { display: flex; gap: .5rem; margin-top: .5rem; }
.newsletter-input input {
  flex: 1; padding: .65rem .8rem;
  border: 1px solid #ffffff33; background: transparent; color: var(--cream);
  border-radius: var(--radius); font: inherit;
}
.newsletter-input input::placeholder { color: #ffffff66; }
.newsletter-input button {
  padding: .65rem 1rem;
  background: var(--cream); color: var(--ink); border: 0;
  border-radius: var(--radius); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
}
.footer-bottom {
  max-width: var(--wrap); margin: 3rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid #ffffff22;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .8rem; color: #a29c92;
}

/* ---- Mobile ---- */
@media (max-width: 820px) {
  .search-open { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; width: 36px; height: 36px; }
  .mega-nav > .wrap { flex-direction: column; align-items: stretch; gap: .25rem; display: none; }
  .mega-nav.open > .wrap { display: flex; }
  .mega-nav a { padding: .75rem 0; border-bottom: 1px solid var(--line); text-align: center; }
  .product-detail { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-header .top-row { padding-right: var(--gap); }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Image gallery ---- */
.gallery-section {
  padding: clamp(2rem, 5vw, 4rem) var(--gap);
  background: var(--cream);
}
.gallery {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(3.5rem, 7vw, 5.5rem);
}
.gallery-frame {
  aspect-ratio: 3 / 2;
  background: var(--cream-2);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.gallery-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: clamp(.75rem, 1.5vw, 1.25rem);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.gallery-img.active { opacity: 1; }
.gallery-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 64px; height: 64px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  display: grid; place-items: center;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: background .15s ease, color .15s ease, transform .1s ease;
  z-index: 2;
}
.gallery-nav:hover { background: var(--ink); color: var(--cream); }
.gallery-nav:active { transform: translateY(-50%) scale(.96); }
.gallery-nav.prev { left: 0; }
.gallery-nav.next { right: 0; }
.gallery-dots {
  display: flex; justify-content: center; gap: .4rem;
  margin: 1rem auto 0;
}
.gallery-dots button {
  width: 10px; height: 10px; border-radius: 50%;
  border: 0;
  background: var(--line);
  cursor: pointer;
  padding: 0;
  transition: background .15s ease, transform .1s ease;
}
.gallery-dots button.active { background: var(--ink); transform: scale(1.25); }

/* ---- Call modal ---- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  padding: 1rem;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-card {
  background: #ffffff;
  color: var(--ink);
  border-radius: 12px;
  padding: 2.75rem 2rem 2.25rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: translateY(16px) scale(.98);
  transition: transform .18s ease;
}
.modal-overlay.open .modal-card { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: .5rem; right: .75rem;
  background: transparent;
  border: 0;
  font-size: 1.75rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: .25rem .5rem;
}
.modal-close:hover { color: var(--ink); }
.modal-eyebrow {
  font-family: var(--f-script);
  color: var(--coral);
  font-size: 1.4rem;
  margin: 0 0 .25rem;
}
.modal-msg {
  font-family: var(--f-display);
  font-size: 1.25rem;
  margin: 0 0 1.25rem;
  color: var(--ink);
}
.modal-phone {
  display: inline-block;
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 500;
  color: var(--teal-deep);
  text-decoration: none;
  border-bottom: 2px solid var(--teal-deep);
  padding: 0 .1rem .15rem;
}
.modal-phone:hover { color: var(--coral-deep); border-color: var(--coral-deep); }
.modal-hint {
  margin: 1.5rem 0 0;
  font-size: .85rem;
  color: var(--muted);
}

/* ---- Fonts (Google fonts loaded in HTML) ---- */
