/* Scoped to commerce pages: the public editorial header remains unchanged. */
body.citari-commerce #masthead { background-color: #f9f7f0; }
body.citari-commerce .citari-shop-hero { position: relative; isolation: isolate; height: clamp(380px, 55vw, 700px); overflow: hidden; border-bottom: 3px solid #856c00; }
body.citari-commerce .citari-shop-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; z-index: -2; }
body.citari-commerce .citari-shop-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,rgba(0,0,0,.48),rgba(0,0,0,0) 70%); }
body.citari-commerce .citari-shop-hero-content { width: min(1060px,86%); margin: 0 auto; padding: clamp(32px,5vw,65px) 0; color: #fff; box-sizing: border-box; }
body.citari-commerce .citari-shop-wordmark { display: block; width: clamp(185px,23vw,290px); height: auto; max-width: 75%; margin: 0 0 clamp(24px,3vw,40px); }
body.citari-commerce #citari-shop-heading { font-family: ltc-bodoni-175,Georgia,serif; color: #fff; font-size: clamp(32px,4vw,56px); line-height: 1.1; font-style: italic; font-weight: 400; margin: 0; }
body.citari-commerce.post-type-archive-product .woocommerce-products-header:empty { display: none; }
body.citari-commerce.post-type-archive-product .woocommerce-products-header { margin: 0 auto; }
body.citari-commerce .woocommerce-message { flex-wrap: wrap; gap: 12px; }
body.citari-commerce .woocommerce-message a { overflow-wrap: anywhere; }
body.citari-commerce .product-add-to-cart button, body.citari-commerce .product-add-to-cart a.button { white-space: normal; }
body.citari-commerce.woocommerce-cart h1 { text-align: center; }
body.citari-commerce .woocommerce-cart-form table.shop_table { background: #f9f7f0; }
body.citari-commerce .woocommerce-cart-form table.shop_table th { background-color: #856c00; }
body.citari-commerce.woocommerce-cart .cart_totals { box-sizing: border-box; border: 0; box-shadow: none; background: #f9f7f0; }
body.citari-commerce.woocommerce-cart .actions .coupon { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; }
body.citari-commerce.woocommerce-cart .actions .coupon input { min-width: 0; flex: 1; width: 180px; }
body.citari-commerce.woocommerce-cart .actions .coupon .button { width: auto; flex: 0 1 auto; }
body.citari-commerce .woocommerce-cart-form .actions .button { min-height: 44px; height: auto; white-space: normal; }
@media (max-width:1100px) {
    body.citari-commerce ul.products li.product { display: grid; grid-template-columns: minmax(0,1fr) clamp(90px,12vw,140px); gap: 14px; padding: 24px; align-content: start; }
    body.citari-commerce ul.products li.product > a { grid-column: 2; grid-row: 1 / 3; align-self: start; }
    body.citari-commerce ul.products li.product > a img { float: none; width: 100%; max-height: 350px; object-fit: contain; }
    body.citari-commerce ul.products .contPLWS { display: contents; max-width: none; }
    body.citari-commerce ul.products .contentPB { grid-column: 1; grid-row: 1; min-height: 0; min-width: 0; }
    body.citari-commerce ul.products .contentV { grid-column: 1; grid-row: 2; min-width: 0; }
    body.citari-commerce ul.products .product-add-to-cart { grid-column: 1 / -1; grid-row: 3; min-width: 0; }
    body.citari-commerce ul.products .contPLWS .contentPB h2, body.citari-commerce ul.products .contPLWS .contentPB h3 { font-size: 30px; line-height: 1.05; overflow-wrap: normal; }
    body.citari-commerce ul.products .product .product-price { font-size: 30px; line-height: 1.2; }
    body.citari-commerce ul.products .product .contentV { font-size: 15px; line-height: 1.4; }
    body.citari-commerce ul.products .product .contentV p { font-size: inherit; line-height: inherit; }
    body.citari-commerce ul.products .product .single_add_to_cart_button, body.citari-commerce ul.products .product .add_to_cart_button { min-height: 44px; height: auto; line-height: 1.25; padding: 12px; }
}
@media (max-width:790px) {
    body.citari-commerce #masthead #logo { width: 190px; max-width: 57vw; }
    body.citari-commerce #masthead #burger { min-height: 44px; min-width: 44px; right: 4vw; }
    body.citari-commerce #navigation { max-width: 100vw; }
    body.citari-commerce .citari-shop-hero { height: 430px; }
    body.citari-commerce .citari-shop-hero-photo { object-position: 57% 57%; }
    body.citari-commerce .citari-shop-hero-content { padding-top: 30px; }
    body.citari-commerce ul.products { grid-template-columns: minmax(0,1fr); gap: 24px; }
    body.citari-commerce ul.products li.product { grid-template-columns: minmax(0,1fr) 95px; padding: 20px; gap: 12px; }
    body.citari-commerce ul.products .contPLWS .contentPB h2, body.citari-commerce ul.products .contPLWS .contentPB h3 { font-size: 28px; }
    body.citari-commerce .product-add-to-cart form, body.citari-commerce .product-add-to-cart .single_variation_wrap { max-width: 100%; }
    body.citari-commerce .product-add-to-cart .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
    body.citari-commerce .product-add-to-cart .quantity { flex: 0 0 auto; }
    body.citari-commerce.single-product .product-add-to-cart { position: static; padding: 24px 20px; }
    body.citari-commerce.single-product .product-add-to-cart form { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin: 15px auto 0; }
    body.citari-commerce.single-product .product-add-to-cart .single_add_to_cart_button { height: auto; min-height: 44px; line-height: 1.2; margin: 0; padding: 12px 16px; }
    body.citari-commerce.single-product #colophon { padding-bottom: 30px; }
    body.citari-commerce.single-product .vinoS > .whiteSpace:first-child { height: 10px; }
    body.citari-commerce .woocommerce-cart-form table.shop_table thead { display: none; }
    body.citari-commerce .woocommerce-cart-form table.shop_table, body.citari-commerce .woocommerce-cart-form table.shop_table tbody { display: block; width: 100%; background: transparent; }
    body.citari-commerce .woocommerce-cart-form table.shop_table tr.cart_item { display: grid; grid-template-columns: 66px minmax(0,1fr); column-gap: 12px; position: relative; margin: 0 0 20px; padding: 40px 14px 14px; background: #f9f7f0 !important; box-sizing: border-box; }
    body.citari-commerce .woocommerce-cart-form table.shop_table tr.cart_item td { width: auto; padding: 10px 0; border: 0; box-sizing: border-box; min-width: 0; text-align: left; background: transparent; }
    body.citari-commerce .woocommerce-cart-form table.shop_table .product-remove { position: absolute; top: 0; right: 6px; }
    body.citari-commerce .woocommerce-cart-form .product-remove a { display: grid; place-items: center; min-width: 44px; min-height: 44px; }
    body.citari-commerce .woocommerce-cart-form table.shop_table .product-thumbnail { grid-column: 1; grid-row: 1 / 5; display: block; }
    body.citari-commerce .woocommerce-cart-form .product-thumbnail img { width: auto; max-width: 60px; height: auto; max-height: 180px; }
    body.citari-commerce .woocommerce-cart-form table.shop_table .product-name { grid-column: 2; font-weight: 700; font-size: 18px; padding-right: 15px; }
    body.citari-commerce .woocommerce-cart-form table.shop_table td.product-price, body.citari-commerce .woocommerce-cart-form table.shop_table td.product-quantity, body.citari-commerce .woocommerce-cart-form table.shop_table td.product-subtotal { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #ddd4c4; }
    body.citari-commerce .woocommerce-cart-form td[data-title]::before { content: attr(data-title); font-size: 14px; font-weight: 400; }
    body.citari-commerce .woocommerce-cart-form td.product-name::before { content: none; }
    body.citari-commerce .woocommerce-cart-form .quantity input.qty { min-height: 44px; }
    body.citari-commerce .woocommerce-cart-form table.shop_table tr:not(.cart_item), body.citari-commerce .woocommerce-cart-form table.shop_table td.actions { display: block; width: 100%; padding: 0; box-sizing: border-box; }
    body.citari-commerce.woocommerce-cart .actions .coupon { display: flex; flex-direction: column; width: 100%; margin: 0 0 12px; }
    body.citari-commerce.woocommerce-cart .actions .coupon input, body.citari-commerce.woocommerce-cart .actions .coupon .button, body.citari-commerce .woocommerce-cart-form .actions > .button { display: block; width: 100%; min-width: 0; margin: 0; box-sizing: border-box; }
    body.citari-commerce.woocommerce-cart .cart_totals { width: 100%; max-width: 100%; margin: 35px auto; padding: 18px; }
    body.citari-commerce.woocommerce-cart .cart_totals table th, body.citari-commerce.woocommerce-cart .cart_totals table td { width: auto; }
    body.citari-commerce.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { font-size: 16px; line-height: 1.3; }
}
@media (max-width:360px) {
    body.citari-commerce ul.products li.product { grid-template-columns: minmax(0,1fr) 78px; padding: 16px; }
    body.citari-commerce ul.products .contPLWS .contentPB h2, body.citari-commerce ul.products .contPLWS .contentPB h3 { font-size: 25px; }
    body.citari-commerce.single-product .product-add-to-cart .woocommerce-variation-add-to-cart { justify-content: center; }
}

@media (max-width:790px) {
    body.citari-commerce .sticky #masthead #logo { width:150px; }
    body.citari-commerce .sticky #masthead .socialMenu { display:none; }
}

/* Shared shop controls and summaries: Italian, English and German. */
body.citari-commerce :is(button.button, a.button), body.citari-commerce #place_order {
    box-sizing: border-box; border: 1px solid #856c00; border-radius: 0;
    background: #856c00; color: #fff; min-height: 46px; padding: 12px 18px;
    font: 700 14px/1.35 Arial, sans-serif; text-align: center; text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
body.citari-commerce :is(button.button, a.button):not(:disabled):hover, body.citari-commerce #place_order:not(:disabled):hover {
    background: #655300; border-color: #655300; color: #fff;
}
body.citari-commerce :is(button, a, input):focus-visible { outline: 2px solid #655300; outline-offset: 3px; }
body.citari-commerce :is(button.button, #place_order):disabled {
    opacity: .55; cursor: not-allowed; box-shadow: none;
}
body.citari-commerce ul.products .product-add-to-cart .added_to_cart {
    display: flex; align-items: center; gap: 8px; clear: none; width: fit-content;
    max-width: 100%; margin: 12px 0 0; padding: 3px 0;
    color: #715d00; font-size: 15px; font-weight: 600; line-height: 1.5;
    text-decoration: none;
}
body.citari-commerce ul.products .product-add-to-cart .added_to_cart::after {
    content: '\2192'; display: inline-block; font-size: 20px; text-decoration: none;
    transition: transform .18s ease;
}
body.citari-commerce ul.products .product-add-to-cart .added_to_cart:hover { color: #403500; }
body.citari-commerce ul.products .product-add-to-cart .added_to_cart:hover::after { transform: translateX(3px); }
body.citari-commerce ul.products a.button[href*="#citari-notify"] {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0;
    background: transparent; border: 0; color: #715d00; text-align: left;
    text-decoration: none;
}
body.citari-commerce ul.products a.button[href*="#citari-notify"]::after { content: '\2192'; font-size: 20px; }
body.citari-commerce ul.products a.button[href*="#citari-notify"]:hover { background: transparent; color: #403500; }
body.citari-commerce .woocommerce-cart-form .product-thumbnail img { mix-blend-mode: multiply; background: transparent; }
body.citari-commerce.woocommerce-cart .woocommerce-cart-form td.actions { padding: 18px; }
body.citari-commerce.woocommerce-cart .woocommerce-cart-form .citari-cart-actions {
    display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 12px;
    width: auto;
}
body.citari-commerce.woocommerce-cart .woocommerce-cart-form .actions .coupon {
    display: grid; grid-template-columns: minmax(100px,1fr) auto; align-items: start;
    float: none; gap: 12px; width: auto; max-width: none; margin: 0;
}
body.citari-commerce.woocommerce-cart .woocommerce-cart-form .actions .coupon input {
    width: 100%; min-width: 0; height: 46px; padding: 10px 12px; margin: 0; box-sizing: border-box;
}
body.citari-commerce.woocommerce-cart .woocommerce-cart-form .actions .button {
    float: none; margin: 0; min-height: 46px; height: auto; padding: 12px 16px; white-space: normal;
}
body.citari-commerce :is(.cart_totals, .woocommerce-checkout-review-order) ul#shipping_method,
body.citari-commerce #payment ul.payment_methods {
    list-style: none !important; margin: 0; padding: 0;
}
body.citari-commerce :is(.cart_totals, .woocommerce-checkout-review-order) ul#shipping_method li,
body.citari-commerce #payment ul.payment_methods li {
    list-style: none !important; margin: 0; padding: 0;
}
body.citari-commerce :is(.cart_totals, .woocommerce-checkout-review-order) ul#shipping_method li::before,
body.citari-commerce #payment ul.payment_methods li::before { content: none; }
body.citari-commerce :is(.cart_totals, .woocommerce-checkout-review-order) ul#shipping_method li::marker,
body.citari-commerce #payment ul.payment_methods li::marker { content: ''; }
body.citari-commerce.woocommerce-cart .cart_totals { padding: 24px; }
body.citari-commerce.woocommerce-cart .cart_totals table { width: 100%; border-collapse: collapse; }
body.citari-commerce.woocommerce-cart .cart_totals :is(th,td) {
    background: transparent; color: #292929; vertical-align: top; padding: 15px 0; line-height: 1.55;
}
body.citari-commerce.woocommerce-cart .cart_totals th { text-align: left; width: 35%; }
body.citari-commerce.woocommerce-cart .cart_totals td { text-align: right; }
body.citari-commerce.woocommerce-cart .cart_totals :is(.amount, strong) { color: inherit; }
body.citari-commerce.woocommerce-cart .cart_totals .woocommerce-shipping-destination { margin: 8px 0; font-weight: 400; }
body.citari-commerce.woocommerce-cart .cart_totals .shipping-calculator-button { color: #715d00; text-decoration: underline; text-underline-offset: 3px; }
body.citari-commerce .woocommerce-checkout-review-order table.shop_table { width: 100%; border-collapse: collapse; }
body.citari-commerce .woocommerce-checkout-review-order table.shop_table :is(th,td) {
    background: #fff; border-bottom: 1px solid #ddd4c4; padding: 15px 16px; vertical-align: top;
}
body.citari-commerce .woocommerce-checkout-review-order table.shop_table thead th { background: #f9f7f0; }
body.citari-commerce .woocommerce-checkout-review-order table.shop_table :is(th.product-total,td.product-total,tfoot td) { text-align: right; }
body.citari-commerce .woocommerce-checkout-review-order table.shop_table .order-total :is(th,td) { background: #f9f7f0; }
body.citari-commerce #payment { margin-top: 24px; }
body.citari-commerce #payment ul.payment_methods { margin-bottom: 24px; }
body.citari-commerce #payment .woocommerce-notice--info {
    padding: 18px 20px; background: #f9f7f0; border-left: 3px solid #856c00; line-height: 1.6;
}
body.citari-commerce #payment .form-row.place-order { margin-top: 20px; }
body.citari-commerce #payment .woocommerce-terms-and-conditions-wrapper a { color: #715d00; text-decoration: underline; text-underline-offset: 3px; }
body.citari-commerce #place_order { margin-top: 18px; min-width: 210px; cursor: pointer; }
@media (max-width: 790px) {
    body.citari-commerce.woocommerce-cart .woocommerce-cart-form .citari-cart-actions { grid-template-columns: minmax(0,1fr); padding: 0; gap: 12px; }
    body.citari-commerce.woocommerce-cart .woocommerce-cart-form .actions .coupon { grid-template-columns: minmax(0,1fr); width: 100%; }
    body.citari-commerce.woocommerce-cart .woocommerce-cart-form .actions :is(.button,.coupon input) { width: 100%; min-width: 0; }
    body.citari-commerce.woocommerce-cart .cart_totals { padding: 20px 16px; }
    body.citari-commerce .woocommerce-checkout-review-order table.shop_table :is(th,td) { padding: 12px 8px; }
    body.citari-commerce #place_order { width: 100%; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
    body.citari-commerce :is(button.button,a.button,.added_to_cart,.added_to_cart::after,#place_order) { transition: none; }
}

/* Keep the arrow outside the text decoration and center the cart label. */
body.citari-commerce ul.products li.product .product-add-to-cart .add_to_cart_button {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px; height: auto; padding: 12px 16px; line-height: 1.25;
    vertical-align: middle;
}
body.citari-commerce ul.products :is(.added_to_cart,a.button[href*="#citari-notify"]) .citari-link-label {
    text-decoration: underline; text-underline-offset: 4px;
}
