/* Product dialogs share one restrained visual system across Gear, Watch and FYB. */
.te-product-view{container-type:inline-size;min-width:0;color:#f1f1f1;font-family:Arial,Helvetica,sans-serif;font-size:16px}
.te-product-view *{box-sizing:border-box}.te-product-view [hidden]{display:none!important}
.te-product-view .gear-detail-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;min-width:0}
.te-product-view .te-product-info{min-width:0}.te-product-view h2{font-size:24px;line-height:1.3;margin:8px 0 16px;overflow-wrap:anywhere}
.te-product-view .gear-brand{font-size:13px;font-weight:700;text-transform:uppercase;color:#b7bbc2;margin:0}
.te-product-view .gear-product-identifier{font-family:monospace;overflow-wrap:anywhere;font-size:14px;line-height:1.5;margin:8px 0}
.te-product-view .gear-type,.te-product-view .gear-fine{color:#b7bbc2;font-size:13px;line-height:1.6;margin:12px 0}
.te-product-view .gear-offers,.te-product-view .gear-seller-options,.te-product-view .gear-seller-option{display:grid;gap:8px}
.te-product-view .gear-offers{margin-top:20px}.te-product-view .gear-seller-options{gap:12px}
.te-product-view .gear-button{display:flex;justify-content:center;align-items:center;gap:8px;min-height:46px;width:100%;padding:12px 16px;border:1px solid #3b82f6;border-radius:10px;background:#2563eb;color:#fff;font-size:15px;font-weight:700;text-decoration:none;line-height:1.35;text-align:center}
.te-product-view .gear-button:hover{background:#1d4ed8}.te-product-view a{color:#8cc2ff}.te-product-view a:focus-visible,.te-product-view button:focus-visible{outline:2px solid #8cc2ff;outline-offset:3px}
.te-product-view .gear-save,.te-product-view .gear-copy-coupon{font:inherit;cursor:pointer;min-height:44px;border:1px solid #50555e;border-radius:8px;padding:9px 12px;color:#f1f1f1;background:#20242a}
.te-product-view .gear-studio-actions{display:flex;flex-wrap:wrap;gap:10px}.te-product-view .gear-coupon{display:flex;flex-wrap:wrap;min-width:0}
.te-product-view .gear-copy-coupon{display:inline-flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:5px;border-color:var(--te-action-coupon,#f5d547);color:var(--te-action-coupon,#f5d547);background:var(--te-elevated,#282828);font-size:12px;padding:7px 10px;min-height:44px;max-width:100%}
.te-product-view .gear-copy-coupon[data-copy-state=copied]{border-color:var(--te-action-saved,#b9ed32);color:var(--te-action-saved,#b9ed32)}
.te-product-view .gear-coupon-status{flex-basis:100%;font-size:12px;line-height:1.5;color:#b7bbc2}.te-product-view .gear-coupon-status:empty{display:none}
.te-product-view .gear-related{border-top:1px solid #464a50;padding-top:16px;margin-top:22px;font-size:13px;line-height:1.6}.te-product-view .gear-related h3{font-size:15px;margin:0 0 8px}.te-product-view .gear-related a{display:block;margin:8px 0}
.te-product-view .gear-image,.te-product-view .gear-gallery-stage{position:relative;overflow:hidden;height:300px;border:1px solid #313640;border-radius:12px;background:radial-gradient(ellipse at 50% 38%,#ffffff13,#ffffff00 72%),#12161f}
.te-product-view .gear-image img,.te-product-view .gear-gallery-stage img{display:block;width:100%;height:100%;object-fit:var(--gear-photo-fit,contain);object-position:center;transform:translate(var(--gear-photo-x,0%),var(--gear-photo-y,0%)) scale(var(--gear-photo-scale,1));object-view-box:var(--gear-object-view-box,none)}
.te-product-view .gear-image img[data-failed=true]{display:none}.te-product-view .gear-image:not(:has(img:not([data-failed=true])))::after{content:'Product photo unavailable';position:absolute;inset:0;display:grid;place-items:center;color:#b7bbc2;font-size:13px}
.te-product-view .gear-gallery-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));height:100%;gap:8px}.te-product-view .gear-gallery-tile{min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:5px}.te-product-view .gear-gallery-preview{height:100%}
.te-product-view .gear-gallery-info{padding:10px 16px}.te-product-view .gear-gallery-label,.te-product-view .gear-gallery-caption{font-size:12px;line-height:1.5;color:#b7bbc2;margin:4px 0}.te-product-view .gear-gallery-caption{overflow-wrap:anywhere}
.te-product-view .gear-gallery-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.te-product-view .gear-gallery-controls button,.te-product-view .gear-pair-toggle{cursor:pointer;min-width:44px;min-height:44px;padding:8px 12px;border:1px solid #50555e;border-radius:8px;background:#20242a;color:#f1f1f1;font:inherit}
.te-product-view .gear-gallery-position{font-size:12px;color:#b7bbc2}.te-product-view .gear-gallery-status,.te-product-view .gear-pair-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.te-product-view .gear-pair-frame{height:100%;position:relative}.te-product-view .gear-image-pair{height:auto;overflow:visible}.te-product-view .gear-image-pair .gear-pair-frame{height:300px;overflow:hidden}.te-product-view .gear-pair-toggle{margin-top:8px}.te-product-view .gear-pair-empty,.te-product-view .gear-gallery-unavailable{position:absolute;inset:0;display:grid;place-items:center;color:#b7bbc2}
.te-product-view .gear-family-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(184px,100%),1fr));gap:14px}.te-product-view .gear-family-option{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;border:1px solid #343a44;border-radius:10px;overflow:hidden;background:#12161f;min-width:0}
.te-product-view .gear-family-option-content{padding:12px;display:flex;flex-direction:column;flex:1}.te-product-view .gear-family-offers{margin-top:auto;padding-top:8px}.te-product-view .gear-family-option h3{font-size:15px;margin:0;line-height:1.4}.te-product-view .gear-family-option h3 a{color:#f1f1f1;text-decoration:none}.te-product-view .gear-photo-link{position:absolute;inset:0;z-index:1}.te-product-back{margin-bottom:18px}
@container(min-width:560px){.te-product-view .gear-detail-layout{grid-template-columns:minmax(220px,1fr) minmax(240px,1fr);align-items:start}.te-product-view h2{font-size:26px}}
html body .te-product-dialog,html body #gear-detail{width:min(940px,calc(100vw - 32px));max-width:none;max-height:90dvh;padding:0;border:1px solid #50555e;border-radius:14px;background:#121212;color:#f1f1f1;overflow:hidden}
html body .te-product-dialog[open],html body #gear-detail[open]{display:flex;flex-direction:column}
.te-product-dialog::backdrop,#gear-detail::backdrop{background:#000a;backdrop-filter:blur(4px)}
.te-product-dialog .dialog-bar,#gear-detail .dialog-bar{flex:none;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 18px;background:#1b1f27;border-bottom:1px solid #464a50;font-size:13px;font-weight:700}
.te-product-dialog .dialog-bar button,#gear-detail .dialog-bar button{font:inherit;min-height:44px;padding:9px 14px;border:1px solid #50555e;border-radius:8px;background:#20242a;color:#fff;cursor:pointer}
.te-product-dialog-body,html body #gear-detail-body{flex:1;min-height:0;overflow:auto;overscroll-behavior-y:contain;padding:20px;box-sizing:border-box}
html body.product-view-embedded{margin:0;padding:0!important;background:#121212;color:#f1f1f1;min-height:0;font-family:Arial,Helvetica,sans-serif}.product-view-embedded .te-product-dialog-body{overflow:visible;padding:16px}
@media(max-width:767px),(pointer:coarse){html body .te-product-dialog,html body #gear-detail{position:fixed;inset:auto 0 0;width:100%;max-height:92dvh;margin:0;border-radius:16px 16px 0 0;border-bottom:0}.te-product-dialog-body,html body #gear-detail-body{padding:16px max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}.te-product-view .gear-copy-coupon{min-height:44px}.te-product-view .gear-image,.te-product-view .gear-gallery-stage{height:280px}}
@media(prefers-reduced-motion:reduce){.te-product-view *{scroll-behavior:auto}}

.te-product-variants{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.te-product-variants a{text-decoration:none;font-size:13px}.te-product-variants [aria-current=true]{background:#1e385c;border-color:#69aaff}

/* Every photo preview uses the same small edge controls. Their transparent
   container leaves photo links, touch scrolling and Studio drag targets open. */
.gear-gallery-frame{position:relative;min-width:0}.gear-page #gear-main .gear-card>.gear-gallery>.gear-gallery-frame{height:100%}
.gear-gallery .gear-media-count,.gear-family-preview>.gear-media-count,.gear-image-pair>.gear-media-count{position:absolute;top:8px;left:8px;z-index:3;max-width:calc(100% - 72px);padding:4px 7px;margin:0;border:1px solid var(--te-border,#474b52);border-radius:6px;background:#0b0d10d9;color:var(--te-text,#f1f1f1);font:600 11px/1.4 system-ui;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
html body :is(.gear-gallery-frame,.gear-family-preview,.gear-image-pair)>.gear-media-controls{position:absolute;inset:0;z-index:3;display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:0;margin:0;padding:0 5px;border:0;border-radius:0;background:transparent;pointer-events:none}
html body :is(.gear-gallery-frame,.gear-family-preview,.gear-image-pair)>.gear-media-controls button{display:grid;place-items:center;flex:none;width:36px;min-width:36px;height:44px;min-height:44px;margin:0;padding:0;border:1px solid var(--te-border,#777e89);border-radius:8px;background:#0b0d10d9;color:var(--te-text,#f1f1f1);font:400 25px/1 system-ui;cursor:pointer;pointer-events:auto;box-shadow:none}
html body :is(.gear-gallery-frame,.gear-family-preview,.gear-image-pair)>.gear-media-controls button:hover{background:#303640;border-color:var(--te-blue,#69aaff)}
html body :is(.gear-gallery-frame,.gear-family-preview,.gear-image-pair)>.gear-media-controls button:focus-visible{outline:3px solid var(--te-blue,#69aaff);outline-offset:2px}
html body :is(.gear-gallery-frame,.gear-family-preview,.gear-image-pair)>.gear-media-controls button:disabled{opacity:.45;cursor:default}
@media(forced-colors:active){html body :is(.gear-gallery-frame,.gear-family-preview,.gear-image-pair)>.gear-media-controls{background:transparent;border:0}html body :is(.gear-gallery-frame,.gear-family-preview,.gear-image-pair)>.gear-media-controls button,.gear-media-count{background:Canvas;color:CanvasText;border-color:CanvasText}}
@media(max-width:767px),(pointer:coarse){.te-product-view .gear-image-pair .gear-pair-frame{height:280px}}

/* Shared discovery cards: uninterrupted square cover, predictable text and
   touch-sized controls below it. Full product viewers keep their galleries. */
html body .te-product-card.gear-card{display:flex;flex-direction:column;min-width:0;padding:0;gap:0;overflow:hidden;border:1px solid var(--te-border,#343a44);border-radius:14px;background:var(--te-card,#12161f);color:var(--te-text,#f1f1f1);box-sizing:border-box}
html body .te-product-card> :is(.gear-image,.te-product-card-photo){position:relative;display:block;flex:none;width:100%;height:auto;min-height:0;aspect-ratio:1;border:0;border-radius:0;margin:0;padding:clamp(10px,2vw,22px);overflow:hidden;background:radial-gradient(ellipse at 50% 38%,#ffffff13,#ffffff00 72%),#12161f;box-sizing:border-box}
html body .te-product-card> :is(.gear-image,.te-product-card-photo) img{display:block;width:100%;height:100%;object-fit:var(--gear-photo-fit,contain);object-position:center;object-view-box:var(--gear-object-view-box,none);transform:translate(var(--gear-photo-x,0%),var(--gear-photo-y,0%)) scale(var(--gear-photo-scale,1))}
html body .te-product-card> :is(.gear-image,.te-product-card-photo) img[data-failed=true]{display:none}
html body .te-product-card> :is(.gear-image,.te-product-card-photo):not(:has(img:not([data-failed=true]))):not(:has(.video-tool-photo-empty))::after{content:'Product photo unavailable';position:absolute;inset:12px;display:grid;place-items:center;color:var(--te-muted,#b7bbc2);font-size:13px;line-height:1.5;text-align:center;pointer-events:none}
html body .te-product-card .gear-photo-link{position:absolute;inset:0;z-index:1}
html body .te-product-card .te-product-card-content{display:flex;flex-direction:column;flex:none;min-width:0;padding:12px;gap:0}
html body .te-product-card .te-product-card-brand{display:block;flex:none;height:1.5em;min-height:1.5em;font-size:11px;line-height:1.5;font-weight:700;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--te-muted,#b7bbc2);margin:0 0 6px}
html body .te-product-card .te-product-card-brand a{color:inherit}
html body .te-product-card .te-product-card-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;flex:none;overflow:hidden;font-size:16px;line-height:1.4;height:4.2em;min-height:4.2em;max-height:4.2em;margin:0;font-weight:700;overflow-wrap:anywhere}
html body .te-product-card .te-product-card-title a{color:inherit;text-decoration:none}
html body .te-product-card .te-product-card-actions{display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center;flex:none;gap:8px;height:44px;min-height:44px;margin:8px 0 0;padding:0}
html body .te-product-card .te-product-card-actions :is(.te-product-card-options,.gear-top-pick-options){display:inline-flex;align-items:center;min-width:0;min-height:44px;max-width:calc(100% - 52px);font-size:13px;line-height:1.4;color:var(--te-blue,#69aaff);text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .te-product-card .te-product-card-actions :is(.te-product-card-save,.gear-card-bookmark){position:static;inset:auto;display:grid;place-items:center;flex:0 0 44px;align-self:auto;width:44px;height:44px;min-width:44px;min-height:44px;max-width:44px;margin:0;padding:11px;border:0;border-radius:6px;background:transparent;box-shadow:none;color:var(--te-text,#f1f1f1);cursor:pointer;box-sizing:border-box}
html body .te-product-card .te-product-card-actions :is(.te-product-card-save,.gear-card-bookmark) svg{width:22px;height:22px}
html body .te-product-card .te-product-card-actions :is(.te-product-card-save,.gear-card-bookmark):hover{background:var(--te-hover,#2a303a)}
html body .te-product-card .te-product-card-actions [aria-pressed=true]{color:var(--te-action-saved,#b9ed32)}
html body .te-product-card .te-product-card-photo-navigation{display:flex;align-items:center;flex:1;min-width:0;height:44px;gap:0}
html body .te-product-card .te-product-card-photo-navigation .te-product-card-options{flex:1;min-width:0;max-width:none;justify-content:center;text-align:center}
html body .te-product-card .te-product-card-photo-navigation>button{display:none;place-items:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:6px;background:transparent;color:var(--te-text,#f1f1f1);cursor:pointer;font:300 23px/1 system-ui;box-shadow:none}
html body .te-product-card .te-product-card-photo-navigation>button:hover{background:var(--te-hover,#2a303a)}
html body .te-product-card .te-product-card-photo-navigation>button:disabled{opacity:.4;cursor:default}
html body .te-product-card[data-product-card-photos]> :is(.gear-image,.te-product-card-photo){touch-action:pan-y pinch-zoom}
@media(hover:hover) and (pointer:fine){html body .te-product-card .te-product-card-photo-navigation>button{display:grid}}
@media(hover:none),(pointer:coarse){html body .te-product-card .te-product-card-photo-navigation .te-product-card-options{justify-content:flex-start;text-align:left}}
html body .te-product-card :is(a,button):focus-visible{outline:3px solid var(--te-blue,#69aaff);outline-offset:-3px}
html body .te-product-card .te-product-card-options:hover,html body .te-product-card .te-product-card-title a:hover{text-decoration:underline}
html body .te-product-card .te-product-card-footer{display:flex;flex-direction:column;flex:1;min-width:0;gap:10px;margin:0;padding:0 12px 12px}
html body .te-product-card .te-product-card-footer> :last-child{margin-top:auto}
html body .te-product-card .te-product-card-footer:empty{display:none}
/* The same single popup action fits every product card. Retailer choices live
   in the popup; a small photo cue does not add another metadata row. */
html body .te-product-card{container-type:inline-size}
html body .te-product-card .te-product-card-actions a.te-product-card-primary-action{gap:5px;color:var(--te-blue,#69aaff);font-size:13px;font-weight:500}
html body .te-product-card .te-product-card-primary-action>span{overflow:hidden;text-overflow:ellipsis}
html body .te-product-card .te-product-card-photo-cue{flex:0 0 14px}
html body .te-product-card[data-product-card-photos]>:is(.gear-image,.te-product-card-photo){touch-action:auto}
@container(max-width:270px){html body .te-product-card .te-product-card-photo-navigation>button{display:none}html body .te-product-card .te-product-card-photo-navigation .te-product-card-options{justify-content:flex-start;text-align:left}}
html body .te-product-view .gear-family-options>.te-product-card{height:100%}
/* A range cover samples the destination without adding another carousel. */
.gear-range-previews{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);width:100%;height:100%;gap:8px;pointer-events:none}
.gear-range-preview{display:flex;min-width:0;min-height:0;overflow:hidden;align-items:center;justify-content:center}
html body .te-product-card .te-product-card-actions :is(.te-product-range-label,.te-product-color-label),.te-product-view .te-product-range-label{font-size:12px;line-height:1.5;color:var(--te-muted,#b7bbc2);font-weight:400}
.te-product-view p.te-product-range-label{margin:8px 0}
.te-product-range-links{margin-top:24px;padding-top:20px;border-top:1px solid var(--te-border,#474b52)}
.te-product-range-links[hidden]{display:none}
.te-product-range-links>.gear-save{display:inline-block;max-width:100%;overflow-wrap:anywhere}
.te-product-owned-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:12px;align-items:stretch}
html body .te-product-owned-grid>.te-product-card{max-width:300px;height:100%}
html body .te-product-owned-grid .te-product-card-title{font-size:16px}
@media(max-width:560px){.te-product-owned-grid{grid-template-columns:repeat(2,minmax(0,1fr))}html body .te-product-owned-grid .te-product-card-title{font-size:14px}}
/* Deliberate photo navigation has its own space outside the image. */
.te-product-view .gear-gallery-manual .gear-gallery-frame{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;align-items:center}
.te-product-view .gear-gallery-manual .gear-gallery-stage{min-width:0}
.te-product-view .gear-gallery-manual [data-gallery-prev],.te-product-view .gear-gallery-manual [data-gallery-next]{display:grid;place-items:center;width:44px;min-width:44px;height:44px;margin:0;padding:0;border:1px solid var(--te-border,#777e89);border-radius:8px;background:#20242a;color:var(--te-text,#f1f1f1);font:400 25px/1 system-ui;cursor:pointer}
.te-product-view .gear-gallery-manual [data-gallery-overview]{min-height:44px;margin-left:10px;border:1px solid var(--te-border,#777e89);border-radius:8px;padding:8px 12px;background:#20242a;color:var(--te-text,#f1f1f1);font:inherit;cursor:pointer}
.te-product-view .gear-gallery-manual button:disabled{opacity:.45;cursor:default}
@media(max-width:560px){.te-product-view .gear-gallery-manual .gear-gallery-frame{grid-template-columns:1fr 1fr}.te-product-view .gear-gallery-manual .gear-gallery-stage{grid-column:1/-1;grid-row:1}.te-product-view .gear-gallery-manual [data-gallery-prev]{grid-column:1;grid-row:2;justify-self:start}.te-product-view .gear-gallery-manual [data-gallery-next]{grid-column:2;grid-row:2;justify-self:end}}
.te-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
@media(forced-colors:active){html body .te-product-card .te-product-card-actions :is(.te-product-card-save,.gear-card-bookmark){background:ButtonFace;color:ButtonText}html body .te-product-card .te-product-card-actions [aria-pressed=true]{color:Highlight}}
