/* ===== Cosme Outlet — shared styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root {
  --pink: #ec008c;
  --pink-dark: #b40069;
  --pink-darker: #8f0054;
  --pink-light: #fdeef6;
  --pink-lighter: #fff5fa;
  --gold: #cda45e;
  --ink: #2a2029;
  --ink-soft: #6b5b66;
  --cream: #fffaf9;
  --white: #ffffff;
  --border: #f3d9e8;
  --shadow: 0 10px 30px rgba(236, 0, 140, 0.10);
  --radius: 18px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Prompt', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 600; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pink);
  font-weight: 600;
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--ink);
}

.section-lead {
  color: var(--ink-soft);
  max-width: 640px;
  font-size: 1rem;
}

.section {
  padding: 72px 0;
}

.section--tight { padding: 48px 0; }

.section-head {
  text-align: center;
  margin-bottom: 44px;
}
.section-head .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-primary {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 10px 24px rgba(236,0,140,.28);
}
.btn-primary:hover { background: var(--pink-dark); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border-color: var(--pink);
  color: var(--pink);
}
.btn-outline:hover { background: var(--pink); color: #fff; transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.6);
  color: #fff;
  backdrop-filter: blur(2px);
}
.btn-ghost:hover { background: #fff; color: var(--pink-dark); }

.btn-sm { padding: 9px 18px; font-size: .82rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,250,249,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--pink-darker);
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(236,0,140,.25);
}
.brand span em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--pink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--pink-light); color: var(--pink-dark); }
.nav-links a.active { background: var(--pink); color: #fff; }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--pink-dark);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 20px rgba(0,0,0,.05);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--pink) 0%, #ff4fb0 55%, #ffa4d6 100%);
  color: #fff;
  overflow: hidden;
  padding: 90px 0 100px;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.hero::before { width: 420px; height: 420px; top: -180px; right: -120px; }
.hero::after { width: 260px; height: 260px; bottom: -140px; left: -60px; background: rgba(255,255,255,.08); }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 999px;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.2;
  margin-bottom: 18px;
}
.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.92);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 1.6rem; font-family: 'Playfair Display', serif; }
.hero-stats div span { font-size: .82rem; color: rgba(255,255,255,.85); }

.hero-media {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(140,0,80,.35);
  border: 6px solid rgba(255,255,255,.35);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 420px; margin: 0 auto; }
}

/* ---------- Category buttons ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cat-card {
  position: relative;
  border-radius: var(--radius);
  padding: 34px 26px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cat-card:hover {
  transform: translateY(-6px);
  border-color: var(--pink);
  box-shadow: 0 20px 40px rgba(236,0,140,.18);
}
.cat-icon {
  width: 68px; height: 68px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--pink-light);
  font-size: 1.8rem;
}
.cat-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.cat-card p { color: var(--ink-soft); font-size: .9rem; margin-bottom: 20px; }

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

/* ---------- About / features ---------- */
.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-badge {
  position: absolute;
  bottom: 18px; left: 18px;
  background: rgba(255,255,255,.92);
  padding: 12px 18px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.1);
}
.about-badge strong { display: block; color: var(--pink-dark); font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.1rem; }
.about-badge span { font-size: .78rem; color: var(--ink-soft); }

.feature-list { display: grid; gap: 20px; margin-top: 28px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--pink-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--pink-dark);
  font-weight: 700;
}
.feature-item h4 { margin-bottom: 4px; font-size: 1rem; }
.feature-item p { margin: 0; color: var(--ink-soft); font-size: .9rem; }

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

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--pink-darker), var(--pink));
  color: #fff;
  border-radius: 24px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { font-family: 'Playfair Display', serif; font-style: italic; margin-bottom: 6px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.88); }

/* ---------- Products page ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: .9rem;
  cursor: pointer;
  transition: all .15s ease;
}
.filter-btn:hover { border-color: var(--pink); color: var(--pink-dark); }
.filter-btn.active { background: var(--pink); border-color: var(--pink); color: #fff; }

.search-bar { max-width: 420px; margin: 0 auto 30px; }
.search-bar input {
  width: 100%;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  font-family: 'Prompt', sans-serif;
  font-size: .92rem;
  background: #fff;
}
.search-bar input:focus { outline: none; border-color: var(--pink); }

.load-more-wrap { text-align: center; margin-top: 36px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
@media (max-width: 1080px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 20px 36px rgba(236,0,140,.16); }
.product-thumb {
  aspect-ratio: 1/1;
  background: var(--pink-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .3s ease; }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--pink);
  color: #fff;
  font-size: .68rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  letter-spacing: .04em;
}
.product-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-name { font-size: .95rem; font-weight: 500; min-height: 2.8em; }
.product-desc { font-size: .8rem; color: var(--ink-soft); flex: 1; }
.product-price { font-size: 1.15rem; font-weight: 700; color: var(--pink-dark); margin-top: 6px; }
.product-price small { font-size: .7rem; font-weight: 500; color: var(--ink-soft); margin-left: 4px; }

.product-status {
  display: none;
  text-align: center;
  color: var(--ink-soft);
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 40px 20px;
  font-size: .95rem;
}

.product-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: .88rem;
  margin-top: 46px;
}

/* ---------- Reviews page ---------- */
.review-grid {
  columns: 4 220px;
  column-gap: 20px;
}
.review-grid figure {
  margin: 0 0 20px;
  break-inside: avoid;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: #fff;
}
.review-grid img { width: 100%; display: block; }

.review-strip {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.review-stat {
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 30px;
  box-shadow: var(--shadow);
}
.review-stat strong { display: block; font-size: 1.8rem; font-family: 'Playfair Display', serif; color: var(--pink-dark); }
.review-stat span { font-size: .82rem; color: var(--ink-soft); }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.contact-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 34px 28px;
  text-align: center;
}
.contact-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: #fff;
}
.contact-card h3 { margin-bottom: 6px; }
.contact-card p { color: var(--ink-soft); font-size: .9rem; margin-bottom: 20px; }
.qr-box {
  width: 168px;
  margin: 0 auto 20px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.qr-box img { border-radius: 6px; }

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

.contact-hours {
  margin-top: 50px;
  background: var(--pink-light);
  border-radius: var(--radius);
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}
.contact-hours h3 { color: var(--pink-darker); }
.contact-hours ul { list-style: none; padding: 0; margin: 0; }
.contact-hours li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: .92rem; }
.contact-hours li:last-child { border-bottom: none; }

@media (max-width: 700px) { .contact-hours { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--pink-darker), var(--pink) 70%);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.page-hero .eyebrow { color: #ffd9ee; }
.page-hero h1 { font-family: 'Playfair Display', serif; font-style: italic; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: #2a0f1e;
  color: rgba(255,255,255,.75);
  padding: 54px 0 26px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 50%; }
.footer-brand span { color: #fff; font-weight: 700; font-size: 1.1rem; }
.site-footer h4 { color: #fff; font-size: .92rem; letter-spacing: .04em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .88rem; }
.site-footer a:hover { color: #ff9fd2; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 22px;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Product detail page ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: .85rem;
  color: var(--ink-soft);
  margin-bottom: 30px;
}
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--pink-dark); }
.breadcrumb span.sep { color: var(--border); }
.breadcrumb span.current { color: var(--pink-dark); font-weight: 500; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; gap: 32px; } }

.detail-gallery-main {
  aspect-ratio: 1/1;
  background: var(--pink-lighter);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.detail-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 26px;
  cursor: zoom-in;
}
.detail-thumbs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.detail-thumb {
  width: 74px;
  height: 74px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: var(--pink-lighter);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: border-color .15s ease, transform .15s ease;
  flex: none;
}
.detail-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.detail-thumb:hover { transform: translateY(-2px); }
.detail-thumb.active { border-color: var(--pink); }

.detail-info .product-tag { position: static; display: inline-block; margin-bottom: 14px; }
.detail-info h1 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.4;
}
.detail-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pink-dark);
  margin-bottom: 24px;
}
.detail-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.detail-desc {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.detail-desc h3 { font-size: 1rem; margin-bottom: 12px; }
.detail-desc p {
  white-space: pre-line;
  color: var(--ink-soft);
  font-size: .94rem;
  line-height: 1.9;
}

.related-section { margin-top: 70px; }
.related-section h2 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.4rem;
  margin-bottom: 24px;
  text-align: center;
}

.detail-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20,4,14,.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 30px;
}
.detail-lightbox.open { display: flex; }
.detail-lightbox img { max-width: min(92vw, 640px); max-height: 88vh; border-radius: 10px; }
.detail-lightbox-close {
  position: absolute;
  top: 24px; right: 30px;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}
.detail-lightbox-close:hover { background: rgba(255,255,255,.3); }

.product-card-link { display: block; height: 100%; }
.product-card-link .product-card { height: 100%; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20,4,14,.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(90vw, 560px); max-height: 86vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close {
  position: absolute;
  top: 24px; right: 30px;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }
