/* ==========================================================================
   Phạm Nghĩa Food – style bổ sung cho Flatsome (thay phần Avada)
   ========================================================================== */
:root {
	--pn-blue: #004a80;
	--pn-orange: #fb8d4c;
	--pn-link: #27aae1;
	--pn-sep: #b9afa1;
}

/* Typography theo Avada: body Roboto 18/32, heading màu xanh, chữ mỏng */
body { font-size: 18px; line-height: 1.78; color: var(--pn-blue); }
h1, h2, h3, h4, h5, h6 { color: var(--pn-blue); font-weight: 400; }
h1 { font-size: 82px; line-height: 1; letter-spacing: -3px; }
h2 { font-size: 62px; line-height: 1.1; letter-spacing: -1px; }
h3 { font-size: 36px; line-height: 1.25; letter-spacing: -1px; }
.entry-content h1, .entry-content h2, .entry-content h3 { margin-bottom: .6em; }
@media (max-width: 849px) {
	h1 { font-size: 48px; letter-spacing: -1px; }
	h2 { font-size: 38px; }
	h3 { font-size: 28px; }
}
@media (max-width: 549px) {
	body { font-size: 16px; line-height: 1.7; }
	h1 { font-size: 36px; }
	h2 { font-size: 30px; }
	h3 { font-size: 24px; }
}
.button, button, input[type="submit"] { letter-spacing: 2px; font-weight: 700; }

/* Cột 1/5, 2/5, 3/5, 4/5 của Fusion (grid 12 của Flatsome không có) */
@media (min-width: 850px) {
	.col.pn-w20 { flex-basis: 20%; max-width: 20%; }
	.col.pn-w40 { flex-basis: 40%; max-width: 40%; }
	.col.pn-w60 { flex-basis: 60%; max-width: 60%; }
	.col.pn-w80 { flex-basis: 80%; max-width: 80%; }
}

/* Chỉ báo hiển thị theo thiết bị (hide_on_mobile của Fusion) */
@media (min-width: 850px) { .pn-hide-lg { display: none !important; } }
@media (min-width: 550px) and (max-width: 849px) { .pn-hide-md { display: none !important; } }
@media (max-width: 549px) { .pn-hide-sm { display: none !important; } }

/* Section separator */
.pn-divider { position: relative; width: 100%; overflow: hidden; line-height: 0; margin: 0; }
.pn-divider svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
.pn-divider .ux-shape-fill, .pn-divider path, .pn-divider polygon { fill: var(--pn-divider-color); }
.pn-divider--flip svg { transform: scaleX(-1); }
.pn-divider--invert svg { transform: scaleY(-1); top: 0; bottom: auto; }
.pn-divider--flip.pn-divider--invert svg { transform: scale(-1, -1); }
.section.pn-sep-section { padding: 0 !important; }
.section.pn-sep-section .row, .section.pn-sep-section .col { padding: 0; max-width: none; }
.section.pn-sep-section .col-inner { padding: 0; }

/* Tiêu đề chữ xoay */
.pn-rotating__words { display: inline-block; position: relative; vertical-align: top; }
.pn-rotating__word { display: none; white-space: nowrap; }
.pn-rotating__word.is-active { display: inline-block; }
.pn-rotating--clipin .pn-rotating__word.is-active { animation: pnClipIn .6s ease both; }
.pn-rotating--bouncein .pn-rotating__word.is-active { animation: pnBounceIn .7s ease both; }
.pn-rotating--fadein .pn-rotating__word.is-active,
.pn-rotating--flipinx .pn-rotating__word.is-active { animation: pnFadeIn .6s ease both; }
@keyframes pnClipIn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pnFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pnBounceIn {
	0% { opacity: 0; transform: scale(.3); }
	50% { opacity: 1; transform: scale(1.05); }
	70% { transform: scale(.95); }
	100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
	.pn-rotating__word.is-active { animation: none !important; }
}

/* Checklist */
.pn-checklist { list-style: none; margin: 0 0 1em; padding: 0; }
.pn-checklist li { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 10px; list-style: none; }
.pn-checklist__icon { flex: 0 0 1.4em; text-align: center; line-height: 1.7; color: #717171; }
.pn-checklist__text p:last-child { margin-bottom: 0; }

/* Tiêu đề kiểu Fusion (có gạch dưới/ngang) */
.pn-title { margin-bottom: 20px; }
.pn-title--sep { display: flex; align-items: center; gap: 20px; }
.pn-title--sep::after { content: ""; flex: 1; border-top: 1px solid var(--pn-sep); }
.pn-title--sep.text-center::before { content: ""; flex: 1; border-top: 1px solid var(--pn-sep); }

/* Đường kẻ (fusion_separator) */
.pn-sep { border: 0; border-top-style: solid; border-top-color: var(--pn-sep); margin-left: auto; margin-right: auto; max-width: 100%; }
.pn-sep--left { margin-left: 0; }
.pn-sep--right { margin-right: 0; }

/* Ảnh có hiệu ứng hover giống Avada */
.pn-img-frame { display: inline-block; max-width: 100%; overflow: hidden; line-height: 0; }
.pn-img-frame img { transition: transform .5s ease, filter .5s ease; }
.pn-img-frame--zoomin:hover img { transform: scale(1.1); }
.pn-img-frame--zoomout img { transform: scale(1.1); }
.pn-img-frame--zoomout:hover img { transform: scale(1); }
.pn-img-frame--liftup { transition: transform .3s ease, box-shadow .3s ease; }
.pn-img-frame--liftup:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,.15); }
.pn-align-center { text-align: center; }
.pn-align-right { text-align: right; }

/* Content box / counter */
.pn-content-box { text-align: center; margin-bottom: 30px; }
.pn-content-box__icon { font-size: 40px; color: var(--pn-orange); margin-bottom: 15px; }
.pn-content-box__title { font-size: 22px; margin-bottom: 10px; }
.pn-counter { text-align: center; }
.pn-counter__value { font-size: 50px; line-height: 1.1; color: var(--pn-orange); font-weight: 700; }

/* Highlight */
mark.pn-highlight { padding: 0 .2em; border-radius: 2px; }

/* Nút mạng xã hội */
.pn-social { display: flex; flex-wrap: wrap; gap: 8px; }
.pn-social__item { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 4px; color: #fff !important; font-size: 16px; transition: opacity .2s; }
.pn-social__item:hover { opacity: .85; }

/* Slider trang chủ (Avada Fusion Slider) */
.pn-slide .text-box .pn-slide__heading,
.pn-slide .text-box .pn-slide__caption { display: inline-block; padding: 6px 18px; line-height: 1.3; margin: 0 0 12px; }
.pn-slide .text-box .pn-slide__heading { font-size: 48px; letter-spacing: -1px; }
.pn-slide .text-box .pn-slide__caption { font-size: 32px; }
@media (max-width: 849px) {
	.pn-slide .text-box .pn-slide__heading { font-size: 28px; }
	.pn-slide .text-box .pn-slide__caption { font-size: 18px; }
}

/* Top bar & header */
.header-top { font-weight: 700; letter-spacing: 1px; }
.header-top a { color: inherit; }
.nav > li > a { font-weight: 700; letter-spacing: 2px; }

/* Footer theo Avada: nền xám nhạt, chữ xanh */
.footer-widgets.footer-1 { color: var(--pn-blue); }
.footer-widgets .widget-title { color: var(--pn-blue); letter-spacing: 1px; }
.absolute-footer { font-size: 11px; text-transform: uppercase; line-height: 1.5; letter-spacing: 1px; }
.absolute-footer a { color: #fff; }

/* Form liên hệ cũ (custom CSS của Avada) */
.form-style-6 { font: 95% Arial, Helvetica, sans-serif; line-height: 1.2em; max-width: 400px; margin: 0 auto; text-align: center; }
.form-style-6 p { margin-bottom: 10px; }

/* Bài viết */
.entry-content img { height: auto; }
.blog-single .entry-header-text { text-align: left; }

/* Lưới content box / counter / flip box */
.pn-boxes { display: grid; gap: 30px; margin-bottom: 30px; }
.pn-boxes--1 { grid-template-columns: 1fr; }
.pn-boxes--2 { grid-template-columns: repeat(2, 1fr); }
.pn-boxes--3 { grid-template-columns: repeat(3, 1fr); }
.pn-boxes--4 { grid-template-columns: repeat(4, 1fr); }
.pn-boxes--5 { grid-template-columns: repeat(5, 1fr); }
.pn-boxes--6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 849px) { .pn-boxes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 549px) { .pn-boxes { grid-template-columns: 1fr; } }

/* Flip box */
.pn-flip { perspective: 1000px; min-height: 260px; }
.pn-flip__inner { position: relative; width: 100%; height: 100%; min-height: 260px; transition: transform .8s; transform-style: preserve-3d; }
.pn-flip:hover .pn-flip__inner, .pn-flip:focus .pn-flip__inner { transform: rotateY(180deg); }
.pn-flip__front, .pn-flip__back { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 27px 20px; text-align: center; border-radius: 4px; backface-visibility: hidden; -webkit-backface-visibility: hidden; background-size: cover; background-position: center; background-color: var(--pn-blue); color: #fff; }
.pn-flip__back { transform: rotateY(180deg); background-color: var(--pn-orange); }
.pn-flip__front h3, .pn-flip__back h3 { color: inherit; font-size: 22px; letter-spacing: 0; }
.pn-flip__front i { font-size: 40px; margin-bottom: 15px; }

/* Dropdown menu theo Avada: nền xanh, chữ trắng */
.header-nav .nav-dropdown { background-color: var(--pn-blue); border-color: var(--pn-blue); }
.header-nav .nav-dropdown > li > a, .header-nav .nav-dropdown .nav-column > li > a { color: #fff; }
.header-nav .nav-dropdown > li > a:hover, .header-nav .nav-dropdown li.active > a { color: var(--pn-orange); background: transparent; }
.nav-dropdown-has-arrow li.has-dropdown:after { border-bottom-color: var(--pn-blue); }
.nav-dropdown-has-arrow li.has-dropdown:before { border-bottom-color: var(--pn-blue); }

/* ux_image làm slide trong ux_slider: chiếm đủ ô slide */
.slider > .img, .slider .flickity-slider > .img { width: 100%; }
.pn-carousel .flickity-slider > .img { padding: 0 10px; }
.pn-popup img { display: block; width: 100%; height: auto; }
.pn-popup p { margin: 0; }

/* Footer widget căn giữa như Avada (fusion-footer-widget-area-center) */
.footer-widgets.footer-1 .col { text-align: center; }
.footer-widgets.footer-1 .pn-checklist { display: inline-block; text-align: left; }
.footer-widgets.footer-1 .pn-social { justify-content: center; }
.footer-widgets.footer-1 .is-divider { margin-left: auto; margin-right: auto; }

/* Typography phụ theo Avada */
h4 { font-size: 20px; font-style: italic; line-height: 1.4; letter-spacing: 0; }
h5 { font-size: 26px; line-height: 1.4; letter-spacing: -1px; }
h6 { font-family: "Itim", "Comic Sans MS", cursive; font-size: 18px; line-height: 1.4; }
/* Tiêu đề bài viết (post_title_typography: 22px/36px) */
.blog-single .entry-title, .single-post .entry-header .entry-title { font-size: 22px; line-height: 36px; letter-spacing: -1px; font-weight: 400; text-transform: none; }
.blog-archive .post-title, .box-blog-post .post-title { letter-spacing: 0; }

/* ==========================================================================
   Portfolio Single – Layout chuẩn (Phạm Nghĩa Food)
   ========================================================================== */

/* Hero section */
.pn-portfolio-hero {
	padding-top: 25px !important;
	padding-bottom: 25px !important;
}

/* Khối card chính (nền xanh, góc bo tròn) */
.pn-hero-card {
	background-color: var(--pn-blue, #004a80) !important;
	border-radius: 15px !important;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(0, 74, 128, 0.12);
}

/* Cột trái: Slider ảnh sản phẩm */
.pn-portfolio-gallery-col {
	position: relative;
	overflow: hidden;
}

.pn-portfolio-gallery-col .col-inner {
	height: 100%;
}

.pn-portfolio-gallery-col .slider,
.pn-portfolio-gallery-col .flickity-viewport {
	height: 100%;
}

.pn-portfolio-gallery-col .img-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
}

.pn-portfolio-gallery-col img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

/* Cột phải: Thông tin tóm tắt sản phẩm */
.pn-portfolio-summary-col .col-inner {
	padding: 28px !important;
	color: #fff;
}

@media (max-width: 849px) {
	.pn-portfolio-summary-col .col-inner {
		padding: 20px !important;
	}
}

/* Tiêu đề sản phẩm */
.pn-product-title-wrap .pn-product-title,
.title_pr h2 {
	color: #fff !important;
	font-size: 2.2rem;
	font-weight: 700;
	line-height: 1.25;
	margin-top: 0;
	margin-bottom: 14px;
	letter-spacing: -0.5px;
}

@media (max-width: 549px) {
	.pn-product-title-wrap .pn-product-title,
	.title_pr h2 {
		font-size: 1.6rem;
	}
}

/* Tiêu đề Quy cách đóng gói */
.pn-packaging-title {
	color: var(--pn-orange, #fb8d4c) !important;
	font-size: 1.15rem;
	font-weight: 600;
	margin-top: 0;
	margin-bottom: 12px;
	font-style: normal;
}

/* Danh sách quy cách đóng gói (klt) */
.pn-klt-group,
.klt {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 16px;
	border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
	padding-bottom: 14px;
}

.pn-klt-item,
.klt p {
	box-sizing: border-box;
	flex: 0 0 calc((100% - 24px) / 3);
	min-width: 90px;
	margin: 0;
	padding: 10px 8px;
	border: 1px solid var(--pn-blue, #075184);
	background-color: #fff;
	color: #333;
	text-align: center;
	line-height: 1.4;
	border-radius: 16px;
	font-size: 13px;
}

@media (max-width: 549px) {
	.pn-klt-item,
	.klt p {
		flex: 1 1 calc(50% - 8px);
	}
}

.pn-klt-item span,
.klt p span {
	display: inline-block;
	color: var(--pn-blue, #075184);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
}

/* Badges loại hàng (Hàng tươi, Hàng đông lạnh) */
.pn-badge-stack {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}

.pn-badge-item {
	flex: 0 0 auto;
	max-width: 170px;
}

.pn-badge-item img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* Khối cam kết sản phẩm */
.pn-cam-ket-block {
	margin-top: 10px;
}

.pn-cam-ket-block .block_cam_ket {
	margin: 0;
}

.pn-cam-ket-block .cl_cam_ket {
	margin: 10px 0 0 0 !important;
}

/* Kênh phân phối */
.pn-channels-row {
	margin-top: 35px;
	margin-bottom: 25px;
}

.pn-channel-box {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease;
}

.pn-channel-box:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Tóm tắt sản phẩm */
.pn-summary-row {
	margin-bottom: 25px;
}

/* Khối Giới thiệu & Giá trị dinh dưỡng */
.pn-info-row {
	margin-top: 15px;
}

.pn-info-card {
	background-color: #fff;
	border: 1px solid var(--pn-blue, #004a80);
	border-radius: 18px;
	padding: 26px 28px;
	height: 100%;
	box-sizing: border-box;
	box-shadow: 0 4px 12px rgba(0, 74, 128, 0.04);
}

@media (max-width: 849px) {
	.pn-info-card {
		padding: 20px;
	}
}

.pn-info-card-title {
	color: var(--pn-blue, #004a80);
	font-size: 1.3rem;
	font-weight: 700;
	text-transform: uppercase;
	margin-top: 0;
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--pn-blue, #004a80);
	letter-spacing: 0.5px;
	font-style: normal;
}

.pn-info-card-body {
	font-size: 16px;
	line-height: 1.75;
	color: #333;
}

.pn-info-card-body p:last-child {
	margin-bottom: 0;
}

.pn-info-card-body ul,
.pn-info-card-body ol {
	padding-left: 20px;
	margin-bottom: 15px;
}

.pn-info-card-body img {
	border-radius: 8px;
	max-width: 100%;
	height: auto;
}

/* Điều hướng bài viết kế tiếp / liên quan */
.pn-portfolio-bottom {
	margin-top: 20px;
}
