/* Zandino Cinematic commerce presentation — v3.9.0 */
.z36-header-actions { display: flex; align-items: center; gap: 9px; }
.z36-account-link { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 13px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; color: inherit; text-decoration: none; font-size: 12px; transition: border-color .2s ease, background .2s ease; }
.z36-account-link:hover { border-color: var(--zandino-accent, #4f8cff); background: rgba(79, 140, 255, .11); color: #cfe1ff; }
.z36-account-link i { font-style: normal; font-size: 16px; }
.z36-mobile-account { display: flex; justify-content: space-between; text-decoration: none; }

.z36-commerce-main { min-height: 70vh; background: #f4f7fc; color: #13243a; }
.z36-commerce-shell { padding: 142px 0 90px; direction: rtl; }
.z36-commerce-shell .woocommerce { color: #26384e; }
.z36-commerce-shell a { color: inherit; }

.z36-commerce-shell .woocommerce-message,
.z36-commerce-shell .woocommerce-info,
.z36-commerce-shell .woocommerce-error { margin-bottom: 17px; padding: 14px 17px !important; border: 1px solid #d8e3ef; border-top: 0 !important; border-radius: 14px; background: #fff; color: #34475e; box-shadow: 0 8px 24px rgba(13, 39, 71, .05); }
.z36-commerce-shell .woocommerce-message::before,
.z36-commerce-shell .woocommerce-info::before,
.z36-commerce-shell .woocommerce-error::before { display: none; }

.z36-commerce-shell .button,
.z36-commerce-shell button.button,
.z36-commerce-shell input.button { display: inline-flex !important; align-items: center; justify-content: center; min-height: 44px; box-sizing: border-box; padding: 0 18px !important; border: 1px solid #c8d6e7 !important; border-radius: 12px !important; background: #fff !important; color: #1c3554 !important; font-weight: 800; box-shadow: none !important; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.z36-commerce-shell .button:hover,
.z36-commerce-shell button.button:hover { border-color: #9ebce4 !important; background: #edf4ff !important; transform: translateY(-1px); }
.z36-commerce-shell .button.alt,
.z36-commerce-shell button.alt,
.z36-commerce-shell #place_order,
.z36-commerce-shell .single_add_to_cart_button { border-color: var(--zandino-accent, #4f8cff) !important; background: var(--zandino-accent, #4f8cff) !important; color: #fff !important; box-shadow: 0 12px 26px rgba(37, 99, 235, .2) !important; }

.z36-commerce-shell form .form-row { margin: 0 0 13px; }
.z36-commerce-shell form .form-row label { display: block; margin-bottom: 6px; color: #54667d; font-size: 11px; font-weight: 700; }
.z36-commerce-shell form .form-row input.input-text,
.z36-commerce-shell form .form-row textarea,
.z36-commerce-shell form .form-row select,
.z36-commerce-shell .select2-container .select2-selection--single { min-height: 49px; box-sizing: border-box; padding: 10px 13px; border: 1px solid #ccd8e6; border-radius: 12px; background: #fff; color: #162a44; }
.z36-commerce-shell .select2-container .select2-selection--single { padding: 0; }
.z36-commerce-shell .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 47px; }
.z36-commerce-shell .select2-container--default .select2-selection--single .select2-selection__arrow { height: 47px; }
.z36-commerce-shell input:focus,
.z36-commerce-shell textarea:focus,
.z36-commerce-shell select:focus { outline: 0; border-color: var(--zandino-accent, #4f8cff) !important; box-shadow: 0 0 0 3px rgba(79, 140, 255, .12); }

.z36-commerce-shell table.shop_table { width: 100%; overflow: hidden; border: 1px solid #dbe4ef; border-radius: 16px; border-collapse: separate; border-spacing: 0; background: #fff; box-shadow: 0 9px 28px rgba(13, 39, 71, .045); }
.z36-commerce-shell table.shop_table th,
.z36-commerce-shell table.shop_table td { padding: 14px; border-color: #e6edf4; }
.z36-commerce-shell table.shop_table th { color: #617187; font-size: 11px; }

/* Product/service archive */
.z36-commerce-shell .products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.z36-commerce-shell .products::before,
.z36-commerce-shell .products::after { display: none; }
.z36-commerce-shell ul.products li.product { width: auto !important; margin: 0 !important; padding: 16px; border: 1px solid #dce5ef; border-radius: 20px; background: #fff; box-shadow: 0 12px 36px rgba(13, 39, 71, .05); }
.z36-commerce-shell ul.products li.product a img { border-radius: 14px; }
.z36-commerce-shell ul.products li.product .woocommerce-loop-product__title { color: #152b46; font-size: 18px; }
.z36-commerce-shell .product .price { color: #276fd7 !important; font-weight: 850; }
.z36-commerce-shell .zcp-view-service { width: 100%; margin-top: 9px; border-color: #bdd1ed !important; background: #edf4ff !important; color: #2364c5 !important; }

/* Dedicated service order page */
body.zandino-service-product .z36-commerce-main { background: linear-gradient(180deg, #eef4fb 0, #f8fafc 52%, #f4f7fb 100%); }
body.zandino-service-product .z36-commerce-shell { padding-top: 128px; }
body.zandino-service-product .woocommerce-breadcrumb { margin: 0 0 18px; color: #73839a; font-size: 10px; }
body.zandino-service-product div.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr); gap: clamp(24px, 4vw, 54px); align-items: start; }
body.zandino-service-product div.product::before,
body.zandino-service-product div.product::after { display: none; }
body.zandino-service-product .zcp-service-visual { width: auto !important; float: none !important; }
body.zandino-service-product div.product .summary { position: sticky; top: 105px; width: auto !important; float: none !important; box-sizing: border-box; margin: 0 !important; padding: clamp(23px, 3vw, 34px); border: 1px solid #dce6f1; border-radius: 27px; background: rgba(255, 255, 255, .9); box-shadow: 0 25px 70px rgba(11, 37, 70, .08); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
body.zandino-service-product div.product .product_title { margin: 10px 0 13px; color: #0a1d34; font-size: clamp(31px, 4vw, 51px); line-height: 1.08; letter-spacing: -.04em; }
body.zandino-service-product div.product .summary > .price { margin: 0 0 16px; color: #246ed9 !important; font-size: clamp(23px, 3vw, 31px); font-weight: 900; }
body.zandino-service-product div.product .woocommerce-product-details__short-description { color: #607087; font-size: 13px; line-height: 1.85; }
body.zandino-service-product div.product .woocommerce-product-details__short-description p { margin: 0; }
body.zandino-service-product div.product form.cart { display: grid; margin: 0; }
body.zandino-service-product div.product form.cart .quantity { display: none !important; }
body.zandino-service-product div.product form.cart .single_add_to_cart_button { width: 100%; min-height: 56px; border-radius: 15px !important; font-size: 13px; }
body.zandino-service-product div.product form.variations_form .variations { margin-bottom: 12px; border: 0; background: transparent; box-shadow: none; }
body.zandino-service-product div.product form.variations_form .variations th,
body.zandino-service-product div.product form.variations_form .variations td { padding: 6px 0; border: 0; }
body.zandino-service-product .zcp-configurator { background: #f6f9fd; }
body.zandino-service-product .zcp-service-details,
body.zandino-service-product .woocommerce-tabs,
body.zandino-service-product .related { grid-column: 1 / -1; }
body.zandino-service-product .woocommerce-tabs { margin-top: 8px; padding: clamp(22px, 3vw, 32px); border: 1px solid #dce5ef; border-radius: 22px; background: #fff; }
body.zandino-service-product .woocommerce-tabs ul.tabs { margin: 0 0 18px !important; padding: 0 !important; }
body.zandino-service-product .woocommerce-tabs ul.tabs::before,
body.zandino-service-product .woocommerce-tabs ul.tabs li::before,
body.zandino-service-product .woocommerce-tabs ul.tabs li::after { display: none !important; }
body.zandino-service-product .woocommerce-tabs ul.tabs li { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
body.zandino-service-product .woocommerce-tabs ul.tabs li a { padding: 0 0 10px !important; border-bottom: 2px solid var(--zandino-accent, #4f8cff); color: #17304e; }
body.zandino-service-product .woocommerce-tabs .panel { color: #56687f; line-height: 1.9; }
body.zandino-service-product .related { margin-top: 35px; }
body.zandino-service-product .related > h2 { margin-bottom: 22px; color: #132943; font-size: clamp(25px, 3vw, 36px); }

/* Cart and service-first checkout */
.woocommerce-cart .cart-collaterals { margin-top: 18px; }
.woocommerce-cart .cart_totals { width: min(100%, 520px) !important; padding: 21px; border: 1px solid #dbe5ef; border-radius: 19px; background: #fff; }
.woocommerce-cart .cart_totals h2 { color: #172c47; }
.woocommerce-cart td.product-thumbnail img { border-radius: 10px; }
body.zandino-service-cart .woocommerce-cart-form .product-quantity { display: none !important; }

body.woocommerce-checkout .woocommerce { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); gap: 22px; align-items: start; }
body.woocommerce-checkout .woocommerce > .woocommerce-notices-wrapper,
body.woocommerce-checkout .woocommerce > .woocommerce-form-coupon-toggle,
body.woocommerce-checkout .woocommerce > .woocommerce-form-login-toggle { grid-column: 1 / -1; }
body.woocommerce-checkout form.checkout { display: contents; }
body.woocommerce-checkout #customer_details { display: grid; gap: 17px; }
body.woocommerce-checkout #customer_details .col-1,
body.woocommerce-checkout #customer_details .col-2 { width: auto; float: none; box-sizing: border-box; padding: 22px; border: 1px solid #dbe5ef; border-radius: 20px; background: #fff; box-shadow: 0 10px 34px rgba(13, 39, 71, .045); }
body.woocommerce-checkout #customer_details .col-2:empty { display: none; }
body.woocommerce-checkout #customer_details h3,
body.woocommerce-checkout #order_review_heading { margin: 0 0 18px; color: #172c47; font-size: 21px; }
body.woocommerce-checkout #order_review_heading { display: none; }
body.woocommerce-checkout #order_review { position: sticky; top: 105px; padding: 22px; border: 1px solid #dbe5ef; border-radius: 20px; background: #fff; box-shadow: 0 14px 40px rgba(13, 39, 71, .06); }
body.woocommerce-checkout #payment { background: #f4f7fb; border-radius: 16px; }
body.woocommerce-checkout #payment ul.payment_methods { border-bottom-color: #dce5ef; }
body.woocommerce-checkout #place_order { width: 100%; min-height: 54px; margin-top: 10px; }

/* Fallback My Account styling when Zandino Core is inactive. */
body:not(.zandino-account-app).woocommerce-account .woocommerce { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; }
body:not(.zandino-account-app).woocommerce-account .woocommerce-MyAccount-navigation { position: sticky; top: 105px; padding: 10px; border: 1px solid #d9e3ee; border-radius: 19px; background: #fff; }
body:not(.zandino-account-app).woocommerce-account .woocommerce-MyAccount-navigation ul { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
body:not(.zandino-account-app).woocommerce-account .woocommerce-MyAccount-navigation a { display: flex; min-height: 44px; align-items: center; padding: 0 12px; border-radius: 11px; color: #56687f; text-decoration: none; }
body:not(.zandino-account-app).woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
body:not(.zandino-account-app).woocommerce-account .woocommerce-MyAccount-navigation a:hover { background: #eaf2ff; color: #2265c9; }
body:not(.zandino-account-app).woocommerce-account .woocommerce-MyAccount-content { min-width: 0; padding: 24px; border: 1px solid #dbe5ef; border-radius: 20px; background: #fff; }

@media (max-width: 1020px) {
    body.zandino-service-product div.product { grid-template-columns: 1fr; }
    body.zandino-service-product div.product .summary { position: relative; top: auto; }
    body.woocommerce-checkout .woocommerce { grid-template-columns: 1fr; }
    body.woocommerce-checkout #order_review { position: relative; top: auto; }
    .z36-commerce-shell .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    body:not(.zandino-account-app).woocommerce-account .woocommerce { grid-template-columns: 1fr; }
    body:not(.zandino-account-app).woocommerce-account .woocommerce-MyAccount-navigation { position: static; }
    body:not(.zandino-account-app).woocommerce-account .woocommerce-MyAccount-navigation ul { display: flex; overflow-x: auto; white-space: nowrap; }
}

@media (max-width: 720px) {
    .z36-header-actions .z36-account-link span { display: none; }
    .z36-account-link { width: 42px; justify-content: center; padding: 0; }
    .z36-commerce-shell { padding: 108px 0 58px; }
    .z36-commerce-shell .products { grid-template-columns: 1fr; }
    body.zandino-service-product .z36-commerce-shell { padding-top: 104px; }
    body.zandino-service-product div.product { gap: 16px; }
    body.zandino-service-product div.product .summary { padding: 20px 17px; border-radius: 21px; }
    body.zandino-service-product div.product .product_title { font-size: 33px; }
    body.woocommerce-checkout #customer_details .col-1,
    body.woocommerce-checkout #customer_details .col-2,
    body.woocommerce-checkout #order_review { padding: 17px; border-radius: 17px; }
    .z36-commerce-shell input.input-text,
    .z36-commerce-shell textarea,
    .z36-commerce-shell select { font-size: 16px !important; }
}

@media (prefers-reduced-motion: reduce) {
    .z36-account-link,
    .z36-commerce-shell .button { transition: none; }
    .z36-commerce-shell .button:hover { transform: none; }
}
