/* ==========================================================================
   Parin Jewellers – Home (Redesign)
   Implements Figma "Customer Experience Intelligence Platform" node 103:34715.
   Everything is scoped under body.pj-home / .pj-* so the rest of the site
   (css/style.css + sass/style.css) is untouched.
   ========================================================================== */

:root {
    --pj-maroon: #5b1519;
    --pj-maroon-deep: #3a0c0f;
    --pj-maroon-soft: #7a2228;
    --pj-gold: #b8893b;
    --pj-gold-text: #8c6420;
    --pj-gold-light: #e6c98f;
    --pj-ivory: #fbf7f2;
    --pj-sand: #f3e9dc;
    --pj-sand-deep: #f4e8da;
    --pj-card-bg: #f6f1ea;
    --pj-ink: #1c1414;
    --pj-muted: #5e5050;
    --pj-faint: #a39494;
    --pj-line: #e8dccb;
    --pj-blush: #ebd9d9;
    --pj-cream: #f1e3cc;
    --pj-footer: #160607;
    --pj-whatsapp: #1fa855;

    --pj-serif: "Cormorant Garamond", "Times New Roman", serif;
    --pj-sans: "Poppins", system-ui, sans-serif;

    --pj-gutter: 120px;
    --pj-max: 1200px;
    --pj-section-y: 100px;
    --pj-radius-card: 20px;
    --pj-shadow-card: 0 10px 30px rgba(59, 13, 15, 0.06);
    --pj-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base (overrides sass/style.css "* { font-family: Geist }") ---------- */
body.pj-home {
    background: var(--pj-ivory);
    color: var(--pj-ink);
    font-family: var(--pj-sans);
    -webkit-font-smoothing: antialiased;
}

.pj-home,
.pj-home * {
    font-family: var(--pj-sans);
}

.pj-home *,
.pj-home *::before,
.pj-home *::after {
    box-sizing: border-box;
}

/* :where() keeps this reset at single-class weight, so component rules below win */
.pj-home :where(main p, main h1, main h2, main h3, main ul, main dl, main dd, main figure, main blockquote,
    .pj-footer p, .pj-footer h2, .pj-footer ul, .pj-newsletter p, .pj-newsletter h2) {
    margin: 0;
    padding: 0;
    font-weight: inherit;
    line-height: normal;
    letter-spacing: normal;
}

.pj-home :where(main ul, .pj-footer ul, .pj-header ul) {
    list-style: none;
}

.pj-home a {
    color: inherit;
    text-decoration: none;
}

.pj-home img {
    max-width: 100%;
    display: block;
}

.pj-home button {
    font: inherit;
    cursor: pointer;
}

.pj-home :focus-visible {
    outline: 2px solid var(--pj-gold);
    outline-offset: 3px;
}

.pj-icon {
    display: inline-block;
    flex-shrink: 0;
    vertical-align: middle;
}

.pj-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pj-skip {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 1000;
    padding: 10px 16px;
    border-radius: 100px;
    background: var(--pj-ink);
    color: #fff !important;
    transition: top 0.2s var(--pj-ease);
}

.pj-skip:focus {
    top: 12px;
}

/* ---------- Layout helpers ---------- */
.pj-container {
    width: 100%;
    max-width: calc(var(--pj-max) + 2 * var(--pj-gutter));
    margin: 0 auto;
    padding: 0 var(--pj-gutter);
}

.pj-section {
    padding: var(--pj-section-y) 0;
}

.pj-section--sand {
    background: var(--pj-sand);
}

.pj-section--maroon {
    background: var(--pj-maroon);
}

.pj-heading {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.pj-heading--center {
    align-items: center;
    text-align: center;
    margin-bottom: 48px;
}

.pj-home .pj-eyebrow {
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--pj-gold-text);
}

.pj-home .pj-eyebrow--gold {
    color: var(--pj-gold-light);
}

.pj-home .pj-eyebrow--line {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pj-eyebrow--line::before {
    content: "";
    width: 36px;
    height: 1px;
    background: var(--pj-gold);
}

.pj-home .pj-heading__title {
    font-family: var(--pj-serif);
    font-weight: 400;
    font-size: 52px;
    line-height: 1.2;
    color: var(--pj-ink);
}

.pj-home .pj-heading__sub {
    font-size: 16px;
    color: var(--pj-muted);
}

/* ---------- Buttons & links ---------- */
.pj-home .pj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    padding: 0 32px;
    border-radius: 100px;
    border: 1px solid transparent;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: background-color 0.25s var(--pj-ease), color 0.25s var(--pj-ease), border-color 0.25s var(--pj-ease), transform 0.25s var(--pj-ease);
}

.pj-home .pj-btn:hover {
    transform: translateY(-1px);
}

.pj-home .pj-btn--primary {
    background: var(--pj-maroon);
    color: #fff;
}

.pj-home .pj-btn--primary:hover {
    background: var(--pj-maroon-deep);
    color: #fff;
}

.pj-home .pj-btn--outline {
    border-color: var(--pj-ink);
    color: var(--pj-ink);
    background: transparent;
}

.pj-home .pj-btn--outline:hover {
    background: var(--pj-ink);
    color: #fff;
}

.pj-home .pj-btn--gold {
    background: var(--pj-gold);
    color: #fff;
    height: 50px;
}

.pj-home .pj-btn--gold:hover {
    background: var(--pj-gold-text);
}

.pj-home .pj-btn--whatsapp {
    background: var(--pj-whatsapp);
    color: #fff;
}

.pj-home .pj-btn--whatsapp:hover {
    background: #188a45;
    color: #fff;
}

.pj-home .pj-btn--sm {
    height: 44px;
    padding: 0 24px;
    font-size: 14px;
}

.pj-home .pj-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #fff;
}

.pj-link .pj-icon {
    transition: transform 0.25s var(--pj-ease);
}

.pj-link:hover .pj-icon,
.pj-tile:hover .pj-link .pj-icon {
    transform: translateX(4px);
}

/* ---------- Announcement bar ---------- */
.pj-announce {
    background: var(--pj-maroon-deep);
    color: var(--pj-cream);
    overflow: hidden;
}

.pj-announce__track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    height: 38px;
    padding: 0 16px;
    font-size: 12px;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.pj-announce__dot {
    color: var(--pj-gold);
    font-size: 14px;
}

/* ---------- Header ---------- */
.pj-header {
    position: sticky;
    top: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 84px;
    padding: 0 80px;
    background: var(--pj-maroon);
    transition: box-shadow 0.25s var(--pj-ease);
}

.pj-header.is-scrolled {
    box-shadow: 0 8px 24px rgba(22, 6, 7, 0.25);
}

.pj-header__logo img {
    width: 160px;
    height: auto;
}

.pj-nav {
    display: flex;
    align-items: center;
}

.pj-nav__list {
    display: flex;
    align-items: flex-start;
    gap: 36px;
    margin: 0;
    padding: 0;
}

.pj-nav__item {
    position: relative;
}

.pj-home .pj-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0 10px;
    font-size: 14px;
    color: var(--pj-blush);
    transition: color 0.2s var(--pj-ease);
}

.pj-home .pj-nav__link:hover,
.pj-home .pj-nav__item.is-active > .pj-nav__link {
    color: #fff;
}

.pj-home .pj-nav__item.is-active > .pj-nav__link {
    font-weight: 500;
}

.pj-nav__item.is-active > .pj-nav__link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 18px;
    height: 2px;
    background: var(--pj-gold);
    transform: translateX(-50%);
}

.pj-nav__menu {
    position: absolute;
    top: 100%;
    left: -16px;
    min-width: 200px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 10px 0 !important;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(59, 13, 15, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s var(--pj-ease), transform 0.2s var(--pj-ease), visibility 0.2s;
    z-index: 10;
}

.pj-nav__item--has-menu:hover > .pj-nav__menu,
.pj-nav__item--has-menu:focus-within > .pj-nav__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pj-home .pj-nav__menu a {
    display: block;
    padding: 9px 20px;
    font-size: 14px;
    color: var(--pj-ink);
    white-space: nowrap;
}

.pj-home .pj-nav__menu a:hover {
    background: var(--pj-sand);
    color: var(--pj-maroon);
}

.pj-nav__phone {
    display: none;
}

.pj-header__actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.pj-home .pj-header__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 13px;
    color: #fff;
    white-space: nowrap;
}

.pj-header__phone .pj-icon,
.pj-nav__phone .pj-icon {
    color: var(--pj-gold-light);
}

.pj-header__divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.25);
}

.pj-home .pj-header__icon {
    position: relative;
    display: inline-flex;
    color: #fff;
    transition: color 0.2s var(--pj-ease);
}

.pj-home .pj-header__icon:hover {
    color: var(--pj-gold-light);
}

.pj-header__count {
    position: absolute;
    left: 14px;
    top: -6px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 10px;
    background: var(--pj-gold);
    color: #fff;
    font-weight: 600;
    font-size: 10px;
}

.pj-header__burger {
    display: none;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
}

.pj-header__burger .pj-icon--close,
.pj-header.is-open .pj-header__burger .pj-icon--open {
    display: none;
}

.pj-header.is-open .pj-header__burger .pj-icon--close {
    display: inline-block;
}

/* ---------- Hero ---------- */
.pj-hero {
    background: linear-gradient(90deg, var(--pj-ivory) 0%, var(--pj-sand-deep) 100%);
}

.pj-hero__inner {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: calc(var(--pj-max) + 2 * var(--pj-gutter));
    margin: 0 auto;
    padding: 80px var(--pj-gutter) 96px;
}

.pj-hero__copy {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
}

.pj-home .pj-hero__title {
    display: flex;
    flex-direction: column;
    font-family: var(--pj-serif);
    font-weight: 300;
    font-size: 80px;
    line-height: 1;
    color: var(--pj-ink);
}

.pj-home .pj-hero__title span {
    font-family: var(--pj-serif);
    white-space: nowrap;
}

.pj-home .pj-hero__title-accent {
    font-weight: 500;
    color: var(--pj-maroon);
}

.pj-home .pj-hero__lead {
    max-width: 560px;
    font-size: 18px;
    line-height: 1.65;
    color: var(--pj-muted);
}

.pj-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.pj-hero__stats {
    display: flex;
    align-items: flex-start;
    gap: 36px;
    padding-top: 12px;
}

.pj-hero__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pj-hero__stat + .pj-hero__stat {
    position: relative;
}

.pj-hero__stat + .pj-hero__stat::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 0;
    width: 1px;
    height: 44px;
    background: var(--pj-line);
}

.pj-home .pj-hero__stat dt {
    font-family: var(--pj-serif);
    font-weight: 500;
    font-size: 30px;
    color: var(--pj-maroon);
    white-space: nowrap;
}

.pj-home .pj-hero__stat dt span {
    font-family: inherit;
}

.pj-home .pj-hero__stat dd {
    font-size: 13px;
    color: var(--pj-muted);
}

/* The hero visual is one fluid composition: every size below is in cqw
   (1cqw = 1% of the visual's width), so the 520px desktop frame and the
   350px mobile frame in Figma are the same layout at different scales. */
.pj-hero__visual {
    position: relative;
    flex: 0 0 520px;
    width: 520px;
    max-width: 100%;
    aspect-ratio: 520 / 620;
    container-type: inline-size;
}

.pj-hero__arch-outline {
    position: absolute;
    left: 15.385cqw;
    top: 3.846cqw;
    width: 84.615cqw;
    height: 115.385cqw;
    border: 1px solid rgba(184, 137, 59, 0.5);
    border-radius: 42.308cqw 42.308cqw 4.615cqw 4.615cqw;
}

.pj-hero__arch {
    position: absolute;
    left: 11.154cqw;
    top: -0.385cqw;
    width: 85.385cqw;
    height: 116.154cqw;
    object-fit: cover;
}

.pj-home .pj-hero__badge {
    position: absolute;
    left: 73.077cqw;
    top: 11.538cqw;
    display: inline-flex;
    align-items: center;
    gap: 1.538cqw;
    padding: 1.923cqw 3.077cqw 1.923cqw 2.692cqw;
    border-radius: 100px;
    background: var(--pj-maroon);
    color: #fff;
    font-weight: 500;
    font-size: 2.5cqw;
    white-space: nowrap;
}

.pj-hero__badge .pj-icon {
    width: 3.462cqw;
    height: 3.462cqw;
    color: var(--pj-gold-light);
}

.pj-home .pj-hero__product {
    position: absolute;
    left: 0;
    top: 84.615cqw;
    display: flex;
    align-items: center;
    gap: 2.692cqw;
    max-width: 56cqw;
    padding: 2.308cqw 3.846cqw 2.308cqw 2.308cqw;
    border-radius: 3.077cqw;
    background: #fff;
    box-shadow: 0 3.077cqw 7.692cqw rgba(59, 13, 15, 0.16);
    transition: transform 0.25s var(--pj-ease);
}

.pj-home .pj-hero__product:hover {
    transform: translateY(-3px);
}

.pj-hero__product img {
    width: 12.308cqw;
    height: 12.308cqw;
    flex-shrink: 0;
    border-radius: 1.923cqw;
    object-fit: cover;
    background: var(--pj-card-bg);
}

.pj-hero__product-info {
    display: flex;
    flex-direction: column;
    gap: 0.385cqw;
    min-width: 0;
}

.pj-home .pj-hero__product-name {
    font-weight: 500;
    font-size: 2.692cqw;
    color: var(--pj-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pj-home .pj-hero__product-meta {
    font-size: 2.308cqw;
    color: var(--pj-muted);
}

.pj-home .pj-hero__product-price {
    font-weight: 600;
    font-size: 2.885cqw;
    color: var(--pj-maroon);
}

/* ---------- Horizontal rails (categories, bestsellers) ---------- */
[data-pj-rail] {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

[data-pj-rail]::-webkit-scrollbar {
    display: none;
}

/* ---------- Shop by category ---------- */
.pj-categories__list {
    display: flex;
    gap: 20px;
}

.pj-categories__list > li {
    flex: 0 0 200px;
    scroll-snap-align: start;
}

.pj-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.pj-category__ring {
    display: flex;
    padding: 6px;
    border: 1px solid rgba(184, 137, 59, 0.6);
    border-radius: 50%;
    transition: border-color 0.25s var(--pj-ease);
}

.pj-category__circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 136px;
    height: 136px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pj-maroon-soft) 0%, var(--pj-maroon-deep) 100%);
    transition: transform 0.35s var(--pj-ease);
}

.pj-category__circle img {
    width: 81px;
    height: 81px;
    object-fit: contain;
}

.pj-home .pj-category__initial {
    font-family: var(--pj-serif);
    font-weight: 300;
    font-size: 64px;
    line-height: 1;
    color: var(--pj-gold-light);
}

.pj-home .pj-category__label {
    font-family: var(--pj-serif);
    font-weight: 500;
    font-size: 22px;
    color: var(--pj-ink);
    text-align: center;
}

.pj-category:hover .pj-category__ring {
    border-color: var(--pj-gold);
}

.pj-category:hover .pj-category__circle {
    transform: scale(1.04);
}

/* ---------- Bestsellers ---------- */
.pj-best__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 48px;
}

.pj-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pj-home .pj-chip {
    padding: 10px 18px;
    border: 1px solid var(--pj-line);
    border-radius: 100px;
    background: #fff;
    color: var(--pj-ink);
    font-weight: 500;
    font-size: 13px;
    line-height: normal;
    transition: background-color 0.2s var(--pj-ease), color 0.2s var(--pj-ease), border-color 0.2s var(--pj-ease);
}

.pj-home .pj-chip:hover {
    border-color: var(--pj-maroon);
}

.pj-home .pj-chip.is-active {
    background: var(--pj-maroon);
    border-color: var(--pj-maroon);
    color: #fff;
}

.pj-best__rail {
    margin: -20px -30px;
    padding: 20px 30px;
    scroll-padding: 0 30px;
}

.pj-best__list {
    display: flex;
    gap: 24px;
}

.pj-product {
    flex: 0 0 calc((100% - 3 * 24px) / 4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--pj-radius-card);
    background: #fff;
    box-shadow: var(--pj-shadow-card);
    scroll-snap-align: start;
    transition: transform 0.3s var(--pj-ease), box-shadow 0.3s var(--pj-ease);
}

.pj-product[hidden] {
    display: none;
}

.pj-product:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(59, 13, 15, 0.12);
}

.pj-product__media {
    position: relative;
    height: 300px;
    background: var(--pj-card-bg);
}

.pj-product__media > a,
.pj-product__media img {
    display: block;
    width: 100%;
    height: 100%;
}

.pj-product__media img.is-missing,
.pj-hero__product img.is-missing {
    visibility: hidden;
}

.pj-product__media img {
    object-fit: cover;
    transition: transform 0.5s var(--pj-ease);
}

.pj-product:hover .pj-product__media img {
    transform: scale(1.04);
}

.pj-home .pj-product__badge {
    position: absolute;
    left: 16px;
    top: 16px;
    padding: 5px 10px;
    border-radius: 100px;
    background: var(--pj-maroon);
    color: #fff;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 1px;
}

.pj-home .pj-product__badge--gold {
    background: var(--pj-gold);
}

.pj-home .pj-product__wish {
    position: absolute;
    right: 14px;
    top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--pj-maroon);
    transition: background-color 0.2s var(--pj-ease), color 0.2s var(--pj-ease);
}

.pj-home .pj-product__wish:hover,
.pj-home .pj-product__wish.is-added {
    background: var(--pj-maroon);
    color: #fff;
}

.pj-product__wish.is-added .pj-icon {
    fill: currentColor;
}

.pj-product__info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
}

.pj-home .pj-product__cat {
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--pj-gold-text);
}

.pj-home .pj-product__name {
    font-family: var(--pj-serif);
    font-weight: 500;
    font-size: 20px;
    color: var(--pj-ink);
}

.pj-home .pj-product__name a {
    font-family: inherit;
}

.pj-home .pj-product__name a:hover {
    color: var(--pj-maroon);
}

.pj-home .pj-product__meta {
    font-size: 13px;
    color: var(--pj-muted);
}

.pj-product__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
}

.pj-home .pj-product__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
}

.pj-home .pj-product__price span {
    font-weight: 600;
    font-size: 18px;
    color: var(--pj-maroon);
}

.pj-home .pj-product__price s {
    font-size: 13px;
    color: var(--pj-faint);
}

.pj-home .pj-product__buy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pj-ink);
    color: #fff;
    transition: background-color 0.2s var(--pj-ease);
}

.pj-home .pj-product__buy:hover {
    background: var(--pj-maroon);
}

.pj-best__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
}

.pj-arrows {
    display: flex;
    gap: 12px;
}

.pj-home .pj-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(28, 20, 20, 0.3);
    border-radius: 50%;
    background: transparent;
    color: var(--pj-ink);
    transition: background-color 0.2s var(--pj-ease), color 0.2s var(--pj-ease), opacity 0.2s;
}

.pj-home .pj-arrow:hover:not(:disabled) {
    background: var(--pj-ink);
    color: #fff;
}

.pj-home .pj-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.pj-best__empty {
    padding: 40px 0;
    color: var(--pj-muted);
}

/* ---------- Sterling silver ---------- */
.pj-sterling__inner {
    display: flex;
    align-items: center;
    gap: 64px;
}

.pj-sterling__copy {
    flex: 0 0 440px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pj-home .pj-sterling__title {
    font-family: var(--pj-serif);
    font-weight: 400;
    font-size: 48px;
    line-height: 1.1;
    color: #fff;
}

.pj-home .pj-sterling__text {
    font-size: 16px;
    line-height: 1.65;
    color: var(--pj-blush);
}

.pj-sterling__assure {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
}

.pj-home .pj-sterling__assure-label {
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--pj-gold-light);
}

.pj-home .pj-sterling__assure-value {
    font-weight: 600;
    font-size: 16px;
    color: #fff;
}

.pj-home .pj-sterling__assure-note {
    flex-basis: 100%;
    font-size: 11px;
    color: #c9afaf;
}

.pj-sterling__cards {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    gap: 24px;
}

.pj-metal-card {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 370px;
    padding: 36px 32px;
    border: 1px solid rgba(230, 201, 143, 0.5);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.06);
    transition: background-color 0.3s var(--pj-ease), transform 0.3s var(--pj-ease);
}

.pj-metal-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.pj-metal-card--silver {
    border-color: rgba(218, 221, 227, 0.5);
}

.pj-home .pj-metal-card__num {
    font-family: var(--pj-serif);
    font-weight: 300;
    font-size: 72px;
    line-height: 1.2;
    color: var(--pj-gold-light);
}

.pj-home .pj-metal-card__label {
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--pj-gold-light);
}

.pj-home .pj-metal-card--silver .pj-metal-card__num,
.pj-home .pj-metal-card--silver .pj-metal-card__label {
    color: #dadde3;
}

.pj-home .pj-metal-card__title {
    font-family: var(--pj-serif);
    font-weight: 500;
    font-size: 28px;
    color: #fff;
}

.pj-home .pj-metal-card__text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--pj-blush);
}

/* ---------- Shop by occasion ---------- */
.pj-occasions__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pj-tile {
    position: relative;
    display: block;
    height: 460px;
    overflow: hidden;
    border-radius: 24px;
    background: var(--pj-card-bg);
    isolation: isolate;
}

.pj-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--pj-ease);
    z-index: -2;
}

.pj-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 8, 8, 0) 40%, rgba(26, 8, 8, 0.88) 100%);
    z-index: -1;
}

.pj-tile:hover img {
    transform: scale(1.05);
}

.pj-tile__copy {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.pj-home .pj-tile__title {
    font-family: var(--pj-serif);
    font-weight: 500;
    font-size: 32px;
    color: #fff;
}

.pj-home .pj-tile__text {
    font-size: 14px;
    color: var(--pj-cream);
}

/* ---------- Why choose ---------- */
.pj-why .pj-heading--center {
    margin-bottom: 56px;
}

.pj-why__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pj-feature {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 32px 28px;
    border-radius: var(--pj-radius-card);
    background: #fff;
    transition: transform 0.3s var(--pj-ease), box-shadow 0.3s var(--pj-ease);
}

.pj-feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--pj-shadow-card);
}

.pj-feature__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pj-feature__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(91, 21, 25, 0.08);
    color: var(--pj-maroon);
}

.pj-home .pj-feature__title {
    font-family: var(--pj-serif);
    font-weight: 500;
    font-size: 24px;
    color: var(--pj-ink);
}

.pj-home .pj-feature__text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--pj-muted);
}

/* ---------- Testimonials ---------- */
.pj-reviews .pj-heading--center {
    margin-bottom: 48px;
}

.pj-home .pj-reviews__summary {
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    margin: 0 auto 48px;
    padding: 10px 20px;
    border: 1px solid var(--pj-line);
    border-radius: 100px;
    background: #fff;
    font-size: 14px;
    color: var(--pj-muted);
}

.pj-home .pj-reviews__stars {
    font-size: 16px;
    color: var(--pj-gold);
    letter-spacing: 1px;
}

.pj-reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pj-review {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 352px;
    padding: 32px;
    border: 1px solid var(--pj-line);
    border-radius: var(--pj-radius-card);
    background: #fff;
}

.pj-home .pj-review__mark {
    display: block;
    height: 34px;
    font-family: var(--pj-serif);
    font-size: 56px;
    line-height: 56px;
    color: var(--pj-gold);
}

.pj-home .pj-review blockquote,
.pj-home .pj-review__cta-text {
    flex: 1 1 auto;
    font-size: 16px;
    line-height: 1.65;
    color: var(--pj-ink);
}

.pj-home .pj-review__cta-text {
    color: var(--pj-muted);
}

.pj-review__author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--pj-line);
}

.pj-home .pj-review__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
}

.pj-home .pj-review__author strong {
    display: block;
    font-weight: 500;
    font-size: 15px;
    color: var(--pj-ink);
}

.pj-home .pj-review__author small {
    display: block;
    font-size: 12px;
    color: var(--pj-muted);
}

/* ---------- Instagram ---------- */
.pj-insta {
    padding-top: 80px;
}

.pj-insta__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
}

.pj-insta__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.pj-insta__grid a {
    display: block;
    height: 290px;
    overflow: hidden;
    border-radius: 16px;
    background: var(--pj-card-bg);
}

.pj-insta__grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--pj-ease), opacity 0.3s;
}

.pj-insta__grid a:hover img {
    transform: scale(1.05);
    opacity: 0.92;
}

/* ---------- Visit our store ---------- */
.pj-visit__inner {
    display: flex;
    align-items: center;
    gap: 64px;
}

.pj-visit__copy {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pj-visit__list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pj-visit__list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--pj-ink);
}

.pj-home .pj-visit__list small {
    display: block;
    margin-bottom: 2px;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 1.5px;
    color: var(--pj-gold-text);
}

.pj-home .pj-visit__list a:hover {
    color: var(--pj-maroon);
}

.pj-visit__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(91, 21, 25, 0.08);
    color: var(--pj-maroon);
}

.pj-visit__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 8px;
}

.pj-visit__map {
    flex: 0 0 560px;
    height: 460px;
    overflow: hidden;
    border: 1px solid var(--pj-line);
    border-radius: 24px;
    background-color: var(--pj-sand);
    background-image:
        linear-gradient(#e2d3be 1px, transparent 1px),
        linear-gradient(90deg, #e2d3be 1px, transparent 1px);
    background-size: 93px 77px;
}

.pj-visit__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    filter: sepia(0.15) saturate(0.9);
}

/* ---------- Newsletter ---------- */
.pj-newsletter {
    background: var(--pj-maroon);
}

.pj-newsletter__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    max-width: calc(var(--pj-max) + 2 * var(--pj-gutter));
    margin: 0 auto;
    padding: 72px var(--pj-gutter);
}

.pj-newsletter__copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pj-home .pj-newsletter__title {
    font-family: var(--pj-serif);
    font-weight: 400;
    font-size: 40px;
    color: #fff;
}

.pj-home .pj-newsletter__note {
    font-size: 14px;
    color: var(--pj-blush);
}

.pj-newsletter__form-wrap {
    flex: 0 1 520px;
}

.pj-newsletter__form {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    align-content: normal;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    padding: 6px 6px 6px 24px;
    border-radius: 100px;
    background: #fff;
}

.pj-home .pj-newsletter__form input[type="email"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 50px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 15px;
    color: var(--pj-ink);
}

.pj-newsletter__form input::placeholder {
    color: #9c8b8b;
}

.pj-newsletter__form:focus-within {
    box-shadow: 0 0 0 3px rgba(230, 201, 143, 0.6);
}

.pj-home .pj-newsletter__status {
    margin-top: 12px;
    padding-left: 24px;
    font-size: 14px;
    color: var(--pj-gold-light);
}

/* ---------- Footer ---------- */
.pj-footer {
    background: var(--pj-footer);
    color: #e8dada;
}

.pj-footer__inner {
    max-width: calc(var(--pj-max) + 2 * var(--pj-gutter));
    margin: 0 auto;
    padding: 80px var(--pj-gutter) 40px;
}

.pj-footer__cols {
    display: flex;
    gap: 48px;
}

.pj-footer__brand {
    flex: 0 0 360px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pj-footer__brand img {
    width: 160px;
    height: auto;
}

.pj-home .pj-footer__brand p {
    font-size: 14px;
    line-height: 1.65;
    color: #c9b4b4;
}

.pj-footer__social {
    display: flex;
    gap: 12px;
}

.pj-home .pj-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-weight: 500;
    font-size: 11px;
    color: #fff;
    transition: background-color 0.2s var(--pj-ease), border-color 0.2s var(--pj-ease);
}

.pj-home .pj-footer__social a:hover {
    background: var(--pj-gold);
    border-color: var(--pj-gold);
}

.pj-footer__col {
    flex: 1 1 0;
    min-width: 0;
}

.pj-home .pj-footer__heading {
    margin-bottom: 14px;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 2.5px;
    color: var(--pj-gold-light);
}

.pj-footer__col ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pj-footer__col li {
    font-size: 14px;
    line-height: normal;
}

.pj-home .pj-footer__col a {
    font-size: 14px;
    color: #e8dada;
    transition: color 0.2s var(--pj-ease);
}

.pj-home .pj-footer__col a:hover {
    color: var(--pj-gold-light);
}

.pj-footer__divider {
    height: 1px;
    margin: 48px 0;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    opacity: 1;
}

.pj-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pj-home .pj-footer__bottom p,
.pj-footer__pay > span:first-child {
    font-size: 12px;
    color: #9c8585;
}

.pj-footer__pay {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.pj-footer__chip {
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-weight: 500;
    font-size: 11px;
    color: #e8dada;
}

/* ---------- WhatsApp float ---------- */
.pj-home .pj-whatsapp {
    position: fixed;
    right: 32px;
    bottom: 32px;
    z-index: 250;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 52px;
    padding: 0 20px 0 18px;
    border-radius: 100px;
    background: var(--pj-whatsapp);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    transition: transform 0.25s var(--pj-ease), background-color 0.25s var(--pj-ease);
}

.pj-home .pj-whatsapp:hover {
    background: #188a45;
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- Toast (wishlist feedback) ---------- */
.pj-toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    z-index: 400;
    max-width: calc(100% - 32px);
    padding: 12px 20px;
    border-radius: 100px;
    background: var(--pj-ink);
    color: #fff;
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translate(-50%, 12px);
    transition: opacity 0.25s var(--pj-ease), transform 0.25s var(--pj-ease);
    pointer-events: none;
}

.pj-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ==========================================================================
   Responsive
   - Desktop  ≥1200px : Figma "Home (Redesign)" 1440 frame
   - Laptop   1024–1199
   - Tablet   768–1023 : derived layout (no Figma frame)
   - Mobile   ≤767     : Figma "Home (Mobile)" 390 frame
   ========================================================================== */

/* Mobile-only bits are hidden by default */
.pj-only-mobile {
    display: none;
}

@media (max-width: 1360px) {
    :root {
        --pj-gutter: 64px;
    }

    .pj-header {
        padding: 0 40px;
    }

    .pj-nav__list {
        gap: 28px;
    }

    .pj-hero__inner {
        gap: 48px;
    }
}

/* ---------- Laptop ---------- */
@media (max-width: 1199px) {
    :root {
        --pj-gutter: 40px;
        --pj-section-y: 88px;
    }

    .pj-nav__list {
        gap: 22px;
    }

    .pj-home .pj-header__phone,
    .pj-header__divider {
        display: none;
    }

    .pj-home .pj-hero__title {
        font-size: 64px;
    }

    .pj-hero__visual {
        flex-basis: 400px;
        width: 400px;
    }

    .pj-product {
        flex-basis: calc((100% - 2 * 24px) / 3);
    }

    .pj-sterling__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 48px;
    }

    .pj-sterling__copy {
        flex-basis: auto;
        max-width: 640px;
    }

    .pj-visit__map {
        flex-basis: 440px;
    }

    .pj-footer__brand {
        flex-basis: 300px;
    }
}

/* ---------- Header collapses into a drawer ---------- */
@media (max-width: 1099px) {
    .pj-header {
        height: 72px;
        padding: 0 var(--pj-gutter);
    }

    .pj-header__logo img {
        width: 140px;
    }

    .pj-header__burger {
        display: inline-flex;
        color: var(--pj-gold-light);
    }

    .pj-header__actions {
        gap: 20px;
    }

    .pj-nav {
        position: fixed;
        top: var(--pj-header-bottom, 72px);
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        padding: 24px var(--pj-gutter) 40px;
        background: var(--pj-maroon);
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.25s var(--pj-ease), transform 0.25s var(--pj-ease), visibility 0.25s;
    }

    .pj-header.is-open .pj-nav {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .pj-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .pj-nav__item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .pj-home .pj-nav__link {
        display: flex;
        justify-content: space-between;
        padding: 16px 0;
        font-size: 16px;
    }

    .pj-nav__item.is-active > .pj-nav__link::after {
        left: 0;
        bottom: 10px;
        transform: none;
    }

    .pj-nav__menu {
        position: static;
        display: none;
        min-width: 0;
        max-height: none;
        padding: 0 0 12px !important;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .pj-nav__item--has-menu.is-expanded > .pj-nav__menu {
        display: block;
    }

    .pj-nav__item--has-menu.is-expanded > .pj-nav__link .pj-icon {
        transform: rotate(180deg);
    }

    .pj-home .pj-nav__menu a {
        padding: 8px 12px;
        color: var(--pj-blush);
    }

    .pj-home .pj-nav__menu a:hover {
        background: rgba(255, 255, 255, 0.06);
        color: #fff;
    }

    .pj-home .pj-nav__phone {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-weight: 500;
        font-size: 15px;
        color: #fff;
    }

    body.pj-nav-open {
        overflow: hidden;
    }
}

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
    /* Announcement: first three messages fit on a tablet */
    .pj-announce__track {
        gap: 24px;
    }

    .pj-announce__track > :nth-child(n+6) {
        display: none;
    }

    :root {
        --pj-gutter: 32px;
        --pj-section-y: 72px;
    }

    /* Hero stacks: copy, then the arch visual centred */
    .pj-hero__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 56px;
        padding-top: 56px;
        padding-bottom: 72px;
    }

    .pj-hero__visual {
        flex: none;
        align-self: center;
        width: min(440px, 100%);
    }

    .pj-home .pj-heading__title {
        font-size: 44px;
    }

    .pj-heading--center {
        margin-bottom: 40px;
    }

    /* Categories: smaller rings on the rail */
    .pj-categories__list > li {
        flex-basis: 140px;
    }

    .pj-category__circle {
        width: 108px;
        height: 108px;
    }

    .pj-category__circle img {
        width: 64px;
        height: 64px;
    }

    .pj-home .pj-category__label {
        font-size: 19px;
    }

    /* Bestsellers: heading above a single scrolling row of chips */
    .pj-best__head,
    .pj-insta__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 32px;
    }

    .pj-chips {
        flex-wrap: nowrap;
        max-width: calc(100% + 2 * var(--pj-gutter));
        margin: 0 calc(-1 * var(--pj-gutter));
        padding: 0 var(--pj-gutter);
        overflow-x: auto;
        scrollbar-width: none;
    }

    .pj-chips::-webkit-scrollbar {
        display: none;
    }

    .pj-home .pj-chip {
        flex-shrink: 0;
    }

    .pj-best__rail {
        margin: -20px calc(-1 * var(--pj-gutter));
        padding: 20px var(--pj-gutter);
        scroll-padding: 0 var(--pj-gutter);
    }

    .pj-product {
        flex-basis: 280px;
    }

    .pj-best__foot {
        margin-top: 32px;
    }

    /* Sterling: copy on top, two cards side by side */
    .pj-sterling__copy {
        max-width: none;
    }

    /* Occasions, reviews: horizontal rails that bleed to the screen edge */
    .pj-occasions__grid,
    .pj-reviews__grid {
        display: flex;
        gap: 16px;
        margin: 0 calc(-1 * var(--pj-gutter));
        padding: 0 var(--pj-gutter);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 var(--pj-gutter);
        scrollbar-width: none;
    }

    .pj-occasions__grid::-webkit-scrollbar,
    .pj-reviews__grid::-webkit-scrollbar {
        display: none;
    }

    .pj-tile {
        flex: 0 0 320px;
        height: 400px;
        scroll-snap-align: start;
    }

    .pj-review {
        flex: 0 0 340px;
        scroll-snap-align: start;
    }

    .pj-why__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pj-insta__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pj-insta__grid li:nth-child(n+4) {
        display: none;
    }

    .pj-visit__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 40px;
    }

    .pj-visit__map {
        flex-basis: auto;
        height: 380px;
    }

    .pj-newsletter__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 28px;
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .pj-newsletter__form-wrap {
        flex-basis: auto;
    }

    .pj-footer__cols {
        flex-wrap: wrap;
        gap: 40px 32px;
    }

    .pj-footer__brand {
        flex-basis: 100%;
    }

    .pj-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---------- Mobile (Figma 390 frame) ---------- */
@media (max-width: 767px) {
    :root {
        --pj-gutter: 20px;
        --pj-section-y: 56px;
    }

    .pj-only-mobile {
        display: inline;
    }

    .pj-hide-mobile {
        display: none !important;
    }

    /* Announcement: one line */
    .pj-announce__track > :nth-child(n+4) {
        display: none;
    }

    .pj-announce__track {
        gap: 6px;
    }

    /* Header */
    .pj-header {
        height: 64px;
    }

    .pj-header__logo img {
        width: 131px;
    }

    .pj-header__actions {
        gap: 18px;
    }

    .pj-home .pj-header__wish,
    .pj-home .pj-header__account {
        display: none;
    }

    /* Section headings sit left on mobile */
    .pj-heading--center {
        align-items: flex-start;
        text-align: left;
        margin-bottom: 28px;
    }

    .pj-why .pj-heading--center,
    .pj-reviews .pj-heading--center {
        margin-bottom: 28px;
    }

    .pj-home .pj-heading__title {
        font-size: 32px;
    }

    /* Hero */
    .pj-hero__inner {
        gap: 36px;
        padding-top: 36px;
        padding-bottom: 48px;
    }

    .pj-hero__copy {
        gap: 20px;
    }

    .pj-home .pj-hero__title {
        font-size: 42px;
        line-height: 1.1;
    }

    .pj-home .pj-hero__title span {
        white-space: normal;
    }

    .pj-home .pj-hero__lead {
        font-size: 16px;
    }

    .pj-hero__ctas {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }

    /* Spread across the width; each divider sits 14px before its stat */
    .pj-hero__stats {
        justify-content: space-between;
        gap: 0;
    }

    .pj-hero__stat + .pj-hero__stat {
        padding-left: 14px;
    }

    .pj-hero__stat + .pj-hero__stat::before {
        left: 0;
    }

    .pj-hero__visual {
        width: 100%;
        max-width: 350px;
    }

    /* Categories */
    .pj-categories__list {
        gap: 14px;
    }

    .pj-categories__list > li {
        flex-basis: 90px;
    }

    .pj-category {
        gap: 10px;
    }

    .pj-category__ring {
        padding: 4.5px;
    }

    .pj-category__circle {
        width: 74px;
        height: 74px;
    }

    .pj-category__circle img {
        width: 45px;
        height: 45px;
    }

    .pj-home .pj-category__initial {
        font-size: 36px;
    }

    .pj-home .pj-category__label {
        font-size: 15px;
        white-space: nowrap;
    }

    /* Bestsellers */
    .pj-best__head,
    .pj-insta__head {
        gap: 12px;
        margin-bottom: 24px;
    }

    .pj-best__list {
        gap: 12px;
    }

    .pj-product {
        flex-basis: 232px;
        border-radius: 16px;
        box-shadow: 0 8px 25px rgba(59, 13, 15, 0.06);
    }

    .pj-product__media {
        height: auto;
        aspect-ratio: 232 / 246;
    }

    .pj-home .pj-product__badge {
        left: 13px;
        top: 13px;
        padding: 4px 8px;
        font-size: 8px;
        letter-spacing: 0.8px;
    }

    .pj-home .pj-product__wish {
        right: 11px;
        top: 11px;
        width: 30px;
        height: 30px;
    }

    .pj-product__wish .pj-icon,
    .pj-product__buy .pj-icon {
        width: 15px;
        height: 15px;
    }

    .pj-product__info {
        gap: 6.5px;
        padding: 16px;
    }

    .pj-home .pj-product__cat {
        font-size: 9px;
        letter-spacing: 1.6px;
    }

    .pj-home .pj-product__name {
        font-size: 16.5px;
    }

    .pj-home .pj-product__meta {
        font-size: 10.5px;
    }

    .pj-product__row {
        padding-top: 6.5px;
    }

    .pj-home .pj-product__price span {
        font-size: 15px;
    }

    .pj-home .pj-product__price s {
        font-size: 10.5px;
    }

    .pj-home .pj-product__buy {
        width: 33px;
        height: 33px;
    }

    .pj-best__foot {
        margin-top: 24px;
    }

    .pj-arrows {
        display: none;
    }

    .pj-best__foot .pj-btn {
        flex: 1 1 auto;
    }

    /* Sterling */
    .pj-home .pj-sterling__title {
        font-size: 32px;
    }

    .pj-sterling__inner {
        gap: 32px;
    }

    .pj-sterling__cards {
        flex-direction: column;
        gap: 16px;
    }

    .pj-metal-card {
        flex: none;
        min-height: 0;
        padding: 28px 24px;
    }

    /* Occasions */
    .pj-occasions__grid {
        gap: 12px;
    }

    .pj-tile {
        flex-basis: 300px;
        height: 359px;
        border-radius: 20px;
    }

    .pj-tile__copy {
        left: 22px;
        right: 22px;
        bottom: 22px;
        gap: 6px;
    }

    .pj-home .pj-tile__title {
        font-size: 25px;
    }

    .pj-home .pj-tile__text,
    .pj-home .pj-tile .pj-link {
        font-size: 11px;
    }

    /* Why choose: icon beside text */
    .pj-why__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .pj-feature {
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
        padding: 20px 18px;
    }

    .pj-feature__icon {
        flex-shrink: 0;
        width: 44px;
        height: 44px;
    }

    .pj-feature__icon .pj-icon {
        width: 20px;
        height: 20px;
    }

    .pj-feature__body {
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
    }

    .pj-home .pj-feature__title {
        font-size: 20px;
    }

    /* Reviews */
    .pj-home .pj-reviews__summary {
        flex-direction: column;
        gap: 4px;
        margin-bottom: 28px;
        padding: 10px 24px;
        text-align: center;
    }

    .pj-reviews__grid {
        gap: 12px;
    }

    .pj-review {
        flex-basis: 300px;
        padding: 25px;
    }

    /* Instagram: scrolling strip */
    .pj-insta {
        padding-top: var(--pj-section-y);
    }

    .pj-insta__grid {
        display: flex;
        gap: 8px;
        margin: 0 calc(-1 * var(--pj-gutter));
        padding: 0 var(--pj-gutter);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 var(--pj-gutter);
        scrollbar-width: none;
    }

    .pj-insta__grid::-webkit-scrollbar {
        display: none;
    }

    .pj-insta__grid li,
    .pj-insta__grid li:nth-child(n+4) {
        display: block;
        flex: 0 0 160px;
        scroll-snap-align: start;
    }

    .pj-insta__grid a {
        height: 204px;
    }

    /* Visit */
    .pj-visit__inner {
        gap: 32px;
    }

    .pj-visit__copy {
        gap: 18px;
    }

    .pj-visit__list {
        gap: 18px;
    }

    .pj-visit__ctas {
        flex-direction: column;
        gap: 12px;
    }

    .pj-visit__map {
        height: 240px;
    }

    /* Newsletter: input and button stay on one row */
    .pj-newsletter__inner {
        gap: 30px;
        padding: 48px var(--pj-gutter);
    }

    .pj-home .pj-newsletter__title {
        font-size: 32px;
    }

    .pj-newsletter__form {
        padding: 6px 6px 6px 16px;
    }

    .pj-home .pj-newsletter__form .pj-btn {
        padding: 0 20px;
    }

    /* Footer */
    .pj-footer__inner {
        padding: 48px var(--pj-gutter) 40px;
    }

    .pj-footer__cols {
        gap: 32px 24px;
    }

    .pj-footer__col {
        flex: 0 0 calc(50% - 12px);
    }

    .pj-footer__divider {
        margin: 32px 0;
    }

    /* WhatsApp: round button */
    .pj-home .pj-whatsapp {
        right: 20px;
        bottom: 24px;
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
    }

    .pj-whatsapp span {
        display: none;
    }
}

@media (max-width: 399px) {
    .pj-home .pj-eyebrow {
        letter-spacing: 2px;
    }

    .pj-home .pj-hero__stat dt {
        font-size: 26px;
    }

    .pj-home .pj-hero__stat dd {
        font-size: 12px;
    }
}

@media (max-width: 359px) {
    .pj-home .pj-hero__title {
        font-size: 36px;
    }

    .pj-product,
    .pj-tile,
    .pj-review {
        flex-basis: 84%;
    }
}



/* ---------- Bestseller category filters (Figma "Categories" images) ---------- */
.pj-home .pj-best__head {
    margin-bottom: 32px;
}

.pj-catfilters {
    display: flex;
    gap: 24px;
    margin: -8px 0 32px;
    padding: 8px 0 4px;
    scroll-snap-type: x proximity;
}

.pj-home .pj-catfilter {
    flex: 0 0 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--pj-ink);
    scroll-snap-align: start;
}

.pj-catfilter__ring {
    display: flex;
    padding: 4px;
    border: 1px solid rgba(184, 137, 59, 0.6);
    border-radius: 50%;
    transition: border-color 0.2s var(--pj-ease), box-shadow 0.2s var(--pj-ease);
}

.pj-catfilter__circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pj-maroon-soft) 0%, var(--pj-maroon-deep) 100%);
    color: var(--pj-gold-light);
    transition: transform 0.3s var(--pj-ease), opacity 0.2s var(--pj-ease);
}

.pj-catfilter__circle img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.pj-home .pj-catfilter .pj-category__initial {
    font-size: 34px;
}

.pj-home .pj-catfilter__label {
    position: relative;
    padding-bottom: 6px;
    font-family: var(--pj-serif);
    font-weight: 500;
    font-size: 17px;
    line-height: 1.1;
    white-space: nowrap;
    color: var(--pj-muted);
    transition: color 0.2s var(--pj-ease);
}

.pj-catfilter:hover .pj-catfilter__ring {
    border-color: var(--pj-gold);
}

.pj-catfilter:hover .pj-catfilter__circle {
    transform: scale(1.05);
}

.pj-catfilter.is-active .pj-catfilter__ring {
    border-color: var(--pj-gold);
    box-shadow: 0 0 0 1px var(--pj-gold);
}

.pj-home .pj-catfilter.is-active .pj-catfilter__label {
    color: var(--pj-maroon);
}

.pj-catfilter.is-active .pj-catfilter__label::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 18px;
    height: 2px;
    background: var(--pj-gold);
    transform: translateX(-50%);
}

@media (max-width: 1023px) {
    .pj-catfilters {
        margin-left: calc(-1 * var(--pj-gutter));
        margin-right: calc(-1 * var(--pj-gutter));
        padding-left: var(--pj-gutter);
        padding-right: var(--pj-gutter);
        scroll-padding: 0 var(--pj-gutter);
    }

    .pj-home .pj-best__head {
        margin-bottom: 24px;
    }
}

@media (max-width: 767px) {
    .pj-catfilters {
        gap: 14px;
        margin-bottom: 24px;
    }

    .pj-home .pj-catfilter {
        flex-basis: 72px;
        gap: 8px;
    }

    .pj-catfilter__ring {
        padding: 3px;
    }

    .pj-catfilter__circle {
        width: 58px;
        height: 58px;
    }

    .pj-catfilter__circle img {
        width: 35px;
        height: 35px;
    }

    .pj-catfilter__circle .pj-icon {
        width: 26px;
        height: 26px;
    }

    .pj-home .pj-catfilter .pj-category__initial {
        font-size: 28px;
    }

    .pj-home .pj-catfilter__label {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pj-home *,
    .pj-home *::before,
    .pj-home *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Wishlist / account links live in the drawer only on small screens */
.pj-nav__item--drawer {
    display: none;
}

@media (max-width: 767px) {
    .pj-nav__item--drawer {
        display: block;
    }
}

/* In-page link targets stop below the sticky header (see js/home-v2.js). */
.pj-home main [id] {
    scroll-margin-top: calc(var(--pj-header-bottom, 84px) + 16px);
}

.pj-home [tabindex="-1"]:focus {
    outline: none;
}

/* =====================================================================
   Mobile menu drawer (Figma: Menu Drawer / Open) – partials/pj_header.php
   ===================================================================== */
.pj-drawer[hidden] {
    display: none;
}

.pj-drawer {
    position: fixed;
    inset: 0;
    z-index: 1000; /* above the sticky header (300) and WhatsApp button (250) */
}

.pj-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28, 20, 20, 0.45);
    opacity: 0;
    transition: opacity 0.3s var(--pj-ease);
}

.pj-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: min(344px, 88vw);
    overflow: hidden;
    border-radius: 24px 0 0 24px;
    background: var(--pj-ivory);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.25);
    transform: translateX(100%);
    transition: transform 0.3s var(--pj-ease);
}

.pj-drawer.is-open .pj-drawer__backdrop { opacity: 1; }
.pj-drawer.is-open .pj-drawer__panel { transform: none; }

.pj-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    height: 64px;
    padding: 0 16px 0 20px;
    background: var(--pj-maroon);
}

.pj-drawer__logo img {
    display: block;
    width: 131px;
    height: auto;
}

.pj-home .pj-drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.pj-drawer__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1 1 auto;
    min-height: 0;
    padding: 16px 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.pj-home .pj-drawer__account {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--pj-ink);
}

.pj-drawer__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 1px solid #c9a25a;
    border-radius: 50%;
    background: var(--pj-sand);
    font-weight: 600;
    font-size: 14px;
    color: var(--pj-maroon);
}

.pj-drawer__hello {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.pj-drawer__hello strong {
    overflow: hidden;
    font-family: var(--pj-serif);
    font-weight: 500;
    font-size: 22px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pj-drawer__hello small {
    font-weight: 500;
    font-size: 12px;
    color: var(--pj-gold-text);
}

.pj-drawer__account > .pj-icon {
    flex-shrink: 0;
    color: var(--pj-muted);
}

/* css/style.css styles every <form> as a right-aligned column – reset here. */
.pj-home form.pj-drawer__search {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    align-content: stretch;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--pj-line);
    border-radius: 999px;
    background: #fff;
    color: var(--pj-muted);
}

.pj-drawer__search:focus-within {
    border-color: var(--pj-maroon);
}

.pj-home .pj-drawer__search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: var(--pj-sans);
    font-size: 13px;
    color: var(--pj-ink);
    outline: 0;
}

.pj-drawer__search input::placeholder {
    color: #9a8c86;
}

.pj-home .pj-drawer__nav {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pj-drawer__nav > li {
    border-bottom: 1px solid var(--pj-line);
}

.pj-drawer__nav > li:last-child {
    border-bottom: 0;
}

.pj-home .pj-drawer__nav > li > a,
.pj-home .pj-drawer__nav > li > button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 0;
    border: 0;
    background: transparent;
    font-family: var(--pj-sans);
    font-weight: 500;
    font-size: 15px;
    color: var(--pj-ink);
    text-align: left;
    cursor: pointer;
}

.pj-drawer__nav .pj-icon {
    flex-shrink: 0;
    color: var(--pj-muted);
    transition: transform 0.2s var(--pj-ease);
}

.pj-home .pj-drawer__nav > li > a[aria-current],
.pj-home .pj-drawer__group.is-open > button {
    font-weight: 600;
    color: var(--pj-maroon);
}

.pj-drawer__group.is-open > button .pj-icon {
    transform: rotate(180deg);
    color: var(--pj-maroon);
}

.pj-home .pj-drawer__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 2px 0 14px;
    list-style: none;
}

.pj-drawer__chips[hidden] {
    display: none;
}

.pj-home .pj-drawer__chips a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px 7px 12px;
    border: 1px solid var(--pj-line);
    border-radius: 999px;
    background: #fff;
    font-weight: 500;
    font-size: 12px;
    color: var(--pj-ink);
}

.pj-drawer__chips small {
    font-size: 10px;
    color: #9a8c86;
}

.pj-home .pj-drawer__chips a.is-all {
    border-color: var(--pj-maroon);
    background: var(--pj-maroon);
    color: #fff;
}

.pj-drawer__chips a.is-all small {
    color: #c9a25a;
}

.pj-home .pj-drawer__quick {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pj-home .pj-drawer__quick a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 100%;
    padding: 10px 4px;
    border: 1px solid var(--pj-line);
    border-radius: 14px;
    background: #fff;
    font-weight: 500;
    font-size: 11px;
    color: var(--pj-ink);
    text-align: center;
}

.pj-drawer__quick .pj-icon {
    color: var(--pj-maroon);
}

.pj-drawer__foot {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
    padding: 16px 20px calc(20px + env(safe-area-inset-bottom));
    background: var(--pj-sand);
}

.pj-drawer__help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pj-home .pj-drawer__help p {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    font-size: 11px;
    color: var(--pj-muted);
}

.pj-drawer__help strong {
    font-weight: 600;
    font-size: 13px;
    color: var(--pj-ink);
}

.pj-home .pj-drawer__help ul {
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pj-home .pj-drawer__help ul a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--pj-line);
    border-radius: 50%;
    background: #fff;
    font-weight: 600;
    font-size: 9px;
    color: var(--pj-ink);
}

.pj-drawer__actions {
    display: flex;
    gap: 10px;
}

.pj-home .pj-drawer__call,
.pj-home .pj-drawer__wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1 1 0;
    padding: 11px 14px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 13px;
}

.pj-home .pj-drawer__call {
    border: 1.2px solid var(--pj-maroon);
    background: #fff;
    color: var(--pj-maroon);
}

.pj-home .pj-drawer__wa,
.pj-home .pj-drawer__wa:hover {
    border: 1.2px solid var(--pj-whatsapp);
    background: var(--pj-whatsapp);
    color: #fff;
}

/* The drawer replaces the old drop-down menu wherever the menu button shows. */
@media (max-width: 1099px) {
    .pj-header .pj-nav {
        display: none;
    }
}

@media (min-width: 1100px) {
    .pj-drawer {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pj-drawer__backdrop,
    .pj-drawer__panel,
    .pj-drawer__nav .pj-icon {
        transition: none;
    }
}

/* =====================================================================
   Search overlay (Figma: Search Overlay / Typing – desktop 173:46458,
   mobile 173:47151) – markup in partials/pj_header.php, logic in
   js/home-v2.js, data from search_suggest.php.
   ===================================================================== */
.pj-search[hidden] {
    display: none;
}

.pj-search {
    position: fixed;
    inset: 0;
    z-index: 1100; /* above the drawer (1000), sticky header and WhatsApp button */
}

.pj-search__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28, 20, 20, 0.4);
    opacity: 0;
    transition: opacity 0.25s var(--pj-ease);
}

.pj-search__sheet {
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
    border-radius: 0 0 28px 28px;
    background: var(--pj-ivory);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(-16px);
    opacity: 0;
    transition: transform 0.25s var(--pj-ease), opacity 0.25s var(--pj-ease);
}

.pj-search.is-open .pj-search__backdrop { opacity: 1; }
.pj-search.is-open .pj-search__sheet { transform: none; opacity: 1; }

body.pj-search-open {
    overflow: hidden;
}

.pj-search__announce {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 40px;
    height: 38px;
    overflow: hidden;
    background: var(--pj-maroon-deep);
    color: var(--pj-cream);
    font-size: 12px;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.pj-search__announce .pj-announce__dot {
    color: var(--pj-gold);
    font-size: 14px;
    letter-spacing: 0;
}

.pj-home .pj-search ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pj-home .pj-search :where(h2, p) {
    margin: 0;
}

/* ---------- Bar ---------- */
.pj-search__bar {
    flex-shrink: 0;
    background: var(--pj-maroon);
}

.pj-search__barin {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.pj-search__logo {
    flex-shrink: 0;
}

.pj-search__logo img {
    width: 159px;
    height: auto;
}

.pj-home .pj-search__form {
    display: flex;
    flex-direction: row;
    flex: 1 1 0;
    align-items: center;
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 14px 14px 14px 18px;
    border: 1.5px solid #c9a25a;
    border-radius: 999px;
    background: #fff;
}

.pj-search__form > .pj-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--pj-ink);
}

.pj-home .pj-search__form input {
    flex: 1 1 0;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    box-shadow: none;
    color: var(--pj-ink);
    caret-color: var(--pj-maroon);
    font-size: 16px;
    line-height: 24px;
    -webkit-appearance: none;
    appearance: none;
}

.pj-search__form input::placeholder {
    color: var(--pj-faint);
}

.pj-search__form input::-webkit-search-cancel-button,
.pj-search__form input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.pj-home .pj-search__clear {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--pj-sand);
    color: var(--pj-muted);
    cursor: pointer;
}

.pj-search__clear[hidden] {
    display: none;
}

.pj-search__clear .pj-icon {
    width: 14px;
    height: 14px;
}

.pj-search__esc {
    flex-shrink: 0;
    padding: 2px 6px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    background: transparent;
    box-shadow: none;
    color: #fff;
    font-family: var(--pj-sans);
    font-size: 11px;
    font-weight: 500;
    line-height: normal;
}

.pj-home .pj-search__close,
.pj-home .pj-search__back,
.pj-home .pj-search__cancel {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.pj-search__esc + .pj-search__close {
    margin-left: -32px; /* Figma: Esc + close sit 8px apart in one group */
}

.pj-search__back,
.pj-search__cancel {
    display: none !important;
}

.pj-search__back {
    width: 32px;
    height: 32px;
}

.pj-search__cancel {
    font-size: 13px;
    font-weight: 500;
}

/* ---------- Panel ---------- */
.pj-search__panel {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.pj-search__grid {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding-top: 36px;
    padding-bottom: 28px;
}

.pj-search__col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.pj-search__col--sugs { flex: 0 0 256px; }
.pj-search__col--recent { flex: 0 0 236px; }
.pj-search__col--products { flex: 1 1 0; }

.pj-search__sec {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pj-search__sec[hidden] {
    display: none;
}

.pj-search__sec + .pj-search__sec {
    margin-top: -6px; /* Figma: second heading sits 18px under the list */
}

.pj-search__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pj-home .pj-search__label {
    margin: 0;
    color: var(--pj-gold-text);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    line-height: normal;
    text-transform: uppercase;
}

.pj-home .pj-search__link {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--pj-maroon);
    font-size: 12px;
    font-weight: 500;
    line-height: normal;
    white-space: nowrap;
    cursor: pointer;
}

.pj-search__link:hover {
    text-decoration: underline;
}

.pj-search__all-m { display: none; }

/* Suggestions and recent searches */
.pj-search__opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-radius: 8px;
    color: var(--pj-muted);
    font-size: 15px;
    line-height: normal;
}

.pj-search__opt img {
    flex-shrink: 0;
}

.pj-search__opt-text {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pj-search__opt b {
    color: var(--pj-ink);
    font-weight: 600;
}

.pj-search__opt:hover .pj-search__opt-text,
.pj-search__opt.is-active .pj-search__opt-text {
    color: var(--pj-ink);
}

.pj-search__opt.is-active {
    background: var(--pj-sand);
    box-shadow: -8px 0 0 var(--pj-sand), 8px 0 0 var(--pj-sand);
}

.pj-search__recent li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pj-search__recent .pj-search__opt {
    flex: 1 1 0;
    min-width: 0;
    font-size: 14px;
}

.pj-home .pj-search__remove {
    display: flex;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.pj-search__recent .pj-search__clock-sm { display: none; }

/* Chips */
.pj-search__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pj-search__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 8px 14px;
    border-radius: 999px;
    background: var(--pj-sand);
    color: var(--pj-maroon);
    font-size: 13px;
    font-weight: 500;
    line-height: normal;
    white-space: nowrap;
}

.pj-search__chip small {
    color: var(--pj-gold-text);
    font-size: 11px;
}

.pj-search__chip--trend {
    gap: 6px;
    padding: 7px 14px 7px 12px;
    border: 1px solid var(--pj-line);
    background: #fff;
    color: var(--pj-ink);
    font-size: 12px;
}

.pj-search__chip:hover,
.pj-search__chip.is-active {
    border-color: var(--pj-gold);
    box-shadow: 0 0 0 1px var(--pj-gold);
}

/* Product results */
.pj-search__col--products .pj-search__sec {
    gap: 14px;
}

.pj-search__products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pj-search__product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 10px 10px;
    border: 1px solid var(--pj-line);
    border-radius: 14px;
    background: #fff;
    transition: border-color 0.2s var(--pj-ease), box-shadow 0.2s var(--pj-ease);
}

.pj-search__product:hover,
.pj-search__product.is-active {
    border-color: var(--pj-gold);
    box-shadow: var(--pj-shadow-card);
}

.pj-home .pj-search__product img {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    background: var(--pj-card-bg);
    object-fit: cover;
}

.pj-search__pinfo {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    line-height: normal;
}

.pj-search__pcat {
    color: var(--pj-gold-text);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.pj-home .pj-search__pname {
    overflow: hidden;
    color: var(--pj-ink);
    font-family: var(--pj-serif);
    font-size: 17px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pj-search__pprice {
    color: var(--pj-maroon);
    font-size: 13px;
    font-weight: 600;
}

.pj-home .pj-search__none {
    color: var(--pj-muted);
    font-size: 14px;
    line-height: 1.6;
}

.pj-search__none b {
    color: var(--pj-ink);
    font-weight: 600;
}

.pj-search__none[hidden] {
    display: none;
}

/* Keyboard hint */
.pj-home .pj-search__hints {
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    gap: 16px;
    margin: 0;
    padding: 14px 20px 18px;
    border-top: 1px solid var(--pj-line);
    color: #9a8c86;
    font-size: 12px;
    line-height: normal;
}

.pj-search__hints b {
    margin-right: 6px;
    font-weight: 400;
}

/* Mobile "See all" bar */
.pj-search__foot {
    flex-shrink: 0;
    padding: 12px 20px 20px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--pj-line);
    background: #fff;
}

.pj-search__foot[hidden] {
    display: none;
}

.pj-home .pj-search__see {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 999px;
    background: var(--pj-maroon);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
    text-align: center;
}

.pj-home .pj-search__see:hover {
    background: var(--pj-maroon-soft);
    color: #fff;
}

.pj-search__see .pj-icon {
    flex-shrink: 0;
}

@media (max-width: 1199px) {
    .pj-search__products {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 1023px) {
    .pj-search__barin {
        gap: 24px;
    }

    .pj-search__grid {
        flex-wrap: wrap;
        gap: 32px 40px;
    }

    .pj-search__col--sugs,
    .pj-search__col--recent {
        flex: 1 1 220px;
    }

    .pj-search__col--products {
        flex: 1 1 100%;
    }

    .pj-search__products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- Phone: full-screen sheet ---------- */
@media (max-width: 767px) {
    .pj-search__sheet {
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        box-shadow: none;
    }

    .pj-search__announce,
    .pj-search__logo,
    .pj-search__esc,
    .pj-search__close,
    .pj-search__hints {
        display: none !important;
    }

    .pj-search__back,
    .pj-search__cancel {
        display: flex !important;
    }

    .pj-search__barin {
        gap: 10px;
        padding: 12px 16px 12px 12px;
    }

    .pj-home .pj-search__form {
        padding: 10px 14px 10px 18px;
    }

    .pj-search__form > .pj-icon {
        width: 18px;
        height: 18px;
    }

    .pj-home .pj-search__form input {
        font-size: 16px; /* 15px in Figma; 16px stops iOS zooming into the field */
        line-height: 23px;
    }

    .pj-search__grid {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 22px;
        padding: 20px;
    }

    /* Columns dissolve so sections can follow the mobile order. */
    .pj-search__col {
        display: contents;
    }

    .pj-search__sec[data-sec="suggestions"] { order: 1; gap: 2px; }
    .pj-search__none { order: 1; }
    .pj-search__sec[data-sec="products"] { order: 2; }
    .pj-search__sec[data-sec="recent"] { order: 3; gap: 10px; }
    .pj-search__sec[data-sec="trending"] { order: 4; gap: 10px; }
    .pj-search__sec[data-sec="categories"] { display: none; }

    .pj-search__sec + .pj-search__sec {
        margin-top: 0;
    }

    .pj-search__col--products .pj-search__sec {
        gap: 10px;
    }

    .pj-search__products {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .pj-search__products > li:nth-child(n+4) {
        display: none;
    }

    .pj-search__all-d { display: none; }
    .pj-search__all-m { display: inline; }
    .pj-search__all [aria-hidden] { display: none; }

    /* Recent searches become chips. */
    .pj-search__recent {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .pj-search__recent li {
        display: block;
    }

    .pj-search__recent .pj-search__opt {
        display: inline-flex;
        gap: 6px;
        max-width: 100%;
        padding: 7px 12px;
        border: 1px solid var(--pj-line);
        border-radius: 999px;
        background: #fff;
        color: var(--pj-ink);
        font-size: 12px;
        font-weight: 500;
    }

    .pj-search__recent .pj-search__opt.is-active {
        box-shadow: none;
        border-color: var(--pj-gold);
    }

    .pj-search__recent .pj-search__clock { display: none; }
    .pj-search__recent .pj-search__clock-sm { display: block; }
    .pj-search__recent .pj-search__remove { display: none; }
}

@media (min-width: 768px) {
    .pj-search__foot {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pj-search__backdrop,
    .pj-search__sheet {
        transition: none;
    }
}
