/* ==========================================================================
   Duy Khánh — shared site components (semantic classes, no auto-generated ids)
   ========================================================================== */

/* Page heading + breadcrumb (listing / detail pages) */
.tz-breadcrumb{font-size:14px;margin-bottom:12px}
.tz-page-title{font-size:28px;color:var(--brand-red,#E30613);margin-bottom:16px}
.tz-page-subtitle{color:#6c757d;margin-bottom:16px}

/* Generic card */
.tz-card{display:block;border:1px solid #eee;border-radius:8px;color:inherit;height:100%;overflow:hidden;transition:box-shadow .2s}
.tz-card:hover{box-shadow:0 4px 14px rgba(0,0,0,.08)}
.tz-card__title{display:block;font-weight:600;color:var(--brand-red,#E30613)}
.tz-card__excerpt{display:block;font-size:14px;color:#6c757d;margin-top:2px}
.tz-card__meta{display:block;font-size:13px;color:#6c757d;margin-top:2px}

/* Row card (solutions) */
.tz-card--row{display:flex;gap:14px;padding:14px;align-items:flex-start}
.tz-card__thumb{width:96px;height:96px;flex:none;object-fit:cover;border-radius:6px}
.tz-card__thumb--sm{width:72px;height:72px}

/* Tile card (projects) */
.tz-card--tile .tz-card__cover{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}
.tz-card--tile .tz-card__body{display:block;padding:12px}
.tz-card--tile .tz-card__title{color:inherit}

/* Empty state */
.tz-empty{color:#6c757d}

/* Listing / detail page shell */
.tz-listing{padding:40px 15px}
.tz-subcategories{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}
.tz-subcategories .button{margin:0}
.tz-pagination{margin-top:24px}
.tz-searchbar{display:flex;gap:8px;max-width:520px;margin-bottom:24px}
.tz-searchbar input{flex:1}
.tz-searchbar .button{margin:0}
.tz-result-heading{color:var(--brand-red,#E30613);margin-top:24px}
.tz-result-list{margin:0;padding-left:18px}
.tz-solution-group{margin-top:28px}
.tz-solution-group__title{font-size:20px}
.tz-solution-group__title a{color:inherit}

/* Product / solution / project detail */
.tz-detail{padding:40px 15px}
.tz-gallery__main img{width:100%;border:1px solid #eee;border-radius:8px;object-fit:contain;background:#fff;aspect-ratio:1/1}
.tz-gallery__thumbs{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.tz-gallery__thumbs img{width:64px;height:64px;object-fit:cover;border:1px solid #eee;border-radius:6px;cursor:pointer}
.tz-gallery__thumbs img.is-active{border-color:var(--brand-red,#E30613)}
.tz-detail__hero{max-width:100%;border-radius:8px;margin:10px 0}
.tz-detail__gallery img{width:100%;border-radius:8px;object-fit:cover;aspect-ratio:4/3}

/* Pagination (frontend) */
.nav-pagination{margin-top:28px}
.nav-pagination ul{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;list-style:none;margin:0;padding:0}
.nav-pagination .page-number{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 10px;border:1px solid #e5e7eb;border-radius:6px;color:#333;text-decoration:none;font-weight:600}
.nav-pagination a.page-number:hover{border-color:var(--brand-red,#E30613);color:var(--brand-red,#E30613)}
.nav-pagination .page-number.current{background:var(--brand-red,#E30613);border-color:var(--brand-red,#E30613);color:#fff}
.nav-pagination .page-number.disabled{opacity:.4;cursor:default}
.nav-pagination .page-number.dots{border:0}

/* Preloader (partials/preloader.blade.php) */
.dk-preloader{position:fixed;inset:0;z-index:2147483647;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fff;opacity:1;visibility:visible;transition:opacity .6s ease}
.dk-preloader__logo{max-width:320px;width:55%;height:auto;animation:dkPulse 1.2s ease-in-out infinite}
.dk-preloader__spinner{margin-top:26px;width:46px;height:46px;border:4px solid var(--brand-yellow,#FFD200);border-top-color:var(--brand-red,#E30613);border-radius:50%;animation:dkSpin .9s linear infinite}
@keyframes dkPulse{0%,100%{transform:scale(1);opacity:.9}50%{transform:scale(1.07);opacity:1}}
@keyframes dkSpin{to{transform:rotate(360deg)}}

/* Forms (contact / dealer) */
.tz-narrow{max-width:760px}
.tz-required{color:var(--brand-red,#E30613)}
.tz-error{color:#c00;font-size:13px}
.tz-alert-success{background:#e6f7ed;border:1px solid #b7e4c7;color:#14532d;padding:12px 16px;border-radius:8px;margin:16px 0}
.tz-contact-info{background:#f7f9fc;border-radius:10px;padding:20px}
.tz-contact-info h3{font-size:18px}
.tz-contact-info i{color:var(--brand-red,#E30613)}
.tz-btn--flush{margin:0}
.icon-box__img{width:64px}

/* Minimal utilities used by the frontend views (Bootstrap is NOT loaded here) */
.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:1rem}.mt-4{margin-top:1.5rem}
.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:1rem}.mb-4{margin-bottom:1.5rem}
.my-2{margin-top:.5rem;margin-bottom:.5rem}
.text-muted{color:#6c757d}
.lead{font-size:1.05rem}
.form-label{display:block;font-weight:600;margin-bottom:.35rem}
.form-control{width:100%}

/* News card */
.news-card__date{display:block;font-size:12px;color:#98a2b3;margin-bottom:2px}

/* Active category chip */
.tz-subcategories .button.is-active{background:var(--brand-red,#E30613);color:#fff}

/* Contact / quote page */
.tz-contact__company{font-size:26px;color:var(--brand-red,#E30613);font-weight:700;margin-bottom:16px;line-height:1.25}
.tz-contact__lines p{margin:0 0 10px;font-size:15px}
.tz-contact__lines i{color:var(--brand-red,#E30613);width:18px;text-align:center;margin-right:4px}
.tz-contact__map{margin-top:14px;border-radius:8px;overflow:hidden}
.tz-contact__form-title{font-size:22px;font-weight:700;margin-bottom:16px}
.tz-contact__form .form-label{font-weight:600}
@media (max-width:849px){.tz-contact__form-title{margin-top:24px}}

/* ===== Shop layout: sidebar + toolbar (product category & catalog) ===== */
.tz-shop{margin-top:8px}
.tz-shop__side{padding-right:24px}
@media (max-width:849px){.tz-shop__side{padding-right:0;margin-bottom:20px}}

.tz-widget{border:1px solid #eef1f5;border-radius:10px;padding:16px 18px;margin-bottom:20px;background:#fff}
.tz-widget__title{font-size:16px;font-weight:700;color:var(--brand-red,#E30613);text-transform:uppercase;margin:0 0 12px;padding-bottom:10px;border-bottom:2px solid #f0f0f0}

.tz-catmenu{list-style:none;margin:0;padding:0}
.tz-catmenu__row{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #f2f2f2}
.tz-catmenu__row > a{display:block;flex:1;padding:9px 0;font-weight:600;color:#333}
.tz-catmenu__item.is-active > .tz-catmenu__row > a{color:var(--brand-red,#E30613)}
.tz-catmenu__row > a:hover{color:var(--brand-red,#E30613)}
.tz-catmenu__toggle{background:none;border:0;cursor:pointer;padding:6px 4px;color:#98a2b3;line-height:1;transition:transform .2s}
.tz-catmenu__toggle:hover{color:var(--brand-red,#E30613)}
.tz-catmenu__item.is-open > .tz-catmenu__row .tz-catmenu__toggle{transform:rotate(180deg);color:var(--brand-red,#E30613)}
.tz-catmenu__sub{list-style:none;margin:0;padding:2px 0 8px 12px;display:none}
.tz-catmenu__item.is-open > .tz-catmenu__sub{display:block}
.tz-catmenu__sub li a{display:block;padding:5px 0;font-size:14px;color:#666}
.tz-catmenu__sub li.is-active a,.tz-catmenu__sub li a:hover{color:var(--brand-red,#E30613)}

.tz-recent{list-style:none;margin:0;padding:0}
.tz-recent li a{display:flex;gap:10px;align-items:center;padding:8px 0;color:#333;border-bottom:1px solid #f2f2f2}
.tz-recent li a:hover{color:var(--brand-red,#E30613)}
.tz-recent img{width:52px;height:52px;object-fit:contain;background:#fff;border:1px solid #eee;border-radius:6px;flex:none}
.tz-recent__empty{color:#98a2b3;font-size:14px;margin:0}

.tz-shop-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.tz-shop-toolbar__count{margin:0;color:#6c757d;font-size:14px}
.tz-shop-toolbar__sort{margin:0}
.tz-shop-toolbar__sort .form-select{width:auto;min-width:190px}
.tz-shop__desc{color:#555;margin-bottom:16px}

/* ===== Product detail (matches original layout) ===== */
.tz-product{margin-bottom:8px}
.tz-product__info .tz-breadcrumb{margin-bottom:6px;text-transform:uppercase;font-size:13px;color:#98a2b3}
.tz-product__title{font-size:26px;font-weight:700;color:#1a1a1a;margin:0 0 16px}
.tz-product__actions{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.tz-btn-quote,.tz-btn-dealer{margin:0;color:#fff!important;border-radius:6px;padding:11px 22px;font-weight:600}
.tz-btn-quote{background:#00a3e2!important;border-color:#00a3e2!important}
.tz-btn-quote:hover{background:#0286ba!important}
.tz-btn-dealer{background:var(--brand-red,#E30613)!important;border-color:var(--brand-red,#E30613)!important}
.tz-btn-dealer:hover{background:#b8050f!important}
.tz-product__excerpt{color:#555;margin-bottom:12px}
.tz-product__cats{font-size:14px;color:#333;margin:14px 0 10px;padding-top:14px;border-top:1px solid #eee}
.tz-product__cats a{color:var(--brand-red,#E30613)}
.tz-share{display:flex;gap:8px}
.tz-share a{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#f0f2f5;color:#5b6470;font-size:14px;transition:.2s}
.tz-share a:hover{background:var(--brand-red,#E30613);color:#fff}

/* Tabs */
.tz-tabs{margin-top:30px}
.tz-tabs__nav{display:flex;gap:4px;flex-wrap:wrap;border-bottom:2px solid #e9edf3}
.tz-tabs__btn{background:none;border:0;border-bottom:2px solid transparent;margin-bottom:-2px;padding:12px 18px;font-weight:700;text-transform:uppercase;font-size:14px;color:#6c757d;cursor:pointer}
.tz-tabs__btn:hover{color:var(--brand-red,#E30613)}
.tz-tabs__btn.is-active{color:var(--brand-red,#E30613);border-bottom-color:var(--brand-red,#E30613)}
.tz-tabs__panel{display:none;padding:22px 0}
.tz-tabs__panel.is-active{display:block}
.tz-tabs__panel img{max-width:100%;height:auto}

/* Product: short description + related */
.tz-product__excerpt{color:#555;margin:0 0 16px;line-height:1.55}
.tz-related{margin-top:40px;padding-top:24px;border-top:1px solid #eee}
.tz-related__title{font-size:20px;font-weight:700;color:var(--brand-red,#E30613);text-transform:uppercase;margin:0 0 18px}

/* Safety: content images never overflow their container */
.entry-content img{max-width:100%;height:auto}

/* ==========================================================================
   MOBILE refinements
   ========================================================================== */
@media (max-width:849px){
  /* Shop pages: put the main content FIRST, sidebar below (was blocking content) */
  .tz-shop{display:flex;flex-direction:column}
  .tz-shop__main{order:1;width:100%}
  .tz-shop__side{order:2;width:100%;margin-top:28px;padding-right:0}

  .tz-listing{padding:24px 15px}
  .tz-page-title{font-size:22px}

  /* Toolbar: count + sort stack nicely */
  .tz-shop-toolbar{flex-direction:column;align-items:stretch;gap:10px}
  .tz-shop-toolbar__sort .form-select{width:100%;min-width:0}

  /* Product detail */
  .tz-product__title{font-size:21px}
  .tz-product__actions{gap:8px}
  .tz-btn-quote,.tz-btn-dealer{flex:1 1 0;text-align:center;justify-content:center;padding:12px 10px;font-size:13px}
  .tz-tabs__nav{gap:0}
  .tz-tabs__btn{padding:10px 12px;font-size:12px}
  .tz-related__title{font-size:17px}

  /* Sidebar widgets */
  .tz-widget__title{font-size:15px}
  .tz-catmenu__row > a{padding:11px 0;font-size:15px}

  /* Contact / dealer */
  .tz-contact__company{font-size:20px;line-height:1.3}
  .tz-contact__form-title{font-size:18px;margin-top:28px}
  .tz-contact__map iframe{height:220px}
}

@media (max-width:549px){
  /* Floating action buttons: smaller, out of the way */
  .fixed-action-buttons{bottom:16px;right:12px;gap:8px}
  .action-btn{width:40px;height:40px;border-radius:8px}
  .action-btn img{width:20px;height:20px}

  /* Cards / grids */
  .tz-card--row{gap:10px;padding:12px}
  .tz-card__thumb{width:72px;height:72px}
  .tz-recent img{width:44px;height:44px}
}

/* ===== MOBILE: product grid = 2 columns (cards must stay compact) ===== */
@media (max-width:549px){
  .product-small .box-text-products{padding-top:.5em;padding-bottom:.4em}
  .product-small .name.product-title{font-size:12px;line-height:1.35;margin-bottom:.4em}
  .product-small .button.product_type_simple{
    font-size:10px;letter-spacing:0;padding:0 10px;
    min-height:32px;line-height:32px;margin-bottom:0;
  }
  .tz-card__title{font-size:14px;line-height:1.4}
}

/* ===== MOBILE: chips + tile cards ===== */
@media (max-width:549px){
  .tz-subcategories{gap:8px}
  .tz-subcategories .button{
    font-size:11px;letter-spacing:0;padding:0 12px;
    min-height:34px;line-height:34px;margin:0;
  }
  /* News/job covers: 16:9 instead of 4:3 so the card fits the viewport */
  .tz-card--tile .tz-card__cover{aspect-ratio:16/9}
  .tz-card--tile .tz-card__body{padding:12px 14px 14px}
  .tz-card__excerpt{font-size:13px}
}

/* Job card cover ratio — global (was only in home.css, so /tuyen-dung rendered raw-size images) */
.job-card__cover{padding-top:56.25%}
.job-card .post-title{font-size:16px;line-height:1.35}
.job-card .from_the_blog_excerpt{font-size:14px;color:#6c757d}
@media (max-width:549px){
  .job-card .post-title{font-size:15px}
  .job-card .from_the_blog_excerpt{font-size:13px}
}

/* Honeypot field — visually removed but not display:none (bots skip display:none) */
.tz-hp{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Error pages (404 / 500) */
.tz-error-page{text-align:center;padding-top:60px;padding-bottom:60px}
.tz-error-page__code{font-size:96px;font-weight:800;line-height:1;color:var(--brand-red,#E30613);letter-spacing:2px}
.tz-error-page__title{font-size:26px;margin:12px 0 8px}
.tz-error-page__text{color:#6c757d;margin-bottom:24px}
.tz-error-page__actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}

/* Visually-hidden (screen-reader / SEO H1 without visual change) */
.tz-visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
