
/* Explore card thumbnails: square, full image uncropped, centered above centered text */
.explore-tiles a{padding:16px 18px 18px;text-align:center;}
.explore-tiles .explore-thumb{
  width:42%;
  max-width:140px;
  aspect-ratio:1/1;
  height:auto;
  object-fit:contain;
  object-position:center;
  border-radius:12px;
  display:block;
  margin:0 auto 12px;
  background:#fff;
  border:1px solid rgba(201,169,106,.35);
}
.explore-tiles h3,.explore-tiles p{margin-left:auto;margin-right:auto;text-align:center;}
.explore-tiles h3{margin-top:0;}
#homeBtn .home-btn-icon{line-height:1;}
#homeBtn .home-btn-label{white-space:nowrap;}

/* PVSP mobile homepage tighten — preview only. Desktop stays on the original layout. */

/* Keep "Skin & Style" and price/buy buttons on one line */
.keep, .skin-style { white-space: nowrap; }
.card-foot { flex-wrap: nowrap; gap: 8px; min-width: 0; }
.card-foot .buy, .card-foot .price, a.buy { white-space: nowrap; }

/* Featured category grid is mobile-only */
.shop-cats { display: none; }

@media (max-width: 700px) {
  /* ---- HERO trim: target ~1–1.2 screens. Desktop unchanged. ---- */
  .hero { min-height: 0 !important; align-items: flex-start; }
  .hero-content { padding: 16px 16px 18px; }
  .hero-logo { width: min(188px, 46vw); margin: 0 auto 8px; }
  /* One headline: the Skin & Style line. "Made with care" is already in the copy spirit. */
  .hero-content > .tag:first-of-type { display: none; }
  .hero .tag { font-size: .62rem; letter-spacing: .16em; margin-bottom: 8px; }
  .hero .tag[style] { margin-bottom: 8px !important; }
  .hero p { margin: 0 auto 12px; padding: 8px 14px; font-size: .66rem; line-height: 1.45; }
  .hero-cta { margin-bottom: 0; }
  .hero-cta .btn { padding: 11px 22px; font-size: .7rem; }
  /* About is in the nav and the story section just below */
  .hero-cta .btn-outline { display: none; }
  /* Process clips live on /hands/ and in the story film; trio links are in Shop by World,
     the category grid, and the footer; the film teaser is the #story section itself. */
  .hero-loop,
  .hero-loop-note,
  .film-teaser,
  .hero-trio { display: none !important; }
  /* Keep search + price chips, compact, so they stay reachable */
  .hero-search { margin: 12px auto 0; }
  .hero-search input { padding: 10px 16px; font-size: .85rem; }
  .hero-search .pchip-row { margin-top: 8px; }

  /* ---- Hide the long stacked catalog on phones (it lives on category pages) ---- */
  #ritual-sets,
  #trios, #incense, #candles, #baby, #body, #men,
  #apparel, #socks, #journals, #books, #home, #mugs, #gifts,
  .world-band.desktop-anchor,
  .show-all-btn,
  #picks + .botanical-divider,
  #trios ~ .botanical-divider,
  #trios ~ .r-divider,
  #build-trio ~ .botanical-divider,
  #build-trio ~ .r-divider,
  #pillows { display: none !important; }

  /* Featured 2-col category grid */
  .shop-cats { display: block; padding: 36px 0 28px; }
  .cat-world { margin: 28px 0 8px; }
  .cat-world-label { text-align: center; margin-bottom: 14px; }
  .cat-world-label h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
    font-size: 1.35rem; color: var(--forest);
  }
  .cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .cat-tile {
    display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
    background: #fff; border-radius: 16px; overflow: hidden;
    border: 1px solid rgba(201,169,106,.45);
    box-shadow: 0 8px 20px rgba(74,44,107,.08);
  }
  .cat-img { aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream-dark, #f3ede1); }
  .cat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .cat-body { padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
  .cat-body h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: .95rem; letter-spacing: .08em; text-transform: uppercase;
    font-weight: 500; line-height: 1.2; color: var(--forest);
  }
  .cat-feat { font-size: .72rem; color: var(--ink-soft, #5c4f68); line-height: 1.35; font-weight: 400; letter-spacing: 0; text-transform: none; }
  .cat-all {
    margin-top: auto; padding-top: 6px;
    font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
    font-weight: 700; color: var(--gold-deep, #8a6d3b);
    white-space: nowrap;
  }
  .cat-tile-tool .cat-tool-img {
    display: flex; align-items: center; justify-content: center;
    background: var(--forest, #4a2c6b); color: var(--gold, #c9a96a);
    font-family: 'Cormorant Garamond', serif; font-size: 4rem; letter-spacing: 0;
  }


  /* Explore thumbs: smaller squares, full image, centered; keep card height tidy */
  .explore-tiles a{padding:12px 12px 14px;text-align:center;}
  .explore-tiles .explore-thumb{
    width:46%;
    max-width:120px;
    height:auto;
    aspect-ratio:1/1;
    object-fit:contain;
    margin:0 auto 8px;
    border-radius:10px;
    background:#fff;
  }
  .explore-tiles h3{margin-bottom:4px;font-size:1.05rem;text-align:center;}
  .explore-tiles p{font-size:.82rem;line-height:1.4;text-align:center;}

  /* Gold Main Page button: icon-only circle stacked above the back-to-top arrow */
  #homeBtn{
    width:52px;height:52px;padding:0;gap:0;
    right:20px;bottom:84px;
    border-radius:50%;
    justify-content:center;
    font-size:1.35rem;letter-spacing:0;text-transform:none;
    color:#fff;
  }
  #homeBtn .home-btn-label{
    position:absolute;width:1px;height:1px;padding:0;margin:-1px;
    overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
  }

  /* Worlds with an odd tile count (Home & Table: Home, Mugs, Gifts): swipe row
     showing ~1.8 tiles so the third tile is clearly there to swipe to. */
  .cat-world.cat-world-swipe .cat-grid,
  .cat-world:has(.cat-grid > :last-child:nth-child(odd)) .cat-grid{
    display:flex !important;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x mandatory;
    gap:12px;
    /* Bleed to the right screen edge so the second tile is clipped
       at the viewport, not inside the 24px wrap padding (which looked like a finished 2-col grid). */
    width:calc(100% + 24px);
    max-width:none;
    margin-right:-24px;
    padding:4px 0 10px;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
    grid-template-columns:none !important;
  }
  .cat-world.cat-world-swipe .cat-grid::-webkit-scrollbar,
  .cat-world:has(.cat-grid > :last-child:nth-child(odd)) .cat-grid::-webkit-scrollbar{display:none;}
  .cat-world.cat-world-swipe .cat-tile,
  .cat-world:has(.cat-grid > :last-child:nth-child(odd)) .cat-tile{
    flex:0 0 calc((100% - 12px) / 1.8);
    max-width:calc((100% - 12px) / 1.8);
    scroll-snap-align:start;
  }
  /* Spacer so the last tile (Gifts) can scroll fully on screen */
  .cat-world.cat-world-swipe .cat-grid::after,
  .cat-world:has(.cat-grid > :last-child:nth-child(odd)) .cat-grid::after{
    content:"";
    flex:0 0 24px;
  }

  /* ---- Horizontal swipe rows ---- */
  .swipe-row,
  #just-in .grid,
  #picks-grid,
  .explore-tiles,
  .hm-grid,
  .review-swipe {
    display: flex !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 4px 4px 14px;
    scrollbar-width: none;
    grid-template-columns: none !important;
    -webkit-overflow-scrolling: touch;
  }
  .swipe-row::-webkit-scrollbar,
  #just-in .grid::-webkit-scrollbar,
  #picks-grid::-webkit-scrollbar,
  .explore-tiles::-webkit-scrollbar,
  .hm-grid::-webkit-scrollbar,
  .review-swipe::-webkit-scrollbar { display: none; }

  #just-in .grid .card,
  #picks-grid .card {
    flex: 0 0 72%;
    max-width: 72%;
    scroll-snap-align: start;
  }
  #just-in .grid .desc,
  #picks-grid .desc { display: none; }
  #just-in .grid.single { justify-content: flex-start; }

  .explore-tiles a {
    flex: 0 0 78%;
    max-width: 78%;
    scroll-snap-align: start;
    margin: 0 !important;
  }
  .hm-grid img {
    flex: 0 0 78%;
    width: 78%;
    max-width: 78%;
    scroll-snap-align: start;
  }
  .review-swipe .trust-card {
    flex: 0 0 80%;
    max-width: 80%;
    scroll-snap-align: start;
    min-width: 0;
  }

  /* Just In: compact header + view-all to its own page */
  #just-in { padding-bottom: 12px; }
  #just-in .sec-head p { margin-bottom: 8px; }
  .section-viewall {
    display: block; text-align: center; margin: 4px 0 8px;
    font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
    font-weight: 700; color: var(--gold-deep, #8a6d3b); text-decoration: none;
  }

  /* Winter shelf: photo + quote tighter, products swipe */
  #picks .picks-wrap { display: block; }
  #picks .picks-photo img { max-height: 220px; width: 100%; object-fit: cover; border-radius: 16px; }
  #picks .picks-quote { margin: 10px 0 14px; font-size: .9rem; }

  /* ---- Accordions for long text (mobile) ---- */
  details.mobile-acc {
    border: 1px solid rgba(201,169,106,.45);
    border-radius: 14px;
    background: rgba(255,255,255,.35);
    margin: 12px 0;
  }
  details.mobile-acc > summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 16px;
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--gold-deep, #8a6d3b);
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
  }
  details.mobile-acc > summary::-webkit-details-marker { display: none; }
  details.mobile-acc > summary::after {
    content: "+";
    font-size: 1.2rem; line-height: 1; color: var(--gold-deep, #8a6d3b);
    font-weight: 400;
  }
  details.mobile-acc[open] > summary::after { content: "–"; }
  details.mobile-acc > summary h3 { margin: 0; font-size: 1.05rem; letter-spacing: .1em; }
  details.mobile-acc .acc-body,
  details.mobile-acc > p,
  details.mobile-acc > div { padding: 0 16px 16px; }
  #story details.mobile-acc { background: rgba(255,255,255,.08); border-color: rgba(201,169,106,.4); }
  #story details.mobile-acc > summary { color: var(--gold, #c9a96a); }
  #story details.mobile-acc > summary::after { color: var(--gold, #c9a96a); }

  /* Trust / shipping: stacked disclosures */
  #visit .trust-faq { display: flex; flex-direction: column; gap: 8px; }
  #visit .trust-faq details.trust-card {
    margin: 0; padding: 0;
    border: 1px solid rgba(201,169,106,.45);
    border-radius: 14px; background: #fff;
    box-shadow: none;
  }
  #visit .trust-faq details.trust-card > summary {
    list-style: none; cursor: pointer; padding: 14px 16px;
    display: flex; align-items: center; justify-content: space-between;
  }
  #visit .trust-faq details.trust-card > summary::-webkit-details-marker { display: none; }
  #visit .trust-faq details.trust-card > summary::after { content: "+"; color: var(--gold-deep); }
  #visit .trust-faq details.trust-card[open] > summary::after { content: "–"; }
  #visit .trust-faq details.trust-card p { padding: 0 16px 14px; margin: 0; }
  #visit .trust-faq details.trust-card .newsletter { margin: 0 16px 14px; }

  /* Build-your-own trio becomes a collapsed panel */
  #build-trio .trio-panel-wrap { margin-top: 8px; }
  #build-trio details.mobile-acc .trio-panel { padding: 0; }

  #visit .sec-head[style] { margin-top: 28px !important; }

  /* Gift Finder chips: wrap fully visible, no swipe or clipping */
  #gift-finder .finder-chips.vibe-chips,
  #gift-finder .finder-chips.budget-chips,
  #gift-finder .finder-chips{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    align-items:center;
    gap:10px;
    width:100%;
    max-width:100%;
    margin:0;
    padding:2px 0;
    overflow:visible;
    scroll-snap-type:none;
  }
  #gift-finder .finder-chips button{
    flex:0 1 auto;
    max-width:100%;
    box-sizing:border-box;
    white-space:nowrap;
  }

  /* Tighten a few section paddings */
  .howto, .story, .handmade, .herb, .trust, .shop, .explore-sec, .rosemary {
    padding-top: 48px; padding-bottom: 48px;
  }
  .story { padding-top: 40px; padding-bottom: 40px; }
}

/* Desktop: keep the original page. Hide the new grid. Make details look like ordinary blocks. */
@media (min-width: 701px) {
  .shop-cats { display: none !important; }
  .section-viewall { display: none !important; }
  details.mobile-acc {
    border: none; background: transparent; margin: 0; border-radius: 0;
  }
  details.mobile-acc > summary { display: none; }
  #visit .trust-faq details.trust-card > summary { display: block; pointer-events: none; padding: 0; }
  #visit .trust-faq details.trust-card > summary::after { display: none; }
  #visit .trust-faq details.trust-card p,
  #visit .trust-faq details.trust-card .newsletter { padding: 0; margin: unset; }
}

/* Category pages */
body.cat-page .cat-page-head { text-align: center; padding: 28px 0 10px; }
body.cat-page .cat-page-head .shopify-link,
body.cat-page .cat-page-head .back-link {
  display: inline-block; margin: 8px 10px 0;
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700; color: var(--gold-deep, #8a6d3b); text-decoration: none;
}
body.cat-page .cat-note { font-size: .8rem; color: var(--ink-soft, #5c4f68); margin-top: 10px; }
@media (max-width: 700px) {
  body.cat-page .grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  body.cat-page .grid .desc { display: none; }
  body.cat-page .grid .card-body { padding: 10px 10px 12px; }
  body.cat-page .grid .card-body h3 { font-size: 1rem; letter-spacing: .06em; margin-bottom: 8px; }
  body.cat-page .grid .buy { padding: 8px 12px; font-size: .6rem; }
  body.cat-page header.hero { display: none; }
}


/* How-to-shop video: empty cream between the mockup and the purple footer was cropped out of the file */
.howto-video video{aspect-ratio:720/844;height:auto;object-fit:contain;}
