/*
Theme Name: INNMI Peptide
Description: 1:1 storefront port of shop.innmi.shop (zh)
Version: 1.0.0
*/
@import url("assets/target.css");
@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&display=swap");

html, body { min-height: 100%; }
body {
  font-family: Geist, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--color-ink, #0b2338);
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 1 auto; }

/* WooCommerce base cleanups */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  max-width: 72rem; margin: 16px auto; border-radius: 14px;
}
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* Christmas decoration on the hero poster */
.poster-carousel { box-shadow: 0 0 0 1px #14532d2e, 0 22px 44px -26px #7f1d1d66; }

/* page-wide snow, top garland, bottom grass (bbwickcandles-style) */
body { padding-bottom: 46px; padding-top: 38px; }
.xmas-page-snow { position: fixed; inset: 0; z-index: 30; overflow: hidden; pointer-events: none; }
.xmas-page-snow i { position: absolute; top: -12px; display: block; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #ffffffaa; animation-name: xmas-fall; animation-timing-function: linear; animation-iteration-count: infinite; }
@keyframes xmas-fall { 0% { transform: translate3d(0, -10px, 0); } 50% { transform: translate3d(14px, 45vh, 0); } 100% { transform: translate3d(-8px, 102vh, 0); opacity: .15; } }
.xmas-top-garland { position: absolute; top: 0; left: 0; right: 0; height: 40px; z-index: 45; pointer-events: none; filter: drop-shadow(0 3px 4px #071c4033); }
.xmas-top-garland svg { width: 100%; height: 40px; display: block; }
.xmas-top-hat { position: absolute; left: 8px; top: 0; font-size: 34px; line-height: 1; filter: drop-shadow(0 3px 4px #071c4055); }
.xmas-top-bell { position: absolute; right: 10px; top: 2px; font-size: 27px; line-height: 1; filter: drop-shadow(0 3px 4px #071c4055); }
.xmas-bottom-grass { position: fixed; bottom: 0; left: 0; right: 0; height: 42px; z-index: 31; pointer-events: none; }
.xmas-bottom-grass svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.xmas-g-santa, .xmas-g-gift, .xmas-g-deer, .xmas-g-tree { position: absolute; bottom: 20px; font-size: 30px; line-height: 1; filter: drop-shadow(0 3px 5px #071c4066); }
.xmas-g-santa { left: 16px; }
.xmas-g-gift { left: 58px; font-size: 26px; }
.xmas-g-deer { right: 58px; }
.xmas-g-tree { right: 14px; }
.poster-edition { bottom: 20px !important; }
@media (max-width: 640px) {
  body { padding-top: 40px; padding-bottom: 40px; }
  #langSelect { max-width: 7.2rem !important; font-size: 12.5px; }
  #currencySelect { max-width: 8rem !important; font-size: 12px; }
  .xmas-top-garland, .xmas-top-garland svg { height: 36px; }
  .xmas-top-hat { font-size: 27px; }
  .xmas-top-bell { font-size: 21px; }
  .xmas-bottom-grass { height: 34px; }
  .xmas-g-santa, .xmas-g-gift, .xmas-g-deer, .xmas-g-tree { bottom: 14px; font-size: 24px; }
  .xmas-g-gift { font-size: 21px; }
  .poster-edition { bottom: 14px !important; font-size: 8px; }
}
.xmas-ribbon { position: absolute; top: 14px; right: 18px; z-index: 6; display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; background: linear-gradient(100deg, #0f5132, #157347 55%, #b02a2a); border: 1px solid #f5c76b; box-shadow: 0 6px 18px #071c4055; }
@media (max-width: 640px) { .xmas-ribbon { top: auto; bottom: 96px; right: 10px; font-size: 10.5px; padding: 5px 10px; } .xmas-snow i:nth-child(n+15) { display: none; } }
@media (prefers-reduced-motion: reduce) { .xmas-snow i { animation: none; top: auto; } }

/* checkout / home notice */
.lyo-note { background: #f1f6fb; border: 1px solid var(--color-ice-200); border-radius: 14px; padding: 13px 16px; font-size: 13px; line-height: 1.65; color: var(--color-navy-800); }
.lyo-note p + p { margin-top: 6px; }
.lyo-note-lead { font-weight: 600; }
.lyo-note a { font-weight: 600; text-decoration: underline; }

/* simplified checkout */
.woocommerce-checkout form.checkout { display: block !important; }
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review { width: 100% !important; float: none !important; }
.woocommerce-checkout #order_review { margin-top: 22px; }
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 { width: 100% !important; float: none !important; }
.woocommerce-checkout .woocommerce-billing-fields > h3,
.woocommerce-checkout .woocommerce-shipping-fields > h3,
.woocommerce-checkout #ship-to-different-address,
.woocommerce-checkout .woocommerce-additional-fields { display: none !important; }
.woocommerce-checkout .woocommerce-shipping-fields.co-ship-hidden { display: block !important; }
.co-section { border: 1px solid var(--color-ice-200); border-radius: 14px; background: #fff; padding: 18px; margin-bottom: 18px; }
.co-section h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 12px; color: var(--color-navy-900); }
.co-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.co-head h3 { margin: 0; }
.co-login { font-size: 13px; color: var(--color-teal-700); }
.co-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--color-muted); margin-top: 10px; }
.co-hint { font-size: 12.5px; color: var(--color-muted); margin: -4px 0 12px; }
.co-radio { display: flex; align-items: center; gap: 9px; border: 1px solid var(--color-ice-200); border-radius: 10px; padding: 11px 12px; margin-top: 8px; font-size: 13.5px; cursor: pointer; }
.co-radio:has(input:checked) { border-color: var(--color-brand-500); background: #f3f7ff; }
body:not(.co-billing-diff) .co-billing-fields .form-row:not(#billing_email_field) { display: none !important; }
body.co-billing-diff .co-billing-fields .form-row { display: block !important; }
body.co-billing-diff .co-billing-fields { border: 1px solid var(--color-ice-200); border-radius: 14px; padding: 16px; background: #fff; }
.co-contact .form-row { margin: 0; }
.woocommerce-checkout .form-row label { font-size: 12.5px; font-weight: 600; color: var(--color-navy-800); }

/* promo ticker */
.promo-ticker { background: #071c40; color: #dbe9f6; overflow: hidden; border-bottom: 1px solid #ffffff14; }
.promo-ticker-track { display: flex; align-items: center; gap: 26px; width: max-content; padding: 8px 0; animation: promo-scroll 42s linear infinite; }
.promo-ticker:hover .promo-ticker-track { animation-play-state: paused; }
.promo-ticker-item { font-size: 12.5px; white-space: nowrap; letter-spacing: .01em; }
.promo-ticker-dot { width: 5px; height: 5px; border-radius: 50%; background: #6fd0c8; flex: 0 0 auto; }
@keyframes promo-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[dir="rtl"] .promo-ticker-track { animation-name: promo-scroll-rtl; }
@keyframes promo-scroll-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .promo-ticker-track { animation: none; } }

/* sale flag on cards */
.sale-flag { position: absolute; left: .55rem; top: 2.3rem; z-index: 3; background: #d92d20; color: #fff; border-radius: 999px; padding: .18rem .5rem; font-size: .55rem; font-weight: 800; letter-spacing: .06em; }
@media (min-width: 640px) { .sale-flag { left: .75rem; top: 2.7rem; font-size: .6rem; } }

/* PDP promo tip */
.pdp-promo { background: #fff7e6; border: 1px solid #f2dfb8; color: #7a5b16; border-radius: 10px; padding: 9px 12px; font-size: 12.5px; margin: 0 0 12px; }

/* shared brand bits not covered by utilities */
.brand-gradient { background-image: linear-gradient(120deg, var(--color-navy-800), var(--color-brand-500) 55%, var(--color-teal-500)); }
.brand-text { background-image: linear-gradient(100deg, var(--color-brand-500), var(--color-teal-300)); color: transparent; -webkit-background-clip: text; background-clip: text; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 999px; padding: .7rem 1.25rem; font-size: .88rem; font-weight: 600; line-height: 1.2; cursor: pointer; transition: background .18s, border-color .18s, color .18s, filter .18s; }
.btn-primary { background: var(--color-brand-500); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline { border: 1px solid var(--color-ice-200); background: #fff; color: var(--color-navy-900); }
.btn-outline:hover { border-color: var(--color-teal-500); color: var(--color-teal-700); }
.btn-ghost-light { border: 1px solid #ffffff55; color: #fff; background: #ffffff10; }
.btn-ghost-light:hover { background: #ffffff22; }
.btn-sm { padding: .45rem .8rem; font-size: .8rem; }
.field { width: 100%; border: 1px solid var(--color-ice-200); border-radius: 12px; background: #fff; padding: .55rem .8rem; font-size: .875rem; color: var(--color-navy-900); outline: none; }
.field:focus { border-color: var(--color-teal-500); }
.card { background: #fff; border: 1px solid var(--color-ice-200); border-radius: 1rem; }

/* product photo overlay (layout from target stylesheet) */
.official-product-photo { position: absolute; inset: 0; overflow: hidden; container-type: inline-size; }
.official-product-photo img { width: 100%; height: 100%; object-fit: contain; }
.official-product-photo .official-vial-name { width: 14%; transform: translate(-50%, -50%) scaleX(.7); }

/* spec chips on cards */
.spec-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.spec-chip { border: 1px solid var(--color-ice-200); background: #fff; color: var(--color-navy-800); border-radius: 8px; padding: 3px 7px; font-size: 10.5px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.spec-chip:hover { border-color: var(--color-teal-500); }
.spec-chip.is-active { background: var(--color-brand-500); border-color: var(--color-brand-500); color: #fff; }

/* PDP */
.pdp-stars { color: #ffb400; font-size: 14px; letter-spacing: 1px; margin-top: 10px; }
.pdp-stars span { color: #7a5b16; font-size: 13px; font-weight: 700; letter-spacing: 0; }
.pdp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 10px 0 16px; }
.pdp-price del { color: #8a94a0; font-size: 14px; text-decoration: line-through; }
.pdp-price strong { font-size: 24px; color: var(--color-navy-900); }
.pdp-spec-box { border: 1px solid var(--color-ice-200); border-radius: 14px; background: #fff; padding: 12px; }
.pdp-spec-label { text-align: center; font-size: 13px; color: var(--color-muted); margin-bottom: 10px; }
.pdp-spec-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-pill { border: 1px solid #dbe4ee; background: #fff; color: var(--color-navy-900); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.pdp-pill:hover { border-color: var(--color-teal-500); }
.pdp-pill.is-active { background: #061a3a; border-color: #061a3a; color: #fff; }
.pdp-qty-title { text-align: center; font-size: 13.5px; color: var(--color-muted); margin: 18px 0 8px; }
.pdp-buy-form .qty-stepper { margin: 0 auto; display: flex; width: max-content; }
.pdp-cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.pdp-add-main, .pdp-buy-now { border: 0; border-radius: 999px; padding: 13px 10px; font: inherit; font-size: 14px; font-weight: 700; color: #fff; cursor: pointer; }
.pdp-add-main { background: #3b63e0; }
.pdp-add-main:hover { filter: brightness(1.07); }
.pdp-buy-now { background: #061a3a; }
.pdp-buy-now:hover { filter: brightness(1.25); }
.pdp-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-top: 14px; font-size: 12.5px; color: var(--color-teal-700); }
.pdp-variation-hidden { display: none !important; }
.pdp-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.pdp-table thead { background: #f2f8fb; color: var(--color-muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.pdp-table th { padding: 10px 14px; text-align: left; font-weight: 700; }
.pdp-table td { padding: 12px 14px; border-top: 1px solid var(--color-ice-200); vertical-align: top; }
.pdp-row-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 4px; font-size: 11px; color: var(--color-muted); }
.pdp-row-price .sale { color: var(--color-teal-700); font-size: 13px; font-weight: 700; }
.pdp-off { background: #dcf3f1; color: var(--color-teal-700); border-radius: 4px; padding: 1px 6px; font-size: 10px; font-weight: 800; }
.pdp-sku { font-family: ui-monospace, Menlo, monospace; font-size: 11px; font-weight: 700; color: var(--color-teal-700); white-space: nowrap; }
.pdp-buy { text-align: end; white-space: nowrap; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--color-ice-200); border-radius: 10px; overflow: hidden; }
.qty-stepper button { width: 26px; height: 30px; background: #fff; color: var(--color-navy-800); font-size: 14px; cursor: pointer; }
.qty-stepper input { width: 38px; height: 30px; border: 0; text-align: center; font-size: 12px; outline: none; }
.pdp-add { display: block; width: 100%; margin-top: 6px; border-radius: 8px; background: var(--color-brand-500); color: #fff; font-size: 11px; font-weight: 700; padding: 6px 8px; cursor: pointer; white-space: nowrap; }
.pdp-add:hover { filter: brightness(1.08); }
.pdp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.coa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 900px) { .coa-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.coa-card { border: 1px solid var(--color-ice-200); border-radius: 14px; overflow: hidden; background: #fff; }
.coa-card img { width: 100%; height: 180px; object-fit: cover; background: #f6f9fc; }
.coa-card-body { padding: 10px 12px; font-size: 12px; }
.coa-card-body b { display: block; font-size: 13px; color: var(--color-navy-900); margin-bottom: 2px; }
.coa-card-body span { color: var(--color-muted); }
.coa-card-body em { display: block; margin-top: 6px; font-style: normal; font-weight: 700; color: var(--color-teal-700); }

/* WooCommerce cart / checkout / account */
.woocommerce table.shop_table { border: 1px solid var(--color-ice-200); border-radius: 14px; overflow: hidden; }
.woocommerce table.shop_table th { background: var(--color-ice-50); }
.woocommerce .button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit { border-radius: 999px; background: var(--color-brand-500); color: #fff; font-weight: 600; padding: .65rem 1.3rem; }
.woocommerce .button:hover { filter: brightness(1.08); }
.woocommerce table.shop_table td { border-color: var(--color-ice-200); }
.woocommerce .cart_totals, .woocommerce-checkout #customer_details, .woocommerce-checkout #order_review { background: #fff; border: 1px solid var(--color-ice-200); border-radius: 16px; padding: 18px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { border: 1px solid var(--color-ice-200); border-radius: 10px; padding: .6rem .8rem; }
.woocommerce .woocommerce-customer-details address { border-radius: 12px; }
.woocommerce-info, .woocommerce-message, .woocommerce-error { border-radius: 12px; border-top: 0; }
.woocommerce-cart-form__cart-item img { width: 96px; height: 96px; object-fit: contain; }
.woocommerce-cart-form__cart-item td.product-thumbnail { width: 120px; }
.wc-proceed-to-checkout .button, .woocommerce #payment #place_order { background: var(--color-brand-500) !important; color: #fff !important; }
.woocommerce .cart_totals h2 { font-size: 1.1rem; font-weight: 600; }

/* COA hero */
.coa-hero { display: grid; gap: 34px; align-items: start; }
@media (min-width: 900px) { .coa-hero { grid-template-columns: 1.1fr .9fr; gap: 48px; } }
.coa-step { display: flex; gap: 14px; }
.coa-num { width: 32px; height: 32px; border-radius: 999px; flex: 0 0 32px; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; background-image: linear-gradient(120deg, var(--color-navy-800), var(--color-brand-500) 55%, var(--color-teal-500)); }

/* category chips */
.cat-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.cat-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--color-ice-200); background: #fff; color: var(--color-navy-800); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; cursor: pointer; }
.cat-chip span { font-size: 11px; opacity: .7; margin-inline-start: 3px; }
.cat-chip:hover { border-color: var(--color-teal-500); color: var(--color-teal-700); }
.cat-chip.is-active { background: var(--color-brand-500); border-color: var(--color-brand-500); color: #fff; }
.cat-chip.is-active span { opacity: .85; }
.is-filtered { display: none !important; }

/* small phones: tighter chips and headings */
@media (max-width: 480px) {
  .cat-chips { gap: 6px; }
  .cat-chip { font-size: 12.5px; padding: 5px 11px; gap: 4px; }
  .cat-chip span { font-size: 10px; }
  .pdp-pill { font-size: 12px; padding: 6px 11px; }
  .shop-head h1, h1.text-4xl { font-size: 30px; line-height: 1.2; }
  .shop-head p { font-size: 13px; }
}

/* PDP hero layout */
.pdp-wrap { display: grid; gap: 34px; }
@media (min-width: 900px) { .pdp-wrap { grid-template-columns: 1fr 1.05fr; gap: 52px; align-items: start; } }
.pdp-photo { position: relative; aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: linear-gradient(165deg, #f4f8fc 20%, color-mix(in srgb, #0b63c4 16%, white)); border: 1px solid var(--color-ice-200); }
.pdp-photo .official-product-photo { position: absolute; inset: 0; }
