/*
Theme Name: LoopiePack
Theme URI: https://loopiepack.com
Description: Bright, playful storefront theme for LoopiePack personalized kids' bags. Built for WooCommerce.
Version: 1.0.0
Text Domain: loopiepack
*/

:root {
  --lp-blue: #3b78ad;
  --lp-blue-soft: rgba(59,120,173,.78);
  --lp-purple: #8a4f98;
  --lp-purple-dark: #6f3d7c;
  --lp-mustard: #efb733;
  --lp-green: #4c9361;
  --lp-pink: #e5527f;
  --lp-orange: #f08a3c;
  --lp-teal: #3db5c2;
  --lp-ink: #2c3e50;
  --lp-bg: #ffffff;
  --lp-cream: #fff8ec;
  --lp-line: #e8edf3;
  --lp-radius: 14px;
  --lp-head: "Hepta Slab", Georgia, serif;
  --lp-body: "Hepta Slab", Georgia, serif;
  --lp-wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--lp-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: .4px;
  color: var(--lp-blue-soft);
  background: var(--lp-bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lp-blue); text-decoration: none; }
a:hover { color: var(--lp-purple); }
h1, h2, h3, h4 { font-family: var(--lp-head); font-weight: 800; color: var(--lp-blue); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .4px; }
h1 { font-size: clamp(30px, 4vw, 44px); }
h2 { font-size: clamp(26px, 3.2vw, 38px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.lp-wrap { max-width: var(--lp-wrap); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.lp-btn, .button, button.button, input.button, .wc-block-components-button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
  display: inline-block;
  font-family: var(--lp-head);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1px;
  color: #fff !important;
  background: var(--lp-purple) !important;
  border: 0;
  border-radius: 6px;
  padding: 14px 30px;
  cursor: pointer;
  transition: background .2s, transform .2s;
  text-transform: none;
}
.lp-btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--lp-purple-dark) !important; transform: translateY(-1px); }
.lp-btn--lg { font-size: 22px; padding: 16px 52px; text-transform: uppercase; }
.lp-btn--ghost { background: #fff !important; color: var(--lp-purple) !important; box-shadow: inset 0 0 0 2px var(--lp-purple); }
.woocommerce button.button.alt, .woocommerce a.button.alt { background: var(--lp-purple) !important; }

/* Announcement bar */
.lp-announce { background: var(--lp-green); color: #fff; font-weight: 700; font-size: 15px; text-align: center; }
.lp-announce .lp-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.lp-announce__track { flex: 1; position: relative; height: 40px; overflow: hidden; }
.lp-announce__msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .5s; }
.lp-announce__msg.is-on { opacity: 1; }
.lp-announce__msg a { color: #fff; }
.lp-announce button { background: none; border: 0; color: #fff; font-size: 18px; cursor: pointer; padding: 0 10px; opacity: .8; }

/* Header */
.lp-header { background: #fff; border-bottom: 1px solid var(--lp-line); position: sticky; top: 0; z-index: 50; }
.lp-header__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 18px 0 10px; }
.lp-header__left { display: flex; gap: 14px; align-items: center; }
.lp-header__right { display: flex; justify-content: flex-end; gap: 18px; align-items: center; }
.lp-icon { width: 26px; height: 26px; display: inline-flex; color: var(--lp-ink); position: relative; }
.lp-icon svg { width: 100%; height: 100%; }
.lp-cart-count { position: absolute; top: -6px; right: -9px; background: var(--lp-pink); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.lp-menu-toggle { display: none; background: none; border: 0; padding: 0; cursor: pointer; }

/* Rainbow wordmark */
.lp-logo { font-family: "Rubik", var(--lp-head); font-weight: 800; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: 2px; line-height: 1; white-space: nowrap; }
.lp-logo span:nth-child(7n+1) { color: var(--lp-pink); }
.lp-logo span:nth-child(7n+2) { color: var(--lp-orange); }
.lp-logo span:nth-child(7n+3) { color: var(--lp-mustard); }
.lp-logo span:nth-child(7n+4) { color: var(--lp-green); }
.lp-logo span:nth-child(7n+5) { color: var(--lp-teal); }
.lp-logo span:nth-child(7n+6) { color: var(--lp-blue); }
.lp-logo span:nth-child(7n+7) { color: var(--lp-purple); }
.lp-logo .lp-logo__gap { display: inline-block; width: .35em; }
.lp-logo .lp-logo__dot { color: var(--lp-pink) !important; }

.lp-nav ul { list-style: none; margin: 0; padding: 0 0 14px; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 30px; }
.lp-nav a { color: var(--lp-ink); font-size: 16px; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; }
.lp-nav a:hover, .lp-nav .current-menu-item > a { color: var(--lp-purple); border-bottom-color: var(--lp-mustard); }

/* Patterned frame (original "yarn stitch" motif) */
.lp-stitch {
  --s: 22px;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, var(--lp-pink) 25%, transparent 25%, transparent 75%, var(--lp-pink) 75%),
    linear-gradient(45deg, var(--lp-teal) 25%, transparent 25%, transparent 75%, var(--lp-teal) 75%),
    linear-gradient(-45deg, var(--lp-mustard) 25%, transparent 25%, transparent 75%, var(--lp-mustard) 75%),
    linear-gradient(-45deg, var(--lp-purple) 25%, transparent 25%, transparent 75%, var(--lp-purple) 75%);
  background-size: var(--s) var(--s), var(--s) var(--s), calc(var(--s)*1.5) calc(var(--s)*1.5), calc(var(--s)*2) calc(var(--s)*2);
  background-position: 0 0, calc(var(--s)/2) calc(var(--s)/2), 0 0, var(--s) 0;
  opacity: 1;
}
.lp-stitch--soft { position: relative; }
.lp-stitch--soft::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.55); pointer-events: none; }

/* Hero */
.lp-hero { padding: 34px 0; position: relative; overflow: hidden; }
.lp-hero__panel { position: relative; z-index: 1; background: #fff; margin: 0 34px; min-height: 320px; display: grid; grid-template-columns: 420px 1fr; align-items: center; gap: 40px; }
.lp-hero__circle { width: 440px; height: 440px; border-radius: 50%; overflow: hidden; margin: -60px 0 -60px -90px; border: 14px solid var(--lp-mustard); box-shadow: 0 0 0 10px #b5d36a; background: var(--lp-cream); }
.lp-hero__circle img { width: 100%; height: 100%; object-fit: cover; }
.lp-hero__copy { padding: 30px 30px 30px 0; }
.lp-hero__kicker { font-size: clamp(18px, 2vw, 26px); color: var(--lp-green); font-weight: 500; margin-bottom: 10px; }
.lp-hero__title { font-size: clamp(30px, 3.6vw, 46px); color: var(--lp-mustard); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 22px; }

/* Sale band */
.lp-sale { background: var(--lp-purple); color: #fff; text-align: center; padding: 26px 20px; }
.lp-sale h2 { color: #fff; margin: 0 0 4px; font-size: clamp(28px, 4vw, 48px); text-transform: uppercase; }
.lp-sale p { margin: 0; font-size: 17px; color: #fde9a8; }

/* Sections */
.lp-section { padding: 64px 0; }
.lp-section--cream { background: var(--lp-cream); }
.lp-section__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.lp-section__head p { margin: 0; max-width: 520px; }
.lp-link-arrow { font-weight: 700; color: var(--lp-purple); white-space: nowrap; }

/* Collection cards */
.lp-collections { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.lp-coll { display: block; border-radius: var(--lp-radius); overflow: hidden; background: #fff; box-shadow: 0 2px 0 var(--lp-line); transition: transform .2s; }
.lp-coll:hover { transform: translateY(-4px); }
.lp-coll img { aspect-ratio: 1/1; object-fit: cover; width: 100%; border-radius: var(--lp-radius); }
.lp-coll h3 { margin: 14px 4px 4px; font-size: 19px; }
.lp-coll span { display: block; margin: 0 4px 6px; font-size: 14px; color: var(--lp-purple); font-weight: 600; }

/* Color picker strip */
.lp-colors { text-align: center; }
.lp-swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 30px 0 34px; }
.lp-swatch { width: 104px; text-align: center; font-size: 14px; font-weight: 600; color: var(--lp-ink); }
.lp-swatch i { display: block; width: 84px; height: 84px; margin: 0 auto 10px; border-radius: 50%; border: 6px solid #fff; box-shadow: 0 0 0 3px var(--lp-line); position: relative; }
.lp-swatch i::after { content: attr(data-name); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-family: "Pacifico", cursive; font-style: normal; font-size: 17px; text-shadow: 0 1px 0 rgba(0,0,0,.12); }

/* Feature rows */
.lp-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 34px 0; }
.lp-feature--flip .lp-feature__media { order: 2; }
.lp-feature__media img { border-radius: 24px; width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.lp-feature__tag { display: inline-block; background: var(--lp-mustard); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.lp-feature ul { padding: 0; list-style: none; margin: 0 0 22px; }
.lp-feature li { padding-left: 30px; position: relative; margin-bottom: 8px; color: var(--lp-ink); }
.lp-feature li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--lp-green); box-shadow: inset 0 0 0 4px #c9e6cf; }

/* Trust strip */
.lp-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.lp-trust div { background: #fff; border-radius: var(--lp-radius); padding: 22px 18px; text-align: center; border: 2px dashed var(--lp-line); }
.lp-trust b { display: block; font-family: var(--lp-head); color: var(--lp-blue); font-size: 18px; margin-bottom: 4px; }
.lp-trust small { font-size: 14px; }
.lp-trust .lp-trust__dot { width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; }

/* Reviews placeholder */
.lp-reviews-empty { text-align: center; border: 3px dashed var(--lp-line); border-radius: 24px; padding: 40px 20px; }

/* Newsletter */
.lp-news { text-align: center; }
.lp-news form { display: flex; max-width: 480px; margin: 18px auto 0; gap: 10px; }
.lp-news input[type=email] { flex: 1; padding: 14px 16px; border: 2px solid var(--lp-line); border-radius: 6px; font: inherit; }

/* Footer */
.lp-footer { background: var(--lp-blue); color: rgba(255,255,255,.85); padding: 56px 0 26px; margin-top: 0; }
.lp-footer h4 { color: #fff; font-size: 18px; margin-bottom: 14px; }
.lp-footer a { color: rgba(255,255,255,.9); }
.lp-footer a:hover { color: var(--lp-mustard); }
.lp-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
.lp-footer ul { list-style: none; margin: 0; padding: 0; }
.lp-footer li { margin-bottom: 8px; }
.lp-footer .lp-logo span { color: #fff !important; }
.lp-footer__base { border-top: 1px solid rgba(255,255,255,.2); margin-top: 40px; padding-top: 20px; font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Generic page */
.lp-page { padding: 50px 0 70px; }
.lp-page .entry-content { max-width: 780px; color: var(--lp-ink); }
.lp-page .entry-content h2 { margin-top: 1.4em; font-size: 26px; }
.lp-faq details { border: 2px solid var(--lp-line); border-radius: 12px; padding: 14px 18px; margin-bottom: 12px; }
.lp-faq summary { font-family: var(--lp-head); font-weight: 700; color: var(--lp-blue); cursor: pointer; }

/* WooCommerce */
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0 !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; text-align: left; }
.woocommerce ul.products li.product a img { border-radius: var(--lp-radius); margin-bottom: 12px; aspect-ratio: 1/1; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--lp-head); font-size: 17px !important; color: var(--lp-blue); font-weight: 700; padding: 0 !important; }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--lp-pink) !important; font-weight: 800; font-size: 18px; }
.woocommerce ul.products li.product .price del, .woocommerce div.product p.price del { color: #9aa9b8; font-weight: 500; opacity: 1; }
.woocommerce ul.products li.product .button { margin-top: 10px; padding: 10px 18px; font-size: 14px; }
.woocommerce span.onsale { background: var(--lp-mustard) !important; color: #fff; font-weight: 800; border-radius: 999px; min-height: 0; min-width: 0; line-height: 1; padding: 8px 12px; top: 10px !important; left: 10px !important; right: auto !important; }
.woocommerce div.product { color: var(--lp-ink); }
.woocommerce div.product .product_title { font-size: clamp(26px, 3vw, 36px); }
.woocommerce div.product div.images img { border-radius: 20px; }
.woocommerce div.product form.cart .variations select { padding: 10px 12px; border: 2px solid var(--lp-line); border-radius: 8px; font: inherit; min-width: 200px; }
.woocommerce div.product form.cart .variations label { font-family: var(--lp-head); color: var(--lp-blue); font-weight: 700; }
.woocommerce .quantity .qty { padding: 12px 6px; border: 2px solid var(--lp-line); border-radius: 6px; font: inherit; }
.lp-name-field { margin: 0 0 18px; padding: 16px; background: var(--lp-cream); border: 2px dashed var(--lp-mustard); border-radius: 12px; }
.lp-name-field label { display: block; font-family: var(--lp-head); font-weight: 700; color: var(--lp-blue); margin-bottom: 6px; }
.lp-name-field input { width: 100%; padding: 12px 14px; border: 2px solid var(--lp-line); border-radius: 8px; font: inherit; font-size: 18px; }
.lp-name-field small { display: block; margin-top: 6px; color: var(--lp-blue-soft); }
.lp-bundle-note { display: flex; gap: 10px; align-items: center; background: #eef7f0; color: var(--lp-green); border-radius: 10px; padding: 10px 14px; font-weight: 700; margin: 0 0 16px; font-size: 15px; }
.lp-perks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 14px; }
.lp-perks li::before { content: "✓ "; color: var(--lp-green); font-weight: 800; }
.woocommerce-breadcrumb { font-size: 14px; }
.woocommerce-products-header__title { margin-top: 10px; }
.woocommerce .woocommerce-ordering select { padding: 8px 10px; border: 2px solid var(--lp-line); border-radius: 8px; font: inherit; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--lp-purple) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--lp-purple) !important; }

/* Responsive */
@media (max-width: 980px) {
  .lp-hero__panel { grid-template-columns: 1fr; margin: 0 18px; text-align: center; }
  .lp-hero__circle { width: 300px; height: 300px; margin: -40px auto 0; }
  .lp-hero__copy { padding: 0 20px 34px; }
  .lp-collections, .woocommerce ul.products, .lp-trust { grid-template-columns: repeat(2, 1fr); }
  .lp-feature { grid-template-columns: 1fr; gap: 24px; }
  .lp-feature--flip .lp-feature__media { order: 0; }
  .lp-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .lp-menu-toggle { display: inline-flex; }
  .lp-nav { display: none; }
  .lp-nav.is-open { display: block; }
  .lp-nav ul { flex-direction: column; align-items: center; gap: 10px; }
  .lp-header__row { padding: 14px 0; }
  .lp-section { padding: 46px 0; }
  .lp-section__head { flex-direction: column; align-items: start; }
  .lp-news form { flex-direction: column; }
  .lp-footer__grid { grid-template-columns: 1fr; }
  .lp-hero { padding: 18px 0; }
  .lp-hero__panel { margin: 0 12px; }
  .lp-hero__circle { width: 240px; height: 240px; }
  .lp-btn--lg { font-size: 18px; padding: 14px 32px; }
  .lp-perks { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .lp-logo { font-size: 21px; letter-spacing: 1px; }
  .lp-header__left, .lp-header__right { gap: 10px; }
  .lp-icon { width: 22px; height: 22px; }
  .lp-announce { font-size: 12.5px; }
  .lp-announce__msg { padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ===== Product page: personalization ===== */
.lp-pdp-badge { display: inline-block; background: var(--lp-pink); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: 1px; padding: 6px 12px; border-radius: 999px; margin: 0 0 12px; }
.lp-pdp-points { list-style: none; padding: 0; margin: 0 0 18px; color: var(--lp-ink); }
.lp-pdp-points li { margin-bottom: 6px; }
.lp-pdp-points span { display: inline-block; width: 26px; }
.lp-opts { margin: 6px 0 4px; }
.lp-opt { border: 0; padding: 0; margin: 0 0 18px; }
.lp-opt legend, .lp-opt__label { font-family: var(--lp-head); font-weight: 700; color: var(--lp-blue); margin-bottom: 8px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; width: 100%; }
.lp-opt em, .lp-confirm em { color: var(--lp-pink); font-style: normal; }
.lp-opt__val { color: var(--lp-ink); font-weight: 500; }
.lp-opt__hint { color: var(--lp-blue-soft); font-weight: 500; font-size: 14px; }
.lp-opt__count { margin-left: auto; font-size: 13px; color: var(--lp-blue-soft); font-weight: 500; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-chip input, .lp-addon-tab input, .lp-addon-item input { position: absolute; opacity: 0; pointer-events: none; }
.lp-chip i { display: block; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #d9dfe6; cursor: pointer; transition: transform .15s; }
.lp-chip input:checked + i { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--lp-purple); transform: scale(1.05); }
.lp-chip input:focus-visible + i { outline: 2px solid var(--lp-purple); outline-offset: 4px; }
.lp-input { width: 100%; padding: 12px 14px; border: 2px solid var(--lp-line); border-radius: 10px; font: inherit; font-size: 18px; color: var(--lp-ink); }
.lp-input:focus { border-color: var(--lp-purple); outline: none; }
.lp-preview { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.lp-preview__bag { width: 150px; height: 70px; border-radius: 22px 22px 14px 14px; background: var(--lp-preview-bag, #e8919f); display: flex; align-items: center; justify-content: center; box-shadow: inset 0 -10px 0 rgba(0,0,0,.08); }
.lp-preview__name { font-family: "Pacifico", cursive; font-size: 24px; color: var(--lp-preview-yarn, #fbf3e2); text-shadow: 0 2px 0 rgba(0,0,0,.15); max-width: 140px; overflow: hidden; white-space: nowrap; }
.lp-preview small { color: var(--lp-blue-soft); }
.lp-addon-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.lp-addon-tab span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 2px solid var(--lp-line); border-radius: 999px; cursor: pointer; font-size: 14px; color: var(--lp-ink); background: #fff; }
.lp-addon-tab svg { width: 22px; height: 22px; }
.lp-addon-tab input:checked + span { border-color: var(--lp-purple); background: #f6eff8; color: var(--lp-purple); font-weight: 700; }
.lp-addon-panel { background: var(--lp-cream); border-radius: 14px; padding: 14px; }
.lp-addon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 10px; }
.lp-addon-item { text-align: center; cursor: pointer; }
.lp-addon-item span { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; background: #fff; border: 2px solid var(--lp-line); border-radius: 12px; padding: 10px; transition: border-color .15s; }
.lp-addon-item svg { width: 100%; height: 100%; }
.lp-addon-item small { display: block; font-size: 12px; margin-top: 4px; color: var(--lp-ink); }
.lp-addon-item input:checked + span { border-color: var(--lp-purple); box-shadow: 0 0 0 2px var(--lp-purple) inset; }
.lp-addon-item.is-disabled { opacity: .4; cursor: not-allowed; }
.lp-addon-status { margin: 10px 0 0; font-size: 13px; color: var(--lp-blue-soft); }
.lp-confirm { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--lp-ink); margin: 0 0 14px; cursor: pointer; }
.lp-confirm input { margin-top: 4px; accent-color: var(--lp-purple); }
.lp-linkbtn { background: none; border: 0; padding: 0; color: var(--lp-purple); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.lp-opts__sizechart { margin: 0 0 14px; }
.lp-modal { border: 0; border-radius: 18px; padding: 26px; max-width: 460px; width: calc(100% - 32px); }
.lp-modal::backdrop { background: rgba(20,30,50,.45); }
.lp-modal__close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--lp-ink); }
.lp-table { width: 100%; border-collapse: collapse; font-size: 14px; color: var(--lp-ink); }
.lp-table th, .lp-table td { border-bottom: 1px solid var(--lp-line); padding: 8px; text-align: left; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom-color: #fff; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-family: var(--lp-head); color: var(--lp-blue); }

/* ===== Product page: story sections ===== */
.lp-pdp-extras { clear: both; width: 100%; padding-top: 30px; }
.lp-pdp-sec { padding: 46px 0; border-top: 1px solid var(--lp-line); }
.lp-pdp-sec > h2 { text-align: center; }
.lp-sub { text-align: center; margin-top: -6px; }
.lp-ugc__row { display: flex; gap: 16px; overflow-x: auto; padding: 10px 2px 14px; scroll-snap-type: x mandatory; }
.lp-ugc__card { flex: 0 0 210px; margin: 0; scroll-snap-align: start; }
.lp-ugc__media { aspect-ratio: 9/16; border-radius: 18px; background: repeating-linear-gradient(135deg, #f6eff8 0 14px, #fff8ec 14px 28px); border: 2px dashed #d7c8e0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--lp-purple); text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.lp-ugc__play { width: 54px; height: 54px; border-radius: 50%; background: var(--lp-purple); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; padding-left: 4px; }
.lp-ugc__card figcaption { margin-top: 8px; font-weight: 700; color: var(--lp-ink); font-size: 14px; text-align: center; }
.lp-icons { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; text-align: center; }
.lp-icons b { display: flex; width: 58px; height: 58px; margin: 0 auto 10px; border-radius: 50%; background: var(--lp-cream); align-items: center; justify-content: center; font-size: 26px; }
.lp-icons h3 { font-size: 16px; margin-bottom: 2px; }
.lp-icons p { font-size: 13px; margin: 0; }
.lp-story { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.lp-story img { border-radius: 24px; }
.lp-materials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lp-materials article { background: var(--lp-cream); border-radius: 20px; padding: 14px 14px 20px; }
.lp-materials img { border-radius: 14px; aspect-ratio: 4/3; object-fit: cover; width: 100%; margin-bottom: 12px; }
.lp-materials h3 { font-size: 18px; }
.lp-materials p { font-size: 14px; margin: 0; }
.lp-compare__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; margin: 0 auto; }
.lp-compare__col { border-radius: 20px; padding: 24px; }
.lp-compare__col ul { list-style: none; padding: 0; margin: 0; }
.lp-compare__col li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px dashed rgba(0,0,0,.08); color: var(--lp-ink); }
.lp-compare__col--them { background: #f2f4f7; }
.lp-compare__col--them h3 { color: #7a8794; }
.lp-compare__col--them li::before { content: "✕"; position: absolute; left: 4px; color: #a0aab4; font-weight: 800; }
.lp-compare__col--us { background: #f6eff8; box-shadow: 0 0 0 3px var(--lp-purple) inset; }
.lp-compare__col--us .lp-logo { font-size: 24px; }
.lp-compare__col--us li::before { content: "✓"; position: absolute; left: 4px; color: var(--lp-green); font-weight: 800; }
.lp-steps ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.lp-steps li { text-align: center; position: relative; }
.lp-steps li span { position: absolute; top: 10px; left: 10px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; background: var(--lp-mustard); color: #fff; font-family: var(--lp-head); font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.lp-steps img { border-radius: 20px; aspect-ratio: 1; object-fit: cover; width: 100%; margin-bottom: 12px; }
.lp-steps p { font-size: 14px; }
.lp-promise { text-align: center; }
.lp-promise > p { max-width: 620px; margin: 0 auto 20px; }
@media (max-width: 860px) {
  .lp-icons { grid-template-columns: repeat(2, 1fr); }
  .lp-story, .lp-compare__grid, .lp-materials__grid, .lp-steps ol { grid-template-columns: 1fr; }
}

/* Imported media on the Classic backpack product. */
.postid-16 .lp-ugc__card { flex-basis: min(260px, 72vw); }
.postid-16 .lp-ugc__card video { display:block; width:100%; aspect-ratio:9/16; object-fit:cover; background:#eee; border-radius:18px; }
.postid-16 .lp-compare__photo { width:100%; aspect-ratio:1; object-fit:cover; border-radius:14px; margin-bottom:18px; }
.postid-16 .lp-import-details__grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:center; gap:20px; }
.postid-16 .lp-import-details__grid img { width:100%; border-radius:16px; }
.postid-16 .lp-import-photos__grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px; }
.postid-16 .lp-import-photos__grid img { display:block; width:100%; aspect-ratio:1; object-fit:cover; border-radius:14px; }
.postid-16 .woocommerce-product-gallery .flex-control-thumbs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.postid-16 .woocommerce-product-gallery .flex-control-thumbs li { width:100% !important; }
@media(max-width:720px) {
 .postid-16 .lp-import-details__grid { grid-template-columns:1fr; }
 .postid-16 .lp-import-photos__grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
}

/* Image swatches (from product option charts) */
.lp-chip i { overflow: hidden; background: #f3eee8; }
.lp-chip i img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); }
.lp-chips { gap: 8px; }
.lp-chip i { width: 40px; height: 40px; }
.lp-addon-tab img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.lp-addon-item span { padding: 0; overflow: hidden; }
.lp-addon-item img { width: 100%; height: 100%; object-fit: cover; }
.lp-addon-grid { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
.lp-ugc__video { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 18px; background: #000; display: block; }

/* ===== Product options v2 ===== */
.lp-sale-pill { display: inline-block; vertical-align: middle; margin-left: 8px; background: var(--lp-mustard); color: #3a2a00; font-size: 12px; font-weight: 800; letter-spacing: .5px; padding: 5px 10px; border-radius: 999px; }
.lp-hidden-select { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.woocommerce div.product form.cart .variations { border: 0; margin-bottom: 4px; }
.woocommerce div.product form.cart .variations tr { display: block; margin-bottom: 14px; }
.woocommerce div.product form.cart .variations th, .woocommerce div.product form.cart .variations td { display: block; padding: 0; text-align: left; line-height: 1.3; }
.woocommerce div.product form.cart .variations th label { font-family: var(--lp-head); font-size: 15px; font-weight: 700; color: var(--lp-ink); margin-bottom: 8px; display: block; }
.woocommerce div.product form.cart .reset_variations { display: none !important; }
.lp-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-sw { cursor: pointer; font: inherit; }
.lp-sw--pill { min-width: 104px; padding: 11px 22px; border-radius: 999px; border: 2px solid #c9b6dd; background: #fff; color: var(--lp-ink); font-family: var(--lp-head); font-weight: 700; font-size: 15px; }
.lp-sw--pill.is-on { background: var(--lp-purple); border-color: var(--lp-purple); color: #fff; }
.lp-sw--color { width: 68px; height: 68px; border-radius: 50%; padding: 4px; border: 2px solid transparent; background: #f4f1ee; box-shadow: inset 0 0 0 1px #e6e0da; display: flex; align-items: center; justify-content: center; transition: transform .15s; }
.lp-sw--color img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.lp-sw--color:hover { transform: translateY(-2px); }
.lp-sw--color.is-on { border-color: var(--lp-purple); box-shadow: 0 0 0 3px #fff inset, 0 0 0 1px #e6e0da inset; }
.lp-opt__label { font-family: var(--lp-head); font-size: 15px; font-weight: 700; color: var(--lp-ink); margin: 0 0 8px; display: block; }
.lp-opt__label em { color: var(--lp-pink); font-style: normal; }
.lp-opt__sep { color: #9aa5b1; font-weight: 500; margin: 0 2px; }
.lp-opt__val { font-weight: 600; color: var(--lp-ink); }
/* Yarn dropdown */
.lp-yarn { position: relative; }
.lp-yarn__btn { width: 100%; display: flex; align-items: center; gap: 14px; padding: 8px 16px; background: #fff; border: 2px solid var(--lp-ink); border-radius: 10px; cursor: pointer; font: inherit; color: var(--lp-ink); min-height: 72px; }
.lp-yarn__btn .lp-yarn__name { flex: 1; text-align: center; font-weight: 600; }
.lp-yarn__caret { font-size: 20px; line-height: 1; }
.lp-yarn__img { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 52px; flex: 0 0 auto; border-radius: 8px; }
.lp-yarn__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lp-yarn__list { list-style: none; margin: 0; padding: 6px 0; position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% - 2px); background: #fff; border: 2px solid var(--lp-ink); border-top: 0; border-radius: 0 0 10px 10px; max-height: 380px; overflow-y: auto; box-shadow: 0 12px 24px rgba(20,30,50,.12); }
.lp-yarn.is-open .lp-yarn__btn { border-radius: 10px 10px 0 0; }
.lp-yarn__opt { display: flex; align-items: center; gap: 14px; padding: 8px 16px; cursor: pointer; color: var(--lp-ink); font-weight: 600; }
.lp-yarn__opt:hover, .lp-yarn__opt.is-on { background: #f6eff8; }
.lp-yarn__opt--multi .lp-yarn__img { width: 220px; height: 44px; }
.lp-yarn__opt--solid .lp-yarn__img { width: 56px; height: 46px; }
.lp-yarn__opt--multi + .lp-yarn__opt--solid { border-top: 1px solid var(--lp-line); margin-top: 4px; padding-top: 12px; }
.lp-yarn__opt[data-value="White"] .lp-yarn__img, .lp-yarn__btn .lp-yarn__img { background: #f1ede8; }
/* Name */
.lp-input-wrap { position: relative; }
.lp-input-wrap .lp-input { padding-right: 60px; border-color: #c9b6dd; font-size: 16px; }
.lp-input-count { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 13px; color: #8a96a3; }
/* Element tabs */
.lp-el-tabs { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-el-tab input { position: absolute; opacity: 0; pointer-events: none; }
.lp-el-tab span { display: inline-block; padding: 11px 12px; border: 2px solid var(--lp-ink); border-radius: 6px; background: #fff; font-family: var(--lp-head); font-weight: 700; font-size: 14px; color: var(--lp-ink); cursor: pointer; }
.lp-el-tab input:checked + span { background: #c7b0e6; border-color: var(--lp-ink); color: #fff; }
.lp-el-tab input:focus-visible + span { outline: 2px solid var(--lp-purple); outline-offset: 2px; }
/* Element grid */
.lp-el-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 30px; }
.lp-el { display: flex; align-items: center; gap: 12px; }
.lp-el__img { width: 64px; height: 64px; flex: 0 0 64px; padding: 4px; background: #fff; border: 2px solid #bfc6cf; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lp-el__img img { width: 100%; height: 100%; object-fit: contain; }
.lp-el.is-on .lp-el__img { border-color: var(--lp-purple); box-shadow: 0 0 0 1px var(--lp-purple); }
.lp-el__qty { display: flex; align-items: center; gap: 4px; }
.lp-el__qty button { width: 24px; height: 24px; border-radius: 50%; border: 1px solid #9aa5b1; background: #fff; color: #6b7785; font-size: 14px; line-height: 1; cursor: pointer; padding: 0; }
.lp-el__qty button:disabled { opacity: .35; cursor: default; }
.lp-el__qty input { width: 44px; height: 38px; text-align: center; border: 0; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08); border-radius: 8px; font: inherit; color: var(--lp-ink); -moz-appearance: textfield; }
.lp-el__qty input::-webkit-outer-spin-button, .lp-el__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.lp-el-status { font-size: 13px; color: #6b7785; margin: 10px 0 0; }
.lp-confirm { font-size: 14px; }
@media (max-width: 480px) {
  .lp-el-grid { grid-template-columns: 1fr; }
  .lp-sw--color { width: 58px; height: 58px; }
  .lp-yarn__opt--multi .lp-yarn__img { width: 160px; }
}
.woocommerce div.product form.cart .variations td.value, .woocommerce div.product form.cart .variations td { text-align: left !important; }
.lp-swatches { justify-content: flex-start; }
.lp-sw--color { width: 62px; height: 62px; }

/* ===== Backpack-only homepage ===== */
.lp-home-colors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 30px 0 0; }
.lp-home-color { display: block; text-align: center; color: var(--lp-ink); }
.lp-home-color__photo { display: block; border-radius: 22px; overflow: hidden; aspect-ratio: 1; background: var(--lp-cream); transition: transform .2s; }
.lp-home-color__photo img { width: 100%; height: 100%; object-fit: cover; }
.lp-home-color:hover .lp-home-color__photo { transform: translateY(-4px); }
.lp-home-color__dot { display: flex; width: 56px; height: 56px; margin: -28px auto 6px; position: relative; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(20,30,50,.15); padding: 4px; }
.lp-home-color__dot img { width: 100%; height: 100%; object-fit: contain; }
.lp-home-color b { font-family: var(--lp-head); font-size: 16px; }
.lp-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.lp-featured__media img { border-radius: 24px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.lp-featured__price { font-size: 26px; color: var(--lp-pink); font-weight: 800; }
.lp-featured__price del { color: #9aa9b8; font-size: 18px; font-weight: 500; }
.lp-featured ul { list-style: none; padding: 0; margin: 0 0 24px; }
.lp-featured li { padding-left: 30px; position: relative; margin-bottom: 8px; color: var(--lp-ink); }
.lp-featured li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--lp-green); box-shadow: inset 0 0 0 4px #c9e6cf; }
.lp-ugc__row--center { justify-content: center; }
@media (max-width: 860px) {
  .lp-home-colors { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .lp-featured { grid-template-columns: 1fr; gap: 24px; }
}
.lp-swatches--color { display: grid; grid-template-columns: repeat(4, 66px); gap: 12px 14px; }
.lp-sw--color { width: 66px; height: 66px; }

/* ===== Centered, uncropped option images ===== */
/* Round color swatch: image sits inside the circle's inscribed square, never clipped */
.lp-sw--color { padding: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lp-sw--color img { width: 74%; height: 74%; object-fit: contain; object-position: center; border-radius: 0; display: block; margin: auto; }
/* Yarn dropdown thumbnails */
.lp-yarn__img { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lp-yarn__img img { width: auto; height: auto; max-width: 88%; max-height: 88%; object-fit: contain; object-position: center; display: block; margin: auto; }
.lp-yarn__opt--multi .lp-yarn__img { width: 230px; height: 46px; }
.lp-yarn__opt--multi .lp-yarn__img img { max-width: 100%; max-height: 100%; }
.lp-yarn__btn .lp-yarn__img { width: 64px; height: 52px; }
/* Element tiles */
.lp-el__img { padding: 5px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lp-el__img img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
/* Homepage color dot */
.lp-home-color__dot { align-items: center; justify-content: center; padding: 0; overflow: hidden; }
.lp-home-color__dot img { width: 74%; height: 74%; object-fit: contain; }
