/*
Theme Name: Sip'n Bite Theme
Theme URI: https://sofiawinespot.com
Author: OpenAI
Description: Custom WooCommerce front-end for Sip ’n Bite – Sofia Wine Spot.
Version: 0.1.0
Text Domain: sipnbite
*/

:root {
    --sb-bg: #0f0f0f;
    --sb-bg-soft: #171717;
    --sb-text: #f3eee6;
    --sb-muted: #b5aca0;
    --sb-line: rgba(255,255,255,.09);
    --sb-accent: #c38a37;
    --sb-max: 1240px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--sb-bg);
    color: var(--sb-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.sb-wrap { width: min(var(--sb-max), calc(100% - 40px)); margin: 0 auto; }
.sb-section { padding: 48px 0; }
.sb-eyebrow { color: var(--sb-accent); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.sb-title { font-size: clamp(32px, 5vw, 58px); line-height: 1.05; margin: 10px 0 16px; }
.sb-copy { color: var(--sb-muted); max-width: 760px; }
.sb-grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; }
.sb-card { background: var(--sb-bg-soft); border: 1px solid var(--sb-line); border-radius: 22px; padding: 24px; }
.sb-pill { display: inline-flex; padding: 7px 11px; border: 1px solid var(--sb-line); border-radius: 999px; color: var(--sb-muted); font-size: 13px; }
.sb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--sb-accent);
    color: var(--sb-text);
}
.sb-map-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.sb-map-grid a { padding: 18px; border: 1px solid var(--sb-line); border-radius: 18px; background: var(--sb-bg-soft); }
.sb-identity-strip { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.sb-kv { border-top: 1px solid var(--sb-line); padding: 14px 0; }
.sb-accordion summary { cursor: pointer; font-weight: 600; }
.single-product div.product form.cart { margin-top: 18px; }
@media (max-width: 900px) {
    .sb-grid-2 { grid-template-columns: 1fr; }
    .sb-map-grid { grid-template-columns: 1fr; }
}

/* Homepage map integration from approved HTML prototype */
/* === Bulgaria Map v9 (offsets updated) === */
.map-wrap{ background: transparent; border: none; box-shadow: none; padding: 0; }
.map-stage{ width:100%; display:flex; justify-content:center; position:relative; }
.bg-map9{ width:min(980px, 100%); height:auto; display:block; }

.bg-map9 .shape{
  stroke: rgba(244,241,235,.92);
  stroke-width: 2.6;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  paint-order: stroke fill;
  transition: filter .14s ease;
}
.bg-map9 .shape--static{ cursor: default; }
.bg-map9 a.reg:hover .shape{ filter: brightness(1.05) saturate(1.05); }
.bg-map9 a.reg:focus-visible .shape{
  outline: none;
  stroke: rgba(184,155,94,.95);
  stroke-width: 3.6;
}
.bg-map9 .label{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-weight: 600;
  letter-spacing: -0.2px;
  pointer-events:none;
  paint-order: stroke fill;
  stroke: rgba(0,0,0,.40);
  stroke-width: 3.2;
  stroke-linejoin: round;
  fill: rgba(244,241,235,.92);
}
.bg-map9 .sip-logo{ pointer-events:none; }


.map-tooltip9{
  position:absolute;
  background:#111;
  color:#F4F1EB;
  border:1px solid rgba(184,155,94,.65);
  padding:10px 12px;
  font-size:13px;
  line-height:1.35;
  max-width: 260px;
  opacity:0;
  transform: translateY(6px);
  transition: opacity .12s ease, transform .12s ease;
  pointer-events:none;
  z-index:5;
}
.map-stage[data-tip="on"] .map-tooltip9{ opacity:1; transform: translateY(0); }


/* Remove the temporary focus/active rectangle on click */
.bg-map9 a.reg,
.bg-map9 a.reg:focus,
.bg-map9 a.reg:focus-visible,
.bg-map9 a.reg:active {
  outline: none !important;
}
/* Remove tap highlight on mobile */
.bg-map9 a.reg { -webkit-tap-highlight-color: transparent; }


/* Remove hero image frame */
.hero-media{
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
}
.hero-media .frame{
  background: transparent !important;
}


.sb-regions-module .eyebrow,
.sb-regions-module .h2,
.sb-regions-module .sub {
    text-align: center;
}
.sb-regions-module .eyebrow {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sb-muted);
    margin-bottom: 14px;
}
.sb-regions-module .h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 600;
    font-size: clamp(32px, 4vw, 40px);
    line-height: 1.1;
    margin: 0 0 12px;
    color: var(--sb-text);
}
.sb-regions-module .sub {
    color: var(--sb-muted);
    margin: 0 auto;
    max-width: 720px;
    font-size: 15px;
}
.tax-sb_region .term-description { color: var(--sb-muted); max-width: 780px; }
.tax-sb_region .woocommerce-ordering, .tax-sb_region .woocommerce-result-count { display: none; }

.sb-site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(14px);
    background: rgba(15,15,15,.82);
    border-bottom: 1px solid var(--sb-line);
}
.sb-header-inner,
.sb-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 78px;
}
.sb-brand {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
}
.sb-brand-mark {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 30px;
    line-height: 1;
}
.sb-brand-sub,
.sb-footer-copy {
    color: var(--sb-muted);
    font-size: 13px;
}
.sb-header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}
.sb-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 0;
}
.sb-menu a {
    color: var(--sb-muted);
    font-size: 14px;
}
.sb-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--sb-line);
    border-radius: 999px;
}
.sb-lang-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 34px;
    padding: 0 10px;
    color: var(--sb-muted);
    border-radius: 999px;
    font-size: 13px;
}
.sb-lang-switcher a.is-active {
    background: rgba(195,138,55,.14);
    color: var(--sb-text);
}
.sb-site-footer {
    border-top: 1px solid var(--sb-line);
    padding: 28px 0 40px;
    margin-top: 36px;
}
.sb-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px 20px;
}
.sb-footer-links a {
    color: var(--sb-muted);
    font-size: 14px;
}
.sb-page-card .sb-page-content {
    max-width: 760px;
    color: var(--sb-text);
}
.sb-page-card .sb-page-content p,
.sb-page-card .sb-page-content li {
    color: var(--sb-muted);
}
@media (max-width: 900px) {
    .sb-header-inner,
    .sb-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 0;
    }
    .sb-header-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .sb-menu {
        flex-wrap: wrap;
        gap: 12px;
    }
    .sb-footer-links {
        justify-content: flex-start;
    }
}



/* ----------------------------------------------------------
   Product page polish based on approved Pamid Barrique mock
   ---------------------------------------------------------- */

body.single-product {
    background: #F4F1EB;
    color: #1C1C1C;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.single-product .sb-site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(244,241,235,.72);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #E2DDD5;
}

body.single-product .sb-wrap,
body.single-product .sb-product-container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

body.single-product .sb-header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

body.single-product .sb-brand {
    display: flex;
    gap: 8px;
    align-items: baseline;
    color: #1C1C1C;
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    letter-spacing: .02em;
}

body.single-product .sb-brand-mark,
body.single-product .sb-brand-sub {
    font-size: 20px;
}

body.single-product .sb-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

body.single-product .sb-menu,
body.single-product .sb-site-nav ul {
    display: flex;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

body.single-product .sb-menu a,
body.single-product .sb-site-nav a,
body.single-product .sb-lang-switcher a {
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #6F6B65;
}

body.single-product .sb-lang-switcher a.is-active {
    color: #1C1C1C;
}

body.single-product #site-content {
    overflow: hidden;
}

body.single-product .sb-site-footer {
    padding: 50px 0 60px;
    background: #F4F1EB;
    color: #6F6B65;
    border-top: 1px solid #E2DDD5;
}

body.single-product .sb-footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    font-size: 13px;
}

body.single-product .sb-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
}

body.single-product .sb-product-page {
    color: #1C1C1C;
}

body.single-product .sb-product-hero {
    padding: 84px 0 64px;
}

body.single-product .sb-product-hero-grid,
body.single-product .sb-product-section-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 56px;
    align-items: start;
}

body.single-product .sb-product-image-card {
    border: 1px solid #E2DDD5;
    padding: 22px;
    background: transparent;
}

body.single-product .sb-product-image-wrap {
    background: #111;
    overflow: hidden;
}

body.single-product .sb-product-image-wrap img,
body.single-product .sb-product-image {
    width: 100%;
    display: block;
    height: auto;
}

body.single-product .sb-product-kicker {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #6F6B65;
    margin-bottom: 10px;
}

body.single-product .sb-product-title {
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.5px;
    font-size: 46px;
    margin: 0 0 10px;
    color: #1C1C1C;
}

body.single-product .sb-product-subline {
    font-family: "Cormorant Garamond", serif;
    font-size: 20px;
    color: #3b3834;
    margin: 0 0 10px;
}

body.single-product .sb-product-selected {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 14px;
    color: #B89B5E;
    margin: 0 0 22px;
}

body.single-product .sb-product-price {
    font-size: 26px;
    font-weight: 600;
    margin: 0 0 14px;
    color: #1C1C1C;
}

body.single-product .sb-product-price .woocommerce-Price-amount {
    color: inherit;
}

body.single-product .sb-product-checks {
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
    color: #3b3834;
}

body.single-product .sb-product-checks li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 8px 0;
    font-size: 14px;
}

body.single-product .sb-product-checks svg,
body.single-product .sb-product-pill svg {
    flex: 0 0 auto;
    margin-top: 4px;
    color: #B89B5E;
}

body.single-product .sb-product-buybox form.cart {
    display: flex;
    gap: 10px;
    margin: 0 0 12px;
    flex-wrap: nowrap;
    align-items: stretch;
}

body.single-product .sb-product-buybox .quantity {
    order: 2;
    margin: 0 !important;
}

body.single-product .sb-product-buybox .quantity .qty {
    width: 120px;
    min-width: 120px;
    height: 54px;
    border: 1px solid #E2DDD5;
    background: transparent;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
    color: #1C1C1C;
}

body.single-product .sb-product-buybox .single_add_to_cart_button.button {
    order: 1;
    flex: 1 1 auto;
    height: 54px;
    border: 1px solid #1C1C1C;
    background: #1C1C1C;
    color: #F4F1EB;
    border-radius: 0;
    font-weight: 500;
    letter-spacing: .4px;
    transition: all .25s ease;
}

body.single-product .sb-product-buybox .single_add_to_cart_button.button:hover {
    border-color: #B89B5E;
    box-shadow: 0 0 0 2px rgba(184,155,94,.18) inset;
    background: #1C1C1C;
    color: #F4F1EB;
}

body.single-product .sb-product-buybox .stock {
    display: none;
}

body.single-product .sb-product-microtrust {
    color: #6F6B65;
    font-size: 13px;
}

body.single-product .sb-product-identity {
    border-top: 1px solid #E2DDD5;
    border-bottom: 1px solid #E2DDD5;
    padding: 26px 0;
    margin-top: 34px;
}

body.single-product .sb-product-id-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

body.single-product .sb-product-id-item {
    padding: 8px 4px;
}

body.single-product .sb-product-id-label {
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #6F6B65;
    margin-bottom: 6px;
}

body.single-product .sb-product-id-value {
    font-family: "Cormorant Garamond", serif;
    font-size: 18px;
    color: #2f2d2a;
    line-height: 1.2;
}

body.single-product .sb-product-section {
    padding: 104px 0;
}

body.single-product .sb-product-section-alt,
body.single-product .sb-product-details-section {
    background: #ECE7DF;
    border-top: 1px solid #E2DDD5;
    border-bottom: 1px solid #E2DDD5;
}

body.single-product .sb-product-section-title {
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    font-size: 30px;
    line-height: 1.15;
    margin: 0 0 22px;
    color: #2f2d2a;
}

body.single-product .sb-product-section-title-center {
    margin-bottom: 8px;
}

body.single-product .sb-product-editorial {
    position: relative;
    padding-left: 22px;
}

body.single-product .sb-product-editorial::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 2px;
    height: calc(100% - 8px);
    background: #B89B5E;
    opacity: .75;
}

body.single-product .sb-product-lead {
    font-size: 18px;
    font-family: "Cormorant Garamond", serif;
    color: #2f2d2a;
    margin: 0 0 18px;
}

body.single-product .sb-product-body {
    max-width: 680px;
    color: #2f2d2a;
    font-size: 16px;
    line-height: 1.7;
}

body.single-product .sb-product-body p {
    margin: 0 0 18px;
}

body.single-product .sb-product-subsection-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 24px;
    line-height: 1.2;
    margin: 56px 0 14px;
    color: #2f2d2a;
}

body.single-product .sb-product-bullets {
    margin: 14px 0 0;
    padding-left: 18px;
    color: #2f2d2a;
    font-size: 15px;
}

body.single-product .sb-product-bullets li {
    margin: 8px 0;
}

body.single-product .sb-product-meta-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 22px;
    color: #6F6B65;
    font-size: 13px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

body.single-product .sb-product-meta-row span {
    border-bottom: 1px solid rgba(184,155,94,.35);
    padding-bottom: 2px;
}

body.single-product .sb-product-taste-card {
    background: #F7F4EF;
    border: 1px solid #E2DDD5;
    padding: 26px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

body.single-product .sb-product-taste-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

body.single-product .sb-product-taste-label {
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #6F6B65;
}

body.single-product .sb-product-taste-tagline {
    font-family: "Cormorant Garamond", serif;
    font-size: 22px;
    font-weight: 600;
    margin-top: 2px;
    color: #2f2d2a;
}

body.single-product .sb-product-taste-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    align-items: start;
}

body.single-product .sb-product-dial {
    border: 1px solid rgba(184,155,94,.35);
    padding: 18px;
    background: rgba(244,241,235,.6);
}

body.single-product .sb-product-dial svg {
    width: 100%;
    height: auto;
    display: block;
}

body.single-product .sb-product-notes {
    font-size: 15px;
    color: #2f2d2a;
}

body.single-product .sb-product-note-line {
    margin: 10px 0;
}

body.single-product .sb-product-note-line strong {
    font-weight: 600;
}

body.single-product .sb-product-pill-row {
    margin-top: 22px;
    border-top: 1px solid #E2DDD5;
    padding-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
    color: #2f2d2a;
    font-size: 14px;
}

body.single-product .sb-product-pill {
    display: flex;
    gap: 10px;
    align-items: center;
}

body.single-product .sb-product-taste-footer {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #E2DDD5;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #2f2d2a;
    font-size: 14px;
}

body.single-product .sb-product-taste-value {
    font-weight: 600;
    color: #2f2d2a;
}

body.single-product .sb-product-pairings {
    padding: 110px 0 120px;
}

body.single-product .sb-product-center {
    text-align: center;
}

body.single-product .sb-product-pairings-note {
    color: #6F6B65;
    font-size: 14px;
}

body.single-product .sb-product-pair-grid {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

body.single-product .sb-product-pair-card {
    border: 1px solid #E2DDD5;
    background: #F7F4EF;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

body.single-product .sb-product-pair-img {
    height: 140px;
    background: linear-gradient(135deg, rgba(0,0,0,.08), rgba(0,0,0,.02));
}

body.single-product .sb-product-pair-name {
    padding: 16px 16px 18px;
    font-family: "Cormorant Garamond", serif;
    font-size: 18px;
    line-height: 1.2;
    color: #2f2d2a;
}

body.single-product .sb-product-experience {
    background: #1C1C1C;
    color: #F4F1EB;
    padding: 118px 0;
}

body.single-product .sb-product-experience .sb-product-container {
    max-width: 860px;
    text-align: center;
}

body.single-product .sb-product-experience h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 38px;
    margin: 0 0 14px;
    font-weight: 600;
    line-height: 1.1;
    color: #F4F1EB;
}

body.single-product .sb-product-experience p {
    margin: 0 auto 26px;
    max-width: 720px;
    color: rgba(244,241,235,.86);
    font-size: 16px;
}

body.single-product .sb-product-divider {
    width: 72px;
    height: 1px;
    background: rgba(184,155,94,.7);
    margin: 22px auto 28px;
}

body.single-product .sb-product-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 22px;
    border: 1px solid #B89B5E;
    background: transparent;
    color: #F4F1EB;
    letter-spacing: .8px;
    text-transform: uppercase;
    font-size: 12px;
    transition: all .25s ease;
}

body.single-product .sb-product-btn-outline:hover {
    background: #B89B5E;
    color: #111;
}

body.single-product .sb-product-details-section {
    padding: 104px 0;
}

body.single-product .sb-product-accordion {
    border-top: 1px solid #E2DDD5;
}

body.single-product .sb-product-accordion details {
    border-bottom: 1px solid #E2DDD5;
    padding: 16px 0;
}

body.single-product .sb-product-accordion summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    user-select: none;
}

body.single-product .sb-product-accordion summary::-webkit-details-marker {
    display: none;
}

body.single-product .sb-product-sum-title {
    font-size: 13px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #2f2d2a;
}

body.single-product .sb-product-plus {
    width: 18px;
    height: 18px;
    position: relative;
    flex: 0 0 auto;
    opacity: .8;
}

body.single-product .sb-product-plus::before,
body.single-product .sb-product-plus::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    background: #B89B5E;
}

body.single-product .sb-product-plus::before {
    width: 18px;
    height: 1px;
}

body.single-product .sb-product-plus::after {
    width: 1px;
    height: 18px;
    transition: transform .2s ease;
}

body.single-product .sb-product-accordion details[open] .sb-product-plus::after {
    transform: scaleY(0);
}

body.single-product .sb-product-detail-body {
    margin-top: 12px;
    color: #2f2d2a;
    font-size: 15px;
    max-width: 820px;
}

body.single-product .sb-product-detail-body p {
    margin: 0 0 12px;
}

body.single-product .woocommerce-notices-wrapper {
    margin-bottom: 12px;
}

body.single-product .woocommerce-message,
body.single-product .woocommerce-error,
body.single-product .woocommerce-info {
    background: rgba(184,155,94,.08);
    border: 1px solid rgba(184,155,94,.35);
    color: #2f2d2a;
}

@media (max-width: 980px) {
    body.single-product .sb-product-hero {
        padding: 56px 0 40px;
    }

    body.single-product .sb-product-hero-grid,
    body.single-product .sb-product-section-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    body.single-product .sb-product-title {
        font-size: 34px;
    }

    body.single-product .sb-product-id-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    body.single-product .sb-product-section,
    body.single-product .sb-product-details-section {
        padding: 74px 0;
    }

    body.single-product .sb-product-taste-grid {
        grid-template-columns: 1fr;
    }

    body.single-product .sb-product-pair-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    body.single-product .sb-product-experience h2 {
        font-size: 30px;
    }

    body.single-product .sb-footer-inner {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    body.single-product .sb-menu,
    body.single-product .sb-site-nav ul {
        display: none;
    }

    body.single-product .sb-product-id-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    body.single-product .sb-product-pair-grid {
        grid-template-columns: 1fr;
    }

    body.single-product .sb-product-buybox form.cart {
        flex-direction: column;
    }

    body.single-product .sb-product-buybox .quantity .qty,
    body.single-product .sb-product-buybox .single_add_to_cart_button.button {
        width: 100%;
        min-width: 0;
    }

    body.single-product .sb-header-inner {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    body.single-product .sb-header-actions {
        width: 100%;
        justify-content: space-between;
    }
}


/* ----------------------------------------------------------
   Shop filters + product archive cards
   ---------------------------------------------------------- */

body.post-type-archive-product,
body.tax-sb_region,
body.tax-sb_grape,
body.tax-sb_winery {
    background: #F4F1EB;
    color: #1C1C1C;
}

body.post-type-archive-product .sb-site-header,
body.tax-sb_region .sb-site-header,
body.tax-sb_grape .sb-site-header,
body.tax-sb_winery .sb-site-header {
    background: rgba(244,241,235,.78);
    border-bottom: 1px solid #E2DDD5;
}

body.post-type-archive-product .sb-brand,
body.tax-sb_region .sb-brand,
body.tax-sb_grape .sb-brand,
body.tax-sb_winery .sb-brand,
body.post-type-archive-product .sb-brand-mark,
body.tax-sb_region .sb-brand-mark,
body.tax-sb_grape .sb-brand-mark,
body.tax-sb_winery .sb-brand-mark,
body.post-type-archive-product .sb-menu a,
body.tax-sb_region .sb-menu a,
body.tax-sb_grape .sb-menu a,
body.tax-sb_winery .sb-menu a {
    color: #1C1C1C;
}

body.post-type-archive-product .sb-brand-sub,
body.tax-sb_region .sb-brand-sub,
body.tax-sb_grape .sb-brand-sub,
body.tax-sb_winery .sb-brand-sub,
body.post-type-archive-product .sb-footer-copy,
body.tax-sb_region .sb-footer-copy,
body.tax-sb_grape .sb-footer-copy,
body.tax-sb_winery .sb-footer-copy,
body.post-type-archive-product .sb-footer-links a,
body.tax-sb_region .sb-footer-links a,
body.tax-sb_grape .sb-footer-links a,
body.tax-sb_winery .sb-footer-links a {
    color: #6F6B63;
}

.sb-shop-hero {
    padding: 46px 0 26px;
}

.sb-shop-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 24px;
    align-items: end;
}

.sb-shop-title {
    margin-bottom: 14px;
    color: #1C1C1C;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(36px, 4.6vw, 58px);
}

.sb-shop-copy {
    color: #6F6B63;
    max-width: 760px;
}

.sb-shop-stat {
    border: 1px solid #DED8CF;
    background: rgba(255,255,255,.38);
    padding: 20px 18px;
    text-align: center;
}

.sb-shop-stat__value {
    font-family: "Cormorant Garamond", serif;
    font-size: 42px;
    line-height: 1;
    color: #1C1C1C;
}

.sb-shop-stat__label {
    margin-top: 6px;
    color: #6F6B63;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sb-shop-layout {
    padding-top: 12px;
}

.sb-shop-layout__grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.sb-filter-shell {
    position: sticky;
    top: 96px;
}

.sb-filter-form {
    border: 1px solid #DED8CF;
    background: rgba(255,255,255,.42);
    padding: 22px;
}

.sb-filter-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
    margin-bottom: 18px;
}

.sb-filter-eyebrow {
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #9A8D73;
    margin-bottom: 6px;
}

.sb-filter-title {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 32px;
    line-height: 1;
    color: #1C1C1C;
}

.sb-filter-reset {
    color: #9A8D73;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sb-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.sb-filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border: 1px solid #DDD4C7;
    background: #FAF8F4;
    color: #5E574D;
    font-size: 12px;
}

.sb-filter-grid {
    display: grid;
    gap: 14px;
}

.sb-filter-field label {
    display: block;
    margin: 0 0 7px;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6F6B63;
}

.sb-filter-field select,
.sb-filter-field input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #DDD5CA;
    background: #FCFBF8;
    padding: 0 14px;
    color: #1C1C1C;
    font-size: 14px;
}

.sb-filter-lock {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid #DDD5CA;
    background: #F7F3EC;
    color: #1C1C1C;
}

.sb-price-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sb-filter-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.sb-btn--solid {
    width: 100%;
    min-height: 48px;
    border-radius: 0;
    background: #1C1C1C;
    border-color: #1C1C1C;
    color: #F4F1EB;
}

.sb-btn--ghost {
    border-color: #C5B089;
    color: #1C1C1C;
    background: transparent;
}

.sb-filter-hint {
    color: #7A746A;
    font-size: 12px;
    line-height: 1.5;
}

.sb-shop-term-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.sb-shop-results ul.products {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.sb-shop-results ul.products::before,
.sb-shop-results ul.products::after {
    display: none !important;
}

.sb-product-card {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    border: 1px solid #DED8CF;
    background: rgba(255,255,255,.44);
}

.sb-product-card__media {
    display: block;
    aspect-ratio: 0.88;
    background: #F9F6F0;
    overflow: hidden;
}

.sb-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sb-product-card__body {
    padding: 18px 18px 20px;
}

.sb-product-card__topline,
.sb-product-card__meta,
.sb-product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.sb-product-card__topline {
    color: #9A8D73;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.sb-product-card__title {
    margin: 0 0 8px !important;
    padding: 0 !important;
    color: #1C1C1C;
    font-family: "Cormorant Garamond", serif;
    font-size: 34px !important;
    line-height: .98;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.sb-product-card__subtitle {
    color: #6F6B63;
    font-size: 14px;
    line-height: 1.5;
    min-height: 42px;
}

.sb-product-card__meta {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #E4DED4;
    color: #6F6B63;
    font-size: 13px;
}

.sb-product-card__stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6F6B63;
}

.sb-product-card__stock::before {
    content: '•';
    font-size: 16px;
}

.sb-product-card__stock.is-instock::before {
    color: #B99755;
}

.sb-product-card__stock.is-outofstock::before {
    color: #B14D3A;
}

.sb-product-card__link {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 14px;
    border: 1px solid #C5B089;
    color: #1C1C1C;
    font-size: 13px;
}

.sb-shop-empty {
    border: 1px solid #DED8CF;
    background: rgba(255,255,255,.42);
    padding: 34px;
}

.sb-shop-empty h2 {
    margin: 0 0 12px;
    font-family: "Cormorant Garamond", serif;
    font-size: 34px;
    color: #1C1C1C;
}

.sb-shop-empty p {
    margin: 0 0 18px;
    color: #6F6B63;
}

@media (max-width: 1024px) {
    .sb-shop-layout__grid {
        grid-template-columns: 1fr;
    }

    .sb-filter-shell {
        position: static;
    }
}

@media (max-width: 760px) {
    .sb-shop-hero__grid {
        grid-template-columns: 1fr;
    }

    .sb-shop-results ul.products {
        grid-template-columns: 1fr;
    }

    .sb-price-row {
        grid-template-columns: 1fr;
    }

    .sb-shop-title {
        font-size: 42px;
    }
}

html.sb-has-overlay,
html.sb-has-overlay body {
    overflow: hidden;
}

.sb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid #C5B089;
    background: transparent;
    color: #1C1C1C;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sb-btn--dark {
    background: #191919;
    border-color: #191919;
    color: #F4F0E8;
}

.sb-btn--ghost {
    background: transparent;
}

.sb-age-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.sb-age-gate[hidden],
.sb-consent[hidden] {
    display: none !important;
}
.sb-age-gate__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, .72);
    backdrop-filter: blur(3px);
}

.sb-age-gate__dialog {
    position: relative;
    width: min(560px, 100%);
    padding: 34px;
    border: 1px solid rgba(197, 176, 137, .55);
    background: #F4F0E8;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .18);
    text-align: center;
}

.sb-age-gate__eyebrow,
.sb-consent__eyebrow {
    margin: 0 0 12px;
    color: #9A845F;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.sb-age-gate__title,
.sb-consent__title {
    margin: 0 0 12px;
    font-family: "Cormorant Garamond", serif;
    font-size: 42px;
    line-height: 1;
    color: #1C1C1C;
}

.sb-age-gate__text,
.sb-consent__text {
    margin: 0;
    color: #5F5B53;
}

.sb-age-gate__actions,
.sb-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.sb-age-gate__actions {
    justify-content: center;
}

.sb-age-gate__note {
    margin: 14px 0 0;
    color: #7A756B;
    font-size: 13px;
}

.sb-consent {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 9998;
}

.sb-consent__panel {
    margin-left: auto;
    width: min(760px, 100%);
    padding: 22px 24px;
    border: 1px solid rgba(197, 176, 137, .65);
    background: rgba(244, 240, 232, .98);
    box-shadow: 0 14px 44px rgba(0, 0, 0, .12);
}

.sb-consent__controls {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #DED8CF;
}

.sb-consent__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #DED8CF;
    color: #1C1C1C;
}

.sb-consent__toggle.is-locked {
    background: rgba(255,255,255,.45);
}

.sb-consent__toggle input {
    width: 18px;
    height: 18px;
}

.sb-checkout-age-field {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #DED8CF;
    background: rgba(255,255,255,.55);
}

.sb-checkout-age-field label {
    color: #1C1C1C;
    font-size: 14px;
    line-height: 1.55;
}

@media (max-width: 760px) {
    .sb-age-gate__dialog,
    .sb-consent__panel {
        padding: 22px;
    }

    .sb-age-gate__title,
    .sb-consent__title {
        font-size: 34px;
    }

    .sb-consent {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
}

/* ==========================================================
   CHECKOUT / CART / ACCOUNT — isolated layout fix only
   ========================================================== */

/* Widen normal page wrapper only on Woo pages */
body.woocommerce-cart .sb-page-card .sb-page-content,
body.woocommerce-checkout .sb-page-card .sb-page-content,
body.woocommerce-account .sb-page-card .sb-page-content,
body.woocommerce-cart .sb-page-content,
body.woocommerce-checkout .sb-page-content,
body.woocommerce-account .sb-page-content,
body.woocommerce-cart .entry-content,
body.woocommerce-checkout .entry-content,
body.woocommerce-account .entry-content,
body.woocommerce-cart .wp-block-post-content,
body.woocommerce-checkout .wp-block-post-content,
body.woocommerce-account .wp-block-post-content {
    width: min(1200px, calc(100% - 40px)) !important;
    max-width: none !important;
    margin: 0 auto !important;
}

body.woocommerce-cart .woocommerce,
body.woocommerce-checkout .woocommerce,
body.woocommerce-account .woocommerce {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
}

/* Checkout: page grid */
body.woocommerce-checkout form.checkout,
body.woocommerce-checkout form.woocommerce-checkout,
.sb-page-card .sb-page-content form.checkout,
.sb-page-card .sb-page-content form.woocommerce-checkout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 420px !important;
    gap: 40px !important;
    align-items: start !important;
}

/* Left column */
body.woocommerce-checkout #customer_details,
.sb-page-card .sb-page-content form.checkout #customer_details,
.sb-page-card .sb-page-content form.woocommerce-checkout #customer_details {
    grid-column: 1 !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
}

body.woocommerce-checkout .col2-set,
.sb-page-card .sb-page-content form.checkout .col2-set,
.sb-page-card .sb-page-content form.woocommerce-checkout .col2-set {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
    grid-template-columns: none !important;
    gap: 0 !important;
}

body.woocommerce-checkout .col2-set .col-1,
body.woocommerce-checkout .col2-set .col-2,
body.woocommerce-checkout #customer_details .col-1,
body.woocommerce-checkout #customer_details .col-2 {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    margin: 0 0 24px 0 !important;
}

body.woocommerce-checkout .col2-set .col-2:empty,
body.woocommerce-checkout #customer_details .col-2:empty {
    display: none !important;
}

/* Right column */
body.woocommerce-checkout #order_review_heading,
.sb-page-card .sb-page-content form.checkout #order_review_heading,
.sb-page-card .sb-page-content form.woocommerce-checkout #order_review_heading {
    display: none !important;
}

body.woocommerce-checkout #order_review,
.sb-page-card .sb-page-content form.checkout #order_review,
.sb-page-card .sb-page-content form.woocommerce-checkout #order_review {
    grid-column: 2 !important;
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
    position: sticky;
    top: 120px;
    padding: 26px 28px;
    border: 1px solid #DED8CF;
    background: rgba(255,255,255,.72);
    box-shadow: 0 16px 40px rgba(0,0,0,.05);
}

/* Keep Woo form fields usable */
body.woocommerce-checkout .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce-shipping-fields {
    padding: 26px 28px;
    border: 1px solid #DED8CF;
    background: rgba(255,255,255,.72);
    box-shadow: 0 16px 40px rgba(0,0,0,.05);
}

body.woocommerce-checkout .woocommerce form .form-row-first,
body.woocommerce-checkout .woocommerce form .form-row-last {
    width: calc(50% - 10px) !important;
    float: left !important;
    clear: none !important;
}

body.woocommerce-checkout .woocommerce form .form-row-first {
    margin-right: 20px !important;
}

body.woocommerce-checkout .woocommerce form .form-row-wide {
    width: 100% !important;
    float: none !important;
    clear: both !important;
}

body.woocommerce-checkout .woocommerce form .form-row input.input-text,
body.woocommerce-checkout .woocommerce form .form-row select,
body.woocommerce-checkout .woocommerce form .form-row textarea {
    width: 100% !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
    border: 1px solid #D6CFC3;
    background: rgba(255,255,255,.85);
}

body.woocommerce-checkout .woocommerce form .form-row textarea {
    min-height: 120px !important;
}

body.woocommerce-checkout #payment {
    border-radius: 0;
    background: rgba(245,241,232,.78);
}

body.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid #DED8CF;
}

body.woocommerce-checkout #payment div.payment_box {
    border: 1px solid rgba(197,176,137,.35);
    background: rgba(255,255,255,.78);
}

body.woocommerce-checkout .sb-checkout-age-field {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #DED8CF;
    background: rgba(255,255,255,.55);
}

@media (max-width: 980px) {
    body.woocommerce-checkout form.checkout,
    body.woocommerce-checkout form.woocommerce-checkout,
    .sb-page-card .sb-page-content form.checkout,
    .sb-page-card .sb-page-content form.woocommerce-checkout {
        grid-template-columns: 1fr !important;
    }

    body.woocommerce-checkout .woocommerce form .form-row-first,
    body.woocommerce-checkout .woocommerce form .form-row-last {
        width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
    }

    body.woocommerce-checkout #order_review,
    .sb-page-card .sb-page-content form.checkout #order_review,
    .sb-page-card .sb-page-content form.woocommerce-checkout #order_review {
        grid-column: auto !important;
        position: static;
    }
}
