/* Promotions page */
.promotions-page {
    padding-bottom: 32px;
}

.promotions-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 32px 60px 32px;
    color: var(--color-text-secondary);
}

.promotions-breadcrumbs a {
    color: var(--color-text-secondary);
    text-decoration: none;
}

.promotions-breadcrumbs a:hover {
    border-bottom: 1px solid var(--color-text-secondary);
}

.promotions-breadcrumbs .breadcrumbs-sep {
    margin: 0 6px;
    display: inline-flex;
    align-items: center;
}

.promotions-breadcrumbs .breadcrumb-active {
    color: var(--color-text-primary);
    border-bottom: 1px solid var(--color-text-primary);
}

.promotions-hero {
    padding: 0 60px 32px;
    max-width: 550px;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 12px;
}

.promotions-hero-title {
    text-transform: uppercase;
    color: var(--color-text-primary);
}

.promotions-hero-lead {
    margin: 0;
    color: var(--color-text-secondary);
}

/* Filter chips */
.promotions-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 12px 60px;
}

.promotions-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    height: 40px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: background-color .2s, border-color .2s, color .2s;
}

.promotions-filter:hover {
    border-color: var(--color-border-medium);
    text-decoration: none;
}

.promotions-filter.is-active {
    border-color: var(--color-border-medium);
}

/* Global promotions */
.promotions-global {
    padding: 32px 60px;
}

.promotions-global-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.promotions-global-grid.is-single {
    grid-template-columns: 1fr;
}

.promotions-global-card {
    min-height: 330px;
    background: var(--color-bg-warm-gray);
    overflow: hidden;
}

.promotions-global-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 48px 500px 48px 48px;
    position: absolute;
    height: 100%;
    top: 0;
    left: 0;
}

.promotions-global-content-text {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 12px;
}

.promotions-global-title {
    margin: 0;
    color: var(--color-text-primary);
}

.promotions-global-text {
    margin: 0;
    color: var(--color-text-primary);
    max-width: 36ch;
}

.promotions-global-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    padding: 14px 22px;
    border: 1px solid var(--color-bg-dark);
    color: var(--color-bg-dark);
    background: transparent;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: var(--text-button-size);
    line-height: var(--text-button-lh);
    font-weight: var(--text-button-weight);
    transition: background-color .2s, color .2s;
}

.promotions-global-cta:hover {
    background: rgba(22, 20, 18, 0.08);
    text-decoration: none;
}

.promotions-global-media {
    position: relative;
    min-height: 330px;
    background: var(--color-bg-sand);
}

.promotions-global-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    inset: 0;
}

/* Shop promotions */
.promotions-shops {
    padding: 0 60px;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 32px;
}

.promotions-shops-header {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 12px;
}

.promotions-shops-title {
    text-transform: uppercase;
    color: var(--color-text-primary);
}

.promotions-shops-count {
    margin: 0;
    color: var(--color-text-secondary);
}

.promotions-shops-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

/* Reuse catalog shop promo card look */
.catalog-shop-promo-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    text-decoration: none;
    color: inherit;
}

.catalog-shop-promo-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-bg-warm-gray);
    max-height: 212px;
}

.catalog-shop-promo-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(22, 20, 18, 0) 40%, rgba(22, 20, 18, .55) 100%);
    pointer-events: none;
}

.catalog-shop-promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.catalog-shop-promo-image-fallback {
    width: 100%;
    height: 100%;
    background: var(--color-bg-warm-gray);
}

.catalog-shop-promo-image-title {
    position: absolute;
    left: 24px;
    top: 45px;
    z-index: 1;
    margin: 0;
    color: var(--color-text-primary);
    text-transform: uppercase;
    max-width: 40%;
}

.catalog-shop-promo-image-subtitle {
    position: absolute;
    left: 24px;
    bottom: 45px;
    z-index: 1;
    margin: 0;
    color: var(--color-text-primary);
    max-width: 40%;
}

.catalog-shop-promo-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    border: 1px solid var(--color-border-light);
}

.catalog-shop-promo-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--color-text-secondary);
}

.catalog-shop-promo-meta .text-button {
    text-transform: none;
}

.catalog-shop-promo-meta-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
}

.catalog-shop-promo-text {
    margin: 0;
    color: var(--color-text-primary);
}

.catalog-shop-promo-description {
    margin: 0;
    color: var(--color-text-secondary);
    min-height: 60px;
}

.catalog-shop-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 4px;
}

.catalog-shop-promo-date {
    color: var(--color-text-secondary);
}

.catalog-shop-link {
    height: 24px;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promotions-more {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.promotions-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border: 1px solid var(--color-bg-dark);
    color: var(--color-bg-dark);
    background: transparent;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: var(--text-button-size);
    line-height: var(--text-button-lh);
    font-weight: var(--text-button-weight);
    transition: background-color .2s;
}

.promotions-more-button:hover {
    background: rgba(22, 20, 18, 0.08);
    text-decoration: none;
}

.promotions-empty {
    padding: 48px 0;
    color: var(--color-text-secondary);
}

/* Global detail */
.promotions-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 48px;
    padding: 0 60px 40px;
    align-items: start;
}

.promotions-detail-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-bg-warm-gray);
}

.promotions-detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.promotions-detail-title {
    margin: 0 0 16px;
    color: var(--color-text-primary);
}

.promotions-detail-lead {
    margin: 0 0 24px;
    color: var(--color-text-secondary);
}

.promotions-detail-content {
    margin-bottom: 32px;
    color: var(--color-text-primary);
}

.promotions-detail-content p {
    margin: 0 0 1em;
}


/* Promotion detail page */
.promo-show-page {
    padding-bottom: 32px;
}

.promo-hero {
    --promo-hero-media-width: calc(100svw - 560px);
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--color-bg-warm-gray);
}

.promo-hero.has-image::before,
.promo-hero.has-image::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--promo-hero-media-width);
    pointer-events: none;
}

.promo-hero.has-image::before {
    background-image: var(--promo-hero-image);
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

.promo-hero.has-image::after {
    z-index: 1;
    background: linear-gradient(90deg, #F6F3EE 6.87%, rgba(255, 253, 248, 0) 63.44%);
}

.promo-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 720px;
    padding: 32px 0 32px 60px;
}

.promo-hero-title {
    margin: 0 0 16px;
    text-transform: uppercase;
    color: var(--color-text-primary);
}

.promo-hero-lead {
    margin: 0 0 28px;
    color: var(--color-text-secondary);
}

.promo-hero-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.promo-hero-meta .text-button {
    text-transform: none;
}

.promo-hero-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-primary);
}

.promo-hero-meta-icon {
    display: inline-flex;
    color: var(--color-text-secondary);
    flex-shrink: 0;
}

.promo-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.promo-hero-btn {
    width: auto;
    text-decoration: none;
}

.promo-outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border: 1px solid var(--color-bg-dark);
    color: var(--color-bg-dark);
    background: transparent;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: var(--text-button-size);
    line-height: var(--text-button-lh);
    font-weight: var(--text-button-weight);
    transition: background-color .2s;
}

.promo-outline-button:hover {
    background: rgba(22, 20, 18, 0.08);
    text-decoration: none;
}

.promo-no-line-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    color: var(--color-accent-terracotta);
    background: transparent;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: var(--text-button-size);
    line-height: var(--text-button-lh);
    font-weight: var(--text-button-weight);
    transition: background-color .2s;
    border: 1px solid transparent;
}

.promo-no-line-button:hover {
    border: 1px solid var(--color-btn-secondary-bg);
}

.promo-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 32px 60px;
    align-items: start;
}

.promo-section-title {
    margin: 0 0 24px;
    text-transform: uppercase;
    color: var(--color-text-primary);
}

.promo-about-text {
    color: var(--color-text-primary);
    margin-bottom: 24px;
}

.promo-about-text p {
    margin: 0 0 1em;
}

.promo-notes {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 24px;
    background: var(--color-bg-warm-gray);
}

.promo-notes-icon {
    height: 32px;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.promo-notes p {
    margin: 0;
    color: var(--color-text-secondary);
}

.promo-conditions-list {
    margin: 0;
    padding: 0;
}

.promo-conditions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-top: 1px solid var(--color-border-light);
}

.promo-conditions-row:last-child {
    border-bottom: 1px solid var(--color-border-light);
}

.promo-conditions-row dt {
    margin: 0;
    color: var(--color-text-secondary);
}

.promo-conditions-row dd {
    margin: 0;
    color: var(--color-text-primary);
}

.promo-products {
    padding: 0 60px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    min-width: 0;
}

.promo-products-title {
    text-transform: uppercase;
    color: var(--color-text-primary);
}

.promo-products-wrap {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.promo-products-track {
    display: flex;
    gap: 32px;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.promo-products-track::-webkit-scrollbar {
    display: none;
}

.promo-products-track .product-card {
    flex: 0 0 calc((100% - 96px) / 4);
    min-width: 426px;
    scroll-snap-align: start;
}

.promo-products-next {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(50%, -80%);
    width: 56px;
    height: 56px;
    border: 1px solid var(--color-border-medium);
    background: var(--color-bg-main);
    color: var(--color-text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background-color .2s;
}

.promo-products-next:hover {
    background: var(--color-bg-warm-gray);
}

.promo-products-action {
    display: flex;
    justify-content: center;
    align-self: center;
}

@media (max-width: 1919px) {
    .promo-hero.has-image::before {
        background-position: center center;
    }

    .promotions-global-content {
        padding: 24px 144px 24px 24px;
    }

    .promotions-shops-grid {
        grid-template-columns: 1fr 1fr;
    }

    .promotions-filters {
        gap: 8px;
    }

    .promotions-global-media, .promotions-global-card {
        min-height: 240px;
    }
}

@media (max-width: 1199px) {
    .promo-hero {
        --promo-hero-media-width: calc(100svw - 370px);
    }

    .promo-hero.has-image::before {
        background-position: center center;
    }

    .promo-hero-content {
        max-width: 650px;
    }

    .promotions-filters {
        gap: 8px;
    }

    .promotions-global-content {
        padding: 24px 72px 24px 24px;
    }

    .promo-details {
        gap: 16px;
    }
}

@media (max-width: 1023px) {
    .promo-hero {
        --promo-hero-media-width: calc(100svw - 330px);
    }

    .promo-hero-content {
        padding: 32px 0 32px 24px;
        max-width: 475px;
    }

    .promotions-breadcrumbs.breadcrumbs {
        padding: 24px;
    }

    .promotions-hero {
        padding: 0 16px 12px;
    }

    .promotions-filters {
        padding: 12px 16px;
    }

    .promotions-global {
        padding: 12px 16px;
    }

    .promotions-global-grid {
        gap: 16px;
    }

    .promotions-global-content {
        padding: 16px;
    }

    .promotions-shops {
        padding: 12px 16px;
    }

    .catalog-shop-promo-body {
        padding: 16px;
    }

    .promo-products-track .product-card {
        min-width: 280px;
    }

    .promo-details {
        padding: 24px 16px;
        grid-template-columns: 1fr;
    }

    .promo-products {
        padding: 0 16px;
        gap: 24px;
    }

    .promo-products-track {
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .promo-hero {
        --promo-hero-media-width: 100svw;
    }

    .promo-hero.has-image::after {
        background: linear-gradient(90deg, #F6F3EE 16.87%, rgba(255, 255, 255, 0.6) 100%);
    }

    .promotions-global-grid, .promotions-shops-grid {
        grid-template-columns: 1fr;
    }

    .promotions-global-media, .promotions-global-card {
        min-height: 216px;
    }

    .catalog-shop-promo-image {
        max-height: 125px;
        aspect-ratio: 27/10;
    }

    .catalog-shop-promo-image-title, .catalog-shop-promo-image-subtitle {
        display: none;
    }

    .promo-conditions-row {
        flex-direction: column;
        align-items: start;
    }
}
