/* Shop page, product pages and the homepage "Shop the range" strip.
   Uses the colour tokens defined in each page's :root. */

/* ── PRODUCT CARDS ── */
.shop-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  max-width: 1160px; margin: 0 auto;
}
.shop-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 3px solid var(--ink); border-radius: 24px;
  overflow: hidden; color: var(--ink); text-decoration: none;
  transition: transform .15s;
}
.shop-card:hover { transform: translateY(-4px); }
.shop-card-img { aspect-ratio: 1 / 1; background: var(--cream); border-bottom: 3px solid var(--ink); }
.shop-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.shop-card h3 { font-family: 'Fredoka One', cursive; font-weight: 400; font-size: 1.3rem; line-height: 1.2; }
.shop-card-sub { font-size: .9rem; opacity: .75; line-height: 1.45; }
.shop-card-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: auto; padding-top: 8px; }
.shop-card-price .now { font-family: 'Fredoka One', cursive; font-size: 1.45rem; }
.shop-card-price .now.sale { color: var(--orange-dark); }
.shop-card-price s { font-size: .95rem; opacity: .5; }
.shop-card-price .off { background: var(--yellow); border-radius: 50px; padding: 2px 10px; font-size: .78rem; font-weight: 900; }
.shop-card-btn {
  margin-top: 10px; align-self: flex-start;
  background: var(--orange); color: var(--white); border-radius: 50px;
  padding: 10px 20px; font-size: .9rem; font-weight: 900;
}
.shop-card:hover .shop-card-btn { background: var(--orange-dark); }

.shop-section { padding: 56px 40px 80px; }
.shop-section-head { max-width: 1160px; margin: 0 auto 28px; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.shop-section-head h2 { font-family: 'Fredoka One', cursive; font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.shop-section-head p { font-size: .95rem; opacity: .7; }
.shop-section-head a { color: var(--orange-dark); font-weight: 900; }

/* Homepage strip */
.home-shop { background: var(--cream); border-top: 3px solid var(--ink); }

/* ── PRODUCT PAGE ── */
.crumbs { max-width: 1160px; margin: 0 auto; padding: 22px 40px 0; font-size: .9rem; }
.crumbs a { color: var(--ink); opacity: .7; }
.crumbs a:hover { opacity: 1; color: var(--orange-dark); }
.crumbs span { opacity: .4; margin: 0 8px; }

.pdp { max-width: 1160px; margin: 0 auto; padding: 24px 40px 72px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: start; }
.pdp-gallery { position: sticky; top: 88px; }
.pdp-gallery .main-image {
  background: var(--white); border: 4px solid var(--ink); border-radius: 28px; padding: 16px;
}
.pdp .carousel { position: relative; overflow: hidden; border-radius: 18px; }
.pdp .carousel-track { display: flex; transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.pdp .carousel-slide { flex: 0 0 100%; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.pdp .carousel-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--ink);
  font-size: 1.3rem; font-weight: 900; color: var(--ink); line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2;
}
.carousel-arrow:hover { transform: translateY(-50%) scale(1.08); }
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }
.carousel-zoom {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--white); border: 2.5px solid var(--ink);
  font-size: 1rem; color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.carousel-thumbs { display: flex; justify-content: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.carousel-thumb {
  width: 58px; height: 58px; border-radius: 12px; padding: 0;
  background: var(--cream); border: 2.5px solid var(--ink); overflow: hidden; cursor: pointer;
  transition: transform .15s;
}
.carousel-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.carousel-thumb.active { border-color: var(--orange); transform: translateY(-2px); }

.spec-badges { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; justify-content: center; }
.spec-badge { background: var(--yellow); color: var(--ink); border-radius: 50px; padding: 5px 14px; font-size: .78rem; font-weight: 900; }
.spec-badge.orange { background: var(--orange); color: var(--white); }
.spec-badge.green  { background: var(--green); color: var(--white); }
.spec-badge.purple { background: var(--purple); color: var(--white); }
.spec-badge.cyan   { background: var(--cyan); color: var(--ink); }

.pdp-eyebrow { font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; opacity: .6; margin-bottom: 10px; }
.pdp-info h1 { font-family: 'Fredoka One', cursive; font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.08; margin-bottom: 14px; }
.pdp-price { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 18px; }
.pdp-price .now { font-family: 'Fredoka One', cursive; font-size: 2.4rem; }
.pdp-price .now.sale { color: var(--orange-dark); }
.pdp-price s { font-size: 1.2rem; opacity: .5; }
.pdp-price .off { background: var(--yellow); border-radius: 50px; padding: 5px 12px; font-size: .82rem; font-weight: 900; }
.pdp-tagline { font-family: 'Fredoka One', cursive; font-weight: 400; font-size: 1.35rem; color: var(--orange-dark); margin-bottom: 10px; }
.pdp-lede { font-size: 1.02rem; line-height: 1.7; opacity: .88; margin-bottom: 24px; }

#product-buy { margin-bottom: 18px; }
#product-buy-skeleton { height: 60px; border-radius: 50px; border: 3px solid var(--ink); background: rgba(26,26,46,.08); margin-bottom: 18px; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:.5} 50%{opacity:1} }
.buy-fallback { margin-bottom: 18px; }

/* Sold-out product: product page box and shop card */
.sold-out-box { margin-bottom: 18px; }
.sold-out-btn {
  display: block; width: 100%; font: inherit; font-size: 1.05rem; font-weight: 900;
  background: rgba(26,26,46,.08); color: rgba(26,26,46,.55); border: 3px solid rgba(26,26,46,.35); border-radius: 50px;
  padding: 16px 24px; cursor: not-allowed;
}
.sold-out-box p { font-size: .95rem; line-height: 1.6; margin: 14px 0 12px; }
.sold-out-alt {
  display: block; text-align: center; text-decoration: none;
  background: var(--orange); color: var(--white); border: 3px solid var(--ink); border-radius: 50px;
  padding: 16px 24px; font-size: 1.05rem; font-weight: 900;
}
.sold-out-alt:hover { background: var(--orange-dark); }
.pdp-price .off.sold, .shop-card-price .off.sold { background: var(--ink); color: var(--white); }
.shop-card.sold-out .shop-card-img img { opacity: .55; filter: grayscale(.6); }
.shop-card.sold-out .shop-card-btn { background: rgba(26,26,46,.12); color: var(--ink); }
.buy-fallback a {
  display: block; text-align: center; text-decoration: none;
  background: var(--orange); color: var(--white); border: 3px solid var(--ink); border-radius: 50px;
  padding: 16px 24px; font-size: 1.05rem; font-weight: 900;
}
.buy-fallback a:hover { background: var(--orange-dark); }
.buy-fallback p { font-size: .85rem; opacity: .7; margin-top: 8px; text-align: center; }

.pdp-trust { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: .88rem; margin-bottom: 28px; opacity: .85; }

.pdp-acc { border-top: 2px solid rgba(26,26,46,.15); }
.pdp-acc details { border-bottom: 2px solid rgba(26,26,46,.15); }
.pdp-acc summary {
  list-style: none; cursor: pointer; padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Fredoka One', cursive; font-weight: 400; font-size: 1.2rem;
}
.pdp-acc summary::-webkit-details-marker { display: none; }
.pdp-acc summary::after {
  content: '+'; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center; font-family: 'Lato', sans-serif; font-weight: 900;
}
.pdp-acc details[open] summary { color: var(--orange-dark); }
.pdp-acc details[open] summary::after { content: '−'; background: var(--yellow); }
.pdp-acc .acc-body { padding: 0 0 20px; font-size: .98rem; line-height: 1.7; }
.pdp-acc .acc-body p { margin-bottom: 10px; opacity: .88; }
.pdp-acc ol, .pdp-acc ul { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pdp-acc ol { counter-reset: step; }
.pdp-acc ol li { counter-increment: step; position: relative; padding-left: 40px; }
.pdp-acc ol li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: .9rem;
}
.pdp-acc ul li { position: relative; padding-left: 26px; }
.pdp-acc ul li::before { content: '✓'; position: absolute; left: 0; color: var(--orange); font-weight: 900; }
.pdp-acc li strong { font-weight: 900; }

.related { background: var(--yellow); border-top: 3px solid var(--ink); }
.related .shop-grid { grid-template-columns: repeat(3, 1fr); max-width: 900px; }
.related .shop-section-head { max-width: 900px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 10000; background: rgba(26,26,46,.88);
  display: flex; align-items: center; justify-content: center; padding: 40px;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.lightbox.show { opacity: 1; pointer-events: auto; }
.lightbox-content { max-width: min(720px, 100%); max-height: 100%; }
.lightbox-content img { width: 100%; height: auto; max-height: 80vh; object-fit: contain; border-radius: 16px; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--ink); font-size: 1.4rem; font-weight: 900; color: var(--ink);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}

@media (max-width: 1000px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; gap: 32px; padding: 16px 16px 56px; }
  .pdp-gallery { position: static; }
  .crumbs { padding: 18px 16px 0; }
  .shop-section { padding: 40px 16px 56px; }
  .related .shop-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .shop-grid, .related .shop-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .shop-card { border-radius: 18px; }
  .shop-card-body { padding: 12px 12px 14px; }
  .shop-card h3 { font-size: 1.05rem; }
  .shop-card-sub { display: none; }
  .shop-card-price .now { font-size: 1.15rem; }
  .shop-card-btn { padding: 8px 14px; font-size: .8rem; }
}

/* Homepage closing call to action */
.home-cta {
  background: var(--yellow); border-top: 3px solid var(--ink);
  text-align: center; padding: 64px 16px 72px;
}
.home-cta h2 { font-family: 'Fredoka One', cursive; font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 10px; }
.home-cta p { font-size: 1.05rem; opacity: .85; margin-bottom: 26px; }
.home-cta .home-cta-more { margin: 22px 0 0; font-size: .98rem; opacity: 1; }
.home-cta .home-cta-more a { color: var(--ink); font-weight: 900; text-underline-offset: 3px; }
.home-cta .home-cta-more a:hover { color: var(--orange-dark); }
.pdp-after { margin-top: 20px; font-size: 1rem; line-height: 1.6; }
.pdp-after a { color: var(--orange-dark); font-weight: 900; }

/* ── PRINTER PAGE: rating + reviews ── */
.review-stars { color: #F5A623; letter-spacing: 2px; }
.pdp-rating { display: inline-flex; align-items: center; gap: 8px; margin: -6px 0 16px; font-size: .92rem; color: var(--ink); text-decoration: none; }
.pdp-rating strong { font-weight: 900; }
.pdp-rating:hover { color: var(--orange-dark); }
.pdp-reviews { background: var(--white); border-top: 3px solid var(--ink); padding: 48px 24px; }
.pdp-reviews-head { text-align: center; max-width: 940px; margin: 0 auto; }
.pdp-reviews-head h2 { font-family: 'Fredoka One', cursive; font-weight: 400; font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 8px; }
.pdp-reviews-head p { opacity: .75; margin-bottom: 18px; }
.rating-summary { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 10px 14px; }
.rating-big { font-family: 'Fredoka One', cursive; font-size: 2.4rem; line-height: 1; }
.rating-big small { font-size: 1rem; opacity: .6; }
.rating-summary .review-stars { font-size: 1.3rem; }
.rating-count { font-size: .95rem; opacity: .8; }
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 940px; margin: 0 auto; }
.review-card { background: var(--white); border: 3px solid var(--ink); border-radius: 24px; padding: 28px 26px; }
.review-card .review-stars { font-size: 1.05rem; margin-bottom: 10px; }
.review-title { font-weight: 900; font-size: 1.05rem; margin-bottom: 8px; }
.review-text { font-size: 1rem; line-height: 1.6; margin-bottom: 16px; }
.review-author { font-weight: 900; font-size: .9rem; opacity: .65; }
.review-verified { display: inline-block; margin-left: 8px; padding: 2px 10px; background: rgba(26,26,46,.08); border-radius: 999px; font-size: .72rem; vertical-align: middle; }
.review-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.review-photos a { display: block; width: 64px; height: 64px; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; }
.review-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-reviews-more { text-align: center; margin-top: 28px; }
.pdp-reviews-more a { color: var(--orange-dark); font-weight: 900; }
@media (max-width: 700px) {
  .pdp-reviews { padding: 44px 16px; }
  .reviews-grid { grid-template-columns: 1fr; gap: 16px; }
}
.home-rating { color: var(--white); margin: -14px 0 24px; }
.home-rating:hover { color: var(--yellow); }
.home-rating .review-stars { color: var(--yellow); }
.home-rating-link { text-decoration: underline; text-underline-offset: 3px; }

/* ── VERIFIED REVIEWS (product pages) ── */
.rv { background: var(--white); border-top: 3px solid var(--ink); padding: 64px 24px; scroll-margin-top: 80px; }
.rv-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.rv-summary { position: sticky; top: 100px; }
.rv-summary h2 { font-family: 'Fredoka One', cursive; font-weight: 400; font-size: 1.9rem; margin-bottom: 18px; }
.rv-score { font-family: 'Fredoka One', cursive; font-size: 3.6rem; line-height: 1; }
.rv-score small { font-size: 1.2rem; opacity: .55; margin-left: 2px; }
.rv-score-stars { font-size: 1.35rem; margin: 8px 0 10px; }
.rv-based { font-size: .9rem; line-height: 1.5; opacity: .7; margin-bottom: 22px; }
.rv-bars { display: grid; gap: 8px; }
.rv-bar { display: grid; grid-template-columns: 34px 1fr 24px; align-items: center; gap: 10px; font-size: .85rem; font-weight: 700; }
.rv-bar span:last-child { text-align: right; opacity: .6; }
.rv-track { height: 8px; background: rgba(26,26,46,.08); border-radius: 99px; overflow: hidden; }
.rv-track span { display: block; height: 100%; background: #F5A623; border-radius: 99px; }
.rv-list { border-top: 1px solid rgba(26,26,46,.12); }
.rv-item { padding: 24px 0; border-bottom: 1px solid rgba(26,26,46,.12); }
.rv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 10px; font-size: .82rem; }
.rv-meta .review-stars { font-size: 1rem; }
.rv-badge { color: #1E8E4E; font-weight: 700; }
.rv-meta time { margin-left: auto; opacity: .55; }
.rv-text { font-size: 1rem; line-height: 1.65; margin: 0; }
.rv-reply { margin-top: 14px; padding: 12px 16px; background: var(--cream, #FFF8F0); border-left: 3px solid var(--orange); border-radius: 0 10px 10px 0; font-size: .9rem; line-height: 1.55; }
.rv-reply strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.rv-reply p { margin: 0; }
.rv-more { display: block; margin: 28px auto 0; background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: 50px; padding: 12px 28px; font: 700 .95rem 'Lato', sans-serif; cursor: pointer; }
.rv-more:hover { background: var(--yellow); }
@media (max-width: 800px) {
  .rv { padding: 44px 16px; }
  .rv-inner { grid-template-columns: 1fr; gap: 28px; }
  .rv-summary { position: static; }
}
.rv-empty { color: rgba(26,26,46,.18); }
