/* ============================================================
   Arbor — pages.css
   Home hero, catalog, product detail, blog, content, 404,
   auth pages, customer account area
   ============================================================ */

/* ---------------- Home: hero ---------------- */

.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-block: 72px 64px; }

.hero-eyebrow { display: inline-flex; align-items: center; gap: 9px; background: var(--accent-soft); color: var(--accent-strong); font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 999px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.hero h1 { font-size: clamp(38px, 5.2vw, 58px); line-height: 1.04; letter-spacing: -0.03em; margin: 22px 0 18px; }
.hero-sub { font-size: 17px; color: var(--ink-soft); line-height: 1.7; max-width: 520px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 26px; }

.hero-trust { display: flex; gap: 24px; flex-wrap: wrap; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-soft); }
.hero-trust .icon { width: 17px; height: 17px; color: var(--accent); }

.hero-visual { position: relative; min-height: 460px; }
.hero-visual::before { content: ""; position: absolute; inset: 6% -4% 2% 4%; background: radial-gradient(closest-side, var(--hero-halo) 0%, rgba(127, 184, 164, 0) 100%); border-radius: 50%; }

.hero-main { position: absolute; right: 0; top: 0; width: 74%; aspect-ratio: .88; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-main img { width: 100%; height: 100%; object-fit: cover; }

.float-card { position: absolute; z-index: 2; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 12px 18px 12px 12px; display: flex; align-items: center; gap: 12px; color: var(--ink); animation: floaty 5.5s ease-in-out infinite; }
.float-card.fc-1 { top: 54px; left: 0; }
.float-card.fc-2 { bottom: 34px; left: 6%; animation-delay: -2.7s; }
.float-card:hover strong { color: var(--accent-strong); }
.fc-media { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: var(--accent-soft); flex: none; }
.fc-media img { width: 100%; height: 100%; object-fit: cover; }
.fc-text { display: flex; flex-direction: column; line-height: 1.35; }
.fc-text strong { font-size: 13.5px; letter-spacing: -0.01em; }
.fc-text em { font-style: normal; font-size: 12.5px; color: var(--ink-mute); font-weight: 600; }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------------- Home: sections ---------------- */

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(24px, 3vw, 30px); }
.kicker { display: block; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 8px; }
.kicker-light { color: var(--accent-light); }
.see-all { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.see-all:hover { color: var(--accent-strong); }
.see-all .icon { width: 16px; height: 16px; transition: transform .2s; }
.see-all:hover .icon { transform: translateX(3px); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.cat-art { position: relative; width: 48px; height: 48px; border-radius: 14px; overflow: hidden; background: var(--accent-soft); display: grid; place-items: center; color: #4b453f; flex: none; }
.cat-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cat-art .icon { width: 26px; height: 26px; }
.cat-card h3 { font-size: 15.5px; margin: 15px 0 2px; }
.cat-card .muted { font-size: 13px; }

.journal-banner { display: grid; grid-template-columns: 1.35fr 1fr; background: linear-gradient(120deg, #1c1917 0%, var(--banner-grad-end) 100%); border-radius: 26px; overflow: hidden; color: #fff; }
.jb-copy { padding: 52px 56px; }
.jb-copy h2 { color: #fff; font-size: clamp(24px, 3vw, 30px); margin: 10px 0 14px; }
.jb-copy p { color: rgba(255, 255, 255, .68); font-size: 15.5px; max-width: 460px; margin-bottom: 26px; }
.jb-art { position: relative; min-height: 260px; background: radial-gradient(circle at 60% 45%, rgba(127, 184, 164, .25), rgba(127, 184, 164, 0) 70%); }
.jb-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.props-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.prop { display: flex; gap: 15px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.prop-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.prop-icon .icon { width: 21px; height: 21px; }
.prop strong { display: block; font-size: 15px; letter-spacing: -0.01em; margin-bottom: 3px; }
.prop span:not(.prop-icon) { font-size: 13.5px; color: var(--ink-mute); line-height: 1.55; }

/* ---------------- Page hero (shop / blog) ---------------- */

.page-hero { padding: 40px 0 34px; text-align: center; border-bottom: 1px solid var(--line); background: #fff; }
.page-hero .breadcrumb { justify-content: center; padding-block: 0 18px; }
.page-hero h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 10px; }
.page-hero p { color: var(--ink-soft); font-size: 16px; max-width: 560px; margin-inline: auto; }

/* ---------------- Catalog (products listing) ---------------- */

.catalog { padding-block: 28px 20px; }
.catalog-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.toolbar-filters { display: flex; flex-direction: column; gap: 10px; flex: 1 1 320px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.toolbar-right { display: flex; align-items: center; gap: 14px; }
#result-count { font-size: 13.5px; }

.select-wrap { position: relative; display: inline-flex; align-items: center; }
.select-wrap select { padding: 10px 40px 10px 16px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff; font-size: 14px; font-weight: 500; cursor: pointer; }
.select-wrap select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.select-caret { position: absolute; right: 12px; pointer-events: none; color: var(--ink-mute); }
.select-caret .icon { width: 16px; height: 16px; }

/* ---------------- Product detail ---------------- */

.field select.attribute-selector {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239c948d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  cursor: pointer;
}

.detail { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: start; padding-block: 8px 24px; }

.detail-main { position: relative; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: var(--accent-soft); }
.detail-main img { width: 100%; height: 100%; object-fit: cover; }
.detail-main video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.detail-main [hidden] { display: none; }

.detail-thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.thumb { width: 76px; height: 76px; border-radius: 14px; border: 2px solid transparent; overflow: hidden; background: var(--accent-soft); cursor: pointer; padding: 0; transition: border-color .15s; }
.thumb.active { border-color: var(--ink); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-video { position: relative; }
.thumb-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(0, 0, 0, .25); pointer-events: none; }
.thumb-play svg { width: 26px; height: 26px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); }

.detail-info h1 { font-size: clamp(26px, 3vw, 34px); margin: 12px 0 10px; }
.detail-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.detail-rating { margin-bottom: 12px; }
.detail-price { font-size: 25px; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.detail-price s { font-size: 16.5px; font-weight: 500; }
.save-badge { background: var(--accent-soft); color: var(--accent-strong); font-size: 12.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.detail-desc { margin: 16px 0 22px; color: var(--ink-soft); line-height: 1.7; }

.qty-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 44px; height: 46px; display: grid; place-items: center; color: var(--ink-soft); transition: background .12s, color .12s; }
.qty button:hover { background: var(--bg); color: var(--ink); }
.qty button .icon { width: 15px; height: 15px; }
.qty input, .qty span { width: 40px; text-align: center; font-size: 14.5px; font-weight: 600; border: 0; background: transparent; }
.qty input:focus { outline: none; }
.qty-sm button { width: 27px; height: 27px; }
.qty-sm button .icon { width: 12px; height: 12px; }
.qty-sm input, .qty-sm span { width: 26px; font-size: 13px; }

.detail-metagrid { display: grid; gap: 4px; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; font-size: 14.5px; color: var(--ink-soft); }
.detail-metagrid strong { color: var(--ink); }

.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 4px; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-soft); }
.trust-row .icon { width: 17px; height: 17px; color: var(--accent); flex: none; }

/* Product accordions: description sections and the merchant's own (native <details>) */
.acc { margin-top: 26px; border-top: 1px solid var(--line); }
.acc + .acc { margin-top: 0; border-top: 0; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; font-size: 15px; font-weight: 600; cursor: pointer; }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ink-mute); border-bottom: 2px solid var(--ink-mute); transform: rotate(45deg); transition: transform .2s; flex: none; margin-top: -4px; }
.acc-item[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.acc-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.acc-body { padding-bottom: 18px; font-size: 14.5px; color: var(--ink-soft); }
.acc-body p { margin-bottom: 10px; }
.acc-body p:last-child { margin-bottom: 0; }

.related-section { border-top: 1px solid var(--line); margin-top: 40px; }

/* ---------------- Customer reviews ---------------- */

.rating-link { display: inline-flex; align-items: center; }
.rating-link:hover .rating-text { text-decoration: underline; text-underline-offset: 3px; }

.reviews-section { border-top: 1px solid var(--line); margin-top: 40px; scroll-margin-top: 96px; }
.reviews-section .section-head { margin-bottom: 26px; }

.reviews-layout { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: start; }

.rev-summary { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; position: sticky; top: 96px; }
.rev-avg-row { display: flex; align-items: center; gap: 18px; }
.rev-avg { font-size: 52px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.rev-avg-sub { font-size: 13px; color: var(--ink-mute); margin-top: 5px; }

.review-list { display: flex; flex-direction: column; gap: 14px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.review-head { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.rev-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); font-size: 13.5px; font-weight: 700; flex: none; }
.rev-who { min-width: 0; flex: 1; }
.rev-who strong { display: block; font-size: 14.5px; }
.rev-meta { font-size: 12.5px; color: var(--ink-mute); }
.rev-body { font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); }
.rev-empty { border: 1.5px dashed var(--line-strong); border-radius: 16px; padding: 36px 20px; text-align: center; color: var(--ink-mute); font-size: 14.5px; display: flex; flex-direction: column; align-items: center; gap: 12px; }

.rev-form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; margin: 22px 0; display: none; }
.rev-form.open { display: block; animation: pop .2s ease; }
.rev-form h3 { font-size: 18px; }
.rev-form-sub { font-size: 13.5px; color: var(--ink-soft); margin: 5px 0 20px; }
.rate-row { display: flex; align-items: center; gap: 3px; }
.rate-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; color: var(--line-strong); cursor: pointer; transition: transform .1s, color .1s; }
.rate-btn:hover { transform: scale(1.15); }
.rate-btn:hover svg, .rate-btn:has(input:checked) svg { color: var(--star); fill: var(--star); }
.rate-star { width: 24px; height: 24px; fill: currentColor; }
.form-actions { display: flex; gap: 10px; margin-top: 6px; }

/* ---------------- Blog ---------------- */

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.featured-post { padding-block: 44px 12px; }

.post-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.post-cover { aspect-ratio: 16 / 10; overflow: hidden; background: var(--accent-soft); }
.post-cover-empty { background: linear-gradient(140deg, var(--accent-soft) 0%, #fff 78%); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-cover img { transform: scale(1.06); }

.post-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-mute); flex-wrap: wrap; }
.post-body h3 { font-size: 19px; line-height: 1.35; margin: 12px 0 8px; }
.post-body h3 a:hover { color: var(--accent); }
.post-title-lg { font-size: clamp(21px, 2.4vw, 27px) !important; }
.post-excerpt { font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; }
.read-more { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--accent); margin-top: auto; padding-top: 18px; }
.read-more .icon { width: 16px; height: 16px; transition: transform .2s; }
.read-more:hover .icon { transform: translateX(3px); }

.post-featured { display: grid; grid-template-columns: 1.15fr 1fr; }
.post-featured .post-cover { aspect-ratio: auto; min-height: 360px; }
.post-featured .post-body { padding: 40px 44px; justify-content: center; }
.post-featured .post-excerpt { font-size: 15.5px; }

/* ---------------- Article ---------------- */

.article { max-width: 760px; margin-inline: auto; }
.article-head { text-align: center; padding-top: 36px; }
.article-head h1 { font-size: clamp(29px, 4vw, 42px); line-height: 1.15; margin: 16px 0 22px; }

.article-meta { display: flex; align-items: center; justify-content: center; gap: 12px; text-align: left; }
.article-meta strong { display: block; font-size: 14.5px; }
.article-meta span:not(.avatar) { font-size: 13px; color: var(--ink-mute); }

.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }

.article-body p { font-size: 16.5px; line-height: 1.85; color: #3f3a36; margin: 20px 0; }
.article-body h2 { font-size: 23px; letter-spacing: -0.015em; margin: 38px 0 12px; }
.article-body ul { margin: 18px 0; padding-left: 22px; }
.article-body li { font-size: 16px; line-height: 1.7; color: #3f3a36; margin-bottom: 9px; }
.article-body blockquote { margin: 30px 0; padding: 6px 0 6px 24px; border-left: 3px solid var(--accent); font-size: 19px; font-weight: 500; line-height: 1.55; color: var(--ink); }

.author-card { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.avatar-lg { width: 50px; height: 50px; font-size: 16px; }
.author-card strong { font-size: 15px; display: block; margin-bottom: 4px; }
.author-card p { font-size: 14px; color: var(--ink-soft); }

.article-cover { aspect-ratio: 16 / 8; border-radius: 22px; margin-block: 34px; background: var(--accent-soft); }
.article-head .chip-mini { margin-bottom: 0; }

.share-row { display: flex; align-items: center; gap: 10px; margin: 36px 0 26px; padding-top: 26px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.share-row .muted { font-size: 14px; margin-right: 4px; }
.share-row .icon-btn { border: 1px solid var(--line-strong); }
.share-row .icon-btn .icon { width: 17px; height: 17px; }

.comment { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.comment-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.comment-head h3 { font-size: 15px; }
.comment-head .muted { font-size: 12.5px; }
.comment-body { margin-top: 10px; font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); }
.comment-form-wrap { margin-top: 26px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }

/* ---------------- Content page (About / generic) ---------------- */

.content-hero { text-align: center; padding: 56px 0 12px; }
.content-hero h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 14px; }
.content-hero p { color: var(--ink-soft); font-size: 16.5px; max-width: 620px; margin-inline: auto; }

.prose { max-width: 720px; margin-inline: auto; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; }
.value-card .prop-icon { margin-bottom: 16px; }
.value-card h3 { font-size: 17px; margin-bottom: 8px; }
.value-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.65; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stat-item strong { display: block; font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -0.03em; color: var(--accent); }
.stat-item span { font-size: 13px; color: var(--ink-mute); }

.cta-banner { background: linear-gradient(120deg, var(--accent) 0%, var(--accent-strong) 100%); border-radius: 26px; padding: 56px 40px; text-align: center; color: #fff; }
.cta-banner h2 { color: #fff; font-size: clamp(24px, 3vw, 30px); margin-bottom: 12px; }
.cta-banner p { color: rgba(255, 255, 255, .75); max-width: 480px; margin: 0 auto 26px; }
.cta-section { padding-bottom: 16px; }

/* ---------------- Contact page ---------------- */

.contact-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 24px; padding-block: 34px 72px; }
.contact-layout--form-only { grid-template-columns: 1fr; }
.contact-layout--form-only .contact-form-card { max-width: 720px; width: 100%; margin-inline: auto; }

.contact-aside { background: var(--accent-soft); border-radius: 22px; padding: 34px 32px; display: flex; flex-direction: column; }
.contact-aside .prop-icon { background: #fff; margin-bottom: 8px; }
.contact-aside .rich-text { margin-top: 12px; }
.contact-aside .rich-text > :last-child { margin-bottom: 0; }
.contact-aside-img { display: block; width: 100%; aspect-ratio: 16 / 10; min-height: 240px; object-fit: cover; border-radius: 14px; margin-top: 24px; }

.contact-form-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow-sm); align-self: start; }
.contact-form-card h2 { font-size: 22px; margin: 0; }
.contact-form-sub { font-size: 14px; color: var(--ink-soft); margin: 6px 0 22px; }
.contact-form-card .form-alert { margin-top: 0; }
.contact-form-card .form-actions { margin-top: 4px; }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 20px; padding-block: 26px 56px; }
}

/* ---------------- 404 ---------------- */

.error-wrap { min-height: 62vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-block: 72px; position: relative; }
.error-art { width: 84px; height: 84px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.error-art .icon { width: 38px; height: 38px; }
.error-code { font-size: clamp(80px, 15vw, 130px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; background: linear-gradient(120deg, var(--ink) 55%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-wrap h1 { font-size: clamp(22px, 3vw, 28px); margin: 8px 0 12px; }
.error-wrap .muted { max-width: 440px; font-size: 15.5px; }
.error-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 28px 0 18px; }
.error-links { display: flex; gap: 22px; font-size: 14px; }
.error-links a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.error-links a:hover { color: var(--accent); }

/* ---------------- Auth (login / signup) ---------------- */

.auth-wrap { display: grid; place-items: center; padding-block: 72px; }
.auth-card { width: min(460px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 40px 38px; box-shadow: var(--shadow-sm); }
.auth-card h1 { font-size: 26px; margin: 18px 0 6px; text-align: center; }
.auth-sub { text-align: center; font-size: 14.5px; color: var(--ink-soft); margin-bottom: 28px; }
.form-row { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin: 2px 0 22px; font-size: 13.5px; }
.form-row a { color: var(--accent); font-weight: 600; }
.auth-card .form-alert p:last-child { margin-bottom: 0; }
.auth-alt { text-align: center; font-size: 14.5px; color: var(--ink-soft); margin-top: 22px; }
.auth-alt a { color: var(--accent); font-weight: 700; }

/* ---------------- Password wall (templates/password.html.twig) ---------------- */

body[data-template="password"] { background: var(--bg); }
.password-screen { min-height: 100vh; display: grid; place-items: center; padding: clamp(40px, 10vh, 104px) 24px; }
.password-panel { width: min(420px, 100%); text-align: center; }
.password-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 24px; }
.password-brand-mark { display: inline-flex; color: var(--accent); }
.password-brand-mark svg { width: 30px; height: 30px; }
.password-brand-name { font-size: 15px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.password-brand-img { height: 34px; width: auto; }
.password-drop { display: block; width: 1px; height: 48px; margin: 0 auto 24px; background: var(--line-strong); }
.password-title { font-size: clamp(28px, 5vw, 34px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 12px; }
.password-sub, .password-message { font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin: 0 auto; max-width: 34ch; }
.password-message p { margin: 0 0 10px; }
.password-message p:last-child { margin-bottom: 0; }
.password-message a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.password-form { margin-top: 30px; text-align: left; }
.password-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 8px; }
.password-input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-family: var(--font); font-size: 15px; transition: border-color .18s ease, box-shadow .18s ease; }
.password-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.password-input[aria-invalid="true"] { border-color: var(--danger); }
.password-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(185, 28, 28, .12); }
.password-error { margin: 8px 0 0; font-size: 13px; color: var(--danger); }
.password-submit { margin-top: 18px; min-height: 48px; }
.password-contact { margin: 28px 0 0; font-size: 13px; color: var(--ink-mute); }
.password-contact a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.password-screen a:focus-visible, .password-screen button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 480px) {
  .password-screen { padding: 48px 20px; }
  .password-brand { margin-bottom: 20px; }
  .password-drop { height: 34px; margin-bottom: 20px; }
}

/* ---------------- Customer account area ---------------- */

.account-layout { display: grid; grid-template-columns: 264px 1fr; gap: 36px; align-items: start; padding-block: 44px 24px; }

.account-side { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; position: sticky; top: 96px; }
.user-chip { display: flex; gap: 12px; align-items: center; padding: 10px 10px 14px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.user-chip strong { display: block; font-size: 14.5px; line-height: 1.3; }
.user-chip .muted { font-size: 12px; display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-nav a, .side-nav button { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 11px; font-size: 14.5px; font-weight: 500; color: var(--ink-soft); text-align: left; transition: background .13s, color .13s; }
.side-nav a:hover, .side-nav button:hover { background: var(--bg); color: var(--ink); }
.side-nav a.active { background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.side-nav .icon { width: 18px; height: 18px; }
.side-logout { color: var(--danger) !important; margin-top: 6px; }
.side-logout:hover { background: #fef2f2 !important; color: var(--danger) !important; }

.account-head { margin-bottom: 24px; }
.account-head h1 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 6px; }
.account-head .muted { font-size: 15px; }

.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.stat-num { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.stat-num-sm { font-size: 21px !important; padding-block: 4px; }
.stat-label { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-mute); margin-top: 6px; }
.stat-label .icon { width: 15px; height: 15px; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin-bottom: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.panel-head h2 { font-size: 18px; }

.quick-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { border: 1px solid var(--line); border-radius: 14px; padding: 18px; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.tile .icon { width: 20px; height: 20px; color: var(--accent); margin-bottom: 10px; }
.tile strong { display: block; font-size: 14.5px; margin-bottom: 3px; }
.tile p { font-size: 12.5px; color: var(--ink-mute); line-height: 1.5; }

/* ---------------- Orders ---------------- */

.order-tabs { margin-bottom: 20px; }
.order-filter-empty[hidden] { display: none; }
.order-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; margin-bottom: 16px; overflow: hidden; }
.order-card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 17px 22px; border-bottom: 1px solid var(--line); }
.order-card > header strong { font-size: 15.5px; display: block; letter-spacing: -0.01em; }
.order-card > header .muted { font-size: 13px; }

.status { padding: 5px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.status-processing { background: #fef3c7; color: #92400e; }
.status-shipped { background: #dbeafe; color: #1d4ed8; }
.status-delivered { background: #dcfce7; color: #15803d; }
.status-cancelled { background: #fee2e2; color: #b91c1c; }
.status-open { background: #fef3c7; color: #92400e; }
.status-closed { background: #dcfce7; color: #15803d; }

.order-items { list-style: none; margin: 0; padding: 4px 22px; }
.order-items li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.order-items li:last-child { border-bottom: 0; }
.oi-media { width: 52px; height: 52px; border-radius: 11px; overflow: hidden; background: var(--accent-soft); flex: none; }
.oi-media img { width: 100%; height: 100%; object-fit: cover; }
.oi-info { flex: 1; min-width: 0; }
.oi-info strong { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oi-info .muted { font-size: 12.5px; }
.oi-price { font-weight: 700; font-size: 14.5px; }

.order-card > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 15px 22px; border-top: 1px solid var(--line); font-size: 13.5px; }
.order-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.order-actions strong { font-size: 15.5px; }
.order-card-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.order-card-actions form { margin: 0; }
.order-truncated { flex-basis: 100%; }
.orders-pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 22px; }

/* ---------------- Addresses ---------------- */

.addr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.addr-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.addr-card.addr-default { border-color: var(--accent); }
.addr-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.default-badge { background: var(--accent-soft); color: var(--accent-strong); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: 999px; }
.addr-card p { font-size: 14.5px; line-height: 1.6; }
.addr-card p strong { font-size: 15px; }
.addr-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }

.addr-add { border: 1.5px dashed var(--line-strong); border-radius: 18px; padding: 34px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ink-mute); font-size: 14.5px; font-weight: 600; min-height: 180px; justify-content: center; transition: border-color .15s, color .15s, background .15s; }
.addr-add:hover { border-color: var(--accent); color: var(--accent); background: rgba(231, 240, 236, .4); }
.addr-add .icon { width: 22px; height: 22px; }
.address-form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; margin-bottom: 24px; }
.address-form .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.address-form .field-full { grid-column: 1 / -1; }
.address-edit-frame { min-height: 100vh; padding: 20px; background: var(--bg); }
.address-edit-frame .address-form { margin-bottom: 0; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field-full { grid-column: 1 / -1; }

/* ---------------- Cart page ---------------- */

.cart-page-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: start; }
.cart-page-grid .cart-item { border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin-bottom: 12px; }

@media (max-width: 900px) {
  .cart-page-grid { grid-template-columns: 1fr; }
}

/* ---------------- Blog sidebar ---------------- */

.blog-sidebar h4 { font-size: 15px; margin-bottom: 14px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { border-bottom: 1px solid var(--line); }
.side-list li:last-child { border-bottom: 0; }
.side-list a { display: block; padding: 9px 0; font-size: 14px; color: var(--ink-soft); transition: color .13s; }
.side-list a:hover { color: var(--accent-strong); }

/* ---------------- Modal (address editing) ---------------- */

.modal-overlay { position: fixed; inset: 0; z-index: 110; background: rgba(28, 25, 23, .45); display: none; padding: 24px; }
.modal-overlay.open { display: flex; align-items: center; justify-content: center; }
.modal { width: min(640px, 100%); max-height: 90vh; overflow: auto; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.modal-head h2 { font-size: 17px; }
.modal-body { padding: 22px; }

/* ---------------- Responsive (pages) ---------------- */

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-block: 52px 40px; }
  .hero-visual { min-height: 420px; max-width: 560px; }
  .detail { grid-template-columns: 1fr; gap: 36px; }
  .account-layout { grid-template-columns: 1fr; }
  .account-side { position: static; }
  .side-nav { flex-direction: row; flex-wrap: wrap; }
  .user-chip { border-bottom: 0; border-right: 1px solid var(--line); margin-right: 8px; padding-right: 16px; }
  .side-nav a, .side-nav button { padding: 9px 13px; }
  .journal-banner { grid-template-columns: 1fr; }
  .jb-copy { padding: 40px 36px; }
  .jb-art { min-height: 220px; }
  .values-grid, .props-row { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 28px; }
  .reviews-layout { grid-template-columns: 1fr; }
  .rev-summary { position: static; }
}

@media (max-width: 860px) {
  .post-featured { grid-template-columns: 1fr; }
  .post-featured .post-cover { min-height: 260px; aspect-ratio: 16 / 10; }
  .post-featured .post-body { padding: 28px; }
}

@media (max-width: 640px) {
  .stat-cards { grid-template-columns: 1fr; }
  .quick-tiles { grid-template-columns: 1fr; }
  .values-grid, .props-row, .addr-grid { grid-template-columns: 1fr; }
  .form-grid, .address-form .form-grid { grid-template-columns: 1fr; }
  .address-edit-frame { padding: 14px; }
  .trust-row { grid-template-columns: 1fr; gap: 8px; }
  .auth-card { padding: 30px 22px; }
  .hero-visual { min-height: 340px; }
  .float-card.fc-1 { top: 20px; }
  .float-card.fc-2 { bottom: 14px; }
  .order-actions { width: 100%; justify-content: space-between; }
  .review { padding: 16px; }
  .rev-form { padding: 20px; }
  .rev-avg { font-size: 42px; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }
}
/* Search page — centered like Arbor's reference, with restrained result groups. */
.page-hero.search-hero .container { max-width: 1060px; text-align: center; }
.search-hero .breadcrumb { justify-content: center; }
.search-hero h1 { margin-bottom: 9px; font-size: clamp(32px, 4vw, 42px); }
.search-hero > .container > p { max-width: 560px; margin: 0 auto; color: var(--ink-soft); }
.search-page-form { display: flex; gap: 10px; max-width: 620px; margin: 26px auto 0; }
.search-page-form .search-field { position: relative; flex: 1; }
.search-page-form .search-glyph { top: 50%; left: 15px; transform: translateY(-50%); }
.search-page-form .search-glyph .icon { width: 18px; height: 18px; }
.search-page-form input[type="search"] { width: 100%; padding: 13px 16px 13px 42px; border: 1.5px solid var(--line-strong); border-radius: 13px; background: var(--surface); font: inherit; font-size: 15px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.search-page-form input[type="search"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-page-form .btn { border-radius: 13px; white-space: nowrap; }
.search-popular { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; color: var(--ink-mute); font-size: 13px; }
.search-popular .chip { padding: 6px 13px; font-size: 12.5px; font-weight: 500; }
.search-popular .chip:hover { border-color: var(--accent); color: var(--accent-strong); }
.search-results { padding: 38px 0 76px; }
.search-head { margin-bottom: 6px; }
.search-head h2 { font-size: 23px; letter-spacing: -0.02em; }
.search-head p { margin-top: 5px; font-size: 14.5px; }
.search-section { margin-top: 34px; }
.search-section > h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--ink-mute); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.search-section .chip-mini { font-size: 11px; padding: 2px 9px; }
.search-journal-list { display: grid; gap: 9px; }
.search-journal-list .jr-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .15s, background .15s; }
.search-journal-list .jr-row:hover { border-color: var(--line-strong); background: #fff; }
.search-journal-list .jr-cover { display: grid; width: 96px; height: 68px; place-items: center; border-radius: 10px; background: var(--hero-halo); color: var(--accent-strong); }
.search-journal-list .jr-cover .icon { width: 25px; height: 25px; }
.search-journal-list .jr-main { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.search-journal-list .jr-title { overflow: hidden; color: var(--ink); font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.search-journal-list .jr-excerpt { display: -webkit-box; overflow: hidden; color: var(--ink-soft); font-size: 13px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.search-journal-list .jr-meta { color: var(--ink-mute); font-size: 11.5px; }
.search-journal-list .jr-go { color: var(--ink-mute); }
.search-journal-list .jr-go .icon { width: 16px; height: 16px; }
.search-empty { padding: 28px 18px; }
.search-empty > .icon { width: 28px; height: 28px; margin: 0 auto 12px; color: var(--accent); }
.search-empty p + p { margin-top: 5px; }
.search-empty-popular { margin-top: 16px; }

@media (max-width: 640px) {
  .search-page-form { flex-direction: column; }
  .search-page-form .btn { padding-block: 13px; }
  .search-journal-list .jr-row { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .search-journal-list .jr-cover { width: 64px; height: 64px; }
  .search-journal-list .jr-go { display: none; }
  .search-journal-list .jr-title { white-space: normal; }
}
