/* =============================================================================
 * RECOVERY OVERRIDES
 * Minimal styles for the recovered static copy: local cart drawer, form success
 * messages, optional "recovered copy" ribbon. Scoped with .rec-* to avoid
 * colliding with the original theme.
 * ===========================================================================*/

/* ---- cart drawer ---- */
.rec-cart-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .45);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
  z-index: 2147483000;
}
.rec-cart-open .rec-cart-backdrop { opacity: 1; visibility: visible; }

.rec-cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%;
  width: min(420px, 92vw); background: #fff; color: #111;
  box-shadow: -8px 0 40px rgba(0, 0, 0, .18);
  transform: translateX(100%); transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  z-index: 2147483001; display: flex; flex-direction: column;
  font-family: inherit;
}
.rec-cart-open .rec-cart-drawer { transform: translateX(0); }

.rec-cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid #ececec;
}
.rec-cart-head h2 { margin: 0; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.rec-cart-close { background: none; border: 0; font-size: 18px; cursor: pointer; line-height: 1; color: #111; }

/* free-shipping progress */
.rec-ship { padding: 12px 20px 4px; }
.rec-ship-msg { margin: 0 0 8px; font-size: 12.5px; text-align: center; color: #333; }
.rec-ship-bar { height: 6px; border-radius: 999px; background: #ececec; overflow: hidden; }
.rec-ship-bar span { display: block; height: 100%; background: #111; border-radius: 999px; transition: width .35s ease; }

/* scroll area holds items + in-cart recommendations */
.rec-cart-scroll { flex: 1; overflow-y: auto; }
.rec-cart-list { list-style: none; margin: 0; padding: 8px 20px; }

/* in-cart recommendations */
.rec-cart-recs { padding: 8px 20px 20px; border-top: 8px solid #f6f6f6; }
.rec-cart-recs h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin: 10px 0 12px; }
.rec-cart-recs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rec-cart-rec { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; }
.rec-cart-rec-media { width: 48px; height: 60px; border-radius: 4px; overflow: hidden; background: #f5f5f5; display: block; }
.rec-cart-rec-media img { width: 100%; height: 100%; object-fit: cover; }
.rec-cart-rec-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rec-cart-rec-title { font-size: 12.5px; font-weight: 600; color: #111; text-decoration: none; line-height: 1.25; }
.rec-cart-rec-price { font-size: 12px; color: #555; }
.rec-cart-rec-add { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #ddd; background: #fff; font-size: 16px; cursor: pointer; padding: 0; }
.rec-cart-rec-add:hover { background: #111; color: #fff; border-color: #111; }

/* trust line */
.rec-cart-trust { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: #777; margin-bottom: 12px; flex-wrap: wrap; }
.rec-cart-item { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid #f1f1f1; }
.rec-cart-thumb { width: 72px; height: 90px; object-fit: cover; background: #f5f5f5; border-radius: 4px; display: block; }
.rec-cart-meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rec-cart-title { font-size: 14px; font-weight: 600; color: #111; text-decoration: none; line-height: 1.3; }
.rec-cart-title:hover { text-decoration: underline; }
.rec-cart-variant { font-size: 12px; color: #777; }
.rec-cart-line { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.rec-cart-price { font-size: 14px; font-weight: 600; }

.rec-qty { display: inline-flex; align-items: center; border: 1px solid #ddd; border-radius: 999px; }
.rec-qty-btn { width: 28px; height: 28px; border: 0; background: none; cursor: pointer; font-size: 15px; line-height: 1; color: #111; }
.rec-qty-val { min-width: 24px; text-align: center; font-size: 13px; }
.rec-cart-remove { align-self: flex-start; margin-top: 2px; background: none; border: 0; padding: 0; font-size: 11px; color: #999; cursor: pointer; text-decoration: underline; }

.rec-cart-foot { padding: 18px 20px; border-top: 1px solid #ececec; }
.rec-cart-subtotal { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-size: 14px; }
.rec-cart-subtotal strong { font-size: 17px; }
.rec-cart-checkout {
  display: block; text-align: center; background: #111; color: #fff; text-decoration: none;
  padding: 15px; border-radius: 999px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
}
.rec-cart-checkout:hover { background: #333; }
.rec-cart-note { margin: 12px 0 0; font-size: 11px; color: #aaa; text-align: center; }
.rec-cart-empty { flex: 1; display: flex; align-items: center; justify-content: center; color: #888; }

/* ---- form success message ---- */
.recovery-form-success {
  margin-top: 12px; padding: 10px 14px; border-radius: 6px;
  background: #effaf0; border: 1px solid #bfe6c4; color: #1f6f2c; font-size: 13px;
}

/* ---- optional recovered-copy ribbon (toggle in site-config.js) ---- */
.rec-ribbon {
  position: fixed; bottom: 12px; left: 12px; z-index: 2147483002;
  background: #111; color: #fff; font: 600 11px/1 system-ui, sans-serif;
  letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border-radius: 6px;
  opacity: .85;
}

/* =============================================================================
 * Recovered product cards (collection grids, recommended & suggested sections)
 * ===========================================================================*/
.rec-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px; width: 100%;
}
@media (min-width: 768px) { .rec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1024px) { .rec-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rec-grid--rows { grid-template-columns: 1fr; gap: 12px; }

.rec-card { display: flex; flex-direction: column; min-width: 0; }
.rec-card-media {
  display: block; position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  background: #f4f4f4; border-radius: 10px;
}
.rec-card-media img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease; }
.rec-card-media:hover img { transform: scale(1.04); }
.rec-card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 2px 0; flex: 1; }
.rec-card-title {
  font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  color: #111; text-decoration: none; line-height: 1.25;
}
.rec-card-title:hover { text-decoration: underline; }
.rec-card-price { font-size: 14px; color: #111; }
.rec-card-price s { color: #aaa; margin-right: 6px; font-weight: 400; }
.rec-atc {
  margin-top: auto; align-self: stretch; border: 0; cursor: pointer;
  background: #111; color: #fff; padding: 12px; border-radius: 999px;
  font: 600 11px/1 inherit; letter-spacing: .1em; text-transform: uppercase;
}
.rec-atc:hover { background: #333; }

/* compact row card (suggested) */
.rec-card--row { flex-direction: row; align-items: center; gap: 14px;
  background: #f7f7f7; border-radius: 12px; padding: 10px 14px; }
.rec-card--row .rec-card-media { width: 64px; height: 80px; aspect-ratio: auto; flex: none; }
.rec-card--row .rec-card-body { padding: 0; flex: 1; }
.rec-bag {
  border: 0; background: none; cursor: pointer; color: #111; padding: 8px;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.rec-bag:hover { opacity: .6; }

/* =============================================================================
 * Gallery lightbox
 * ===========================================================================*/
.rec-lightbox {
  position: fixed; inset: 0; z-index: 2147483005; display: none;
  align-items: center; justify-content: center; background: rgba(0,0,0,.9);
  padding: 24px;
}
.rec-lightbox.is-open { display: flex; }
.rec-lb-stage { margin: 0; max-width: 90vw; max-height: 88vh; }
.rec-lb-stage img { max-width: 90vw; max-height: 88vh; object-fit: contain; display: block; }
.rec-lb-close, .rec-lb-prev, .rec-lb-next {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0;
  cursor: pointer; width: 48px; height: 48px; border-radius: 50%; font-size: 24px; line-height: 1;
}
.rec-lb-close:hover, .rec-lb-prev:hover, .rec-lb-next:hover { background: rgba(255,255,255,.25); }
.rec-lb-close { top: 18px; right: 18px; font-size: 20px; }
.rec-lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.rec-lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .rec-lb-prev { left: 8px; } .rec-lb-next { right: 8px; }
  .rec-lb-close { top: 10px; right: 10px; }
}

/* =============================================================================
 * Tabs active state (fallback if theme island doesn't load)
 * ===========================================================================*/
.tab.tab-active { border-bottom-color: currentColor !important; font-weight: 700; opacity: 1; }

/* =============================================================================
 * Reviews (real server-rendered Yotpo data, re-styled)
 * ===========================================================================*/
.rec-reviews { max-width: 860px; margin: 0 auto; padding: 24px 16px; }
.rec-reviews-title { font-size: 20px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 16px; text-align: center; }
.rec-reviews-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px;
  padding-bottom: 18px; border-bottom: 1px solid #eee; margin-bottom: 18px;
}
.rec-reviews-score { display: inline-flex; align-items: center; gap: 8px; }
.rec-reviews-score strong { font-size: 18px; }
.rec-reviews-count { color: #777; font-size: 13px; }
.rec-stars { display: inline-flex; gap: 1px; font-size: 15px; line-height: 1; }
.rec-stars i { color: #d9d9d9; font-style: normal; }
.rec-stars i.on { color: #111; }
.rec-reviews-cta {
  display: inline-block; background: #111; color: #fff; text-decoration: none;
  padding: 10px 18px; border-radius: 999px; font: 600 11px/1 inherit;
  letter-spacing: .08em; text-transform: uppercase;
}
.rec-reviews-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 768px) { .rec-reviews-list { grid-template-columns: 1fr 1fr; gap: 22px 32px; } }
.rec-review { border-bottom: 1px solid #f0f0f0; padding-bottom: 16px; }
.rec-review-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.rec-review-name { font-weight: 600; font-size: 13px; }
.rec-review-title { margin: 4px 0 6px; font-size: 14px; font-weight: 700; }
.rec-review-body { margin: 0; font-size: 13px; line-height: 1.5; color: #444; }
.rec-rating-inline { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: inherit; font-size: 13px; }
.rec-rating-inline span { color: #777; text-decoration: underline; }

.rec-atc--link { display: block; text-align: center; text-decoration: none; }

/* =============================================================================
 * Slide-in panels (menu / search / localization) + slider arrows
 * ===========================================================================*/
.rec-panel-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease; z-index: 2147482999;
}
.rec-panel-backdrop.is-on { opacity: 1; visibility: visible; }
html.rec-panel-lock { overflow: hidden; }
.rec-panel-open {
  position: fixed !important; top: 0 !important; bottom: 0 !important; height: 100% !important;
  width: min(420px, 92vw) !important; max-width: 92vw !important; background: #fff !important;
  z-index: 2147483004 !important; overflow-y: auto !important; overflow-x: hidden !important;
  transform: none !important; visibility: visible !important; display: block !important;
  opacity: 1 !important; box-shadow: 0 0 50px rgba(0,0,0,.22); padding: 20px;
}
.rec-panel-open.rec-right { right: 0 !important; left: auto !important; }
.rec-panel-open.rec-left  { left: 0 !important;  right: auto !important; }

.rec-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 20;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); color: #111; font-size: 22px; line-height: 1;
  box-shadow: 0 2px 10px rgba(0,0,0,.12); display: flex; align-items: center; justify-content: center;
}
.rec-arrow:hover { background: #fff; }
.rec-arrow[disabled] { opacity: .3; cursor: default; }
.rec-arrow-prev { left: 8px; }
.rec-arrow-next { right: 8px; }

/* =============================================================================
 * Bundle builder
 * ===========================================================================*/
.rec-bundle-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 8px;
  border: 1px solid #e6e6e6; border-radius: 10px; background: #fff; cursor: pointer; text-align: left;
  font: inherit; transition: border-color .15s ease, box-shadow .15s ease;
}
.rec-bundle-card:hover { border-color: #bbb; }
.rec-bundle-card.is-selected { border-color: #111; box-shadow: 0 0 0 1px #111 inset; }
.rec-bundle-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 6px; background: #f5f5f5; }
.rec-bundle-title { font-size: 12px; font-weight: 600; line-height: 1.2; }
.rec-bundle-price { font-size: 12px; color: #555; }
.rec-bundle-check {
  position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%;
  background: #111; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 12px; opacity: 0; transform: scale(.6); transition: .15s ease; z-index: 2;
}
.rec-bundle-card.is-selected .rec-bundle-check { opacity: 1; transform: scale(1); }

.rec-bundle-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 2147483003;
  display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid #e6e6e6;
  box-shadow: 0 8px 30px rgba(0,0,0,.16); border-radius: 999px; padding: 10px 12px 10px 22px;
  max-width: 94vw;
}
.rec-bundle-info { font-size: 13px; white-space: nowrap; }
.rec-bundle-save { color: #c0392b; font-weight: 700; }
.rec-bundle-total { font-size: 14px; white-space: nowrap; }
.rec-bundle-total s { color: #aaa; font-weight: 400; }
.rec-bundle-add {
  border: 0; background: #111; color: #fff; border-radius: 999px; padding: 12px 22px; cursor: pointer;
  font: 600 12px/1 inherit; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.rec-bundle-add[disabled] { opacity: .4; cursor: default; }
@media (max-width: 600px) {
  .rec-bundle-bar {
    flex-wrap: wrap;
    border-radius: 16px;
    padding: 10px 10px 10px 16px;
    gap: 4px 0;
    left: 8px; right: 8px; bottom: 12px;
    width: calc(100% - 16px);
    transform: none;
  }
  .rec-bundle-info { flex: 0 0 100%; font-size: 12px; white-space: normal; }
  .rec-bundle-total { flex: 1; font-size: 13px; align-self: center; }
  .rec-bundle-add { flex: 0 0 auto; padding: 10px 18px; font-size: 11px; }
}
