.design-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.design-gallery figure {
    margin: 0;
    min-width: 0;
}

.design-gallery img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    padding: 8px;
    border-radius: 10px;
    background: #f0efe9;
}

.design-gallery figcaption {
    margin-top: 5px;
    color: #7c8882;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 820px) {
    .design-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .design-gallery {
        grid-template-columns: 1fr 1fr;
    }
}

.package-tabs {
    display: flex;
    gap: 8px;
    margin: 0 -4px 24px;
    padding: 4px 4px 8px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.package-tabs__button {
    flex: 0 0 auto;
    padding: 10px 14px;
    border: 1px solid #dce5df;
    border-radius: 999px;
    background: #f7f8f5;
    color: #496158;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.package-tabs__button:hover {
    border-color: #a9cfbd;
    color: #08753f;
}

.package-tabs__button.is-active {
    border-color: #08753f;
    background: #08753f;
    color: #fff;
}

.package-tab-panel[hidden] {
    display: none !important;
}

.design-history-card {
    margin-top: 16px;
    padding: 20px;
    border: 1px solid #e4e8e4;
    border-radius: 14px;
    background: #fbfcfa;
}

.design-history-card.is-default {
    border-color: #a9cfbd;
    background: #fbfdfb;
}

.design-history-card__header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.design-history-card__header h3 {
    margin: 4px 0 0;
    color: #142820;
    font-size: 20px;
}

.design-history-card__badge {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e8f4ed;
    color: #08753f;
    font-size: 11px;
    font-weight: 800;
}

.design-history-card__period {
    margin: 6px 0 0;
    color: #7b8781;
    font-size: 13px;
}

.design-history-card__notes {
    margin: 0 0 14px;
    color: #66736d;
    font-size: 14px;
    line-height: 1.55;
}

.design-gallery--history {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.design-gallery__item {
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: zoom-in;
    text-align: left;
}

.design-gallery__media {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: hidden;
    border-radius: 11px;
    background: #f0efe9;
}

.design-gallery__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.design-gallery__caption {
    display: block;
    margin-top: 6px;
    color: #737f79;
    font-size: 12px;
    text-align: center;
}

.package-tab-panel__empty {
    padding: 20px 0 4px;
}

body.is-lightbox-open {
    overflow: hidden;
}

.beer-lightbox[hidden] {
    display: none !important;
}

.beer-lightbox {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.beer-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 13, 10, .86);
}

.beer-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(1180px, 96vw);
    height: min(880px, 92vh);
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    align-items: center;
}

.beer-lightbox__stage {
    min-width: 0;
    height: 100%;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
    justify-items: center;
}

.beer-lightbox__image {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
}

.beer-lightbox__caption,
.beer-lightbox__counter {
    color: #fff;
    text-align: center;
}

.beer-lightbox__caption {
    font-size: 14px;
}

.beer-lightbox__counter {
    min-height: 18px;
    color: #bfc9c4;
    font-size: 12px;
}

.beer-lightbox__close,
.beer-lightbox__nav {
    border: 0;
    color: #fff;
    background: rgba(255,255,255,.08);
    cursor: pointer;
}

.beer-lightbox__close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
}

.beer-lightbox__nav {
    width: 46px;
    height: 64px;
    border-radius: 12px;
    font-size: 42px;
    line-height: 1;
}

.beer-lightbox__nav:hover,
.beer-lightbox__close:hover {
    background: rgba(255,255,255,.17);
}

@media (max-width: 820px) {
    .design-gallery--history {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .design-gallery--history {
        grid-template-columns: 1fr 1fr;
    }

    .design-gallery__media {
        height: 150px;
    }

    .beer-lightbox {
        padding: 8px;
    }

    .beer-lightbox__dialog {
        width: 100%;
        height: 94vh;
        grid-template-columns: 38px minmax(0, 1fr) 38px;
    }

    .beer-lightbox__nav {
        width: 34px;
        height: 54px;
        font-size: 34px;
    }
}

.design-gallery__item.is-placeholder .design-gallery__media {
    background: #f6f1e8;
}

.design-gallery__item.is-placeholder .design-gallery__caption {
    color: #9a6a1c;
}

.beer-lightbox {
    padding: 16px;
    overflow: hidden;
}

.beer-lightbox__dialog {
    width: min(1180px, calc(100vw - 32px));
    height: min(860px, calc(100vh - 32px));
    max-height: calc(100vh - 32px);
}

.beer-lightbox__stage {
    height: min(820px, calc(100vh - 72px));
    max-height: calc(100vh - 72px);
    overflow: hidden;
}

.beer-lightbox__image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 140px);
    object-fit: contain;
    margin: auto;
}

@media (max-width: 600px) {
    .beer-lightbox {
        padding: 4px;
    }

    .beer-lightbox__dialog {
        width: calc(100vw - 8px);
        height: calc(100vh - 8px);
        max-height: calc(100vh - 8px);
    }

    .beer-lightbox__stage {
        height: calc(100vh - 40px);
        max-height: calc(100vh - 40px);
    }

    .beer-lightbox__image {
        max-height: calc(100vh - 120px);
    }
}

.beer-detail-v2 .breadcrumbs {
    margin-bottom: 20px;
}

.beer-detail-v2__hero {
    display: block;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #e4e9e5;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(20, 40, 30, .04);
}

.beer-detail-v2__hero::after {
    content: "";
    display: block;
    clear: both;
}

.beer-detail-v2__media {
    float: left;
    width: min(42%, 430px);
    min-width: 300px;
    margin: 0 30px 14px 0;
}

.beer-detail-v2__hero-image {
    width: 100%;
    height: 390px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #f3f2ed;
    cursor: zoom-in;
}

.beer-detail-v2__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.beer-detail-v2__hero-image--empty {
    color: #8d9792;
    cursor: default;
}

.beer-detail-v2__summary {
    min-width: 0;
    padding: 6px 6px 2px 0;
}

.beer-detail-v2__producers {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 5px;
    color: #08753f;
    font-size: 14px;
    font-weight: 700;
}

.beer-detail-v2__producers a {
    color: #08753f;
}

.beer-detail-v2__producers a:hover {
    text-decoration: underline;
}

.beer-detail-v2__summary h1 {
    margin: 0;
    color: #10201c;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.03;
    letter-spacing: -.035em;
}

.beer-detail-v2__summary h1::after {
    display: none;
}

.beer-detail-v2__official-name {
    margin: 10px 0 0;
    color: #66736d;
    font-size: 14px;
}

.beer-detail-v2__classification {
    display: grid;
    gap: 4px;
    margin-top: 10px;
}

.beer-detail-v2__classification-row {
    display: grid;
    grid-template-columns: minmax(105px, 135px) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 7px 10px;
    border-radius: 9px;
    background: #f6f8f5;
    color: #173129;
}

.beer-detail-v2__classification-row span {
    color: #7a8781;
    font-size: 12px;
}

.beer-detail-v2__classification-row strong {
    min-width: 0;
    color: #18352b;
    font-size: 14px;
    line-height: 1.3;
}

.beer-detail-v2__classification-row:hover {
    background: #eff5f1;
}

.beer-detail-v2__production-years {
    display: grid;
    grid-template-columns: minmax(105px, 135px) minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
    margin-top: 6px;
    padding: 2px 10px 0;
}

.beer-detail-v2__production-years span {
    color: #7a8781;
    font-size: 12px;
}

.beer-detail-v2__production-years strong {
    color: #26352f;
    font-size: 14px;
}

.beer-detail-v2__description-wrap {
    position: relative;
    margin-top: 10px;
}

.beer-detail-v2__description {
    position: relative;
    max-height: 118px;
    overflow: hidden;
    color: var(--color-text-content);
    font-size: 14px;
    line-height: 1.55;
    transition: max-height .25s ease;
}

.beer-detail-v2__description-wrap:not(.is-expanded):not(.is-short) .beer-detail-v2__description::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 36px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 84%);
    pointer-events: none;
}

.beer-detail-v2__description-wrap.is-expanded .beer-detail-v2__description,
.beer-detail-v2__description-wrap.is-short .beer-detail-v2__description {
    max-height: none;
}

.beer-detail-v2__description-wrap.is-expanded .beer-detail-v2__description {
    overflow: visible;
}

.beer-detail-v2__description > :first-child {
    margin-top: 0;
}

.beer-detail-v2__description > :last-child {
    margin-bottom: 0;
}

.beer-detail-v2__description-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #08753f;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
}

.beer-detail-v2__description-toggle[hidden] {
    display: none;
}

.beer-detail-v2__description-toggle-icon {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .18s ease;
}

.beer-detail-v2__description-wrap.is-expanded .beer-detail-v2__description-toggle-icon {
    transform: translateY(2px) rotate(225deg);
}

.beer-detail-v2__tech {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 16px;
    padding: 10px 8px;
    border: 1px solid #e4e9e5;
    border-radius: 14px;
    background: #fff;
}

.beer-detail-v2__tech-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 10px;
    text-align: center;
}

.beer-detail-v2__tech-item + .beer-detail-v2__tech-item {
    border-left: 1px solid #edf0ed;
}

.beer-detail-v2__tech-item span {
    min-height: 28px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: #84908b;
    font-size: 11px;
    line-height: 1.25;
}

.beer-detail-v2__tech-item strong {
    color: #12251e;
    font-size: 15px;
    line-height: 1.25;
}

.beer-detail-v2__info-tabs,
.beer-detail-v2__packaging {
    margin-top: 16px;
    padding: 12px;
    border: 1px solid #e4e9e5;
    border-radius: 14px;
    background: #fff;
}

.beer-detail-v2__tab-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
}

.beer-detail-v2__tab {
    min-width: 0;
    padding: 10px 8px;
    border: 0;
    border-radius: 8px;
    background: #f5f6f4;
    color: #43524c;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.beer-detail-v2__tab:hover {
    background: #eef3ef;
    color: #08753f;
}

.beer-detail-v2__tab.is-active {
    background: #08753f;
    color: #fff;
}

.beer-detail-v2__tab-panel {
    margin-top: 7px;
    min-height: 126px;
    padding: 18px 20px;
    border: 1px solid #edf0ed;
    border-radius: 10px;
    background: #fff;
}

.beer-detail-v2__tab-panel[hidden] {
    display: none !important;
}

.beer-detail-v2__tab-panel h2 {
    margin: 0 0 10px;
    color: #172820;
    font-size: 18px;
}

.beer-detail-v2__tab-panel .catalog-richtext {
    color: #55635e;
    font-size: 14px;
    line-height: 1.6;
}

.beer-detail-v2__packaging {
    padding: 16px;
}

.beer-detail-v2__packaging > h2 {
    margin: 0 0 12px;
    color: #10201c;
    font-size: 21px;
}

.beer-detail-v2__package-tabs {
    margin: 0 0 8px;
    padding: 0;
    gap: 7px;
}

.beer-detail-v2__package-tabs .package-tabs__button {
    min-width: 150px;
    padding: 10px 18px;
    border-radius: 8px;
    text-align: center;
}

.beer-detail-v2__design-card {
    margin-top: 10px;
    padding: 14px;
    border-color: #e7ebe7;
    border-radius: 11px;
    background: #fff;
}

.beer-detail-v2__design-card.is-default {
    border-color: #dce9e2;
    background: #fff;
}

.beer-detail-v2__design-header {
    align-items: flex-start;
    margin-bottom: 10px;
}

.beer-detail-v2__design-header h3 {
    margin: 0;
    font-size: 17px;
}

.beer-detail-v2__design-period {
    flex: 0 0 auto;
    margin: 0;
    color: #7c8883;
    font-size: 12px;
    white-space: nowrap;
}

.beer-detail-v2__design-card .design-history-card__notes {
    margin: 5px 0 0;
    color: #718079;
    font-size: 12px;
}

.beer-detail-v2__design-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.beer-detail-v2__design-gallery .design-gallery__media {
    height: 205px;
    border-radius: 8px;
    background: #f4f3ef;
}

.beer-detail-v2__design-gallery .design-gallery__caption {
    margin-top: 5px;
    font-size: 11px;
}

@media (max-width: 1050px) {
    .beer-detail-v2__media {
        width: 38%;
        min-width: 280px;
        margin-right: 22px;
    }

    .beer-detail-v2__hero-image {
        height: 350px;
    }

    .beer-detail-v2__tech {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .beer-detail-v2__tech-item:nth-child(4) {
        border-left: 0;
    }

    .beer-detail-v2__tech-item:nth-child(n/**/+4) {
        border-top: 1px solid #edf0ed;
    }
}

@media (max-width: 760px) {
    .beer-detail-v2__hero {
        padding: 12px;
    }

    .beer-detail-v2__media {
        float: none;
        width: 100%;
        min-width: 0;
        margin: 0 0 14px;
    }

    .beer-detail-v2__hero-image {
        height: min(72vw, 420px);
    }

    .beer-detail-v2__summary {
        padding: 2px 2px 4px;
    }

    .beer-detail-v2__summary h1 {
        font-size: 34px;
    }

    .beer-detail-v2__classification-row,
    .beer-detail-v2__production-years {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .beer-detail-v2__tech {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .beer-detail-v2__tech-item:nth-child(odd) {
        border-left: 0;
    }

    .beer-detail-v2__tech-item:nth-child(even) {
        border-left: 1px solid #edf0ed;
    }

    .beer-detail-v2__tech-item:nth-child(n/**/+3) {
        border-top: 1px solid #edf0ed;
    }

    .beer-detail-v2__tab-list {
        display: flex;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .beer-detail-v2__tab {
        flex: 0 0 auto;
        min-width: 130px;
    }

    .beer-detail-v2__package-tabs .package-tabs__button {
        min-width: 130px;
    }

    .beer-detail-v2__design-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .beer-detail-v2__classification-row,
    .beer-detail-v2__production-years {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .beer-detail-v2__tech-item {
        padding: 8px 5px;
    }

    .beer-detail-v2__tech-item strong {
        font-size: 14px;
    }

    .beer-detail-v2__tab-panel {
        padding: 15px;
    }

    .beer-detail-v2__packaging {
        padding: 12px;
    }

    .beer-detail-v2__design-gallery .design-gallery__media {
        height: 160px;
    }
}
