@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Manrope:wght@400;500;600&display=swap');
@import "./reset.css";

:root {
    --ink: #173b39;
    --teal: #0b7b77;
    --foam: #f5f0e7;
    --sand: #e8ddca;
    --coral: #eb5a64
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--foam);
    color: var(--ink);
    font-family: Manrope, Arial, sans-serif
}

a {
    color: inherit;
    text-decoration: none
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 3px
}

img {
    display: block;
    width: 100%;
    object-fit: cover
}

.nav {
    height: 76px;
    padding: 0 4vw;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    background: rgba(245, 240, 231, .94);
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid #173b391a
}

.brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 29px;
    font-weight: 600
}

.brand span {
    font-style: italic;
    color: var(--teal)
}

nav {
    display: flex;
    gap: 34px;
    font-size: 13px
}

nav a:hover {
    color: var(--teal)
}

.cartTrigger {
    display: flex;
    align-items: center;
    gap: 9px;
    justify-self: end;
    padding: 7px 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: 600 11px Manrope;
    text-transform: uppercase;
    letter-spacing: .08em;
    cursor: pointer
}

.cartTrigger:hover {
    color: var(--teal)
}

.cartIcon {
    position: relative;
    display: block;
    width: 28px;
    height: 28px
}

.cartIcon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-linejoin: round
}

.cartIcon b {
    position: absolute;
    top: -7px;
    right: -10px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border: 2px solid var(--foam);
    border-radius: 10px;
    background: var(--coral);
    color: white;
    font: 600 9px/1 Manrope;
    letter-spacing: 0
}

.hero {
    height: calc(100vh - 76px + 15px);
    min-height: 650px;
    position: relative;
    overflow: hidden;
}

.hero>img {
    height: 100%;
    filter: saturate(.8)
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(155deg,
            rgba(5, 47, 55, .8) 0%,
            rgba(5, 47, 55, .55) 30%,
            rgba(5, 47, 55, .3) 44%,
            rgba(5, 47, 55, 0) 57%);
}

.heroCopy {
    position: absolute;
    z-index: 2;
    left: 7vw;
    top: 72px;
    color: white;
    max-width: 720px
}

.eyebrow {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .22em;
    font-weight: 600;
    margin: 0 0 22px
}

.hero h1,
.manifest h2,
.sectionHead h2,
.delivery h2,
.truth h2,
.gift h2,
.order h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(54px, 6vw, 92px);
    line-height: .91;
    letter-spacing: -.04em;
    font-weight: 500;
    margin: 0
}

.hero h1 i,
h2 i {
    font-weight: 500
}

.lead {
    font-family: 'Cormorant Garamond', serif;
    font-size: 23px;
    line-height: 1.35;
    max-width: 560px;
    margin: 28px 0 34px
}

.actions {
    display: flex;
    align-items: center;
    gap: 28px
}

.primary {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 23px;
    background: var(--coral);
    color: white;
    border: 0;
    font: 600 12px Manrope;
    text-transform: uppercase;
    letter-spacing: .08em;
    cursor: pointer
}

.textLink {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .1em
}

.textLink span {
    margin-left: 8px
}

.manifest {
    padding: 120px 7vw;
    display: grid;
    grid-template-columns: 12% 54% 1fr;
    gap: 3vw;
    align-items: end;
    background: #f0e9de
}

.sideLabel {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: 10px;
    color: #58716f
}

.manifest h2,
.sectionHead h2,
.delivery h2,
.truth h2,
.order h2 {
    font-size: clamp(45px, 5vw, 72px)
}

.manifestText {
    border-left: 1px solid #a8b4aa;
    padding-left: 30px;
    font-family: 'Cormorant Garamond';
    font-size: 20px;
    line-height: 1.45
}

.delivery {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: 7vw;
    align-items: start;
    padding: 120px 7vw;
    background: #f0e9de
}

.deliverySteps {
    border-top: 1px solid #a8b4aa
}

.deliverySteps article {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 20px;
    padding: 23px 0;
    border-bottom: 1px solid #a8b4aa
}

.deliverySteps article>span {
    padding-top: 5px;
    color: var(--teal);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .14em
}

.deliverySteps h3 {
    margin: 0 0 7px;
    font: italic 29px/1 'Cormorant Garamond'
}

.deliverySteps article p {
    margin: 0;
    color: #506461;
    font: 18px/1.45 'Cormorant Garamond'
}

.deliveryContact {
    margin: 24px 0 0;
    font-size: 12px
}

.deliveryContact a {
    text-decoration: underline;
    text-underline-offset: 4px
}

.flavors,
.gallery,
.catalog {
    padding: 110px 7vw;
    background: #f0e9de
}

.sectionHead {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 55px
}

.sectionHead>p {
    max-width: 390px;
    line-height: 1.7;
    font-size: 14px
}

.catalogFilters {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px
}

.catalogFilters button {
    min-width: 92px;
    padding: 11px 18px;
    border: 1px solid white;
    border-radius: 999px;
    background: white;
    color: var(--coral);
    font: 600 11px Manrope;
    text-transform: uppercase;
    letter-spacing: .08em;
    cursor: pointer;
    transition: transform .18s ease, background-color .2s ease, color .2s ease
}

.catalogFilters button.active {
    border-color: var(--coral);
    background: var(--coral);
    color: white
}

.catalogFilters button:hover {
    transform: scale(1.04)
}

.catalogFilters button:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 3px
}

.flavorGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.flavor {
    background: var(--foam);
    padding: 18px 18px 25px
}

.flavorPhoto {
    height: 290px;
    position: relative;
    overflow: hidden
}

.flavorPhoto img {
    height: 100%;
    transition: transform .5s
}

.flavor:hover img {
    transform: scale(1.04)
}

.flavorPhoto span {
    position: absolute;
    left: 12px;
    top: 12px;
    background: #fff;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    font-size: 10px
}

.flavor>p {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin: 18px 0 5px;
    color: #5f7370
}

.flavor h3 {
    font-family: 'Cormorant Garamond';
    font-size: 34px;
    margin: 0 0 20px;
    font-style: italic
}

.flavor a {
    border-top: 1px solid #cbd0ca;
    padding-top: 13px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em
}

.flavorPhoto:after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 34%;
    background: linear-gradient(transparent, rgba(0, 0, 0, .14))
}

.galleryGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px
}

.galleryItem {
    background: var(--foam);
    padding: 18px 18px 25px
}

.galleryGrid:not(.expanded) .galleryItem:nth-child(n+7) {
    display: none
}

.galleryPhoto {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 4;
    padding: 0;
    border: 0;
    position: relative;
    overflow: hidden;
    background: transparent;
    cursor: zoom-in
}

.galleryPhoto img {
    height: 100%;
    transition: transform .5s
}

.galleryItem:hover .galleryPhoto img {
    transform: scale(1.04)
}

.galleryItem>p {
    margin: 18px 0 5px;
    color: #5f7370;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .12em
}

.galleryItem h3 {
    min-height: 68px;
    margin: 0;
    font: italic 34px/1 'Cormorant Garamond'
}

.galleryToggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100%, 310px);
    margin: 38px auto 0;
    padding: 16px 23px;
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    font: 600 12px Manrope;
    text-transform: uppercase;
    letter-spacing: .08em;
    cursor: pointer
}

.galleryToggle:hover {
    background: var(--ink);
    color: white
}

.galleryLightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(8, 36, 34, .88);
    cursor: zoom-out
}

.galleryLightboxContent {
    position: relative;
    width: min(100%, 1000px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: var(--foam);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .3);
    cursor: default
}

.galleryLightboxImage {
    position: relative
}

.galleryLightboxImage>img {
    display: block;
    width: 100%;
    max-height: calc(100vh - 155px);
    object-fit: contain;
    background: #102d2b
}

.galleryLightboxClose,
.galleryLightboxNav {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: var(--ink);
    font: 30px/1 Arial, sans-serif;
    cursor: pointer
}

.galleryLightboxNav {
    top: 50%;
    width: 44px;
    height: 44px;
    transform: translateY(-50%)
}

.galleryLightboxPrevious {
    left: 12px;
    right: auto
}

.galleryLightboxNext {
    right: 12px
}

.galleryLightboxNav:hover {
    background: #fff
}

.galleryLightboxNav:focus-visible,
.galleryLightboxClose:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px #fff
}

.galleryLightboxCaption {
    padding: 18px 22px 22px
}

.galleryLightboxCaption p {
    margin: 0 0 5px;
    color: #5f7370;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .12em
}

.galleryLightboxCaption h3 {
    margin: 0;
    font: italic 32px/1.1 'Cormorant Garamond'
}

.catalogGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.catalogCard {
    display: flex;
    flex-direction: column;
    background: var(--foam);
    padding: 18px 18px 25px
}

.catalogGrid:not(.expanded) .catalogCard:nth-child(n+7) {
    display: none
}

.catalogPhoto {
    display: block;
    width: 100%;
    height: 290px;
    padding: 0;
    border: 0;
    position: relative;
    overflow: hidden;
    background-color: #f4ead8;
    background-image: url('public/textures/cream-paper.webp');
    background-size: 384px 384px;
    background-repeat: repeat;
    color: inherit;
    cursor: pointer
}

.catalogProductImage {
    height: 100%;
    object-fit: contain;
    transition: transform .5s
}

.catalogCard:hover .catalogProductImage {
    transform: scale(1.04)
}

.catalogPrice {
    position: absolute;
    right: 12px;
    top: 12px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 12px #173b3917;
    font-size: 10px;
    font-weight: 600
}

.productModalIcons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px
}

.productModalIcon {
    display: block;
    width: 56px;
    height: 59px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px #173b3920)
}

.catalogFlavor {
    min-height: 12px;
    margin: 18px 0 5px;
    color: #5f7370;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .12em
}

.catalogCard h3 {
    margin: 0 0 14px;
    font: italic 34px/1 'Cormorant Garamond'
}

.catalogTitleButton {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer
}

.catalogCardTitleRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px
}

.catalogCardTitleRow h3 {
    flex: 1;
    min-width: 0;
    margin: 0
}

.catalogQuantityControls {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px
}

.catalogQuantityControls>span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--coral);
    color: white;
    font-size: 18px;
    font-weight: 700
}

.catalogDecrease,
.catalogIncrease {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 5px;
    border: 0;
    border-radius: 50%;
    background: white;
    color: var(--coral);
    font: 24px/1 Manrope;
    cursor: pointer;
    transition: transform .18s ease, background-color .18s ease, color .18s ease
}

.catalogIncrease svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-linejoin: round
}

.catalogDecrease:hover,
.catalogIncrease:hover {
    transform: scale(1.08)
}

.catalogDecrease:active,
.catalogIncrease:active {
    transform: scale(.94);
    background: var(--coral);
    color: white;
    transition-duration: .08s
}

.catalogPhoto:focus-visible,
.catalogTitleButton:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px
}

.catalogDescription {
    margin: 0 0 18px;
    color: #506461;
    font: 20px/1.5 'Cormorant Garamond'
}

.catalogNutrition {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: auto 0 18px;
    padding-top: 13px;
    border-top: 1px solid #cbd0ca;
    color: #5f7370;
    font-size: 10px
}

.catalogNutrition span {
    text-transform: uppercase;
    letter-spacing: .06em
}

.catalogToggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100%, 310px);
    margin: 38px auto 0;
    padding: 16px 23px;
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    font: 600 12px Manrope;
    text-transform: uppercase;
    letter-spacing: .08em;
    cursor: pointer
}

.catalogToggle:hover {
    background: var(--ink);
    color: white
}

.productModal {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    width: min(100%, 960px);
    max-height: min(760px, calc(100vh - 48px));
    overflow: hidden;
    background: var(--foam);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28)
}

.productModalClose {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    background: rgba(245, 240, 231, .92)
}

.productModalPhoto {
    min-height: 600px;
    background-color: #f4ead8;
    background-image: url('public/textures/cream-paper.webp');
    background-size: 384px 384px;
    overflow: hidden
}

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

.productModalContent {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 54px 42px 38px
}

.productModalContent .catalogFlavor {
    min-height: 0;
    margin: 0 56px 8px 0
}

.productModalContent h2 {
    margin: 0 48px 30px 0;
    font: italic 54px/1 'Cormorant Garamond'
}

.productComposition {
    padding-top: 22px;
    border-top: 1px solid #cbd0ca
}

.productComposition h3 {
    margin: 0 0 10px;
    font: 600 10px/1.3 Manrope;
    text-transform: uppercase;
    letter-spacing: .12em
}

.productModal .catalogDescription {
    margin-bottom: 26px
}

.productModal .catalogNutrition {
    margin: 0 0 24px
}

.productModal .catalogNutrition strong {
    color: var(--ink);
    font-weight: 600
}

.productModalFooter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #cbd0ca
}

.productModalPrice {
    color: var(--ink);
    font: 600 28px/1 'Cormorant Garamond'
}

.productModalQuantity {
    gap: 9px
}

.cartOverlay {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(8, 36, 34, .76)
}

.cartFlyer {
    position: fixed;
    z-index: 200;
    margin: 0;
    border-radius: 15px;
    object-fit: contain;
    pointer-events: none;
    background-color: #f4ead8;
    box-shadow: 0 12px 34px rgba(8, 36, 34, .3);
    will-change: transform, opacity
}

.cartModal {
    display: flex;
    flex-direction: column;
    width: min(100%, 720px);
    max-height: min(780px, calc(100vh - 48px));
    padding: 34px;
    background: var(--foam);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28)
}

.cartHead {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #cbd0ca
}

.cartHead .eyebrow {
    margin-bottom: 8px
}

.cartHead h2 {
    margin: 0;
    font: italic 48px/1 'Cormorant Garamond'
}

.cartCloseIcon {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #aebbb5;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    font: 29px/1 Arial, sans-serif;
    cursor: pointer
}

.cartList {
    overflow-y: auto
}

.cartItem {
    display: grid;
    grid-template-columns: 92px 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #cbd0ca
}

.cartItem>img {
    width: 92px;
    height: 76px;
    object-fit: contain;
    background-color: #f4ead8;
    background-image: url('public/textures/cream-paper.webp');
    background-size: 192px 192px
}

.cartItemName p {
    margin: 0 0 4px;
    color: #647874;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .1em
}

.cartItemName h3 {
    margin: 0;
    font: italic 27px/1.1 'Cormorant Garamond'
}

.cartEmpty {
    display: grid;
    place-items: center;
    min-height: 245px;
    padding: 34px;
    text-align: center
}

.cartEmpty>span {
    color: var(--teal);
    font: 42px/1 'Cormorant Garamond'
}

.cartEmpty h3 {
    margin: 12px 0 4px;
    font: italic 30px/1.1 'Cormorant Garamond'
}

.cartEmpty p {
    margin: 0;
    color: #647874;
    font-size: 12px
}

.cartFooter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 22px;
    padding-top: 24px
}

.cartTotal {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    white-space: nowrap
}

.cartTotal span {
    color: #647874;
    font: 600 8px/1 Manrope;
    text-transform: uppercase;
    letter-spacing: .1em
}

.cartTotal strong {
    color: var(--ink);
    font: 600 30px/1 'Cormorant Garamond'
}

.cartFooter .primary {
    min-width: 210px;
    margin-left: auto
}

.cartFooter .primary.disabled {
    opacity: .45;
    cursor: not-allowed
}

.truth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 760px;
    overflow: hidden;
}

.truthPhoto {
    position: relative;
    overflow: hidden
}

.truthPhoto img {
    height: 100%;
    transition: transform .5s
}

.truth:hover .truthPhoto img {
    transform: scale(1.04)
}

.truthPhoto span {
    position: absolute;
    bottom: 25px;
    left: 25px;
    color: white;
    font: italic 24px 'Cormorant Garamond';
    background: #173b39c7;
    padding: 8px 13px
}

.truthCopy {
    padding: 90px 8vw 70px 7vw;
    background: #123e3b;
    color: white
}

.truthCopy>p:not(.eyebrow) {
    font: 19px/1.5 'Cormorant Garamond';
    max-width: 520px;
    margin: 32px 0
}

.truth ul {
    list-style: none;
    padding: 0;
    margin-top: 38px
}

.truth li {
    border-top: 1px solid #ffffff33;
    padding: 17px 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .11em
}

.truth li span {
    display: inline-block;
    width: 55px;
    color: #9ec7bc
}

.gift {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #db655f;
    color: white;
    overflow: hidden
}

.giftCopy {
    padding: 100px 7vw
}

.gift h2 {
    font-size: clamp(50px, 5.2vw, 78px)
}

.gift p:not(.eyebrow) {
    font: 21px/1.45 'Cormorant Garamond';
    max-width: 530px;
    margin: 30px 0
}

.giftPhoto {
    min-height: 650px;
    overflow: hidden
}

.giftPhoto img {
    height: 100%;
    transition: transform .5s
}

.gift:hover .giftPhoto img {
    transform: scale(1.04)
}

.primary.light {
    background: white;
    color: var(--ink)
}

.order {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.orderIntro {
    padding: 120px 7vw;
    background: #db655f;
    color: white
}

.orderFormPanel {
    padding: 120px 7vw;
    background: #123e3b;
    color: white
}

.orderIntro>p:not(.eyebrow) {
    font: 20px/1.5 'Cormorant Garamond';
    margin: 28px 0
}

.contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px
}

.contacts a {
    text-decoration: underline;
    text-underline-offset: 4px
}

.contacts span {
    color: #68807b;
    margin-top: 9px
}

.orderIntro .contacts span {
    color: white
}

form {
    display: flex;
    flex-direction: column;
    gap: 25px
}

label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .14em
}

input,
select,
textarea {
    display: block;
    width: 100%;
    border: 0;
    border-bottom: 1px solid #879a94;
    background: white;
    padding: 12px 14px 10px;
    font: 17px 'Cormorant Garamond';
    color: var(--ink);
    outline: none;
    border-radius: 0
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--teal)
}

textarea {
    resize: vertical
}

form small {
    font-size: 9px;
    color: #74827f;
    line-height: 1.5
}

.orderWebsite {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden
}

.formError {
    margin: -7px 0 0;
    padding: 12px 14px;
    border-left: 3px solid var(--coral);
    background: rgba(235, 90, 100, .12);
    color: #ffd9dc;
    font-size: 12px;
    line-height: 1.5
}

.orderFormPanel .primary:disabled {
    opacity: .62;
    cursor: wait
}

.orderFormPanel form small {
    color: #9ec7bc
}

.success {
    border: 1px solid #a9b8b1;
    padding: 45px;
    align-self: start
}

.success>span {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--coral);
    color: white;
    font-size: 24px
}

.success h3 {
    font: italic 38px 'Cormorant Garamond';
    margin: 24px 0 10px
}

.success p {
    line-height: 1.6
}

.success button {
    display: block;
    border: 0;
    background: none;
    color: inherit;
    text-decoration: underline;
    margin-top: 20px;
    cursor: pointer
}

footer {
    background: #0e3634;
    color: white;
    padding: 45px 7vw;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    align-items: center;
    gap: 30px
}

footer p {
    font: italic 18px 'Cormorant Garamond'
}

.footerBrand {
    gap: 14px
}

.footerBrand img {
    filter: brightness(0) invert(1);
    flex-shrink: 0
}

.footerBrand span {
    color: white
}

footer>div {
    display: flex;
    gap: 18px;
    font-size: 12px
}

footer>span {
    font-size: 10px;
    color: #9cb0ab
}

@media(max-width:800px) {
    .nav {
        height: 64px;
        padding: 0 20px;
        grid-template-columns: auto 1fr auto
    }

    .nav nav {
        display: none
    }

    .cartTrigger {
        margin-left: auto;
        margin-right: 9px
    }

    .cartLabel {
        display: none
    }

    .hero {
        height: 760px;
        min-height: 0
    }

    .heroCopy {
        left: 24px;
        right: 24px;
        top: 72px
    }

    .hero h1 {
        font-size: 52px
    }

    .lead {
        font-size: 19px
    }

    .manifest {
        padding: 80px 24px;
        display: block
    }

    .delivery {
        display: block;
        padding: 80px 24px
    }

    .sideLabel {
        display: none
    }

    .manifestText,
    .deliverySteps {
        margin-top: 35px
    }

    .sectionHead {
        display: block
    }

    .sectionHead>p {
        margin-top: 28px
    }

    .catalogFilters {
        justify-content: flex-start;
        margin-top: 28px
    }

    .flavors,
    .gallery,
    .catalog {
        padding: 80px 20px
    }

    .flavorGrid,
    .galleryGrid,
    .catalogGrid {
        grid-template-columns: 1fr 1fr
    }

    .flavorPhoto,
    .catalogPhoto {
        height: 210px
    }

    .flavor,
    .galleryItem,
    .catalogCard {
        padding: 10px 10px 20px
    }

    .flavor h3,
    .galleryItem h3,
    .catalogCard h3 {
        font-size: 27px
    }

    .truth,
    .gift,
    .order {
        grid-template-columns: 1fr
    }

    .truthPhoto {
        height: 520px
    }

    .truthCopy,
    .giftCopy {
        padding: 75px 24px
    }

    .giftPhoto {
        min-height: 0;
        height: 520px;
        grid-row: 1
    }

    .orderIntro,
    .orderFormPanel {
        padding: 75px 24px
    }

    footer {
        grid-template-columns: 1fr 1fr;
        padding: 40px 24px
    }

    footer p {
        display: none
    }

    footer .footerBrand {
        grid-column: 1 / -1
    }
}

@media(prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important
    }
}

@media(max-width:480px) {
    .actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px
    }

    .flavorGrid,
    .galleryGrid,
    .catalogGrid {
        grid-template-columns: 1fr
    }

    .flavorPhoto,
    .catalogPhoto {
        height: 350px
    }

    .sectionHead h2,
    .manifest h2,
    .delivery h2,
    .truth h2,
    .gift h2,
    .order h2 {
        font-size: 47px
    }

    .truthPhoto,
    .giftPhoto {
        height: 420px
    }

    .galleryLightbox {
        padding: 12px
    }

    .galleryLightboxContent {
        max-height: calc(100vh - 24px)
    }

    .galleryLightboxImage>img {
        max-height: calc(100vh - 130px)
    }

    .cartOverlay {
        align-items: end;
        padding: 0
    }

    .cartModal {
        width: 100%;
        max-height: calc(100vh - 24px);
        padding: 24px 18px 20px
    }

    .cartHead {
        padding-bottom: 18px
    }

    .cartHead h2 {
        font-size: 41px
    }

    .cartItem {
        grid-template-columns: 72px 1fr;
        gap: 13px;
        padding: 13px 0
    }

    .cartItem>img {
        width: 72px;
        height: 64px
    }

    .cartItemName h3 {
        font-size: 23px
    }

    .cartQuantity {
        grid-column: 2;
        grid-row: 2;
        margin-top: -7px
    }

    .cartFooter {
        gap: 18px
    }

    .cartFooter .primary {
        min-width: 0;
        margin-left: auto
    }

    footer>div {
        flex-direction: column
    }
}

.brand {
    display: flex;
    align-items: center;
    height: 100%
}

.brand img {
    width: auto;
    height: 64px;
    object-fit: contain
}

@media(max-width:800px) {
    .brand img {
        height: 54px
    }
}

.menuToggle {
    display: none
}

@media(max-width:800px) {
    .nav nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 20px 22px;
        background: rgba(245, 240, 231, .98);
        border-bottom: 1px solid #173b3926;
        box-shadow: 0 14px 28px rgba(23, 59, 57, .12)
    }

    .nav nav.mobileOpen {
        display: flex
    }

    .nav nav>a {
        padding: 14px 4px;
        border-bottom: 1px solid #173b391a;
        font-size: 14px
    }

    .menuToggle {
        width: 44px;
        height: 44px;
        padding: 10px 7px;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        border: 0;
        background: transparent;
        color: var(--ink);
        cursor: pointer
    }

    .menuToggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: currentColor;
        transition: transform .2s ease, opacity .2s ease
    }

    .menuToggle[aria-expanded="true"] span:first-child {
        transform: translateY(7px) rotate(45deg)
    }

    .menuToggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0
    }

    .menuToggle[aria-expanded="true"] span:last-child {
        transform: translateY(-7px) rotate(-45deg)
    }
}

@media(max-width:800px) {
    .productModal {
        grid-template-columns: 1fr;
        width: min(100%, 620px);
        overflow-y: auto
    }

    .productModalPhoto {
        min-height: 0;
        height: 340px
    }

    .productModalContent {
        overflow: visible;
        padding: 30px 24px 28px
    }

    .productModalContent h2 {
        margin-bottom: 24px;
        font-size: 45px
    }
}

@media(max-width:480px) {
    .productModal {
        width: 100%;
        max-height: calc(100vh - 24px)
    }

    .productModalPhoto {
        height: 280px
    }

    .productModalClose {
        top: 12px;
        right: 12px
    }
}

/* Обёртка страницы из исходного layout. */
.pageBackground {
    width: 100%;
    background: linear-gradient(135deg, #fff8ec 0%, #d3cca7 42%, #7ea99d 100%);
}

.pageContainer {
    max-width: 1440px;
    min-height: 100vh;
    margin: 0 auto;
    box-shadow: 0 0 38px rgba(23, 59, 57, 0.24);
}

/* Вся коллекция доступна без JavaScript. При JS сохраняем исходные окна. */
[hidden],
html:not(.js) [data-js-only],
.js .catalogDetails {
    display: none !important;
}

.catalogDetails {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.6;
}

.catalogDetails summary {
    cursor: pointer;
}

.catalogDetails .productComposition {
    margin-top: 16px;
}

@media (max-width: 800px) {
    html:not(.js) .nav {
        height: auto;
        min-height: 76px;
        grid-template-columns: 1fr;
        gap: 16px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    html:not(.js) .nav nav {
        position: static;
        display: flex;
        flex-wrap: wrap;
        width: auto;
        padding: 0;
        border: 0;
    }
}
