.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.wishlist-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 8px;
}

.wishlist-card-media {
    position: relative;
    height: 200px;
    background-color: #f4f4f4;
}

.wishlist-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wishlist-chip {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    font-size: .7rem;
    font-weight: 600;
    padding: .2rem .55rem;
    border-radius: 999px;
}

.wishlist-chip-bought {
    background-color: #e3f3ea;
    color: #2e8b57;
}

.wishlist-chip-private {
    background-color: #fff3cd;
    color: #856404;
}

.wishlist-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: .9rem 1rem 1rem;
    gap: .4rem;
}

.wishlist-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wishlist-card-meta {
    font-size: .8rem;
    font-weight: 600;
    color: #6c757d;
}

.wishlist-card-desc {
    font-size: .8rem;
    color: #6c757d;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wishlist-card-actions {
    margin-top: auto;
    padding: 0 1rem 1rem;
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
}

/* Neutral at rest so Remove doesn't introduce the only red on the page;
   each action only takes on colour when you actually interact with it. */
.wishlist-action-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    white-space: nowrap;
    font-size: .8rem;
    font-weight: 500;
    padding: .4rem .7rem;
    border-radius: 8px;
    border: 1px solid #e3e3e3;
    background: #fff;
    color: #495057;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.wishlist-action-btn:hover, .wishlist-action-btn:focus-visible {
    background-color: #fcead9;
    border-color: #eea343;
    color: #c2622a;
    text-decoration: none;
}

.wishlist-action-btn-danger:hover, .wishlist-action-btn-danger:focus-visible {
    background-color: #fbe6e3;
    border-color: #c94b3f;
    color: #c94b3f;
}

.wishlist-action-btn-primary {
    background: #eea343;
    border-color: #eea343;
    color: #fff;
}

.wishlist-action-btn-primary:hover, .wishlist-action-btn-primary:focus-visible {
    background-color: #c2622a;
    border-color: #c2622a;
    color: #fff;
}

/* Thin lines with rounded corners for the toolbar and Add-item CTAs,
   matching the card actions rather than a full pill shape. */
.wishlist-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    white-space: nowrap;
    font-size: .85rem;
    font-weight: 400;
    border-radius: 8px;
    border: 1px solid #e7e2da;
    background: #fff;
    color: #1f2328;
    padding: .55rem 1rem;
}

/* The site's bundled CSS predates Bootstrap's gap utilities (no
   .gap-* rules exist in site.min.css), so the toolbar's spacing is
   done directly here instead of relying on gap-2/gap-3/etc. The row
   is split into two nested groups purely so wrapping keeps each pair
   together (see the media query below) - column-gap must match the
   group gap exactly, or the gap between the two groups (Other Lists
   to Add item) looks different from the gap within each group. */
.wishlist-toolbar-row {
    column-gap: .375rem;
    row-gap: .5rem;
}

.wishlist-toolbar-group {
    gap: .375rem;
}

/* CTAs size to their own content normally; only once the toolbar
   wraps (mobile) do the two CTAs on each line stretch to fill it. */
@media (max-width: 576px) {
    .wishlist-toolbar-group {
        width: 100%;
    }

    .wishlist-toolbar-group > * {
        flex: 1;
    }

    .wishlist-toolbar-group .wishlist-pill {
        width: 100%;
    }
}

.wishlist-pill:hover, .wishlist-pill:focus-visible {
    border-color: #eea343;
    color: #1f2328;
    text-decoration: none;
}

.wishlist-pill-primary {
    background: #eea343;
    border-color: #eea343;
    color: #fff;
}

.wishlist-pill-primary:hover, .wishlist-pill-primary:focus-visible {
    background: #c2622a;
    border-color: #c2622a;
    color: #fff;
}

/* The heart stays brand-orange regardless of the pill's own (neutral)
   text colour, whether following (filled) or not (outline). */
.wishlist-pill .fa-heart {
    color: #eea343;
}

.wishlist-add-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 240px;
    border: 1.5px dashed #eea343;
    border-radius: 8px;
    background: #fff;
    color: #eea343;
    font-weight: 400;
    font-size: .9rem;
    text-decoration: none;
    transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.wishlist-add-card:hover, .wishlist-add-card:focus-visible {
    background-color: #fcead9;
    color: #c2622a;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(221,122,60,.22);
    transform: translateY(-1px);
}

/* Larger CTA for page-level calls to action. */
.wishlist-pill-lg {
    font-size: 1rem;
    padding: .75rem 1.4rem;
}

/* A row of CTAs: natural width on desktop, sharing the full line on mobile. */
.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.page-section {
    margin-top: 4rem;
}

/* Centred page intro: headline, lead paragraph, then CTAs. */
.hero {
    margin-top: 3.5rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    line-height: 1.15;
    max-width: 52rem;
    margin: 0 auto;
    text-wrap: balance;
}

.hero .lead {
    font-size: 1.15rem;
    color: #495057;
    max-width: 36rem;
    margin: 1.1rem auto 0;
    text-wrap: balance;
}

.hero .cta-row {
    justify-content: center;
    margin-top: 1.75rem;
}

.tick-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    font-size: .9rem;
    color: #6c757d;
}

.tick-list li {
    display: inline-block;
    margin: 0 .55rem;
}

.tick-list .fa-check {
    color: #eea343;
    margin-right: .3rem;
}

.icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fcead9;
    color: #c2622a;
    font-size: 1.1rem;
}

.cookie-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    padding: .75rem 0;
    font-size: .85rem;
    background: #fff;
    border-top: 1px solid #e7e2da;
    box-shadow: 0 -4px 14px rgba(0,0,0,.06);
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }

    .cta-row {
        width: 100%;
    }

    .cta-row > * {
        flex: 1;
    }

    .page-section {
        margin-top: 2.5rem;
    }
}

/* Lets the logo scale down on narrow screens instead of pushing the
   nav actions onto a second line. */
.navbar-brand {
    flex-shrink: 1;
    min-width: 0;
}

.navbar-brand img {
    max-width: 100%;
    height: auto;
}

/* Bootstrap buttons and inputs share the CTAs' corner radius and thin
   line, so pages still using .btn / .form-control match the rest. */
.btn {
    border-radius: 8px;
    white-space: nowrap;
}

.btn-primary:hover, .btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active {
    background-color: #c2622a;
    border-color: #c2622a;
}

.form-control {
    border-color: #e7e2da;
    border-radius: 8px;
}

.form-control:focus {
    border-color: #eea343;
}

.form-group > label {
    font-size: .85rem;
    margin-bottom: .3rem;
    color: #495057;
}

/* ASP.NET renders the summary even when there is nothing to report. */
.validation-summary-valid {
    display: none;
}

.validation-summary-errors ul {
    padding-left: 1.1rem;
    font-size: .85rem;
}

.field-validation-error {
    font-size: .8rem;
}

/* A single centred column for pages that are one short form. */
.form-page {
    max-width: 26rem;
    margin: 2.5rem auto 0;
}

.form-page-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-page-header h1 {
    font-size: 2rem;
}

.form-page-header p {
    color: #6c757d;
    margin: 0;
}

.form-page-footer {
    text-align: center;
    font-size: .85rem;
    margin-top: 1.25rem;
}

/* "or" style separator: a label with a thin rule either side. */
.divider-text {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.25rem 0;
    font-size: .8rem;
    color: #6c757d;
}

.divider-text::before, .divider-text::after {
    content: "";
    flex: 1;
    border-top: 1px solid #e7e2da;
}

@media (max-width: 576px) {
    .form-page {
        margin-top: 1.5rem;
    }
}

/* Bootstrap buttons take the CTA's size too, so .btn and .wishlist-pill
   are interchangeable. Link-style and explicitly sized buttons keep
   their own metrics. */
.btn:not(.btn-link):not(.btn-sm):not(.btn-lg) {
    font-size: .85rem;
    padding: .55rem 1rem;
}

/* Secondary actions are neutral: white with a thin line, like the
   toolbar CTAs. .btn-default is the older name some pages still use. */
.btn-secondary, .btn-default {
    background-color: #fff;
    border-color: #e7e2da;
    color: #1f2328;
}

.btn-secondary:hover, .btn-secondary:focus,
.btn-secondary:not(:disabled):not(.disabled):active,
.btn-default:hover, .btn-default:focus {
    background-color: #fff;
    border-color: #eea343;
    color: #1f2328;
}

.alert {
    border-radius: 8px;
}

/* Side navigation: the current page is a soft tint, keeping solid
   orange for the page's primary action. */
.nav-pills .nav-link {
    border-radius: 8px;
    color: #1f2328;
}

.nav-pills .nav-link:hover {
    color: #c2622a;
}

.nav-pills .nav-item .nav-link.active {
    background-color: #fcead9;
    color: #c2622a;
}

/* Longer forms (list and item details) use a wider column. */
.form-page-wide {
    max-width: 40rem;
}

.input-group-text {
    border-color: #e7e2da;
    border-radius: 8px;
    background-color: #faf7f2;
    color: #6c757d;
}
