/* ==========================================================================
   Jael Boutique — shop.jael.io
   Sitewide stylesheet for the dress boutique subdomain.
   Soft · feminine · cream / blush / rose
   ========================================================================== */

:root {
  --cream: #FBF7F3;
  --cream-deep: #F3EBE3;
  --blush: #F0D9D6;
  --blush-deep: #E5C4BF;
  --rose: #C48B8B;
  --rose-deep: #A66D6D;
  --gold: #C5A46E;
  --gold-soft: #D4B896;
  --ink: #3A2F2F;
  --ink-soft: #6B5B55;
  --ink-faint: #9A8A84;
  --white: #FFFFFF;
  --border: rgba(196, 139, 139, 0.28);
  --shadow: 0 18px 50px -20px rgba(90, 60, 70, 0.22);
  --shadow-soft: 0 10px 30px -12px rgba(90, 60, 70, 0.14);
  --pill: 999px;
  --radius: 1.5rem;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --nav-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(240, 217, 214, 0.7), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(212, 184, 150, 0.25), transparent 50%),
    var(--cream);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
}

/* ---- Typography ---- */
.display {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 500;
}

.gold { color: var(--gold); }
.rose { color: var(--rose); }

/* ---- Layout helpers ---- */
.container-shop,
.boutique-nav-inner,
.mobile-nav-inner {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ---- Nav (sitewide) ---- */
.boutique-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 243, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.boutique-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.boutique-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.boutique-logo {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.boutique-nav .brand {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
}

.boutique-nav .brand span {
  font-weight: 400;
  color: var(--rose);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-left: 0.35rem;
}

/* Desktop links: hidden on small screens, flex on md+ (no Tailwind dependency) */
.boutique-nav-links {
  display: none;
  align-items: center;
  gap: 2.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.boutique-nav-links .nav-link {
  padding-left: 0.15rem;
  padding-right: 0.15rem;
}

.nav-link {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  transition: color 0.2s ease;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  color: var(--rose-deep);
}

/* Hamburger: show on mobile only */
.boutique-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  font-size: 1.25rem;
  padding: 0.5rem;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--cream);
}

.mobile-nav.open,
.mobile-nav[data-open="1"] {
  display: block !important;
}

.mobile-nav[hidden]:not(.open):not([data-open="1"]) {
  display: none !important;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

.mobile-nav-inner a {
  display: block;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
}

.mobile-nav-inner a:last-child {
  border-bottom: none;
}

.mobile-nav-inner a:hover {
  color: var(--rose-deep);
}

@media (min-width: 768px) {
  .boutique-nav-links {
    display: flex !important;
  }

  .boutique-menu-btn {
    display: none !important;
  }

  .mobile-nav,
  .mobile-nav.open,
  .mobile-nav[data-open="1"] {
    display: none !important;
  }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 4rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(240, 217, 214, 0.55), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(197, 164, 110, 0.12), transparent 40%);
  pointer-events: none;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero-title em {
  font-style: italic;
  color: var(--rose);
  font-weight: 400;
}

.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  color: var(--rose-deep);
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* ---- Buttons ---- */
.btn-rose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.85rem;
  background: var(--rose);
  color: var(--white) !important;
  border-radius: var(--pill);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 24px -10px rgba(166, 109, 109, 0.55);
}

.btn-rose:hover {
  background: var(--rose-deep);
  transform: translateY(-2px);
}

.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.85rem;
  background: transparent;
  color: var(--ink) !important;
  border-radius: var(--pill);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.btn-soft:hover {
  border-color: var(--rose);
  background: rgba(240, 217, 214, 0.35);
  transform: translateY(-2px);
}

/* ---- Cards / badges ---- */
.price-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: var(--pill);
  background: rgba(197, 164, 110, 0.15);
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.condition-new { color: var(--rose-deep); }
.condition-excellent { color: var(--gold); }

.dress-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.2s;
  box-shadow: var(--shadow-soft);
}

.dress-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(196, 139, 139, 0.45);
}

.dress-card .thumb {
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(160deg, var(--blush) 0%, var(--cream-deep) 55%, var(--blush-deep) 100%);
  position: relative;
  overflow: hidden;
}

/* Accessories product grid (shop.jael.io only) */
.accessory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .accessory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .accessory-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .accessory-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.accessory-grid .dress-card .thumb {
  aspect-ratio: 1 / 1;
  background: #f3ebe3;
}

.accessory-grid .dress-card .thumb img {
  object-fit: cover;
  object-position: center;
}

.accessory-thumb-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  position: relative;
}

.accessory-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.accessory-thumb-hint {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  color: var(--rose-deep);
  font-size: 0.75rem;
  box-shadow: var(--shadow-soft);
  opacity: 0.9;
  pointer-events: none;
}

.accessory-thumb-btn:hover .accessory-thumb-hint,
.accessory-thumb-btn:focus-visible .accessory-thumb-hint {
  opacity: 1;
  background: #fff;
}

/* Accessory multi-photo lightbox */
.gallery-backdrop .gallery-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: min(52rem, 100%);
  width: 100%;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  max-height: 92vh;
  overflow-y: auto;
}

.gallery-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .gallery-images {
    grid-template-columns: 1fr 1fr;
  }
}

.gallery-figure {
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}

.gallery-figure img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  background: #f8f3ef;
}

.gallery-figure figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
}

.dress-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.dress-card:hover .thumb img {
  transform: scale(1.04);
}

.dress-card .thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--rose);
  padding: 1.5rem;
  text-align: center;
}

.dress-card .thumb-placeholder i {
  font-size: 2rem;
  opacity: 0.7;
}

.badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  padding: 0.3rem 0.7rem;
  border-radius: var(--pill);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
}

.badge-new { color: var(--rose-deep); }
.badge-excellent { color: var(--gold); }

/* ---- Sections ---- */
.section-soft {
  background: rgba(255, 255, 255, 0.45);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1.35rem;
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  height: 100%;
}

.feature-tile .icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blush);
  color: var(--rose-deep);
  margin-bottom: 1rem;
}

/* ---- Filters ---- */
.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: var(--pill);
  border: 1px solid var(--border);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-chip:hover {
  border-color: var(--rose);
  color: var(--rose-deep);
}

.filter-chip.is-active {
  background: var(--rose);
  border-color: var(--rose);
  color: var(--white);
}

/* ---- Modal ---- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(58, 47, 47, 0.45);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 28rem;
  width: 100%;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  max-height: 90vh;
  overflow-y: auto;
}

.field {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s;
}

.field:focus {
  border-color: var(--rose);
}

textarea.field {
  resize: vertical;
  min-height: 6rem;
}

/* ---- Forms (contact etc.) ---- */
form label {
  display: block;
}

/* ---- Footer ---- */
.boutique-footer {
  border-top: 1px solid var(--border);
  background: rgba(243, 235, 227, 0.55);
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.boutique-footer a:hover {
  color: var(--rose-deep);
}

/* ---- Flourishes ---- */
.flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  color: var(--gold-soft);
  font-size: 0.75rem;
}

.flourish.justify-start {
  justify-content: flex-start;
}

.flourish::before,
.flourish::after {
  content: "";
  height: 1px;
  width: 2.5rem;
  background: linear-gradient(90deg, transparent, var(--blush-deep), transparent);
}

.flourish.justify-start::before {
  display: none;
}

/* ---- Main pages ---- */
main {
  min-height: 40vh;
}

body.modal-open {
  overflow: hidden;
}

/* ---- Marketplace ---- */
.page-hero {
  padding: 3.5rem 0 2rem;
  text-align: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  background: var(--cream-deep);
  color: var(--ink-soft);
}

.status-pill.pending { background: rgba(197, 164, 110, 0.2); color: var(--gold); }
.status-pill.live { background: rgba(90, 140, 100, 0.15); color: #3d6b45; }
.status-pill.rejected,
.status-pill.removed { background: rgba(166, 109, 109, 0.15); color: var(--rose-deep); }
.status-pill.sold { background: var(--blush); color: var(--rose-deep); }

.fee-preview {
  border: 1px dashed var(--border);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.6);
}

.community-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.community-card .thumb {
  aspect-ratio: 3 / 4;
  background: var(--cream-deep);
  overflow: hidden;
}

.community-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-card .body {
  padding: 1.1rem 1.15rem 1.25rem;
}

.studio-list {
  display: grid;
  gap: 1rem;
}

.studio-row {
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  gap: 1rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  padding: 0.75rem;
}

.studio-row img {
  width: 5rem;
  height: 6.25rem;
  object-fit: cover;
  border-radius: 0.75rem;
  background: var(--cream-deep);
}

.photo-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.photo-picks img {
  width: 4.5rem;
  height: 5.5rem;
  object-fit: cover;
  border-radius: 0.6rem;
}

.form-note {
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.alert {
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.alert-error {
  background: rgba(166, 109, 109, 0.12);
  color: var(--rose-deep);
}

.alert-ok {
  background: rgba(90, 140, 100, 0.12);
  color: #3d6b45;
}

.item-gallery {
  display: grid;
  gap: 0.65rem;
}

.item-gallery img {
  width: 100%;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
}

@media (min-width: 768px) {
  .studio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }
}

.workshop-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.7rem;
  box-shadow: var(--shadow-soft);
  height: 100%;
}

.workshop-signup {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .workshop-signup {
    flex-direction: row;
    align-items: stretch;
  }
  .workshop-signup .field {
    flex: 1;
  }
  .workshop-signup .btn-rose {
    white-space: nowrap;
  }
}


/* ---- Utility spacing used with Tailwind-style classes on pages ---- */
.shrink-0 { flex-shrink: 0; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.relative { position: relative; }
.z-10 { position: relative; z-index: 10; }

/* Ensure Tailwind grids still work when present */
.max-w-6xl { max-width: 72rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
