/* Home — professional shop directory */
.home-directory {
    --hd-ink: #1c1410;
    --hd-ink-soft: #3f342c;
    --hd-muted: #6f6258;
    --hd-line: #e6ddd3;
    --hd-paper: #f7f2ec;
    --hd-surface: #fffcf8;
    --hd-accent: #c2410c;
    --hd-accent-deep: #9a3412;
    --hd-gold: #c9a227;
    --hd-display: 'Fraunces', 'Playfair Display', Georgia, serif;
    --hd-sans: 'Source Sans 3', 'DM Sans', sans-serif;
    background: var(--hd-paper);
    color: var(--hd-ink);
    font-family: var(--hd-sans);
    min-height: 60vh;
}

/* Full-bleed hero */
.hd-hero {
    position: relative;
    min-height: min(38vh, 340px);
    display: flex;
    align-items: flex-start;
    padding: clamp(0.85rem, 2vw, 1.35rem) 0 clamp(1.5rem, 3vw, 2.25rem);
    overflow: hidden;
    color: #fff;
}

.hd-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hd-hero-photo {
    position: absolute;
    inset: 0;
    background-image:
        url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center 35%;
    transform: scale(1.04);
    animation: hd-hero- ken 18s ease-out forwards;
}

.hd-hero-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(28, 12, 8, 0.88) 0%, rgba(28, 12, 8, 0.72) 42%, rgba(28, 12, 8, 0.45) 72%, rgba(28, 12, 8, 0.55) 100%),
        linear-gradient(0deg, rgba(28, 12, 8, 0.75) 0%, transparent 42%);
}

.hd-hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08) 0, transparent 35%),
        radial-gradient(circle at 80% 60%, rgba(201, 162, 39, 0.12) 0, transparent 40%);
    pointer-events: none;
}

.hd-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1040px;
    width: 100%;
    animation: hd-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hd-brand {
    margin: 0 0 1rem;
    line-height: 0;
}

.hd-brand .refbite-logo--hero {
    height: clamp(140px, 28vw, 220px);
    width: auto;
    max-width: min(360px, 86vw);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 20px;
    padding: 0.55rem 0.75rem;
    box-sizing: content-box;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.28);
}

.hd-headline {
    margin: 0 0 0.75rem;
    font-family: var(--hd-sans);
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    font-weight: 500;
    letter-spacing: 0.01em;
    color: rgba(255, 248, 240, 0.92);
    max-width: 28ch;
}

.hd-lead {
    margin: 0 0 1.75rem;
    max-width: 34rem;
    color: rgba(255, 244, 230, 0.78);
    font-size: 1.02rem;
    line-height: 1.55;
    font-weight: 400;
}

/* Search bar */
.hd-search {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 1040px;
    animation: hd-rise 0.95s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hd-search-fields {
    display: grid;
    grid-template-columns: 1.05fr auto 1.2fr auto 1fr auto;
    align-items: stretch;
    gap: 0;
    width: 100%;
    background: rgba(255, 252, 248, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 16px;
    overflow: visible;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.hd-field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin: 0;
    padding: 0.85rem 1.1rem;
    min-width: 0;
}

.hd-field-suggest {
    position: relative;
}

.hd-suggest {
    position: absolute;
    left: 0.55rem;
    right: 0.55rem;
    top: calc(100% - 0.15rem);
    z-index: 40;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    background: #fffdf9;
    border: 1px solid rgba(28, 25, 23, 0.12);
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
    max-height: 260px;
    overflow-y: auto;
}

.hd-suggest-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
}

.hd-suggest-item:hover,
.hd-suggest-item.is-active {
    background: #f3eee6;
}

.hd-suggest-label {
    font-size: 0.92rem;
    font-weight: 650;
    color: #1c1917;
    line-height: 1.3;
}

.hd-suggest-label mark {
    background: #fde68a;
    color: inherit;
    border-radius: 2px;
    padding: 0 0.05em;
}

.hd-suggest-meta {
    font-size: 0.72rem;
    color: #78716c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hd-field > span {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hd-muted);
}

.hd-input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--hd-ink);
    font: inherit;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.15rem 0 0;
}

.hd-input::placeholder {
    color: #a89a8e;
    font-weight: 400;
}

.hd-field-food .hd-input {
    text-overflow: ellipsis;
}

.hd-search-divider {
    width: 1px;
    margin: 0.85rem 0;
    background: var(--hd-line);
}

.hd-search-btn {
    align-self: stretch;
    border: 0;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    cursor: pointer;
    background: var(--hd-accent);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0 1.6rem;
    transition: background 0.2s ease;
}

.hd-search-btn:hover {
    background: var(--hd-accent-deep);
}

.hd-clear {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 248, 240, 0.85);
    width: fit-content;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hd-clear:hover {
    color: #fff;
}

.hd-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.85rem 1.5rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hd-filter {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
    flex: 0 1 auto;
}

.hd-filter-label {
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 247, 237, 0.7);
}

.hd-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.hd-chip {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(15, 12, 10, 0.4);
    color: rgba(255, 247, 237, 0.88);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.45rem 0.85rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hd-chip:hover {
    border-color: rgba(251, 146, 60, 0.55);
    color: #fff;
    background: rgba(28, 18, 12, 0.55);
}

.hd-chip:focus-visible {
    outline: 2px solid rgba(251, 146, 60, 0.7);
    outline-offset: 2px;
}

.hd-chip.is-active {
    border-color: #fb923c;
    background: rgba(251, 146, 60, 0.92);
    color: #1c120a;
}

/* Results */
.hd-results {
    padding: clamp(1.5rem, 4vw, 2.5rem) 0 3rem;
}

#hd-results-body {
    /* Show full results list — no inner scroll pane */
    height: auto;
    overflow: visible;
}

.hd-results-body.is-loading,
#hd-results-body.is-loading {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.hd-results-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--hd-line);
}

.hd-results-head h2 {
    margin: 0 0 0.2rem;
    font-family: var(--hd-display);
    font-size: clamp(1.35rem, 2.8vw, 1.7rem);
    font-weight: 650;
    color: var(--hd-ink);
    letter-spacing: -0.02em;
}

.hd-results-meta {
    margin: 0;
    color: var(--hd-muted);
    font-size: 0.85rem;
}

.hd-shop-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, 350px);
    justify-content: start;
    gap: 1.15rem;
}

.hd-shop-card {
    width: 350px;
    max-width: 350px;
    background: var(--hd-surface);
    border: 1px solid var(--hd-line);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 28px rgba(28, 20, 16, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.hd-shop-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(28, 20, 16, 0.12);
}

.hd-shop-cover {
    position: relative;
    display: block;
    width: 100%;
    height: 180px;
    margin: 0;
    padding: 0;
    background: var(--hd-ink);
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
}

.hd-shop-cover-img {
    width: 100%;
    height: 180px;
    margin: 0;
    padding: 0;
    border: 0;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hd-shop-cover-fallback {
    width: 100%;
    height: 180px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #3f342c 0%, #1c1410 100%);
    font-family: var(--hd-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
}

.hd-shop-cover-fade {
    position: absolute;
    inset: auto 0 0;
    height: 55%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.72) 100%);
    pointer-events: none;
}

.hd-shop-cover-name {
    position: absolute;
    left: 0.9rem;
    right: 3.5rem;
    bottom: 0.85rem;
    margin: 0;
    font-family: var(--hd-sans);
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hd-shop-cover-rating {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 1;
    min-width: 2.35rem;
    height: 2.35rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: var(--hd-accent);
    color: #fff7ed;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    box-shadow: 0 4px 12px rgba(194, 65, 12, 0.4);
    font-weight: 800;
    line-height: 1;
}

.hd-shop-cover-rating-star {
    font-size: 0.62rem;
    line-height: 1;
}

.hd-shop-cover-rating-val {
    font-size: 0.72rem;
    letter-spacing: -0.02em;
}

.hd-shop-cover-rating--new {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--hd-ink-soft);
    box-shadow: none;
}

.hd-shop-body {
    margin-top: 0;
    padding: 0.85rem 0.95rem 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
}

.hd-shop-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: var(--hd-muted);
    line-height: 1.35;
}

.hd-shop-cuisines,
.hd-shop-loc {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hd-shop-cost,
.hd-shop-meta-right {
    flex: 0 0 auto;
    white-space: nowrap;
    font-weight: 600;
    color: var(--hd-ink-soft);
}

.hd-offer-pill {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.2rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    min-width: 0;
    overflow: hidden;
    isolation: isolate;
}

.hd-offer-pill > * {
    position: relative;
    z-index: 2;
}

.hd-offer-pill::after {
    content: '';
    position: absolute;
    top: -30%;
    left: -45%;
    width: 40%;
    height: 160%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(236, 253, 245, 0.85) 48%,
        rgba(134, 239, 172, 0.45) 52%,
        rgba(255, 255, 255, 0) 70%,
        transparent 100%
    );
    transform: skewX(-18deg) translateX(0);
    animation: hd-offer-pill-shine 2.6s ease-in-out infinite;
}

@keyframes hd-offer-pill-shine {
    0%, 12% {
        transform: skewX(-18deg) translateX(-40%);
        opacity: 0;
    }
    22% {
        opacity: 1;
    }
    52% {
        transform: skewX(-18deg) translateX(340%);
        opacity: 0.95;
    }
    60%, 100% {
        transform: skewX(-18deg) translateX(360%);
        opacity: 0;
    }
}

.hd-offer-pill--primary {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #ecfdf5;
    border: 1px solid rgba(21, 128, 61, 0.4);
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.28);
    animation: hd-offer-glow 2.6s ease-in-out infinite;
}

.hd-offer-pill--primary:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
}

@keyframes hd-offer-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.15), 0 2px 8px rgba(21, 128, 61, 0.25); }
    50% { box-shadow: 0 0 16px 3px rgba(34, 197, 94, 0.5), 0 2px 10px rgba(21, 128, 61, 0.35); }
}

.hd-offer-pill-ico {
    flex: 0 0 auto;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: rgba(236, 253, 245, 0.22);
    color: #ecfdf5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
}

.hd-offer-pill-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hd-offer-pill-more {
    flex: 0 0 auto;
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.95;
    white-space: nowrap;
    color: #d1fae5;
}

.hd-offer-pill--secondary {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    box-shadow: 0 1px 6px rgba(16, 185, 129, 0.15);
    animation: hd-offer-glow-soft 2.6s ease-in-out infinite;
}

.hd-offer-pill--secondary::after {
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 28%,
        rgba(255, 255, 255, 0.9) 48%,
        rgba(167, 243, 208, 0.65) 52%,
        rgba(255, 255, 255, 0) 72%,
        transparent 100%
    );
    animation: hd-offer-pill-shine 3s ease-in-out infinite;
    animation-delay: 0.55s;
}

@keyframes hd-offer-glow-soft {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.12), 0 1px 6px rgba(5, 150, 105, 0.1); }
    50% { box-shadow: 0 0 14px 2px rgba(16, 185, 129, 0.4), 0 1px 8px rgba(5, 150, 105, 0.18); }
}

.hd-offer-extra {
    margin: 0.05rem 0 0;
    font-size: 0.8rem;
    font-weight: 650;
    color: #059669;
    line-height: 1.35;
}

@media (prefers-reduced-motion: reduce) {
    .hd-offer-pill::after,
    .hd-offer-pill--primary,
    .hd-offer-pill--secondary {
        animation: none !important;
    }
}

.hd-shop-actions {
    display: flex;
    gap: 0.45rem;
    margin-top: auto;
    padding-top: 0.45rem;
}

/* Legacy marquee offer strip — unused on new cards */
.hd-card-offers { display: none; }


/* Per-card offers — slow right→left slide (no scrollbar) */
.hd-card-offers {
    position: relative;
    overflow: hidden;
    background: linear-gradient(100deg, #1a1410 0%, #2a1c14 48%, #3d2418 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hd-card-offers-viewport {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.hd-card-offers-track {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: max-content;
    padding: 0.55rem 0.85rem;
    will-change: transform;
}

.hd-card-offers:not(.is-single) .hd-card-offers-track {
    animation: hd-offers-rtl 32s linear infinite;
}

.hd-card-offers:not(.is-single):hover .hd-card-offers-track {
    animation-play-state: paused;
}

.hd-card-offers.is-single .hd-card-offers-track {
    width: 100%;
    justify-content: center;
}

.hd-card-offer {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: min(78vw, 280px);
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #faf6f1;
    white-space: nowrap;
}

.hd-card-offer-deal {
    font-family: var(--hd-display);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #f0c14b;
    flex-shrink: 0;
}

.hd-card-offer-title {
    font-size: 0.74rem;
    font-weight: 550;
    letter-spacing: 0.01em;
    color: rgba(250, 246, 241, 0.9);
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.hd-card-offer-tag {
    flex-shrink: 0;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #1c1410;
    background: #f0c14b;
    border-radius: 999px;
    padding: 0.18rem 0.42rem;
}

@keyframes hd-offers-rtl {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .hd-card-offers:not(.is-single) .hd-card-offers-track {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
    }

    .hd-card-offers-viewport {
        mask-image: none;
        -webkit-mask-image: none;
        overflow-x: auto;
    }
}

/* Best offers — horizontal scroll rail */
.hd-offers-rail {
    margin: 0 0 1rem;
}

.hd-offers-rail:not(:has(.hd-offer-slide)) {
    display: none;
}

.hd-offers-rail-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

.hd-offers-rail-head h3 {
    margin: 0;
    font-family: var(--hd-display);
    font-size: 1.15rem;
    font-weight: 650;
    color: var(--hd-ink);
    letter-spacing: -0.02em;
}

.hd-offers-rail-head p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--hd-muted);
}

.hd-offers-track {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.15rem 0.1rem 0.55rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.hd-offers-track::-webkit-scrollbar {
    height: 5px;
}

.hd-offers-track::-webkit-scrollbar-thumb {
    background: #d6c4b2;
    border-radius: 999px;
}

.hd-offer-slide {
    flex: 0 0 min(72vw, 220px);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    text-decoration: none;
    color: #fff8f0;
    background: linear-gradient(135deg, #1c0c08 0%, #3d2318 100%);
    border: 1px solid rgba(240, 193, 75, 0.28);
    min-height: 92px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.hd-offer-slide:hover {
    transform: translateY(-2px);
    border-color: rgba(240, 193, 75, 0.55);
    color: #fff8f0;
}

.hd-offer-slide-deal {
    font-family: var(--hd-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: #f0c14b;
    line-height: 1.15;
}

.hd-offer-slide-shop {
    font-size: 0.78rem;
    font-weight: 700;
    opacity: 0.95;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hd-offer-slide-title {
    font-size: 0.72rem;
    opacity: 0.75;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hd-offer-slide-tag {
    align-self: flex-start;
    margin-top: 0.2rem;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1a1204;
    background: #f0c14b;
    border-radius: 3px;
    padding: 0.15rem 0.35rem;
}

/* Filter / rail offer chip (legacy) */
.hd-rail-offer-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #9a3412;
    background: #ffedd5;
    border: 1px solid #fdba74;
    border-radius: 4px;
    padding: 0.12rem 0.38rem;
    white-space: nowrap;
}

.hd-best-offer {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem 0.85rem;
    padding: 0.7rem 1.15rem;
    background: linear-gradient(105deg, #1c0c08 0%, #2f1810 55%, #3d2318 100%);
    color: #fff8f0;
    overflow: hidden;
    isolation: isolate;
}

.hd-best-offer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(240, 193, 75, 0.08) 40%,
        rgba(240, 193, 75, 0.16) 50%,
        rgba(240, 193, 75, 0.08) 60%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 0;
}

.hd-best-offer::after {
    content: '';
    position: absolute;
    top: -20%;
    left: -40%;
    width: 42%;
    height: 140%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 28%,
        rgba(255, 248, 220, 0.55) 48%,
        rgba(240, 193, 75, 0.35) 52%,
        rgba(255, 255, 255, 0) 72%,
        transparent 100%
    );
    transform: skewX(-18deg) translateX(0);
    animation: hd-best-offer-shine 2.8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.hd-best-offer-main,
.hd-best-label {
    position: relative;
    z-index: 2;
}

.hd-best-offer-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem 0.7rem;
    min-width: 0;
}

.hd-best-deal {
    font-family: var(--hd-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: #f0c14b;
    letter-spacing: -0.01em;
    text-shadow: 0 0 12px rgba(240, 193, 75, 0.35);
    animation: hd-deal-glow 2.8s ease-in-out infinite;
}

.hd-best-title {
    font-size: 0.88rem;
    font-weight: 500;
    opacity: 0.88;
    line-height: 1.3;
}

.hd-best-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a1204;
    background: #f0c14b;
    border-radius: 4px;
    padding: 0.28rem 0.5rem;
    white-space: nowrap;
    box-shadow: 0 0 0 0 rgba(240, 193, 75, 0.45);
    animation: hd-label-pulse 2.8s ease-in-out infinite;
}

@keyframes hd-best-offer-shine {
    0%, 18% {
        transform: skewX(-18deg) translateX(-30%);
        opacity: 0;
    }
    28% {
        opacity: 1;
    }
    55% {
        transform: skewX(-18deg) translateX(320%);
        opacity: 0.95;
    }
    62%, 100% {
        transform: skewX(-18deg) translateX(340%);
        opacity: 0;
    }
}

@keyframes hd-deal-glow {
    0%, 100% {
        text-shadow: 0 0 8px rgba(240, 193, 75, 0.25);
    }
    40%, 55% {
        text-shadow: 0 0 16px rgba(240, 193, 75, 0.65), 0 0 28px rgba(255, 220, 120, 0.35);
    }
}

@keyframes hd-label-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(240, 193, 75, 0);
    }
    40%, 55% {
        box-shadow: 0 0 12px 1px rgba(240, 193, 75, 0.55);
    }
}

.hd-shop-body {
    /* New listing card body — see rules above .hd-shop-cover */
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.85rem 0.95rem 0.95rem;
    flex: 1;
}

.hd-shop-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
}

.hd-shop-logo {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--hd-line);
    background: linear-gradient(145deg, #f3ebe1, #e8ddd0);
}

.hd-shop-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hd-shop-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: var(--hd-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hd-accent-deep);
    text-transform: uppercase;
}

.hd-shop-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.4rem;
    margin-bottom: 0.2rem;
}

.hd-shop-info h3 {
    margin: 0;
    font-family: var(--hd-display);
    font-size: 1rem;
    font-weight: 650;
    color: var(--hd-ink);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hd-fssai-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1a1204;
    background: linear-gradient(135deg, #c9a227 0%, #e8c547 45%, #b8860b 100%);
    border: 1px solid #d4af37;
    border-radius: 4px;
    padding: 0.2rem 0.45rem;
}

.hd-party-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 4px;
    padding: 0.18rem 0.42rem;
    border: 1px solid transparent;
    line-height: 1.2;
}

.hd-party-badge--yes {
    color: #14532d;
    background: #dcfce7;
    border-color: #86efac;
}

.hd-party-badge--no {
    color: #57534e;
    background: #f5f5f4;
    border-color: #d6d3d1;
}

/* Tiny handshake for Hosts parties */
.hd-party-shake {
    position: relative;
    width: 14px;
    height: 10px;
    flex-shrink: 0;
}

.hd-hand {
    position: absolute;
    top: 2px;
    width: 7px;
    height: 5px;
    border-radius: 2px 3px 2px 2px;
    background: #166534;
}

.hd-hand--left {
    left: 0;
    transform-origin: 90% 60%;
    animation: hdHandShakeL 1.1s ease-in-out infinite;
}

.hd-hand--right {
    right: 0;
    background: #15803d;
    border-radius: 3px 2px 2px 2px;
    transform-origin: 10% 60%;
    animation: hdHandShakeR 1.1s ease-in-out infinite;
}

.hd-hand::after {
    content: '';
    position: absolute;
    left: 1px;
    right: 1px;
    bottom: -2px;
    height: 2px;
    border-radius: 1px;
    background: inherit;
    opacity: 0.85;
}

.hd-tiffin-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.14rem 0.42rem;
    border-radius: 6px;
    border: 1px solid #86efac;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.2;
}

.hd-tiffin-badge--yes {
    color: #14532d;
    background: #dcfce7;
}

/* Tiny steaming tiffin for Tiffin badge */
.hd-tiffin-mini {
    position: relative;
    width: 14px;
    height: 12px;
    flex-shrink: 0;
}

.hd-tiffin-steam {
    position: absolute;
    bottom: 8px;
    width: 2px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(22, 101, 52, 0.55), transparent);
    opacity: 0;
    animation: hdTiffinSteam 1.6s ease-in-out infinite;
}

.hd-tiffin-steam--a { left: 3px; animation-delay: 0s; }
.hd-tiffin-steam--b { left: 6px; height: 6px; animation-delay: 0.25s; }
.hd-tiffin-steam--c { left: 9px; animation-delay: 0.5s; }

.hd-tiffin-box {
    position: absolute;
    left: 1px;
    bottom: 0;
    width: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: hdTiffinFloat 2.4s ease-in-out infinite;
}

.hd-tiffin-lid {
    width: 11px;
    height: 2px;
    border-radius: 2px 2px 1px 1px;
    background: #16a34a;
    transform-origin: 50% 100%;
    animation: hdTiffinLid 2.4s ease-in-out infinite;
}

.hd-tiffin-body {
    width: 12px;
    height: 6px;
    margin-top: 1px;
    border-radius: 1px 1px 2px 2px;
    background: linear-gradient(180deg, #4ade80, #15803d);
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.25), inset -1px 0 0 rgba(255, 255, 255, 0.25);
}

@keyframes hdHandShakeL {
    0%, 100% { transform: rotate(-12deg) translateX(0); }
    50% { transform: rotate(8deg) translateX(1px); }
}

@keyframes hdHandShakeR {
    0%, 100% { transform: rotate(12deg) translateX(0); }
    50% { transform: rotate(-8deg) translateX(-1px); }
}

@keyframes hdTiffinSteam {
    0% { opacity: 0; transform: translateY(2px) scaleY(0.5); }
    35% { opacity: 0.75; }
    100% { opacity: 0; transform: translateY(-5px) scaleY(1); }
}

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

@keyframes hdTiffinLid {
    0%, 100% { transform: rotate(0deg); }
    45%, 55% { transform: rotate(-6deg) translateY(-1px); }
}

@media (prefers-reduced-motion: reduce) {
    .hd-hand--left,
    .hd-hand--right,
    .hd-tiffin-steam,
    .hd-tiffin-box,
    .hd-tiffin-lid {
        animation: none !important;
    }
}

.hd-party-gathering {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    color: #166534;
    font-weight: 600;
}

.hd-shop-about {
    margin: 0;
    color: var(--hd-ink-soft);
    font-size: 0.78rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hd-shop-address {
    margin: 0;
    color: var(--hd-muted);
    font-size: 0.82rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hd-shop-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(28, 20, 16, 0.08);
}

.hd-rating-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.18rem 0.4rem;
    border-radius: 5px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 0.72rem;
}

.hd-rating-chip strong {
    font-weight: 800;
    color: #9a3412;
}

.hd-rating-chip--empty {
    background: #f5f0ea;
    border-color: #e6ddd3;
    color: var(--hd-muted);
    font-weight: 600;
}

.hd-stars {
    font-size: 0.78rem;
    color: #d4a017;
    line-height: 1;
}

.hd-rating-count {
    font-weight: 600;
    color: #b45309;
    opacity: 0.85;
}

.hd-orders-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.18rem 0.4rem;
    border-radius: 5px;
    background: #f7f2ec;
    border: 1px solid var(--hd-line);
    color: var(--hd-muted);
    font-size: 0.72rem;
}

.hd-orders-chip strong {
    color: var(--hd-ink);
    font-weight: 700;
}

.hd-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-left: auto;
}

.hd-spec {
    font-size: 0.72rem;
    font-weight: 650;
    color: var(--hd-ink-soft);
    background: #fff;
    border: 1px solid var(--hd-line);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}

.hd-referral-box {
    margin-top: 0.1rem;
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 55%, #f7f2ec 100%);
    border: 1px solid #bbf7d0;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 0.55rem 0.75rem;
    align-items: center;
}

.hd-referral-box--compact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    padding: 0.35rem 0.55rem;
    grid-template-columns: none;
}

.hd-referral-box--compact .hd-referral-kicker {
    margin: 0;
}

.hd-referral-compact-stats {
    font-size: 0.7rem;
    color: #3f5d4a;
    font-weight: 600;
    line-height: 1.25;
}

.hd-referral-head {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
}

.hd-referral-kicker {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #166534;
}

.hd-referral-tag {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #14532d;
    background: #bbf7d0;
    border-radius: 999px;
    padding: 0.1rem 0.4rem;
}

.hd-referral-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.7rem;
    font-size: 0.72rem;
    color: #4b5563;
    line-height: 1.25;
}

.hd-referral-stats strong {
    color: #14532d;
    font-weight: 800;
    margin-left: 0.15rem;
}

.hd-referral-right {
    border-left: 1px solid rgba(22, 101, 52, 0.18);
    padding-left: 0.7rem;
    min-width: 0;
}

.hd-referral-how-label {
    display: block;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #166534;
    margin-bottom: 0.15rem;
}

.hd-referral-howto {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.35;
    color: #3f5d4a;
}

.hd-referral-howto strong {
    color: #14532d;
    font-weight: 800;
}

.hd-referral-note-small {
    margin: 0.3rem 0 0;
    font-size: 0.66rem;
    line-height: 1.3;
    color: #6b7280;
}

@media (max-width: 640px) {
    .hd-referral-box {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .hd-referral-right {
        border-left: 0;
        border-top: 1px solid rgba(22, 101, 52, 0.18);
        padding-left: 0;
        padding-top: 0.4rem;
    }
}

.hd-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.65rem 0.85rem;
    margin-top: 0.35rem;
    padding: 0.85rem 0.9rem;
    border-top: 1px solid rgba(28, 25, 23, 0.08);
    border-radius: 12px;
    background: linear-gradient(180deg, #fafaf9 0%, #f5f5f4 100%);
}

.hd-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    min-width: 0;
}

.hd-contact-icon {
    flex-shrink: 0;
    width: 1.35rem;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.35;
}

.hd-contact-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #78716c;
    margin-bottom: 0.08rem;
}

.hd-contact-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1c1917;
    line-height: 1.35;
    word-break: break-word;
}

.hd-contact-link {
    color: #b45309;
    text-decoration: none;
}

.hd-contact-link:hover {
    text-decoration: underline;
}

.hd-contact-sub {
    margin-top: 0.1rem;
    font-size: 0.72rem;
    color: #57534e;
    line-height: 1.35;
}

.hd-contact-yes {
    color: #166534;
}

.hd-contact-no {
    color: #78716c;
    font-weight: 500;
}

.hd-shop-actions {
    margin-top: auto;
    padding-top: 0.15rem;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.5rem;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.hd-customize-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    min-height: 34px;
    padding: 0.4rem 0.45rem;
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: #fff7ed;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    border: 0;
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.hd-customize-card-btn:hover {
    filter: brightness(1.06);
    color: #fff;
    transform: translateY(-1px);
}

.hd-shop-actions .hd-view-btn {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    min-height: 34px;
    padding: 0.4rem 0.35rem;
    font-size: 0.62rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
    line-height: 1.2;
    border-radius: 6px;
}

.hd-shop-actions .hd-view-btn--solo {
    flex: 1 1 100%;
}

.hd-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 34px;
    padding: 0.45rem 0.75rem;
    background: #0a0a0a;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    border: 1.5px solid #0a0a0a;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hd-view-btn:hover {
    background: #1c1c1c;
    border-color: #1c1c1c;
    color: #fff;
}

.hd-view-btn-outline {
    width: auto;
    background: transparent;
    color: var(--hd-ink);
    border-color: var(--hd-ink);
    cursor: pointer;
    font-family: inherit;
}

.hd-view-btn-outline:hover {
    background: #0a0a0a;
    border-color: #0a0a0a;
    color: #fff;
}

.hd-empty {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: var(--hd-surface);
    border: 1px solid var(--hd-line);
    border-radius: 14px;
}

.hd-empty h3 {
    margin: 0 0 0.4rem;
    font-family: var(--hd-display);
    font-size: 1.4rem;
    color: var(--hd-ink);
}

.hd-empty p {
    margin: 0 0 1.25rem;
    color: var(--hd-muted);
}

/* Owner CTA */
.hd-owner-cta {
    background:
        linear-gradient(120deg, #1c0c08 0%, #2a1812 55%, #3b2118 100%);
    color: #fff8f0;
    padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.hd-owner-cta-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.hd-owner-kicker {
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f0c14b;
}

.hd-owner-cta h2 {
    margin: 0 0 0.4rem;
    font-family: var(--hd-display);
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    font-weight: 650;
    color: #fff;
    letter-spacing: -0.02em;
}

.hd-owner-cta-copy p:last-child {
    margin: 0;
    max-width: 34rem;
    color: rgba(255, 244, 230, 0.72);
    font-size: 1rem;
    line-height: 1.5;
}

.hd-owner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 1.5rem;
    background: #f0c14b;
    color: #1a1204;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hd-owner-btn:hover {
    background: #e8c547;
    color: #1a1204;
    transform: translateY(-1px);
}

@keyframes hd-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hd-hero-ken {
    from { transform: scale(1.08); }
    to { transform: scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
    .hd-hero-photo,
    .hd-hero-inner,
    .hd-search,
    .hd-shop-card {
        animation: none;
        transition: none;
    }

    .hd-best-offer::after,
    .hd-best-deal,
    .hd-best-label {
        animation: none !important;
    }

    .hd-best-deal {
        text-shadow: none;
    }

    .hd-best-label {
        box-shadow: none;
    }
}

@media (max-width: 1100px) {
    .hd-shop-list {
        grid-template-columns: repeat(auto-fill, 350px);
        justify-content: start;
    }
}

@media (max-width: 900px) {
    .hd-shop-list {
        grid-template-columns: 350px;
        justify-content: center;
        gap: 1rem;
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .hd-shop-card {
        width: 350px;
    }

    .hd-shop-cover,
    .hd-shop-cover-img,
    .hd-shop-cover-fallback {
        width: 100%;
        height: 180px;
    }

    .hd-offer-slide {
        flex-basis: min(78vw, 200px);
    }

    .hd-hero {
        min-height: min(42vh, 360px);
        align-items: flex-start;
        padding-top: 1rem;
    }
}

@media (max-width: 1100px) {
    .hd-search-fields {
        grid-template-columns: 1fr;
    }

    .hd-search-divider {
        width: auto;
        height: 1px;
        margin: 0 1.1rem;
    }

    .hd-search-btn {
        display: block;
        width: 100%;
        min-height: 50px;
        border-radius: 0 0 16px 16px;
    }
}

@media (max-width: 720px) {
    .hd-search-fields {
        grid-template-columns: 1fr;
        border-radius: 18px;
    }

    .hd-search-divider {
        width: auto;
        height: 1px;
        margin: 0 1.1rem;
    }

    .hd-field {
        padding: 0.8rem 1rem;
    }

    .hd-search-btn {
        display: block;
        width: 100%;
        min-height: 50px;
        padding: 0.95rem 1.25rem;
        border-radius: 0 0 18px 18px;
    }

    .hd-suggest {
        border-radius: 12px;
        left: 0.65rem;
        right: 0.65rem;
    }

    #hd-results-body {
        height: auto;
        overflow: visible;
    }

    .hd-shop-top {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .hd-specs {
        margin-left: 0;
        width: 100%;
    }

    .hd-contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.55rem 0.6rem;
        padding: 0.75rem 0.7rem;
    }

    .hd-shop-actions {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .hd-customize-card-btn,
    .hd-shop-actions .hd-view-btn {
        flex: 0 0 auto;
        width: 100%;
        font-size: 0.8rem;
        letter-spacing: 0.03em;
        padding: 0.75rem 1rem;
    }

    .hd-owner-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hd-owner-btn {
        width: 100%;
    }
}

/* Side-by-side shop cards get narrow action rows — keep labels on one line */
@media (min-width: 901px) and (max-width: 1100px) {
    .hd-customize-card-btn,
    .hd-shop-actions .hd-view-btn {
        font-size: 0.68rem;
        padding: 0.6rem 0.4rem;
        letter-spacing: 0.01em;
    }
}

/* Customize Food Package — hero CTA + picker modal */
.hd-customize-cta {
    margin-top: 1.15rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
}
.hd-customize-btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.35rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 55%, #c2410c 100%);
    color: #fff7ed;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 750;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 28px rgba(194, 65, 12, 0.35);
    transition: transform 0.15s ease, filter 0.15s ease;
}
.hd-customize-btn:hover:not(:disabled) {
    filter: brightness(1.05);
    transform: translateY(-1px);
}
.hd-customize-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}
.hd-customize-hint {
    margin: 0;
    max-width: 34rem;
    font-size: 0.88rem;
    line-height: 1.4;
    color: rgba(255, 247, 237, 0.78);
}

.hd-customize-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(20, 12, 8, 0.62);
    backdrop-filter: blur(4px);
}
.hd-customize-overlay[hidden] {
    display: none !important;
}
.hd-customize-modal {
    position: relative;
    width: min(560px, 100%);
    max-height: min(86vh, 720px);
    overflow: auto;
    background: #fffcf8;
    color: #1c1410;
    border-radius: 16px;
    border: 1px solid #e6ddd3;
    padding: 1.35rem 1.25rem 1.2rem;
    box-shadow: 0 24px 60px rgba(28, 20, 16, 0.35);
}
.hd-customize-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: #f3ebe3;
    color: #1c1410;
    cursor: pointer;
    font: inherit;
}
.hd-customize-kicker {
    margin: 0 0 0.2rem;
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c2410c;
}
.hd-customize-modal h2 {
    margin: 0 0 0.35rem;
    font-family: var(--hd-display);
    font-size: 1.55rem;
    color: #1c1410;
}
.hd-customize-copy {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #6f6258;
}
.hd-customize-search {
    display: block;
    margin-bottom: 0.75rem;
}
.hd-customize-filter {
    width: 100%;
    min-height: 2.5rem;
    border: 1px solid #e6ddd3;
    border-radius: 10px;
    background: #fff;
    color: #1c1410;
    font: inherit;
    font-size: 0.92rem;
    padding: 0.55rem 0.8rem;
}
.hd-customize-filter:focus {
    outline: 2px solid rgba(234, 88, 12, 0.28);
    border-color: #fb923c;
}
.hd-customize-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.hd-customize-shop {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    padding: 0.65rem 0.7rem;
    border-radius: 12px;
    border: 1px solid #e6ddd3;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.hd-customize-shop:hover {
    border-color: rgba(234, 88, 12, 0.5);
    background: #fff7ed;
}
.hd-customize-shop.is-hidden {
    display: none;
}
.hd-customize-shop-logo {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 10px;
    overflow: hidden;
    background: #f3ebe3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 750;
    color: #9a3412;
}
.hd-customize-shop-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hd-customize-shop-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.hd-customize-shop-info strong {
    font-size: 0.98rem;
    color: #1c1410;
}
.hd-customize-shop-info small {
    font-size: 0.78rem;
    color: #6f6258;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hd-customize-shop-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.15rem;
}
.hd-customize-shop-meta em {
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 650;
    color: #9a3412;
    background: #ffedd5;
    border-radius: 999px;
    padding: 0.12rem 0.45rem;
}
.hd-customize-shop-go {
    font-size: 0.78rem;
    font-weight: 750;
    color: #c2410c;
    white-space: nowrap;
}
.hd-customize-empty {
    margin: 0.75rem 0 0;
    text-align: center;
    color: #6f6258;
    font-size: 0.9rem;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
