/* =====================================================================
   V2 – bám sát giao diện phucanh.vn (màu, kích thước đo từ trang gốc)
   ===================================================================== */
:root { --pa-blue: #2842b3; --pa-blue-dark: #1a2174; --pa-red: #de0b00; --pa-red-dark: #b50900; --pa-price: #d42333; }
body.pa { background: #fff; font-family: Arial, Verdana, sans-serif; font-size: 13px; color: #222; }
.pa-wrap, body.pa .container { max-width: 1392px; padding: 0 16px; }

/* Thanh trên cùng */
.pa-topbar { background: var(--pa-blue); color: #fff; border: 0; font-size: 13px; }
.pa-topbar .pa-wrap { min-height: 40px; }
.pa-topbar ul { list-style: none; margin: 0; padding: 0; display: flex; overflow: hidden; }
.pa-topbar li a { display: block; padding: 0 14px; line-height: 40px; color: #fff !important; font-weight: 700; font-size: 12.5px; text-transform: uppercase; border-right: 1px solid rgba(255,255,255,.25); white-space: nowrap; }
.pa-topbar li:first-child a { padding-left: 0; }
.pa-topbar li:last-child a { border: 0; }
.pa-topbar i { color: #fff; margin-right: 5px; }
.pa-topbar-right { color: #fff; font-weight: 700; font-size: 12.5px; text-transform: uppercase; gap: 6px; align-items: center; }
.pa-topbar-right a { color: #fff !important; }
.pa-topbar-right i { font-size: 18px; color: #fff; }

/* Header */
.pa-header-main { background: #fff; }
.pa-header-main .pa-wrap { height: 90px; padding-top: 0; padding-bottom: 0; gap: 18px; }
.pa-logo img { height: 42px; }
.pa-search { max-width: 460px; flex: 0 1 460px; }
.pa-search form { border: 0; border-radius: 20px; box-shadow: 0 1px 2px rgba(60,64,67,.1), 0 2px 6px 2px rgba(60,64,67,.15); height: 34px; align-items: center; }
.pa-search .txt-search { height: 34px; font-size: 13px; padding: 0 14px; }
.pa-search-type { white-space: nowrap; color: #333; padding: 0 10px; border-left: 1px solid #ddd; font-size: 13px; cursor: default; }
.pa-search .btn-search { width: 44px; height: 34px; background: var(--pa-red); border-radius: 0 20px 20px 0; }
.pa-header-actions { gap: 12px; flex: 1; justify-content: flex-end; }
.pa-pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 16px; border-radius: 9999px; color: #fff !important; font-size: 15px; font-weight: 600; white-space: nowrap; text-transform: uppercase;
	background: repeating-linear-gradient(to right, #ff0000 0, #1a2174 50%, #ff0000 100%); background-size: 200% auto; animation: pa-grad 4s linear infinite; }
.pa-pill:hover { color: #fff !important; filter: brightness(1.1); }
.pa-pill i { font-size: 16px; }
.pa-pill .pa-cart-count { position: static; background: #fff; color: var(--pa-red); border-radius: 10px; min-width: 20px; height: 20px; line-height: 20px; font-size: 12px; text-align: center; padding: 0 5px; }
@keyframes pa-grad { 0% { background-position: 0 0; } 100% { background-position: -200% 0; } }

/* Navbar trang trong */
.pa-navbar { background: var(--pa-blue); }
.pa-navbar .pa-wrap { height: 42px; }
.pa-cat-box { flex: 0 0 280px; }
.pa-cat-btn { background: var(--pa-blue-dark); height: 42px; line-height: 42px; font-size: 14px; }
.pa-cat-box > .pa-cat-menu { top: 42px; width: 280px; }
.pa-nav-service { font-weight: 700; font-size: 13px; }
.pa-nav-deal { background: var(--pa-red); font-size: 14px; }

/* Menu danh mục */
.pa-cat-menu { border-radius: 0; }
.pa-cat-menu > ul > li > a { font-size: 13px; color: #333; padding: 0 12px; min-height: 34px; }
.pa-cat-menu > ul > li:hover > a { background: #f2f4f7; color: var(--pa-red); }

/* ----- Trang chủ ----- */
.pa-home { padding-top: 0; }
.pa-home-top { display: flex; gap: 10px; margin: 0 0 10px; background: #fff; }
.pa-home-cat { flex: 0 0 290px; max-height: none; border: 1px solid #e5e7eb; border-top: 0; border-radius: 0 0 8px 8px; box-shadow: 0 2px 6px rgba(60,64,67,.12); display: flex; }
.pa-home-cat > ul { width: 100%; display: flex; flex-direction: column; padding: 4px 0; }
.pa-home-cat > ul > li { flex: 1 1 auto; display: flex; }
.pa-home-cat > ul > li > a { width: 100%; }
.pa-home-banners { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding-top: 10px; }
.pa-home-row1 { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.pa-home-slider { border-radius: 10px; overflow: hidden; position: relative; aspect-ratio: 708/382; background: #f2f4f7; }
.pa-home-slider .slider-home, .pa-home-slider .owl-carousel, .pa-home-slider .owl-stage-outer, .pa-home-slider .owl-stage, .pa-home-slider .owl-item, .pa-home-slider .slider-home-item, .pa-home-slider .slider-home-item a { height: 100%; }
.pa-home-slider .slider-home-item img { width: 100%; height: 100%; object-fit: cover; }
.pa-home-slider .owl-nav div { position: absolute; top: 50%; margin-top: -18px; width: 36px; height: 36px; line-height: 36px; text-align: center; border-radius: 50%; background: rgba(255,255,255,.8); color: #333; }
.pa-home-slider .owl-nav .owl-prev { left: 10px; } .pa-home-slider .owl-nav .owl-next { right: 10px; }
.pa-home-right { display: grid; grid-template-rows: 1fr 1fr; gap: 10px; min-width: 0; }
.pa-home-row2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pa-bn { display: block; border-radius: 10px; overflow: hidden; min-height: 0; }
.pa-bn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pa-home-row2 .pa-bn { aspect-ratio: 350/190; }
/* banner tự tạo khi chưa có ảnh */
.pa-tile { position: relative; display: flex; align-items: center; padding: 14px 16px; color: #fff !important; min-height: 150px; }
.pa-tile img { position: absolute; right: 8px; bottom: 8px; width: 46%; height: 80%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); transition: transform .3s; }
.pa-tile-text { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 6px; max-width: 58%; }
.pa-tile-text b { font-size: 19px; line-height: 1.2; text-transform: uppercase; font-weight: 800; text-shadow: 0 2px 4px rgba(0,0,0,.25); }
.pa-tile-text em { font-style: normal; font-weight: 800; font-size: 20px; color: #ffe600; }
.pa-tile-text i { font-style: normal; align-self: flex-start; background: #fff; color: var(--pa-red); font-weight: 700; font-size: 12px; padding: 4px 12px; border-radius: 20px; }
.pa-t1 { background: linear-gradient(135deg, #0b1a6b, #2842b3 60%, #6a2fd6); }
.pa-t2 { background: linear-gradient(135deg, #3d0000, #b50900 55%, #ff4d00); }
.pa-t3 { background: linear-gradient(135deg, #004e92, #0aa0e3); }
.pa-t4 { background: linear-gradient(135deg, #0f5132, #1a9a3c 60%, #7bd13d); }
.pa-t5 { background: linear-gradient(135deg, #5b1076, #b0198f 60%, #ff5e7e); }
.pa-tile:hover img { transform: scale(1.05); }

.pa-policy-bar { background: var(--pa-blue); height: 55px; display: flex; align-items: center; justify-content: space-around; color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.pa-policy-bar i { color: #ffd400; font-size: 20px; margin-right: 6px; vertical-align: middle; }

/* Deal */
.pa-deal { background: #de0b00; border-radius: 0; padding: 0 10px 12px; margin-bottom: 22px; }
.pa-deal-head { height: 45px; margin: 0 -10px 10px; padding: 0 20px; }
.pa-deal-head h2 { font-size: 24px; text-transform: uppercase; font-weight: 700; }
.pa-countdown { gap: 6px; }
.pa-countdown span { background: #fff; color: #de0b00; border-radius: 4px; font-size: 16px; min-width: 32px; padding: 3px 6px; }
.pa-card-deal { border-radius: 5px; border: 0; padding: 8px; box-shadow: none; }
.pa-deal-badge { position: absolute; top: 0; right: 0; background: #ffd400; color: #de0b00; font-weight: 700; font-size: 13px; padding: 2px 8px; border-radius: 0 0 0 8px; z-index: 2; }
.pa-card-dealprice { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.pa-card-dealprice .pa-price-new { color: var(--pa-price); font-size: 16px; font-weight: 700; }
.pa-card-dealprice .pa-price-old { font-size: 12px; }
.pa-deal-status { position: relative; height: 18px; border-radius: 9px; background: #ffd9d6; overflow: hidden; margin-top: auto; }
.pa-deal-status span { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #ff7a00, #de0b00); border-radius: 9px; }
.pa-deal-status em { position: relative; z-index: 1; display: block; text-align: center; font-style: normal; font-size: 11.5px; line-height: 18px; color: #fff; font-weight: 700; text-shadow: 0 0 2px rgba(0,0,0,.4); }

/* Tabs Hot / Mới */
.pa-hot { margin-bottom: 26px; }
.pa-hot-tabs { float: none !important; width: auto !important; border-bottom: 2px solid #000 !important; margin-bottom: 14px; }
.pa-hot-tabs ul { display: flex; list-style: none; margin: 0; padding: 0; }
.pa-hot-tabs li { float: none !important; }
.pa-hot-tabs li a { display: block; padding: 0 18px !important; line-height: 35px; font-size: 14px !important; font-weight: 700 !important; color: #000 !important; text-transform: none !important; background: none; border-radius: 4px 4px 0 0; }
.pa-hot-tabs li a.active { background: #d00306 !important; color: #fff !important; }
.pa-hot-tabs li a.active::after { display: none !important; }
.home-product-tab .tab-content { padding-top: 0 !important; }

/* Thẻ sản phẩm kiểu phucanh */
.pa-card { border: 0; border-radius: 15px; padding: 8px; box-shadow: 0 1px 2px rgba(60,64,67,.1), 0 2px 6px 2px rgba(60,64,67,.15); }
.pa-card:hover { box-shadow: 0 4px 16px rgba(60,64,67,.25); border: 0; }
.pa-card-img { margin-bottom: 10px; }
.pa-card-title { font-size: 13px; line-height: 18px; height: 36px; -webkit-line-clamp: 2; margin: 0 0 4px; }
.pa-card-title a { color: #000 !important; }
.pa-card-title a:hover { color: var(--pa-blue) !important; }
.pa-card-price { color: var(--pa-price); font-size: 20px; font-weight: 600; line-height: 29px; }
.pa-card-oldrow { display: flex; align-items: center; gap: 8px; min-height: 20px; margin-bottom: 6px; }
.pa-card-oldrow .pa-price-old { color: #666; font-size: 14px; font-weight: 600; }
.pa-discount { background: var(--pa-red); color: #fff; font-size: 12px; line-height: 20px; padding: 0 8px; border-radius: 3px 10px 10px 3px; }
.pa-card-attr { background: #f2f4f7; border-radius: 6px; padding: 4px 6px; margin-bottom: 8px; }
.pa-card-attr ul { margin: 0; padding: 0 0 0 16px; }
.pa-card-attr li { color: #667085; font-size: 12px; line-height: 17.4px; list-style: disc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-card-foot { font-size: 13px; }
.pa-card-foot .pa-stock-in { color: #12bd1b !important; }
.pa-card-cart { width: auto; height: auto; border: 0 !important; border-radius: 0; color: #d42333 !important; font-size: 13px; background: none !important; }
.pa-card-cart.added { font-size: 13px; }
.pa-card-cart.added::before { display: none; }
.pa-tag { position: absolute; top: 8px; left: 8px; z-index: 2; color: #fff; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 10px; text-transform: uppercase; }
.pa-tag-new { background: #1a9a3c; } .pa-tag-hot { background: #ff6a00; }
.pa-card-tip { width: 300px; border-top: 3px solid var(--pa-blue); }
.pa-tip-name { font-weight: 700; margin: 0 0 4px; color: var(--pa-blue); }
.pa-tip-price { margin: 0 0 6px; } .pa-tip-price b { color: var(--pa-price); }
.pa-card-tip ul { margin: 0; padding-left: 18px; }
.pa-card-compact .pa-card-price { font-size: 16px; line-height: 24px; }
.pa-card-compact .pa-card-oldrow .pa-price-old { font-size: 12.5px; }
.pa-grid { gap: 14px; }

/* Hàng danh mục */
.pa-catrow { margin-bottom: 24px; }
.pa-catrow-head { display: flex; align-items: stretch; height: 36px; background: var(--pa-blue); border-bottom: 2px solid #333; }
.pa-catrow-head > a:first-child { display: flex; }
.pa-catrow-title { margin: 0; background: #ee0000; color: #fff; font-size: 16px; font-weight: 700; line-height: 36px; padding: 0 26px 0 15px; white-space: nowrap; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }
.pa-catrow-sub { flex: 1; display: flex; align-items: center; overflow: hidden; white-space: nowrap; padding-left: 6px; }
.pa-catrow-sub a { color: #fff !important; font-weight: 700; font-size: 13px; padding: 0 8px; border-right: 1px solid rgba(255,255,255,.3); line-height: 14px; }
.pa-catrow-sub a:last-child { border: 0; }
.pa-catrow-sub a:hover { color: #ffd400 !important; }
.pa-catrow-all { color: #fff !important; font-weight: 700; line-height: 36px; padding: 0 12px; white-space: nowrap; }
.pa-catrow-slider { border: 1px solid #e5e7eb; border-top: 0; }
.pa-catrow-slider .pa-card { border-radius: 0; box-shadow: none; border-right: 1px solid #eee; padding: 10px; }
.pa-catrow-slider .pa-card:hover { box-shadow: 0 0 12px rgba(0,0,0,.15); }
.pa-product-slider .owl-nav .owl-prev { left: 4px; } .pa-product-slider .owl-nav .owl-next { right: 4px; }

/* Thương hiệu */
.pa-brands { border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px 14px; margin-bottom: 24px; background: #fff; }

/* Tin tức */
.pa-news { margin-bottom: 26px; }
.pa-news-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--pa-blue); margin-bottom: 12px; }
.pa-news-head h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--pa-blue); line-height: 40px; text-transform: uppercase; }
.pa-news-head h3 i { color: var(--pa-red); margin-right: 6px; }
.pa-news-head a { color: var(--pa-blue) !important; font-weight: 700; }
.pa-news-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pa-news-item { display: block; }
.pa-news-img { display: block; aspect-ratio: 16/10; overflow: hidden; border-radius: 8px; margin-bottom: 8px; background: #f2f4f7; }
.pa-news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.pa-news-item:hover img { transform: scale(1.05); }
.pa-news-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; font-size: 14px; color: #222; line-height: 1.4; }
.pa-news-date { display: block; color: #888; font-size: 12px; margin-top: 4px; }

/* Footer kiểu phucanh */
.pa-partner { border-top: 1px solid #e5e7eb; }
#pa-footer { border-top: 1px solid #e5e7eb; background: #fff; }
.pa-footer-support { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid #e5e7eb; }
.pa-fs-title { font-weight: 700; font-size: 15px; color: var(--pa-blue); margin: 0 0 8px; }
.pa-fs-col p { margin: 0 0 8px; line-height: 1.5; }
.pa-red { color: var(--pa-red); font-size: 16px; }
.pa-fs-cert img { max-height: 60px; width: auto; }
.pa-fs-news { background: #f2f4f7; border-radius: 10px; padding: 14px 16px; }
.pa-fs-btn { display: inline-block; background: var(--pa-red); color: #fff !important; font-weight: 700; padding: 8px 18px; border-radius: 20px; }
#pa-footer .pa-footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 22px 0; }
.pa-ftitle { color: #222; text-transform: none; font-size: 15px; }
.pa-social { display: flex; gap: 8px; }
.pa-social a { width: 36px; height: 36px; border-radius: 50%; background: var(--pa-blue); color: #fff !important; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.pa-social .pa-zalo { background: #0068ff; font-size: 11px; }
.pa-showroom { background: var(--pa-blue); color: #fff; padding: 20px 0 14px; }
.pa-showroom a { color: #ffd400 !important; }
.pa-showroom-title { font-size: 16px; font-weight: 700; margin: 0 0 8px; text-transform: uppercase; }
.pa-showroom .zing-content, .pa-showroom .zing-content * { color: #fff !important; background: transparent !important; }
.pa-showroom .zing-content p { margin: 0 0 4px; }
.pa-copyright { border-top: 1px solid rgba(255,255,255,.25); margin-top: 12px; padding-top: 10px; font-size: 12.5px; opacity: .9; }

@media (max-width: 1199px) {
	.pa-topbar li:nth-child(n+5) { display: none; }
	.pa-pill span { display: none; }
	.pa-home-cat { flex-basis: 240px; }
}
@media (max-width: 991px) {
	.pa-topbar { display: none; }
	.pa-header-main .pa-wrap { height: auto; padding-top: 8px; padding-bottom: 8px; }
	.pa-search { flex: 1 1 100%; max-width: none; }
	.pa-search-type { display: none; }
	.pa-pill { padding: 0 11px; height: 36px; }
	.pa-pill-build { display: none; }
	.pa-home-top { display: block; }
	.pa-home-banners { padding-top: 0; }
	.pa-home-row1 { grid-template-columns: 1fr; }
	.pa-home-right { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
	.pa-home-right .pa-bn { aspect-ratio: 350/185; }
	.pa-policy-bar { height: auto; flex-wrap: wrap; justify-content: flex-start; gap: 8px 18px; padding: 10px 14px; font-size: 13px; }
	.pa-catrow-sub { display: none; }
	.pa-news-list { grid-template-columns: 1fr 1fr; }
	.pa-footer-support, #pa-footer .pa-footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
	.pa-home-row2 { grid-template-columns: 1fr 1fr; }
	.pa-home-row2 .pa-bn:nth-child(3) { display: none; }
	.pa-tile { min-height: 110px; padding: 10px; }
	.pa-tile-text b { font-size: 14px; } .pa-tile-text em { font-size: 14px; }
	.pa-deal-head h2 { font-size: 17px; }
	.pa-card-price { font-size: 16px; }
	.pa-card-attr { display: none; }
	.pa-footer-support, #pa-footer .pa-footer-cols { grid-template-columns: 1fr; }
	.pa-catrow-title { font-size: 14px; }
}

/* Sửa lỗi sau khi xem thực tế */
.pa-pill.cart-mini span { width: auto; height: auto; display: inline; background: none; font-size: inherit; font-weight: inherit; color: inherit; float: none; margin: 0; position: static; line-height: inherit; text-align: left; }
.pa-pill.cart-mini .pa-cart-count span { color: var(--pa-red); font-size: 12px; font-weight: 700; }
.pa-search { flex: 1 1 520px; max-width: 540px; }
.pa-search .txt-search { min-width: 0; }
.pa-home-slider { aspect-ratio: 960/400; }
.pa-home-row1 { align-items: stretch; }
.pa-tile img { background: #fff; border-radius: 10px; padding: 6px; width: 40%; height: auto; max-height: 78%; top: 50%; bottom: auto; transform: translateY(-50%); box-shadow: 0 6px 16px rgba(0,0,0,.3); filter: none; aspect-ratio: 1/1; object-fit: contain; }
.pa-tile:hover img { transform: translateY(-50%) scale(1.05); }
.pa-tile-text { max-width: 56%; }
.pa-tile-text b { font-size: 17px; }
.pa-tile-text em { font-size: 17px; }
.pa-home-slider { min-width: 0; }
.pa-home-row1 > * { min-width: 0; }
.pa-header-actions { flex: 0 0 auto; margin-left: auto; }
.pa-search { flex: 1 1 auto; max-width: 600px; margin-left: 30px; }
.pa-home-slider { aspect-ratio: auto; overflow: hidden; }
.pa-home-slider .slider-home, .pa-home-slider .owl-carousel, .pa-home-slider .owl-stage-outer, .pa-home-slider .owl-stage, .pa-home-slider .owl-item, .pa-home-slider .slider-home-item, .pa-home-slider .slider-home-item a { height: auto; }
.pa-home-slider .slider-home-item img { height: auto; object-fit: fill; }
.pa-home-row1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
