/* Shop layout rebuilt so products appear in the first screen. Loaded after shop.css. */

/* Sticky search / filter / sort bar */
.shop-collection {
  padding-top: 18px;
  padding-bottom: 60px;
}
.shop-bar {
  position: sticky;
  top: var(--header-h, 84px);
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.shop-bar input,
.shop-bar select {
  width: 100%;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #c8bfa8;
  border-radius: 40px;
  background: #fffdf8;
  font: 14.5px var(--sans);
  color: var(--ink);
}
.shop-bar .shop-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
  mask-image: linear-gradient(90deg, #000 92%, transparent);
  padding-right: 24px;
}
.shop-bar .shop-filters::-webkit-scrollbar {
  display: none;
}
.shop-bar .shop-filters button {
  flex: none;
  padding: 8px 14px;
  border-radius: 40px;
  font-size: 14.5px;
  white-space: nowrap;
}
.shop-count {
  margin: 14px 0 18px;
  font-size: 14.5px;
}

/* Product cards */
.shop-grid .shop-card {
  display: flex;
  flex-direction: column;
}
.shop-card-link {
  display: block;
  flex: 1;
}
.shop-card-cat {
  display: block;
  margin-top: 14px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.shop-grid .shop-card h3 {
  font-size: 18px;
  margin: 6px 0 4px;
}
.shop-card-size {
  font-size: 14.5px;
  color: var(--muted);
}
.shop-card-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.shop-card-buy strong {
  font-size: 16px;
  color: #3b4735;
}
.shop-add {
  border: 1px solid var(--plum);
  background: var(--plum);
  color: #fff;
  border-radius: 40px;
  padding: 9px 16px;
  font: 600 13.5px var(--sans);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.shop-add:hover {
  background: #5a5a4c;
}
.shop-add.is-added,
[data-add-to-bag].is-added {
  background: #4f6b52;
  border-color: #4f6b52;
  color: #fff;
}

/* Routine bundles */
.shop-bundles {
  background: #f3efe3;
  border-top: 1px solid var(--line);
}
.bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.bundle-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.bundle-card h3 {
  font-size: 22px;
}
.bundle-card p {
  font-size: 14.5px;
}
.bundle-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14.5px;
  color: var(--muted);
  flex: 1;
}
.bundle-card li a {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
.bundle-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 14.5px;
  color: var(--muted);
}
.bundle-foot strong {
  font: 22px var(--serif);
  color: var(--ink);
}
.bundle-card .button {
  width: 100%;
}
.bundle-card .text-link {
  align-self: flex-start;
}

/* Delivery / payment / policy strip */
.shop-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.shop-info div {
  display: grid;
  gap: 4px;
  font-size: 14.5px;
  color: var(--muted);
}
.shop-info strong {
  color: var(--ink);
  font-size: 14.5px;
}

@media (max-width: 900px) {
  .shop-bar {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
  .shop-bar .shop-filters {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .shop-info {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .shop-bar {
    padding: 8px 0;
  }
  .shop-card-buy {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .shop-add {
    width: 100%;
    padding: 10px;
  }
  .shop-grid .shop-card h3 {
    font-size: 16px;
  }
  .shop-info {
    grid-template-columns: 1fr;
  }
}

/* ---- Bag button (header) and drawer ---- */
.bag-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--ink);
}
.bag-button:hover {
  background: #ebe5d5;
}
.bag-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  background: #4f6b52;
  color: #fff;
  font: 700 12.5px/19px var(--sans);
  text-align: center;
}
.bag-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(440px, 100%);
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--paper);
  box-shadow: -20px 0 60px #28282540;
}
.bag-drawer[open] {
  display: flex;
  flex-direction: column;
  animation: bag-in 0.28s cubic-bezier(0.2, 0.65, 0.2, 1);
}
.bag-drawer::backdrop {
  background: #2b2c2880;
  backdrop-filter: blur(3px);
}
@keyframes bag-in {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
}
.bag-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.bag-head h2 {
  font-size: 30px;
}
.bag-close {
  border: 1px solid var(--line);
  background: none;
  border-radius: 40px;
  padding: 7px 14px;
  font: 600 13.5px var(--sans);
}
.bag-items {
  flex: 1;
  overflow-y: auto;
  padding: 6px 22px;
}
.bag-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid #e9e2d1;
}
.bag-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #f0ece2;
  border-radius: 8px;
  padding: 6px;
  mix-blend-mode: multiply;
}
.bag-name {
  display: block;
  font: 16px/1.2 var(--serif);
}
.bag-item small {
  color: var(--muted);
  font-size: 13.5px;
}
.bag-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 14.5px;
}
.bag-qty button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 16px;
  line-height: 1;
}
.bag-qty .bag-remove {
  width: auto;
  border: 0;
  background: none;
  text-decoration: underline;
  font-size: 13.5px;
  color: var(--muted);
  margin-left: 6px;
}
.bag-item > strong {
  font-size: 14.5px;
}
.bag-empty {
  padding: 30px 22px;
  display: grid;
  gap: 16px;
  justify-items: start;
}
.bag-foot {
  padding: 18px 22px 24px;
  border-top: 1px solid var(--line);
  background: #f6f2e8;
}
.bag-total {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
}
.bag-total strong {
  font: 22px var(--serif);
}
.bag-note,
.bag-fine {
  font-size: 13.5px;
  margin: 8px 0 14px;
}
.bag-fine {
  margin: 10px 0 0;
  font-size: 12.5px;
}
.bag-checkout {
  width: 100%;
}
.bag-status {
  margin-top: 10px;
  font-size: 14.5px;
  color: #6b4a2a;
}
.bag-status:empty {
  display: none;
}
body.bag-open {
  overflow: hidden;
}
@media (max-width: 600px) {
  .site-header .bag-button {
    width: 38px;
  }
}

.shop-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.shop-detail-actions .button {
  flex: 1 1 200px;
}
.routine-buy{margin-top:26px}

/* ---- Home "secure your spot" booking pop-up ---- */
.book-popup {
  width: min(480px, calc(100% - 32px));
  padding: 38px 34px 26px;
  border: 0;
  border-radius: 16px;
  background: radial-gradient(ellipse at 100% 0, #ded4bb, transparent 65%), #f7f4ec;
  box-shadow: 0 30px 100px #28282555;
}
.book-popup[open] {
  animation: qv-in 0.3s cubic-bezier(0.2, 0.65, 0.2, 1);
}
.book-popup::backdrop {
  background: #2b2c2899;
  backdrop-filter: blur(5px);
}
.book-popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #ece5d4;
  font-size: 14.5px;
}
.book-popup h2 {
  font-size: clamp(22px, 5.5vw, 33px);
  margin-bottom: 6px;
}
.book-popup-offer {
  font-size: 14.5px;
  font-weight: 600;
  color: #4f6b52;
  margin: 4px 0 0;
}
.book-popup-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.book-popup-form label,
.book-popup-form legend {
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.book-popup-form input:not([type='radio']) {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #c8bfa8;
  border-radius: 10px;
  background: #fffdf8;
  font: 16px var(--sans);
}
.bp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.bp-phone {
  display: flex;
  align-items: center;
  border: 1px solid #c8bfa8;
  border-radius: 10px;
  background: #fffdf8;
  overflow: hidden;
}
.bp-phone > span {
  padding: 0 4px 0 14px;
  color: var(--muted);
  font-weight: 500;
}
.bp-phone input:not([type='radio']) {
  border: 0;
  border-radius: 0;
}
.book-popup fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
.bp-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}
.bp-choice label {
  display: block;
  position: relative;
}
.bp-choice input {
  position: absolute;
  opacity: 0;
}
.bp-choice span {
  display: block;
  padding: 11px;
  border: 1px solid #c8bfa8;
  border-radius: 40px;
  text-align: center;
  font-weight: 500;
  background: #fffdf8;
  cursor: pointer;
}
.bp-choice input:checked + span {
  background: var(--plum);
  border-color: var(--plum);
  color: #fff;
}
.bp-choice input:focus-visible + span {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}
.book-popup-form .button {
  width: 100%;
  margin-top: 4px;
}
.bp-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}
.bp-error {
  color: #9a3c2a;
  font-size: 14.5px;
  margin: 0;
}
.bp-error:empty {
  display: none;
}
.bp-fine {
  font-size: 12.5px;
  line-height: 1.5;
  margin: 0;
}
.bp-fine a {
  text-decoration: underline;
}
@media (max-width: 420px) {
  .book-popup {
    padding: 32px 20px 20px;
  }
  .bp-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  /* Bottom sheet on phones: doesn't cover the whole page. */
  .book-popup {
    width: 100%;
    max-width: none;
    max-height: 88dvh;
    margin: auto 0 0;
    border-radius: 18px 18px 0 0;
    overflow-y: auto;
  }
  .book-popup[open] {
    animation: sheet-up 0.32s cubic-bezier(0.2, 0.65, 0.2, 1);
  }
}
@keyframes sheet-up {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
}
#routines{scroll-margin-top:calc(var(--header-h,84px) + 12px)}
.bp-optional {
  font-weight: 400;
  color: var(--muted);
}
.bp-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.bp-interests label {
  position: relative;
  display: block;
}
.bp-interests input {
  position: absolute;
  opacity: 0;
}
.bp-interests span {
  display: block;
  padding: 7px 14px;
  border: 1px solid #c8bfa8;
  border-radius: 40px;
  background: #fffdf8;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}
.bp-interests input:checked + span {
  background: #4f6b52;
  border-color: #4f6b52;
  color: #fff;
}
.bp-interests input:focus-visible + span {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}
.book-popup-form .bp-consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-weight: 400;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}
.bp-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #4f6b52;
}
.book-popup {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: 30px;
}
.book-popup-form {
  gap: 12px;
  margin-top: 14px;
}
.book-popup h2 {
  margin-bottom: 2px;
}
.book-popup-form legend{display:block;margin-bottom:2px}

/* Product page: PDF description, "best for treating" and skin-type tags */
.shop-detail-copy .shop-description {
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 20px;
}
.shop-tags {
  margin: 0 0 16px;
}
.shop-tags > span {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.shop-tags ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.shop-tags li {
  padding: 5px 12px;
  border: 1px solid #d8cfba;
  border-radius: 40px;
  background: #faf7ef;
  font-size: 13.5px;
  color: #4b5543;
}
.shop-card-tagline {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--muted);
}

/* ---- Treatments: GlossGenius-style service list and "Select" pop-up ---- */
.service-card .service-desc p {
  margin-top: 12px;
}
.service-card .service-desc p:first-child:not(:only-child) {
  font-weight: 600;
  color: var(--ink);
}
.service-meta {
  display: flex !important;
  flex-direction: column;
  gap: 2px;
}
.service-count {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.8;
}
.service-offer {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 40px;
  background: #e3ecd9;
  color: #3f5a3d;
  font-size: 13.5px;
  font-weight: 600;
}
.service-dialog {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 30px 100px #28282555;
}
.service-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: qv-in 0.28s cubic-bezier(0.2, 0.65, 0.2, 1);
}
.service-dialog::backdrop {
  background: #2b2c2899;
  backdrop-filter: blur(5px);
}
.sd-head {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}
.sd-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #fffdf8e6;
  box-shadow: 0 2px 10px #0002;
  font-size: 14.5px;
}
.sd-body {
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sd-hero img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}
.sd-intro {
  padding: 22px 26px 6px;
}
.sd-intro h2 {
  font-size: 32px;
  margin-bottom: 6px;
}
.sd-from {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: var(--ink);
}
.sd-options {
  padding: 10px 26px 4px;
}
.sd-options fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
.sd-options legend {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 10px;
}
.sd-required {
  font-size: 12.5px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 40px;
  background: #ece5d4;
  color: var(--muted);
}
.sd-nudge .sd-required {
  animation: sd-nudge 0.5s;
  background: #f1d6c9;
  color: #8a3b22;
}
@keyframes sd-nudge {
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}
.sd-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 8px;
  border: 1px solid #d8cfba;
  border-radius: 12px;
  background: #fffdf8;
  cursor: pointer;
}
.sd-option:has(input:checked) {
  border-color: var(--plum);
  box-shadow: 0 0 0 1px var(--plum);
}
.sd-option input {
  order: 2;
  margin-left: auto;
  width: 20px;
  height: 20px;
  accent-color: var(--plum);
}
.sd-option-body {
  display: grid;
  gap: 2px;
}
.sd-option-body strong {
  font-size: 16px;
  font-weight: 600;
}
.sd-option-body span {
  font-size: 14.5px;
  color: var(--muted);
}
.sd-option-body small {
  font-size: 12.5px;
  color: #8a6a2a;
}
.sd-about {
  margin: 8px 26px 18px;
  font-size: 14.5px;
}
.sd-about summary {
  cursor: pointer;
  font-weight: 600;
}
.sd-about p {
  margin-top: 10px;
  font-size: 14.5px;
}
.sd-about .text-link {
  margin-top: 12px;
}
.sd-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: #f6f2e8;
}
.sd-total {
  display: grid;
  font-size: 13.5px;
  color: var(--muted);
}
.sd-total strong {
  font-size: 16px;
  color: var(--ink);
}
.sd-book[aria-disabled='true'] {
  opacity: 0.55;
}
.service-photo {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 28px;
}
.service-options {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 10px;
  font-size: 16px;
}
.service-options th,
.service-options td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.service-options thead th {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.service-options tbody th {
  font-weight: 600;
}
.service-options small {
  display: block;
  font-weight: 400;
  font-size: 13.5px;
  color: #8a6a2a;
}
.service-options td:last-child {
  white-space: nowrap;
}
@media (max-width: 600px) {
  .service-dialog {
    width: 100%;
    max-width: none;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: 18px 18px 0 0;
  }
  .sd-hero img {
    height: 180px;
  }
  .sd-intro h2 {
    font-size: 22px;
  }
}

/* Product page: the six sections from the product list */
.product-facts {
  margin: 26px 0 8px;
  border-top: 1px solid var(--line);
}
.product-facts dt {
  margin-top: 18px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.product-facts dd {
  margin: 6px 0 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}
.fact-note {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--muted);
  opacity: 0.85;
}
.fact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.fact-tags li {
  padding: 5px 12px;
  border: 1px solid #d8cfba;
  border-radius: 40px;
  background: #faf7ef;
  font-size: 13.5px;
  color: #4b5543;
}

/* Product header: tighter rhythm between label, title, size, price and tagline
   (sizes unchanged; only spacing). Applies to product pages and the quick view. */
.shop-detail-copy .eyebrow.eyebrow.eyebrow {
  margin-bottom: 8px;
}
.shop-detail-copy h1,
.qv-body .shop-detail-copy h1 {
  margin: 0 0 6px;
  line-height: 1.1;
}
.shop-detail-copy .shop-size {
  margin: 0;
  line-height: 1.5;
}
.shop-detail-copy .shop-detail-price {
  margin: 6px 0 12px;
  line-height: 1.2;
}
.shop-detail-copy .shop-lede {
  margin: 0 0 16px;
  line-height: 1.6;
}
.shop-detail-copy .fulfillment-highlight {
  margin-top: 0;
  gap: 10px;
}
.shop-detail-copy .fulfillment-highlight > div {
  padding: 12px 14px;
}
.shop-detail-copy .fulfillment-highlight span {
  margin-top: 2px;
  line-height: 1.5;
}
.shop-detail-copy .shop-detail-actions {
  margin-top: 14px;
}
.shop-detail-copy .shop-detail-actions .button {
  margin: 0;
}
.shop-detail-copy .shop-secure {
  margin-top: 8px;
  line-height: 1.5;
}
.shop-detail-copy .product-facts {
  margin-top: 18px;
}
.shop-detail-notes details p {
  margin: 10px 0 0;
  line-height: 1.6;
}

/* Footer: "Ask AI about Simply Facials" */
.ask-ai {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid #ffffff20;
}
.ask-ai-title {
  font: 500 18px var(--serif);
  color: #f3eee3;
  margin: 0 0 14px;
  letter-spacing: 0.01em;
}
.ask-ai-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ask-ai-links a {
  padding: 9px 20px;
  border: 1px solid #ffffff38;
  border-radius: 40px;
  color: #eae2d2;
  font-size: 14.5px;
  transition: background 0.2s, border-color 0.2s;
}
.ask-ai-links a:hover {
  background: #ffffff14;
  border-color: #ffffff70;
}
.site-footer .footer-bottom {
  margin-top: 26px;
}

/* Filter bar v2: search + category tags only (sort removed). Tags wrap; nothing is hidden. */
.shop-bar {
  grid-template-columns: minmax(220px, 280px) 1fr;
  align-items: start;
}
.shop-bar .shop-filters {
  flex-wrap: wrap;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
  padding-right: 0;
  row-gap: 8px;
}
@media (max-width: 900px) {
  .shop-bar {
    grid-template-columns: 1fr;
  }
  .shop-bar .shop-filters {
    grid-row: auto;
  }
}
@media (max-width: 600px) {
  .shop-bar {
    position: static;
  }
  .shop-bar .shop-filters button {
    padding: 7px 12px;
    font-size: 13.5px;
  }
}

/* Instagram glyph on Instagram links (home page reels) */
.instagram-follow,
.reel-source,
.reel-error a {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}
.ig-glyph {
  flex: none;
}
.reel-source .ig-glyph,
.reel-error .ig-glyph {
  width: 15px;
  height: 15px;
}

/* ---- Skincare Routines page ---- */
.routines-intro {
  padding-bottom: 36px;
}
.routine-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.routine-picker a {
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf8;
  transition: border-color 0.2s, background 0.2s;
}
.routine-picker a:hover {
  border-color: var(--plum);
  background: #fff;
}
.routine-picker strong {
  font: 500 18px var(--serif);
  color: var(--ink);
}
.routine-picker span {
  font-size: 13.5px;
  color: var(--muted);
}
.routine-block {
  padding: 56px 0;
  scroll-margin-top: calc(var(--header-h, 84px) + 8px);
}
.routine-block.routine-alt {
  background: #f3efe3;
}
.routine-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) 2fr;
  gap: 40px;
  align-items: start;
}
.routine-about h2 {
  margin-bottom: 8px;
}
.routine-about h3 {
  font: 600 12.5px var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 20px 0 6px;
}
.routine-about p {
  font-size: 16px;
  margin: 0;
}
.routine-about .routine-intro {
  color: var(--ink);
}
.routine-about .fact-tags {
  margin-top: 10px;
}
.routine-about .routine-facial {
  margin-top: 20px;
  font-size: 14.5px;
}
.routine-about .routine-facial a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.routine-plan {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.routine-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.routine-col {
  padding: 18px 16px 8px;
  border-right: 1px solid var(--line);
}
.routine-col:last-child {
  border-right: 0;
}
.routine-col-title {
  display: block;
  font: 600 12.5px var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}
.routine-col ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.routine-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #ece5d4;
}
.routine-thumb img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #f0ece2;
  border-radius: 8px;
  padding: 4px;
  mix-blend-mode: multiply;
}
.routine-item .routine-step {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.routine-name {
  display: block;
  font: 500 16px/1.25 var(--serif);
  color: var(--ink);
}
.routine-name:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.routine-meta,
.routine-note {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
}
.routine-note {
  color: #8a6a2a;
}
.routine-add {
  border: 1px solid var(--plum);
  background: transparent;
  color: var(--plum);
  border-radius: 40px;
  padding: 6px 12px;
  font: 600 12.5px var(--sans);
  cursor: pointer;
}
.routine-add:hover {
  background: var(--plum);
  color: #fff;
}
.routine-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background: #f6f2e8;
}
.routine-total span {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
}
.routine-total strong {
  font: 500 26px var(--serif);
  color: var(--ink);
}
@media (max-width: 1100px) {
  .routine-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (max-width: 760px) {
  .routine-picker {
    grid-template-columns: repeat(2, 1fr);
  }
  .routine-columns {
    grid-template-columns: 1fr;
  }
  .routine-col {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .routine-total {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---- Shop: routine bundles header + even grid (6 routines: 3+3, 2+2+2, 1 per row) ---- */
.shop-bundles .section-top {
  display: block;
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
}
.shop-bundles .section-top > p {
  max-width: none;
  margin: 12px auto 0;
}
.shop-bundles .bundle-grid {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1000px) {
  .shop-bundles .bundle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .shop-bundles .bundle-grid {
    grid-template-columns: 1fr;
  }
}
.bundles-more {
  text-align: center;
  margin-top: 28px;
}

/* Routine: guide link, actions, and "How to use this routine" pop-up */
.routine-item {
  grid-template-columns: 52px 1fr;
}
.routine-guide-link {
  display: inline-block;
  margin-top: 18px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #918b6c;
  background: none;
  font: 600 15px var(--sans);
  color: var(--ink);
  cursor: pointer;
}
.routine-total-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.routine-guide {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 30px 100px #28282555;
}
.routine-guide[open] {
  display: flex;
  flex-direction: column;
  animation: qv-in 0.28s cubic-bezier(0.2, 0.65, 0.2, 1);
}
.routine-guide::backdrop {
  background: #2b2c2899;
  backdrop-filter: blur(5px);
}
.rg-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 26px 14px;
  border-bottom: 1px solid var(--line);
}
.rg-head h2 {
  margin: 0;
}
.rg-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #ece5d4;
  font-size: 15px;
  flex: none;
}
.rg-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 26px 18px;
}
.rg-part h3 {
  font: 600 12.5px var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 20px 0 6px;
}
.rg-tip {
  font-size: 14.5px;
  margin: 0 0 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f3efe3;
}
.rg-part ol {
  list-style: none;
  counter-reset: rg;
  margin: 0;
  padding: 0;
}
.rg-part li {
  counter-increment: rg;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #ece5d4;
}
.rg-part li img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #f0ece2;
  border-radius: 8px;
  padding: 4px;
  mix-blend-mode: multiply;
}
.rg-part strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.rg-part strong::before {
  content: counter(rg) '. ';
}
.rg-part strong a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rg-part li p {
  font-size: 16px;
  margin: 4px 0 0;
}
.rg-note {
  display: block;
  font-size: 13.5px;
  color: #8a6a2a;
}
.rg-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 26px;
  border-top: 1px solid var(--line);
  background: #f6f2e8;
}
.rg-foot span {
  font-size: 14.5px;
  color: var(--muted);
}
.rg-foot strong {
  color: var(--ink);
}
@media (max-width: 600px) {
  .routine-guide {
    width: 100%;
    max-width: none;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: 18px 18px 0 0;
  }
  .rg-foot {
    flex-direction: column;
    align-items: stretch;
  }
  .routine-total-actions .button {
    flex: 1 1 100%;
  }
}
