/* ArtNest v2 design refresh (2026-11-12). Loaded after site.css; overrides only. */

/* ---------------------------------------------------------------- product page */
body.v2 .v2-pdp .rf-price-row { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .9rem; margin: .55rem 0 .9rem; }
body.v2 .v2-pdp .rf-price-row .rf-price { margin: 0; font-size: clamp(1.75rem, 6.5vw, 2.15rem); line-height: 1; }
body.v2 .v2-pdp .rf-price-row .rf-price small { display: inline; margin: 0 0 0 .35rem; font-size: .78rem; font-weight: 500; color: var(--v2-muted); letter-spacing: 0; }
body.v2 .v2-pdp .rf-price-row .rf-stock { margin: 0; }
body.v2 .v2-pdp .pdp-buy .pdp-qty-price-controls { justify-content: flex-start; }

/* one plain list instead of four tiles */
body.v2 .v2-pdp .v2-pdp-trust.rf-facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 1rem 0 0; padding: .35rem 0 0; border-top: 1px solid var(--v2-line); }
body.v2 .v2-pdp .rf-facts li { min-height: 0; padding: .42rem 0; background: none; border: 0; border-radius: 0; font-size: .875rem; line-height: 1.35; color: var(--v2-ink); }
body.v2 .v2-pdp .rf-facts li > a { min-height: 0; }
body.v2 .v2-pdp .rf-facts svg { flex: none; width: 1.15rem; height: 1.15rem; }
body.v2 .v2-pdp .rf-facts strong { display: inline; font-size: inherit; font-weight: 600; color: var(--v2-rose-deep); }

/* description */
body.v2 .v2-pdp .pdp-about-body.rf-desc { margin-inline: 1rem; padding: 0; border-left: 0; }
body.v2 .v2-pdp .rf-desc .prose { margin: 0 0 .7rem; max-width: 60ch; font-size: 1rem; line-height: 1.65; }
body.v2 .v2-pdp .rf-desc-h { margin: 1rem 0 .35rem; font-weight: 600; font-size: .95rem; color: var(--v2-ink); }
body.v2 .v2-pdp .rf-desc-list { margin: 0 0 .8rem; padding-left: 1.15rem; list-style: disc; }
body.v2 .v2-pdp .rf-desc-list li { margin: .22rem 0; font-size: .97rem; line-height: 1.5; color: var(--ink-2, var(--v2-ink)); }
body.v2 .v2-pdp .rf-desc-list li::marker { color: var(--v2-rose); }

/* details: readable label/value pairs, no tiny tiles */
body.v2 .v2-pdp .pdp-meta .spec-list { grid-template-columns: 1fr; grid-auto-rows: auto; gap: .15rem; }
body.v2 .v2-pdp .pdp-meta .spec-list div { flex-direction: row; align-items: baseline; justify-content: flex-start; gap: .6rem; min-height: 0; height: auto; padding: .15rem 0; background: none; border: 0; box-shadow: none; }
body.v2 .v2-pdp .pdp-meta .spec-list dt { font-size: .72rem; }
body.v2 .v2-pdp .pdp-meta .spec-list dd { font-size: .875rem; }
body.v2 .v2-pdp .pdp-details dd a { min-height: 0; }

/* questions box sits under the details */
body.v2 .v2-pdp .mx-ask { margin: 0; }
@media (max-width: 959px) {
    body.v2 .v2-pdp .mx-ask { order: 3; }
}

/* reviews: quiet when empty */
body.v2 .v2-pdp .pdp-reviews.is-empty { padding: 1rem 1.1rem; }
body.v2 .v2-pdp .pdp-reviews.is-empty .pdp-reviews-lede { max-width: none; margin: .3rem 0 0; font-family: var(--v2-sans); font-size: .92rem; font-weight: 400; letter-spacing: 0; line-height: 1.45; color: var(--v2-muted); font-variation-settings: normal; }

/* -------------------------------------------------------------------- homepage */
.v2-hero .v2-hero-sub { display: none; }
@media (min-width: 769px) {
    .v2-cat-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
@media (max-width: 768px) {
    .v2-cat-chips { gap: .8rem; }
    .v2-cat-chips .v2-chip { width: 92px; }
    .v2-cat-chips .v2-chip-img { width: 84px; height: 84px; }
    .v2-cat-chips .v2-chip-label { font-size: .78rem; line-height: 1.25; min-height: 2.5em; }

    /* chat button: smaller on phones so it covers less of the product grid */
    .mx-launcher { padding: .28rem; right: 10px; }
    .mx-launcher .mx-launcher-orb { width: 2.4rem; height: 2.4rem; }
}

/* ============================================================ doodles + motion
   Faint hand-drawn pattern behind the page, a few accents, gentle movement.
   Remove this whole section (and refresh.js) to switch the effect off. */
body.v2 main { background: #fff url("/assets/v2/img/doodle-tile.svg") 0 0 / 520px 520px repeat; }
/* checkout stays plain so nothing competes with the form */
body.v2co-page main { background-image: none; }
.v2-hero { background-image: url("/assets/v2/img/doodle-tile.svg"), linear-gradient(180deg, var(--v2-cream) 0%, var(--v2-blush-soft) 100%); background-size: 520px 520px, auto; background-position: 40px 12px, 0 0; }
.v2-related { background-image: url("/assets/v2/img/doodle-tile.svg"); background-size: 520px 520px; background-position: 180px 60px; }

/* footer: the same pattern in white, very quiet */
.v2-footer { position: relative; isolation: isolate; }
.v2-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url("/assets/v2/img/doodle-tile.svg") 0 0 / 520px 520px repeat; filter: brightness(0) invert(1); opacity: .45; }

/* a little squiggle above each section heading */
.v2-head::before { content: ""; display: block; width: 54px; height: 10px; margin: 0 auto .6rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='10' fill='none' stroke='%23a85660' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M2 6q6-8 12 0t12 0 12 0 12 0'/%3E%3C/svg%3E") center / contain no-repeat; opacity: .7; }

/* hero accents: one sparkle, one heart, floating slowly */
.v2-hero::before, .v2-hero::after { content: ""; position: absolute; pointer-events: none; z-index: 0; background-repeat: no-repeat; background-size: contain; opacity: .55; animation: rf-float 7s ease-in-out infinite; }
.v2-hero::before { width: 34px; height: 34px; top: 9%; right: 6%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34' fill='none' stroke='%23a85660' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M17 3l3.5 10.5L31 17l-10.5 3.5L17 31l-3.5-10.5L3 17l10.5-3.5z'/%3E%3C/svg%3E"); }
.v2-hero::after { width: 26px; height: 26px; bottom: 7%; left: 3%; animation-delay: -3.5s; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' fill='none' stroke='%23617a5b' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M3 9c0-6 8-8 10-1 2-7 10-5 10 1 0 7-8 11-10 15C11 20 3 16 3 9z'/%3E%3C/svg%3E"); }
.v2-hero > * { position: relative; z-index: 1; }
@media (max-width: 768px) { .v2-hero::before, .v2-hero::after { display: none; } }
@keyframes rf-float { 0%, 100% { translate: 0 0; rotate: -4deg; } 50% { translate: 0 -8px; rotate: 5deg; } }

/* collage tiles drift a few pixels, out of step with each other */
.v2-collage-tile { animation: rf-drift 9s ease-in-out infinite; }
.v2-collage-2 { animation-delay: -2.2s; } .v2-collage-3 { animation-delay: -4.6s; } .v2-collage-4 { animation-delay: -6.8s; }
@keyframes rf-drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

/* scroll reveal (classes are added by refresh.js only) */
.rf-rv { opacity: 0; translate: 0 16px; transition: opacity .55s ease, translate .55s cubic-bezier(.2, .7, .2, 1); }
.rf-rv.is-in { opacity: 1; translate: 0 0; }

/* small touches */
.v2-card-media { overflow: hidden; }
.v2-card-media img { transition: scale .5s cubic-bezier(.2, .7, .2, 1); }
.v2-btn svg, .v2-link svg { transition: translate .2s ease; }
.v2-card-cta:active, .v2-btn-rose:active { scale: .96; }
.v2-chip-img { transition: rotate .3s ease, border-color .3s ease; }
@media (hover: hover) {
    .v2-card:hover .v2-card-media img { scale: 1.04; }
    .v2-btn:hover svg, .v2-link:hover svg { translate: 3px 0; }
    .v2-chip:hover .v2-chip-img { rotate: -4deg; border-color: var(--v2-rose); }
    .v2-cat-card:hover img { scale: 1.03; }
    .v2-cat-card img { transition: scale .5s cubic-bezier(.2, .7, .2, 1); }
}
@media (prefers-reduced-motion: reduce) {
    .v2-hero::before, .v2-hero::after, .v2-collage-tile { animation: none; }
    .rf-rv { opacity: 1; translate: none; transition: none; }
    .v2-card-media img, .v2-btn svg, .v2-chip-img { transition: none; }
}

/* ------------------------------------------------------- category header (fixes) */
/* breadcrumb: the current page sat higher than the two links, which are 28px tall */
.v2-crumbs li { display: inline-flex; align-items: center; min-height: 28px; }
/* doodles on the category band, like the home hero */
.v2-cat-hero { background-image: url("/assets/v2/img/doodle-tile.svg"), linear-gradient(120deg, var(--v2-cream) 0%, var(--v2-blush-soft) 60%, var(--v2-blush) 100%); background-size: 520px 520px, auto; background-position: 90px -30px, 0 0; }

/* ------------------------------------------------------- cookie / tracking consent */
/* Fixed at the bottom. consent.js sets --an-consent-bottom to the height of whatever bar is
   already fixed there (mobile nav, product buy bar, checkout pay bar), so the banner sits
   just above it and never covers it. */
.an-consent { position: fixed; left: 0; right: 0; bottom: var(--an-consent-bottom, 0px); z-index: 445; background: #2c2a27; color: #fff; font-size: .84rem; line-height: 1.4; box-shadow: 0 -6px 24px rgba(44,42,39,.18); }
.an-consent[hidden] { display: none; }
.an-consent-inner { display: flex; align-items: center; gap: .6rem 1.25rem; flex-wrap: wrap; padding-top: .7rem; padding-bottom: .7rem; }
.an-consent p { margin: 0; flex: 1 1 300px; }
.an-consent a { color: #fff; text-decoration: underline; }
.an-consent-actions { display: flex; gap: .6rem; flex: 0 0 auto; }
/* Reject and Accept are deliberately identical. */
.an-consent-btn { min-width: 104px; min-height: 40px; padding: .4rem 1rem; border: 1.5px solid #fff; border-radius: 999px; background: #fff; color: #2c2a27; font: inherit; font-weight: 700; cursor: pointer; }
.an-consent-btn:focus-visible, .an-consent-open:focus-visible, .an-consent a:focus-visible { outline: 3px solid #f2b8c0; outline-offset: 2px; }
.an-consent-open { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 600px) { .an-consent-actions { width: 100%; } .an-consent-btn { flex: 1; } }
/* Desktop: a card in the bottom-left corner, clear of the chat button on the right. */
@media (min-width: 900px) {
    .an-consent { left: 22px; right: auto; bottom: calc(var(--an-consent-bottom, 0px) + 22px); width: 430px; border-radius: 16px; }
    .an-consent-inner { padding: 1rem 1.1rem; max-width: none; width: auto; }
    .an-consent p { flex-basis: 100%; }
}

/* ------------------------------------------------------- checkout consent checkbox */
.an-agree { margin: .6rem 0 .5rem; font-size: .8rem; line-height: 1.4; text-align: left; }
.an-agree-label { display: flex; align-items: flex-start; gap: .55rem; cursor: pointer; }
.an-agree-label input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: var(--v2-rose, #a85660); }
.an-agree a { text-decoration: underline; }
.an-agree .field-error { display: block; margin-top: .3rem; }
.an-agree.has-error .an-agree-label input { outline: 2px solid #b3261e; outline-offset: 2px; }
.v2-paybar .an-agree { margin: .5rem 0 .2rem; font-size: .74rem; }

/* ------------------------------------------------------- platform fee note under the price */
.rf-fee-note { margin: .15rem 0 .6rem; font-size: .8rem; color: var(--v2-muted, #6b6660); }

/* ------------------------------------------------------- product information + safety and handling */
.rf-info { margin: 1rem 0 0; padding: 1rem 1.1rem; border: 1px solid var(--v2-line, #e8e2d9); border-radius: 14px; background: #fff; }
.rf-info-title { margin: 0 0 .6rem; font-family: var(--v2-serif, Georgia, serif); font-size: 1.05rem; font-weight: 600; }
.rf-info-list { margin: 0; display: grid; gap: .45rem; font-size: .88rem; }
.rf-info-list > div { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: .75rem; }
.rf-info-list dt { color: var(--v2-muted, #6b6660); }
.rf-info-list dd { margin: 0; }
.rf-safety { background: #fffaf0; border-color: #ead9b5; }
.rf-safety-list { margin: 0; padding-left: 1.1rem; display: grid; gap: .3rem; font-size: .88rem; line-height: 1.45; }
.pdp-about .rf-info { margin-bottom: .9rem; }

/* ------------------------------------------------------- product page: no empty right column */
/* Desktop: the buy box + reviews column follows the reader down a long description instead of
   leaving a blank column beside it. refresh.js sets --rf-buy-top so a column taller than the
   window still shows its lower part. */
@media (min-width: 900px) {
    body.v2 .v2-pdp .pdp-col-buy { position: sticky; top: var(--rf-buy-top, 100px); align-self: start; }
}
