/* ================================================================
   Maison Kiki — boxesparty-inspired clean luxury
   ================================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #111;
  --white: #fff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-400: #999;
  --gray-600: #666;
  --gold: #c8a46c;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Announcement Bar ── */
.announcement {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 7px 16px;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .3px;
}

/* ── Navigation ── */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--black);
}
.nav-cart {
  background: none; border: none; padding: 4px;
  display: flex; align-items: center; position: relative;
  color: var(--black);
}
.nav-cart-count {
  position: absolute; top: -3px; right: -7px;
  background: var(--black); color: var(--white);
  font-size: 10px; font-weight: 600;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.snipcart-items-count:empty { display: none; }

/* ── Product Grid ── */
.product {
  max-width: var(--max); margin: 0 auto;
}
@media (min-width: 768px) {
  .product {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Gallery ── */
.product-gallery {
  position: relative;
  background: var(--gray-50);
}
@media (min-width: 768px) {
  .product-gallery {
    position: sticky; top: 53px;
    max-height: calc(100vh - 53px);
    overflow: hidden;
  }
}
.gallery-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  cursor: zoom-in;
}
.gallery-dots {
  position: absolute; bottom: 14px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #bbb;
  border: none; padding: 0;
  transition: all .2s;
}
.dot.active { background: var(--black); width: 24px; border-radius: 4px; }

/* ── Product Info ── */
.product-info {
  padding: 28px 20px 48px;
}
@media (min-width: 768px) {
  .product-info {
    padding: 40px 40px 40px 52px;
    max-width: 540px;
  }
}

.info-vendor {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.info-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4.5vw, 36px);
  font-weight: 600;
  color: var(--black);
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -.3px;
}

.info-price {
  font-size: 21px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 4px;
}

.info-installment {
  font-size: 12.5px;
  color: var(--gray-600);
  margin-bottom: 28px;
}

/* ── Color Swatches ── */
.info-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 10px;
}
.info-label strong { font-weight: 600; }

.swatches {
  display: flex; gap: 12px;
  margin-bottom: 24px;
}

.swatch {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-200);
  cursor: pointer; padding: 0;
  transition: all .15s;
}
.swatch:hover { border-color: var(--gray-400); }
.swatch.selected {
  border: 2px solid var(--black);
  box-shadow: 0 0 0 2px var(--white) inset;
}
.swatch-gold   { background: linear-gradient(135deg, #d4af69, #c8a46c, #b8944e); }
.swatch-silver { background: linear-gradient(135deg, #d4d4d4, #c0c0c0, #a8a8a8); }

/* ── Quantity ── */
.buy-row { margin-bottom: 12px; }

.qty-box {
  display: inline-flex; align-items: center;
  border: 1px solid var(--gray-200);
  border-radius: 5px;
}
.qty-btn {
  width: 42px; height: 46px;
  background: none; border: none;
  font-size: 18px; color: var(--black);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.qty-btn:hover { background: var(--gray-100); }
.qty-val {
  width: 44px; text-align: center;
  font-size: 15px; font-weight: 600;
  border-left: 1px solid var(--gray-200);
  border-right: 1px solid var(--gray-200);
  line-height: 46px;
  user-select: none;
}

/* ── Add to Cart ── */
.btn-atc {
  display: block; width: 100%;
  padding: 15px 24px;
  background: var(--black);
  color: var(--white);
  border: none; border-radius: 5px;
  font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
}
.btn-atc:hover { background: #2a2a2a; }

/* ── Buy It Now ── */
.btn-buy {
  display: block; width: 100%;
  margin-top: 10px; margin-bottom: 32px;
  background: none; border: none;
  font-size: 13px; color: var(--gray-600);
  text-decoration: underline;
  cursor: pointer; padding: 4px;
}
.btn-buy:hover { color: var(--black); }

/* ── Feature Icons ── */
.features {
  display: flex; gap: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 22px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 8px;
}
.features::-webkit-scrollbar { display: none; }

.feat {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; flex-shrink: 0; min-width: 64px; text-align: center;
}
.feat span:first-child { font-size: 20px; line-height: 1; }
.feat span:last-child {
  font-size: 9.5px; color: var(--gray-600);
  line-height: 1.35;
}

/* ── Accordion ── */
.acc-h {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
  background: none; border: none;
  border-bottom: 1px solid var(--gray-200);
  font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--black);
  text-transform: uppercase;
}
.acc-h:hover { color: var(--gray-600); }
.acc-arw {
  font-size: 18px; color: var(--gray-400);
  transition: transform .25s;
}
.acc-h.open .acc-arw { transform: rotate(45deg); }

.acc-b {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.acc-b.open { max-height: 300px; padding: 14px 0 8px; }
.acc-b p {
  font-size: 13px; color: var(--gray-600); line-height: 1.7;
}

/* ── Related Products ── */
.related {
  padding: 56px 20px 64px;
  max-width: var(--max); margin: 0 auto;
}
.related-title {
  font-family: var(--serif);
  font-size: 24px; font-weight: 600;
  text-align: center;
  margin-bottom: 28px;
}
.related-grid {
  display: flex; gap: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.related-grid::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
  .related-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    overflow: visible;
  }
}

.rcard {
  flex-shrink: 0; width: 155px;
  display: block;
}
@media (min-width: 768px) { .rcard { width: auto; } }
.rcard img {
  width: 100%; aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
  background: var(--gray-50);
}
.rcard-name {
  display: block;
  font-size: 13px; font-weight: 500;
  margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rcard-price {
  font-size: 12.5px; color: var(--gray-600);
}

/* ── Footer ── */
.footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 48px 20px 28px;
  text-align: center;
}
.footer-top { margin-bottom: 36px; }
.footer-top h3 {
  font-family: var(--serif);
  font-size: 20px; font-weight: 600;
  margin-bottom: 6px;
}
.footer-top p {
  font-size: 13px; color: var(--gray-600);
  margin-bottom: 16px;
}
.footer-form {
  display: flex; max-width: 400px;
  margin: 0 auto;
}
.footer-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-right: none;
  border-radius: 5px 0 0 5px;
  font-size: 13px; font-family: var(--sans);
  outline: none;
}
.footer-form input:focus { border-color: var(--black); }
.footer-form button {
  padding: 12px 20px;
  background: var(--black); color: var(--white);
  border: none; border-radius: 0 5px 5px 0;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  white-space: nowrap;
}
.footer-form button:hover { background: #2a2a2a; }

.footer-links {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; text-align: left;
  margin-bottom: 32px;
}
@media (min-width: 768px) {
  .footer-links { grid-template-columns: repeat(4, 1fr); }
}
.fcol h4 {
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.fcol a {
  display: block;
  font-size: 13px; color: var(--gray-600);
  padding: 3px 0;
  transition: color .15s;
}
.fcol a:hover { color: var(--black); }

.footer-copy {
  font-size: 11.5px; color: var(--gray-400);
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.94);
  align-items: center; justify-content: center;
}
.lightbox.on { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 92vh;
  object-fit: contain; border-radius: 4px;
}
.lightbox-close {
  position: absolute; top: 14px; right: 18px;
  color: #fff; font-size: 28px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: none; cursor: pointer;
}

/* ── Toast ── */
.toast {
  position: fixed; top: 60px; left: 50%;
  transform: translateX(-50%) translateY(-120px);
  background: var(--black); color: var(--white);
  padding: 12px 24px; border-radius: 25px;
  font-size: 13px; font-weight: 500;
  z-index: 9999;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }
