/* Source: ProductModal.jsx and globals.css pm-* in the original TOPLOFT.
   Keep the edge-to-edge 50/50 desktop composition and stacked mobile gallery. */
.at-icon{display:block;flex:none;width:20px;height:20px;vertical-align:middle}
html.at-pilot-document{scrollbar-gutter:auto}
html.at-pilot-document:has(.at-product-dialog[open]){overflow:hidden}
.at-pilot{background:#fff;--at-control-radius:6px}
.at-pilot :is(button,a,[tabindex],summary){-webkit-tap-highlight-color:transparent}
.at-pilot :is(button,a,[tabindex],summary):focus{outline:none;outline-offset:0}
.at-pilot :is(button,a,[tabindex],summary):focus:not(:focus-visible){box-shadow:none}
.at-pilot :is(button,a,summary):focus-visible{box-shadow:inset 0 0 0 1px currentColor}
.at-card-picture,.at-gallery-stage,.at-thumbs,.at-reel{-webkit-user-select:none;user-select:none}
.at-card-picture img,.at-gallery-stage img,.at-reel img{-webkit-user-drag:none;-webkit-user-select:none;user-select:none}
.at-pilot button,.at-pilot input,.at-pilot textarea,.at-pilot select{line-height:1.4}
.at-button{min-height:40px;padding:10px 16px;border-radius:var(--at-control-radius);gap:8px;font-size:14px;font-weight:600;line-height:20px;box-shadow:none}
.at-button:hover{background:#343434}
.at-sections{scrollbar-width:none;gap:6px;padding:4px 0 12px}
.at-sections::-webkit-scrollbar,.at-thumbs::-webkit-scrollbar{display:none}
.at-sections a{font-size:12px;padding:6px 12px;line-height:20px}
.at-heading{margin-bottom:20px}.at-heading nav{margin-bottom:16px;line-height:1.5}.at-heading .at-kicker{margin-bottom:8px}
.at-heading h1{font-size:clamp(24px,3vw,42px);line-height:1.15;letter-spacing:-.035em;font-weight:800}
.at-copy h2,.at-faq h2,.at-contact h2{font-weight:700}
.at-heading>p{margin-top:12px;font-size:14px;line-height:1.55}
.at-pilot-note{margin-bottom:12px;font-size:10px}
.at-styles{gap:6px;padding:10px 14px;border-radius:18px;margin:18px 0 14px}
.at-styles a{gap:8px;padding:6px 11px;font-size:12px;line-height:20px}.at-styles i{width:24px;height:24px}
.at-toolbar{gap:12px;margin-bottom:18px}.at-toolbar button{line-height:20px;padding:4px 11px}
.at-product-grid{align-items:start}.at-card{min-width:0;align-self:start}
.at-card-picture{aspect-ratio:var(--card-ratio,3 / 4);border-radius:18px;touch-action:pan-y}
.at-card-picture img{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;transition:opacity .18s}
.at-card-picture:hover img{transform:none}
.at-card-dots{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);display:flex;gap:5px;padding:5px;pointer-events:none}
.at-card-dots i{width:6px;height:6px;border-radius:50%;background:#ffffff80;box-shadow:0 0 1px #0006}.at-card-dots i.is-active{background:white}
.at-card h3{font-size:13px;line-height:1.4;margin-top:8px;font-weight:650}
.at-card .at-price{gap:5px;margin:5px 0 0!important}.at-card .at-price strong{font-size:17px;letter-spacing:-.025em}.at-card .at-price span{font-size:12px}
.at-card .at-price-note{font-size:10px;line-height:1.4;margin-top:3px}
.at-card-cta{padding:6px 0;margin:4px 0 0;background:none;border:0;color:#666;font-size:12px;line-height:20px;text-align:left}
.at-card-cta:hover{color:#111}.at-badge{top:10px;left:10px;padding:4px 8px;font-size:9px;border-radius:5px}
.at-product-dialog{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:hidden;background:#fff;color:#222;box-sizing:border-box}
.at-product-dialog::backdrop{background:#0009}
.at-product-dialog>.at-dialog-close{position:fixed;top:20px;right:20px;margin:0;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#111;color:#fff;box-shadow:none;display:flex;align-items:center;justify-content:center;z-index:10}
.at-product-dialog>.at-dialog-close:hover{background:#333}
.at-product{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;padding:0;min-width:0;background:#fff}
.at-product-dialog .at-product{grid-template-columns:50vw minmax(0,1fr);height:100dvh}
.at-product-gallery{min-width:0;padding:8px;background:#fff}
.at-gallery-stage{position:relative;width:100%;height:min(760px,calc(100dvh - 180px));min-height:380px;border-radius:8px;overflow:hidden;background:#f5f5f3;touch-action:pan-y}
.at-product-dialog .at-gallery-stage{height:calc(100dvh - 16px);min-height:0}
.at-gallery-stage>[data-product-main]{display:block;width:100%;height:100%;object-fit:contain;aspect-ratio:auto;background:#f5f5f3}
.at-gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:44px;display:flex;align-items:center;justify-content:center;border:0;border-radius:6px;background:#0003;color:#fff;padding:0;z-index:2}
.at-gallery-arrow:hover{background:#0006}.at-gallery-arrow--prev{left:10px}.at-gallery-arrow--next{right:10px}
.at-gallery-arrow .at-icon{width:24px;height:24px}
.at-thumbs{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);display:flex;gap:8px;margin:0;padding:8px;overflow:auto;scrollbar-width:none;background:#ffffff90;backdrop-filter:blur(10px);border-radius:12px}
.at-thumbs button{width:56px;flex:0 0 56px;height:56px;border:2px solid transparent;border-radius:8px;padding:0;overflow:hidden;opacity:.5;background:#eee}
.at-thumbs button[aria-pressed=true]{opacity:1;border-color:#fff;box-shadow:none}
.at-thumbs img{display:block;width:100%;height:100%;object-fit:cover;border-radius:0}
.at-product-info{min-width:0;padding:32px 24px;display:flex;flex-direction:column;gap:16px;font-size:14px;line-height:1.5}
.at-product-dialog .at-product-info{height:100dvh;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}
.at-product-dialog .at-product-info h2{padding-right:52px}
.at-product-dialog .at-product-info::-webkit-scrollbar{display:none}
.at-product-badges{display:flex;gap:6px;flex-wrap:wrap}
.at-product-badges span{font-size:10px;line-height:16px;font-weight:700;text-transform:uppercase;background:#301b17;color:#d99a7e;padding:4px 9px;border-radius:5px}
.at-product-info h1,.at-product-info h2{font-size:21px;line-height:1.35;font-weight:700;letter-spacing:-.015em;margin:0}
.at-product-info .at-price{gap:8px;margin:0!important;line-height:1.3}
.at-product-info .at-price strong{font-size:26px;font-weight:800;letter-spacing:-.035em}
.at-product-info .at-price span{font-size:15px;font-weight:400;color:#96968f}
.at-product-info .at-price-note{font-size:11px;line-height:1.5;margin-top:-9px;color:#888}
.at-product-cta{width:100%;min-height:42px;margin:0}
.at-product-section h3{font-size:11px;line-height:1.5;font-weight:500;text-transform:uppercase;letter-spacing:.06em;color:#999;margin:0 0 8px}
.at-product-section p{font-size:13px;line-height:1.7;color:#72726e;margin:0}
.at-product-specs{margin:0}.at-product-specs>div{display:grid;grid-template-columns:minmax(100px,.35fr) minmax(0,1fr);gap:12px;padding:7px 0;border-bottom:1px solid #e5e5e3;font-size:13px;line-height:1.5}
.at-product-specs dt{color:#888}.at-product-specs dd{margin:0;text-align:right}
.at-product-info .at-style-caption{font-size:12px;margin:0!important}.at-product-info .at-muted{font-size:11px!important;margin:-8px 0 0!important}
.at-product-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:#999;margin-top:auto;padding-top:12px;border-top:1px solid #e5e5e3}
.at-product-meta a{display:inline-flex;align-items:center;gap:6px;min-height:28px}.at-product-meta .at-icon{width:14px;height:14px}
.at-order-dialog{position:fixed;inset:0;margin:auto;background:#fff;border-radius:10px;padding:28px;width:420px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}
.at-order-dialog h2{font-size:22px;line-height:1.3}.at-order-dialog .at-dialog-close{position:absolute;display:flex;align-items:center;justify-content:center;right:10px;top:10px;width:32px;height:32px;padding:0;margin:0;border-radius:6px;box-shadow:none;background:#f5f5f5;color:#555}
.at-order-dialog label{margin:14px 0;font-size:12px;line-height:1.5}.at-order-dialog input,.at-order-dialog textarea{padding:8px 10px;border-radius:6px;margin-top:6px;font:inherit}
.at-order-dialog input{min-height:38px}.at-order-dialog textarea{resize:vertical;min-height:72px}
.at-order-dialog .at-consent{display:flex;align-items:flex-start;gap:8px;font-size:11px}.at-order-dialog .at-consent input{width:15px;min-height:15px;height:15px;margin:1px 0 0;flex:0 0 15px}.at-consent a{text-decoration:underline}
.at-order-dialog .at-button{width:100%}
@media(max-width:900px){
 .at-product-dialog{overflow-y:auto;scrollbar-width:none}.at-product-dialog::-webkit-scrollbar{display:none}
 .at-product,.at-product-dialog .at-product{display:block;height:auto;min-height:100dvh}
 .at-product-gallery{padding:0}.at-gallery-stage,.at-product-dialog .at-gallery-stage{height:auto;min-height:0;border-radius:0;overflow:visible;padding-bottom:76px}
 .at-gallery-stage>[data-product-main]{height:auto;max-height:70dvh;min-height:220px;aspect-ratio:1;object-fit:contain}
 .at-thumbs{bottom:8px;padding:0;max-width:calc(100% - 24px);background:transparent;backdrop-filter:none;border-radius:0}
 .at-thumbs button{opacity:.45;border-color:#ddd}.at-thumbs button[aria-pressed=true]{border-color:#222;box-shadow:none}
 .at-gallery-arrow{top:calc((100% - 76px)/2)}
 .at-product-info,.at-product-dialog .at-product-info{height:auto;overflow:visible;padding:18px 16px 24px;gap:14px}
 .at-product-info h1,.at-product-info h2{font-size:20px}
 .at-product-dialog>.at-dialog-close{top:10px;right:10px;width:36px;height:36px}
}
@media(max-width:600px){
 .at-pilot{padding:16px var(--at-page-gutter) 64px}.at-pilot-note{font-size:9px;margin-bottom:8px}.at-heading nav{font-size:10px;margin-bottom:14px}
 .at-heading .at-kicker{font-size:9px;margin-bottom:6px}.at-heading h1{font-size:24px;line-height:1.18}.at-heading>p{font-size:12px;line-height:1.5;margin-top:10px}
 .at-heading{margin-bottom:14px}.at-sections a{font-size:11px;padding:5px 10px}
 .at-styles{padding:8px;gap:5px;border-radius:16px}.at-styles a{font-size:11px;line-height:18px;padding:5px 8px;gap:6px}.at-styles i{width:18px;height:18px}
 .at-toolbar{font-size:11px;gap:9px}.at-toolbar button{font-size:11px;padding:3px 8px}.at-toolbar select{font-size:11px;padding:4px 6px}
 .at-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.at-product-grid[data-columns="1"]{grid-template-columns:minmax(0,1fr)}
 .at-card-picture{border-radius:12px}.at-card h3{font-size:12px;line-height:1.3;margin-top:7px}.at-card .at-price strong{font-size:14px}.at-card .at-price span{font-size:11px}.at-card .at-price{gap:3px}.at-card .at-price-note{display:none}.at-badge{font-size:7px;line-height:1.3;padding:3px 5px;top:6px;left:6px}
 .at-card-cta{font-size:11px;line-height:18px;padding:6px 0}.at-card-dots{bottom:7px;gap:4px}.at-card-dots i{width:5px;height:5px}
 .at-product-info .at-price strong{font-size:24px}.at-product-info .at-price span{font-size:14px}.at-product-specs>div{font-size:12px}
 .at-order-dialog{padding:36px 20px 20px}.at-order-dialog>p{font-size:12px}
 .at-copy,.at-faq{margin:32px 0}.at-copy h2,.at-faq h2{font-size:23px}.at-copy p{font-size:13px;margin-top:12px}.at-pilot summary{font-size:13px}.at-pilot details{padding:12px 0}
 .at-contact{padding:20px;gap:16px}.at-contact h2{font-size:24px}.at-contact p{font-size:12px}.at-button{width:auto}
}
@media(prefers-reduced-motion:reduce){.at-card-picture img{transition:none}}

.at-faq summary{display:flex;align-items:center;justify-content:space-between;gap:16px;list-style:none}
.at-faq summary::-webkit-details-marker{display:none}
.at-faq summary .at-icon{width:16px;height:16px;color:#888;transition:transform .15s}
.at-faq details[open] summary .at-icon{transform:rotate(180deg)}
.at-pilot .at-card-cta{font-size:12px;line-height:20px;padding:6px 0}
@media(max-width:600px){.at-pilot .at-card-cta{font-size:11px;line-height:18px;padding:6px 0}}

.at-product-grid.at-masonry{display:flex;gap:28px;align-items:flex-start}
.at-masonry-column{flex:1;min-width:0;display:flex;flex-direction:column;gap:28px}
.at-masonry-column>.at-card{width:100%;align-self:stretch}
@media(max-width:819px){.at-product-grid.at-masonry{gap:16px}.at-masonry-column{gap:16px}}
@media(min-width:1100px){.at-product-grid:not(.at-masonry){grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:1500px){.at-product-grid:not(.at-masonry){grid-template-columns:repeat(5,minmax(0,1fr))}}

.at-columns{display:flex;gap:4px;margin-left:auto}
.at-pilot .at-columns button{display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:1px solid #ddd;border-radius:6px;background:white;color:#888}
.at-pilot .at-columns button[aria-pressed=true]{border-color:#333;color:#222;background:#fafafa}
.at-columns .at-icon{width:16px;height:16px}
@media(max-width:600px){.at-columns{margin-left:0}.at-pilot .at-columns button{width:32px;height:32px}}
/* A single spacing contract for the style/filter/column panel. */
.at-pilot{--at-panel-space:8px;--at-control-content:20px;--at-control-height:38px}
.at-pilot .at-styles{padding:var(--at-panel-space);gap:var(--at-panel-space);margin:16px 0 8px;border-radius:27px;align-items:center}
.at-pilot .at-styles>span{margin:0;padding:0;line-height:20px;flex:none}
.at-pilot .at-styles a{padding:var(--at-panel-space);gap:var(--at-panel-space);min-height:var(--at-control-height);line-height:var(--at-control-content);font-size:12px;flex:none}
.at-pilot .at-styles i{width:var(--at-control-content);height:var(--at-control-content)}
.at-pilot .at-toolbar{gap:var(--at-panel-space);margin:0 0 16px;align-items:center}
.at-pilot .at-toolbar nav{display:flex;flex-wrap:wrap;gap:var(--at-panel-space)}
.at-pilot .at-toolbar nav button{padding:var(--at-panel-space);min-height:var(--at-control-height);line-height:var(--at-control-content);font-size:12px;white-space:nowrap;flex:none}
.at-pilot .at-columns{gap:var(--at-panel-space)}
.at-pilot .at-columns button{width:var(--at-control-height);height:var(--at-control-height);padding:var(--at-panel-space)}
.at-pilot .at-columns .at-icon{width:var(--at-control-content);height:var(--at-control-content)}
.at-product-grid.at-masonry{gap:var(--masonry-gap,28px)}
.at-masonry-column{gap:var(--masonry-gap,28px)}
.at-card-badges{position:absolute;top:10px;left:10px;right:10px;display:flex;align-items:flex-start;flex-wrap:wrap;gap:5px;pointer-events:none}
.at-card-badges .at-badge,.at-product-badges .at-badge{position:static;margin:0;font-size:9px;line-height:1.3;padding:4px 7px;border-radius:5px;text-transform:uppercase}
.at-badge.at-badge--individual{background:#000;color:#85cad4}.at-badge.at-badge--new{background:#173c2a;color:#7fccaa}.at-badge.at-badge--premium{background:#3a2e1a;color:#d4a06a}.at-badge.at-badge--special{background:#3a1e1a;color:#e88a6a}
@media(max-width:600px){
  .at-pilot{--at-control-content:18px;--at-control-height:36px}
  .at-pilot .at-styles a,.at-pilot .at-toolbar nav button{font-size:11px}
  .at-pilot .at-styles{border-radius:26px}
  .at-pilot .at-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
  .at-pilot .at-toolbar>p{grid-column:1;grid-row:1}
  .at-pilot .at-toolbar>.at-columns{grid-column:2;grid-row:1;margin-left:0}
  .at-pilot .at-toolbar>nav{grid-column:1/-1;grid-row:2}
  .at-card-badges{top:6px;left:6px;right:6px;gap:4px}
  .at-card-badges .at-badge{font-size:7px;padding:3px 5px}
}
