/* Product page. */

.product-lot-stock {
    margin: 0 0 0.75rem;
    width: 100%;
}

.product-buy {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: 3.5rem;
}
@media (min-width: 1024px) {
    .product-buy {
        grid-template-columns: minmax(17rem, 22rem) minmax(0, 1fr);
        gap: 1.25rem 2.25rem;
    }
}
.product-buy__visual {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
}
.product-hero-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fff;
    border: 1px solid #f3f0ea;
}
html.dark .product-hero-frame {
    background: #1C191F;
    border-color: #3A353C;
}
.product-hero-frame__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-roast {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}
html.dark .product-roast {
    border-top-color: #3A353C;
}
.product-lot-facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem 1.25rem;
    margin: 0 0 0.85rem;
    padding: 0 0 0.85rem;
    border-bottom: 1px solid #e5e7eb;
}
@media (min-width: 640px) {
    .product-lot-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
    }
}
html.dark .product-lot-facts {
    border-bottom-color: #3A353C;
}
.product-lot-facts div {
    min-width: 0;
}
.product-lot-facts dt {
    display: inline-flex;
    align-items: center;
    gap: 0.28em;
    margin: 0 0 0.2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8B8490;
}
.product-lot-facts dd {
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.35;
    color: #111;
    text-transform: none;
}
html.dark .product-lot-facts dd {
    color: #D6D0C8;
}
.product-buy__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.product-buy__form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    margin-top: 0.35rem;
}
.product-buy__form form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
.product-buy__info h1 {
    font-size: 1.85rem;
}
@media (min-width: 768px) {
    .product-buy__info h1 {
        font-size: 2.15rem;
    }
}
.product-buy__cart {
    margin-top: auto;
    padding-top: 0.35rem;
}

.product-sheet {
    margin: 0 0 4.5rem;
    background: #f7f4ef;
    border-top: 3px solid #722EA8;
    padding: 1.5rem 1.35rem 1.65rem;
}
html.dark .product-sheet {
    background: #1C191F;
}
.product-sheet__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid #e0d9ce;
}
html.dark .product-sheet__head {
    border-bottom-color: #3A353C;
}
.product-sheet__kicker {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #722EA8;
    margin: 0 0 0.3rem;
}
.product-sheet h2,
.product-sheet h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0;
    color: #111;
}
html.dark .product-sheet h2,
html.dark .product-sheet h3 {
    color: #D6D0C8;
}
.product-sheet__stamps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}
.product-sheet__stamps span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid #722EA8;
    color: #722EA8;
    padding: 0.35rem 0.55rem;
}
.product-sheet__steps {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0.75rem 0.15rem 0.9rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 1rem;
    border-bottom: 1px solid #e0d9ce;
}
@media (min-width: 768px) {
    .product-sheet__steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.75rem;
    }
}
html.dark .product-sheet__steps {
    border-bottom-color: #3A353C;
}
.product-sheet__steps li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}
.product-sheet__steps span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #722EA8;
}
.product-sheet__steps strong {
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111;
}
html.dark .product-sheet__steps strong {
    color: #D6D0C8;
}
.product-sheet__body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .product-sheet__body {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        gap: 1.75rem 2rem;
        align-items: stretch;
    }
}
.product-sheet__specs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #e0d9ce;
    border: 1px solid #e0d9ce;
}
html.dark .product-sheet__specs {
    background: #3A353C;
    border-color: #3A353C;
}
.product-sheet__specs li {
    background: #fbfaf7;
    padding: 0.7rem 0.8rem 0.8rem;
    min-height: 4.4rem;
}
html.dark .product-sheet__specs li {
    background: #121014;
}
.product-sheet__specs-span {
    grid-column: 1 / -1;
}
.product-sheet__specs span {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8B8490;
    margin-bottom: 0.35rem;
}
.product-sheet__specs strong {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #111;
}
html.dark .product-sheet__specs strong {
    color: #D6D0C8;
}
.product-sheet__process {
    background: #fff;
    border: 1px solid #e0d9ce;
    padding: 1.1rem 1.15rem 1.2rem;
}
html.dark .product-sheet__process {
    background: #121014;
    border-color: #3A353C;
}
.product-sheet__process h3 {
    font-size: 1.15rem;
    margin-bottom: 0.7rem;
}
.product-sheet__process > p {
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    line-height: 1.65;
    color: #4b5563;
    margin: 0;
}
.product-sheet__trail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 1rem;
    margin: 0.9rem 0 0;
}
.product-sheet__trail dt {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8B8490;
    margin: 0 0 0.2rem;
}
.product-sheet__trail dd {
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: #111;
}
html.dark .product-sheet__process > p {
    color: #a8a29a;
}
html.dark .product-sheet__trail dd {
    color: #D6D0C8;
}

img[src*="angel-cajamarca"] {
    object-position: 50% 32%;
}

/* Product page shell */
.product-page {
    max-width: 1400px;
    margin: 0 auto;
}
.product-empty {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    text-align: center;
}
.product-empty__title {
    font-family: 'Inter', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.product-empty__copy {
    font-family: 'Inter', sans-serif;
    color: #4b5563;
    margin-bottom: 2rem;
}
html.dark .product-empty__copy {
    color: #9ca3af;
}
.product-empty__cta {
    padding: 0.75rem 1.5rem;
    background: #111111;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.3s;
    display: inline-block;
}
.product-empty__cta:hover {
    background: #FF3B30;
}
html.dark .product-empty__cta {
    background: #fff;
    color: #121014;
}
html.dark .product-empty__cta:hover {
    background: #e5e7eb;
}
.product-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #111;
    text-decoration: none;
    padding: 0;
}
html.dark .product-back {
    color: #D6D0C8;
}
.product-back:hover {
    color: #FF3B30;
}
.product-type-kicker {
    font-family: 'JetBrains Mono', monospace;
    color: #FF3B30;
}
.product-buy__desc {
    font-family: 'Inter', sans-serif;
}
.product-sca-badge {
    font-family: 'JetBrains Mono', monospace;
}
.product-qty-input {
    width: 3.5rem;
    padding: 0.5rem;
    background: transparent;
    border: 1px solid #111111;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    outline: none;
    -moz-appearance: textfield;
}
html.dark .product-qty-input {
    border-color: #D6D0C8;
    color: #D6D0C8;
}
.btn-lab--stretch-y {
    padding: 0.5rem 0;
}
.product-chuncho-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}
.product-chuncho-gallery__cell {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #fff;
}
html.dark .product-chuncho-gallery__cell {
    background: #121014;
}
.product-chuncho-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.7s;
}
.product-section {
    border-top: 1px solid #e5e7eb;
    padding: 4rem 0;
}
html.dark .product-section {
    border-top-color: #3A353C;
}
.product-section__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}
.product-section__grid--center {
    align-items: center;
}
.product-section__grid--start {
    align-items: start;
}
@media (max-width: 768px) {
    .product-section__grid {
        grid-template-columns: 1fr;
    }
}
.product-producer__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.7s;
}
.product-producer__img:hover {
    filter: grayscale(0);
}
.product-producer__panel {
    background: #1a3c2f;
    color: #fff;
    padding: 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.product-producer__title {
    font-family: 'Inter', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.product-producer__copy {
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}
.lab-title--kicker {
    border-bottom: none;
    margin-bottom: 4px;
    color: #FF6464;
    display: block;
    font-size: 8px;
}
.product-flavor__heading {
    font-family: 'Inter', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}
.product-flavor__copy {
    font-family: 'Inter', sans-serif;
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}
html.dark .product-flavor__copy {
    color: #9ca3af;
}
.flavor-wheel {
    width: min(100%, 28rem);
    aspect-ratio: 1;
    border-radius: 50%;
    background: conic-gradient(#194d33 0% 25%, #f0f0f0 25% 50%, #111111 50% 75%, #e5e5e5 75% 100%);
    position: relative;
    margin: 0 auto;
    border: 1px solid #e5e7eb;
    box-shadow: none;
}
.flavor-label {
    position: absolute;
    transform: translate(-50%, -50%);
    font-family: 'Inter', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    z-index: 5;
    pointer-events: none;
}
.flavor-label--tr { top: 25%; left: 75%; }
.flavor-label--br { top: 75%; left: 75%; }
.flavor-label--bl { top: 75%; left: 25%; }
.flavor-label--tl { top: 25%; left: 25%; }
.flavor-label.dark-text {
    color: #111;
}
.flavor-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    max-width: 40%;
    max-height: 40%;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    font-size: 0.8rem;
    z-index: 10;
    border: 1px solid #e5e7eb;
    box-shadow: none;
}
.flavor-inner__label {
    font-size: 10px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.flavor-inner__value {
    font-size: 1.25rem;
}
html.dark .flavor-wheel {
    background: conic-gradient(#194d33 0% 25%, #333333 25% 50%, #000000 50% 75%, #444444 75% 100%);
}
html.dark .flavor-inner {
    background: #0a0a0a;
    color: #fff;
}
html.dark .flavor-label.dark-text {
    color: #ccc;
}
.product-page input[type="number"]::-webkit-inner-spin-button,
.product-page input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
    height: 1.5rem;
    width: 1.25rem;
    cursor: pointer;
}
html.dark .product-page input[type="number"] {
    color: #fff;
}
html.dark .product-page input[type="number"]::-webkit-inner-spin-button,
html.dark .product-page input[type="number"]::-webkit-outer-spin-button {
    filter: invert(1);
}
.product-origin-map {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}
.product-origin-map__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.product-origin__title {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.product-origin__copy {
    font-family: 'Inter', sans-serif;
    color: #4b5563;
    margin-bottom: 2rem;
}
html.dark .product-origin__copy {
    color: #9ca3af;
}
.product-origin__cta {
    padding: 0.75rem 1.5rem;
    border: 1px solid #111;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    transition: all 0.3s;
    text-decoration: none;
    color: #111;
    display: inline-block;
}
html.dark .product-origin__cta {
    border-color: #D6D0C8;
    color: #D6D0C8;
}
@media (max-width: 768px) {
    .flavor-wheel {
        width: min(250px, 90vw);
    }
    .flavor-label {
        font-size: 0.6rem;
    }
    .flavor-inner {
        width: 100px;
        height: 100px;
    }
    .flavor-inner__value {
        font-size: 1rem;
    }
    .flavor-inner__label {
        font-size: 8px;
    }
}
@media (max-width: 480px) {
    .flavor-wheel {
        width: min(200px, 88vw);
    }
    .flavor-label {
        font-size: 0.5rem;
    }
    .flavor-inner {
        width: 80px;
        height: 80px;
    }
    .flavor-inner__value {
        font-size: 0.875rem;
    }
    .flavor-inner__label {
        font-size: 7px;
    }
}

/* More coffees */
.related-coffees {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 4.5rem;
    border-top: 1px solid #e5e7eb;
}
html.dark .related-coffees {
    border-top-color: #3A353C;
}
.related-coffees__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.related-coffees__title {
    font-family: 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #111;
    margin: 0 0 0.25rem;
}
html.dark .related-coffees__title {
    color: #D6D0C8;
}
.related-coffees__lede {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8B8490;
    margin: 0;
}
.related-coffees__nav {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}
.related-coffees__btn {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #111;
    color: #111;
    cursor: pointer;
}
.related-coffees__btn:hover {
    background: #111;
    color: #F4F0EA;
}
html.dark .related-coffees__btn {
    border-color: #D6D0C8;
    color: #D6D0C8;
}
html.dark .related-coffees__btn:hover {
    background: #D6D0C8;
    color: #121014;
}
.related-coffees__track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.related-coffees__track::-webkit-scrollbar {
    display: none;
}
.related-coffees__slide {
    flex: 0 0 min(18.5rem, 78vw);
    scroll-snap-align: start;
    min-width: 0;
}
.related-coffees__slide .coffee-product-card {
    height: 100%;
}
