:root{
  --bg: #333;
  --surface: #222;
  --text: #fefefe;
  --muted: rgba(255,255,255,.70);
  --line: rgba(31,31,31,.12);
  --brand: #DA84A1;
  --muted-brand: rgba(218, 132, 161, .8);

  --radius: 18px;
  --shadow: 0 12px 28px rgba(0,0,0,.08);
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.45;
}

button {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}



img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration: underline; }

.container{
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:1rem; top:1rem;
  width:auto; height:auto;
  padding:.75rem 1rem;
  background:#fff;
  border-radius:12px;
  z-index:9999;
}

.sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

/* NAV */
.site-header{ 
  background: linear-gradient(#e9e3d8, var(--bg)); 
  padding-top: 82px; /* adjust if your nav height changes */
}


/* HERO */
.hero{
  position: relative;
  margin-top: 0;
}
.hero__img{
  width: 100%;
  height: clamp(260px, 40vw, 460px);
  object-fit: cover;
}
.hero__overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.6);
}
.hero__content{
  position:absolute;
  inset: 0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 2.5rem 0;
  color: #fff;
}

.hero__content > img {
  max-height: 70%;
}
.hero__title{
  /*font-family: "Cormorant Garamond", serif;*/
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.05;
  margin: 0 0 .6rem;
  letter-spacing: .2px;
}
.hero__subtitle{
  margin:0;
  max-width: 40rem;
  font-size: clamp(.95rem, 1.4vw, 1.05rem);
  opacity: .95;
}

/* SECTIONS */
.section{ padding: 2.2rem 0; }
.section__head{ padding: .5rem 0 1.2rem; }
.section__title{
  /*font-family: "Cormorant Garamond", serif;*/
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
  color: var(--brand);
}
.section__subtitle{
  margin: .35rem 0 0;
  color: var(--text);
}

p {
  color: var(--muted);
}

/* FILTERS */
.filters{
  display:flex;
  gap: .6rem;
  flex-wrap: wrap;
  padding: .2rem 0 1.1rem;
}
.filter{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.55);
  color: rgba(31,31,31,.78);
  padding: .5rem .8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  cursor:pointer;
}
.filter:hover{ color: var(--text); }
.filter.is-active{
  background: rgba(61,107,79,.10);
  border-color: rgba(61,107,79,.35);
  color: var(--text);
}
.filter__count{
  margin-left:.35rem;
  opacity:.75;
  font-weight: 600;
}

/* GRID */
.grid{
  display:grid;
  grid-template-columns: 1fr 1fr; /* mobile-first */
  gap: 1.2rem;
}
.card{
  background: transparent;
  display: flex;
  flex-direction: column;
}
.card__imgWrap{
  border-radius: var(--radius);
  overflow:hidden;
  background: #e9e3d8;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}
.card__img{
  width:100%;
  height: auto;
  object-fit: cover;
  transform: scale(1);
  transition: transform .35s ease;
  border-radius: var(--radius);
}
.card__imgWrap:hover .card__img{
  transform: scale(1.04);
}

.card__meta{
  flex-grow: 1;
  display:flex;
  flex-direction: column;
  align-items:flex-start;
  justify-content:start;
  gap: .75rem;
  padding: .85rem .2rem 0;
}
.card__name{
  /*font-family: "Cormorant Garamond", serif;*/
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0;
}
.card__desc{
  margin: .2rem 0 0;
  color: var(--muted);
  font-size: .95rem;
  max-width: 38ch;
  flex-grow: 1;
}
.card__price{
  /*font-family: "Cormorant Garamond", serif;*/
  /*font-family: "Playfair Display", serif;*/
  font-family: "Roboto", serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin-top: .15rem;
  white-space: nowrap;
  width: 100%;
  text-align: right;
}
.card__actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  padding: .6rem .2rem 0;
}

.btn{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.6);
  color: var(--text);
  padding: .75rem 1rem;
  border-radius: 14px;
  font-weight: 600;
  cursor:pointer;
}
.btn--pill{ border-radius: 999px; }
.btn--primary{
  background: var(--brand);
  border-color: rgba(255,255,255,.05);
  color: var(--bg);
}
.btn--full{ width: 100%; }
.badge{
  margin-left: .4rem;
  font-size: .8rem;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
  padding: .15rem .45rem;
  border-radius: 999px;
}

.icon-btn{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.6);
  border-radius: 12px;
  width: 38px; height: 38px;
  display:grid;
  place-items:center;
  cursor:pointer;
}

.add-to-cart {
  font-size: 20px;
}

.muted{ color: var(--muted); }
/*.prose{ max-width: 65ch; }*/
.prose.small{ font-size: .95rem; }
.footer{ padding: 2rem 0; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }

/* PRODUCT DETAIL */
.crumbs{ padding: .75rem 0 1.25rem; color: var(--muted); }
.product{
  display:grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.product__media{
  border-radius: var(--radius);
  overflow:hidden;
  background: #e9e3d8;
}
.product__img{
  width:100%;
  height: min(460px, 70vw);
  object-fit: cover;
}
.product__title{
  /*font-family: "Cormorant Garamond", serif;*/
  font-family: "Playfair Display", serif;
  font-size: 2.25rem;
  margin: 0;
  font-weight: 600;
}
.product__desc{ margin: .35rem 0 0; }
.product__price{
  /*font-family: "Cormorant Garamond", serif;*/
  /*font-family: "Playfair Display", serif;*/
  font-family: "Roboto", serif;
  font-size: 1.4rem;
  margin: 1rem 0;
}

/* DRAWER */
.overlay{
  position: fixed;
  inset:0;
  background: rgba(0,0,0,.45);
  z-index: 80;
}

.drawer{
  position: fixed;
  top:0;
  right:0;
  height: 100%;
  width: 100%;            /* mobile: full screen */
  background: var(--surface);
  z-index: 90;
  transform: translateX(100%);
  transition: transform .28s ease;
  display:flex;
  flex-direction:column;
  border-left: 1px solid var(--line);
}
.drawer.is-open{ transform: translateX(0); }

.drawer__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  padding: 1rem 1rem;
  border-bottom: 1px solid var(--line);
  margin-top: 82px;
}
.drawer__title{
  margin:0;
  /*font-family: "Cormorant Garamond", serif;*/
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  font-weight: 600;
}
.drawer__body{
  padding: 1rem;
  overflow:auto;
  flex:1;
}
.drawer__foot{
  padding: 1rem;
  border-top: 1px solid var(--line);
}
.totals{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: .9rem;
}

/* cart items */
.cart-item{
  display:grid;
  grid-template-columns: 76px 1fr auto;
  gap: .85rem;
  padding: .85rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.1);
  border-radius: 14px;
  margin-bottom: .85rem;
}
.cart-item__img{
  width: 76px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
}
.cart-item__name{
  margin:0;
  /*font-family: "Cormorant Garamond", serif;*/
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 1.1rem;
}
.cart-item__price{ margin:.1rem 0 .4rem; color: var(--muted); }
.qty{
  display:flex; align-items:center; gap:.5rem;
}
.qty button{
  width: 34px; height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.65);
  cursor:pointer;
}
.trash{
  border: none;
  background: transparent;
  cursor:pointer;
  font-size: 1.1rem;
  opacity: .7;
}
.trash:hover{ opacity: 1; }

/* TOAST */
.toast{
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  display:flex;
  justify-content:center;
  pointer-events:none;
}
.toast__inner{
  pointer-events:none;
  width: 100%;
  max-width: 520px;
  border-radius: 999px;
  background: rgba(31,31,31,.88);
  color: #fff;
  padding: .75rem 1rem;
  display:flex;
  align-items:center;
  gap: .65rem;
  box-shadow: var(--shadow);
  transform: translateY(10px);
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease;
}
.toast.is-show .toast__inner{
  opacity: 1;
  transform: translateY(0);
}
.toast__icon{
  width: 28px; height: 28px;
  border-radius: 999px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.22);
  font-weight: 800;
}

.hidden {
  display: none !important;
}

.field > input {
  padding: 20px;
  border-radius: 5px;
  border: solid #333 1px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.field > select, .field > textarea {
  width: 100%;
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.field > textarea {
  resize: vertical;
}

.field > span {
  width: 100%;
  display: block;
}

.field {
  display: block;
}

/* DESKTOP ENHANCEMENTS */
@media (min-width: 760px){
  .grid{ grid-template-columns: repeat(3, 1fr); }
  .card__img{ height: 300px; }
  .product{ grid-template-columns: 1.15fr .85fr; align-items:start; }
  .toast{ left: 1.25rem; right: auto; bottom: 1.25rem; }
  .toast__inner{ width: auto; }
  .drawer{ width: 420px; } /* desktop drawer */
}

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