/* Shared touch layout for the catalog, product pages and checkout. */
button,a,input,select,textarea{touch-action:manipulation}
button:focus-visible,a:focus-visible,select:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media(max-width:900px){
 html{scroll-padding-top:100px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
 body{font-size:16px}
 button,input,select,textarea{font-family:Arial,Helvetica,sans-serif}
 button,input:not([type=checkbox]),select{min-height:48px}
 input,select,textarea{font-size:16px!important;max-width:100%}
 button{white-space:normal;line-height:1.35}
 .nav{flex-wrap:wrap;padding-block:10px;gap:8px!important}
 .brand{display:flex;align-items:center;min-height:44px;flex-shrink:0}
 .brand img{width:104px;height:auto}
 .links,.navlinks{gap:8px!important;flex-wrap:wrap;justify-content:flex-end;min-width:0}
 .links>a,.navlinks>a{display:inline-flex;align-items:center;min-height:44px;font-size:12px;letter-spacing:.03em}
 .links .desktop{display:none}
 .navlinks a:first-child{display:inline-flex}
 .bag-button{display:inline-flex!important;align-items:center;justify-content:center;width:auto!important;min-height:48px;padding:10px!important;font-size:12px;flex-shrink:0}
 .bag-button strong{flex-shrink:0}
 .hero-action{display:flex;width:100%;max-width:430px;min-height:52px;justify-content:space-between;gap:12px;text-align:left;line-height:1.5;letter-spacing:.06em;padding:16px}
 .intro{gap:28px!important;overflow:visible}
 .hero-stage{display:flex;flex-direction:column;min-height:0!important;padding:0 0 26px;gap:16px}
 .hero-switch{position:static;order:-1;align-self:stretch;min-height:48px;margin:0;font-size:14px;letter-spacing:.04em;z-index:2}
 .hero-product{width:100%;max-height:460px;object-fit:contain;animation:none}
 .hero-label{position:static;align-self:flex-start;font-size:12px;line-height:1.5;padding-right:65px}
 .hero-stage:after{bottom:28px;font-size:12px}
 .hero-glow{pointer-events:none}
 .options,.stone-options,.buy{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:stretch}
 .options label,.stone-options label,.buy label{min-width:0;font-size:14px;line-height:1.5}
 .options select,.stone-options select,.buy select{width:100%;min-width:0;min-height:50px;border-radius:0}
 .add,.stone-add,.buy button,.primary,.secondary,.checkout{width:100%;min-width:0;min-height:52px;font-size:14px;padding:15px 16px;line-height:1.5;letter-spacing:.04em;white-space:normal;text-align:center}
 .detail-link,.back{min-height:44px;line-height:1.5;letter-spacing:.03em}
 .flip,.side-switch{min-height:44px;font-size:14px;max-width:calc(100% - 24px);padding:10px 14px}
 .photo img{height:100%;object-fit:contain}
 .photo{min-height:0!important}
 .stage{min-width:0;min-height:0!important;padding-bottom:60px}
 .stage img{width:100%;height:auto!important;max-height:480px;object-fit:contain}
 .content h1{font-size:clamp(36px,12vw,70px)!important;line-height:1.05!important;overflow-wrap:normal}
 .specs div{flex-wrap:wrap;gap:8px 16px;line-height:1.5}
 .specs dd{max-width:100%;overflow-wrap:anywhere}
 .drawer{width:min(100%,460px)!important;max-width:100%;height:100vh;height:100dvh;bottom:auto;padding-bottom:env(safe-area-inset-bottom,0px)}
 .drawer-head,.cart-foot{flex-shrink:0;padding:16px}
 .drawer-head h2{font-size:28px;line-height:1.15}
 .close{min-width:48px;min-height:48px}
 .cart-lines{min-height:0;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-inline:16px}
 .cart-item{grid-template-columns:60px minmax(0,1fr);gap:12px}
 .cart-item img{width:60px;height:76px}
 .cart-item strong{overflow-wrap:anywhere}
 .cart-item button{min-height:44px;min-width:60px;text-align:left}
 .cart-foot p{margin:10px 0 0;font-size:13px;line-height:1.4}
 .cart-foot .total{margin-bottom:12px}
 .box,.row,.field,.order-line>div{min-width:0}
 .actions{display:grid;grid-template-columns:minmax(0,1fr);width:100%;gap:12px}
 .steps{flex-wrap:wrap;overflow:visible;font-size:12px;line-height:1.5;letter-spacing:.04em}
 .check{align-items:flex-start;line-height:1.5;padding-block:8px}
 .check input{width:24px;height:24px;margin:0;flex-shrink:0}
 .review-row{flex-wrap:wrap;gap:6px 16px}.review-row span:last-child{text-align:left}
 .footer-links{align-items:center;gap:12px}.footer-links>a{min-height:44px;display:inline-flex;align-items:center}
 .footer-links .social-icon{width:48px;height:48px}
 .foot,.footer{line-height:1.7;padding-bottom:calc(28px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:360px){
 .nav{justify-content:center}.nav .brand{margin-right:auto}.links{gap:5px!important}
 .brand img{width:90px}.links>a{font-size:11px}.bag-button{font-size:11px;padding:8px!important}
 .details,.stone-info,.box{padding:16px}.hero-action{font-size:12px}
 .total{font-size:18px;flex-wrap:wrap;gap:8px}
}
@media(max-height:500px) and (orientation:landscape){
 .drawer-head{padding-block:6px}.cart-foot{padding-block:8px}.cart-foot p{display:none}
 .topbar{position:relative}
}
@media(hover:none){.card:hover,.stone-piece:hover,.hero-action:hover,.hero-switch:hover{transform:none}}

/* Editable basket controls on every screen size. */
.line-controls{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px;align-items:flex-end}
.line-controls label{display:grid;gap:6px;font-size:14px;line-height:1.4;letter-spacing:0;text-transform:none;color:#eee}
.line-controls select,.line-controls input{background:#111;color:#fff;border:1px solid #777;border-radius:0;font:16px Arial,sans-serif;min-height:46px;max-width:100%}
.line-controls select{width:78px;padding:10px}
.quantity-controls{display:flex;align-items:stretch}
.line-controls .quantity-controls button{width:42px;min-width:42px;min-height:46px;padding:6px;background:#292929;color:#fff;border:1px solid #777;font-size:22px;text-align:center;text-decoration:none}
.quantity-controls input{width:52px;min-width:0;text-align:center;padding:5px;border-inline:0;appearance:textfield;-moz-appearance:textfield}
.quantity-controls input::-webkit-inner-spin-button,.quantity-controls input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.line-controls button:disabled{opacity:.35;cursor:not-allowed}
.line-controls .remove-line{min-height:44px;padding:8px 0;background:transparent;color:#eee;border:0;font-size:14px;text-decoration:underline;text-underline-offset:3px}
.line-controls :focus-visible{outline:2px solid #fff;outline-offset:2px}
@media(max-width:430px){.order-line{grid-template-columns:54px minmax(0,1fr)!important;gap:12px}.order-line img{width:54px!important;height:68px!important}.line-controls{gap:10px}.line-controls .remove-line{flex-basis:100%;text-align:left}}
