/* ==========================================================================
   Tylok Product Suite — frontend styles for all 5 widgets.
   Prefixed "tylok-" throughout to avoid clashing with the active theme.
   Color/spacing values match the original design system; Elementor's own
   Style-tab controls override the specific properties they expose.
   ========================================================================== */

:root{
  --tylok-ink:#0B0E13; --tylok-blue-900:#0C2643; --tylok-blue-800:#123657; --tylok-blue-700:#184873;
  --tylok-steel-050:#F7F8F9; --tylok-steel-100:#F1F3F5; --tylok-steel-200:#E3E7EB; --tylok-steel-300:#CBD2D9; --tylok-steel-400:#9AA7B2;
  --tylok-text:#1A2126; --tylok-text-mute:#5B6670; --tylok-white:#FFFFFF;
  --tylok-brass:#B87A3D; --tylok-brass-light:#D9A468; --tylok-spark:#D9611F; --tylok-spark-light:#F2894D;
  --tylok-line:rgba(11,14,19,.10); --tylok-success:#2E7D5B;
  --tylok-font-body:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
  --tylok-font-mono:'IBM Plex Mono','Courier New',monospace;
  --tylok-radius:4px; --tylok-ease:cubic-bezier(.22,.61,.36,1); --tylok-dur:200ms;
}

.tylok-ph,.tylok-product-card,.tylok-cat-card,.tylok-inquiry-drawer,.tylok-search-panel,.tylok-header,.tylok-mobile-nav,.tylok-inquiry-form-wrap *{box-sizing:border-box;}

/* ---------------- Placeholder image panels ---------------- */
.tylok-ph{position:relative;overflow:hidden;background:var(--tylok-steel-200);
  background-image:linear-gradient(155deg, rgba(12,38,67,.94) 0%, rgba(20,55,87,.86) 45%, rgba(184,122,61,.30) 100%);}
.tylok-ph::before{content:'';position:absolute;inset:0;
  background-image:repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 32px),repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 32px);
  mix-blend-mode:overlay;}
.tylok-ph-tone-warm{background-image:linear-gradient(155deg, rgba(184,122,61,.9), rgba(20,55,87,.85));}
.tylok-ph-tone-deep{background-image:linear-gradient(160deg, rgba(11,14,19,.96), rgba(20,55,87,.88));}
.tylok-ph--photo{background:#fff;}
.tylok-ph-img,.tylok-ph--photo img{position:absolute!important;inset:0;width:100%!important;height:100%!important;max-width:none;object-fit:cover!important;object-position:center center!important;display:block;margin:0;}
.tylok-ph-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:46%;}

/* ---------------- Buttons (shared) ---------------- */
.tylok-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:var(--tylok-font-body);font-weight:600;font-size:.92rem;
  padding:13px 24px;border-radius:2px;transition:all var(--tylok-dur) var(--tylok-ease);white-space:nowrap;cursor:pointer;border:none;text-decoration:none;}
.tylok-btn-primary{background:var(--tylok-spark);color:#fff;}
.tylok-btn-primary:hover{background:var(--tylok-spark-light);color:#fff;transform:translateY(-1px);}
.tylok-btn-outline{border:1px solid var(--tylok-steel-400);color:var(--tylok-text);background:transparent;}
.tylok-btn-outline:hover{background:var(--tylok-steel-100);}
.tylok-btn-outline--light{border-color:var(--tylok-steel-300);}
.tylok-btn-sm{padding:9px 16px;font-size:.82rem;}
.tylok-btn-ghost{color:var(--tylok-text);font-weight:600;font-size:.85rem;display:inline-flex;align-items:center;gap:4px;background:none;border:none;cursor:pointer;text-decoration:none;}
.tylok-eyebrow{font-family:var(--tylok-font-mono);font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--tylok-brass);display:inline-block;margin-bottom:10px;}

/* ============================================================
   HEADER WIDGET
   ============================================================ */
.tylok-header{position:fixed;top:0;left:0;right:0;z-index:1000;height:var(--tylok-h-height, 84px);display:flex;align-items:center;
  transition:height .3s var(--tylok-ease), background .3s var(--tylok-ease), box-shadow .3s var(--tylok-ease);}
.tylok-header.is-solid{height:max(56px, calc(var(--tylok-h-height, 84px) - 16px));box-shadow:0 8px 24px rgba(11,14,19,.10);}
.tylok-header-spacer{height:var(--tylok-h-height, 84px);}
.tylok-header-inner{width:100%;max-width:1440px;margin-inline:auto;padding-inline:32px;display:flex;align-items:center;justify-content:space-between;gap:32px;}
.tylok-brand{display:flex;align-items:center;gap:8px;flex-shrink:0;text-decoration:none;}
.tylok-brand-word{font-family:var(--tylok-font-body);font-weight:700;font-size:1.28rem;letter-spacing:.02em;color:#fff;}
.tylok-brand-word span{color:var(--tylok-brass-light);font-size:.7em;vertical-align:super;}
.tylok-brand-img{display:block;width:140px;height:auto;}

.tylok-main-nav{display:flex;align-items:center;flex:1;justify-content:center;}
.tylok-main-nav > ul{display:flex;align-items:center;gap:32px;list-style:none;margin:0;padding:0;}
.tylok-nav-link{font-size:.9rem;font-weight:500;padding:8px 2px;display:flex;align-items:center;gap:6px;text-decoration:none;position:relative;}
.tylok-caret{width:9px;height:9px;opacity:.7;flex-shrink:0;}
li.tylok-has-mega{position:relative;list-style:none;}
li.tylok-has-dropdown{position:relative;list-style:none;}
.tylok-dropdown{list-style:none;margin:0;padding:8px 0;position:absolute;top:100%;left:0;min-width:200px;background:#fff;border:1px solid var(--tylok-line);border-radius:4px;box-shadow:0 16px 40px rgba(11,14,19,.14);opacity:0;visibility:hidden;transform:translateY(6px);transition:all .18s var(--tylok-ease,ease);z-index:40;}
.tylok-dropdown li{list-style:none;}
.tylok-dropdown a{display:block;padding:10px 18px;font-size:.88rem;font-weight:500;text-decoration:none;white-space:nowrap;color:inherit;}
.tylok-dropdown a:hover{background:var(--tylok-steel-050);}
li.tylok-has-dropdown:hover .tylok-dropdown,li.tylok-has-dropdown.tylok-dropdown-open .tylok-dropdown{opacity:1;visibility:visible;transform:translateY(0);}
.tylok-mega{position:fixed;top:var(--tylok-h-live, var(--tylok-h-height, 84px));left:0;right:0;background:#fff;border-top:1px solid var(--tylok-line);box-shadow:0 24px 64px rgba(11,14,19,.16);
  opacity:0;visibility:hidden;transform:translateY(-8px);transition:all .28s var(--tylok-ease);z-index:999;}
li.tylok-has-mega:hover .tylok-mega, li.tylok-has-mega.tylok-mega-open .tylok-mega{opacity:1;visibility:visible;transform:translateY(0);}
.tylok-mega-inner{max-width:1440px;margin-inline:auto;padding:48px 32px;display:grid;grid-template-columns:1.1fr 2fr;gap:64px;}
.tylok-mega-intro h4{margin:0 0 12px;font-size:1.3rem;}
.tylok-mega-intro p{margin:0 0 24px;font-size:.92rem;color:var(--tylok-text-mute);}
.tylok-mega-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px 48px;}
.tylok-mega-grid a{display:flex;align-items:center;justify-content:space-between;padding:12px 4px;border-bottom:1px solid var(--tylok-line);font-size:.92rem;font-weight:500;text-decoration:none;transition:all .15s var(--tylok-ease);}
.tylok-mega-grid a:hover{padding-left:6px;}
.tylok-mega-n{font-family:var(--tylok-font-mono);font-size:.7rem;color:var(--tylok-steel-400);}

.tylok-header-actions{display:flex;align-items:center;gap:16px;flex-shrink:0;}
.tylok-icon-btn{width:38px;height:38px;display:flex;align-items:center;justify-content:center;border-radius:2px;position:relative;background:none;border:none;cursor:pointer;transition:background .15s;}
.tylok-icon-btn:hover{background:rgba(255,255,255,.1);}
.tylok-icon-btn svg{width:19px;height:19px;}
.tylok-inquiry-count{position:absolute;top:2px;right:1px;background:var(--tylok-spark);color:#fff;font-family:var(--tylok-font-mono);font-size:.6rem;
  min-width:16px;height:16px;border-radius:50%;display:flex;align-items:center;justify-content:center;padding:0 2px;font-weight:600;transform:scale(0);transition:transform .15s;}
.tylok-inquiry-count.tylok-show{transform:scale(1);}
.tylok-header-cta{display:inline-flex;align-items:center;padding:12px 22px;border-radius:2px;font-size:.85rem;font-weight:600;text-decoration:none;transition:all .15s;}
.tylok-hamburger{display:none;width:38px;height:38px;align-items:center;justify-content:center;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer;position:relative;}
.tylok-hamburger--bars span{width:20px;height:2px;background:#fff;transition:all .15s;}
.tylok-hamburger--bars.tylok-open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.tylok-hamburger--bars.tylok-open span:nth-child(2){opacity:0;}
.tylok-hamburger--bars.tylok-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}
.tylok-hb-icon{display:none;align-items:center;justify-content:center;color:#fff;}
.tylok-hb-icon svg{width:20px;height:20px;}
.tylok-hb-icon i{font-size:20px;line-height:1;}
.tylok-hamburger--icon .tylok-hb-icon--closed{display:flex;}
.tylok-hamburger--icon.tylok-open .tylok-hb-icon--closed{display:none;}
.tylok-hamburger--icon.tylok-open .tylok-hb-icon--open{display:flex;}

.tylok-mobile-nav{position:fixed;top:0;right:0;bottom:0;width:min(340px,86vw);z-index:1500;transform:translateX(100%);transition:transform .3s var(--tylok-ease);display:flex;flex-direction:column;}
.tylok-mobile-nav-head{flex-shrink:0;display:flex;justify-content:flex-end;padding:20px 20px 0;}
.tylok-mobile-nav-body{flex:1;overflow-y:auto;padding:12px 24px 32px;}
.tylok-mobile-nav.tylok-open{transform:translateX(0);}
.tylok-mobile-nav ul{list-style:none;margin:0;padding:0;}
.tylok-mobile-nav-body > ul > li{border-bottom:1px solid rgba(234,240,245,.16);}
.tylok-mobile-nav a.tylok-nav-link{display:flex;justify-content:space-between;align-items:center;padding:16px 4px;font-weight:500;}
.tylok-mobile-sub{display:none;padding-bottom:12px;}
.tylok-mobile-sub.tylok-open{display:block;}
.tylok-mobile-sub a{display:block;padding:9px 4px;font-size:.88rem;text-decoration:none;opacity:.75;}
.tylok-mobile-cta{margin-top:24px;display:flex;flex-direction:column;gap:12px;}
.tylok-mobile-scrim{position:fixed;inset:0;background:rgba(11,14,19,.5);z-index:1400;opacity:0;visibility:hidden;transition:all .3s;}
.tylok-mobile-scrim.tylok-open{opacity:1;visibility:visible;}

/* Search overlay */
.tylok-search-overlay{position:fixed;inset:0;z-index:2000;background:rgba(11,14,19,.72);opacity:0;visibility:hidden;transition:all .28s var(--tylok-ease);display:flex;align-items:flex-start;justify-content:center;padding-top:12vh;}
.tylok-search-overlay.tylok-open{opacity:1;visibility:visible;}
.tylok-search-panel{width:min(720px,92vw);background:#fff;border-radius:4px;box-shadow:0 24px 64px rgba(11,14,19,.16);transform:translateY(-16px);transition:transform .28s var(--tylok-ease);max-height:74vh;display:flex;flex-direction:column;overflow:hidden;}
.tylok-search-overlay.tylok-open .tylok-search-panel{transform:translateY(0);}
.tylok-search-input-row{display:flex;align-items:center;gap:12px;padding:20px;border-bottom:1px solid var(--tylok-line);}
.tylok-search-input-row svg{width:20px;height:20px;color:var(--tylok-steel-400);flex-shrink:0;}
.tylok-search-input-row input{flex:1;border:none;outline:none;font-size:1.1rem;font-family:var(--tylok-font-body);}
.tylok-search-close{width:30px;height:30px;border-radius:50%;background:var(--tylok-steel-100);display:flex;align-items:center;justify-content:center;flex-shrink:0;border:none;cursor:pointer;color:var(--tylok-text);transition:background .15s;}
.tylok-search-close:hover{background:var(--tylok-steel-200);}
.tylok-search-close svg{width:14px;height:14px;stroke:currentColor;display:block;}
.tylok-search-close i{font-size:14px;line-height:1;}
.tylok-search-close img{width:14px;height:14px;object-fit:contain;}
.tylok-search-body{overflow-y:auto;padding:20px;}
.tylok-search-hint{font-family:var(--tylok-font-mono);font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;color:var(--tylok-steel-400);margin-bottom:12px;}
.tylok-search-result{display:flex;align-items:center;gap:16px;padding:12px;border-radius:2px;text-decoration:none;color:inherit;}
.tylok-search-result:hover{background:var(--tylok-steel-050);}
.tylok-search-result .tylok-sr-thumb{width:52px;height:52px;border-radius:2px;flex-shrink:0;position:relative;overflow:hidden;}
.tylok-sr-name{font-weight:600;font-size:.94rem;}
.tylok-sr-cat{font-family:var(--tylok-font-mono);font-size:.7rem;color:var(--tylok-steel-400);}

/* Inquiry drawer */
.tylok-drawer-scrim{position:fixed;inset:0;background:rgba(11,14,19,.5);z-index:2000;opacity:0;visibility:hidden;transition:all .28s;}
.tylok-drawer-scrim.tylok-open{opacity:1;visibility:visible;}
.tylok-inquiry-drawer{position:fixed;top:0;right:0;bottom:0;width:min(440px,100vw);background:#fff;z-index:2001;transform:translateX(100%);transition:transform .28s var(--tylok-ease);display:flex;flex-direction:column;}
.tylok-inquiry-drawer.tylok-open{transform:translateX(0);}
.tylok-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:20px;border-bottom:1px solid var(--tylok-line);}
.tylok-drawer-head h3{margin:0;font-size:1.2rem;}
.tylok-drawer-body{flex:1;overflow-y:auto;padding:0 20px;}
.tylok-drawer-item{display:flex;gap:16px;padding-block:16px;border-bottom:1px solid var(--tylok-line);}
.tylok-drawer-item .tylok-di-thumb{width:64px;height:64px;border-radius:2px;position:relative;overflow:hidden;flex-shrink:0;}
.tylok-drawer-item h5{margin:0 0 4px;font-size:.92rem;}
.tylok-di-cat{font-family:var(--tylok-font-mono);font-size:.68rem;color:var(--tylok-steel-400);margin-bottom:8px;}
.tylok-qty-row{display:flex;align-items:center;gap:12px;}
.tylok-di-remove{font-size:.78rem;color:var(--tylok-text-mute);text-decoration:underline;margin-left:auto;background:none;border:none;cursor:pointer;}
.tylok-drawer-empty{text-align:center;padding:64px 16px;color:var(--tylok-text-mute);}
.tylok-drawer-empty svg{width:44px;height:44px;margin:0 auto 16px;color:var(--tylok-steel-300);}
.tylok-drawer-foot{padding:20px;border-top:1px solid var(--tylok-line);display:flex;flex-direction:column;gap:12px;}
.tylok-df-row{display:flex;justify-content:space-between;font-size:.88rem;color:var(--tylok-text-mute);}

/* Quantity control (shared: drawer + product detail) */
.tylok-qty-control{display:flex;align-items:center;border:1px solid var(--tylok-steel-300);border-radius:20px;width:fit-content;}
.tylok-qty-control button{width:26px;height:26px;display:flex;align-items:center;justify-content:center;font-size:1rem;font-weight:600;line-height:1;background:none;border:none;cursor:pointer;color:var(--tylok-text)!important;}
.tylok-qty-control span{min-width:22px;text-align:center;font-family:var(--tylok-font-mono);font-size:.82rem;color:var(--tylok-text);}

.tylok-toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%) translateY(20px);background:var(--tylok-ink);color:#fff;padding:14px 22px;border-radius:30px;
  font-size:.88rem;display:flex;align-items:center;gap:10px;z-index:3000;opacity:0;visibility:hidden;transition:all .28s var(--tylok-ease);box-shadow:0 24px 64px rgba(11,14,19,.16);}
.tylok-toast.tylok-show{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0);}
.tylok-toast svg{width:16px;height:16px;color:var(--tylok-success);}

/* ============================================================
   CATEGORY GRID WIDGET
   ============================================================ */
.tylok-cat-current-heading{margin-bottom:28px;}
.tylok-cat-current-heading h2{margin:0 0 8px;}
.tylok-cat-current-heading p{margin:0;color:var(--tylok-text-mute);}
.tylok-cat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;}
.tylok-cat-grid--mobile-slider{}
.tylok-cat-card{background:#fff;border:1px solid var(--tylok-line);border-radius:4px;overflow:hidden;display:flex;flex-direction:column;text-decoration:none;color:inherit;transition:all .25s var(--tylok-ease);}
.tylok-cat-card:hover{box-shadow:0 24px 64px rgba(11,14,19,.16);}
.tylok-cat-card .tylok-ph{aspect-ratio:4/3;}
.tylok-cat-body{padding:20px;display:flex;flex-direction:column;gap:8px;flex:1;}
.tylok-cat-num{font-family:var(--tylok-font-mono);font-size:.68rem;color:var(--tylok-steel-400);}
.tylok-cat-body h3{margin:0;font-size:1.15rem;}
.tylok-cat-body p{margin:0 0 8px;font-size:.9rem;color:var(--tylok-text-mute);}
.tylok-cat-link{margin-top:auto;font-size:.85rem;font-weight:600;}

/* ============================================================
   PRODUCT GRID + FILTER WIDGET
   ============================================================ */
.tylok-product-listing{display:block;}
.tylok-product-listing--with-filters{display:grid;grid-template-columns:260px 1fr;gap:48px;align-items:start;}
.tylok-filter-panel{position:sticky;top:100px;border:1px solid var(--tylok-line);border-radius:4px;padding:20px;}
.tylok-filter-group{margin-bottom:28px;}
.tylok-filter-group h5{font-family:var(--tylok-font-mono);font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;color:var(--tylok-steel-400);margin:0 0 12px;}
.tylok-filter-opt{display:flex;align-items:center;gap:10px;padding:8px 0;font-size:.9rem;cursor:pointer;}
.tylok-filter-opt--child{padding-left:26px;font-size:.86rem;}
.tylok-filter-acc{border-bottom:1px solid var(--tylok-steel-100);}
.tylok-filter-acc:last-child{border-bottom:none;}
.tylok-filter-acc-head{display:flex;align-items:center;gap:6px;}
.tylok-filter-acc-head .tylok-filter-opt{flex:1;padding-right:0;}
.tylok-filter-acc-toggle{width:24px;height:24px;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:none;border:none;cursor:pointer;color:var(--tylok-text-mute);transition:transform .2s var(--tylok-ease);}
.tylok-filter-acc.is-open .tylok-filter-acc-toggle{transform:rotate(180deg);}
.tylok-filter-acc-body{display:none;padding-bottom:6px;}
.tylok-filter-acc.is-open .tylok-filter-acc-body{display:block;}
.tylok-filter-opt input{width:16px;height:16px;}
.tylok-fo-count{margin-left:auto;font-family:var(--tylok-font-mono);font-size:.72rem;color:var(--tylok-steel-400);}
.tylok-filter-keyword{width:100%;padding:10px 12px;border:1px solid var(--tylok-steel-300);border-radius:2px;}
.tylok-listing-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;flex-wrap:wrap;gap:12px;}
.tylok-result-count{font-size:.88rem;color:var(--tylok-text-mute);}
.tylok-chip-btn{font-family:var(--tylok-font-mono);font-size:.76rem;padding:9px 16px;border-radius:20px;border:1px solid var(--tylok-steel-300);background:#fff;color:var(--tylok-text);cursor:pointer;display:none;}
.tylok-mobile-filter-toggle{display:none;}
.tylok-product-listing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
.tylok-grid-item{display:contents;}
.tylok-grid-item.tylok-filtered-out{display:none;}
.tylok-grid-item.tylok-paged-out{display:none;}
.tylok-pagination{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;margin-top:32px;}
.tylok-pagination:empty{display:none;margin:0;}
.tylok-page-btn{min-width:36px;height:36px;padding:0 10px;border:1px solid var(--tylok-steel-200,#E3E7EB);border-radius:4px;background:#fff;font-size:.86rem;font-weight:600;cursor:pointer;color:inherit;}
.tylok-page-btn:hover:not(:disabled){border-color:var(--tylok-spark,#D9611F);}
.tylok-page-btn.is-active{border-color:transparent;}
.tylok-page-btn:disabled{opacity:.4;cursor:default;}
.tylok-page-btn--nav{font-weight:400;}
.tylok-page-ellipsis{padding:0 4px;color:var(--tylok-steel-400,#8C9199);}
.tylok-no-results{grid-column:1/-1;text-align:center;padding:64px 16px;color:var(--tylok-text-mute);}

.tylok-product-card{background:#fff;border:1px solid var(--tylok-line);border-radius:4px;overflow:hidden;position:relative;display:flex;flex-direction:column;transition:all .25s var(--tylok-ease);}
.tylok-product-card:hover{box-shadow:0 8px 24px rgba(11,14,19,.10);transform:translateY(-4px);}
.tylok-pc-media-link{display:block;position:relative;text-decoration:none;}
.tylok-pc-media-link .tylok-ph{aspect-ratio:1/1;}
.tylok-cat-tag{position:absolute;top:12px;left:12px;font-family:var(--tylok-font-mono);font-size:.62rem;letter-spacing:.06em;text-transform:uppercase;background:rgba(11,14,19,.55);color:#fff;padding:5px 9px;border-radius:2px;}
.tylok-quick-add{position:absolute;bottom:12px;right:12px;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:#fff;box-shadow:0 2px 6px rgba(11,14,19,.18);z-index:3;border:none;cursor:pointer;transition:transform .15s var(--tylok-ease), background .15s var(--tylok-ease);padding:0;}
.tylok-quick-add:hover{transform:scale(1.08);}
.tylok-quick-add svg{width:16px!important;height:16px!important;color:var(--tylok-text);fill:none!important;stroke:currentColor!important;stroke-width:2!important;display:block!important;flex-shrink:0;}
.tylok-quick-add.is-added{background:var(--tylok-success);}
.tylok-quick-add.is-added svg{color:#fff;stroke:#fff!important;}
.tylok-pc-body{padding:16px 20px 20px;display:flex;flex-direction:column;gap:6px;flex:1;}
.tylok-pc-body h4{margin:0;font-size:1rem;text-decoration:none;color:inherit;}
.tylok-pc-desc{margin:0 0 8px;font-size:.86rem;color:var(--tylok-text-mute);}
.tylok-pc-desc p{margin:0;}
.tylok-pc-desc p+p{margin-top:6px;}
.tylok-pc-foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;}
.tylok-pc-code{font-family:var(--tylok-font-mono);font-size:.7rem;color:var(--tylok-steel-400);}

/* ============================================================
   PRODUCT DETAIL WIDGET
   ============================================================ */
.tylok-pd-grid{display:grid;grid-template-columns:.95fr 1.05fr;gap:64px;align-items:start;}
.tylok-pd-gallery-right .tylok-pd-gallery{order:2;}
.tylok-pd-gallery-main{aspect-ratio:1/1;border-radius:4px;overflow:hidden;position:relative;margin-bottom:12px;background:#fff;}
.tylok-pd-gallery-main .tylok-ph-img{position:absolute!important;inset:0;width:100%!important;height:100%!important;max-width:none;object-fit:cover!important;object-position:center center!important;display:block;margin:0;}
.tylok-pd-thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;}
.tylok-pd-thumb{aspect-ratio:1/1;border-radius:2px;overflow:hidden;position:relative;border:2px solid transparent;cursor:pointer;padding:0;background:none;}
.tylok-pd-thumb img{width:100%!important;height:100%!important;max-width:none;object-fit:cover!important;object-position:center center!important;display:block;margin:0;}
.tylok-pd-info .tylok-cat-tag-inline{font-family:var(--tylok-font-mono);font-size:.74rem;text-transform:uppercase;letter-spacing:.06em;color:var(--tylok-brass);}
.tylok-pd-info h1{font-size:clamp(1.9rem,3vw,2.6rem);margin:12px 0 16px;}
.tylok-pd-code{font-family:var(--tylok-font-mono);font-size:.82rem;color:var(--tylok-steel-400);margin-bottom:20px;}
.tylok-lede{font-size:1.05rem;line-height:1.5;color:var(--tylok-text-mute);}
.tylok-lede p{margin:0;}
.tylok-lede p+p{margin-top:8px;}
.tylok-pd-longdesc{color:var(--tylok-text-mute);margin-top:12px;}
.tylok-pd-actions{display:flex;align-items:center;gap:16px;margin-block:24px;flex-wrap:wrap;}
.tylok-pd-catalog-link{gap:8px;}
.tylok-pd-catalog-link svg{flex-shrink:0;}
.tylok-pd-wrap{}
.tylok-pd-section{border-top:1px solid var(--tylok-steel-200);padding-top:32px;margin-top:32px;}
.tylok-pd-section h3{margin:0 0 20px;font-size:1.3rem;}
.tylok-spec-table{width:100%;border-collapse:collapse;}

/* Flexible Specifications table — admin-built/pasted, any number of columns.
   Wrapped in a horizontally-scrollable container so wide PDF-style tables
   (10+ columns) never break the page layout on smaller screens. */
.tylok-pd-specs-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--tylok-steel-200);border-radius:4px;}
.tylok-pd-specs-table-wrap table{width:100%;border-collapse:collapse;font-size:.86rem;min-width:520px;}
.tylok-pd-specs-table-wrap th,.tylok-pd-specs-table-wrap td{padding:10px 14px;text-align:left;border-bottom:1px solid var(--tylok-steel-200);border-right:1px solid var(--tylok-steel-100);white-space:nowrap;}
.tylok-pd-specs-table-wrap th:last-child,.tylok-pd-specs-table-wrap td:last-child{border-right:none;}
.tylok-pd-specs-table-wrap thead th,.tylok-pd-specs-table-wrap tr:first-child th{background:var(--tylok-blue-900);color:#fff;font-weight:600;font-size:.78rem;text-transform:uppercase;letter-spacing:.03em;}
.tylok-pd-specs-table-wrap tbody tr:nth-child(even),.tylok-pd-specs-table-wrap tr:nth-child(even):not(:first-child){background:var(--tylok-steel-050);}
.tylok-pd-specs-table-wrap tr:last-child td{border-bottom:none;}
.tylok-pd-specs-table-wrap p{margin:0 0 8px;font-size:.86rem;color:var(--tylok-text-mute);}
.tylok-pd-notes{margin-top:20px;padding-top:16px;border-top:1px dashed var(--tylok-steel-200);font-size:.86rem;color:var(--tylok-text-mute);}
.tylok-pd-notes table{width:100%;border-collapse:collapse;margin-bottom:12px;}
.tylok-pd-notes table th,.tylok-pd-notes table td{padding:8px 12px;border:1px solid var(--tylok-steel-200);text-align:left;font-size:.84rem;}
.tylok-pd-notes ul,.tylok-pd-notes ol{padding-left:20px;}
.tylok-spec-table tr{border-bottom:1px solid var(--tylok-line);}
.tylok-spec-table td{padding:14px 6px;font-size:.92rem;}
.tylok-spec-table td:first-child{color:var(--tylok-text-mute);width:38%;font-family:var(--tylok-font-mono);font-size:.82rem;}
.tylok-feature-list ul{list-style:none;margin:0;padding:0;}
.tylok-feature-list li{position:relative;padding:12px 0 12px 30px;border-bottom:1px solid var(--tylok-line);font-size:.94rem;}
.tylok-feature-list li::before{content:'';position:absolute;left:0;top:15px;width:18px;height:18px;background-color:var(--tylok-success);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12l5 5L20 6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12l5 5L20 6'/%3E%3C/svg%3E") center/contain no-repeat;}
.tylok-feature-list p{margin:0 0 8px;}
.tylok-app-tags{display:flex;flex-wrap:wrap;gap:12px;}
.tylok-app-chip{font-family:var(--tylok-font-mono);font-size:.74rem;padding:8px 14px;border-radius:20px;border:1px solid var(--tylok-steel-300);color:var(--tylok-text);}
.tylok-related-section{margin-top:80px;}
.tylok-related-section h2{margin:0 0 32px;}
.tylok-related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}

/* ============================================================
   INQUIRY FORM WIDGET
   ============================================================ */
.tylok-inquiry-form-wrap h2{margin:0 0 24px;}
.tylok-inquiry-summary{margin-bottom:24px;padding:20px;border:1px solid var(--tylok-steel-200);border-radius:4px;background:var(--tylok-steel-050);}
.tylok-inquiry-summary ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;}
.tylok-inquiry-summary li{display:flex;justify-content:space-between;font-size:.9rem;border-bottom:1px solid var(--tylok-line);padding-bottom:8px;}
.tylok-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.tylok-field{display:flex;flex-direction:column;gap:8px;margin-bottom:16px;}
.tylok-field--full{grid-column:1/-1;}
.tylok-field label{font-size:.82rem;font-weight:600;}
.tylok-req{color:var(--tylok-spark);}
.tylok-field input,.tylok-field select,.tylok-field textarea{border:1px solid var(--tylok-steel-300);border-radius:2px;padding:13px 14px;font-size:.95rem;background:#fff;font-family:var(--tylok-font-body);}
.tylok-field textarea{resize:vertical;min-height:110px;}
.tylok-field-err{font-size:.78rem;display:none;}
.tylok-field.has-error input,.tylok-field.has-error select,.tylok-field.has-error textarea{border-color:var(--tylok-spark);}
.tylok-field.has-error .tylok-field-err{display:block;}
.tylok-form-success{display:none;text-align:center;padding:64px 16px;}
.tylok-form-success.tylok-show{display:block;}
.tylok-form-success svg{width:52px;height:52px;color:var(--tylok-success);margin:0 auto 16px;}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1024px){
  .tylok-main-nav{display:none;}
  .tylok-hamburger{display:flex;}
  .tylok-header-cta{display:none;}
  .tylok-cat-grid{grid-template-columns:repeat(2,1fr);}
  .tylok-product-listing--with-filters{grid-template-columns:1fr;}
  .tylok-filter-panel{position:static;display:none;}
  .tylok-filter-panel.tylok-open{display:block;}
  .tylok-mobile-filter-toggle{display:inline-flex;}
  .tylok-pd-grid{grid-template-columns:1fr;gap:32px;}
  .tylok-pd-gallery-right .tylok-pd-gallery{order:0;}
  .tylok-related-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:768px){
  .tylok-header-inner{padding-inline:20px;gap:12px;}
  .tylok-header-actions{gap:8px;}
  .tylok-product-listing-grid{grid-template-columns:repeat(2,1fr);}
  .tylok-related-grid{grid-template-columns:1fr;}
  .tylok-form-grid{grid-template-columns:1fr;}
  .tylok-field--full{grid-column:auto;}
}
@media (max-width:480px){
  .tylok-header-inner{padding-inline:14px;gap:8px;}
  .tylok-header-actions{gap:4px;}
  .tylok-icon-btn{width:34px;height:34px;}
  .tylok-brand-word{font-size:1.05rem;}
  .tylok-hamburger{width:34px;height:34px;}
  .tylok-cat-grid{grid-template-columns:1fr;}
  .tylok-cat-grid--mobile-slider{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:16px;-webkit-overflow-scrolling:touch;}
  .tylok-cat-grid--mobile-slider .tylok-cat-card{flex:0 0 82%;scroll-snap-align:start;}
  .tylok-product-listing-grid{grid-template-columns:1fr;}
  .tylok-pd-thumbs{grid-template-columns:repeat(4,1fr);}
  .tylok-search-panel{width:100vw;height:100vh;max-height:none;border-radius:0;}
  .tylok-inquiry-drawer{width:100vw;}
}
html,body{max-width:100%;overflow-x:hidden;}
html{scroll-behavior:smooth;}

/* ============================================================
   RESOURCES GRID WIDGET
   ============================================================ */
.tylok-res-filter{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:28px;}
.tylok-res-chip{font-family:var(--tylok-font-mono);font-size:.76rem;letter-spacing:.02em;padding:9px 16px;border-radius:20px;
  border:1px solid var(--tylok-steel-300);background:#fff;color:var(--tylok-text-mute);cursor:pointer;transition:all .15s var(--tylok-ease);}
.tylok-res-chip:hover{border-color:var(--tylok-ink);color:var(--tylok-text);}
.tylok-res-chip.is-active{background:var(--tylok-ink);border-color:var(--tylok-ink);color:#fff;}

.tylok-res-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
.tylok-res-card{
  display:flex;flex-direction:column;gap:12px;
  background:#fff;border:1px solid #EDEFF2;border-radius:6px;padding:28px;
  text-decoration:none;color:inherit;transition:box-shadow .25s var(--tylok-ease), transform .25s var(--tylok-ease);
}
.tylok-res-card[href]:hover{box-shadow:0 8px 24px rgba(11,14,19,.08);transform:translateY(-3px);}
.tylok-res-card.tylok-filtered-out{display:none;}
.tylok-res-icon{
  width:44px;height:44px;border-radius:50%;background:var(--tylok-steel-100);color:var(--tylok-blue-700);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.tylok-res-icon svg,.tylok-res-icon i{width:20px;height:20px;font-size:20px;}
.tylok-res-icon img{width:20px;height:20px;object-fit:contain;}
.tylok-res-card h4{margin:0;font-size:1.05rem;font-weight:700;color:var(--tylok-text);}
.tylok-res-card p{margin:0;font-size:.92rem;line-height:1.5;color:var(--tylok-text-mute);}
.tylok-res-meta{
  display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:14px;
  border-top:1px solid #EDEFF2;font-family:var(--tylok-font-mono);font-size:.72rem;color:var(--tylok-steel-400);
}

@media (max-width:900px){ .tylok-res-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:600px){ .tylok-res-grid{grid-template-columns:1fr;} }

/* ============================================================
   CATALOGS GRID WIDGET
   ============================================================ */
.tylok-catalog-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:28px;}
.tylok-catalog-card{
  background:#fff;border:1px solid #EDEFF2;border-radius:8px;overflow:hidden;
  display:flex;flex-direction:column;transition:transform .25s var(--tylok-ease), box-shadow .25s var(--tylok-ease);
}
.tylok-catalog-card:hover{transform:translateY(-6px);box-shadow:0 16px 40px rgba(11,14,19,.12);}
.tylok-catalog-card .tylok-ph{aspect-ratio:3/4;position:relative;}
.tylok-catalog-card .tylok-ph-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.tylok-catalog-body{padding:20px;display:flex;flex-direction:column;gap:14px;flex:1;text-align:center;}
.tylok-catalog-card h4{margin:0;font-size:1rem;font-weight:700;color:var(--tylok-text);line-height:1.35;}
.tylok-catalog-card .tylok-btn{margin-top:auto;justify-content:center;width:100%;font-size:.82rem;padding:11px 20px;}

@media (max-width:900px){ .tylok-catalog-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:480px){ .tylok-catalog-grid{grid-template-columns:1fr;} }

/* ============================================================
   VIDEO GRID WIDGET
   ============================================================ */
.tylok-video-tabs{display:flex;flex-wrap:wrap;gap:8px 24px;margin-bottom:32px;border-bottom:1px solid var(--tylok-steel-200);padding-bottom:16px;}
.tylok-video-tab{font-family:var(--tylok-font-mono);font-size:.82rem;letter-spacing:.02em;padding:6px 2px;background:none;border:none;border-bottom:2px solid transparent;
  color:var(--tylok-text-mute);cursor:pointer;transition:color .15s var(--tylok-ease);}
.tylok-video-tab:hover{color:var(--tylok-text);}
.tylok-video-tab.is-active{color:var(--tylok-spark);border-color:var(--tylok-spark);font-weight:600;}

.tylok-video-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;}
.tylok-video-item{display:contents;}
.tylok-video-item.tylok-filtered-out{display:none;}
.tylok-video-card{display:block;text-decoration:none;color:inherit;cursor:pointer;}
.tylok-video-card:focus-visible{outline:2px solid var(--tylok-spark);outline-offset:3px;}
.tylok-video-thumb{position:relative;aspect-ratio:16/9;border-radius:6px;overflow:hidden;background:var(--tylok-steel-100);}
.tylok-video-thumb .tylok-ph-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.tylok-video-play{position:absolute;inset:0;margin:auto;width:52px;height:52px;border-radius:50%;background:rgba(11,14,19,.55);
  display:flex;align-items:center;justify-content:center;color:#fff;transition:transform .2s var(--tylok-ease), background .2s var(--tylok-ease);}
.tylok-video-play svg{width:20px;height:20px;margin-left:2px;}
.tylok-video-card:hover .tylok-video-play{transform:scale(1.1);background:var(--tylok-spark);}
.tylok-video-body{padding-top:14px;}
.tylok-video-cat{display:block;font-family:var(--tylok-font-mono);font-size:.7rem;letter-spacing:.06em;text-transform:uppercase;color:var(--tylok-brass);margin-bottom:6px;}
.tylok-video-card h4{margin:0;font-size:1rem;font-weight:600;color:var(--tylok-text);line-height:1.35;}

@media (max-width:900px){ .tylok-video-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:480px){ .tylok-video-grid{grid-template-columns:1fr;} }

/* ============================================================
   VIDEO DETAIL WIDGET
   ============================================================ */
.tylok-video-detail-wrap{max-width:960px;margin-inline:auto;}
.tylok-video-player{position:relative;aspect-ratio:16/9;border-radius:8px;overflow:hidden;background:var(--tylok-ink);margin-bottom:24px;}
.tylok-video-player iframe,.tylok-video-player video{position:absolute;inset:0;width:100%;height:100%;border:none;}
.tylok-video-player .tylok-ph{position:absolute;inset:0;}

.tylok-video-modal{position:fixed;inset:0;z-index:100000;display:none;align-items:center;justify-content:center;padding:24px;}
.tylok-video-modal.is-open{display:flex;}
body.tylok-modal-open{overflow:hidden;}
.tylok-video-modal-backdrop{position:absolute;inset:0;background:rgba(11,14,19,.82);}
.tylok-video-modal-box{position:relative;width:100%;max-width:960px;z-index:1;}
.tylok-video-modal-close{position:absolute;top:-42px;right:0;width:36px;height:36px;border:none;background:rgba(255,255,255,.12);color:#fff;border-radius:50%;font-size:22px;line-height:1;cursor:pointer;}
.tylok-video-modal-close:hover{background:rgba(255,255,255,.24);}
.tylok-video-modal-media{position:relative;width:100%;aspect-ratio:16/9;background:#000;border-radius:6px;overflow:hidden;}
.tylok-video-modal-media iframe{position:absolute;inset:0;width:100%;height:100%;border:none;}
.tylok-video-modal-thumb{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.tylok-video-modal-playbtn{position:absolute;inset:0;margin:auto;width:76px;height:76px;border-radius:50%;background:rgba(11,14,19,.6);border:2px solid rgba(255,255,255,.9);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s,transform .15s;}
.tylok-video-modal-playbtn:hover{background:var(--tylok-spark);transform:scale(1.06);}
.tylok-video-modal-playbtn svg{width:30px;height:30px;margin-left:4px;}
.tylok-video-detail-meta{font-family:var(--tylok-font-mono);font-size:.78rem;letter-spacing:.04em;text-transform:uppercase;color:var(--tylok-brass);margin-bottom:10px;}
.tylok-video-detail-title{margin:0 0 12px;font-size:clamp(1.6rem,3vw,2.2rem);}
.tylok-video-detail-desc{font-size:1rem;color:var(--tylok-text-mute);line-height:1.6;margin:0 0 20px;}
.tylok-video-next{margin-top:16px;padding-top:16px;border-top:1px solid var(--tylok-steel-200);}
.tylok-video-detail-wrap.tylok-related-section{margin-top:56px;max-width:none;}
.tylok-video-detail-wrap .tylok-related-section h2{margin:0 0 28px;}

/* ============================================================
   CAREER APPLICATION FORM WIDGET
   ============================================================ */
.tylok-career-form-wrap h2{margin:0 0 24px;}
.tylok-career-form-wrap input[type=file]{border:1px dashed var(--tylok-steel-300);border-radius:2px;padding:12px 14px;font-size:.88rem;background:var(--tylok-steel-050);width:100%;}
.tylok-form-section{border-top:1px solid var(--tylok-steel-200);padding-top:28px;margin-top:28px;}
.tylok-form-section:first-child{border-top:none;padding-top:0;margin-top:0;}
.tylok-form-section-title{margin:0 0 6px;font-size:1.15rem;font-weight:700;}
.tylok-section-desc{margin:0 0 20px;font-size:.86rem;line-height:1.55;color:var(--tylok-steel-500,#5B6670);}
.tylok-form-note{margin:0 0 6px;font-size:.8rem;color:var(--tylok-steel-500,#5B6670);}
.tylok-address-block{margin-bottom:4px;}
.tylok-choice-row{display:flex;flex-wrap:wrap;gap:10px 24px;padding:2px 0 4px;}
.tylok-choice{display:flex;align-items:center;gap:8px;font-size:.9rem;cursor:pointer;}
.tylok-choice input{width:17px;height:17px;accent-color:var(--tylok-spark);flex-shrink:0;}
.tylok-checkbox-group.has-error .tylok-field-err,
.tylok-field.has-error .tylok-field-err{display:block;}
.tylok-checkbox-group.has-error .tylok-choice-row{outline:1px solid var(--tylok-spark);outline-offset:6px;border-radius:2px;}
.tylok-job-block{padding-top:18px;}
.tylok-job-block + .tylok-job-block{margin-top:8px;}
.tylok-job-divider{display:flex;align-items:center;gap:12px;margin:24px 0 18px;}
.tylok-job-divider span{font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--tylok-steel-500,#5B6670);white-space:nowrap;}
.tylok-job-divider::after{content:'';flex:1;height:1px;background:var(--tylok-steel-200);}
.tylok-legal-box{background:var(--tylok-steel-050);border:1px solid var(--tylok-steel-200);border-radius:4px;padding:20px 24px;margin:28px 0 24px;}
.tylok-legal-heading{margin:0 0 12px;font-weight:600;font-size:.92rem;color:var(--tylok-text);}
.tylok-legal-box ul{margin:0 0 16px;padding-left:20px;}
.tylok-legal-box li{font-size:.86rem;line-height:1.6;margin-bottom:10px;}
.tylok-legal-box li:last-child{margin-bottom:0;}
.tylok-agree-row{display:flex;align-items:flex-start;gap:10px;font-size:.9rem;cursor:pointer;padding-top:8px;border-top:1px solid var(--tylok-steel-200);}
.tylok-agree-row input{margin-top:3px;width:16px;height:16px;flex-shrink:0;accent-color:var(--tylok-spark);}
.tylok-legal-box [data-tylok-agree-err]{display:none;margin-top:8px;}
