@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --rt: #7a3347;
  --rm: #e8c5cc;
  --rl: #f5e6e8;
  --rd: #c47a8a;
  --sg: #e8ede8;
  --sd: #5a7a5a;
  --sa: #f7f3ed;
  --sc: #c4a882;
  --ink: #2a2220;
  --il: #6b5e5a;
  --cr: #fdfaf7;
  --wh: #ffffff;
  --fd: 'Cormorant Garamond', Georgia, serif;
  --fb: 'DM Sans', system-ui, sans-serif;
  --r: 12px;
  --rs: 8px;
}

body {
  font-family: var(--fb);
  background: var(--cr);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

#app {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* NAV */
.nav {
  background: var(--wh);
  border-bottom: 1px solid var(--rm);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  gap: 8px;
  flex-wrap: wrap;
}

.logo { font-family: var(--fd); font-size: 20px; font-weight: 600; color: var(--rt); cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.logo span { color: var(--sc); }
.nav-tabs { display: flex; background: var(--sa); border-radius: 30px; padding: 3px; gap: 0; overflow-x: auto; max-width: 100%; }
.nt { padding: 5px 12px; border-radius: 30px; border: none; font-family: var(--fb); font-size: 11px; font-weight: 500; cursor: pointer; color: var(--il); background: transparent; transition: all .2s; white-space: nowrap; }
.nt.active { background: var(--wh); color: var(--rt); }
.cart-btn { background: var(--rt); color: white; border: none; padding: 7px 12px; border-radius: 30px; font-family: var(--fb); font-size: 12px; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 6px; flex-shrink: 0; transition: background .2s; }
.cart-btn:hover { background: #5e2438; }
.cc { background: var(--rm); color: var(--rt); border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; }

/* VIEWS */
.view { display: none; }
.view.active { display: block; }

/* CAROUSEL */
.cw { position: relative; overflow: hidden; background: var(--sa); border-bottom: 1px solid var(--rm); }
.ct { display: flex; transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.cs { min-width: 100%; padding: 1.5rem 1rem; display: flex; align-items: center; gap: 1rem; }
.cs-txt { flex: 1; min-width: 0; }
.cs-tag { display: inline-block; background: var(--wh); border: 1px solid var(--rm); color: var(--rt); padding: 3px 10px; border-radius: 20px; font-size: 10px; font-weight: 500; margin-bottom: .5rem; }
.cs-h { font-family: var(--fd); font-size: clamp(22px, 5vw, 34px); font-weight: 500; color: var(--ink); line-height: 1.15; margin-bottom: .4rem; }
.cs-h em { color: var(--rt); font-style: italic; }
.cs-p { font-size: clamp(11px, 2.5vw, 13px); color: var(--il); line-height: 1.5; margin-bottom: .9rem; }
.cs-btn { background: var(--rt); color: white; border: none; padding: 8px 18px; border-radius: 30px; font-family: var(--fb); font-size: 12px; font-weight: 500; cursor: pointer; transition: background .2s; }
.cs-btn:hover { background: #5e2438; }
.cs-img { width: clamp(90px, 22vw, 150px); height: clamp(90px, 22vw, 150px); border-radius: var(--r); display: flex; align-items: center; justify-content: center; font-size: clamp(38px, 10vw, 64px); flex-shrink: 0; }
.cs-img.hb { background: #fdf0f2; }
.cs-img.sb { background: #e8ede8; }
.ca { position: absolute; top: 50%; transform: translateY(-50%); background: var(--wh); border: 1px solid var(--rm); color: var(--rt); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; z-index: 10; transition: all .2s; }
.ca:hover { background: var(--rt); color: white; }
.cp { left: 8px; }
.cn { right: 8px; }
.cd { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rm); cursor: pointer; transition: all .2s; }
.dot.active { background: var(--rt); width: 18px; border-radius: 3px; }

/* SECTION */
.sec { padding: 1rem; }
.sh { display: flex; align-items: baseline; gap: 8px; margin-bottom: .8rem; flex-wrap: wrap; }
.st { font-family: var(--fd); font-size: clamp(18px, 4vw, 24px); font-weight: 500; color: var(--ink); }
.ss { font-size: 11px; color: var(--il); }
.sdv { flex: 1; height: 1px; background: var(--rm); opacity: .5; min-width: 20px; }
.div-h { height: 1px; background: var(--rm); margin: 0 1rem; opacity: .4; }

/* FILTERS */
.flt { display: flex; gap: 6px; margin-bottom: .9rem; flex-wrap: wrap; }
.fp { padding: 5px 12px; border-radius: 20px; border: 1px solid var(--rm); background: var(--wh); font-size: 11px; font-weight: 500; cursor: pointer; color: var(--il); transition: all .2s; touch-action: manipulation; }
.fp.active { background: var(--rt); color: white; border-color: var(--rt); }
.fp:hover:not(.active) { border-color: var(--rd); color: var(--rt); }

/* PRODUCT GRID */
.pg { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
@media (min-width: 600px) { .pg { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; } }
@media (min-width: 900px) { .pg { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; } }

.pc { background: var(--wh); border-radius: var(--r); border: 1px solid #f0e4e7; overflow: hidden; transition: transform .2s; cursor: pointer; }
.pc:hover { transform: translateY(-2px); }
.pi { width: 100%; height: clamp(100px, 25vw, 130px); display: flex; align-items: center; justify-content: center; font-size: clamp(34px, 9vw, 44px); position: relative; }
.pi.hb { background: #fdf0f2; }
.pi.sb { background: #e8ede8; }
.bdg { position: absolute; top: 6px; right: 6px; font-size: 9px; font-weight: 600; padding: 2px 6px; border-radius: 10px; }
.bn { background: var(--rt); color: white; }
.bs { background: #d46b2a; color: white; }
.bh { background: var(--sd); color: white; }
.pb { padding: 9px; }
.pn { font-size: 12px; font-weight: 500; color: var(--ink); margin-bottom: 2px; line-height: 1.3; }
.pdesc { font-size: 10px; color: var(--il); margin-bottom: 7px; line-height: 1.3; }
.pf { display: flex; align-items: center; justify-content: space-between; }
.pr { font-family: var(--fd); font-size: 15px; font-weight: 600; color: var(--rt); }
.po { font-size: 10px; color: var(--il); text-decoration: line-through; margin-left: 3px; }
.ab { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--rm); background: var(--wh); color: var(--rt); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; touch-action: manipulation; }
.ab:hover, .ab.added { background: var(--rt); color: white; border-color: var(--rt); }

/* PRODUCT DETAIL */
.pdw { padding: 1rem; }
.bk { background: none; border: 1px solid var(--rm); color: var(--il); padding: 6px 12px; border-radius: 20px; font-family: var(--fb); font-size: 11px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; margin-bottom: 1rem; transition: all .2s; }
.bk:hover { border-color: var(--rd); color: var(--rt); }
.pd-g { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 520px) { .pd-g { grid-template-columns: 1fr 1fr; } }
.pd-main { height: clamp(200px, 45vw, 280px); border-radius: var(--r); display: flex; align-items: center; justify-content: center; font-size: clamp(70px, 18vw, 100px); }
.pd-main.hb { background: #fdf0f2; }
.pd-main.sb { background: #e8ede8; }
.pd-thumbs { display: flex; gap: 7px; margin-top: 8px; }
.thmb { width: 48px; height: 48px; border-radius: var(--rs); display: flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; border: 2px solid transparent; transition: border .2s; }
.thmb.hb { background: #fdf0f2; }
.thmb.sb { background: #e8ede8; }
.thmb.sel { border-color: var(--rt); }
.pd-cat { font-size: 10px; font-weight: 500; color: var(--rd); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .3rem; }
.pd-name { font-family: var(--fd); font-size: clamp(20px, 5vw, 26px); font-weight: 500; color: var(--ink); line-height: 1.2; margin-bottom: .4rem; }
.pd-stars { display: flex; align-items: center; gap: 5px; margin-bottom: .6rem; }
.stars { color: #e8a838; font-size: 13px; letter-spacing: 1px; }
.rc { font-size: 11px; color: var(--il); }
.pd-pr-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: .8rem; flex-wrap: wrap; }
.pd-price { font-family: var(--fd); font-size: clamp(22px, 5vw, 28px); font-weight: 600; color: var(--rt); }
.pd-old { font-size: 13px; color: var(--il); text-decoration: line-through; }
.pd-sv { background: #fff0e8; color: #a04010; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 10px; }
.pd-desc { font-size: 12px; color: var(--il); line-height: 1.7; margin-bottom: .8rem; }
.pd-feats { display: flex; flex-direction: column; gap: 5px; margin-bottom: 1rem; }
.pd-feat { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink); }
.fd { width: 5px; height: 5px; border-radius: 50%; background: var(--rd); flex-shrink: 0; }
.qty-row { display: flex; align-items: center; gap: 10px; margin-bottom: .9rem; }
.ql { font-size: 11px; font-weight: 500; color: var(--il); }
.qc { display: flex; align-items: center; gap: 8px; background: var(--sa); border-radius: 20px; padding: 4px 10px; }
.qb { background: none; border: none; color: var(--rt); font-size: 17px; cursor: pointer; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; touch-action: manipulation; }
.qn { font-size: 13px; font-weight: 500; min-width: 18px; text-align: center; }
.pd-acts { display: flex; gap: 8px; }
.atc { flex: 1; padding: 11px; background: var(--rt); color: white; border: none; border-radius: var(--r); font-family: var(--fb); font-size: 13px; font-weight: 500; cursor: pointer; transition: background .2s; }
.atc:hover { background: #5e2438; }
.wl { width: 44px; height: 44px; border: 1.5px solid var(--rm); border-radius: var(--r); background: var(--wh); color: var(--rt); font-size: 17px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.wl:hover { background: #fdf0f2; }
.pd-tabs { display: flex; border-bottom: 1px solid var(--rm); margin-top: 1.2rem; overflow-x: auto; }
.ptab { padding: 7px 12px; border: none; background: none; font-family: var(--fb); font-size: 11px; font-weight: 500; cursor: pointer; color: var(--il); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: all .2s; }
.ptab.active { color: var(--rt); border-bottom-color: var(--rt); }
.ptc { display: none; font-size: 12px; color: var(--il); line-height: 1.7; padding-top: .8rem; }
.ptc.active { display: block; }
.rel-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: .9rem; }
@media (min-width: 520px) { .rel-g { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* CART */
.cart-p { padding: 1rem; }
.cmt { text-align: center; padding: 2rem 1rem; color: var(--il); }
.cemi { font-size: 40px; margin-bottom: .7rem; }
.cemh { font-family: var(--fd); font-size: 20px; font-weight: 500; color: var(--ink); margin-bottom: .3rem; }
.ci { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--rm); }
.ci-ic { width: 48px; height: 48px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.ci-ic.hb { background: #fdf0f2; }
.ci-ic.sb { background: #e8ede8; }
.ci-info { flex: 1; min-width: 0; }
.ci-nm { font-size: 12px; font-weight: 500; color: var(--ink); margin-bottom: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-pr { font-size: 11px; color: var(--il); }
.qcc { display: flex; align-items: center; gap: 6px; }
.qbtn { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--rm); background: var(--wh); color: var(--rt); font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; touch-action: manipulation; transition: all .15s; }
.qbtn:hover { background: var(--rt); color: white; border-color: var(--rt); }
.qnum { font-size: 12px; font-weight: 500; min-width: 14px; text-align: center; }
.rb { background: none; border: none; color: var(--il); cursor: pointer; font-size: 16px; padding: 3px; transition: color .15s; }
.rb:hover { color: #c02b2b; }
.cs-sum { margin-top: 1.2rem; background: var(--wh); border-radius: var(--r); border: 1px solid var(--rm); padding: 1rem 1.1rem; }
.sr { display: flex; justify-content: space-between; font-size: 12px; color: var(--il); margin-bottom: 6px; }
.sr.tot { font-size: 14px; font-weight: 600; color: var(--ink); border-top: 1px solid var(--rm); padding-top: 9px; margin-top: 2px; margin-bottom: 0; }
.sr.tot .v { color: var(--rt); font-family: var(--fd); font-size: 18px; }
.co-btn { width: 100%; margin-top: .8rem; padding: 12px; background: var(--rt); color: white; border: none; border-radius: var(--r); font-family: var(--fb); font-size: 13px; font-weight: 500; cursor: pointer; transition: background .2s; }
.co-btn:hover { background: #5e2438; }

/* CHECKOUT */
.cop { padding: 1rem; }
.co-g { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 720px) { .co-g { grid-template-columns: 1fr 1fr; } }
.ft { font-family: var(--fd); font-size: 18px; font-weight: 500; margin-bottom: .8rem; color: var(--ink); }
.fr { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 9px; }
.ff { margin-bottom: 9px; }
.fg { display: flex; flex-direction: column; gap: 3px; }
label { font-size: 10px; font-weight: 500; color: var(--il); letter-spacing: .03em; text-transform: uppercase; }
input, select { padding: 9px 10px; border: 1px solid var(--rm); border-radius: var(--rs); font-family: var(--fb); font-size: 13px; color: var(--ink); background: var(--wh); outline: none; width: 100%; transition: border .2s; }
input:focus, select:focus { border-color: var(--rd); }
.os { background: var(--wh); border-radius: var(--r); border: 1px solid var(--rm); padding: 1.1rem; }
.oi { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--rm); font-size: 11px; gap: 0.75rem; }
.oi:last-of-type { border-bottom: none; }
.po-btn { width: 100%; margin-top: 1.1rem; padding: 12px; background: var(--rt); color: white; border: none; border-radius: var(--r); font-family: var(--fb); font-size: 13px; font-weight: 500; cursor: pointer; transition: background .2s; }
.po-btn:hover { background: #5e2438; }

/* SUCCESS */
.suc { text-align: center; padding: 2.5rem 1rem; }
.suc-ic { width: 64px; height: 64px; background: #e8f5e8; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 1rem; color: var(--sd); }
.suc h2 { font-family: var(--fd); font-size: 26px; font-weight: 500; color: var(--ink); margin-bottom: .4rem; }
.suc p { font-size: 12px; color: var(--il); margin-bottom: 1.1rem; }
.cb { padding: 10px 24px; background: var(--rt); color: white; border: none; border-radius: var(--r); font-family: var(--fb); font-size: 13px; font-weight: 500; cursor: pointer; }

/* TOAST */
.toast { position: absolute; bottom: 14px; right: 14px; background: var(--ink); color: white; padding: 8px 14px; border-radius: var(--rs); font-size: 11px; font-weight: 500; z-index: 300; opacity: 0; transform: translateY(5px); transition: all .3s; pointer-events: none; max-width: 220px; }
.toast.show { opacity: 1; transform: translateY(0); }

/* Mobile-first enhancements */
@media (max-width: 760px) {
  .nav {
    justify-content: center;
    gap: 10px;
  }

  .logo {
    width: 100%;
    text-align: center;
  }

  .nav-tabs {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .cart-btn {
    margin-left: auto;
  }

  .cs {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1rem 2rem;
  }

  .ca {
    display: none;
  }

  .fr {
    grid-template-columns: 1fr;
  }
}
