:root {
    --surface: #f9faf7;
    --surface-lowest: #ffffff;
    --surface-low: #f3f4f1;
    --surface-container: #edeeeb;
    --surface-high: #e7e8e6;
    --surface-highest: #e2e3e0;
    --primary: #000101;
    --on-primary: #ffffff;
    --on-surface: #1a1c1b;
    --on-surface-variant: #44474a;
    --secondary: #466553;
    --outline: #75777a;
    --outline-soft: rgba(0, 1, 1, 0.1);
    --error: #ba1a1a;
}

html {
    scroll-behavior: smooth;
}

body.villa-vini-app {
    min-width: 320px;
    background: var(--surface);
    color: var(--on-surface);
    font-family: Lato, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

.material-symbols-outlined {
    font-family: "Material Symbols Outlined";
    font-size: 24px;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    text-transform: none;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-feature-settings: "liga";
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.app-shell {
    min-height: 100dvh;
    padding-top: 56px;
    padding-bottom: 64px;
}

.admin-bar .app-shell {
    padding-top: 56px;
}

.app-main {
    min-height: calc(100dvh - 120px);
}

.app-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    border-bottom: 1px solid var(--outline-soft);
    background: rgba(249, 250, 247, 0.84);
    backdrop-filter: blur(18px);
}

.admin-bar .app-topbar {
    top: 32px;
}

.app-topbar__inner {
    display: flex;
    width: 100%;
    height: 56px;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.app-topbar__title {
    min-width: 0;
    color: var(--primary);
    font-size: 1.125rem;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.app-topbar__icon {
    position: relative;
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--primary);
    text-decoration: none;
    transition: opacity 150ms ease, transform 150ms ease;
}

.app-topbar__icon:hover {
    opacity: 0.72;
}

.app-topbar__icon:active {
    transform: scale(0.96);
}

.app-topbar__badge {
    position: absolute;
    top: 4px;
    right: 3px;
    display: grid;
    min-width: 16px;
    height: 16px;
    place-items: center;
    border-radius: 999px;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 0.56rem;
    font-weight: 900;
    line-height: 1;
}

.app-mobile-drawer {
    display: grid;
    gap: 8px;
    border-top: 1px solid var(--outline-soft);
    padding: 12px 16px 16px;
    background: rgba(249, 250, 247, 0.96);
}

.app-mobile-drawer.hidden {
    display: none;
}

.app-mobile-drawer a {
    display: flex;
    min-height: 42px;
    align-items: center;
    border: 1px solid var(--outline-soft);
    border-radius: 4px;
    padding: 0 12px;
    background: var(--surface-lowest);
    color: var(--on-surface);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.app-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: flex;
    height: 64px;
    align-items: center;
    justify-content: space-around;
    border-top: 1px solid var(--outline-soft);
    background: rgba(249, 250, 247, 0.88);
    box-shadow: 0 -4px 12px rgba(0, 1, 1, 0.04);
    backdrop-filter: blur(18px);
}

.app-bottom-nav__item {
    position: relative;
    display: grid;
    min-width: 64px;
    height: 56px;
    place-items: center;
    align-content: center;
    border-radius: 4px;
    color: var(--on-surface-variant);
    font-size: 0.68rem;
    line-height: 1.2;
    text-decoration: none;
    transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.app-bottom-nav__item span:last-child {
    margin-top: 3px;
}

.app-bottom-nav__item:hover {
    background: rgba(199, 235, 212, 0.24);
}

.app-bottom-nav__item:active {
    transform: scale(0.94);
}

.app-bottom-nav__item.is-active {
    color: var(--primary);
    font-weight: 900;
}

.app-bottom-nav__item.is-active .material-symbols-outlined {
    font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.app-bottom-nav__item b {
    position: absolute;
    top: 8px;
    right: 16px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--error);
}

.app-catalog {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 16px 16px 32px;
}

.app-catalog__heading {
    display: grid;
    gap: 4px;
    padding: 8px 0 16px;
}

.app-catalog__heading p,
.app-page-card header p {
    margin: 0;
    color: var(--on-surface-variant);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

.app-catalog__heading h1,
.app-page-card header h1 {
    margin: 0;
    color: var(--primary);
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1.16;
}

.app-filter-bar {
    position: sticky;
    top: 56px;
    z-index: 40;
    display: flex;
    gap: 8px;
    margin: 0 -16px 16px;
    overflow-x: auto;
    border-top: 1px solid var(--outline-soft);
    border-bottom: 1px solid var(--outline-soft);
    background: rgba(249, 250, 247, 0.94);
    padding: 8px 16px;
    scrollbar-width: none;
    backdrop-filter: blur(16px);
}

.admin-bar .app-filter-bar {
    top: 88px;
}

.app-filter-bar::-webkit-scrollbar {
    display: none;
}

.app-filter-bar button {
    flex: 0 0 auto;
    min-height: 31px;
    border: 0;
    border-radius: 4px;
    background: var(--surface-high);
    color: var(--on-surface-variant);
    padding: 0 16px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.app-filter-bar button.is-active {
    background: var(--primary);
    color: var(--on-primary);
}

.app-filter-bar button:active {
    transform: scale(0.96);
}

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

.app-product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--outline-soft);
    border-radius: 4px;
    background: var(--surface-lowest);
}

.app-product-card.is-hidden {
    display: none;
}

.app-product-card__image {
    position: relative;
    display: grid;
    aspect-ratio: 3 / 4;
    place-items: center;
    border-bottom: 1px solid var(--outline-soft);
    background: var(--surface-low);
    padding: 16px;
}

.app-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 14px rgba(0, 1, 1, 0.08));
}

.app-product-card__body {
    display: grid;
    flex: 1;
    gap: 12px;
    padding: 12px;
}

.app-product-card h2 {
    display: -webkit-box;
    min-height: 44px;
    margin: 0;
    overflow: hidden;
    color: var(--on-surface);
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.22;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.app-product-card h2 a {
    text-decoration: none;
}

.app-product-card p {
    display: -webkit-box;
    min-height: 40px;
    margin: 4px 0 0;
    overflow: hidden;
    color: var(--on-surface-variant);
    font-size: 0.82rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.app-product-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.app-product-card__meta > span {
    color: var(--primary);
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.2;
}

.app-add-button {
    display: inline-grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border-radius: 999px;
    background: var(--secondary);
    color: var(--on-primary);
    text-decoration: none;
    transition: opacity 150ms ease, transform 150ms ease;
}

.app-add-button .material-symbols-outlined {
    font-size: 18px;
}

.app-add-button:active {
    transform: scale(0.92);
}

.app-empty-state,
.app-page-card,
.app-woo-shell {
    border: 1px solid var(--outline-soft);
    border-radius: 4px;
    background: var(--surface-lowest);
}

.app-empty-state {
    padding: 24px;
}

.app-page,
.app-woo-section {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 16px;
}

.app-page:has(.app-checkout-canvas) {
    width: min(100%, 1080px);
}

.app-page-card {
    padding: clamp(18px, 4vw, 36px);
}

.app-page-card header {
    display: grid;
    gap: 6px;
    margin-bottom: 24px;
}

.app-woo-shell {
    padding: clamp(14px, 3vw, 28px);
}

.app-woo-shell--product {
    border: 0;
    background: transparent;
    padding: 0;
}

.app-footer {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--primary);
    color: var(--on-primary);
}

.app-footer__grid,
.app-footer__synced {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 52px 16px 44px;
}

.app-footer__grid,
.app-footer__synced .wp-block-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 28px;
}

.app-footer__synced .wp-block-columns {
    margin: 0;
}

.app-footer__column {
    display: grid;
    align-content: start;
    gap: 14px;
}

.app-footer__synced .wp-block-column {
    display: grid;
    align-content: start;
    gap: 14px;
    margin: 0;
}

.app-footer__column h2,
.app-footer__synced h5 {
    margin: 0;
    color: var(--on-primary);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.app-footer address,
.app-footer nav,
.app-footer__synced .villa-footer-address,
.app-footer__synced .villa-footer-socials,
.app-footer__synced .wp-block-list,
.app-footer__synced .villa-footer-logos {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.88rem;
    font-style: normal;
    line-height: 1.5;
    list-style: none;
}

.app-footer address p {
    margin: 0;
}

.app-footer a {
    color: inherit;
    text-decoration: none;
}

.app-footer a:hover {
    color: var(--on-primary);
}

.app-footer__logos,
.app-footer__synced .villa-footer-logos {
    display: grid;
    gap: 12px;
    max-width: 210px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.app-footer__logos a,
.app-footer__synced .villa-footer-logos a {
    display: inline-flex;
    max-width: 100%;
}

.app-footer__logos img,
.app-footer__synced .villa-footer-logos img {
    display: block;
    width: auto;
    max-width: min(100%, 170px);
    max-height: 64px;
    object-fit: contain;
}

.app-button-primary,
.app-button-secondary,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button,
.wp-element-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 0 18px;
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.app-button-primary,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce #payment #place_order,
.wp-block-button__link {
    background: var(--primary);
    color: var(--on-primary);
}

.app-button-primary:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce #payment #place_order:hover,
.wp-block-button__link:hover {
    background: #1a1c1e;
    color: var(--on-primary);
}

.app-button-secondary,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button {
    border-color: var(--outline-soft);
    background: var(--surface-lowest);
    color: var(--primary);
}

.woocommerce-notices-wrapper,
.woocommerce-NoticeGroup {
    margin-bottom: 16px;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    margin: 0 0 12px;
    border: 1px solid var(--outline-soft);
    border-radius: 4px;
    background: var(--surface-lowest);
    color: var(--on-surface);
    padding: 12px 14px;
    list-style: none;
}

.woocommerce-info a,
.woocommerce-message a {
    color: var(--secondary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.woocommerce-error {
    border-color: rgba(186, 26, 26, 0.34);
    background: #fff4f1;
}

.woocommerce form .form-row {
    float: none;
    width: 100%;
    margin: 0 0 16px;
    padding: 0;
}

.woocommerce form .form-row-first,
.woocommerce form .form-row-last {
    float: none;
    width: 100%;
}

.woocommerce form .clear {
    display: none;
}

.woocommerce label {
    display: block;
    margin-bottom: 5px;
    color: var(--on-surface-variant);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
}

.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select,
.select2-container--default .select2-selection--single {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    border: 0;
    border-bottom: 1px solid rgba(0, 1, 1, 0.16);
    border-radius: 0;
    background: transparent;
    color: var(--on-surface);
    padding: 8px 0;
    box-shadow: none;
    font-size: 1rem;
}

.woocommerce input.input-text:focus,
.woocommerce textarea:focus,
.woocommerce select:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-bottom-color: var(--primary);
    box-shadow: none;
    outline: none;
}

.woocommerce textarea {
    width: 100%;
    max-width: 100%;
    min-height: 104px;
    resize: vertical;
}

.woocommerce .select2-container,
.woocommerce-page .select2-container {
    width: 100% !important;
    max-width: 100%;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-right: 28px;
    padding-left: 0;
    color: var(--on-surface);
    line-height: 44px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
    right: 0;
}

.woocommerce table.shop_table {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--outline-soft);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 4px;
    background: var(--surface-lowest);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--outline-soft);
    vertical-align: middle;
}

.woocommerce table.shop_table tr:last-child th,
.woocommerce table.shop_table tr:last-child td {
    border-bottom: 0;
}

.woocommerce-cart-form,
.cart_totals,
.woocommerce-checkout-review-order,
#customer_details,
#payment {
    border: 1px solid var(--outline-soft);
    border-radius: 4px;
    background: var(--surface-lowest);
    padding: clamp(14px, 2vw, 22px);
}

.woocommerce-cart-form {
    margin-bottom: 16px;
}

.woocommerce-cart-form .product-thumbnail img {
    max-width: 64px;
    border-radius: 4px;
    background: var(--surface-highest);
}

.quantity .qty {
    min-height: 36px;
    width: 70px;
    border: 1px solid var(--outline-soft);
    border-radius: 4px;
    background: var(--surface-container);
    text-align: center;
}

.coupon {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.coupon .input-text {
    min-width: min(260px, 100%);
}

.woocommerce-checkout #customer_details {
    display: grid;
    gap: 20px;
}

.woocommerce-checkout #customer_details::before,
.woocommerce-checkout #customer_details::after {
    display: none;
}

.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
    float: none;
    width: 100%;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
}

.woocommerce-checkout .woocommerce-additional-fields__field-wrapper {
    display: grid;
    gap: 16px;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper > .form-row,
.woocommerce-checkout .woocommerce-additional-fields__field-wrapper > .form-row {
    min-width: 0;
    margin: 0;
}

.woocommerce-checkout #billing_country_field,
.woocommerce-checkout #billing_address_1_field,
.woocommerce-checkout #billing_address_2_field,
.woocommerce-checkout #billing_phone_field,
.woocommerce-checkout #billing_email_field,
.woocommerce-checkout #shipping_country_field,
.woocommerce-checkout #shipping_address_1_field,
.woocommerce-checkout #shipping_address_2_field,
.woocommerce-checkout #order_comments_field {
    grid-column: 1 / -1;
}

.woocommerce-checkout-review-order-table,
#payment {
    margin-top: 16px;
}

#payment ul.payment_methods {
    margin: 0;
    padding: 0;
    list-style: none;
}

#payment ul.payment_methods li {
    margin-bottom: 10px;
    border: 1px solid var(--outline-soft);
    border-radius: 4px;
    background: var(--surface-lowest);
    padding: 12px;
}

.woocommerce-terms-and-conditions-wrapper {
    margin-top: 14px;
}

.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout,
.wc-block-components-sidebar-layout {
    margin: 0;
}

.wc-block-cart,
.wc-block-components-sidebar-layout,
.wp-block-woocommerce-empty-cart-block {
    color: var(--on-surface);
}

.wp-block-woocommerce-empty-cart-block {
    display: grid;
    gap: 18px;
}

.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title,
.wp-block-woocommerce-empty-cart-block .wp-block-heading {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.2;
}

.wc-block-grid__products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
}

.wc-block-grid__product {
    display: flex;
    flex-direction: column;
    float: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--outline-soft);
    border-radius: 4px;
    background: var(--surface-lowest);
    padding: 0 !important;
    text-align: left;
}

.wc-block-grid__product-link {
    display: grid;
    color: var(--on-surface);
    text-decoration: none;
}

.wc-block-grid__product-image {
    display: grid;
    aspect-ratio: 3 / 4;
    place-items: center;
    border-bottom: 1px solid var(--outline-soft);
    background: var(--surface-low);
    padding: 16px;
}

.wc-block-grid__product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 14px rgba(0, 1, 1, 0.08));
}

.wc-block-grid__product-title,
.wc-block-grid__product-price {
    padding: 0 12px;
}

.wc-block-grid__product-title {
    margin-top: 12px;
    color: var(--on-surface);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.22;
}

.wc-block-grid__product-price {
    margin-top: 8px;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 900;
}

.wc-block-grid__product-add-to-cart {
    margin: 12px !important;
}

.wc-block-grid__product-add-to-cart .wp-block-button__link,
.wc-block-components-button,
.wc-block-components-checkout-place-order-button {
    min-height: 44px;
    border-radius: 4px !important;
    background: var(--primary) !important;
    color: var(--on-primary) !important;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
}

.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.wc-block-components-form .wc-block-components-text-input input[type=email],
.wc-block-components-form .wc-block-components-text-input input[type=tel],
.wc-block-components-form .wc-block-components-text-input input[type=text] {
    border: 0;
    border-bottom: 1px solid rgba(0, 1, 1, 0.16);
    border-radius: 0;
    background: transparent;
}

.app-post-list {
    display: grid;
    gap: 14px;
}

.app-post-card {
    border: 1px solid var(--outline-soft);
    border-radius: 4px;
    background: var(--surface-lowest);
    padding: 16px;
}

.app-post-card h2 {
    margin: 0;
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.2;
}

.app-post-card h2 a {
    text-decoration: none;
}

.app-post-card p {
    margin: 8px 0 0;
    color: var(--on-surface-variant);
}

.vss-checkout-shell {
    width: 100%;
    max-width: 1080px;
    margin-right: auto;
    margin-left: auto;
    border-radius: 4px;
    background: var(--surface-lowest);
    box-shadow: 0 12px 32px rgba(0, 1, 1, 0.05);
}

.vss-checkout-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.vss-checkout-steps::-webkit-scrollbar {
    display: none;
}

.vss-checkout-steps li {
    min-width: 0;
    min-height: 0;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: var(--on-surface-variant);
    padding: 10px 6px;
    text-align: center;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.vss-checkout-steps li span {
    width: 8px;
    height: 8px;
    margin: 0 auto;
    border-radius: 999px;
    background: var(--surface-highest);
    color: transparent;
    font-size: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 1, 1, 0.18);
}

.vss-checkout-steps li.is-active {
    color: var(--primary);
    background: rgba(199, 235, 212, 0.42);
    border-color: rgba(70, 101, 83, 0.22);
    box-shadow: 0 8px 18px rgba(70, 101, 83, 0.08);
}

.vss-checkout-steps li.is-complete {
    color: var(--secondary);
}

.vss-checkout-steps li.is-active span {
    width: 12px;
    height: 12px;
    background: var(--secondary);
    box-shadow: 0 0 0 5px rgba(70, 101, 83, 0.16);
}

.vss-checkout-steps li.is-complete span {
    background: var(--secondary);
    box-shadow: inset 0 0 0 1px rgba(70, 101, 83, 0.32);
}

.vss-checkout-steps li strong {
    display: block;
    overflow: hidden;
    font-size: 0.75rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vss-checkout-steps li.is-active strong {
    font-weight: 900;
}

.vss-checkout-actions {
    position: sticky;
    bottom: 0;
    z-index: 30;
    margin-right: -14px;
    margin-left: -14px;
    border-top: 1px solid var(--outline-soft);
    background: rgba(249, 250, 247, 0.95);
    padding: 12px 14px;
    backdrop-filter: blur(18px);
}

.woocommerce-checkout:not(.woocommerce-order-received) form.checkout {
    width: 100%;
    max-width: 1080px;
}

.woocommerce-checkout:not(.woocommerce-order-received) form.checkout h3 {
    margin: 0 0 16px;
    color: var(--on-surface);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
}

.app-checkout-canvas .woocommerce-form-login-toggle,
.app-checkout-canvas .woocommerce-form-coupon-toggle,
.app-checkout-canvas .woocommerce-form-login,
.app-checkout-canvas .checkout_coupon {
    max-width: 1080px;
    margin-right: auto;
    margin-left: auto;
}

.vss-checkout-prev,
.vss-checkout-next {
    min-height: 44px;
    border-radius: 4px;
    text-transform: uppercase;
}

.vss-checkout-next {
    background: var(--secondary);
    color: var(--on-primary);
}

.vss-checkout-cart-link {
    color: var(--secondary);
}

.vss-checkout-step-carrier #order_review table.shop_table .woocommerce-shipping-totals,
.vss-checkout-consents {
    border: 1px solid var(--outline-soft);
    border-radius: 4px;
    background: var(--surface-low);
}

.single-product div.product .vss-product-sheet {
    grid-template-columns: minmax(280px, 2fr) minmax(0, 3fr);
    gap: clamp(36px, 4vw, 72px);
    width: min(100%, 1640px);
    max-width: none;
    padding: clamp(26px, 4vw, 52px) clamp(20px, 3vw, 52px) 56px;
    overflow: visible;
}

.single-product div.product .vss-product-gallery {
    display: grid;
    gap: 18px;
    min-width: 0;
    overflow: visible;
}

.single-product div.product .vss-product-gallery__item {
    margin: 0;
    min-width: 0;
}

.single-product div.product .vss-product-media__link {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-height: clamp(460px, 64dvh, 760px);
    padding: clamp(24px, 3vw, 56px);
    overflow: visible;
    border-radius: 4px;
    background: var(--surface-low);
}

.single-product div.product .vss-product-media__link img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    filter: drop-shadow(0 18px 24px rgba(0, 1, 1, 0.12));
}

.single-product div.product .vss-product-panel {
    position: sticky;
    top: 84px;
    display: grid;
    gap: 18px;
    max-height: none;
    overflow: visible;
}

.single-product div.product .vss-kicker {
    color: var(--on-surface-variant);
    margin-bottom: 10px;
    font-size: 0.72rem;
}

.single-product div.product .vss-product-summary h1,
.single-product div.product .vss-product-copy h2 {
    color: var(--on-surface);
    font-size: clamp(2rem, 2.35vw, 3.1rem);
    font-weight: 900;
    line-height: 1.04;
}

.single-product div.product .vss-product-details-section {
    width: min(100%, 1120px);
    margin: 0 auto 80px;
    padding: 0 clamp(20px, 3vw, 52px);
}

.single-product div.product .vss-product-technical h2 {
    font-size: clamp(1.55rem, 2vw, 2.2rem);
    line-height: 1.12;
}

.single-product div.product .vss-lead,
.single-product div.product .vss-description,
.single-product div.product .vss-editorial-blocks {
    color: var(--on-surface-variant);
}

.single-product div.product .vss-lead {
    margin-top: 16px;
    font-size: 1rem;
    line-height: 1.48;
}

.single-product div.product .vss-description,
.single-product div.product .vss-editorial-blocks {
    font-size: 0.9rem;
    line-height: 1.58;
}

.single-product div.product .vss-editorial-blocks {
    margin-top: 18px;
}

.single-product div.product .vss-wine-details,
.single-product div.product .vss-wine-details div {
    border-color: var(--outline-soft);
}

.single-product div.product .vss-wine-details dt,
.single-product div.product .vss-variation-facts dt {
    color: var(--on-surface-variant);
}

.single-product div.product .vss-product-technical .stock {
    margin: 0;
}

.single-product div.product .vss-buy-box {
    border-radius: 4px;
    background: var(--surface-lowest);
    padding: 20px;
    box-shadow: 0 12px 32px rgba(0, 1, 1, 0.05);
}

.single-product div.product .vss-buy-box__price {
    color: var(--primary);
    font-size: 1.35rem;
}

.single-product div.product .vss-format-swatch {
    min-height: 68px;
    border-color: var(--outline-soft);
    border-radius: 4px;
    background: var(--surface-low);
}

.single-product div.product .vss-format-swatch:hover,
.single-product div.product .vss-format-swatch.is-selected {
    border-color: var(--secondary);
    background: var(--surface-lowest);
    box-shadow: 0 8px 18px rgba(70, 101, 83, 0.1);
}

.single-product div.product .vss-format-swatch__image {
    border-radius: 4px;
    background: var(--surface-highest);
}

.single-product div.product .vss-buy-box .quantity {
    display: grid;
    grid-template-columns: 46px minmax(58px, 1fr) 46px;
    width: 100%;
    max-width: 260px;
    min-height: 48px;
    margin: 0 0 12px;
    overflow: hidden;
    border: 1px solid var(--outline-soft);
    border-radius: 4px;
    background: var(--surface-low);
}

.single-product div.product .vss-buy-box .quantity input.qty {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-right: 1px solid var(--outline-soft);
    border-left: 1px solid var(--outline-soft);
    border-radius: 0;
    background: var(--surface-lowest);
    color: var(--primary);
    font-weight: 900;
    text-align: center;
}

.single-product div.product .vss-qty-button {
    display: grid;
    width: 46px;
    height: 48px;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 900;
    cursor: pointer;
}

.single-product div.product .vss-buy-box .woocommerce-variation-add-to-cart {
    display: grid;
    gap: 12px;
}

.single-product div.product .vss-buy-box .single_add_to_cart_button {
    width: 100%;
    min-height: 52px;
    border-radius: 4px;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.single-product div.product .vss-secondary-action {
    display: inline-flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--outline-soft);
    border-radius: 4px;
    margin-top: 12px;
    background: var(--surface-lowest);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    transition: border-color 150ms ease, background 150ms ease;
}

.single-product div.product .vss-secondary-action:hover {
    border-color: rgba(70, 101, 83, 0.34);
    background: var(--surface-low);
}

@media (max-width: 980px) {
    .single-product div.product .vss-product-sheet {
        grid-template-columns: minmax(0, 1fr);
        width: min(100%, 760px);
        padding-right: 16px;
        padding-left: 16px;
    }

    .single-product div.product .vss-product-panel {
        position: static;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .single-product div.product .vss-product-media__link {
        height: clamp(340px, 62dvh, 460px);
        min-height: 0;
        overflow: hidden;
    }

    .single-product div.product .vss-product-media__link img {
        width: auto;
        max-width: min(100%, 430px);
        max-height: 100%;
    }
}

@media (min-width: 768px) {
    .app-shell {
        padding-bottom: 0;
    }

    .app-topbar__inner {
        width: min(100%, 1180px);
        margin: 0 auto;
    }

    .app-mobile-drawer {
        width: min(100%, 1180px);
        margin: 0 auto;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .app-bottom-nav {
        display: none;
    }

    .app-footer {
        display: block;
    }

    .app-catalog,
    .app-page,
    .app-woo-section {
        padding: 24px 24px 48px;
    }

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

    .wc-block-grid__products {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .app-catalog__heading h1,
    .app-page-card header h1 {
        font-size: 2rem;
    }
}

@media (min-width: 1080px) {
    .app-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .woocommerce-cart .woocommerce {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 20px;
        align-items: start;
    }

    .woocommerce-cart .woocommerce-notices-wrapper {
        grid-column: 1 / -1;
    }
}

@media (max-width: 782px) {
    .admin-bar .app-shell {
        padding-top: 56px;
    }

    .admin-bar .app-topbar {
        top: 46px;
    }

    .admin-bar .app-filter-bar {
        top: 102px;
    }
}

@media (max-width: 760px) {
    .woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
    .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
        grid-template-columns: minmax(0, 1fr);
    }

    .vss-checkout-steps {
        display: flex;
    }

    .vss-checkout-steps li {
        min-width: 104px;
    }

    .woocommerce table.shop_table_responsive tr,
    .woocommerce-page table.shop_table_responsive tr {
        display: block;
        padding: 8px 0;
    }

    .woocommerce table.shop_table_responsive tr td,
    .woocommerce-page table.shop_table_responsive tr td {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        text-align: right !important;
    }

    .vss-checkout-steps {
        grid-template-columns: none;
    }
}
