@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --blush: #DDA9A0;
  --blush-light: #F3DED9;
  --rose-deep: #C9887A;
  --cream: #FBF3EE;
  --charcoal: #1C1C1C;
  --text-soft: #7A6763;
  --white: #FFFFFF;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(28, 28, 28, 0.08);
}

* { box-sizing: border-box; -webkit-touch-callout: none; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
}

h1, h2, h3, .brand-word { font-family: 'Playfair Display', serif; }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 243, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(28,28,28,.06);
}

.header-inner {
  max-width: 1180px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 34px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-word { font-size: 20px; font-weight: 600; letter-spacing: 0.03em; color: var(--charcoal); }
.brand-tag { font-size: 10px; color: var(--text-soft); letter-spacing: 0.1em; text-transform: uppercase; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.wa-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--charcoal); color: var(--white);
  padding: 10px 18px; border-radius: 999px; font-weight: 500; font-size: 13.5px;
  transition: transform .15s ease;
}
.wa-btn:hover { transform: translateY(-1px); }

.wholesale-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid rgba(28,28,28,.25);
  padding: 9px 16px; border-radius: 999px; font-weight: 500; font-size: 13px;
  color: var(--charcoal); cursor: pointer;
}
.wholesale-btn:hover { border-color: var(--rose-deep); color: var(--rose-deep); }
.wholesale-btn.active { background: var(--rose-deep); border-color: var(--rose-deep); color: var(--white); }

/* ---------- Hero ---------- */

.hero {
  max-width: 1180px; margin: 0 auto;
  padding: 72px 24px 36px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(34px, 5.5vw, 58px);
  font-weight: 600; color: var(--charcoal);
  margin: 0 0 14px; line-height: 1.15;
}
.hero p { font-size: 16px; color: var(--text-soft); max-width: 460px; margin: 0 auto; }

/* ---------- Category filters ---------- */

.filters {
  max-width: 1180px; margin: 0 auto; padding: 8px 24px 28px;
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.filter-pill {
  padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(28,28,28,.15);
  background: var(--white); font-size: 13.5px; font-weight: 500; cursor: pointer;
  transition: all .15s ease; color: var(--charcoal);
}
.filter-pill:hover { border-color: var(--rose-deep); }
.filter-pill.active { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }

/* ---------- Product grid ---------- */

.grid-wrap { max-width: 1180px; margin: 0 auto; padding: 8px 24px 80px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
}

.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(28,28,28,.12); }

.card-img { position: relative; aspect-ratio: 3 / 4; background: var(--blush-light); overflow: hidden; }
.protected-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease;
  -webkit-user-drag: none; user-select: none; pointer-events: none; }
.card:hover .protected-img { transform: scale(1.05); }
.card-img .no-photo { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--text-soft); font-size: 13px; }

.badge-sold {
  position: absolute; top: 10px; left: 10px; background: var(--charcoal); color: var(--white);
  font-size: 10.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .05em;
}
.badge-wholesale {
  position: absolute; top: 10px; right: 10px; background: var(--rose-deep); color: var(--white);
  font-size: 10px; font-weight: 600; padding: 4px 9px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .04em;
}

.card-body { padding: 15px 17px 18px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card-cat { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--rose-deep); font-weight: 600; }
.card-name { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 600; color: var(--charcoal); }
.card-price { margin-top: auto; padding-top: 6px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-retail { font-size: 15.5px; font-weight: 700; color: var(--charcoal); }
.price-retail.struck { text-decoration: line-through; color: var(--text-soft); font-weight: 500; font-size: 13px; }
.price-wholesale { font-size: 15.5px; font-weight: 700; color: var(--rose-deep); }

.empty-state { text-align: center; padding: 80px 20px; color: var(--text-soft); }

/* ---------- Product modal ---------- */

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(28,28,28,.55);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-backdrop.open { display: flex; }

.modal {
  background: var(--white); border-radius: 22px; max-width: 900px; width: 100%;
  max-height: 88vh; overflow: auto; display: grid; grid-template-columns: 1.1fr 1fr;
}
@media (max-width: 720px) { .modal { grid-template-columns: 1fr; } }

.modal-gallery { background: var(--blush-light); position: relative; }
.modal-gallery img { width: 100%; display: block; aspect-ratio: 3/4; object-fit: cover;
  -webkit-user-drag: none; user-select: none; pointer-events: none; }
.modal-thumbs { display: flex; gap: 8px; padding: 10px; flex-wrap: wrap; }
.modal-thumbs img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; cursor: pointer;
  opacity: .6; transition: opacity .15s; pointer-events: auto; -webkit-user-drag: none; user-select: none; }
.modal-thumbs img.active, .modal-thumbs img:hover { opacity: 1; }

.modal-info { padding: 32px 30px 34px; display: flex; flex-direction: column; }
.modal-close { align-self: flex-end; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-soft); margin-bottom: 6px; }
.modal-cat { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--rose-deep); font-weight: 600; margin-bottom: 6px; }
.modal-name { font-size: 27px; font-weight: 600; color: var(--charcoal); margin: 0 0 10px; }
.modal-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.modal-price-retail { font-size: 21px; font-weight: 700; color: var(--charcoal); }
.modal-price-retail.struck { text-decoration: line-through; color: var(--text-soft); font-weight: 500; font-size: 16px; }
.modal-price-wholesale { font-size: 21px; font-weight: 700; color: var(--rose-deep); }
.modal-desc { color: var(--text-soft); line-height: 1.65; margin-bottom: 24px; white-space: pre-line; }

.modal-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--charcoal); color: var(--white); font-weight: 500; font-size: 14.5px;
  padding: 14px 20px; border-radius: 12px; margin-top: auto;
}
.modal-wa:hover { background: var(--rose-deep); }

/* ---------- Wholesale code modal ---------- */

.wholesale-modal .modal { grid-template-columns: 1fr; max-width: 380px; }
.wholesale-form { padding: 32px 28px; }
.wholesale-form h2 { font-size: 21px; margin: 0 0 6px; }
.wholesale-form p { color: var(--text-soft); font-size: 13.5px; margin: 0 0 18px; }
.wholesale-form input {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(28,28,28,.15);
  font-size: 15px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .04em;
}
.wholesale-form button {
  width: 100%; padding: 12px; border: none; border-radius: 10px;
  background: var(--charcoal); color: var(--white); font-weight: 600; cursor: pointer; font-size: 14.5px;
}
.wholesale-error { color: #B24A3D; font-size: 13px; margin: -4px 0 12px; display: none; }
.wholesale-active-bar {
  background: var(--rose-deep); color: var(--white); text-align: center;
  font-size: 13px; padding: 8px 16px;
}
.wholesale-active-bar button {
  background: none; border: none; color: var(--white); text-decoration: underline;
  cursor: pointer; font-size: 13px; margin-left: 8px;
}

/* ---------- Connect ---------- */

.connect { border-top: 1px solid rgba(28,28,28,.07); background: var(--blush-light); }
.connect-inner { max-width: 1180px; margin: 0 auto; padding: 56px 24px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
@media (max-width: 720px) { .connect-inner { grid-template-columns: 1fr; gap: 36px; } }
.connect-col h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--charcoal); margin: 0 0 18px; font-family: 'Inter', sans-serif; font-weight: 600; }
.social-links { display: flex; flex-direction: column; gap: 12px; }
.social-link { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; color: var(--charcoal); width: fit-content; transition: color .15s ease; }
.social-link svg { width: 19px; height: 19px; flex-shrink: 0; }
.social-link:hover { color: var(--rose-deep); }
.address-text { color: var(--text-soft); font-size: 13.5px; margin: 0 0 14px; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); line-height: 0; }
.map-link { display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--rose-deep); }
.map-link:hover { text-decoration: underline; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid rgba(28,28,28,.08); padding: 26px 24px; text-align: center; color: var(--text-soft); font-size: 12.5px; }

/* ---------- Floating WhatsApp (mobile) ---------- */

.wa-float {
  position: fixed; bottom: 22px; right: 22px; width: 54px; height: 54px; border-radius: 50%;
  background: var(--charcoal); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(28,28,28,.3); z-index: 50;
}
.wa-float svg { width: 25px; height: 25px; }
@media (min-width: 640px) { .wa-float { display: none; } }
