:root {
  --clone-ink: #292724;
  --clone-muted: #716d66;
  --clone-cream: #fffdf8;
  --clone-cream-2: #f7f1e7;
  --clone-border: #e7ded0;
  --clone-green: #739b80;
  --clone-green-dark: #557962;
  --clone-peach: #f1d2bd;
}

.clone-toast-stack {
  position: fixed;
  z-index: 2147483000;
  right: 20px;
  bottom: 22px;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.clone-toast {
  max-width: min(380px, calc(100vw - 32px));
  padding: 13px 17px;
  border: 1px solid color-mix(in srgb, var(--clone-green) 35%, white);
  border-radius: 14px;
  background: rgba(255, 253, 248, .97);
  color: var(--clone-ink);
  box-shadow: 0 16px 45px rgba(45, 42, 37, .16);
  font-size: 14px;
  line-height: 1.45;
  animation: clone-toast-in .24s ease both;
}

.clone-toast strong { color: var(--clone-green-dark); }
.clone-toast.is-leaving { animation: clone-toast-out .2s ease both; }

@keyframes clone-toast-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
}

@keyframes clone-toast-out {
  to { opacity: 0; transform: translateY(8px) scale(.98); }
}

.clone-cart-badge {
  position: absolute;
  top: -7px;
  right: -9px;
  display: inline-flex;
  min-width: 17px;
  height: 17px;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--clone-green-dark);
  color: #fff;
  font: 700 10px/1 system-ui, sans-serif;
}

.clone-header-favorites {
  position: relative;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--clone-ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.clone-header-favorites:hover {
  background: rgba(184, 79, 91, .08);
  color: #b84f5b;
  transform: translateY(-1px);
}

.clone-favorite-count {
  position: absolute;
  top: -4px;
  right: -5px;
  display: inline-flex;
  min-width: 17px;
  height: 17px;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border-radius: 999px;
  background: #b84f5b;
  color: #fff;
  font: 700 10px/1 system-ui, sans-serif;
}

.clone-mobile-favorites {
  position: fixed;
  z-index: 2147481000;
  left: 16px;
  bottom: 76px;
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(184, 79, 91, .22);
  border-radius: 999px;
  background: rgba(255, 253, 248, .96);
  color: #b84f5b;
  box-shadow: 0 12px 34px rgba(45, 42, 37, .18);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.clone-card-favorite {
  position: absolute;
  z-index: 40;
  top: 12px;
  right: 12px;
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(184, 79, 91, .17);
  border-radius: 999px;
  background: rgba(255, 253, 248, .94);
  color: #6f6a62;
  box-shadow: 0 9px 25px rgba(45, 42, 37, .12);
  cursor: pointer;
  font-size: 23px;
  line-height: 1;
  opacity: 1;
  transform: none;
  transition: opacity .2s ease, transform .2s ease, color .2s ease, background .2s ease;
}

article:hover .clone-card-favorite,
.clone-card-favorite:focus-visible,
.clone-card-favorite.is-favorite {
  opacity: 1;
  transform: none;
}

.clone-card-favorite:hover,
.clone-card-favorite.is-favorite {
  background: #fff0f1;
  color: #b84f5b;
}

.clone-detail-favorite {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  margin-top: 13px;
  padding: 10px 17px;
  border: 1px solid var(--clone-border);
  border-radius: 999px;
  background: transparent;
  color: var(--clone-ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.clone-detail-favorite span:first-child { font-size: 22px; line-height: 1; }
.clone-detail-favorite:hover,
.clone-detail-favorite.is-favorite { border-color: rgba(184, 79, 91, .4); background: #fff0f1; color: #a94450; }

.clone-favorites-backdrop {
  position: fixed;
  z-index: 2147482500;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: rgba(35, 33, 30, .48);
  backdrop-filter: blur(6px);
}

.clone-favorites-panel {
  width: min(440px, 100%);
  height: 100%;
  overflow: hidden;
  background: var(--clone-cream);
  box-shadow: -22px 0 70px rgba(32, 29, 24, .22);
  animation: clone-favorites-in .25s ease both;
}

@keyframes clone-favorites-in {
  from { opacity: .75; transform: translateX(34px); }
}

.clone-favorites-content { display: flex; height: 100%; flex-direction: column; }
.clone-favorites-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 23px 22px 20px; border-bottom: 1px solid var(--clone-border); }
.clone-favorites-head h2 { margin: 0; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.clone-favorites-head small { display: block; margin-top: 3px; color: var(--clone-muted); }
.clone-favorites-head button { display: inline-flex; width: 40px; height: 40px; flex: 0 0 auto; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: var(--clone-cream-2); color: var(--clone-ink); cursor: pointer; font-size: 25px; }
.clone-favorites-list { display: grid; overflow: auto; gap: 12px; padding: 16px; }
.clone-favorite-item { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 14px; padding: 12px; border: 1px solid var(--clone-border); border-radius: 18px; background: #fffdf9; }
.clone-favorite-item img { width: 82px; height: 102px; border-radius: 12px; background: #fff; object-fit: cover; }
.clone-favorite-item a { color: var(--clone-ink); text-decoration: none; font-size: 14px; font-weight: 750; line-height: 1.35; }
.clone-favorite-item-price { display: block; margin-top: 6px; color: var(--clone-green-dark); font-size: 14px; font-weight: 800; }
.clone-favorite-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.clone-favorite-actions button { min-height: 34px; border: 1px solid var(--clone-border); border-radius: 999px; padding: 7px 12px; background: var(--clone-cream-2); color: var(--clone-ink); cursor: pointer; font-size: 12px; font-weight: 700; }
.clone-favorite-actions button:first-child { border-color: var(--clone-green); background: var(--clone-green); color: #fff; }
.clone-favorites-empty { padding: 72px 26px; text-align: center; }
.clone-favorites-empty span { display: block; color: #b84f5b; font-size: 58px; line-height: 1; }
.clone-favorites-empty h3 { margin: 16px 0 8px; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.clone-favorites-empty p { margin: 0; color: var(--clone-muted); line-height: 1.55; }

.clone-added { animation: clone-added .45s ease; }
@keyframes clone-added { 50% { transform: scale(1.12); background: var(--clone-green) !important; color: white !important; } }

.clone-search-backdrop {
  position: fixed;
  z-index: 2147482000;
  inset: 0;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: min(12vh, 100px) 16px 24px;
  background: rgba(35, 33, 30, .48);
  backdrop-filter: blur(7px);
}

.clone-search-dialog {
  width: min(680px, 100%);
  overflow: hidden;
  border: 1px solid var(--clone-border);
  border-radius: 22px;
  background: var(--clone-cream);
  box-shadow: 0 28px 80px rgba(32, 29, 24, .26);
}

.clone-search-head { display: flex; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid var(--clone-border); }
.clone-search-input { width: 100%; min-height: 48px; border: 0; outline: 0; background: transparent; color: var(--clone-ink); font-size: 18px; }
.clone-search-close { width: 38px; height: 38px; flex: 0 0 auto; border: 0; border-radius: 999px; background: var(--clone-cream-2); color: var(--clone-ink); cursor: pointer; font-size: 22px; }
.clone-search-results { max-height: min(62vh, 520px); overflow: auto; padding: 8px; }
.clone-search-hint { padding: 28px 20px; color: var(--clone-muted); text-align: center; }
.clone-search-result { display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 14px; padding: 10px; border-radius: 14px; color: var(--clone-ink); text-decoration: none; }
.clone-search-result:hover { background: var(--clone-cream-2); }
.clone-search-result img { width: 62px; height: 76px; border-radius: 10px; background: white; object-fit: cover; }
.clone-search-result strong { display: block; font-size: 15px; }
.clone-search-result small { display: block; margin-top: 4px; color: var(--clone-muted); }
.clone-search-price { color: var(--clone-green-dark); font-weight: 700; white-space: nowrap; }

.clone-cart-page { max-width: 1180px; margin: 0 auto; padding: 48px 20px 80px; color: var(--clone-ink); }
.clone-cart-title { margin: 0; font-family: Georgia, serif; font-size: clamp(36px, 5vw, 56px); font-weight: 500; }
.clone-cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; margin-top: 34px; align-items: start; }
.clone-cart-items { display: grid; gap: 14px; }
.clone-cart-item { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px; border: 1px solid var(--clone-border); border-radius: 20px; background: var(--clone-cream); }
.clone-cart-item img { width: 92px; height: 116px; border-radius: 14px; background: #fff; object-fit: cover; }
.clone-cart-item a { color: var(--clone-ink); text-decoration: none; font-weight: 700; }
.clone-cart-unit { margin: 6px 0 12px; color: var(--clone-muted); font-size: 13px; }
.clone-qty { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid var(--clone-border); border-radius: 999px; }
.clone-qty button { width: 38px; height: 36px; border: 0; background: transparent; color: var(--clone-ink); cursor: pointer; font-size: 18px; }
.clone-qty span { min-width: 32px; text-align: center; font-weight: 700; }
.clone-remove { margin-left: 10px; border: 0; background: transparent; color: #a34e4e; cursor: pointer; font-size: 13px; }
.clone-line-total { color: var(--clone-green-dark); font-weight: 800; white-space: nowrap; }
.clone-cart-clear { justify-self: start; margin-top: 4px; border: 0; background: transparent; color: #8d514b; cursor: pointer; text-decoration: underline; }
.clone-summary { position: sticky; top: 100px; padding: 24px; border: 1px solid var(--clone-border); border-radius: 22px; background: var(--clone-cream); box-shadow: 0 16px 45px rgba(70, 60, 48, .08); }
.clone-summary h2 { margin: 0 0 20px; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.clone-summary-row { display: flex; justify-content: space-between; gap: 16px; margin: 12px 0; color: var(--clone-muted); }
.clone-summary-row strong { color: var(--clone-ink); }
.clone-summary-total { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--clone-border); color: var(--clone-ink); font-size: 20px; }
.clone-free-shipping { margin: 16px 0; padding: 11px 13px; border-radius: 12px; background: #edf5ef; color: var(--clone-green-dark); font-size: 13px; }
.clone-checkout { display: flex; width: 100%; min-height: 50px; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: var(--clone-green); color: white; cursor: pointer; font-weight: 700; }
.clone-checkout:hover { background: var(--clone-green-dark); }
.clone-demo-checkout-note { margin: 14px 0 9px; color: var(--clone-muted); font-size: 10px; line-height: 1.45; text-align: center; }
.clone-coupon { display: flex; gap: 8px; margin-top: 16px; }
.clone-coupon input { min-width: 0; flex: 1; border: 1px solid var(--clone-border); border-radius: 999px; padding: 10px 13px; background: white; }
.clone-coupon button { border: 1px solid var(--clone-border); border-radius: 999px; padding: 0 14px; background: var(--clone-cream-2); cursor: pointer; }
.clone-empty-cart { margin-top: 36px; padding: 70px 24px; border: 1px solid var(--clone-border); border-radius: 24px; background: var(--clone-cream); text-align: center; }
.clone-empty-cart h2 { margin: 0 0 10px; font-family: Georgia, serif; font-size: 28px; }
.clone-empty-cart p { color: var(--clone-muted); }
.clone-primary-link { display: inline-flex; margin-top: 20px; border-radius: 999px; padding: 13px 22px; background: var(--clone-green); color: white !important; text-decoration: none; font-weight: 700; }

@media (max-width: 820px) {
  .clone-cart-layout { grid-template-columns: 1fr; }
  .clone-summary { position: static; }
}

@media (max-width: 1023px) {
  .clone-header-favorites { display: none; }
  .clone-mobile-favorites { display: inline-flex; }
  .clone-card-favorite { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
  .clone-cart-page { padding: 32px 14px 110px; }
  .clone-cart-item { grid-template-columns: 74px 1fr; gap: 13px; }
  .clone-cart-item img { width: 74px; height: 96px; }
  .clone-line-total { grid-column: 2; }
  .clone-search-result { grid-template-columns: 52px 1fr; }
  .clone-search-result img { width: 52px; height: 64px; }
  .clone-search-price { grid-column: 2; }
}
