/*
Theme Name: Nova Child — Coastline Tropical
Template: nova
Description: Theme con của Nova cho website này — CSS và hàm riêng đặt ở đây, cập nhật Nova không mất.
Version: 1.1.0
Requires PHP: 8.1
Text Domain: nova-child-coastline-tropical
*/

/*
 * Design v2 ( WEB FEEDBACK 2, 23/10/2026 ): modern, minimal, image-led.
 * Colours: forest green, cream, white only. One button style. Short headings, tight spacing.
 * Màu, font, khoảng cách chung đặt ở Giao diện → Sửa giao diện → Style.
 */

/* ===== Toàn site ===== */

/* One button style everywhere: forest green, white text; outline for the second action. */
.nova-btn--primary {
	--nova-btn-bg: var(--nova-color-primary);
	--nova-btn-fg: #fff;
	--nova-btn-bg-hover: var(--nova-color-secondary);
}
.nova-btn { font-family: var(--nova-font-body); font-weight: 700; white-space: nowrap; border-radius: 4px; letter-spacing: 0; }
.nova-btn:hover { transform: none; }

/* Headings: a touch tighter so short titles feel premium. */
h1, h2, h3, .nova-heading__text { letter-spacing: -0.01em; text-wrap: balance; }

/* Small label above a heading: sentence case, brand green. */
.nv-nhan { font-size: 13px; font-weight: 700; color: var(--nova-color-primary); letter-spacing: .02em; }

/* Text link with arrow ( "View all products", "More about us" ). */
.nv-lien-ket.nv-lien-ket { font-weight: 700; font-size: 15px; padding: 0; }

/* Category pills: quiet outline chips. */
.nv-pill.nv-pill { padding: 7px 14px; font-size: 14px; font-weight: 600; border-color: var(--nova-color-border); color: var(--nova-color-text); border-radius: 999px; }
.nv-pill.nv-pill:hover { border-color: var(--nova-color-primary); background: var(--nova-color-primary); color: #fff; }

/* Product cards everywhere: no frame, square image, name and "Request a quote" below. */
ul.products li.product.nova-card.nova-card { border: 0; padding: 0; background: transparent; }
ul.products li.product.nova-card.nova-card .nova-pcard__media { border-radius: 4px; margin-bottom: 12px; overflow: hidden; }
ul.products li.product.nova-card.nova-card .nova-pcard__media img { transition: transform .5s ease; }
ul.products li.product.nova-card.nova-card:hover .nova-pcard__media img { transform: scale(1.04); }
ul.products li.product.nova-card.nova-card > :not(.nova-pcard__media) { margin-inline: 0; }
ul.products li.product.nova-card.nova-card .woocommerce-loop-product__title { font-family: var(--nova-font-heading); font-size: 18px; font-weight: 600; line-height: 1.3; margin: 0 0 4px; padding: 0; }
ul.products li.product.nova-card.nova-card .price,
ul.products li.product.nova-card.nova-card .price a { font-size: 14px; font-weight: 700; color: var(--nova-color-primary); }
@media (max-width: 767px) {
	ul.products li.product.nova-card.nova-card .woocommerce-loop-product__title { font-size: 16px; }
	ul.products li.product.nova-card.nova-card .price, ul.products li.product.nova-card.nova-card .price a { font-size: 13px; }
}

/* Header search dropdown and mobile menu button match the site. */
.nova-mobile-menu__btn.nova-btn { width: 100%; min-height: 48px; margin-top: 12px; padding: 12px 22px; }

/* ===== Ô tìm kiếm sản phẩm ( [coastline_product_search] ) ===== */
.nv-tim { display: flex; max-width: 440px; margin-left: auto; border: 1px solid var(--nova-color-border); border-radius: 4px; overflow: hidden; background: #fff; }
.nv-tim input[type=search] { border: 0; border-radius: 0; flex: 1; min-width: 0; padding: 11px 14px; background: transparent; }
.nv-tim input[type=search]:focus { box-shadow: none; outline: 2px solid var(--nova-color-primary); outline-offset: -2px; }
.nv-tim button { border: 0; background: var(--nova-color-primary); color: #fff; font-weight: 700; padding: 0 18px; cursor: pointer; }
.nv-tim button:hover { background: var(--nova-color-secondary); }
@media (max-width: 767px) { .nv-tim { max-width: none; margin-left: 0; } }

/* ===== Form báo giá ( CF7 #387, trang Contact + popup ) ===== */
.wpcf7 form p { margin: 0 0 14px; }
.wpcf7 label { display: block; font-size: 15px; font-weight: 700; }
.wpcf7 label .wpcf7-form-control-wrap { display: block; margin-top: 6px; font-weight: 400; }
.ct-quote-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 14px; margin-bottom: 14px; }
.ct-quote-form__grid label { margin: 0; }
.wpcf7 form > label { margin-bottom: 14px; }
.wpcf7 textarea { height: 120px; }
.wpcf7 input, .wpcf7 select, .wpcf7 textarea { border-radius: 4px; }
.wpcf7 input[type=submit] { text-transform: none; font-weight: 700; padding: 14px 28px; border-radius: 4px; cursor: pointer; }
@media (max-width: 478px) { .ct-quote-form__grid { grid-template-columns: 1fr; } }

/* ===== Trang sản phẩm: bảng thông số của khách ( [coastline_product_specs] ) ===== */
.nv-specs { margin: 8px 0 0; border-top: 1px solid var(--nova-color-border); }
.nv-specs__row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--nova-color-border); font-size: 15px; }
.nv-specs dt { font-weight: 700; color: var(--nova-color-primary); }
.nv-specs dd { margin: 0; }

/* ===== Trang chủ: banner video ===== */
/* YouTube background ( assets/hero-youtube.js ): behind the content, no mouse, faded in once playing,
   oversized so YouTube's title bar and logo fall outside the banner. */
.nv-hero-yt { position: relative; overflow: hidden; }
.nv-hero-yt > .nv-yt-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .8s ease; }
.nv-hero-yt > .nv-yt-bg.is-on { opacity: 1; }
.nv-yt-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.nv-yt-bg iframe { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border: 0; pointer-events: none; filter: brightness(1.06) saturate(1.2) contrast(1.04); }
/* Soft dark gradient from the bottom-left keeps the copy readable without a coloured box. */
.nv-hero-yt::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background: linear-gradient(90deg, rgba(16, 36, 25, .62) 0%, rgba(16, 36, 25, .35) 45%, rgba(16, 36, 25, 0) 75%),
		linear-gradient(0deg, rgba(16, 36, 25, .45) 0%, rgba(16, 36, 25, 0) 55%); }
.nv-hero-yt > :not(.nv-yt-bg) { position: relative; z-index: 1; }
.nv-hero-yt h1, .nv-hero-yt p { text-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
/* On the video: white primary button, white outline second button. */
.nv-hero-yt .nova-btn--primary { --nova-btn-bg: #fff; --nova-btn-fg: var(--nova-color-primary); --nova-btn-bg-hover: var(--nova-color-bg-alt); }
.nv-hero-yt .nova-btn--outline { --nova-btn-line: #fff; --nova-btn-line-on: var(--nova-color-primary); }
@media (max-width: 767px) {
	.nv-hero-yt::after { background: linear-gradient(0deg, rgba(16, 36, 25, .75) 0%, rgba(16, 36, 25, .35) 60%, rgba(16, 36, 25, .1) 100%); }
}

/* ===== Quy trình 4 bước: số tròn ===== */
.nv-so { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--nova-color-primary); color: var(--nova-color-primary); font-weight: 700; font-size: 14px; }

/* ===== Bảng đóng gói ( Quality & Export ) ===== */
.nv-bang table { width: 100%; border-collapse: collapse; font-size: 15px; }
.nv-bang th, .nv-bang td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--nova-color-border); vertical-align: top; }
.nv-bang th { background: var(--nova-color-bg-alt); color: var(--nova-color-primary); font-weight: 700; }
@media (max-width: 767px) {
	.nv-bang { overflow-x: auto; }
	.nv-bang table { min-width: 480px; font-size: 14px; }
}
