/* 2.22.0 homepage in the big-store section order (includes/pb-layout.php). DM Aroma colours. */
.dmab-home--pb { --pb-ink: #14130f; --pb-muted: #6d675c; --pb-gold: #b8893b; --pb-gold-text: #8a6a2f; --pb-red: #c8102e; --pb-line: #e8e1d3; --pb-card: #fff; }
.dmab-home--pb .dmab-pb { padding: 56px 0 8px; }

/* stars line above the headline */
.dmab-pb-stars { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--pb-muted); text-decoration: none; margin-bottom: 14px; }
.dmab-pb-stars:hover { color: var(--pb-ink); }
.dmab-pb-stars-row { display: inline-flex; gap: 2px; }
.dmab-pb-stars svg { width: 16px; height: 16px; fill: #f4b400; }

/* trust strip under the hero */
.dmab-pb-trust { border-top: 1px solid var(--pb-line); border-bottom: 1px solid var(--pb-line); background: #fff; }
.dmab-pb-trust-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.dmab-pb-trust-item { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dmab-pb-trust-item > svg, .dmab-pb-trust-item > .dmab-hicon { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: #f6f1e7; color: var(--pb-gold-text); }
.dmab-pb-trust-item b { display: block; font-size: 14px; color: var(--pb-ink); line-height: 1.3; }
.dmab-pb-trust-item span { display: block; font-size: 12px; color: var(--pb-muted); line-height: 1.3; }

/* section heads */
.dmab-pb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.dmab-pb-title { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 700; color: var(--pb-ink); letter-spacing: -0.01em; }
.dmab-pb-title.is-upper { text-transform: uppercase; letter-spacing: 0.01em; }
.dmab-pb-sub { margin: 6px 0 0; font-size: 15px; color: var(--pb-muted); }
.dmab-pb-all { flex: none; font-weight: 600; font-size: 14px; color: var(--pb-ink); text-decoration: none; white-space: nowrap; }
.dmab-pb-all:hover { color: var(--pb-gold-text); }
.dmab-pb-center { text-align: center; margin: 22px 0 0; }
.dmab-pb-showmore { border: 1px solid var(--pb-line); background: #fff; color: var(--pb-ink); border-radius: 999px; padding: 10px 22px; font-weight: 600; font-size: 14px; cursor: pointer; }
.dmab-pb-showmore:hover { border-color: var(--pb-ink); }

/* 4 shown, the rest after "Show more" */
.dmab-pb-more:not(.is-open) .products > .product-small:nth-child(n+9) { display: none; }

/* compact 6-across row */
@media (min-width: 850px) {
  .dmab-pb-six .products.large-columns-6 > .product-small { flex-basis: 16.666%; max-width: 16.666%; }
}
.dmab-pb-six .products .name, .dmab-pb-six .products .product-title { font-size: 13px; }

/* best seller tabs */
.dmab-pb-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 18px; }
.dmab-pb-tab { border: 1px solid var(--pb-line); background: #fff; color: var(--pb-ink); border-radius: 999px; padding: 8px 16px; font-size: 14px; cursor: pointer; line-height: 1.2; }
.dmab-pb-tab span { color: var(--pb-muted); margin-left: 4px; }
.dmab-pb-tab.is-on { background: var(--pb-ink); border-color: var(--pb-ink); color: #fff; }
.dmab-pb-tab.is-on span { color: rgba(255, 255, 255, 0.65); }
a.dmab-pb-tab { text-decoration: none; display: inline-block; transition: border-color .3s, background-color .3s; }
a.dmab-pb-tab:hover { border-color: var(--pb-ink); }
.dmab-pb-tab .dmab-pb-tab-go { color: var(--pb-ink); margin-left: 4px; }
.dmab-pb-panel { display: none; }
.dmab-pb-panel.is-on { display: block; }

/* deal of the season */
.dmab-pb-deal-card { display: grid; grid-template-columns: minmax(0, 34%) minmax(0, 1fr); background: var(--pb-card); border: 1px solid var(--pb-line); border-radius: 20px; overflow: hidden; }
.dmab-pb-deal-media { position: relative; display: block; background: #f6f1e7; min-height: 280px; }
.dmab-pb-deal-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.dmab-pb-save { position: absolute; z-index: 2; top: 14px; left: 14px; background: var(--pb-red); color: #fff; font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.dmab-pb-deal-body { padding: 28px 32px; display: flex; flex-direction: column; }
.dmab-pb-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--pb-gold-text); }
.dmab-pb-deal-title { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 700; }
.dmab-pb-deal-title a { color: var(--pb-ink); text-decoration: none; }
.dmab-pb-deal-brand { margin: 6px 0 0; color: var(--pb-muted); font-size: 14px; }
.dmab-pb-deal-intro { margin: 14px 0 0; color: #3d3a33; font-size: 15px; line-height: 1.55; max-width: 62ch; }
.dmab-pb-deal-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--pb-line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dmab-pb-deal-price { margin: 0; }
.dmab-pb-deal-price .now { font-size: 26px; font-weight: 700; color: var(--pb-red); }
.dmab-pb-deal-price del { color: #9a9488; margin-left: 6px; }
.dmab-pb-deal-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* FAQ: heading left, questions right */
.dmab-pb-faq-card { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 40px; background: var(--pb-card); border: 1px solid var(--pb-line); border-radius: 20px; padding: 36px 40px; }
.dmab-pb-faq-left .dmab-btn { margin-top: 16px; }
.dmab-pb-faq-list details { border-bottom: 1px solid var(--pb-line); }
.dmab-pb-faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; font-weight: 600; font-size: 15px; color: var(--pb-ink); }
.dmab-pb-faq-list summary::-webkit-details-marker { display: none; }
.dmab-pb-caret { flex: none; width: 9px; height: 9px; border-right: 2px solid var(--pb-ink); border-bottom: 2px solid var(--pb-ink); transform: rotate(45deg); margin-top: -4px; transition: transform .3s cubic-bezier(.22,1,.36,1); }
.dmab-pb-faq-list details[open] .dmab-pb-caret { transform: rotate(-135deg); margin-top: 4px; }
.dmab-pb-faq-list details p { margin: -4px 0 16px; color: var(--pb-muted); font-size: 14px; line-height: 1.6; }
.dmab-pb-faq-list details p a { color: var(--pb-gold-text); }
.dmab-home--pb .dmab-pb-faq { padding-bottom: 64px; }

@media (max-width: 849px) {
  .dmab-pb-trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dmab-home--pb .dmab-pb { padding-top: 40px; }
  .dmab-pb-title { font-size: 24px; }
  .dmab-pb-deal-card { grid-template-columns: 1fr; }
  .dmab-pb-deal-media { min-height: 0; aspect-ratio: 1 / 1; }
  .dmab-pb-deal-body { padding: 22px 20px; }
  .dmab-pb-faq-card { grid-template-columns: 1fr; gap: 12px; padding: 26px 20px; }
  .dmab-pb-six .products > .product-small:nth-child(n+5) { display: none; }
}
@media (max-width: 480px) {
  .dmab-pb-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .dmab-pb-trust-item b { font-size: 13px; }
}
.dmab-pb-arrow { margin-left: 8px; }

/* ── 2.28.0 (owner's redesign brief): Shop by collection tiles ── */
.dmab-ctiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.dmab-ctile { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--pb-line); text-decoration: none; isolation: isolate; }
.dmab-ctile-img, .dmab-ctile-img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.dmab-ctile-img img { object-fit: cover; transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.dmab-ctile:hover .dmab-ctile-img img { transform: scale(1.04); }
.dmab-ctile::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(24, 17, 13, .78) 0%, rgba(24, 17, 13, .2) 48%, rgba(24, 17, 13, 0) 72%); }
.dmab-ctile-text { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; display: flex; flex-direction: column; gap: 4px; }
.dmab-ctile-text b { font-family: var(--lx-serif, Georgia, serif); font-size: 26px; line-height: 1.1; font-weight: 600; color: #fff; }
.dmab-ctile-text > span { font-size: 13px; line-height: 18px; color: rgba(255, 255, 255, .88); }
.dmab-ctile:focus-visible { outline: 2px solid var(--pb-gold-text); outline-offset: 3px; }
@media (max-width: 849px) {
	.dmab-ctiles { grid-template-columns: repeat(5, minmax(220px, 70%)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
	.dmab-ctile { scroll-snap-align: start; }
}

/* ── 2.28.0: Hidden gems editorial split ── */
.dmab-gems-split { display: grid; grid-template-columns: minmax(260px, 1fr) 3fr; gap: 40px; align-items: center; }
.dmab-gems-intro .dmab-pb-title { margin-bottom: 12px; }
.dmab-gems-intro .dmab-pb-sub { margin: 0 0 24px; font-size: 16px; line-height: 24px; }
@media (max-width: 849px) { .dmab-gems-split { grid-template-columns: 1fr; gap: 24px; } }

/* ── 2.28.0: Follow DM Aroma band ── */
.dmab-follow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.dmab-follow-copy .dmab-pb-sub { margin: 8px 0 0; }
.dmab-follow-links { display: flex; flex-wrap: wrap; gap: 12px; }
.dmab-follow-link { display: flex; align-items: center; gap: 12px; padding: 12px 20px 12px 16px; border: 1px solid var(--pb-line); border-radius: 999px; background: #fff; color: var(--pb-ink); text-decoration: none; transition: border-color .3s, transform .3s cubic-bezier(.22, 1, .36, 1); }
.dmab-follow-link:hover { border-color: var(--pb-gold); transform: translateY(-2px); color: var(--pb-ink); }
.dmab-follow-link i { font-size: 20px; color: var(--pb-gold-text); }
.dmab-follow-link > span { display: flex; flex-direction: column; line-height: 1.2; }
.dmab-follow-link b { font-size: 14px; font-weight: 600; }
.dmab-follow-link > span > span { font-size: 12px; color: var(--pb-muted); }
@media (prefers-reduced-motion: reduce) { .dmab-ctile-img img, .dmab-follow-link { transition: none; } }

/* 2.29.0 Emerald campaign banners (markup only printed with the Emerald colour theme) */
.dmab-promo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.dmab-promo-copy { max-width: 520px; }
.dmab-promo-copy .dmab-pb-title { margin: 12px 0 16px; font-size: 48px; line-height: 52px; text-wrap: balance; }
.dmab-promo-text { margin: 0 0 32px; font-size: 16px; line-height: 26px; text-wrap: pretty; }
.dmab-promo-media { position: relative; width: 100%; max-width: 580px; margin-left: auto; padding: 0 0 32px 0; }
.dmab-promo-img { display: block; overflow: hidden; border-radius: 16px; }
.dmab-promo-img img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.dmab-promo-img.is-main { width: 76%; max-width: 460px; margin-left: auto; aspect-ratio: 1 / 1; }
.dmab-promo-img.is-side { position: absolute; bottom: 0; left: 0; width: 38%; max-width: 230px; aspect-ratio: 1 / 1; }
.dmab-promo-media:hover .dmab-promo-img.is-main img { transform: scale(1.03); }
.dmab-pb-promo--oud .dmab-promo { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.dmab-pb-promo--oud .dmab-promo-media { order: -1; margin-left: 0; margin-right: auto; }
.dmab-pb-promo--oud .dmab-promo-img.is-main { margin-left: 0; margin-right: auto; }
.dmab-pb-promo--oud .dmab-promo-img.is-side { left: auto; right: 0; }
@media (max-width: 1100px) { .dmab-promo-copy .dmab-pb-title { font-size: 40px; line-height: 44px; } }
@media (max-width: 849px) {
	.dmab-promo, .dmab-pb-promo--oud .dmab-promo { grid-template-columns: 1fr; gap: 32px; }
	.dmab-pb-promo--oud .dmab-promo-media { order: 0; }
	.dmab-promo-copy .dmab-pb-title { font-size: 34px; line-height: 38px; }
	.dmab-promo-media, .dmab-pb-promo--oud .dmab-promo-media { max-width: none; margin: 0; padding: 0; }
	.dmab-promo-img.is-main, .dmab-pb-promo--oud .dmab-promo-img.is-main { width: 100%; max-width: 420px; margin-inline: auto; }
	.dmab-promo-img.is-side { display: none; }
}
@media (prefers-reduced-motion: reduce) { .dmab-promo-img img { transition: none; } }
