@font-face {
    font-family: 'DM Serif Display';
    src: url('../assets/fonts/dm-serif-display-regular.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
    font-display: swap
}

@font-face {
    font-family: Manrope;
    src: url('../assets/fonts/manrope-400.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
    font-display: swap
}

@font-face {
    font-family: Manrope;
    src: url('../assets/fonts/manrope-500.ttf') format('truetype');
    font-style: normal;
    font-weight: 500;
    font-display: swap
}

@font-face {
    font-family: Manrope;
    src: url('../assets/fonts/manrope-600.ttf') format('truetype');
    font-style: normal;
    font-weight: 600;
    font-display: swap
}

@font-face {
    font-family: Manrope;
    src: url('../assets/fonts/manrope-700.ttf') format('truetype');
    font-style: normal;
    font-weight: 700;
    font-display: swap
}

@font-face {
    font-family: Manrope;
    src: url('../assets/fonts/manrope-800.ttf') format('truetype');
    font-style: normal;
    font-weight: 800;
    font-display: swap
}

:root {
    --ivory: #F7F4EF;
    --sand: #EDE6DC;
    --white: #fff;
    --ink: #282321;
    --muted: #746A64;
    --wine: #742F3B;
    --wine-dark: #59222D;
    --gold: #C39A62;
    --line: #DED6CC;
    --success: #477454;
    --sale: #A94735;
    --dark: #211B1C;
    --serif: 'DM Serif Display', Georgia, serif;
    --sans: 'Manrope', sans-serif;
    --shadow: 0 14px 35px rgba(40, 35, 33, .09);
    --max: 1240px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--ivory);
    color: var(--ink);
    font: 15px/1.6 var(--sans)
}

img {
    display: block;
    max-width: 100%
}

button,
input,
select,
textarea {
    font: inherit
}

button,
a {
    -webkit-tap-highlight-color: transparent
}

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

button {
    color: inherit
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0
}

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.1
}

h1 {
    font-size: clamp(2.8rem, 6vw, 5.6rem)
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3rem)
}

h3 {
    font-size: 1.45rem
}

p {
    color: var(--muted)
}

.container {
    width: min(var(--max), calc(100% - 48px));
    margin-inline: auto
}

.eyebrow {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--wine)
}

.section {
    padding: 76px 0
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px
}

.section-heading p {
    max-width: 450px;
    margin: 10px 0 0
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid var(--wine);
    background: var(--wine);
    color: white;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .2s
}

.btn:hover {
    background: var(--wine-dark);
    border-color: var(--wine-dark);
    transform: translateY(-1px)
}

.btn-outline {
    background: transparent;
    color: var(--wine)
}

.btn-outline:hover {
    color: white
}

.btn-small {
    min-height: 40px;
    padding: 0 15px;
    font-size: .68rem
}

.text-link {
    color: var(--wine);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 3px
}

.muted {
    color: var(--muted)
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px
}

.announcement {
    background: var(--dark);
    color: #f7f4ef;
    text-align: center;
    padding: 7px 16px;
    font-size: .7rem;
    letter-spacing: .06em
}

.announcement a {
    color: #dfbd8e;
    font-weight: 800;
    text-decoration: underline;
    margin-left: 8px
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(247, 244, 239, .97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px)
}

.header-main {
    height: 78px;
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    align-items: center;
    gap: 20px
}

.brand-logo img {
    width: 200px;
    height: auto
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2vw, 30px);
    height: 100%
}

.main-nav a {
    font-size: .73rem;
    font-weight: 700;
    color: #4b423e;
    white-space: nowrap;
    position: relative
}

.main-nav a:hover,
.main-nav a[aria-current=page] {
    color: var(--wine)
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px
}

.icon-button {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    display: inline-grid;
    place-items: center;
    position: relative;
    cursor: pointer;
    color: var(--ink)
}

.icon-button:hover {
    color: var(--wine)
}

.icon-button svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7
}

.count-badge {
    position: absolute;
    right: 0;
    top: 0;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 20px;
    background: var(--wine);
    color: white;
    font-size: 10px;
    line-height: 17px;
    text-align: center
}

.mobile-toggle {
    display: none
}

.header-search {
    display: flex;
    align-items: center;
    gap: 6px
}

.header-search input {
    width: 0;
    opacity: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    transition: width .2s, opacity .2s;
    padding: 6px 0
}

.header-search.open input {
    width: 160px;
    opacity: 1
}

.nav-drawer {
    display: none
}

.breadcrumb {
    padding: 20px 0;
    color: var(--muted);
    font-size: .78rem
}

.breadcrumb a:hover {
    color: var(--wine)
}

.page-heading {
    padding: 30px 0 18px
}

.page-heading h1 {
    font-size: clamp(2.4rem, 4.5vw, 4rem);
    margin-bottom: 10px
}

.page-heading p {
    max-width: 660px
}

.hero {
    position: relative;
    min-height: 590px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #302927;
    color: white
}

.hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(22, 18, 17, .82) 0%, rgba(22, 18, 17, .60) 42%, rgba(22, 18, 17, .12) 100%), url('../images/hero/hero.jpg') center 55%/cover
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(var(--max), calc(100% - 48px));
    margin: auto;
    padding: 80px 0
}

.hero .eyebrow {
    color: #dfbd8e
}

.hero h1 {
    max-width: 730px;
    margin: 14px 0 18px
}

.hero p {
    max-width: 540px;
    color: #f1eae2;
    font-size: 1rem
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px
}

.hero .btn-outline {
    border-color: #f7f4ef;
    color: white
}

.hero .btn-outline:hover {
    background: white;
    color: var(--ink)
}

.trust-strip {
    background: var(--white);
    border-bottom: 1px solid var(--line)
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 22px 0
}

.trust-item {
    display: flex;
    gap: 13px;
    align-items: center;
    padding: 2px 22px;
    border-right: 1px solid var(--line)
}

.trust-item:first-child {
    padding-left: 0
}

.trust-item:last-child {
    border: 0
}

.trust-item svg,
.value-card svg {
    width: 27px;
    height: 27px;
    flex: none;
    stroke: var(--wine);
    fill: none;
    stroke-width: 1.6
}

.trust-item strong {
    display: block;
    font-size: .8rem
}

.trust-item span {
    display: block;
    color: var(--muted);
    font-size: .68rem
}

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

.category-card {
    position: relative;
    min-height: 265px;
    background: #d9d0c5;
    overflow: hidden;
    color: white
}

.category-card img {
    width: 100%;
    height: 100%;
    min-height: 265px;
    object-fit: cover;
    transition: transform .5s
}

.category-card:after {
    content: "";
    position: absolute;
    inset: 25% 0 0;
    background: linear-gradient(transparent, rgba(23, 17, 16, .8))
}

.category-card:hover img {
    transform: scale(1.04)
}

.category-copy {
    position: absolute;
    z-index: 1;
    bottom: 20px;
    left: 22px;
    right: 18px
}

.category-copy h3 {
    margin-bottom: 4px
}

.category-copy p {
    margin: 0;
    color: #f2ece6;
    font-size: .8rem
}

.category-arrow {
    position: absolute;
    right: 20px;
    bottom: 22px;
    z-index: 2;
    color: white;
    font-size: 1.3rem
}

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

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: white;
    border: 1px solid transparent;
    transition: box-shadow .25s, border-color .25s, transform .25s
}

.product-card:hover {
    border-color: var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-3px)
}

.product-image-wrap {
    height: 245px;
    background: #f0ede8;
    position: relative;
    overflow: hidden
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s
}

.product-card:hover .product-image {
    transform: scale(1.035)
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    background: var(--gold);
    color: #241e19;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase
}

.product-badge.sale {
    background: var(--sale);
    color: white
}

.wishlist-toggle {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .93);
    display: grid;
    place-items: center;
    cursor: pointer
}

.wishlist-toggle svg {
    width: 18px;
    height: 18px;
    stroke: var(--ink);
    fill: none;
    stroke-width: 1.8
}

.wishlist-toggle.is-active svg {
    fill: var(--wine);
    stroke: var(--wine)
}

.product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px
}

.product-category {
    color: var(--muted);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase
}

.product-info h3 {
    font: 700 .95rem/1.35 var(--sans);
    margin: 5px 0 8px
}

.product-info h3 a:hover {
    color: var(--wine)
}

.rating {
    font-size: .74rem;
    color: var(--muted)
}

.stars {
    color: #a87532;
    letter-spacing: 1px
}

.price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 14px
}

.price {
    font-weight: 800;
    font-size: .95rem
}

.old-price {
    font-size: .8rem;
    color: #8a817b;
    text-decoration: line-through
}

.card-actions {
    margin-top: auto;
    display: flex;
    gap: 8px
}

.card-actions .btn {
    flex: 1
}

.quick-view-btn {
    background: white;
    color: var(--wine);
    min-width: 40px;
    padding: 0 11px
}

.quick-view-btn:hover {
    color: white
}

.empty-results {
    text-align: center;
    padding: 70px 24px;
    background: white;
    border: 1px solid var(--line)
}

.empty-results p {
    margin-bottom: 18px
}

.promo {
    background: var(--dark);
    color: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 390px
}

.promo-copy {
    padding: clamp(35px, 6vw, 78px);
    align-self: center
}

.promo .eyebrow {
    color: #d2ad78
}

.promo h2 {
    max-width: 540px
}

.promo p {
    color: #ddd2cd;
    max-width: 500px
}

.promo-image {
    min-height: 350px;
    background: url('../images/banners/promo.jpg') center/cover
}

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

.journey-card {
    padding: 28px;
    background: var(--sand);
    border-top: 3px solid var(--gold)
}

.journey-card h3 {
    margin: 12px 0 8px
}

.journey-card p {
    font-size: .85rem
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px
}

.value-card {
    background: white;
    padding: 24px;
    border: 1px solid var(--line)
}

.value-card h3 {
    font: 700 .9rem var(--sans);
    margin: 17px 0 7px
}

.value-card p {
    font-size: .78rem;
    margin-bottom: 0
}

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

.testimonial {
    background: white;
    padding: 25px;
    border: 1px solid var(--line)
}

.testimonial blockquote {
    margin: 12px 0;
    color: #514945;
    font-family: var(--serif);
    font-size: 1.15rem;
    line-height: 1.4
}

.testimonial cite {
    font-style: normal;
    font-weight: 800;
    font-size: .78rem
}

.testimonial small {
    display: block;
    color: var(--muted);
    font-size: .7rem
}

.demo-note {
    padding: 11px 15px;
    background: #f1e8d9;
    color: #66553d;
    font-size: .75rem
}

.newsletter {
    background: var(--sand);
    padding: 60px 0
}

.newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px
}

.newsletter h2 {
    margin-bottom: 8px
}

.newsletter p {
    margin: 0
}

.newsletter-form {
    display: flex;
    gap: 8px;
    width: min(480px, 100%)
}

.newsletter-form input {
    flex: 1;
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid var(--line);
    background: white
}

.form-feedback {
    min-height: 1.5em;
    font-size: .8rem;
    color: var(--success)
}

.site-footer {
    background: var(--dark);
    color: white;
    padding: 58px 0 20px
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px
}

.footer-brand img {
    width: 200px;
    filter: brightness(0) invert(1)
}

.footer-brand p {
    max-width: 280px;
    color: #d3c9c5;
    font-size: .8rem;
    margin-top: 18px
}

.footer-column h3 {
    font: 800 .72rem var(--sans);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #d3ad79;
    margin: 5px 0 17px
}

.footer-column a {
    display: block;
    color: #e3dbd7;
    font-size: .78rem;
    margin: 10px 0
}

.footer-column a:hover {
    color: white;
    text-decoration: underline
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 18px
}

.footer-social a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #615653;
    border-radius: 50%;
    color: white
}

.copyright {
    border-top: 1px solid #453d3b;
    margin-top: 42px;
    padding-top: 16px;
    color: #b9aeaa;
    font-size: .72rem;
    display: flex;
    justify-content: center;
}

.shop-layout {
    display: grid;
    grid-template-columns: 245px 1fr;
    gap: 28px;
    padding: 10px 0 80px
}

.filter-panel {
    align-self: start;
    background: white;
    border: 1px solid var(--line);
    padding: 21px;
    position: sticky;
    top: 105px
}

.filter-panel h2 {
    font: 800 .8rem var(--sans);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 16px
}

.filter-group {
    border-top: 1px solid var(--line);
    padding: 16px 0
}

.filter-group h3 {
    font: 800 .73rem var(--sans);
    margin-bottom: 12px
}

.filter-group label {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: .77rem;
    color: #5f5651;
    margin: 9px 0
}

.filter-group input[type=checkbox],
.filter-group input[type=radio] {
    accent-color: var(--wine)
}

.filter-group select,
.shop-toolbar select {
    width: 100%;
    padding: 9px;
    border: 1px solid var(--line);
    background: white
}

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px
}

.shop-toolbar .search-control {
    flex: 1;
    max-width: 360px;
    position: relative
}

.search-control input {
    width: 100%;
    padding: 11px 14px 11px 38px;
    border: 1px solid var(--line);
    background: white
}

.search-control svg {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 18px;
    stroke: var(--muted);
    fill: none
}

.shop-toolbar select {
    width: auto;
    min-width: 175px
}

.results-count {
    font-size: .78rem;
    color: var(--muted)
}

.mobile-filter-trigger {
    display: none
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 30px
}

.pagination button {
    border: 1px solid var(--line);
    background: white;
    min-width: 38px;
    height: 38px;
    cursor: pointer
}

.pagination button[aria-current=page] {
    background: var(--wine);
    color: white
}

.product-detail {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 55px;
    padding: 20px 0 60px
}

.gallery-main {
    height: 510px;
    background: #eee9e3;
    position: relative
}

.gallery-main img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    mix-blend-mode: multiply
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px
}

.gallery-thumb {
    width: 78px;
    height: 72px;
    padding: 0;
    border: 1px solid var(--line);
    background: white;
    cursor: pointer
}

.gallery-thumb.active {
    border: 2px solid var(--wine)
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.product-detail h1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    margin: 8px 0 15px
}

.detail-category {
    font-size: .72rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .12em;
    color: var(--wine)
}

.detail-rating {
    margin-bottom: 18px
}

.detail-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0
}

.detail-price .price {
    font-size: 1.7rem
}

.stock-status {
    color: var(--success);
    font-weight: 700;
    font-size: .8rem
}

.sku {
    font-size: .74rem;
    color: var(--muted);
    margin: 10px 0 20px
}

.purchase-row {
    display: flex;
    gap: 10px;
    margin: 22px 0
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    background: white
}

.quantity-control button {
    width: 39px;
    height: 46px;
    border: 0;
    background: transparent;
    cursor: pointer
}

.quantity-control input {
    width: 42px;
    border: 0;
    text-align: center;
    background: transparent
}

.tabs {
    margin: 35px 0 65px
}

.tab-list {
    display: flex;
    gap: 25px;
    border-bottom: 1px solid var(--line);
    overflow-x: auto
}

.tab-list button {
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 15px 0;
    white-space: nowrap;
    font-weight: 700;
    font-size: .78rem;
    cursor: pointer
}

.tab-list button[aria-selected=true] {
    border-color: var(--wine);
    color: var(--wine)
}

.tab-panel {
    padding: 25px 0;
    max-width: 900px
}

.spec-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 30px
}

.spec-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: .82rem
}

.spec-row span:first-child {
    color: var(--muted)
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(20, 16, 16, .92);
    z-index: 90;
    display: none;
    place-items: center;
    padding: 40px
}

.lightbox.open {
    display: grid
}

.lightbox img {
    max-height: 90vh;
    max-width: 90vw;
    object-fit: contain
}

.lightbox-close {
    position: absolute;
    right: 25px;
    top: 20px;
    color: white;
    background: transparent;
    border: 0;
    font-size: 2rem;
    cursor: pointer
}

.cart-layout,
.checkout-layout {
    display: grid;
    grid-template-columns: 1.5fr .8fr;
    gap: 32px;
    padding-bottom: 75px
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--line)
}

.cart-item img {
    width: 100px;
    height: 90px;
    object-fit: cover;
    background: #eee
}

.cart-item .quantity-control {
    width: max-content;
    margin-top: 10px;
}

.cart-item h3 {
    font: 700 .92rem var(--sans);
    margin: 0 0 5px
}

.cart-item .muted {
    font-size: .75rem
}

.cart-item-end {
    text-align: right
}

.remove-item {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: .75rem;
    text-decoration: underline;
    cursor: pointer
}

.summary-card {
    background: white;
    border: 1px solid var(--line);
    padding: 24px;
    align-self: start
}

.summary-card h2 {
    font-size: 1.5rem;
    margin-bottom: 20px
}

.summary-line {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    font-size: .83rem;
    padding: 9px 0
}

.summary-total {
    border-top: 1px solid var(--line);
    margin-top: 8px;
    padding-top: 17px;
    font-weight: 800;
    font-size: 1rem
}

.summary-card .btn {
    width: 100%;
    margin-top: 15px
}

.empty-cart {
    padding: 55px 20px;
    text-align: center;
    background: white
}

.empty-cart h2 {
    font-size: 2rem
}

.checkout-form {
    background: white;
    border: 1px solid var(--line);
    padding: 26px
}

.checkout-form h2 {
    font-size: 1.55rem;
    margin: 0 0 18px
}

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

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.form-field.full {
    grid-column: 1/-1
}

.form-field label {
    font-size: .73rem;
    font-weight: 800
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 11px;
    border: 1px solid var(--line);
    background: #fff
}

.form-field textarea {
    min-height: 120px;
    resize: vertical
}

.form-field [aria-invalid=true] {
    border-color: var(--sale)
}

.field-error {
    font-size: .72rem;
    color: var(--sale);
    min-height: 1em
}

.payment-options {
    display: grid;
    gap: 10px;
    margin: 15px 0
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    font-size: .82rem
}

.payment-option input {
    accent-color: var(--wine)
}

.demo-warning {
    background: #f4eadb;
    padding: 13px;
    font-size: .76rem;
    color: #68543b
}

.checkout-product {
    display: flex;
    justify-content: space-between;
    font-size: .77rem;
    padding: 8px 0;
    border-bottom: 1px solid #eee
}

.confirmation {
    max-width: 760px;
    margin: 50px auto;
    background: white;
    padding: 42px;
    text-align: center;
    border: 1px solid var(--line)
}

.confirmation-mark {
    margin: auto auto 20px;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e6efe5;
    color: var(--success);
    font-size: 1.8rem
}

.confirmation h1 {
    font-size: 3rem
}

.confirmation-order {
    background: var(--ivory);
    margin-top: 26px;
    padding: 18px;
    text-align: left
}

.content-page {
    max-width: 900px;
    padding-bottom: 80px
}

.content-page h2 {
    font-size: 1.7rem;
    margin: 30px 0 10px
}

.content-page p,
.content-page li {
    font-size: .9rem
}

.content-image {
    width: 100%;
    max-height: 430px;
    object-fit: cover;
    margin: 25px 0
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 30px;
    padding-bottom: 80px
}

.contact-info {
    padding: 28px;
    background: var(--sand)
}

.contact-info h2 {
    font-size: 1.8rem
}

.contact-info p {
    font-size: .86rem
}

.contact-info a {
    color: var(--wine);
    font-weight: 700
}

.notice {
    padding: 13px 15px;
    background: #edf2ec;
    color: var(--success);
    font-size: .82rem;
    margin: 15px 0
}

.error-message {
    color: var(--sale)
}

.quick-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(25, 20, 19, .62);
    display: none;
    place-items: center;
    padding: 20px
}

.quick-modal.open {
    display: grid
}

.quick-dialog {
    position: relative;
    width: min(820px, 100%);
    background: var(--ivory);
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 90vh;
    overflow: auto
}

.quick-dialog img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover
}

.quick-copy {
    padding: 35px;
    align-self: center
}

.quick-copy h2 {
    font-size: 2rem
}

.modal-close {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 38px;
    height: 38px;
    border: 0;
    background: white;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer
}

.toast-region {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100;
    display: grid;
    gap: 9px
}

.toast {
    background: var(--dark);
    color: white;
    padding: 13px 18px;
    box-shadow: var(--shadow);
    font-size: .8rem;
    animation: toast-in .25s ease both
}

.toast.error {
    background: #8a2d27
}

@media(max-width:1050px) {
    .header-main {
        grid-template-columns: 190px 1fr 175px
    }

    .main-nav {
        gap: 13px
    }

    .main-nav a {
        font-size: .66rem
    }

    .brand-logo img {
        width: 175px
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }

    .trust-item {
        padding-inline: 13px
    }

    .footer-grid {
        gap: 25px
    }
}

@media(max-width:800px) {
    .container {
        width: min(100% - 34px, var(--max))
    }

    .section {
        padding: 57px 0
    }

    .announcement {
        font-size: .62rem
    }

    .header-main {
        height: 68px;
        grid-template-columns: 1fr auto
    }

    .brand-logo img {
        width: 168px
    }

    .main-nav,
    .header-actions .account-action {
        display: none
    }

    .header-actions {
        grid-column: 2;
        gap: 2px
    }

    .mobile-toggle {
        display: inline-grid
    }

    .nav-drawer {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(350px, 88vw);
        height: 100dvh;
        background: var(--ivory);
        z-index: 70;
        display: block;
        padding: 23px;
        transform: translateX(105%);
        transition: transform .25s;
        box-shadow: -20px 0 50px rgba(0, 0, 0, .15)
    }

    .nav-drawer.open {
        transform: translateX(0)
    }

    .drawer-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .4);
        z-index: 69;
        display: none
    }

    .drawer-backdrop.open {
        display: block
    }

    .drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--line)
    }

    .drawer-head img {
        width: 170px
    }

    .drawer-nav {
        display: grid;
        padding-top: 18px
    }

    .drawer-nav a {
        padding: 13px 2px;
        border-bottom: 1px solid var(--line);
        font-weight: 700
    }

    .hero {
        min-height: 540px
    }

    .hero:before {
        background: linear-gradient(90deg, rgba(22, 18, 17, .82), rgba(22, 18, 17, .42)), url('../images/hero/hero.jpg') 60%/cover
    }

    .hero-content {
        width: calc(100% - 38px)
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px
    }

    .trust-item {
        border: 0;
        padding: 5px 0
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .category-card,
    .category-card img {
        min-height: 230px
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px
    }

    .product-image-wrap {
        height: 210px
    }

    .product-info {
        padding: 13px
    }

    .promo {
        grid-template-columns: 1fr
    }

    .promo-image {
        min-height: 270px;
        order: -1
    }

    .journey-grid,
    .testimonial-grid {
        grid-template-columns: 1fr
    }

    .value-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .newsletter-inner {
        align-items: flex-start;
        flex-direction: column
    }

    .newsletter-form {
        width: 100%
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr)
    }

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

    .shop-layout {
        grid-template-columns: 1fr
    }

    .filter-panel {
        display: none;
        position: fixed;
        z-index: 60;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(340px, 90vw);
        overflow: auto;
        box-shadow: var(--shadow);
        padding: 25px
    }

    .filter-panel.open {
        display: block
    }

    .mobile-filter-trigger {
        display: inline-flex
    }

    .shop-toolbar {
        flex-wrap: wrap
    }

    .shop-toolbar .search-control {
        order: 3;
        flex: 0 0 100%;
        max-width: none
    }

    .shop-toolbar select {
        min-width: 145px
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 28px
    }

    .gallery-main {
        height: min(75vw, 480px)
    }

    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr
    }

    .contact-layout {
        grid-template-columns: 1fr
    }

    .quick-dialog {
        grid-template-columns: 1fr 1fr
    }

    .quick-dialog img {
        min-height: 300px
    }
}

@media(max-width:520px) {
    body {
        font-size: 14px
    }

    .container {
        width: calc(100% - 28px)
    }

    .section {
        padding: 48px 0
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 22px
    }

    .hero {
        min-height: 525px
    }

    .hero h1 {
        font-size: 3.1rem
    }

    .hero p {
        font-size: .9rem
    }

    .hero-actions .btn {
        width: 100%
    }

    .trust-grid {
        gap: 12px
    }

    .trust-item {
        gap: 9px
    }

    .trust-item svg {
        width: 23px
    }

    .trust-item span {
        font-size: .62rem
    }

    .category-grid {
        gap: 10px
    }

    .category-card,
    .category-card img {
        min-height: 190px
    }

    .category-copy {
        left: 13px;
        bottom: 13px
    }

    .category-copy h3 {
        font-size: 1.15rem
    }

    .category-copy p {
        font-size: .67rem;
        max-width: 90%
    }

    .category-arrow {
        right: 12px;
        bottom: 14px
    }

    .product-grid {
        gap: 9px
    }

    .product-image-wrap {
        height: 155px
    }

    .product-info {
        padding: 10px
    }

    .product-info h3 {
        font-size: .78rem
    }

    .product-category {
        font-size: .57rem
    }

    .price {
        font-size: .85rem
    }

    .rating {
        font-size: .66rem
    }

    .card-actions .btn {
        min-height: 38px;
        padding: 0 7px;
        font-size: .59rem
    }

    .quick-view-btn {
        min-width: 35px
    }

    .wishlist-toggle {
        width: 31px;
        height: 31px
    }

    .value-grid {
        gap: 9px
    }

    .value-card {
        padding: 16px
    }

    .value-card h3 {
        font-size: .8rem
    }

    .footer-grid {
        gap: 22px 14px
    }

    .footer-brand img {
        width: 175px
    }

    .copyright {
        gap: 12px;
        flex-direction: column
    }

    .shop-toolbar select {
        flex: 1;
        min-width: 0
    }

    .results-count {
        flex: 1
    }

    .cart-item {
        grid-template-columns: 72px 1fr auto;
        gap: 10px
    }

    .cart-item img {
        width: 72px;
        height: 72px
    }

    .cart-item-end .price {
        font-size: .78rem
    }

    .cart-item .quantity-control button {
        width: 30px;
        height: 38px
    }

    .cart-item .quantity-control input {
        width: 28px
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    .form-field.full {
        grid-column: auto
    }

    .checkout-form,
    .summary-card {
        padding: 19px
    }

    .spec-list {
        grid-template-columns: 1fr
    }

    .quick-modal {
        padding: 12px
    }

    .quick-dialog {
        grid-template-columns: 1fr
    }

    .quick-dialog img {
        height: 220px;
        min-height: 0
    }

    .quick-copy {
        padding: 22px
    }

    .confirmation {
        margin: 25px auto;
        padding: 25px 18px
    }

    .confirmation h1 {
        font-size: 2.4rem
    }
}

/* Cart drawer */
.mini-cart {
    position: fixed;
    z-index: 85;
    inset: 0 0 0 auto;
    display: flex;
    flex-direction: column;
    width: min(390px, 92vw);
    padding: 24px;
    background: var(--ivory);
    box-shadow: -18px 0 45px rgba(20, 16, 16, .18);
    transform: translateX(110%);
    transition: transform .25s ease;
}

.mini-cart.open {
    transform: translateX(0);
}

.mini-cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    font: 1.45rem var(--serif);
}

.mini-cart-head button {
    border: 0;
    background: transparent;
    font-size: 1.7rem;
    cursor: pointer;
}

.mini-cart-item {
    display: grid;
    grid-template-columns: 65px 1fr;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: .78rem;
}

.mini-cart-item img {
    width: 65px;
    height: 60px;
    object-fit: cover;
    background: #eee;
}

.mini-cart-item small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.mini-cart-bottom {
    margin-top: auto;
}

.mini-cart-bottom .btn {
    width: 100%;
    margin: 8px 0 14px;
}

.mini-cart-bottom .text-link {
    display: table;
    margin: auto;
}

/* Account demo */
.account-heading {
    text-align: center;
    padding-bottom: 24px
}

.account-heading p {
    margin-inline: auto
}

.account-notice {
    max-width: 720px;
    margin: 0 auto 18px
}

.account-card {
    width: min(100%, 520px);
    margin: 0 auto 78px;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(40, 35, 33, .05)
}

.account-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--line);
    margin: -4px 0 26px
}

.account-tabs button {
    padding: 13px 8px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--muted);
    font-weight: 800;
    cursor: pointer
}

.account-tabs button[aria-selected=true] {
    border-bottom-color: var(--wine);
    color: var(--wine)
}

.account-form h2 {
    font-size: 1.8rem;
    margin-bottom: 7px
}

.account-form>p:not(.form-feedback) {
    font-size: .84rem;
    margin-bottom: 22px
}

.account-form .form-field {
    margin: 15px 0
}

.account-form .btn {
    width: 100%;
    margin-top: 8px
}

.account-help {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    font-size: .75rem;
    color: var(--muted)
}

.account-help a {
    color: var(--wine);
    font-weight: 700
}

.account-form[hidden] {
    display: none
}

@media(max-width:520px) {
    .account-card {
        padding: 21px;
        margin-bottom: 50px
    }

    .account-tabs {
        margin-bottom: 20px
    }
}