/* JoinHerGlow additions on top of the Canvas "fashion-store" demo (style.css,
   font-icons.css, swiper.css, fashion-store.css, custom.css). These are the
   pieces the theme has no equivalent for - text logo, flash-sale bar, flash
   messages, exit-intent modal, sticky add-bar, social-proof ticker - built
   entirely from the theme's own --loom-*/--cnvs-* tokens so a future palette
   swap (editing those tokens) re-skins these too, with no separate upkeep. */


/* ---- Flash-sale promo bar ---- */
.promo-bar {
  background: var(--loom-black);
  color: #fff;
  text-align: center;
  font-family: var(--cnvs-font-primary);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  padding: 9px 16px;
}
.promo-bar strong { color: var(--loom-camel); font-weight: 700; }
.promo-bar[hidden] { display: none; }

/* ---- Flash messages ---- */
.flash {
  padding: 13px 18px;
  border-radius: 3px;
  font-family: var(--cnvs-font-primary);
  font-size: 14px;
  margin-bottom: 20px;
}
.flash-success { background: var(--loom-camel-light); color: #5c4a26; border: 1px solid var(--loom-camel); }
.flash-error { background: #fbe9e9; color: #8a2c2c; border: 1px solid #e3a3a3; }
.cart-toast { border-radius: 3px; }

/* ---- Exit-intent modal ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(15,15,15,0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  background: #fff; border-radius: 4px; max-width: 420px; width: 100%;
  padding: 40px 32px 32px; text-align: center; position: relative;
  font-family: var(--cnvs-font-primary);
}
.modal-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; margin-bottom: 10px; color: var(--loom-black);
}
.modal-card p { color: var(--loom-muted); font-size: 14px; margin-bottom: 14px; }
.modal-close {
  position: absolute; top: 12px; right: 14px; background: none; border: none;
  font-size: 22px; line-height: 1; color: var(--loom-muted); cursor: pointer;
}
.coupon-pill {
  display: inline-block; border: 1.5px dashed var(--loom-camel); color: var(--loom-camel);
  font-weight: 700; letter-spacing: 0.08em; padding: 10px 22px; border-radius: 3px;
  margin-bottom: 20px; font-size: 15px;
}

/* ---- Sticky add-to-bag bar (mobile, product page) ---- */
.sticky-add-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: #fff; border-top: 1px solid var(--loom-border);
  padding: 12px 16px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
  font-family: var(--cnvs-font-primary); font-size: 13.5px;
}
.sticky-add-bar[hidden] { display: none; }
.sticky-add-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Social-proof ticker ---- */
#social-proof-ticker { position: relative; min-height: 20px; text-align: center; margin-bottom: 8px; }
#social-proof-ticker[hidden] { display: none; }
.ticker-item {
  font-family: var(--cnvs-font-primary); font-size: 12.5px; color: var(--loom-muted);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.ticker-item strong { color: var(--loom-black); }

/* ---- Free-shipping progress nudge (cart page) ---- */
.free-ship-nudge {
  font-family: var(--cnvs-font-primary); font-size: 13px; color: var(--loom-black);
  background: var(--loom-sand); padding: 14px 18px; margin-bottom: 24px; border-radius: 2px;
}
.free-ship-nudge.success { background: var(--loom-camel-light); color: #5c4a26; }
.free-ship-nudge strong { color: var(--loom-camel); }
.progress-bar { height: 4px; background: rgba(0,0,0,0.08); border-radius: 2px; margin-top: 10px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--loom-camel); transition: width .4s ease; }

/* ---- Low-stock urgency label ---- */
.low-stock {
  font-family: var(--cnvs-font-primary); font-size: 11.5px; font-weight: 600;
  color: #a34b1f; margin-top: 4px;
}

/* ---- Auth cards (login/register) ---- */
.loom-auth-card {
  max-width: 440px; margin: 0 auto; background: #fff; border: 1px solid var(--loom-border);
  padding: 48px 40px; font-family: var(--cnvs-font-primary);
}
.loom-auth-card h1 {
  font-family: 'Cormorant Garamond', serif; font-size: 32px; text-align: center; margin-bottom: 28px; color: var(--loom-black);
}
.loom-auth-card p { text-align: center; font-size: 13px; color: var(--loom-muted); margin-top: 18px; }
.loom-auth-card p a { color: var(--loom-camel); text-decoration: underline; }

/* ---- Account area ---- */
.account-layout { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: start; }
@media (max-width: 767px) { .account-layout { grid-template-columns: 1fr; } }
.account-nav {
  display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--loom-border);
  font-family: var(--cnvs-font-primary); font-size: 13px;
}
.account-nav a, .account-nav button {
  padding: 14px 18px; color: var(--loom-black); text-decoration: none; text-align: left;
  background: none; border: none; font: inherit; cursor: pointer; border-bottom: 1px solid var(--loom-border);
}
.account-nav a:hover, .account-nav button:hover { color: var(--loom-camel); }
.account-content { font-family: var(--cnvs-font-primary); }
.account-content h1 { font-family: 'Cormorant Garamond', serif; font-size: 30px; margin-bottom: 6px; color: var(--loom-black); }
.account-content h3 { font-size: 15px; font-weight: 700; margin: 28px 0 14px; color: var(--loom-black); }
.order-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 0;
  border-bottom: 1px solid var(--loom-border); font-size: 13.5px;
}
.order-row > span:first-child { font-weight: 700; }
.status-badge {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px; background: var(--loom-sand); color: var(--loom-black);
}
.status-badge.status-delivered, .status-badge.status-completed { background: var(--loom-camel-light); color: #5c4a26; }
.status-badge.status-cancelled { background: #fbe9e9; color: #8a2c2c; }

/* ---- Order confirmation ---- */
.confirmation-card {
  max-width: 540px; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--loom-border);
  padding: 48px 40px; font-family: var(--cnvs-font-primary);
}
.confirmation-card .check-icon { color: var(--loom-camel); font-size: 40px; margin-bottom: 14px; }
.confirmation-card h1 { font-family: 'Cormorant Garamond', serif; font-size: 30px; margin-bottom: 10px; color: var(--loom-black); }
.confirmation-card .order-items-list { text-align: left; margin: 24px 0; border-top: 1px solid var(--loom-border); padding-top: 16px; }

/* ---- Product gallery with a single image (our catalog has one photo per
   product, not the multi-angle set the template's grid column assumes -
   fashion-store.css reserves an 80px first column for a thumbnail rail, so
   a lone image needs the column dropped or it lands in that narrow track) ---- */
.loom-product-gallery-pane.single-image { grid-template-columns: 1fr; }

/* ---- Honeypot spam-trap field: must be invisible to real visitors but
   still present/focusable-by-bots in the DOM (display:none is sometimes
   skipped by naive scrapers, so this uses off-screen positioning instead) ---- */
.hp-wrap { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Nav "current" underline (fashion-store nav has no active-state rule) ---- */
.primary-menu .menu-item.current > .menu-link { color: var(--loom-camel); }

/* ---- Scroll-reveal (progressive enhancement, animations.js toggles .is-visible) ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16,.84,.44,1), transform .7s cubic-bezier(.16,.84,.44,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.16,.84,.44,1), transform .6s cubic-bezier(.16,.84,.44,1); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: .02s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .14s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .2s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .26s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .32s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: .38s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: .44s; }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .cart-toast, .flash { transition: none !important; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* =====================================================================
   Everything below replaces one-off inline style="" attributes that were
   scattered through the storefront views during the Canvas conversion.
   The site's CSP is style-src 'self' with no 'unsafe-inline', which
   silently drops every inline style attribute - a bug class already hit
   (and fixed) earlier in this project for star ratings and POS controls.
   These are real classes, one per UI element, grouped by the page/partial
   that uses them. ===================================================== */

/* ---- Logo image (header + footer) ---- */
/* #logo img in style.css is an ID+element selector (specificity 1-0-1),
   which beats a plain .glow-logo-img class (0-1-0) regardless of source
   order - that's why this silently lost to its max-height:100% before.
   Matching #logo's ID here, plus !important as a hard guarantee, since
   this exact rule has now shipped broken twice. */
#logo img.glow-logo-img,
.glow-logo-img {
  display: block !important;
  height: 30px !important;
  max-height: 30px !important;
  width: auto !important;
}
.glow-footer-logo-link { display: inline-block; }
.glow-cart-link { position: relative; }
.glow-footer-trust-strip { border-top: 1px solid rgba(255,255,255,0.1); border-bottom: none; }

/* ---- Shared text/color helpers ---- */
.glow-text-muted { color: var(--loom-muted); }
.glow-text-danger { color: #C8352A; }
.glow-accent-link { color: var(--loom-camel); }
.glow-accent-link:hover { text-decoration: underline; }
.glow-accent-icon { color: var(--loom-camel); }
.glow-accent-stars { color: var(--loom-camel); letter-spacing: 2px; }
.glow-active { color: var(--loom-camel) !important; }
.glow-fs-xs { font-size: 0.7rem; }
.glow-fs-sm { font-size: 0.8rem; }
.glow-page-pad { padding: 40px 0 60px; }
.glow-display-contents { display: contents; }

/* ---- Product detail page ---- */
.glow-pdp-old-price { font-size: 1rem; }
.glow-short-desc { color: var(--loom-muted); font-size: 0.9rem; line-height: 1.7; }
.glow-clamp-heading { font-size: clamp(1.5rem, 2.5vw, 2.2rem); }
.glow-rating-summary-box { text-align: center; padding: 1.5rem; background: var(--loom-sand); margin-bottom: 1.5rem; }
.glow-rating-summary-num { font-family: 'Cormorant Garamond', serif; font-size: 4rem; font-weight: 600; line-height: 1; display: block; color: var(--loom-black); }
.glow-rating-summary-stars { margin: 0.4rem 0; }
.glow-rating-summary-caption { font-size: 0.75rem; color: var(--loom-muted); }
.glow-no-reviews { color: var(--loom-muted); font-size: 0.85rem; }
.glow-review-header-left { display: flex; align-items: flex-start; gap: 0.75rem; }
.glow-review-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--loom-camel); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Manrope', sans-serif; font-size: 0.8rem; font-weight: 700; flex-shrink: 0;
}
.glow-review-stars { flex-shrink: 0; }
.glow-review-form { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--loom-border); }
.glow-mb-1 { margin-bottom: 1rem; }
.glow-input-full { width: 100%; }
.glow-text-input, .glow-textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--loom-border); font-size: 13px; }
.glow-textarea { font-family: var(--cnvs-font-primary); }
.glow-section-sand-pad { background: var(--loom-sand); padding-top: 4rem; padding-bottom: 4rem; }

/* ---- Cart page ---- */
.glow-empty-note { color: var(--loom-muted); font-family: var(--cnvs-font-primary); padding: 40px 0; }
.glow-pl-0 { padding-left: 0; }
.glow-cart-item-name { font-weight: 600; font-size: 0.9rem; text-decoration: none; color: var(--loom-black); }
.glow-qty-input { width: 48px; }
.glow-coupon-form { max-width: 360px; }
/* Free-shipping fill width in 5% steps - CSP blocks a computed inline
   style="width:N%", so the view rounds to the nearest of these instead. */
.glow-fill-0 { width: 0%; } .glow-fill-5 { width: 5%; } .glow-fill-10 { width: 10%; }
.glow-fill-15 { width: 15%; } .glow-fill-20 { width: 20%; } .glow-fill-25 { width: 25%; }
.glow-fill-30 { width: 30%; } .glow-fill-35 { width: 35%; } .glow-fill-40 { width: 40%; }
.glow-fill-45 { width: 45%; } .glow-fill-50 { width: 50%; } .glow-fill-55 { width: 55%; }
.glow-fill-60 { width: 60%; } .glow-fill-65 { width: 65%; } .glow-fill-70 { width: 70%; }
.glow-fill-75 { width: 75%; } .glow-fill-80 { width: 80%; } .glow-fill-85 { width: 85%; }
.glow-fill-90 { width: 90%; } .glow-fill-95 { width: 95%; } .glow-fill-100 { width: 100%; }

/* ---- Checkout page ---- */
.glow-h3-sm { font-size: 1.15rem; }
.glow-accent-radio { accent-color: var(--loom-camel); }
.glow-policy-notice { color: var(--loom-muted); font-size: 0.8rem; background: var(--loom-sand); padding: 12px 16px; margin: 1.25rem 0; }

/* ---- Homepage ---- */
.glow-cat-tile { height: 280px; }
.glow-cat-tile-img { aspect-ratio: 1/1; width: 100%; height: 100%; object-fit: cover; }
.glow-bg-offwhite { background: var(--loom-off-white); }
.glow-label-white-60 { color: rgba(255,255,255,0.6); }
.glow-about-img { aspect-ratio: 4/3; width: 100%; height: 100%; min-height: 360px; object-fit: cover; display: block; }
.glow-about-panel { background: var(--loom-sand); padding: 4rem; }
.glow-about-copy { color: var(--loom-muted); font-size: 0.9375rem; line-height: 1.8; margin-bottom: 2rem; }
.glow-testimonial-card { background: #fff; border: 1px solid var(--loom-border); padding: 28px 24px; height: 100%; }
.glow-testimonial-stars { margin-bottom: 10px; }
.glow-testimonial-quote { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-style: italic; line-height: 1.6; color: var(--loom-black); margin-bottom: 14px; }
.glow-testimonial-byline { font-family: var(--cnvs-font-primary); font-size: 12.5px; color: var(--loom-muted); }
.glow-newsletter-note { color: var(--loom-muted); font-size: 0.7rem; display: block; margin-top: 0.75rem; }

/* ---- Shop page ---- */
.glow-tab-border { border-color: var(--loom-border) !important; }
.glow-sidebar-search { border: 1px solid var(--loom-border); padding: 10px 14px; font-size: 13px; width: 100%; }
.glow-filter-link { color: var(--loom-black); text-decoration: none; font-size: 13.5px; }
.glow-page-link { min-width: 40px; text-align: center; justify-content: center; }
.glow-page-link.glow-active { background: var(--loom-black); color: #fff !important; }

/* ---- Product cards ---- */
.glow-card-stars { font-size: 12px; letter-spacing: 1px; }
.glow-card-add-btn { width: 100%; justify-content: center; font-size: 11px; padding: 10px; }

/* ---- 404 ---- */
.glow-404-wrap { text-align: center; padding: 100px 0; }
.glow-404-code { font-family: 'Cormorant Garamond', serif; font-size: 5rem; color: var(--loom-camel); line-height: 1; }
.glow-404-note { color: var(--loom-muted); font-family: var(--cnvs-font-primary); margin: 14px 0 24px; }

/* ---- Auth pages ---- */
.glow-form-hint { margin-top: -10px; margin-bottom: 18px; font-size: 12px; }

/* ---- Account pages ---- */
.glow-account-email { color: var(--loom-muted); font-size: 13.5px; }
.glow-order-view-link { color: var(--loom-camel); text-decoration: underline; font-size: 12.5px; }

/* ---- Order confirmation ---- */
.glow-conf-pad { padding: 48px 0 60px; }
.glow-conf-note { color: var(--loom-muted); font-size: 13px; }
.glow-conf-cta { margin-top: 8px; }
.glow-conf-footer-note { color: var(--loom-muted); font-size: 11.5px; margin-top: 24px; }
