/* ============================================================
   LittleRoots — Store / commerce styles (extends styles.css + shop.css)
   Uses tokens: --cream --sage --sage-deep --olive --brown --brown-deep
                --peach --mustard --ink --muted --line --glass
   ============================================================ */

/* ---------- Buttons ---------- */
.btn-primary,
.btn-ghost,
.btn-cart,
.btn-login {
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease, color .2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--sage-deep), var(--olive));
  color: #fff;
  padding: .8rem 1.6rem;
  font-size: .95rem;
  box-shadow: 0 10px 24px -12px rgba(90, 106, 72, .8);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(90,106,72,.85); color:#fff; }
.btn-ghost {
  background: var(--glass);
  color: var(--brown-deep);
  padding: .8rem 1.4rem;
  border: 1px solid var(--line);
  font-size: .95rem;
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(140,109,77,.4); }
.btn-ghost.active { background: var(--peach); border-color: var(--peach); color: #fff; }
.btn-block { width: 100%; }
.btn-cart {
  background: var(--brown-deep);
  color: #fff;
  padding: .6rem 1rem;
  font-size: .85rem;
  width: 100%;
  margin-top: .65rem;
}
.btn-cart:hover { background: var(--brown); transform: translateY(-1px); }
.btn-cart.is-loading { opacity: .6; pointer-events: none; }
.btn-login {
  background: var(--sage-deep);
  color: #fff;
  padding: .5rem 1.15rem;
  font-size: .85rem;
}
.btn-login:hover { background: var(--olive); color:#fff; transform: translateY(-1px); }

/* ---------- Store header (search + actions) ---------- */
.store-header {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.5rem);
  flex-wrap: wrap;
}
.header-search {
  position: relative;
  flex: 1 1 240px;
  max-width: 420px;
  order: 3;
}
.header-search input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: .6rem 1rem .6rem 2.3rem;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header-search input:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(138,154,117,.18); }
.hs-icon { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.1rem; font-style: normal; }
.site-nav { order: 2; }
.header-actions { display: flex; align-items: center; gap: .35rem; order: 4; margin-left: auto; }
.ha-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 1.15rem;
  color: var(--brown-deep);
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background .2s ease, transform .18s ease;
}
.ha-icon:hover { background: var(--glass); transform: translateY(-1px); }
.ha-badge {
  position: absolute; top: 4px; right: 2px;
  background: var(--peach); color: #fff;
  font-size: .62rem; font-weight: 600;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
}
.ha-account { position: relative; }
.ha-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--sage-deep); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .9rem;
}
.ha-menu {
  position: absolute; right: 0; top: calc(100% + .4rem);
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgba(60,52,44,.4);
  min-width: 190px; padding: .5rem;
  display: none; flex-direction: column; z-index: 60;
}
.ha-menu.open { display: flex; }
.ha-menu-head { padding: .5rem .7rem; font-size: .8rem; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: .3rem; }
.ha-menu a { padding: .55rem .7rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .9rem; }
.ha-menu a:hover { background: var(--glass); }
.ha-menu a.danger { color: #b3541e; }

/* ---------- Flash + toast ---------- */
.flash {
  width: min(100% - 2.5rem, 1180px);
  margin: 1rem auto 0;
  padding: .8rem 1.1rem;
  border-radius: 12px;
  font-size: .9rem;
  position: relative; z-index: 2;
  border: 1px solid transparent;
}
.flash-success { background: rgba(138,154,117,.16); border-color: rgba(90,106,72,.35); color: var(--olive); }
.flash-error   { background: rgba(224,154,120,.16); border-color: rgba(179,84,30,.35); color: #a2481a; }
.flash-info    { background: rgba(201,163,90,.14); border-color: rgba(201,163,90,.4); color: #8a6a2a; }

.lr-toasts { position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: .5rem; align-items: center; }
.lr-toast {
  background: var(--brown-deep); color: #fff;
  padding: .7rem 1.2rem; border-radius: 999px; font-size: .88rem;
  box-shadow: 0 12px 30px -12px rgba(60,52,44,.6);
  opacity: 0; transform: translateY(12px); transition: opacity .3s ease, transform .3s ease;
}
.lr-toast.show { opacity: 1; transform: translateY(0); }
.lr-toast-success { background: var(--olive); }
.lr-toast-error { background: #a2481a; }

/* ---------- Generic store page wrapper ---------- */
.store-page {
  position: relative; z-index: 1;
  width: min(100% - 2.5rem, 1180px);
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2.25rem) 0 clamp(3.5rem, 8vw, 5rem);
  animation: rise-in .8s cubic-bezier(.22,1,.36,1) .05s both;
}

/* ---------- Product variant / combo selector ---------- */
.pdx-options { margin: 1.25rem 0 1rem; }
.pdx-opt-head { font-weight: 700; color: var(--brown-deep, #3a2e1f); margin-bottom: .6rem; }
.pdx-opt-head .req { color: #d33; }
.pdx-opt-list { display: grid; gap: .6rem; }
.pdx-opt {
  display: flex; align-items: center; gap: .8rem;
  padding: .6rem .75rem; border: 1.5px solid var(--line, #e7e2d8);
  border-radius: 14px; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.pdx-opt:hover { border-color: var(--accent, #f4c94f); }
.pdx-opt.sel { border-color: var(--accent, #f4c94f); box-shadow: 0 0 0 3px rgba(244,201,79,.22); }
.pdx-opt input { accent-color: var(--accent, #f4c94f); width: 18px; height: 18px; flex: none; }
.pdx-opt-thumb { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; flex: none; background: #faf8f3; }
.pdx-opt-body { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.pdx-opt-name { font-weight: 700; color: var(--brown-deep, #3a2e1f); }
.pdx-opt-contents { font-size: .82rem; color: var(--muted, #7a7266); line-height: 1.35; }
.pdx-opt-price { font-weight: 700; color: var(--olive, #6b7a3a); }

/* ---------- Product-not-found page ---------- */
.pnf-search {
  display: flex;
  gap: .5rem;
  max-width: 34rem;
  margin: 0 auto clamp(1.75rem, 4vw, 2.5rem);
}
.pnf-search input {
  flex: 1;
  padding: .8rem 1.1rem;
  border: 1.5px solid var(--line, #e7e2d8);
  border-radius: 999px;
  font: inherit;
  background: #fff;
}
.pnf-search input:focus {
  outline: none;
  border-color: var(--accent, #f4c94f);
  box-shadow: 0 0 0 3px rgba(244, 201, 79, .25);
}
.pnf-search button {
  padding: .8rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent, #f4c94f);
  color: var(--brown-deep, #3a2e1f);
  font-weight: 700;
  cursor: pointer;
}
.pnf-search button:hover { filter: brightness(.96); }
.pnf-heading {
  text-align: center;
  font-family: var(--font-display);
  color: var(--brown-deep, #3a2e1f);
  margin: 0 0 1.25rem;
}

/* ---------- Content pages (Privacy, Returns, Terms, Shipping, About) ---------- */
.content-page .content-body {
  max-width: 46rem;
  margin: 0 auto;
  text-align: left;
}
.content-page .content-body.about-lead-wide { max-width: 52rem; }
.content-body h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--brown-deep);
  margin: 2rem 0 .75rem;
}
.content-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brown-deep);
  margin: 1.5rem 0 .6rem;
}
.content-body h2:first-child,
.content-body h3:first-child { margin-top: 0; }
.content-body ul,
.content-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
}
.content-body li { margin: 0 0 .5rem; line-height: 1.7; }
.content-body a {
  color: var(--olive, #6b7a3a);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.content-body a:hover { opacity: .8; }
.content-body blockquote {
  margin: 1.25rem 0;
  padding: .5rem 0 .5rem 1.1rem;
  border-left: 3px solid var(--line, #eee);
  color: var(--muted);
  font-style: italic;
}
.content-body strong { color: var(--brown-deep); font-weight: 700; }

/* ---------- Product card upgrades (heart, rating, links) ---------- */
.product-card { position: relative; display: flex; flex-direction: column; }
a.product-media { display: block; }
a.product-name { display: block; color: var(--brown-deep); text-decoration: none; }
a.product-name:hover { color: var(--olive); }
.product-body { display: flex; flex-direction: column; flex: 1; }
.wl-heart {
  position: absolute; top: .6rem; right: .6rem; z-index: 5;
  width: 34px; height: 34px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: rgba(255,252,247,.85); backdrop-filter: blur(4px);
  color: var(--muted); font-size: 1.1rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px -6px rgba(60,52,44,.4);
  transition: transform .18s ease, color .2s ease;
}
.wl-heart:hover { transform: scale(1.12); color: var(--peach); }
.wl-heart.active { color: #d9694a; }
.card-rating { display: flex; align-items: center; gap: .3rem; margin: .25rem 0; }
.card-rating .rc { font-size: .75rem; color: var(--muted); }
.stars { display: inline-flex; gap: 1px; color: var(--mustard); font-size: .85rem; line-height: 1; }
.stars .star { font-style: normal; }
.stars .star.empty { color: rgba(201,163,90,.32); }
.stars .star.half { position: relative; color: rgba(201,163,90,.32); }
.stars .star.half::before { content: "★"; position: absolute; left: 0; width: 50%; overflow: hidden; color: var(--mustard); }

/* ---------- Empty states ---------- */
.empty-state { text-align: center; padding: clamp(2.5rem,7vw,4.5rem) 1rem; position: relative; z-index: 1; }
.empty-state .empty-emoji { font-size: 3rem; margin-bottom: .5rem; }
.empty-state h2 { font-family: var(--font-display); color: var(--brown-deep); font-weight: 600; margin: .25rem 0 .35rem; }
.empty-state p { color: var(--muted); margin-bottom: 1.25rem; }
.empty-state.small { padding: 2rem 1rem; }

/* ---------- Auth pages ---------- */
.auth-wrap { position: relative; z-index: 1; width: min(100% - 2.5rem, 480px); margin: 0 auto; padding: clamp(2rem,6vw,4rem) 0; animation: rise-in .8s cubic-bezier(.22,1,.36,1) both; }
.auth-card { background: var(--cream-soft); border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.5rem,4vw,2.5rem); box-shadow: 0 26px 60px -30px rgba(60,52,44,.4); }
.auth-head { text-align: center; margin-bottom: 1.5rem; }
.auth-head h1 { font-family: var(--font-display); font-weight: 600; color: var(--brown-deep); font-size: clamp(1.4rem,4vw,1.9rem); margin: .35rem 0 .25rem; }
.auth-sub { color: var(--muted); font-size: .9rem; margin: 0; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-alt { text-align: center; margin-top: 1.25rem; font-size: .9rem; color: var(--muted); }
.auth-alt a { color: var(--olive); font-weight: 500; }

/* ---------- Form fields ---------- */
.fld { display: flex; flex-direction: column; gap: .35rem; }
.fld > span { font-size: .82rem; color: var(--brown-deep); font-weight: 500; }
.fld > span small { color: var(--muted); font-weight: 400; }
.fld input, .fld textarea, .fld select {
  border: 1px solid var(--line); background: var(--cream); border-radius: 12px;
  padding: .7rem .9rem; font-family: var(--font-body); font-size: .92rem; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.fld input:focus, .fld textarea:focus, .fld select:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(138,154,117,.16); }
.fld input:disabled { background: rgba(0,0,0,.03); color: var(--muted); }
.fld-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: clamp(1.25rem, 3vw, 2rem); align-items: start; position: relative; z-index: 1; }
.cart-items { display: flex; flex-direction: column; gap: .75rem; }
.cart-row { display: grid; grid-template-columns: 84px 1fr auto auto auto; gap: 1rem; align-items: center; background: var(--cream-soft); border: 1px solid var(--line); border-radius: 16px; padding: .8rem; }
.cart-thumb img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; }
.cart-name { font-family: var(--font-display); font-weight: 600; color: var(--brown-deep); text-decoration: none; display: block; }
.cart-meta { font-size: .78rem; color: var(--muted); margin: .15rem 0; }
.cart-price .now { font-weight: 600; color: var(--ink); }
.cart-price .was { text-decoration: line-through; color: var(--muted); font-size: .8rem; margin-left: .4rem; }
.cart-qty input { width: 62px; text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: .45rem; background: var(--cream); font-family: var(--font-body); }
.cart-line { font-weight: 600; color: var(--brown-deep); min-width: 70px; text-align: right; }
.cart-remove button { background: none; border: 0; color: var(--muted); font-size: 1rem; cursor: pointer; padding: .3rem; border-radius: 8px; }
.cart-remove button:hover { color: #a2481a; background: rgba(224,154,120,.14); }
.cart-actions-bar { display: flex; justify-content: space-between; align-items: center; margin-top: .5rem; }
.link-back { color: var(--olive); text-decoration: none; font-size: .9rem; }
.link-back:hover { text-decoration: underline; }
.link-danger { background: none; border: 0; color: #a2481a; cursor: pointer; font-size: .85rem; font-family: var(--font-body); }
.link-danger:hover { text-decoration: underline; }

.cart-summary, .checkout-summary { background: var(--cream-soft); border: 1px solid var(--line); border-radius: 20px; padding: 1.35rem; position: sticky; top: 1rem; }
.cart-summary h3, .checkout-summary h3 { font-family: var(--font-display); font-weight: 600; color: var(--brown-deep); margin: 0 0 1rem; }
.summary-lines { list-style: none; margin: 0 0 .5rem; padding: .75rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: .55rem; }
.summary-lines li { display: flex; justify-content: space-between; font-size: .9rem; color: var(--ink); }
.summary-lines li.is-discount { color: var(--olive); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--brown-deep); margin: .9rem 0 1.1rem; }
.summary-note { font-size: .72rem; color: var(--muted); text-align: center; margin: .75rem 0 0; }

.coupon-box { margin-bottom: 1rem; }
.coupon-input { display: flex; gap: .5rem; }
.coupon-input input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: .55rem .8rem; background: var(--cream); font-family: var(--font-body); text-transform: uppercase; }
.coupon-input button { border: 0; background: var(--brown-deep); color: #fff; border-radius: 10px; padding: 0 1rem; cursor: pointer; font-family: var(--font-body); }
.coupon-hint { font-size: .74rem; color: var(--muted); margin: .5rem 0 0; }
.coupon-applied { display: flex; justify-content: space-between; align-items: center; background: rgba(138,154,117,.14); border: 1px solid rgba(90,106,72,.3); border-radius: 10px; padding: .55rem .8rem; font-size: .85rem; }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: clamp(1.25rem,3vw,2rem); align-items: start; position: relative; z-index: 1; }
.checkout-main { display: flex; flex-direction: column; gap: 1.25rem; }
.co-card { background: var(--cream-soft); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.1rem,3vw,1.6rem); display: flex; flex-direction: column; gap: 1rem; }
.co-card h3 { font-family: var(--font-display); font-weight: 600; color: var(--brown-deep); margin: 0; }
.co-card h4 { color: var(--brown-deep); margin: .25rem 0 .35rem; }
.pay-options { display: flex; flex-direction: column; gap: .75rem; }
.pay-opt { display: flex; gap: .75rem; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.pay-opt:hover { border-color: var(--sage); }
.pay-opt input { margin-top: .2rem; accent-color: var(--sage-deep); }
.pay-body { display: flex; flex-direction: column; }
.pay-body strong { color: var(--brown-deep); }
.pay-body small { color: var(--muted); font-size: .8rem; }
.co-items { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .65rem; max-height: 320px; overflow-y: auto; }
.co-items li { display: grid; grid-template-columns: 44px 1fr auto; gap: .6rem; align-items: center; font-size: .85rem; }
.co-items img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.co-it-name em { color: var(--muted); font-style: normal; }
.co-it-price { font-weight: 600; color: var(--brown-deep); }

/* ---------- Order success + detail ---------- */
.order-done { text-align: center; padding: clamp(1.5rem,5vw,2.5rem) 1rem 1.5rem; position: relative; z-index: 1; }
.od-check { width: 68px; height: 68px; margin: 0 auto 1rem; border-radius: 50%; background: linear-gradient(135deg, var(--sage-deep), var(--olive)); color: #fff; font-size: 2rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 30px -12px rgba(90,106,72,.7); }
.order-done h1 { font-family: var(--font-display); font-weight: 600; color: var(--brown-deep); margin: 0 0 .35rem; }
.od-sub { color: var(--muted); margin: 0; }
.od-number { font-size: 1.05rem; margin: .75rem 0 .25rem; }
.od-pay { color: var(--muted); font-size: .9rem; max-width: 520px; margin: .35rem auto 0; }
.order-detail-card { background: var(--cream-soft); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.25rem,3vw,2rem); max-width: 760px; margin: 1.5rem auto 0; position: relative; z-index: 1; }
.odc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.25rem; }
.odc-cols h4 { color: var(--brown-deep); margin: 0 0 .4rem; }
.odc-cols p { font-size: .88rem; color: var(--ink); margin: 0; line-height: 1.6; }
.order-items-table { width: 100%; border-collapse: collapse; margin-top: .5rem; }
.order-items-table th, .order-items-table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); font-size: .88rem; }
.order-items-table .ta-r { text-align: right; }
.order-items-table tfoot td { border-bottom: 0; color: var(--muted); }
.order-items-table tfoot tr.grand td { color: var(--brown-deep); font-weight: 700; font-size: 1rem; }
.od-actions { display: flex; gap: .75rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }

.status-pill { display: inline-block; padding: .25rem .7rem; border-radius: 999px; font-size: .74rem; font-weight: 600; text-transform: capitalize; }
.status-pending { background: rgba(201,163,90,.2); color: #8a6a2a; }
.status-confirmed { background: rgba(30,136,229,.16); color: #1565c0; }
.status-packed, .status-shipped { background: rgba(90,106,72,.16); color: var(--olive); }
.status-delivered { background: rgba(46,125,50,.16); color: #2e7d32; }
.status-cancelled { background: rgba(179,84,30,.16); color: #a2481a; }
.status-return-requested { background: rgba(201,163,90,.22); color: #8a6a2a; }
.status-returned { background: rgba(90,90,90,.16); color: #444; }
.status-refunded { background: rgba(46,125,50,.16); color: #2e7d32; }

/* ---------- Returns & refund box (account order detail) ---------- */
.return-box { border: 1px solid #e7e2d6; border-radius: 12px; padding: 1rem 1.1rem; background: #faf8f2; }
.return-box.return-open { border-color: #e3cf9a; background: #fdf8ec; }
.return-box.return-returned, .return-box.return-expired { background: #f6f5f2; }
.return-box .return-lead { margin: 0 0 .5rem; }
.return-form { display: flex; flex-direction: column; gap: .6rem; margin-top: .5rem; }
.return-form textarea { width: 100%; border: 1px solid #ddd6c6; border-radius: 8px; padding: .55rem .7rem; font: inherit; resize: vertical; }
.return-form .btn-primary { align-self: flex-start; }
.oic-return { margin-top: .3rem; font-size: .76rem; font-weight: 600; color: #a2703a; }
.oic-return.muted { color: #8a8a8a; font-weight: 500; }

/* Auth: "keep me signed in" checkbox row */
.fld-check { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: #5a5145; cursor: pointer; margin: -.25rem 0 .25rem; }
.fld-check input { width: 16px; height: 16px; accent-color: #F4C94F; cursor: pointer; }
.fld-check span { user-select: none; }

/* ---------- Account ---------- */
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: clamp(1.25rem,3vw,2rem); align-items: start; position: relative; z-index: 1; }
.account-nav { display: flex; flex-direction: column; gap: .3rem; background: var(--cream-soft); border: 1px solid var(--line); border-radius: 18px; padding: .75rem; position: sticky; top: 1rem; }
.account-nav a { padding: .65rem .85rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .9rem; }
.account-nav a:hover { background: var(--glass); }
.account-nav a.active { background: var(--sage-deep); color: #fff; }
.account-nav a.danger { color: #a2481a; }
.account-body { display: flex; flex-direction: column; gap: 1.25rem; }
.account-body .co-card form { display: flex; flex-direction: column; gap: 1rem; }
.orders-list { display: flex; flex-direction: column; gap: .6rem; }
.order-item-card { display: flex; justify-content: space-between; align-items: center; background: var(--cream-soft); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1.1rem; text-decoration: none; transition: transform .18s ease, border-color .2s ease; }
.order-item-card:hover { transform: translateY(-1px); border-color: var(--sage); }
.oic-num { font-family: var(--font-display); font-weight: 600; color: var(--brown-deep); }
.oic-meta { font-size: .78rem; color: var(--muted); }
.oic-right { display: flex; align-items: center; gap: .9rem; }
.oic-total { font-weight: 600; color: var(--brown-deep); }
.order-head-row { display: flex; align-items: center; gap: .75rem; }
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: .9rem; }
.addr-card { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 1rem; background: var(--cream); }
.addr-card.is-default { border-color: var(--sage); box-shadow: 0 0 0 2px rgba(138,154,117,.18); }
.addr-card p { font-size: .84rem; color: var(--ink); margin: .35rem 0 .6rem; line-height: 1.55; }
.addr-tag { position: absolute; top: .6rem; right: .6rem; background: var(--sage-deep); color: #fff; font-size: .65rem; padding: .15rem .5rem; border-radius: 999px; }
.addr-actions { display: flex; gap: .75rem; }
.link-btn { background: none; border: 0; color: var(--olive); cursor: pointer; font-size: .82rem; font-family: var(--font-body); padding: 0; }
.link-btn:hover { text-decoration: underline; }

/* ---------- Product detail additions ---------- */
.pd-gallery-main { position: relative; }
.pd-heart { top: 1rem; right: 1rem; width: 40px; height: 40px; font-size: 1.25rem; }
.pd-rating { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--muted); font-size: .85rem; margin-bottom: .5rem; }
.pd-rating:hover { color: var(--olive); }
.pd-specs .in-stock { color: var(--olive); font-weight: 600; }
.pd-specs .oos { color: var(--mustard); }
.pd-buy { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin: 1.25rem 0; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--cream); }
.qty-stepper button { width: 40px; height: 44px; border: 0; background: none; font-size: 1.2rem; color: var(--brown-deep); cursor: pointer; }
.qty-stepper button:hover { background: var(--glass); }
.qty-stepper input { width: 46px; height: 44px; text-align: center; border: 0; background: none; font-family: var(--font-body); font-size: 1rem; -moz-appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd-add { flex: 1 1 auto; }
.pd-wish.active .wh { color: #d9694a; }
.pd-wish .wh { color: var(--peach); }
.pd-desc-block { margin-top: 1.5rem; }
.pd-desc-block h3 { font-family: var(--font-display); font-weight: 600; color: var(--brown-deep); margin: 0 0 .5rem; }

/* ---------- Reviews ---------- */
.reviews { margin-top: clamp(2.5rem,6vw,4rem); }
.reviews-grid { display: grid; grid-template-columns: 1fr 340px; gap: clamp(1.25rem,3vw,2rem); align-items: start; }
.reviews-list { display: flex; flex-direction: column; gap: 1rem; }
.no-reviews { color: var(--muted); }
.review-card { background: var(--cream-soft); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.15rem; }
.rv-top { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .35rem; }
.rv-name { font-weight: 600; color: var(--brown-deep); font-size: .9rem; }
.rv-date { color: var(--muted); font-size: .78rem; margin-left: auto; }
.rv-title { margin: .1rem 0 .3rem; color: var(--ink); }
.rv-body { color: var(--ink); font-size: .9rem; line-height: 1.6; margin: 0; }
.review-form-wrap { background: var(--cream-soft); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem; position: sticky; top: 1rem; }
.review-form-wrap h3 { font-family: var(--font-display); font-weight: 600; color: var(--brown-deep); margin: 0 0 1rem; }
.review-form { display: flex; flex-direction: column; gap: .85rem; }
.review-login a { color: var(--olive); font-weight: 500; }
.star-picker { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: .1rem; }
.star-picker input { display: none; }
.star-picker label { font-size: 1.7rem; color: rgba(201,163,90,.3); cursor: pointer; transition: color .15s ease; line-height: 1; }
.star-picker input:checked ~ label,
.star-picker label:hover,
.star-picker label:hover ~ label { color: var(--mustard); }

/* ---------- Home ---------- */
.home { position: relative; z-index: 1; width: min(100% - 2.5rem, 1180px); margin: 0 auto; padding: clamp(1rem,3vw,2rem) 0 clamp(3.5rem,8vw,5rem); }
.hero-store { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem,4vw,3rem); align-items: center; padding: clamp(1.5rem,5vw,3.5rem) 0; animation: rise-in .9s cubic-bezier(.22,1,.36,1) both; }
.hero-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem,6vw,3.4rem); line-height: 1.08; color: var(--brown-deep); margin: .5rem 0 1rem; }
.hero-title em { color: var(--sage-deep); font-style: italic; }
.hero-sub { color: var(--muted); font-size: clamp(.95rem,2vw,1.1rem); line-height: 1.65; max-width: 34ch; }
.hero-cta { display: flex; gap: .75rem; margin: 1.5rem 0 1.25rem; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 1.1rem; flex-wrap: wrap; color: var(--muted); font-size: .82rem; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(100%, 420px); filter: drop-shadow(0 30px 50px rgba(60,52,44,.22)); animation: float-soft 6s ease-in-out infinite; }
@keyframes float-soft { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.home-cats, .home-featured { margin-top: clamp(2rem,5vw,3.25rem); }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 1rem; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: .35rem; background: var(--cream-soft); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem 1rem; text-decoration: none; text-align: center; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.cat-tile:hover { transform: translateY(-3px); border-color: var(--sage); box-shadow: 0 16px 34px -20px rgba(60,52,44,.4); }
.cat-tile img { width: 66px; height: 66px; object-fit: cover; border-radius: 50%; }
.cat-tile-ico { font-size: 2.4rem; }
.cat-tile-name { font-family: var(--font-display); font-weight: 600; color: var(--brown-deep); font-size: .95rem; }
.cat-tile-count { font-size: .74rem; color: var(--muted); }

.home-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.25rem; margin-top: clamp(2.5rem,6vw,3.75rem); }
.band-item { text-align: center; padding: 1.5rem 1rem; background: var(--cream-soft); border: 1px solid var(--line); border-radius: 18px; }
.band-item .bi-emoji { font-size: 2rem; }
.band-item h3 { font-family: var(--font-display); font-weight: 600; color: var(--brown-deep); margin: .5rem 0 .35rem; }
.band-item p { color: var(--muted); font-size: .88rem; margin: 0; line-height: 1.55; }

/* ---------- Footer ---------- */
.store-footer { position: relative; z-index: 1; margin-top: auto; border-top: 1px solid var(--line); background: rgba(251,250,246,.6); backdrop-filter: blur(6px); }
.foot-grid { width: min(100% - 2.5rem, 1180px); margin: 0 auto; padding: clamp(2rem,5vw,3rem) 0 1.5rem; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 1.5rem; }
.foot-col { display: flex; flex-direction: column; gap: .5rem; }
.foot-col h4 { font-family: var(--font-display); font-weight: 600; color: var(--brown-deep); margin: 0 0 .4rem; font-size: 1rem; }
.foot-col a { color: var(--muted); text-decoration: none; font-size: .88rem; }
.foot-col a:hover { color: var(--olive); }
.foot-brand p { color: var(--muted); font-size: .88rem; line-height: 1.6; margin: .5rem 0 0; max-width: 30ch; }
.foot-base { border-top: 1px solid var(--line); text-align: center; padding: 1rem; color: var(--muted); font-size: .8rem; }

/* ---------- Shop toolbar ---------- */
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; position: relative; z-index: 1; }
.tb-group { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.tb-group label { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--muted); }
.tb-group select { border: 1px solid var(--line); background: var(--cream); border-radius: 10px; padding: .45rem .7rem; font-family: var(--font-body); font-size: .85rem; color: var(--ink); }
.tb-clear { color: #a2481a; text-decoration: none; font-size: .82rem; }
.tb-clear:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cart-layout, .checkout-layout, .reviews-grid, .account-layout, .hero-store, .odc-cols { grid-template-columns: 1fr; }
  .account-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .cart-summary, .checkout-summary, .review-form-wrap { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .store-header { gap: .5rem; }
  .header-search { order: 5; flex-basis: 100%; max-width: none; }
  .site-nav { order: 6; flex-basis: 100%; justify-content: center; }
  .cart-row { grid-template-columns: 64px 1fr auto; grid-template-areas: "img info info" "img qty line" "img remove remove"; }
  .cart-thumb { grid-area: img; }
  .cart-thumb img { width: 64px; height: 64px; }
}
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; }
}
