/* Brand directory and editorial brand pages. */
.sp-brands {
    background: var(--ve-bg);
    color: var(--ve-ink);
    overflow: hidden;
}

.sp-brands h1,
.sp-brands h2,
.sp-brands h3,
.sp-brands p,
.sp-brands dl {
    margin-top: 0;
}

.sp-brands-hero,
.sp-brand-hero {
    background:
        radial-gradient(circle at 78% 20%, rgba(217, 139, 126, .2), transparent 27%),
        linear-gradient(135deg, #3a2228 0%, #4a0817 100%);
    color: #fff;
    isolation: isolate;
    position: relative;
}

.sp-brands-hero .ve-container,
.sp-brand-hero .ve-container {
    padding-bottom: clamp(56px, 7vw, 92px);
    padding-top: 22px;
}

.sp-brands-hero .ve-breadcrumbs,
.sp-brand-hero .ve-breadcrumbs {
    margin-bottom: clamp(48px, 7vw, 84px);
}

.sp-brands-hero .ve-breadcrumbs a,
.sp-brand-hero .ve-breadcrumbs a,
.sp-brands-hero .ve-breadcrumbs > span[aria-current="page"],
.sp-brand-hero .ve-breadcrumbs > span[aria-current="page"],
.sp-brands-hero .ve-breadcrumbs > i,
.sp-brand-hero .ve-breadcrumbs > i {
    color: rgba(255, 255, 255, .68);
}

.sp-brands-hero__layout {
    align-items: end;
    display: grid;
    gap: clamp(36px, 7vw, 100px);
    grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr);
}

.sp-brands-hero__copy {
    max-width: 760px;
}

.sp-brands .ve-eyebrow {
    color: var(--ve-terracotta-300);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.sp-brands-hero h1,
.sp-brand-hero h1 {
    color: #fff;
    font-family: var(--ve-display);
    font-size: clamp(48px, 7vw, 88px);
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: .98;
    margin-bottom: 24px;
}

.sp-brands-hero__copy > p:last-child {
    color: rgba(255, 255, 255, .76);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.65;
    margin-bottom: 0;
    max-width: 690px;
}

.sp-brands-hero__stats {
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    border-top: 1px solid rgba(255, 255, 255, .18);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 4px;
    padding: 25px 0;
}

.sp-brands-hero__stats div {
    border-left: 1px solid rgba(255, 255, 255, .14);
    padding: 0 22px;
}

.sp-brands-hero__stats div:first-child {
    border-left: 0;
    padding-left: 0;
}

.sp-brands-hero__stats dt {
    color: #fff;
    font-family: var(--ve-display);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1;
}

.sp-brands-hero__stats dd {
    color: rgba(255, 255, 255, .6);
    font-size: 12px;
    margin: 8px 0 0;
}

.sp-brands-featured,
.sp-brand-directory,
.sp-brand-overview,
.sp-brand-products,
.sp-brand-related {
    padding: clamp(64px, 8vw, 110px) 0;
}

.sp-brands-section-head {
    align-items: end;
    display: flex;
    gap: 32px;
    justify-content: space-between;
    margin-bottom: 34px;
}

.sp-brands-section-head h2,
.sp-brand-overview h2 {
    color: var(--ve-wine-700);
    font-family: var(--ve-display);
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 500;
    letter-spacing: -.025em;
    line-height: 1.08;
    margin: 0;
}

.sp-brands-section-head > p {
    color: var(--ve-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 2px;
    max-width: 440px;
}

.sp-brands-section-head > a {
    color: var(--ve-wine-700);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.sp-brands-section-head > a i {
    margin-left: 6px;
}

.sp-brand-feature-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sp-brand-feature-card {
    background: var(--ve-surface);
    border: 1px solid var(--ve-border);
    border-radius: 20px;
    box-shadow: var(--ve-shadow-sm);
    min-width: 0;
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}

.sp-brand-feature-card:hover {
    box-shadow: var(--ve-shadow-md);
    transform: translateY(-3px);
}

.sp-brand-feature-card__main {
    align-items: center;
    color: inherit;
    display: grid;
    gap: 20px;
    grid-template-columns: 104px minmax(0, 1fr);
    min-height: 160px;
    padding: 24px;
    text-decoration: none;
}

.sp-brand-feature-card__logo,
.sp-brand-hero__logo {
    align-items: center;
    background: #fff;
    border: 1px solid #eaded7;
    border-radius: 17px;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.sp-brand-feature-card__logo {
    height: 104px;
    padding: 15px;
    width: 104px;
}

.sp-brand-feature-card__logo img,
.sp-brand-hero__logo img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.sp-brand-feature-card__logo.is-placeholder,
.sp-brand-hero__logo.is-placeholder,
.sp-brand-list-logo.is-placeholder {
    background: linear-gradient(145deg, #f7efea, #ead8cf);
    color: var(--ve-wine-700);
    font-family: var(--ve-display);
    font-weight: 600;
}

.sp-brand-feature-card__logo.is-placeholder {
    font-size: 32px;
}

.sp-brand-feature-card__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.sp-brand-feature-card__body small {
    color: var(--ve-terracotta-600);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.sp-brand-feature-card__body strong {
    color: var(--ve-wine-700);
    font-family: var(--ve-display);
    font-size: 25px;
    line-height: 1.15;
}

.sp-brand-feature-card__body em {
    color: var(--ve-secondary);
    display: -webkit-box;
    font-size: 13px;
    font-style: normal;
    line-height: 1.5;
    margin-top: 9px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.sp-brand-feature-card footer {
    align-items: center;
    border-top: 1px solid #eaded7;
    display: flex;
    justify-content: space-between;
    padding: 13px 24px;
}

.sp-brand-feature-card footer span {
    color: var(--ve-muted);
    font-size: 12px;
}

.sp-brand-feature-card footer a {
    color: var(--ve-wine-700);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.sp-brand-directory {
    background: var(--ve-bg-alt);
    border-bottom: 1px solid var(--ve-border);
    border-top: 1px solid var(--ve-border);
}

.sp-brand-directory__toolbar {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.sp-brand-search {
    align-items: center;
    background: #fff;
    border: 1px solid var(--ve-border);
    border-radius: 14px;
    display: flex;
    max-width: 570px;
    min-height: 54px;
    padding: 0 16px;
    width: 100%;
}

.sp-brand-search > i {
    color: var(--ve-muted);
    margin-right: 11px;
}

.sp-brand-search input {
    background: transparent;
    border: 0;
    color: var(--ve-ink);
    flex: 1;
    font: inherit;
    min-width: 0;
    outline: 0;
}

.sp-brand-search:focus-within {
    border-color: var(--ve-wine-700);
    box-shadow: 0 0 0 3px rgba(111, 13, 34, .08);
}

.sp-brand-search button {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--ve-muted);
    cursor: pointer;
    display: flex;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.sp-brand-search-count {
    color: var(--ve-muted);
    font-size: 13px;
    white-space: nowrap;
}

.sp-brand-search-count strong {
    color: var(--ve-wine-700);
    font-size: 16px;
}

.sp-brand-alphabet {
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--ve-border);
    border-radius: 16px;
    display: flex;
    gap: 0;
    margin-bottom: 42px;
    overflow-x: auto;
    padding: 11px 14px;
    scrollbar-width: thin;
}

.sp-brand-alphabet__group {
    align-items: center;
    border-left: 1px solid var(--ve-border);
    display: flex;
    flex: 0 0 auto;
    gap: 2px;
    padding: 0 13px;
}

.sp-brand-alphabet__group:first-child {
    border-left: 0;
    padding-left: 0;
}

.sp-brand-alphabet__group small {
    color: var(--ve-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    margin-right: 7px;
    text-transform: uppercase;
}

.sp-brand-alphabet__group a {
    align-items: center;
    border-radius: 8px;
    color: var(--ve-wine-700);
    display: flex;
    font-size: 13px;
    font-weight: 700;
    height: 31px;
    justify-content: center;
    text-decoration: none;
    width: 29px;
}

.sp-brand-alphabet__group a:hover,
.sp-brand-alphabet__group a:focus-visible {
    background: var(--ve-wine-700);
    color: #fff;
}

.sp-brand-language + .sp-brand-language {
    margin-top: 58px;
}

.sp-brand-language > header {
    align-items: center;
    display: flex;
    gap: 18px;
    margin-bottom: 26px;
}

.sp-brand-language > header span {
    color: var(--ve-terracotta-600);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.sp-brand-language > header i {
    background: var(--ve-border);
    height: 1px;
    width: 100%;
}

.sp-brand-language__letters {
    display: grid;
    gap: 42px 54px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sp-brand-letter {
    scroll-margin-top: 28px;
}

.sp-brand-letter h3 {
    border-bottom: 2px solid var(--ve-wine-700);
    color: var(--ve-wine-700);
    font-family: var(--ve-display);
    font-size: 38px;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 8px;
    padding-bottom: 12px;
}

.sp-brand-letter ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-brand-letter li {
    border-bottom: 1px solid #e7dbd4;
}

.sp-brand-letter li[hidden],
.sp-brand-letter[hidden],
.sp-brand-language[hidden] {
    display: none;
}

.sp-brand-letter li a,
.sp-brand-related__grid > a {
    align-items: center;
    color: var(--ve-ink);
    display: grid;
    gap: 13px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    min-height: 66px;
    text-decoration: none;
}

.sp-brand-letter li a:hover strong,
.sp-brand-related__grid > a:hover strong {
    color: var(--ve-terracotta-600);
}

.sp-brand-list-logo {
    align-items: center;
    background: #fff;
    border: 1px solid #eaded7;
    border-radius: 10px;
    display: flex;
    font-size: 13px;
    height: 42px;
    justify-content: center;
    overflow: hidden;
    padding: 5px;
    width: 42px;
}

.sp-brand-list-logo img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.sp-brand-letter li a > span:nth-child(2),
.sp-brand-related__grid > a > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sp-brand-letter li strong,
.sp-brand-related__grid strong {
    font-size: 14px;
    line-height: 1.25;
    transition: color .15s ease;
}

.sp-brand-letter li small,
.sp-brand-related__grid small {
    color: var(--ve-muted);
    font-size: 11px;
    margin-top: 3px;
}

.sp-brand-letter li a > i,
.sp-brand-related__grid > a > i {
    color: var(--ve-muted);
    font-size: 11px;
}

.sp-brand-letter li a[dir="rtl"] {
    grid-template-columns: auto minmax(0, 1fr) 42px;
}

.sp-brand-letter li a[dir="rtl"] .sp-brand-list-logo {
    grid-column: 3;
    grid-row: 1;
}

.sp-brand-letter li a[dir="rtl"] > span:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.sp-brand-letter li a[dir="rtl"] > i {
    grid-column: 1;
    grid-row: 1;
    transform: rotate(180deg);
}

.sp-brand-directory__empty {
    align-items: center;
    background: #fff;
    border: 1px dashed var(--ve-border);
    border-radius: 18px;
    display: none;
    flex-direction: column;
    padding: 56px 24px;
    text-align: center;
}

.sp-brand-directory__empty.is-visible {
    display: flex;
}

.sp-brand-directory__empty i,
.sp-brand-products__empty > i {
    color: var(--ve-terracotta-500);
    font-size: 30px;
    margin-bottom: 16px;
}

.sp-brand-directory__empty h3,
.sp-brand-products__empty h3 {
    color: var(--ve-wine-700);
    font-size: 28px;
    margin-bottom: 9px;
}

.sp-brand-directory__empty p,
.sp-brand-products__empty p {
    color: var(--ve-secondary);
    margin-bottom: 0;
}

.sp-brand-seo-copy {
    background: var(--ve-dark);
    color: #fff;
    padding: clamp(58px, 7vw, 90px) 0;
}

.sp-brand-seo-copy .ve-container {
    display: grid;
    gap: clamp(36px, 7vw, 100px);
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
}

.sp-brand-seo-copy h2 {
    color: #fff;
    font-size: clamp(34px, 4vw, 50px);
    font-weight: 500;
    line-height: 1.08;
    margin-bottom: 0;
}

.sp-brand-seo-copy .ve-container > div:last-child {
    color: rgba(255, 255, 255, .7);
    font-size: 16px;
    line-height: 1.75;
}

.sp-brand-seo-copy .ve-container > div:last-child p:last-child {
    margin-bottom: 0;
}

/* Single brand. */
.sp-brand-hero__layout {
    align-items: end;
    display: flex;
    gap: 48px;
    justify-content: space-between;
}

.sp-brand-hero__identity {
    align-items: center;
    display: grid;
    gap: clamp(24px, 4vw, 46px);
    grid-template-columns: clamp(150px, 17vw, 224px) minmax(0, 1fr);
    min-width: 0;
}

.sp-brand-hero__logo {
    aspect-ratio: 1;
    padding: clamp(20px, 3vw, 38px);
    width: 100%;
}

.sp-brand-hero__logo.is-placeholder {
    font-size: clamp(48px, 6vw, 76px);
}

.sp-brand-hero h1 {
    font-size: clamp(48px, 6.5vw, 82px);
    margin-bottom: 16px;
    overflow-wrap: anywhere;
}

.sp-brand-hero__lead {
    color: rgba(255, 255, 255, .7);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 680px;
}

.sp-brand-hero__actions {
    align-items: flex-start;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 14px;
}

.sp-brand-external-link {
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.sp-brand-external-link i {
    margin-left: 6px;
}

.sp-brand-overview {
    background: var(--ve-bg-alt);
}

.sp-brand-overview__layout {
    display: grid;
    gap: clamp(44px, 8vw, 120px);
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
}

.sp-brand-overview h2 {
    margin-bottom: 26px;
}

.sp-brand-richtext,
.sp-brand-empty-copy {
    color: var(--ve-secondary);
    font-size: 17px;
    line-height: 1.8;
}

.sp-brand-richtext > *:last-child {
    margin-bottom: 0;
}

.sp-brand-facts {
    align-self: start;
    background: #fff;
    border: 1px solid var(--ve-border);
    border-radius: 20px;
    box-shadow: var(--ve-shadow-sm);
    padding: 28px;
}

.sp-brand-facts dl,
.sp-brand-facts dd {
    margin-bottom: 0;
}

.sp-brand-facts dl div {
    border-top: 1px solid var(--ve-border);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 16px 0;
}

.sp-brand-facts dl div:last-child {
    padding-bottom: 0;
}

.sp-brand-facts dt {
    color: var(--ve-muted);
    font-size: 12px;
}

.sp-brand-facts dd {
    color: var(--ve-wine-700);
    font-size: 14px;
    font-weight: 700;
    text-align: right;
}

.sp-brand-products {
    background: var(--ve-bg);
}

.sp-brand-products__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sp-brand-products__action {
    display: flex;
    justify-content: center;
    margin-top: 38px;
}

.sp-brand-products__action .ve-button span {
    background: rgba(255, 255, 255, .16);
    border-radius: 999px;
    font-size: 11px;
    margin-left: 5px;
    padding: 2px 7px;
}

.sp-brand-products__empty {
    align-items: center;
    background: #fff;
    border: 1px solid var(--ve-border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    padding: 64px 24px;
    text-align: center;
}

.sp-brand-products__empty a {
    color: var(--ve-wine-700);
    font-weight: 700;
    margin-top: 20px;
    text-decoration: none;
}

.sp-brand-related {
    background: var(--ve-bg-alt);
    border-top: 1px solid var(--ve-border);
}

.sp-brand-related__grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sp-brand-related__grid > a {
    background: #fff;
    border: 1px solid var(--ve-border);
    border-radius: 15px;
    min-height: 78px;
    padding: 11px 15px;
}

@media (max-width: 1100px) {
    .sp-brand-feature-grid,
    .sp-brand-language__letters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sp-brands-hero__layout {
        grid-template-columns: 1fr;
    }

    .sp-brands-hero__stats {
        max-width: 620px;
    }

    .sp-brand-hero__layout {
        align-items: flex-start;
        flex-direction: column;
    }

    .sp-brand-hero__actions {
        align-items: center;
        flex-direction: row;
    }

    .sp-brand-products__grid,
    .sp-brand-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .sp-brands-hero .ve-container,
    .sp-brand-hero .ve-container {
        padding-bottom: 52px;
    }

    .sp-brands-hero .ve-breadcrumbs,
    .sp-brand-hero .ve-breadcrumbs {
        margin-bottom: 42px;
    }

    .sp-brands-hero__stats {
        overflow-x: auto;
    }

    .sp-brands-hero__stats div {
        min-width: 104px;
        padding: 0 14px;
    }

    .sp-brands-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .sp-brand-feature-grid,
    .sp-brand-language__letters,
    .sp-brand-products__grid,
    .sp-brand-related__grid {
        grid-template-columns: 1fr;
    }

    .sp-brand-feature-card__main {
        grid-template-columns: 84px minmax(0, 1fr);
        min-height: 138px;
        padding: 18px;
    }

    .sp-brand-feature-card__logo {
        height: 84px;
        width: 84px;
    }

    .sp-brand-feature-card footer {
        padding: 12px 18px;
    }

    .sp-brand-directory__toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .sp-brand-alphabet {
        margin-left: -16px;
        margin-right: -16px;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        padding-left: 16px;
        padding-right: 16px;
    }

    .sp-brand-alphabet__group {
        padding: 0 8px;
    }

    .sp-brand-alphabet__group small {
        display: none;
    }

    .sp-brand-seo-copy .ve-container,
    .sp-brand-overview__layout {
        grid-template-columns: 1fr;
    }

    .sp-brand-hero__identity {
        align-items: flex-start;
        grid-template-columns: 108px minmax(0, 1fr);
    }

    .sp-brand-hero__logo {
        border-radius: 14px;
        padding: 15px;
    }

    .sp-brand-hero__actions {
        align-items: flex-start;
        flex-direction: column;
        width: 100%;
    }

    .sp-brand-hero__actions .ve-button {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .sp-brand-hero__identity {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .sp-brand-hero h1 {
        font-size: 40px;
    }

    .sp-brand-hero__lead {
        font-size: 14px;
    }

    .sp-brand-feature-card__body strong {
        font-size: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sp-brand-feature-card {
        transition: none;
    }
}
