/* DAIWA Website V6.5 — Times New Roman + verified / honest image handling. */
/* Apply only on frontend. Browser/OS must provide Times New Roman; this package
   intentionally does not embed or distribute proprietary font files. */
html body,
html body #wrapper,
html body #main,
html body .daiwa-v5,
html body .daiwa-v5 :is(h1,h2,h3,h4,h5,h6,p,a,button,input,textarea,select,option,label,span,small,li,strong,th,td,em,blockquote),
html body #main :is(h1,h2,h3,h4,h5,h6,p,a,button,input,textarea,select,option,label,span,small,li,strong,th,td,em,blockquote) {
  font-family:"Times New Roman", Times, "Noto Serif JP", "Noto Serif CJK JP", serif!important;
}
html body .daiwa-v5{font-size:17px;line-height:1.58;letter-spacing:0;}
html body .daiwa-v5 :is(h1,h2,h3,h4,h5,h6){font-weight:700;letter-spacing:-.018em;line-height:1.15;}
html body .daiwa-v5 :is(p,li){line-height:1.62;}
/* Preserve wordmark's visual geometry while honoring the requested typeface. */
.daiwa-shared-header.daiwa-v5 .brand-wordmark strong{font-size:24px!important;letter-spacing:.008em!important;line-height:1;}
.daiwa-shared-header.daiwa-v5 .brand-wordmark small{font-size:9px!important;letter-spacing:.08em!important;}
.daiwa-shared-header.daiwa-v5 .main-nav .nav-link{font-size:15px!important;letter-spacing:-.018em!important;font-weight:700;}
.daiwa-v5 .hero-main h1{font-size:clamp(46px,5.5vw,88px)!important;line-height:.99!important;letter-spacing:-.025em;}
.daiwa-v5 .page-hero h1{font-size:clamp(40px,4.8vw,66px);}
.daiwa-v5 .product-card h3{font-size:19px!important;}
.daiwa-v5 .product-card p{font-size:15px!important;}
.daiwa-v5 .product-card .mini-link{font-size:14px!important;}

/* Four distinct sectors. Real photos can be uploaded via the Customizer; vector
   defaults are clearly labelled illustrations and never passed off as products. */
.daiwa-v5 .product-card{overflow:hidden;border-radius:12px;border-color:#dbe7ed;transition:transform .24s ease,box-shadow .24s ease;}
.daiwa-v5 .product-card:hover{transform:translateY(-5px);box-shadow:0 15px 35px rgba(0,41,74,.12);}
.daiwa-v5 .product-visual{height:205px!important;display:block!important;position:relative;background:linear-gradient(135deg,#062849,#236d99);overflow:hidden;}
.daiwa-v5 .product-visual .product-real-image{display:block;width:100%;height:100%;min-height:0;object-fit:cover;object-position:center;transition:transform .5s cubic-bezier(.2,.8,.2,1);}
.daiwa-v5 .product-card:hover .product-real-image{transform:scale(1.045);}
.daiwa-v5 .product-visual .product-index{position:absolute;top:14px;left:14px;color:#fff;background:#073655d9;border:1px solid #8dbfe9;border-radius:5px;padding:4px 9px;z-index:2;font-size:13px;}
.daiwa-v5 .product-photo-label{position:absolute;z-index:2;bottom:12px;right:12px;max-width:80%;background:#061f39de;color:#eff9ff;border-left:3px solid #a4d735;border-radius:2px;padding:5px 9px;font-size:12px;line-height:1.25;letter-spacing:0;box-shadow:0 5px 15px #001e3655;}
.daiwa-v5 .product-card-copy{padding:21px 20px 23px!important;}
.daiwa-v5 .product-real-image[src$=".svg"]{object-fit:cover;}
.daiwa-v5 .product-visual.is-missing:after{content:"Hình ảnh đang được cập nhật";position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:16px;}
.daiwa-v5 .product-visual.is-missing img{visibility:hidden;}

/* Factory photos: no cross-factory substitution. If the authentic FAC-2 photo
   cannot load, JS shows a factory illustration and an explicit provenance note. */
.daiwa-v5 .photo{background:#e3eff4;}
.daiwa-v5 .photo.is-missing img{display:none;}
.daiwa-v5 .photo-fallback-note[hidden]{display:none!important;}
.daiwa-v5 .photo-fallback-note{position:absolute;left:10px;right:10px;bottom:10px;z-index:5;color:#fff;background:#071e36df;padding:7px 10px;border-left:3px solid #a4d735;font-size:12px;line-height:1.25;border-radius:3px;pointer-events:none;}
.daiwa-v5 .photo.is-illustration .photo-open{display:none!important;}
.daiwa-v5 .page-hero-fac1{background:linear-gradient(95deg,rgba(3,31,58,.96),rgba(2,39,73,.85) 52%,rgba(0,41,74,.40)),url("fac1-display.jpg") center 45%/cover no-repeat;}
.daiwa-v5 .page-hero-fac2{background:linear-gradient(105deg,rgba(2,30,56,.96),rgba(3,52,79,.83) 57%,rgba(5,64,78,.35)),url("illustrations/fac2.svg") center 48%/cover no-repeat;}
.daiwa-v5 .page-hero-factory,.daiwa-v5 .page-hero-workshop{background:linear-gradient(95deg,rgba(4,31,59,.96),rgba(4,55,87,.70) 56%,rgba(0,24,51,.28)),url("workshop-display.jpg") center center/cover no-repeat;}
.daiwa-v5 .page-hero-quality{background:linear-gradient(95deg,rgba(3,34,57,.95),rgba(8,67,67,.70) 60%,rgba(33,90,60,.35)),url("workshop-display.jpg") center/cover no-repeat;}

/* Add real physical context to Contact without inventing factory or personnel photos. */
.daiwa-v5 .contact-facility{padding:24px!important;border-radius:12px;overflow:hidden;}
.daiwa-v5 .contact-facility-top{margin-bottom:14px!important;padding-bottom:13px!important;}
.daiwa-v5 .contact-facility-media{height:190px;margin:0 0 17px;position:relative;overflow:hidden;border-radius:9px;background:#eaf0f5;}
.daiwa-v5 .contact-facility-media .photo{height:100%;min-height:0;}
.daiwa-v5 .contact-facility-media .photo img{height:100%;object-fit:cover;}
.daiwa-v5 .contact-facility-media .photo-fallback-note{font-size:11px;}

/* Honest quality media: production photo plus independently labelled illustration. */
.daiwa-v5 .quality-photo-section{padding-top:15px;padding-bottom:50px;background:#fff;}
.daiwa-v5 .quality-media-grid{display:grid;grid-template-columns:1fr 1fr;gap:21px;}
.daiwa-v5 .quality-media-panel{min-width:0;min-height:280px;display:flex;flex-direction:column;border:1px solid #dfeaf1;border-radius:12px;overflow:hidden;background:#edf6fa;box-shadow:0 9px 26px rgba(2,41,74,.06);}
.daiwa-v5 .quality-media-panel>.photo{height:242px;min-height:210px;}
.daiwa-v5 .quality-media-panel>span{background:#092f51;color:#fff;padding:10px 14px;border-left:5px solid #a4d735;font-size:15px;}

/* Color-safe assets in dark mode. */
html.daiwa-dark-html body.daiwa-dark .daiwa-v5 .quality-photo-section{background:#0b2135!important;}
html.daiwa-dark-html body.daiwa-dark .daiwa-v5 .quality-media-panel{background:#163c57!important;border-color:#3b607a!important;}
html.daiwa-dark-html body.daiwa-dark .daiwa-v5 .quality-media-panel>span{background:#08253f!important;color:#fff!important;}
html.daiwa-dark-html body.daiwa-dark .daiwa-v5 .product-photo-label{background:#0a223adf!important;color:#ecf6ff!important;}
html.daiwa-dark-html body.daiwa-dark .daiwa-v5 .contact-facility-media{background:#204159!important;}

@media(max-width:1100px){
  .daiwa-v5 .product-visual{height:175px!important;}
  .daiwa-v5 .product-photo-label{font-size:11px;}
}
@media(max-width:800px){
  .daiwa-v5 .quality-media-grid{grid-template-columns:1fr;}
  .daiwa-v5 .contact-facility-media{height:200px;}
}
@media(max-width:600px){
  .daiwa-v5 .hero-main h1{font-size:clamp(38px,9vw,52px)!important;}
  .daiwa-v5 .product-visual{height:160px!important;}
  .daiwa-v5 .product-card-copy{padding:17px 14px 18px!important;}
  .daiwa-v5 .product-card h3{font-size:17px!important;}
  .daiwa-v5 .product-card p{font-size:14px!important;}
  .daiwa-v5 .product-photo-label{font-size:10px;bottom:9px;right:8px;max-width:90%;}
  .daiwa-v5 .contact-facility-media{height:170px;}
  .daiwa-shared-header.daiwa-v5 .brand-wordmark strong{font-size:20px!important;}
}
@media (prefers-reduced-motion:reduce){
  .daiwa-v5 .product-card,.daiwa-v5 .product-real-image{transition:none!important;}
}
