/* ============================================================
   JURDINES — Quiet Luxury Design System
   Palette: Cloud Dancer · Sage · Navy · Gold
   ============================================================ */

:root {
    --cloud: #F7F5F0;
    --cloud-2: #EFECE5;
    --cloud-3: #E4E0D8;
    --sage: #8B9E7A;
    --sage-dark: #6E8060;
    --sage-light: #B5C4A8;
    --char: #1B263B;
    --char-mid: #364869;
    --char-light: #7A8BA8;
    --gold: #C4A265;
    --gold-light: #D4B882;
    --white: #FFFFFF;
    --danger: #C0392B;
    --success: #27AE60;
    --info: #2980B9;

    --font-head: 'Playfair Display', 'Cormorant Garamond', 'Georgia', serif;
    --font-body: 'Inter', 'Jost', 'Helvetica Neue', Arial, sans-serif;
    --navy: #1B263B;

    --radius: 6px;
    --radius-pill: 50px;
    --radius-lg: 14px;
    --shadow: 0 2px 16px rgba(0, 0, 0, .06);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, .10);
    --trans: all .22s ease;
}

/* ── Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* prevent any element from causing horizontal scroll */
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    background: var(--cloud);
    color: var(--char);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--sage-dark);
}

ul {
    list-style: none;
}

main {
    flex: 1;
}

/* ── Typography ── */
h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

.lead {
    font-size: 1.1rem;
    color: var(--char-mid);
}

.small {
    font-size: .82rem;
    color: var(--char-light);
}

.eyebrow {
    font-family: var(--font-body);
    font-size: .7rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .4rem;
}

/* ── Layout ── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container--narrow {
    max-width: 760px;
}

.section {
    padding: 56px 0;
}

.section--sm {
    padding: 48px 0;
}

.section--alt {
    padding: 80px 0;
    background: var(--cloud-2);
}

.section--dark {
    padding: 80px 0;
    background: var(--char);
    color: var(--white);
}

.section--promise {
    padding: 56px 0;
    background: var(--cloud);
}

.container--center {
    text-align: center;
}

.section__title--promise {
    margin-bottom: 48px;
}

.promise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 36px;
    max-width: 800px;
    margin: 0 auto;
}

.promise-item i {
    font-size: 1.8rem;
    color: var(--sage);
    margin-bottom: 12px;
    display: inline-block;
}

.promise-item h4 {
    margin-bottom: 6px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ── Navbar ── */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--cloud-3);
    position: sticky;
    top: 0;
    z-index: 900;
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar__logo {
    display: flex;
    align-items: baseline;
    gap: 1px;
    text-decoration: none;
}

.navbar__logo-j {
    font-family: 'Playfair Display', var(--font-head);
    font-style: italic;
    font-weight: 700;
    font-size: 1.9rem;
    color: var(--char);
    line-height: 1;
}

.navbar__logo-text {
    font-family: 'Playfair Display', var(--font-head);
    font-weight: 400;
    font-size: 1.15rem;
    color: var(--char);
    letter-spacing: 0.01em;
}

.navbar__logo span {
    color: var(--sage);
}

.navbar__nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.navbar__nav a {
    font-size: .83rem;
    letter-spacing: .04em;
    color: var(--char-mid);
    transition: var(--trans);
}

.navbar__nav a:hover,
.navbar__nav a.active {
    color: var(--char);
}

.navbar__actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.navbar__cart {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--char-mid);
    font-size: 1.1rem;
    transition: var(--trans);
}

.navbar__cart:hover {
    color: var(--char);
}

.cart-badge {
    position: absolute;
    top: -7px;
    right: -8px;
    background: var(--gold);
    color: var(--white);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: .6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.navbar__icon {
    font-size: 1.1rem;
    color: var(--char-mid);
    cursor: pointer;
    transition: var(--trans);
}

.navbar__icon:hover {
    color: var(--char);
}

/* ── Mobile nav ── */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--char);
    border-radius: 2px;
    transition: var(--trans);
}

/* ── Free shipping banner ── */
.promo-bar {
    background: var(--char);
    color: var(--cloud);
    text-align: center;
    font-size: .75rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 9px 0;
}

/* ── Hero ── */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 560px;
    overflow: hidden;
    background: var(--cloud);
}

.hero__text-panel {
    background: var(--cloud);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 80px 56px 80px 24px;
}

.hero__content {
    max-width: 440px;
}

.hero__img-panel {
    position: relative;
    overflow: hidden;
}

.hero__img-panel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    display: block;
}

.hero__eyebrow {
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--sage-dark);
    margin-bottom: 14px;
}

.hero__title {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.08;
    margin-bottom: 16px;
    color: var(--char);
}

.hero__sub {
    color: var(--char-mid);
    margin-bottom: 32px;
    max-width: 400px;
    font-size: 1rem;
    line-height: 1.6;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    min-height: 48px;
    font-family: var(--font-body);
    font-size: .82rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--trans);
    white-space: nowrap;
    text-decoration: none;
}

.btn--primary {
    background: var(--sage);
    color: var(--white);
    border-radius: var(--radius-pill);
}

.btn--primary:hover {
    background: var(--sage-dark);
    color: var(--white);
}

.btn--outline {
    background: transparent;
    border: 1.5px solid var(--char);
    color: var(--char);
}

.btn--outline:hover {
    background: var(--char);
    color: var(--white);
}

.btn--sage {
    background: var(--sage);
    color: var(--white);
}

.btn--sage:hover {
    background: var(--sage-dark);
    color: var(--white);
}

.btn--gold {
    background: var(--gold);
    color: var(--white);
}

.btn--gold:hover {
    background: var(--gold-light);
}

.btn--sm {
    padding: 8px 18px;
    font-size: .76rem;
}

.btn--lg {
    padding: 16px 36px;
    font-size: .88rem;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

.btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* ── Category cards ── */
.cat-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    transition: var(--trans);
}

.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.cat-card:hover img {
    transform: scale(1.04);
}

.cat-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 24px 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, .7) 0%, transparent 100%);
    color: var(--white);
}

.cat-card__name {
    font-family: var(--font-head);
    font-size: 1.5rem;
}

.cat-card__tag {
    font-size: .78rem;
    opacity: .85;
    letter-spacing: .06em;
}

/* ── Product card ── */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--trans);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.product-card__img {
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
    background: var(--cloud-2);
}

.product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.product-card:hover .product-card__img img {
    transform: scale(1.05);
}

.product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--char);
    color: var(--white);
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
}

.product-card__badge--new {
    background: var(--sage);
}

.product-card__badge--sale {
    background: var(--gold);
}

.product-card__body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card__category {
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 6px;
}

.product-card__name {
    font-family: var(--font-head);
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.product-card__tagline {
    font-size: .83rem;
    color: var(--char-mid);
    margin-bottom: 12px;
    flex: 1;
}

.product-card__price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.product-card__price .price {
    font-size: 1.05rem;
    font-weight: 600;
}

.product-card__price .compare {
    font-size: .88rem;
    color: var(--char-light);
    text-decoration: line-through;
}

.product-card__price .discount {
    font-size: .75rem;
    color: var(--gold);
    font-weight: 600;
}

/* ── Product detail ── */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-detail__gallery {}

.product-detail__main-img {
    aspect-ratio: 1/1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--cloud-2);
    margin-bottom: 12px;
}

.product-detail__main-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    box-shadow: 0 8px 32px rgba(27, 38, 59, .10);
    border-radius: var(--radius-lg);
    transition: transform .3s ease;
}

.product-detail__main-img:hover img {
    transform: scale(1.015);
}

.product-detail__thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-detail__thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--trans);
    background: none;
    padding: 0;
}

.product-detail__thumb.active {
    border-color: var(--sage);
}

.product-detail__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail__info {
    position: sticky;
    top: 80px;
}

.product-detail__price {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 16px 0;
}

.product-detail__compare {
    font-size: 1rem;
    color: var(--char-light);
    text-decoration: line-through;
}

/* ── Product Detail — new components ─────────────────────── */
.pd-breadcrumb {
    font-size: .8rem;
    color: var(--char-light);
    margin-bottom: 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.pd-breadcrumb a {
    color: var(--char-light);
    text-decoration: none;
}

.pd-breadcrumb a:hover {
    color: var(--sage-dark);
}

.pd-breadcrumb__sep {
    opacity: .5;
}

.pd-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--char);
    margin: 8px 0 10px;
}

.pd-tagline {
    font-size: .97rem;
    color: var(--char-mid);
    margin-bottom: 18px;
    line-height: 1.6;
}

.pd-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
}

.pd-price {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--navy, #1B263B);
    letter-spacing: -.01em;
}

.pd-compare {
    font-size: 1rem;
    color: var(--char-light);
    text-decoration: line-through;
}

.badge--sale {
    background: #fef3e2;
    color: #a05c00;
    font-size: .7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pd-atc-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.pd-atc-btn {
    flex: 1;
    transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}

.pd-atc-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(27, 38, 59, .18);
}

.pd-buynow-btn {
    margin-bottom: 0;
}

.pd-desc {
    font-size: .93rem;
    line-height: 1.85;
    color: var(--char-mid);
    margin-bottom: 24px;
}

/* ── Marketing Genie — Luxury Description Sections ───────────────────────── */
.pd-essence {
    margin-bottom: 20px;
}

.pd-essence__hook {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.13rem;
    font-style: italic;
    color: var(--char);
    line-height: 1.65;
    margin: 0 0 6px;
}

.pd-essence__sub {
    font-size: .95rem;
    color: var(--char-mid);
    line-height: 1.7;
    margin: 0;
}

.pd-luxury-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pd-luxury-features li {
    padding-left: 22px;
    position: relative;
    font-size: .93rem;
    line-height: 1.7;
    color: var(--char-mid);
}

.pd-luxury-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 1px;
    background: var(--gold, #C4A265);
}

.pd-technicals {
    margin-top: 4px;
    margin-bottom: 20px;
    border: 1px solid var(--cloud-3, #e8e4dc);
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
}

.pd-technicals>summary {
    cursor: pointer;
    padding: 10px 16px;
    font-size: .83rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--char-mid);
    background: var(--cloud, #F7F5F0);
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 7px;
}

.pd-technicals>summary::-webkit-details-marker {
    display: none;
}

.pd-technicals[open]>summary {
    border-bottom: 1px solid var(--cloud-3, #e8e4dc);
}

.pd-tech-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}

.pd-tech-table tr:nth-child(even) {
    background: var(--cloud, #F7F5F0);
}

.pd-tech-table th,
.pd-tech-table td {
    padding: 7px 16px;
    text-align: left;
    vertical-align: top;
}

.pd-tech-table th {
    color: var(--char);
    font-weight: 600;
    width: 38%;
}

.pd-tech-table td {
    color: var(--char-mid);
}

.pd-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px;
    background: var(--cloud);
    border-radius: var(--radius-lg);
    border: 1px solid var(--cloud-3);
}

.pd-trust__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
    min-width: 120px;
    font-size: .82rem;
    color: var(--char-mid);
    line-height: 1.4;
}

.pd-trust__item i {
    color: var(--sage);
    font-size: 1.15rem;
    margin-top: 1px;
    flex-shrink: 0;
}

.pd-trust__item strong {
    display: block;
    color: var(--char);
    font-size: .85rem;
}

/* ── Expert Wellness Insights ─────────────────────────────── */
.pd-insights {
    margin-top: 0;
}

.pd-insights__heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.pd-insights__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.pd-insight-card {
    border: 1.5px solid var(--sage);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
    background: var(--white);
}

.pd-insight-card:hover {
    box-shadow: 0 6px 24px rgba(139, 158, 122, .2);
    transform: translateY(-2px);
}

.pd-insight-card__img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.pd-insight-card__body {
    padding: 18px 20px;
}

.pd-insight-card__title {
    font-size: .95rem;
    font-weight: 600;
    color: var(--char);
    margin-bottom: 12px;
    line-height: 1.45;
}

.pd-insight-card__link {
    font-size: .82rem;
    font-weight: 600;
    color: var(--sage-dark);
    text-decoration: none;
    letter-spacing: .02em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pd-insight-card__link:hover {
    color: var(--char);
    gap: 8px;
}

/* ── Sticky mobile ATC bar ───────────────────────────────── */
.sticky-atc {
    display: none;
    /* hidden on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--white);
    border-top: 1px solid var(--cloud-3);
    box-shadow: 0 -4px 20px rgba(27, 38, 59, .10);
    padding: 12px 0;
    transform: translateY(100%);
    transition: transform .3s ease;
}

.sticky-atc--visible {
    transform: translateY(0);
}

.sticky-atc__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sticky-atc__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sticky-atc__name {
    font-size: .82rem;
    font-weight: 600;
    color: var(--char);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.sticky-atc__price {
    font-size: .9rem;
    font-weight: 600;
    color: var(--navy, #1B263B);
}

.sticky-atc__btn {
    flex-shrink: 0;
    min-width: 140px;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--cloud-3);
    border-radius: var(--radius);
    overflow: hidden;
    width: fit-content;
    margin-bottom: 16px;
}

.qty-control button {
    width: 40px;
    height: 40px;
    background: var(--cloud-2);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--trans);
}

.qty-control button:hover {
    background: var(--cloud-3);
}

.qty-control input {
    width: 50px;
    height: 40px;
    text-align: center;
    border: none;
    background: var(--white);
    font-family: var(--font-body);
    font-size: .95rem;
}

.stock-badge {
    font-size: .78rem;
    margin-bottom: 20px;
}

.stock-badge.in-stock {
    color: var(--success);
}

.stock-badge.low-stock {
    color: var(--gold);
}

.stock-badge.out-stock {
    color: var(--danger);
}

/* ── Cart ── */
.cart-table {
    width: 100%;
}

.cart-table th {
    font-family: var(--font-body);
    font-size: .73rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--char-light);
    padding: 10px 0;
    border-bottom: 1px solid var(--cloud-3);
    text-align: left;
}

.cart-row td {
    padding: 20px 0;
    border-bottom: 1px solid var(--cloud-2);
    vertical-align: middle;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-item__img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--cloud-2);
}

.cart-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item__name {
    font-family: var(--font-head);
    font-size: 1.1rem;
}

.cart-summary {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: .9rem;
}

.cart-summary__row.total {
    border-top: 1.5px solid var(--cloud-3);
    margin-top: 8px;
    padding-top: 16px;
    font-size: 1.1rem;
    font-weight: 600;
}

.free-shipping-bar {
    background: var(--cloud-2);
    border-radius: var(--radius);
    height: 6px;
    margin: 8px 0;
    overflow: hidden;
}

.free-shipping-bar__fill {
    background: var(--sage);
    height: 100%;
    transition: width .4s ease;
}

/* ── Forms ── */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--char-mid);
    margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--cloud-3);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: .92rem;
    color: var(--char);
    background: var(--white);
    transition: var(--trans);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(139, 158, 122, .12);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-hint {
    font-size: .78rem;
    color: var(--char-light);
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ── Auth card ── */
.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 44px 40px;
    max-width: 440px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.auth-divider {
    text-align: center;
    color: var(--char-light);
    font-size: .8rem;
    margin: 18px 0;
}

/* ── Toast notifications ── */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--char);
    color: var(--white);
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: .88rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toast-in .25s ease;
    max-width: 320px;
}

.toast.success {
    border-left: 3px solid var(--sage);
}

.toast.error {
    border-left: 3px solid var(--danger);
}

.toast.info {
    border-left: 3px solid var(--gold);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Flash messages ── */
.flash-messages {
    padding: 12px 0 0;
}

.flash {
    padding: 12px 18px;
    border-radius: var(--radius);
    font-size: .88rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.flash.success {
    background: #EAF5ED;
    color: var(--success);
}

.flash.error {
    background: #FDECEC;
    color: var(--danger);
}

.flash.info {
    background: #EAF1F8;
    color: var(--info);
}

.flash.warning {
    background: #FEF8E7;
    color: #B7860B;
}

/* ── Badges ── */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 600;
}

.badge-pending {
    background: #FEF8E7;
    color: #B7860B;
}

.badge-paid {
    background: #EAF5ED;
    color: var(--success);
}

.badge-processing {
    background: #EAF1F8;
    color: var(--info);
}

.badge-shipped {
    background: #EDE8F5;
    color: #6B3FA0;
}

.badge-delivered {
    background: var(--cloud-2);
    color: var(--char-mid);
}

.badge-cancelled {
    background: #FDECEC;
    color: var(--danger);
}

.badge-refunded {
    background: #FEF8E7;
    color: var(--gold);
}

/* ── Cards (generic, e.g. admin/info boxes) ── */
.card--padded {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
}

.card--flat {
    box-shadow: none;
    border: 1px solid var(--cloud-3);
}

/* ── Admin sidebar ── */
.admin-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 100vh;
    gap: 0;
}

.admin-sidebar {
    background: var(--char);
    color: var(--cloud);
    padding: 28px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar__logo {
    font-family: var(--font-head);
    font-size: 1.3rem;
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    margin-bottom: 16px;
}

.admin-sidebar__logo span {
    color: var(--sage-light);
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 24px;
    font-size: .82rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .65);
    transition: var(--trans);
}

.admin-nav a:hover,
.admin-nav a.active {
    color: var(--white);
    background: rgba(255, 255, 255, .06);
}

.admin-content {
    padding: 36px 40px;
    background: var(--cloud);
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 22px;
    border-top: 3px solid var(--sage);
}

.stat-card__value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-card__label {
    font-size: .77rem;
    color: var(--char-light);
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ── Tables ── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.data-table th {
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--char-light);
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1.5px solid var(--cloud-3);
    background: var(--cloud);
}

.data-table td {
    padding: 14px;
    border-bottom: 1px solid var(--cloud-2);
    font-size: .9rem;
    overflow: hidden;
}

.data-table tr:hover td {
    background: var(--cloud);
}

.data-table--condensed th {
    padding: 8px 12px;
}

.data-table--condensed td {
    padding: 10px 12px;
    font-size: .84rem;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.mono {
    font-variant-numeric: tabular-nums;
    font-family: 'Courier New', monospace;
}

/* ── Admin card wrapper ── */
.admin-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--cloud-3);
    overflow: hidden;
    margin-bottom: 28px;
}

.admin-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--cloud-2);
    background: var(--cloud);
}

.admin-card__head h4 {
    margin: 0;
    font-size: .9rem;
}

.admin-card table {
    margin: 0;
}

/* ── Admin header typography ── */
.admin-header__title {
    margin: 0 0 2px;
    font-size: 1.35rem;
}

.admin-header__sub {
    margin: 0;
    font-size: .78rem;
    color: var(--char-light);
}

/* ── Stat card variants ── */
.stat-card {
    display: flex;
    align-items: center;
    gap: 18px;
    border-top: none;
    border-left: 4px solid var(--sage);
}

.stat-card--revenue {
    border-left-color: var(--sage-dark);
}

.stat-card--orders {
    border-left-color: var(--gold);
}

.stat-card--margin {
    border-left-color: var(--char-mid);
}

.stat-card--fleet {
    border-left-color: var(--sage-light);
}

.stat-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--cloud-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--char-mid);
    flex-shrink: 0;
}

.stat-card--revenue .stat-card__icon {
    background: rgba(110, 128, 96, .12);
    color: var(--sage-dark);
}

.stat-card--orders .stat-card__icon {
    background: rgba(196, 162, 101, .12);
    color: var(--gold);
}

.stat-card--margin .stat-card__icon {
    background: rgba(54, 72, 105, .12);
    color: var(--char-mid);
}

.stat-card--fleet .stat-card__icon {
    background: rgba(181, 196, 168, .2);
    color: var(--sage-dark);
}

.stat-card__body {
    flex: 1;
}

/* ── Margin badges ── */
.margin-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    letter-spacing: .04em;
}

.margin-green {
    background: #d4edda;
    color: #1a5c29;
}

.margin-gold {
    background: #fff3cd;
    color: #7d5a00;
}

.margin-red {
    background: #fde8e8;
    color: #8b1a1a;
}

/* ── Toggle switch ── */
.toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
}

.toggle-track {
    width: 38px;
    height: 20px;
    border-radius: 20px;
    background: var(--cloud-3);
    display: flex;
    align-items: center;
    padding: 2px;
    transition: background .2s;
}

.toggle-on .toggle-track {
    background: var(--sage);
}

.toggle-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    transition: transform .2s;
}

.toggle-on .toggle-thumb {
    transform: translateX(18px);
}

.toggle-off .toggle-thumb {
    transform: translateX(0);
}

/* ── Status pills ── */
.status-pill {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #7d5a00;
}

.status-processing {
    background: #cff4fc;
    color: #0d5f73;
}

.status-shipped {
    background: rgba(139, 158, 122, .18);
    color: var(--sage-dark);
}

.status-delivered {
    background: #d4edda;
    color: #1a5c29;
}

.status-cancelled {
    background: #fde8e8;
    color: #8b1a1a;
}

.status-refunded {
    background: var(--cloud-2);
    color: var(--char-light);
}

/* ── Table helpers ── */
.tbl-link {
    font-size: .82rem;
    color: var(--sage-dark);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: color .15s;
}

.tbl-link:hover {
    color: var(--char);
    text-decoration: underline;
}

.tbl-link--danger {
    color: #c0392b;
}

.tbl-link--danger:hover {
    color: #922b21;
}

.tbl-empty {
    text-align: center;
    color: var(--char-light);
    padding: 32px !important;
    font-size: .88rem;
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dim {
    color: var(--char-light);
}

.dim-danger {
    color: #c0392b;
    font-weight: 600;
}

.dim-warn {
    color: var(--gold);
    font-weight: 600;
}

/* ── Product cell ── */
.prod-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    /* allow flex child to shrink below content size */
}

.prod-thumb {
    width: 40px;
    height: 40px;
    min-width: 40px;
    /* prevent thumbnail from shrinking */
    border-radius: 4px;
    object-fit: cover;
    background: var(--cloud-2);
}

.prod-cell>div {
    min-width: 0;
    /* allow text container to shrink */
}

.prod-name {
    font-weight: 500;
    font-size: .88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

.prod-sku {
    font-size: .75rem;
    color: var(--char-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

/* ── Filter tabs ── */
.filter-tabs {
    display: flex;
    gap: 4px;
}

.filter-tab {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 500;
    border: 1.5px solid var(--cloud-3);
    color: var(--char-mid);
    text-decoration: none;
    transition: var(--trans);
}

.filter-tab:hover {
    border-color: var(--sage);
    color: var(--sage-dark);
}

.filter-tab.active {
    background: var(--char);
    color: var(--white);
    border-color: var(--char);
}

/* ── Inline status select ── */
.inline-status-form {
    display: inline;
}

.status-select {
    font-size: .78rem;
    padding: 4px 8px;
    border: 1.5px solid var(--cloud-3);
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
}

/* ── Sage action button ── */
.btn--sage {
    background: var(--sage);
    color: var(--white);
    border-color: var(--sage);
}

.btn--sage:hover {
    background: var(--sage-dark);
    border-color: var(--sage-dark);
}

/* ── Sidebar spacing helpers ── */
.admin-nav__store {
    margin-top: 32px !important;
    opacity: .7;
}

.admin-nav__logout {
    opacity: .5;
}

.admin-nav__store:hover,
.admin-nav__logout:hover {
    opacity: 1 !important;
}

/* ── Pagination ── */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 32px 0;
}

.pagination a,
.pagination span {
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .88rem;
    border: 1.5px solid var(--cloud-3);
    transition: var(--trans);
}

.pagination a:hover {
    border-color: var(--sage);
    color: var(--sage-dark);
}

.pagination .active {
    background: var(--char);
    color: var(--white);
    border-color: var(--char);
}

/* ── Queue Cards (Dashboard) ── */
.queue-card {
    margin-bottom: 24px;
}

.queue-card .admin-card__head {
    align-items: center;
}

.queue-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    font-size: .7rem;
    font-weight: 700;
    margin-left: 8px;
    background: rgba(0, 0, 0, .08);
}

.queue-label {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
}

.queue-label--green {
    background: #d1fae5;
    color: #065f46;
}

.queue-label--amber {
    background: #fef3c7;
    color: #92400e;
}

.queue-label--blue {
    background: #dbeafe;
    color: #1e40af;
}

/* Left border accent per queue type */
.queue-card--green {
    border-left: 4px solid #10b981;
}

.queue-card--amber {
    border-left: 4px solid #f59e0b;
}

.queue-card--blue {
    border-left: 4px solid #3b82f6;
}

.queue-card--tax {
    border-left: 4px solid #C4A265;
}

/* ── Tax Report ── */
.tax-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
}

.tax-tab {
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 5px 16px;
    font-size: .78rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all .15s;
}

.tax-tab:hover {
    border-color: #C4A265;
    color: #C4A265;
}

.tax-tab--active {
    background: #C4A265;
    border-color: #C4A265;
    color: #fff;
}

.tax-panel--hidden {
    display: none;
}

.tax-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.tax-metric {
    background: var(--cloud);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 18px 20px;
}

.tax-metric--muted {
    opacity: .75;
}

/* Collection Allowance tile — sage highlight */
.tax-metric--allowance {
    border-color: #8B9E7A;
    background: #f2f5f0;
}

.tax-metric--allowance .tax-metric__value {
    color: #5a7a4a;
}

.tax-metric--allowance .tax-metric__label {
    color: #6E8060;
}

.tax-allowance-cap {
    display: block;
    font-size: .65rem;
    color: #8B9E7A;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    margin-top: 1px;
}

/* Net Tax Due tile — subtle warm emphasis */
.tax-metric--net {
    border-color: #C4A265;
    background: #fdf9f2;
}

.tax-metric--net .tax-metric__value {
    color: #8a6a30;
}

.tax-metric--net .tax-metric__label {
    color: #9a7a40;
}

.tax-metric__value {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--char);
    font-family: 'Playfair Display', Georgia, serif;
    margin-bottom: 4px;
}

.tax-metric__label {
    font-size: .72rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
}

.tax-note {
    font-size: .75rem;
    color: #9ca3af;
    margin-top: 4px;
}

.tax-note i {
    margin-right: 4px;
}

/* badge pill for product names */
.badge-pill {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 12px;
    background: var(--gold);
    color: var(--white);
}

/* Ship-to address cell */
.ship-address {
    max-width: 220px;
    white-space: normal;
    font-size: .8rem;
    color: var(--char);
    line-height: 1.4;
}

/* ── Fulfill button ── */
.btn--fulfill {
    background: #1d4ed8;
    color: #fff;
    border: none;
    font-size: .75rem;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .18s;
    white-space: nowrap;
}

.btn--fulfill:hover {
    background: #1e40af;
}

.btn--fulfill:disabled {
    opacity: .55;
    cursor: wait;
}

.fulfill-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    margin-bottom: 8px;
}

/* ── Bulk Action Bar (above Shipping Pending table) ── */
.bulk-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 7px;
    padding: 9px 16px;
    margin: 0 0 14px;
    flex-wrap: wrap;
}

.bulk-bar__count {
    font-size: .78rem;
    font-weight: 700;
    color: #1d4ed8;
    white-space: nowrap;
}

.bulk-bar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bulk-select {
    font-size: .78rem;
    font-family: inherit;
    padding: 6px 10px;
    border: 1px solid #93c5fd;
    border-radius: 5px;
    background: #fff;
    color: var(--char);
    cursor: pointer;
}

.bulk-select:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Dedicated navy export button inside the bulk-bar */
.bulk-export-btn {
    background: var(--navy, #1B263B);
    color: #fff;
    border: none;
    font-weight: 600;
    letter-spacing: .02em;
    white-space: nowrap;
    transition: background .18s, transform .1s;
}

.bulk-export-btn:hover {
    background: #263650;
    transform: translateY(-1px);
}

.bulk-export-btn:active {
    transform: translateY(0);
}

/* Checkbox column */
.col-check {
    width: 36px;
    text-align: center;
    padding-right: 0 !important;
}

.col-check input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--sage-dark);
    cursor: pointer;
}

/* Row highlight when checked */
tr:has(.order-cb:checked) {
    background: #f0f7ee !important;
}

/* ── Automated Tracking Reconciler card ── */
.reconciler-card {
    border-top: 3px solid var(--gold);
}

.reconciler-body {
    padding: 18px 20px 14px;
}

.reconciler-form {
    display: flex;
    align-items: stretch;
    gap: 14px;
    flex-wrap: wrap;
}

/* Drop zone */
.reconciler-drop {
    flex: 1 1 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 2px dashed #d1b97a;
    border-radius: 10px;
    padding: 22px 20px;
    cursor: pointer;
    background: #fffdf6;
    transition: border-color .18s, background .18s;
    text-align: center;
}

.reconciler-drop:hover,
.reconciler-drop--over {
    border-color: var(--gold);
    background: #fdf8ec;
}

.reconciler-drop--ready {
    border-style: solid;
    border-color: var(--sage);
    background: #f4f9f2;
}

.reconciler-drop__icon {
    font-size: 1.9rem;
    color: var(--gold);
    margin-bottom: 4px;
}

.reconciler-drop__primary {
    font-size: .85rem;
    color: var(--char);
    font-weight: 500;
}

.reconciler-drop__hint {
    font-size: .72rem;
    color: #6b7280;
    margin-top: 2px;
}

.reconciler-drop__hint code {
    background: #f3f4f6;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: .7rem;
    color: var(--char);
}

/* Hide the native file input — the label acts as the trigger */
.reconciler-file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.reconciler-submit {
    align-self: center;
    white-space: nowrap;
    padding: 12px 22px;
    font-size: .85rem;
}

.reconciler-submit:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.reconciler-note {
    margin: 12px 0 0;
    font-size: .76rem;
    color: #6b7280;
    line-height: 1.5;
}



/* ── Tracking form (inside Shipping Pending table) ── */
.tracking-form {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.tracking-input {
    font-size: .76rem;
    padding: 5px 9px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    width: 148px;
    background: #fff;
    color: var(--char);
    font-family: 'Courier New', monospace;
    letter-spacing: .04em;
    transition: border-color .15s;
}

.tracking-input:focus {
    outline: none;
    border-color: #8B9E7A;
}

.btn--track {
    background: #8B9E7A;
    color: #fff;
    border: none;
    font-size: .72rem;
    padding: 5px 11px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .18s;
    white-space: nowrap;
}

.btn--track:hover {
    background: #6E8060;
}

/* ── Genie button ── */
.btn--genie {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    border: none;
    font-size: .72rem;
    padding: 5px 11px;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity .18s;
    white-space: nowrap;
}

.btn--genie:hover {
    opacity: .85;
}

.btn--genie:disabled {
    opacity: .55;
    cursor: wait;
}

/* table action cell: flex row for Edit + Genie side-by-side */
.tbl-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

/* ── Guides list page ── */
.guides-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 8px 0 24px;
}

.guide-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px 24px;
    background: #fff;
    transition: border-color .15s;
}

.guide-card--published {
    border-left: 4px solid #8B9E7A;
}

.guide-card:hover {
    border-color: #c3b9a6;
}

.guide-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.guide-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: .78rem;
    color: #6b7280;
}

.guide-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.guide-status--draft {
    background: #fef9c3;
    color: #854d0e;
}

.guide-status--published {
    background: #dcfce7;
    color: #166534;
}

.guide-date {
    color: #9ca3af;
}

.guide-product-tag {
    background: var(--cloud);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    color: var(--char);
}

.guide-card__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.guide-card__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--char);
    margin: 0 0 8px;
    line-height: 1.4;
}

.guide-card__meta-desc {
    font-size: .8rem;
    color: #6b7280;
    margin: 0 0 10px;
    line-height: 1.55;
}

.guide-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.guide-kw-tag {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: .7rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 500;
}

/* Collapsible article preview */
.guide-preview summary {
    font-size: .78rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    padding: 4px 0;
    user-select: none;
}

.guide-preview summary:hover {
    color: var(--sage-dark);
}

.guide-preview__body {
    margin-top: 14px;
    padding: 18px;
    background: var(--cloud);
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    font-size: .85rem;
    line-height: 1.75;
    color: var(--char);
}

.guide-preview__body h2,
.guide-preview__body h3 {
    font-family: 'Playfair Display', Georgia, serif;
    margin-top: 1.4em;
}

.guide-preview__body .guide-insight {
    background: #f0fdf4;
    border-left: 3px solid #8B9E7A;
    padding: 14px 18px;
    border-radius: 0 6px 6px 0;
    margin: 16px 0;
}

.guide-preview__body .guide-recommended {
    background: #fafaf9;
    border: 1px solid #e5e7eb;
    padding: 16px 18px;
    border-radius: 6px;
    margin: 16px 0;
}

.guide-preview__body .guide-cta-btn {
    display: inline-block;
    background: #1B263B;
    color: #fff;
    padding: 9px 20px;
    border-radius: 4px;
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
}

.guide-preview__body ul,
.guide-preview__body ol {
    padding-left: 1.4em;
}

/* ── Curated Selection CTA box (Genie v2) ── */
.genie-curated-selection {
    margin: 32px 0 0;
    border: 1px solid #C4A265;
    border-radius: 8px;
    overflow: hidden;
    background: #fdf9f2;
}

.genie-curated-selection__label {
    background: #C4A265;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 6px 16px;
}

.genie-curated-selection__label i {
    margin-right: 6px;
    font-size: .7rem;
}

.genie-curated-selection__card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.genie-curated-selection__img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
}

.genie-curated-selection__info {
    flex: 1;
}

.genie-curated-selection__name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: .95rem;
    color: var(--char);
    margin: 0 0 4px;
    font-weight: 600;
}

.genie-curated-selection__price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #8a6a30;
    margin: 0 0 12px;
}

.genie-curated-selection__btn {
    display: inline-block;
    background: #1B263B;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s;
}

.genie-curated-selection__btn:hover {
    background: #2d3f5e;
}

.genie-curated-selection__note {
    font-size: .72rem;
    color: #9a7a40;
    padding: 0 20px 14px;
    margin: 0;
    font-style: italic;
}

/* preview body inherits curated selection styles */
.guide-preview__body .genie-curated-selection {
    margin-top: 20px;
}

/* ── Genie done chip (inline in table after generation) ── */
.genie-done-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: #065f46;
    background: #d1fae5;
    border-radius: 20px;
    padding: 3px 10px;
}

/* ── Guide status pill (editor header) ── */
.guide-status-pill {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 2px 9px;
    border-radius: 20px;
    vertical-align: middle;
}

/* ── Private Chauffeur Editor Layout ── */
.editor-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 900px) {
    .editor-layout {
        grid-template-columns: 1fr;
    }
}

/* Main pane */
.editor-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.editor-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.editor-field--sm {
    margin-top: 12px;
}

.editor-label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--char);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.editor-hint {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #888;
    font-size: .7rem;
}

.editor-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.editor-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 9px 12px;
    font-size: .9rem;
    font-family: inherit;
    color: var(--char);
    background: #fff;
    box-sizing: border-box;
    transition: border-color .15s;
}

.editor-input--title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
}

.editor-input:focus {
    outline: none;
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(139, 158, 122, .15);
}

.editor-textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: .82rem;
    font-family: 'SFMono-Regular', Consolas, monospace;
    color: #374151;
    background: #fafaf9;
    line-height: 1.65;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color .15s;
}

.editor-textarea--sm {
    font-family: inherit;
    font-size: .83rem;
}

.editor-textarea:focus {
    outline: none;
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(139, 158, 122, .15);
}

/* Toolbar */
.editor-toolbar {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.editor-tb-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 4px 9px;
    font-size: .75rem;
    font-weight: 700;
    cursor: pointer;
    color: #374151;
    transition: background .12s, border-color .12s;
}

.editor-tb-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.editor-tb-btn--preview {
    background: #1B263B;
    color: #fff;
    border-color: transparent;
    font-weight: 600;
    margin-left: 4px;
}

.editor-tb-btn--preview:hover {
    background: #2d3f5e;
}

/* Preview pane */
.editor-preview-pane {
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    padding: 20px 24px;
    background: #fff;
    min-height: 200px;
    font-size: .9rem;
    line-height: 1.75;
    color: var(--char);
}

/* Sidebar */
.editor-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.editor-meta-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px 18px;
}

.editor-meta-card__title {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #6b7280;
    margin: 0 0 12px;
}

.editor-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid #f3f4f6;
}

.editor-meta-row:last-child {
    border-bottom: none;
}

.editor-meta-label {
    font-size: .75rem;
    color: #9ca3af;
}

.editor-meta-value {
    font-size: .8rem;
    font-weight: 600;
    color: var(--char);
}

.editor-meta-link {
    color: var(--sage-dark);
    text-decoration: none;
}

.editor-meta-link:hover {
    text-decoration: underline;
}

.editor-char-count {
    font-size: .7rem;
    font-weight: 400;
    color: #9ca3af;
    text-transform: none;
    letter-spacing: 0;
}

/* Action buttons */
.editor-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn--full {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.btn--gold {
    background: var(--gold);
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: background .15s;
}

.btn--gold:hover {
    background: #b08a50;
}

.btn--ghost {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background .12s;
}

.btn--ghost:hover {
    background: #f3f4f6;
}

/* Outline sage button (used in dashboard "View Draft" link) */
.btn--outline-sage {
    background: transparent;
    color: var(--sage-dark);
    border: 1.5px solid var(--sage);
    padding: 5px 14px;
    border-radius: 5px;
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .06em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background .12s, color .12s;
}

.btn--outline-sage:hover {
    background: var(--sage);
    color: #fff;
}

/* ── Admin Toast ── */
.fulfill-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: #1B263B;
    color: #fff;
    font-size: .85rem;
    font-weight: 500;
    padding: 10px 22px;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s, transform .22s;
    z-index: 9999;
    white-space: nowrap;
}

.fulfill-toast--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.fulfill-toast--error {
    background: #b91c1c;
}

/* ── Settings page ── */
.settings-card {
    margin-bottom: 24px;
}

.settings-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid var(--cloud-3);
}

.settings-row:last-of-type {
    border-bottom: none;
}

.settings-row__info {
    flex: 1;
}

.settings-row__label {
    font-weight: 600;
    font-size: .9rem;
    color: var(--char);
    margin-bottom: 4px;
}

.settings-row__desc {
    font-size: .82rem;
    color: var(--char-light, #5a6577);
    line-height: 1.55;
}

.settings-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex-shrink: 0;
}

.settings-toggle input {
    display: none;
}

.toggle-btn__track {
    width: 46px;
    height: 26px;
    background: #d1d5db;
    border-radius: 13px;
    position: relative;
    transition: background .2s;
}

.settings-toggle input:checked+.toggle-btn__track {
    background: #10b981;
}

.toggle-btn__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    transition: left .2s;
}

.settings-toggle input:checked+.toggle-btn__track .toggle-btn__thumb {
    left: 23px;
}

.toggle-btn__label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--char);
}

.settings-note {
    font-size: .78rem;
    color: var(--char-light, #5a6577);
    padding: 10px 14px;
    background: var(--cloud);
    border-radius: 8px;
    margin-top: 12px;
    line-height: 1.5;
}

.settings-note a {
    color: var(--sage-dark);
    font-weight: 600;
}

.settings-endpoint {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.settings-endpoint code {
    font-size: .78rem;
    background: var(--cloud);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--cloud-3);
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    padding: 8px 0 24px;
}

/* ── Mobile bottom nav ── */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--white);
    border-top: 1px solid var(--cloud-3);
    z-index: 950;
    grid-template-columns: repeat(4, 1fr);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .06);
}

.bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: .62rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--char-light);
    text-decoration: none;
    transition: var(--trans);
}

.bottom-nav__item i {
    font-size: 1.15rem;
}

.bottom-nav__item.active,
.bottom-nav__item:hover {
    color: var(--sage);
}

.bottom-nav__item .cart-dot {
    position: relative;
}

.bottom-nav__item .cart-dot .badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--sage);
    color: var(--white);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: .6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .bottom-nav {
        display: grid;
    }

    body {
        padding-bottom: 64px;
    }
}

/* ── Footer ── */
.footer {
    background: var(--char);
    color: var(--cloud);
    padding: 60px 0 28px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer__brand {
    font-family: var(--font-head);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.footer__brand span {
    color: var(--sage-light);
}

.footer__tagline {
    font-size: .85rem;
    opacity: .6;
}

.footer__heading {
    font-size: .7rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--sage-light);
    margin-bottom: 14px;
}

.footer__links a {
    display: block;
    font-size: .85rem;
    opacity: .65;
    margin-bottom: 8px;
    transition: var(--trans);
}

.footer__links a:hover {
    opacity: 1;
    color: var(--white);
}

/* ── Footer bottom bar ── */
.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 20px;
}

.footer__copy {
    font-size: .78rem;
    opacity: .5;
    margin: 0;
}

.footer__legal-links {
    font-size: .78rem;
    opacity: .5;
    margin: 0;
}

.footer__legal-links a {
    color: inherit;
    text-decoration: none;
    transition: opacity .2s;
}

.footer__legal-links a:hover {
    opacity: 1;
}

/* ── Legal page styles ── */
.legal-meta {
    font-size: .8rem;
    color: var(--char-light);
    margin: 6px 0 0;
}

.legal-body {
    line-height: 1.9;
    color: var(--char-mid);
}

.legal-body h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    color: var(--char);
    margin: 36px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--cloud-3);
}

.legal-body h3 {
    font-size: .95rem;
    font-weight: 600;
    color: var(--char);
    margin: 20px 0 6px;
}

.legal-body p,
.legal-body ul,
.legal-body ol {
    margin-bottom: 14px;
}

.legal-body ul,
.legal-body ol {
    padding-left: 1.4em;
}

.legal-body a {
    color: var(--sage-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-body a:hover {
    color: var(--char);
}

.legal-callout {
    display: flex;
    gap: 14px;
    background: #fef9ec;
    border: 1.5px solid #e8c96d;
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    margin-bottom: 28px;
    align-items: flex-start;
}

.legal-callout i {
    color: #b07d10;
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.legal-callout p {
    margin: 0;
}

/* ── Wellness guardrail snippet ── */
.wellness-guardrail {
    margin-top: 48px;
    padding: 20px 24px;
    border: 1.5px solid var(--sage);
    border-radius: var(--radius-lg);
    background: var(--cloud);
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: .83rem;
    color: var(--char-mid);
    line-height: 1.6;
}

.wellness-guardrail__icon {
    color: var(--sage-dark);
    font-size: 1.05rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.wellness-guardrail strong {
    display: block;
    color: var(--char);
    font-size: .88rem;
    margin-bottom: 3px;
}

.wellness-guardrail a {
    color: var(--sage-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.wellness-guardrail a:hover {
    color: var(--char);
}

/* ================================================================
   WELLNESS LIBRARY  (/wellness-library)
   ================================================================ */

/* ── Page Hero ── */
.wl-hero {
    background: var(--char);
    color: #fff;
    padding: 76px 0 60px;
    text-align: center;
}

.wl-hero__inner {
    max-width: 640px;
    margin: 0 auto;
}

.wl-hero__eyebrow {
    font-size: .7rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--sage-light);
    margin: 0 0 14px;
}

.wl-hero__eyebrow i {
    margin-right: 6px;
}

.wl-hero__title {
    font-family: var(--font-head);
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 700;
    margin: 0 0 18px;
    line-height: 1.1;
}

.wl-hero__sub {
    font-size: .97rem;
    line-height: 1.75;
    opacity: .68;
    max-width: 520px;
    margin: 0 auto;
}

/* ── Section wrapper ── */
.wl-section {
    padding-top: 60px;
    padding-bottom: 88px;
}

/* ── Card Grid ── */
.wl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* ── Individual Card ── */
.wl-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}

.wl-card:hover {
    box-shadow: 0 10px 32px rgba(27, 38, 59, .1);
    transform: translateY(-4px);
}

.wl-card__img-wrap {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--cloud-2);
    flex-shrink: 0;
}

.wl-card__img-wrap--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8ede4 0%, #c9d4c0 100%);
}

.wl-card__placeholder-icon {
    font-size: 2.4rem;
    color: var(--sage);
    opacity: .45;
}

.wl-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.wl-card:hover .wl-card__img {
    transform: scale(1.05);
}

.wl-card__body {
    padding: 20px 22px 12px;
    flex: 1;
}

.wl-card__category {
    display: inline-block;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--sage-dark);
    background: rgba(139, 158, 122, .12);
    border-radius: var(--radius-pill);
    padding: 3px 10px;
    margin-bottom: 10px;
}

.wl-card__title {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 10px;
}

.wl-card__title a {
    color: var(--char);
    text-decoration: none;
    transition: color .15s;
}

.wl-card__title a:hover {
    color: var(--sage-dark);
}

.wl-card__excerpt {
    font-size: .82rem;
    color: #6b7280;
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wl-card__footer {
    padding: 14px 22px 20px;
    border-top: 1px solid #f3f4f6;
}

.wl-card__cta {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--sage-dark);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: gap .15s, color .15s;
}

.wl-card__cta:hover {
    color: var(--char);
    gap: 12px;
}

/* ── Empty state ── */
.wl-empty {
    text-align: center;
    padding: 80px 0;
    color: #9ca3af;
}

.wl-empty__icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

/* ================================================================
   GUIDE DETAIL  (/wellness-library/<slug>)
   ================================================================ */

/* ── Hero ── */
.gd-hero {
    background: var(--char);
    color: #fff;
    padding: 76px 0 60px;
    position: relative;
    overflow: hidden;
}

.gd-hero--image {
    background-image: var(--gd-hero-img);
    background-size: cover;
    background-position: center;
}

.gd-hero--image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(27, 38, 59, .78) 0%,
            rgba(27, 38, 59, .93) 100%);
}

.gd-hero__inner {
    position: relative;
    max-width: 780px;
}

.gd-breadcrumb {
    font-size: .7rem;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.gd-breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: color .12s;
}

.gd-breadcrumb a:hover {
    color: var(--sage-light);
}

.gd-breadcrumb__current {
    color: rgba(255, 255, 255, .85);
}

.gd-hero__category {
    display: inline-block;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #fff;
    background: var(--sage);
    border-radius: var(--radius-pill);
    padding: 3px 12px;
    margin-bottom: 16px;
}

.gd-hero__title {
    font-family: var(--font-head);
    font-size: clamp(1.85rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 16px;
}

.gd-hero__sub {
    font-size: .97rem;
    line-height: 1.7;
    opacity: .72;
    max-width: 680px;
    margin: 0 0 18px;
}

.gd-hero__byline {
    font-size: .74rem;
    letter-spacing: .04em;
    opacity: .5;
    margin: 0;
}

/* ── Body section ── */
.gd-body-section {
    padding: 56px 0 88px;
}

/* ── Two-column layout ── */
.gd-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

@media (max-width: 1040px) {
    .gd-layout {
        grid-template-columns: 1fr 268px;
        gap: 32px;
    }
}

@media (max-width: 760px) {
    .gd-layout {
        grid-template-columns: 1fr;
    }
}

/* ── Article area ──
   Uses guide-preview__body for existing article class styles.
   .gd-article adds the card container around it. ── */
.gd-article {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    padding: 40px 44px;
    font-size: .95rem;
    line-height: 1.85;
    color: #374151;
}

@media (max-width: 600px) {
    .gd-article {
        padding: 24px 20px;
    }
}

/* Extend guide-preview__body styles to the public article container */
.gd-article .guide-lead {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--char);
    margin-bottom: 28px;
}

.gd-article .guide-h2 {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--char);
    margin: 32px 0 14px;
}

.gd-article .guide-h3 {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--char);
    margin: 24px 0 10px;
}

.gd-article .guide-insight {
    background: var(--cloud);
    border-left: 3px solid var(--sage);
    border-radius: 0 6px 6px 0;
    padding: 18px 22px;
    margin: 24px 0;
}

.gd-article .guide-insight-icon {
    margin-right: 6px;
    color: var(--sage);
}

.gd-article .guide-tips {
    padding-left: 1.4em;
    margin: 12px 0 0;
}

.gd-article .guide-tips li {
    margin-bottom: 8px;
    line-height: 1.65;
}

.gd-article .guide-steps {
    padding-left: 1.4em;
    counter-reset: none;
}

.gd-article .guide-steps li {
    margin-bottom: 14px;
    line-height: 1.7;
}

.gd-article .guide-closing {
    border-top: 1px solid #e5e7eb;
    padding-top: 22px;
    margin-top: 28px;
    font-style: italic;
    color: var(--char-mid);
}

.gd-article .guide-product-link {
    color: var(--sage-dark);
    font-weight: 600;
    text-decoration: none;
}

.gd-article .guide-product-link:hover {
    text-decoration: underline;
}

.gd-article ul,
.gd-article ol {
    padding-left: 1.5em;
}

/* ── Sidebar ── */
.gd-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Shop the Solution component ── */
.shop-solution {
    border: 1.5px solid var(--gold);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.shop-solution__header {
    background: var(--char);
    color: #fff;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.shop-solution__icon {
    font-size: .82rem;
    color: var(--gold);
}

.shop-solution__label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.shop-solution__card {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.shop-solution__img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.shop-solution__badge {
    font-size: .65rem;
    margin-bottom: 4px;
    display: inline-block;
}

.shop-solution__name {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    color: var(--char);
    margin: 0 0 4px;
}

.shop-solution__tagline {
    font-size: .8rem;
    color: #6b7280;
    margin: 0 0 6px;
    line-height: 1.5;
}

.shop-solution__pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 2px;
}

.shop-solution__price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--char);
}

.shop-solution__compare {
    font-size: .84rem;
    text-decoration: line-through;
    color: #9ca3af;
}

.shop-solution__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shop-solution__buy {
    font-size: .8rem;
}

.gd-view-product-link {
    display: block;
    text-align: center;
    font-size: .72rem;
    color: var(--char-light);
    text-decoration: none;
    padding-top: 4px;
    transition: color .12s;
}

.gd-view-product-link:hover {
    color: var(--sage-dark);
}

/* ── Keywords box ── */
.gd-keywords-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px 18px;
}

.gd-keywords-box__label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #9ca3af;
    margin: 0 0 10px;
}

.gd-keywords-box__label i {
    margin-right: 5px;
}

.gd-keywords-box__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* ── Back link ── */
.gd-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .77rem;
    font-weight: 700;
    color: var(--sage-dark);
    text-decoration: none;
    letter-spacing: .04em;
    transition: gap .12s, color .12s;
}

.gd-back-link:hover {
    gap: 11px;
    color: var(--char);
}


.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .78rem;
    opacity: .5;
}

/* ── Divider ── */
.divider {
    border: none;
    border-top: 1px solid var(--cloud-3);
    margin: 32px 0;
}

/* ── Stripe card element ── */
#card-element {
    padding: 12px 14px;
    border: 1.5px solid var(--cloud-3);
    border-radius: var(--radius);
    background: var(--white);
}

#card-errors {
    color: var(--danger);
    font-size: .82rem;
    margin-top: 6px;
}

#payment-element {
    margin-bottom: 20px;
}

/* ── PWA install banner ── */
.pwa-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--cloud-3);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 800;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .08);
    transform: translateY(100%);
    transition: transform .35s ease;
}

.pwa-banner.visible {
    transform: translateY(0);
}

.pwa-banner__text h4 {
    font-size: .95rem;
    margin-bottom: 2px;
}

.pwa-banner__text p {
    font-size: .78rem;
    color: var(--char-mid);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero__img-panel {
        height: 260px;
        order: -1;
        position: relative;
    }

    .hero__text-panel {
        padding: 48px 24px 56px;
        justify-content: flex-start;
    }

    .hero__content {
        max-width: 100%;
        text-align: center;
    }

    .hero__sub {
        margin-left: auto;
        margin-right: auto;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    /* mobile-only: show sticky ATC bar */
    .sticky-atc {
        display: block;
    }

    .pd-atc-row {
        flex-direction: column;
        align-items: stretch;
    }

    .pd-atc-btn {
        flex: none;
        width: 100%;
    }

    .pd-title {
        font-size: 1.55rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .navbar__nav {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .footer__grid {
        grid-template-columns: 1fr;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* ── Misc ── */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mt-4 {
    margin-top: 32px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mb-4 {
    margin-bottom: 32px;
}

.gap-2 {
    gap: 16px;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.w-100 {
    width: 100%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* ── Mobile nav drawer ── */
.mobile-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--cloud-3);
    padding: 16px 0;
    z-index: 850;
    box-shadow: var(--shadow-lg);
}

.mobile-nav.open {
    display: block;
}

.mobile-nav a {
    display: block;
    padding: 12px 24px;
    font-size: .9rem;
    letter-spacing: .06em;
    color: var(--char-mid);
    border-bottom: 1px solid var(--cloud-2);
    transition: var(--trans);
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.mobile-nav a:hover {
    background: var(--cloud);
    color: var(--char);
}

/* ── Section title ── */
.section__title {
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 32px;
    color: var(--char);
}

/* ── Gallery grid ── */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 2rem 0;
}

/* ── Product card (shop / index) ── */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .07), 0 1px 4px rgba(0, 0, 0, .04);
    transition: var(--trans);
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, .11), 0 2px 8px rgba(0, 0, 0, .05);
    transform: translateY(-4px);
}

.card__img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--sage-light);
}

.card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.card:hover .card__img-wrap img {
    transform: scale(1.04);
}

/* single badge (legacy) */
.card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--char);
    color: var(--white);
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
    z-index: 1;
}

/* dual pill tags */
.card__tags {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    z-index: 1;
}

.card-tag {
    display: inline-block;
    padding: 3px 11px;
    border-radius: var(--radius-pill);
    font-size: .63rem;
    letter-spacing: .06em;
    font-weight: 500;
    text-transform: lowercase;
}

.card-tag--sage {
    background: var(--sage);
    color: var(--white);
}

.card-tag--gold {
    background: var(--gold);
    color: var(--white);
}

.card__body {
    padding: 20px 22px;
    flex: 1;
}

.card__name {
    font-family: var(--font-head);
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--char);
}

.card__tagline {
    font-size: .83rem;
    color: var(--char-mid);
    margin-bottom: 10px;
    line-height: 1.4;
}

.card__pricing {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card__price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--char);
}

.card__compare {
    font-size: .85rem;
    color: var(--char-light);
    text-decoration: line-through;
}

.card__actions {
    padding: 0 18px 18px;
    display: flex;
    gap: 10px;
}

/* ── Extra button variants ── */
.btn--secondary {
    background: transparent;
    border: 1.5px solid var(--sage);
    color: var(--sage);
    border-radius: var(--radius-pill);
}

.btn--secondary:hover {
    background: var(--sage);
    color: var(--white);
}

.btn--dark {
    background: var(--char);
    color: var(--white);
    border-radius: var(--radius-pill);
}

.btn--dark:hover {
    background: var(--char-mid);
    color: var(--white);
}

.btn--light {
    background: var(--white);
    color: var(--char);
    border-radius: var(--radius-pill);
}

.btn--light:hover {
    background: var(--cloud);
    color: var(--char);
}

/* ── Categories grid ── */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.category-card {
    display: block;
    background: var(--white);
    border: 1.5px solid var(--cloud-3);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: var(--trans);
}

.category-card:hover {
    border-color: var(--sage);
    box-shadow: var(--shadow);
    color: var(--char);
}

.category-card h3 {
    font-family: var(--font-head);
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--char);
}

.category-card p {
    font-size: .82rem;
    color: var(--char-mid);
    line-height: 1.5;
}

/* ── Navbar J monogram ── */
/* .navbar__logo-j is defined in the main navbar block above */

/* ── Search icon button ── */
.navbar__icon {
    color: var(--char-mid);
    font-size: 1rem;
    transition: var(--trans);
    display: flex;
    align-items: center;
}

.navbar__icon:hover {
    color: var(--char);
}