/* Storefront additions on top of the scraped theme CSS (see site.js). */

/* Theme JS used to reveal these; it's gone, so show them outright. */
[data-animape], .image-element { opacity: 1 !important; transform: none !important; }
.ds-hidden { display: none !important; }

/* ---------- sliders ---------- */
.ds-fade .flickity-slider { position: relative; }
.ds-fade .flickity-slider > * { position: relative !important; width: 100%; }
.hero.ds-fade .flickity-viewport, .hero.ds-fade .flickity-slider, .hero.ds-fade .slideshow__slide { height: 100%; }
.ds-scroller .flickity-viewport { height: auto !important; overflow: visible; }
.ds-scroller .flickity-slider {
  position: relative !important; height: auto !important; align-items: flex-start;
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.ds-scroller .flickity-slider::-webkit-scrollbar { display: none; }
.ds-scroller .flickity-slider > * { position: relative !important; flex: 0 0 auto; scroll-snap-align: start; left: auto !important; transform: none !important; }
.product-slideshow.ds-scroller .flickity-slider > * { width: 100%; }
.video-carousel.ds-scroller { padding-bottom: 60px; }

/* ---------- nav ---------- */
#MobileNav.is-active { display: block !important; }
.featured-tag-tabs--container.ds-show-all .featured-tag-button { display: inline-block !important; }

/* ---------- cart badge ---------- */
#HeaderCartTrigger, .cart-link { position: relative; }
.ds-badge {
  position: absolute; top: -4px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: #ea5e75; color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 700;
}

/* ---------- cart drawer ---------- */
.ds-lock { overflow: hidden; }
.ds-drawer { position: fixed; inset: 0; z-index: 10000; pointer-events: none; }
.ds-drawer__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.4); opacity: 0; transition: opacity .25s; }
.ds-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.165,.84,.44,1); box-shadow: -10px 0 30px rgba(0,0,0,.1);
}
.ds-drawer.is-open { pointer-events: auto; }
.ds-drawer.is-open .ds-drawer__overlay { opacity: 1; }
.ds-drawer.is-open .ds-drawer__panel { transform: none; }
.ds-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #eee; }
.ds-drawer__head h2 { margin: 0; font-size: 20px; }
.ds-drawer__close { background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; padding: 0 4px; }
.ds-drawer__body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.ds-drawer__body .ds-cart__lines { flex: 1; padding: 0 20px; }
.ds-cart__empty { padding: 40px 20px; text-align: center; }

.ds-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 16px 0; border-bottom: 1px solid #f0f0f0; align-items: start; }
.ds-line__img img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; background: #f7f7f7; }
.ds-line__title { font-weight: 600; font-size: 14px; line-height: 1.3; text-decoration: none; color: inherit; }
.ds-line__variant { font-size: 13px; color: #777; margin-top: 2px; }
.ds-line__qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; }
.ds-line__qty button[data-qty] { width: 28px; height: 28px; border: 1px solid #ddd; background: #fff; border-radius: 4px; cursor: pointer; }
.ds-line__remove { background: none; border: 0; color: #777; text-decoration: underline; cursor: pointer; font-size: 12px; margin-left: 6px; }
.ds-line__price { font-weight: 600; font-size: 14px; }
.ds-cart__footer { padding: 16px 20px 24px; border-top: 1px solid #eee; background: #faf8f7; }
.ds-cart__ship { margin: 0 0 10px; font-size: 13px; color: #ea5e75; font-weight: 600; }
.ds-cart__subtotal { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: 6px; }
.ds-cart__note { font-size: 12px; color: #777; margin: 0 0 14px; }
.ds-checkout[disabled] { opacity: .6; }

.ds-cart-page { max-width: 760px; padding: 40px 20px 80px; }
.ds-cart-page .ds-cart__footer { margin-top: 20px; border: 1px solid #eee; border-radius: 8px; }

/* ---------- generated product page ---------- */
.page-width.ds-product { padding-top: 24px; padding-bottom: 60px; }
.ds-breadcrumb { font-size: 13px; margin-bottom: 20px; }
.ds-breadcrumb a { color: inherit; }
.ds-product__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.ds-product__main { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f7f5f4; border-radius: 8px; }
.ds-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.ds-thumb { width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 6px; background: #f7f5f4; cursor: pointer; overflow: hidden; }
.ds-thumb.is-active { border-color: #333; }
.ds-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ds-product__price { font-size: 22px; margin: 10px 0 20px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.ds-product__price .grid-product__price--original { text-decoration: line-through; color: #999; font-size: 16px; }
.ds-product__price .grid-product__price--savings { color: #ea5e75; font-size: 15px; }
.ds-option { border: 0; padding: 0; margin: 0 0 16px; }
.ds-option legend { font-weight: 600; margin-bottom: 8px; }
.ds-option__value { display: inline-block; margin: 0 8px 8px 0; cursor: pointer; }
.ds-option__value input { position: absolute; opacity: 0; pointer-events: none; }
.ds-option__value span { display: inline-block; padding: 8px 14px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; }
.ds-option__value input:checked + span { border-color: #222; box-shadow: inset 0 0 0 1px #222; }
.ds-option__value input:focus-visible + span { outline: 2px solid #ea5e75; outline-offset: 2px; }
.ds-qty { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 14px; }
.ds-qty input { width: 70px; padding: 8px; border: 1px solid #ccc; border-radius: 4px; }
.ds-perks { font-size: 13px; color: #666; margin: 14px 0 24px; }
.ds-product__desc { font-size: 15px; line-height: 1.6; }
.ds-product__desc img { max-width: 100%; height: auto; }

/* ---------- listings / search / result pages ---------- */
.page-width.ds-listing { padding-top: 56px; padding-bottom: 60px; }
.ds-grid { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ds-grid .grid-item { width: auto !important; padding: 0 !important; }
.ds-grid .grid-item__content { background: #fff; height: 100%; display: flex; flex-direction: column; }
.ds-grid .grid-item__meta { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.ds-grid .grid-item__addtocart { margin-top: auto; padding-top: 12px; }
.ds-grid .grid__image-ratio img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ds-grid .grid-product__price--original { text-decoration: line-through; color: #999; margin-left: 6px; }
.ds-grid .grid-product__price--savings { color: #ea5e75; margin-left: 6px; }
.ds-grid select.product-single__variants { width: 100%; margin-bottom: 8px; }
.ds-empty { text-align: center; padding: 40px 0; }
.ds-search { display: flex; gap: 8px; max-width: 520px; margin: 16px auto; }
.ds-search input { flex: 1; padding: 10px 12px; border: 1px solid #ccc; border-radius: 4px; }
.ds-result { padding: 80px 20px; max-width: 640px; }

@media (max-width: 768px) {
  .ds-product__grid { grid-template-columns: 1fr; gap: 24px; }
  .ds-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ---------- newsletter / calendly ---------- */
.ds-form-msg { margin: 10px 0 0; font-size: 14px; font-weight: 600; }
.ds-form-msg.is-error { color: #c0392b; }

/* ---------- blog ---------- */
.ds-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ds-post-card a { display: block; color: inherit; text-decoration: none; background: #fff; border-radius: 8px; overflow: hidden; height: 100%; }
.ds-post-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.ds-post-card__body { padding: 16px 18px 20px; }
.ds-post-card time { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: .05em; }
.ds-post-card h2 { font-size: 20px; margin: 6px 0 8px; line-height: 1.3; }
.ds-post-card p { font-size: 14px; color: #555; margin: 0; }
.ds-pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 36px; }
.page-width.ds-article { padding-top: 48px; padding-bottom: 60px; }
.ds-article__meta { color: #888; font-size: 14px; margin-bottom: 24px; }
.ds-article .rte img { max-width: 100%; height: auto; border-radius: 6px; }
@media (max-width: 768px) { .ds-posts { grid-template-columns: 1fr; } }

/* ---------- reviews ---------- */
.ds-stars { color: #e8b4a0; letter-spacing: 2px; font-size: 16px; }
.ds-stars__off { color: #e6e1de; }
.ds-review-strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 20px 24px; max-width: 1320px; margin: 0 auto; scrollbar-width: thin; }
.ds-review-strip .ds-review { flex: 0 0 280px; scroll-snap-align: start; }
.ds-review { background: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.05); overflow: hidden; display: flex; flex-direction: column; }
.ds-review__photo { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.ds-review__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ds-review__text { margin: 0; font-size: 14px; line-height: 1.5; white-space: pre-line; }
.ds-review-strip .ds-review__text { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.ds-review__by { margin: 0; font-size: 13px; color: #666; }
.ds-review__verified { color: #3a8f5c; font-size: 12px; }
.ds-review__product { font-size: 12px; color: #ea5e75; margin-top: auto; }
.ds-review-summary { text-align: center; font-size: 16px; margin: 0 0 24px; }
.ds-review-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; align-items: start; }
.ds-review-more { display: block; margin: 24px auto 0; }
.ds-review-empty { text-align: center; color: #777; }
.ds-product__reviews { margin-top: 60px; }

/* ---------- content pages ---------- */
.ds-content { padding-bottom: 40px; }
.ds-content img, .ds-content video { max-width: 100%; height: auto; }

/* ---------- support ---------- */
.page-width.ds-support { padding-top: 56px; padding-bottom: 80px; }
.ds-support__head p { color: #555; }
.ds-support__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0 48px; }
.ds-support__card { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: #faf6f4; border-radius: 8px; color: inherit; text-decoration: none; border: 1px solid transparent; }
.ds-support__card:hover { border-color: #ea5e75; }
.ds-support__card span { font-size: 14px; color: #666; }
.ds-support__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.ds-faq { border-bottom: 1px solid #eee; padding: 14px 0; }
.ds-faq summary { cursor: pointer; font-weight: 600; }
.ds-faq div { padding-top: 10px; color: #444; font-size: 15px; line-height: 1.6; }
.ds-support__form { display: flex; flex-direction: column; gap: 14px; }
.ds-support__form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.ds-support__form input, .ds-support__form select, .ds-support__form textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #ccc; border-radius: 4px; }
.ds-optional { font-weight: 400; color: #888; }

/* ---------- skin quiz ---------- */
.ds-quiz iframe { display: block; width: 100%; height: calc(100vh - 140px); min-height: 640px; border: 0; }

@media (max-width: 768px) {
  .ds-support__links { grid-template-columns: 1fr; }
  .ds-support__cols { grid-template-columns: 1fr; }
}

/* ---------- add-to-cart feedback ---------- */
.ds-fly { position: fixed; z-index: 10001; object-fit: cover; border-radius: 50%; pointer-events: none; box-shadow: 0 8px 24px rgba(0,0,0,.18); background: #fff; }
.add-to-cart, .ds-checkout { transition: background-color .25s, transform .15s; }
.add-to-cart:active { transform: scale(.97); }
.add-to-cart.ds-adding { opacity: .85; }
.add-to-cart.ds-added { background-color: #3a8f5c !important; border-color: #3a8f5c !important; color: #fff !important; animation: ds-pop .35s ease; }
@keyframes ds-pop { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
#HeaderCartTrigger.ds-bump .cart-link, #HeaderCartTrigger.ds-bump .ds-badge { animation: ds-bump .5s cubic-bezier(.36,.07,.19,.97); }
@keyframes ds-bump { 0%,100% { transform: scale(1); } 30% { transform: scale(1.3); } 60% { transform: scale(.92); } }
.ds-toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 9999; display: flex; align-items: center; gap: 12px; max-width: 360px;
  padding: 12px 14px; background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.15);
  transform: translateY(20px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.ds-toast.is-open { transform: none; opacity: 1; pointer-events: auto; }
.ds-toast img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.ds-toast div { display: flex; flex-direction: column; font-size: 13px; line-height: 1.3; min-width: 0; }
.ds-toast div span { color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.ds-toast a { margin-left: auto; font-size: 13px; font-weight: 600; color: #ea5e75; white-space: nowrap; }
@media (max-width: 600px) { .ds-toast { left: 12px; right: 12px; bottom: 12px; max-width: none; } }
@media (prefers-reduced-motion: reduce) { .add-to-cart.ds-added, #HeaderCartTrigger.ds-bump * { animation: none !important; } }

/* ---------- plain content pages (policies etc.) ---------- */
.page-width.ds-prose { max-width: 860px; padding-top: 56px; padding-bottom: 80px; font-size: 16px; line-height: 1.7; }
.ds-prose h1 { font-size: 40px; line-height: 1.15; margin: 0 0 24px; }
.ds-prose h2 { font-size: 26px; line-height: 1.25; margin: 40px 0 14px; }
.ds-prose h3, .ds-prose h4 { font-size: 19px; margin: 28px 0 10px; }
.ds-prose p, .ds-prose li { color: #333; }
.ds-prose ul, .ds-prose ol { padding-left: 22px; margin: 0 0 18px; }
.ds-prose li { margin-bottom: 6px; }
.ds-prose a { color: #ea5e75; text-decoration: underline; }
.ds-prose table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.ds-prose td, .ds-prose th { border: 1px solid #eee; padding: 8px 10px; text-align: left; }
@media (max-width: 768px) { .ds-prose h1 { font-size: 30px; } .ds-prose h2 { font-size: 22px; } }

/* Follower-update video carousel: the video is absolutely positioned over its
   preview image and takes its size from it, so keep the image in layout (just
   invisible) once the video plays, or the slide collapses to nothing. */
.video-carousel .video-preview-image.ds-hidden { display: block !important; visibility: hidden; }
.video-carousel .flickity-slider:has(> .carousel-item:only-child) { justify-content: center; }
