#design {
 border: 1px solid #e4e4e7;
 border-radius: 24px;
 background: #fff;
 color: #1d1d1f;
 font-family: -apple-system, BlinkMacSystemFont, Inter, Arial, sans-serif;
}
#design h2 { font-weight: 650; letter-spacing: -.035em; }
#design button { border-radius: 12px; }
#design input:not([type="radio"], [type="checkbox"]), #design textarea { border-radius: 12px; }
:is(#design, #blocks) .appearance-options { padding: 0; margin: 24px 0; border: 0; min-width: 0; }
.appearance-options legend { margin-bottom: 10px; font-weight: 600; }
.appearance-themes, .appearance-layouts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.appearance-layouts { grid-template-columns: repeat(3, minmax(0,1fr)); }
:is(#design, #blocks) .appearance-choice {
 position: relative;
 display: flex;
 align-items: center;
 gap: 7px;
 margin: 0;
 padding: 9px;
 min-height: 46px;
 min-width: 0;
 border: 1px solid #e5e5ea;
 border-radius: 13px;
 background: #f5f5f7;
 color: #1d1d1f;
 font-size: 13px;
 cursor: pointer;
}
#blocks .appearance-layout { flex-direction: column; justify-content: center; text-align: center; }
:is(#design, #blocks) .appearance-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
:is(#design, #blocks) .appearance-choice:has(input:checked) { background: #eaf3ff; border-color: #0066cc; color: #004a99; }
:is(#design, #blocks) .appearance-choice:has(input:focus-visible) { outline: 2px solid #0066cc; outline-offset: 2px; }
.appearance-swatch { flex: 0 0 14px; height: 14px; border-radius: 50%; background: #0066cc; }
.appearance-swatch[data-theme="sand"] { background: #ab8a5f; }
.appearance-swatch[data-theme="dark"] { background: #34343a; }
.appearance-swatch[data-theme="rose"] { background: #bd7490; }
.appearance-layout-example { display: flex; width: 42px; height: 22px; gap: 3px; overflow: hidden; }
.appearance-layout-example i { flex: 1; border: 1px solid currentColor; border-radius: 4px; }
.appearance-layout-example[data-example="single"] i:last-child { display: none; }
.appearance-layout-example[data-example="carousel"] i { flex: 0 0 78%; }
.product-group { min-width: 0; margin-bottom: 24px; }
.product-track { display: grid; gap: 12px; min-width: 0; }
.company-page .public-blocks .product-track > .product { margin: 0; min-width: 0; }
.product-group[data-layout="pair"] .product-track { grid-template-columns: repeat(2,minmax(0,1fr)); }
.company-page .product-group[data-layout="pair"] .product { padding: clamp(8px,2vw,20px); }
.company-page .product-group[data-layout="pair"] .product h2 { font-size: clamp(16px,3vw,24px); }
.product-group[data-layout="pair"] .product-contact-options { grid-template-columns: 1fr; }
.product-group[data-layout="pair"] .product .button,
.product-group[data-layout="pair"] .product-contact summary { overflow-wrap: anywhere; }
.product-group[data-layout="pair"] .public-product-properties > div { flex-wrap: wrap; gap: 3px 8px; overflow-wrap: anywhere; }
.product-group[data-layout="carousel"] .product-track {
 position: relative;
 display: flex;
 align-items: flex-start;
 overflow-x: auto;
 overscroll-behavior-inline: contain;
 padding-bottom: 8px;
 scroll-snap-type: x mandatory;
}
@media (prefers-reduced-motion: no-preference) {
 .product-group[data-layout="carousel"] .product-track { scroll-behavior: smooth; }
}
.product-group[data-layout="carousel"] .product { flex: 0 0 min(84%, 460px); scroll-snap-align: start; }
.product-carousel-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 13px; }
.product-carousel-buttons:not([hidden]) { display: flex; gap: 6px; }
.product-carousel-buttons button { width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 50%; color: inherit; background: transparent; font-size: 24px; cursor: pointer; }
.product-carousel-buttons button:disabled { opacity: .38; cursor: default; }

#blocks .product-layout-options {
 font-family: -apple-system, BlinkMacSystemFont, Inter, Arial, sans-serif;
 margin: 18px 0;
}
#blocks .appearance-layouts {
 gap: 4px;
 padding: 4px;
 background: #f0f0f3;
 border-radius: 16px;
}
#blocks .appearance-layout {
 border: 0;
 background: transparent;
}
#blocks .appearance-layout:has(input:checked) {
 background: #fff;
 color: #0059b2;
 box-shadow: 0 1px 4px #0002;
}

/* Product photos reach the card edges in a consistent square frame. */
.company-page .public-blocks .product:has(> img:first-child) {
 --product-photo-inset: 20px;
 padding: 0 var(--product-photo-inset) var(--product-photo-inset);
}
@media (max-width: 760px) {
 .company-page .public-blocks .product:has(> img:first-child) { --product-photo-inset: 16px; }
}
.company-page .public-blocks .product-group[data-layout="pair"] .product:has(> img:first-child) {
 --product-photo-inset: clamp(8px,2vw,20px);
}
.company-page .public-blocks .product > img:first-child {
 display: block;
 width: calc(100% + 2 * var(--product-photo-inset));
 max-width: none;
 height: auto;
 max-height: none;
 aspect-ratio: 1 / 1;
 object-fit: cover;
 object-position: center;
 margin: 0 calc(-1 * var(--product-photo-inset)) 16px;
 border-radius: 0;
 border-start-start-radius: inherit;
 border-start-end-radius: inherit;
}

.company-page .product:has([data-product-quick-open]:not([hidden])) > img,
.company-page .product:has([data-product-quick-open]:not([hidden])) > h2 { cursor: pointer; }
.company-page .product-quick-open:not([hidden]) {
 display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
 max-width: 100%; margin: 12px 0 0; padding: 6px 12px;
 border: 1px solid currentColor; border-radius: 10px; background: transparent;
 color: inherit; font: inherit; font-size: 14px; font-weight: 650;
 text-align: center; cursor: pointer;
}
#product-quick-view {
 box-sizing: border-box; width: min(560px, calc(100% - 20px));
 max-height: calc(100% - 20px); padding: 0; border: 1px solid #dfe3ea;
 border-radius: 22px; background: #fff; color: #182033; overscroll-behavior: contain;
}
#product-quick-view::backdrop { background: #14192785; }
/* Keep the product name as the dialog label without duplicating it over the photo. */
#product-quick-title {
 position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
 overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.product-quick-header {
 position: sticky; top: 0; z-index: 2; height: 0;
 display: flex; justify-content: flex-end; padding: 0 24px;
 pointer-events: none;
}
.product-quick-close {
 position: relative; isolation: isolate; flex: 0 0 44px; height: 44px;
 margin-top: 20px; padding: 0; display: grid; place-items: center;
 border: 0; border-radius: 50%; color: #182033; background: transparent;
 font: 21px/1 system-ui; cursor: pointer; pointer-events: auto;
}
.product-quick-close::before {
 content: ""; position: absolute; inset: 6px; z-index: -1; border-radius: 50%;
 background: #fff; box-shadow: 0 2px 8px #14192760;
}
.product-quick-close:focus-visible { outline: 2px solid #0767cb; outline-offset: 1px; }
@media (prefers-reduced-motion: no-preference) {
 .product-quick-close::before { animation: product-close-pulse 1.7s ease-out 3; }
}
@keyframes product-close-pulse {
 0%, 100% { box-shadow: 0 2px 8px #14192760, 0 0 0 0 #ffffff00; }
 42% { box-shadow: 0 2px 8px #14192760, 0 0 0 4px #ffffff80; }
}
#product-quick-view:not(:has(#product-quick-content > img)) #product-quick-content { padding-top: 78px; }
#product-quick-content { display: grid; gap: 12px; padding: 16px; overflow-wrap: anywhere; }
#product-quick-content > img { display: block; width: 100%; max-height: 48vh; object-fit: contain; background: #f5f6f9; border-radius: 12px; }
#product-quick-content > p { margin: 0; color: #182033; opacity: 1; }
#product-quick-content > .price { font-size: 22px; }

.quick-view-enabled .product > .product-description { display: none; }
.company-page .product-price-row {
 display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center;
 gap: 6px; margin-top: 14px; container-type: inline-size;
}
.company-page .product-price-row > .price {
 margin: 0; min-width: 0; overflow-wrap: anywhere;
 font-size: clamp(16px,10cqi,24px);
}
.company-page .product-price-row > .product-quick-open:not([hidden]) {
 margin: 0; padding-inline: clamp(6px,4cqi,12px); white-space: nowrap;
 font-size: clamp(12px,6.5cqi,14px);
}
.company-page .product-price-row > .product-quick-open:only-child { justify-self: start; }

#product-quick-content > .product-contact { margin: 0; padding-top: 12px; min-width: 0; }
#product-quick-content .product-contact-options {
 grid-template-columns: repeat(auto-fit,minmax(min(135px,100%),1fr));
}
#product-quick-content .product-contact-options .button {
 display: flex; align-items: center; justify-content: center; min-width: 0;
 gap: 7px; border-radius: 10px; text-align: center; overflow-wrap: anywhere;
}
#product-quick-content .product-contact-options .button > img {
 width: 22px; height: 22px; flex: 0 0 22px; object-fit: contain;
}

/* UX audit: a single visible title below the photo, direct contact actions. */
#product-quick-content > .product-quick-name {margin:0;font-size:clamp(20px,5vw,27px);line-height:1.18;letter-spacing:-.025em;font-weight:650;overflow-wrap:anywhere;}
#product-quick-content > img {max-height:40vh;max-height:40dvh;}
#product-quick-content > .product-contact {border-top:1px solid #e5e7eb;}
#product-quick-content .product-contact-options {display:grid;margin:0;}
#product-quick-content > .price {margin:0;}
/* Full phone numbers stay on one line, including narrow mobile dialogs. */
#product-quick-content .product-contact-options .button.contact-phone {
 grid-column:1 / -1; white-space:nowrap; overflow-wrap:normal;
 padding:12px 10px; min-height:48px; font-size:16px; line-height:1.35;
}
#product-quick-content .contact-phone > span {white-space:nowrap;overflow-wrap:normal;}
#product-quick-content .contact-phone .contact-icon {width:20px;height:20px;flex:0 0 20px;}
#product-quick-content .product-lead-form {
 display:grid;gap:12px;margin:4px 0 0;padding:18px;
 border:1px solid #e5e7eb;border-radius:16px;background:#f5f6f9;color:#182033;
}
#product-quick-content .product-lead-form h3 {margin:0;font-size:20px;line-height:1.25;letter-spacing:-.02em;}
#product-quick-content .product-lead-hint {margin:0;font-size:14px;line-height:1.45;color:#565e6b;}
#product-quick-content .product-lead-phone {display:grid;gap:6px;margin:0;font-size:14px;line-height:1.4;}
#product-quick-content .product-lead-phone input {
 box-sizing:border-box;width:100%;min-width:0;height:48px;margin:0;padding:12px;
 border:1px solid #cbd1db;border-radius:10px;background:white;color:#182033;font:16px/1.4 system-ui;
}
#product-quick-content .product-lead-consent {display:flex;align-items:flex-start;gap:9px;margin:0;font-size:12px;line-height:1.45;color:#565e6b;}
#product-quick-content .product-lead-consent input {width:20px;height:20px;flex:0 0 20px;margin:0;padding:0;accent-color:#0767cb;}
#product-quick-content .product-lead-form > .button {
 width:100%;min-height:48px;margin:0;padding:12px 14px;border:0;border-radius:10px;
 background:#0767cb;color:white;font:600 15px/1.4 system-ui;text-align:center;white-space:normal;
}
#product-quick-content .product-lead-form > .button:disabled {opacity:.65;cursor:default;}
#product-quick-content .product-lead-form :focus-visible {outline:2px solid #0767cb;outline-offset:3px;}
#product-quick-content .product-lead-status {margin:0;font-size:14px;line-height:1.45;}
#product-quick-content .product-lead-status:empty {display:none;}
.product-carousel-count {font-size:13px;white-space:nowrap;align-self:center;color:inherit;}
@media(max-width:600px){
 #product-quick-view {max-height:calc(100dvh - 16px);width:calc(100% - 16px);border-radius:18px;}
 #product-quick-content {gap:10px;padding:14px;}
 #product-quick-content > p {font-size:15px;line-height:1.45;}
 #product-quick-content .product-contact-options .button {min-height:44px;font-size:14px;}
}
