/**
 * NukeViet Content Management System
 * @version 4.x
 * @author VINADES.,JSC <contact@vinades.vn>
 * @copyright (C) 2009-2021 VINADES.,JSC. All rights reserved
 * @license GNU/GPL version 2 or any later version
 * @see https://github.com/nukeviet The NukeViet CMS GitHub project
 */

/* Các tùy chỉnh CSS của giao diện nên để vào đây */

:root {
    --ph-ink: #2b1d14;
    --ph-wood: #4a3220;
    --ph-gold: #c9a227;
    --ph-paper: #fbf5ea;
    --ph-line: rgba(74, 50, 32, 0.14);
}

/* Header dùng chung cho toàn website */
.ph-site-header {
    position: relative;
    z-index: 50;
    background: #fffdf9;
    border-bottom: 1px solid var(--ph-line);
    box-shadow: 0 3px 16px rgba(43, 29, 20, 0.06);
}

.ph-header-bar {
    min-height: 72px;
}

.ph-header-inner {
    position: relative;
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: center;
    padding: 0 210px 0 18px;
}

.ph-brand {
    position: absolute;
    z-index: 4;
    top: 10px;
    left: 50%;
    display: block;
    width: 132px;
    height: 132px;
    padding: 8px;
    overflow: hidden;
    background: #fffdf9;
    border: 1px solid var(--ph-line);
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(43, 29, 20, 0.12);
    transform: translateX(-50%);
}

.ph-brand-logo,
.ph-brand-logo img {
    display: block;
    width: 100%;
    height: 100%;
}

.ph-brand-logo img {
    object-fit: contain;
}

.ph-main-nav {
    width: 100%;
}

#menusite.ph-main-nav .navbar,
#menusite.ph-main-nav .navbar-default {
    min-height: 0;
    margin: 0;
    background: transparent !important;
    border: 0 !important;
}

#menusite.ph-main-nav .navbar-header {
    display: none;
}

#menusite.ph-main-nav .navbar-collapse {
    display: block !important;
    height: auto !important;
    padding: 0;
    overflow: visible !important;
    border: 0;
}

#menusite.ph-main-nav .navbar-nav {
    display: flex;
    float: none;
    align-items: center;
    justify-content: center;
    margin: 0;
}

#menusite.ph-main-nav .navbar-nav > li {
    float: none;
    margin: 0 !important;
}

/* Khoảng trống ở giữa giúp menu hai bên logo mà vẫn giữ dữ liệu menu động. */
#menusite.ph-main-nav .navbar-nav > li:nth-child(4) {
    margin-left: clamp(108px, 12vw, 184px) !important;
}

#menusite.ph-main-nav .navbar-default .navbar-nav > li > a {
    padding: 8px 13px;
    color: var(--ph-wood) !important;
    background: transparent !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: none;
}

#menusite.ph-main-nav .navbar-nav > li > a.home {
    padding-right: 8px;
    padding-left: 8px;
    color: var(--ph-gold) !important;
}

#menusite.ph-main-nav .navbar-default .navbar-nav > li > a:hover,
#menusite.ph-main-nav .navbar-default .navbar-nav > li > a:focus,
#menusite.ph-main-nav .navbar-default .navbar-nav > .active > a,
#menusite.ph-main-nav .navbar-default .navbar-nav > .active > a:hover,
#menusite.ph-main-nav .navbar-default .navbar-nav > .active > a:focus,
#menusite.ph-main-nav .navbar-default .navbar-nav > .open > a,
#menusite.ph-main-nav .navbar-default .navbar-nav > .open > a:hover,
#menusite.ph-main-nav .navbar-default .navbar-nav > .open > a:focus {
    background: var(--ph-gold) !important;
    color: #fffdf9 !important;
    border-radius: 999px;
}

#menusite.ph-main-nav .dropdown-menu {
    min-width: 210px;
    padding: 8px 0;
    background: #fffdf9 !important;
    border: 1px solid var(--ph-line) !important;
    border-radius: 10px !important;
    box-shadow: 0 12px 28px rgba(43, 29, 20, 0.14);
}

#menusite.ph-main-nav .dropdown-menu > li {
    border: 0 !important;
}

#menusite.ph-main-nav .dropdown-menu > li > a {
    padding: 8px 15px;
    color: var(--ph-wood);
}

.ph-header-actions {
    position: absolute;
    right: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ph-header-search {
    width: 38px;
    margin: 0;
}

.ph-header-search .input-group {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}

.ph-header-search .form-control {
    width: 0;
    height: 36px;
    padding: 0;
    opacity: 0;
    border-color: var(--ph-line);
    transition: width .2s ease, padding .2s ease, opacity .2s ease;
}

.ph-header-search:focus-within .form-control {
    width: 180px;
    padding: 6px 12px;
    opacity: 1;
}

.ph-header-search .input-group-btn {
    width: auto;
}

.ph-header-search .btn {
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--ph-wood);
    background: transparent;
    border: 0;
    border-radius: 50%;
    box-shadow: none;
}

.ph-header-search .btn:hover,
.ph-header-search .btn:focus {
    color: #fff;
    background: var(--ph-wood);
}

.ph-header-contact .visible-xs-inline-block {
    display: none !important;
}

.ph-header-contact .content {
    display: block !important;
}

.ph-header-contact .contactList {
    margin: 0;
}

.ph-header-contact .contactList li {
    display: none;
    margin: 0;
}

.ph-header-contact .contactList li:first-child {
    display: block;
}

.ph-header-contact .contactList li:first-child a,
.ph-header-contact .contactList li:first-child {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.ph-header-contact .contactList li:first-child {
    padding: 9px 12px;
    background: #749b37;
    border-radius: 999px;
}

.ph-header-contact .contactList .fa {
    display: none;
}

.ph-breadcrumbs {
    padding: 13px 0 0;
}

.ph-breadcrumbs .breadcrumbs-wrap {
    margin: 0;
}

/* Trang chủ: chỉ hiển thị nội dung do block module cấp. */
.ph-home {
    margin: 0 -15px;
}

.ph-home-section {
    position: relative;
    width: 100%;
}

.ph-home-section:empty,
.ph-home-module-content:empty {
    display: none;
}

.ph-home-hero {
    min-height: 0;
    margin-top: 0;
}

.ph-home-hero .nv-block-banners,
.ph-home-hero .nv-block-banners a,
.ph-home-hero .nv-block-banners img {
    display: block;
    width: 100%;
}

.ph-home-hero .nv-block-banners img {
    height: auto;
    max-height: 680px;
    object-fit: cover;
}

.ph-home-slider {
    overflow: hidden;
    background: var(--ph-ink);
}

.ph-home-slider .item {
    position: relative;
    min-height: 360px;
}

.ph-home-slider img {
    display: block;
    width: 100%;
    height: min(56vw, 680px);
    min-height: 360px;
    object-fit: cover;
}

.ph-home-slider-caption {
    position: absolute;
    top: 50%;
    left: max(24px, calc((100% - 1170px) / 2));
    z-index: 2;
    max-width: min(560px, 55vw);
    padding: 24px 28px;
    color: #fffdf9;
    background: rgba(43, 29, 20, 0.78);
    border-left: 4px solid var(--ph-gold);
    transform: translateY(-50%);
}

.ph-home-slider-caption > :last-child {
    margin-bottom: 0;
}

.ph-home-slider-html,
.ph-hero-html {
    position: absolute;
    inset: 0;
}

.ph-hero-html {
    display: flex;
    min-height: 360px;
    padding: 54px max(28px, calc((100% - 1070px) / 2));
    align-items: center;
    color: #fffdf9;
    background-position: 68% center;
    background-size: cover;
}

.ph-hero-html::before {
    position: absolute;
    inset: 0;
    content: '';
    background: linear-gradient(90deg, rgba(35, 22, 14, 0.9) 0%, rgba(43, 29, 20, 0.68) 46%, rgba(43, 29, 20, 0.08) 82%);
}

.ph-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.ph-hero-copy > span {
    display: block;
    margin-bottom: 12px;
    color: #e4c766;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.ph-hero-copy h2 {
    margin: 0 0 18px;
    color: #fffdf9;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(36px, 4.6vw, 62px);
    font-weight: 700;
    line-height: 1.08;
}

.ph-hero-copy h2 em {
    color: #e4c766;
    font-weight: 400;
}

.ph-hero-copy p {
    max-width: 520px;
    font-size: 16px;
    line-height: 1.75;
}

.ph-hero-button {
    display: inline-block;
    padding: 11px 19px;
    color: #2b1d14;
    background: #e4c766;
    border-radius: 999px;
    font-weight: 700;
}

.ph-hero-button:hover,
.ph-hero-button:focus {
    color: #2b1d14;
    text-decoration: none;
    background: #f0d878;
}

.ph-home-slider .carousel-control {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    color: #fff;
    font-size: 42px;
    text-shadow: none;
    opacity: 0;
    transition: opacity .2s ease, background-color .2s ease;
}

.ph-home-slider:hover .carousel-control,
.ph-home-slider:focus-within .carousel-control {
    opacity: 1;
}

.ph-home-slider .carousel-control:hover,
.ph-home-slider .carousel-control:focus {
    background: rgba(43, 29, 20, 0.38);
}

.ph-home-intro,
.ph-home-categories,
.ph-home-products,
.ph-home-story,
.ph-home-gallery,
.ph-home-contact {
    padding: 38px max(15px, calc((100% - 1170px) / 2));
}

.ph-home-intro,
.ph-home-story,
.ph-home-contact {
    background: var(--ph-paper);
}

.ph-home-categories,
.ph-home-products,
.ph-home-gallery {
    background: #fff;
}

.ph-home .block-title,
.ph-home .module-title {
    margin: 0 0 22px;
    color: var(--ph-wood);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

.ph-home .panel {
    margin: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.ph-home .panel-heading,
.ph-home .panel-body {
    padding: 0;
    background: transparent;
    border: 0;
}

.ph-home .panel-heading {
    margin: 0 0 22px;
    color: var(--ph-wood);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

.ph-home-intro-card {
    max-width: 860px;
    padding: 34px 42px;
    margin: 0 auto;
    color: var(--ph-wood);
    text-align: center;
    background: #fffdf9;
    border: 1px solid var(--ph-line);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(43, 29, 20, 0.08);
}

.ph-home-intro-card h2 {
    margin: 0 0 16px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 30px;
    font-weight: 700;
}

.ph-home-intro-card h2 a,
.ph-home-story-card h3 a {
    color: inherit;
}

.ph-home-intro-card p {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.8;
}

.ph-home-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ph-gold);
    font-weight: 700;
}

.ph-home-more:hover,
.ph-home-more:focus {
    color: #9e7c12;
    text-decoration: none;
}

.ph-home-categories .panel-body {
    max-width: 980px;
    margin: 0 auto;
}

.ph-home-categories .metismenu,
.ph-home-categories .sidebar,
.ph-home-categories .sidebar-nav,
.ph-home-categories .sidebar-nav > ul {
    float: none;
    width: 100%;
    margin: 0;
    background: transparent;
    border: 0;
}

.ph-home-categories .sidebar-nav > ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ph-home-categories .sidebar-nav > ul > li {
    position: relative;
    min-width: 0;
    background: #fffdf9;
    border: 1px solid var(--ph-line);
    border-radius: 10px;
}

.ph-home-categories .sidebar-nav > ul > li > a {
    display: block;
    padding: 14px 34px 14px 16px;
    color: var(--ph-wood);
    font-weight: 700;
}

.ph-home-categories .sidebar-nav > ul > li > a:hover,
.ph-home-categories .sidebar-nav > ul > li > a:focus {
    color: #fff;
    text-decoration: none;
    background: var(--ph-wood);
    border-radius: 9px;
}

.ph-home-categories .sidebar-nav .arrow {
    position: absolute;
    top: 16px;
    right: 14px;
    color: var(--ph-gold);
}

.ph-home-categories .sidebar-nav ul ul {
    position: absolute;
    z-index: 5;
    top: calc(100% + 4px);
    left: 0;
    display: none;
    min-width: 100%;
    padding: 6px;
    list-style: none;
    background: #fffdf9;
    border: 1px solid var(--ph-line);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(43, 29, 20, 0.12);
}

.ph-home-categories .sidebar-nav > ul > li:hover > ul,
.ph-home-categories .sidebar-nav > ul > li:focus-within > ul {
    display: block;
}

.ph-home-categories .sidebar-nav ul ul a {
    display: block;
    padding: 7px 9px;
    color: var(--ph-wood);
}

.ph-home .product_center_wrap .items {
    padding: 10px;
    background: #fffdf9;
    border: 1px solid var(--ph-line);
    border-radius: 12px;
    box-shadow: 0 5px 16px rgba(43, 29, 20, 0.07);
}

.ph-home .product_center_wrap .items .img,
.ph-home .product_center_wrap .items .thumbnail {
    display: block;
    width: 100%;
}

.ph-home .product_center_wrap .items .thumbnail {
    height: 230px;
    margin: 0;
    object-fit: cover;
    border: 0;
    border-radius: 8px;
}

.ph-home .product_center_wrap .items p {
    min-height: 40px;
    margin: 12px 0 0;
    font-weight: 700;
}

.ph-home .product_center_wrap .items p a {
    color: var(--ph-wood);
}

.ph-home .product_center_wrap .price,
.ph-home .product_center_wrap .money {
    display: block;
    margin-top: 8px;
    color: #8d241d;
    font-weight: 700;
}

.ph-home .product_center_wrap .controls span {
    color: var(--ph-wood);
}

.ph-home-story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    max-width: 1170px;
    margin: 0 auto;
}

.ph-home-story-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fffdf9;
    border: 1px solid var(--ph-line);
    border-radius: 14px;
    box-shadow: 0 7px 20px rgba(43, 29, 20, 0.08);
}

.ph-home-story-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e8ded0;
}

.ph-home-story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.ph-home-story-card:hover .ph-home-story-image img {
    transform: scale(1.04);
}

.ph-home-story-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
}

.ph-home-story-body h3 {
    margin: 0 0 10px;
    color: var(--ph-wood);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
}

.ph-home-story-body p {
    flex: 1;
    margin: 0 0 16px;
    color: #6a574a;
    line-height: 1.65;
}

.ph-home-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ph-home-gallery > .nv-block-banners,
.ph-home-gallery > .nv-block-banners a,
.ph-home-gallery > .nv-block-banners img {
    display: block;
    width: 100%;
}

.ph-home-gallery > .nv-block-banners {
    overflow: hidden;
    border-radius: 10px;
}

.ph-home-gallery > .nv-block-banners img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .25s ease;
}

.ph-home-gallery > .nv-block-banners:hover img {
    transform: scale(1.04);
}

.ph-home-contact .nv-block-contact,
.ph-home-contact form {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
}

/* Khung nội dung ba cột của trang mẫu. Mọi ô trong khung đều là vị trí block động. */
.ph-home-trust {
    padding: 18px max(15px, calc((100% - 1170px) / 2));
    color: var(--ph-wood);
    background: #f3e6cf;
    border-top: 1px solid rgba(201, 162, 39, 0.2);
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}

.ph-home-trust .panel,
.ph-home-trust .panel-body,
.ph-home-trust .featured-products {
    margin: 0;
    padding: 0;
}

.ph-home-trust .featured-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ph-home-trust .ph-home-page-card {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.ph-trust-items {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    text-align: center;
}

.ph-trust-items > div {
    padding: 4px 10px;
    border-right: 1px solid rgba(74, 50, 32, 0.2);
}

.ph-trust-items > div:last-child {
    border-right: 0;
}

.ph-home-trust .featured-products > .row {
    display: flex;
    min-width: 0;
    margin: 0;
    align-items: center;
}

.ph-home-grid {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 250px;
    gap: 24px;
    max-width: 1170px;
    padding: 38px 0 48px;
    margin: 0 auto;
    align-items: start;
}

.ph-home-sidebar,
.ph-home-center {
    min-width: 0;
}

.ph-home-grid .ph-home-section {
    padding: 0;
    margin: 0 0 24px;
    background: transparent;
}

.ph-home-grid .panel,
.ph-home-page-card,
.ph-home-intro-card {
    padding: 22px;
    background: #fffdf9;
    border: 1px solid var(--ph-line);
    border-radius: 14px;
    box-shadow: 0 7px 20px rgba(43, 29, 20, 0.07);
}

.ph-home-grid .panel-heading {
    padding: 0 0 15px;
    margin: 0 0 16px;
    font-size: 21px;
    text-align: left;
    border-bottom: 1px solid var(--ph-line);
}

.ph-home-grid .panel-body {
    padding: 0;
}

.ph-home-center .ph-home-section > .panel,
.ph-home-center .ph-home-page-card,
.ph-home-center .ph-home-intro-card {
    padding: 28px;
}

.ph-home-center .panel-heading,
.ph-home-center .ph-home-page-card > h2,
.ph-home-center .ph-home-intro-card > h2 {
    font-size: 28px;
    text-align: center;
}

.ph-home-grid .ph-home-intro-card {
    max-width: none;
}

.ph-home-page-card > h2 {
    margin: 0 0 18px;
    color: var(--ph-wood);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
}

.ph-home-page-card > h2 a {
    color: inherit;
}

.ph-home-page-content {
    color: #5f4b3d;
    font-size: 15px;
    line-height: 1.75;
}

.ph-home-page-content > :last-child {
    margin-bottom: 0;
}

.ph-home-page-content img {
    max-width: 100%;
    height: auto !important;
}

.ph-home-catalog-list,
.ph-featured-links {
    padding: 0;
    margin: 0;
    list-style: none;
}

.ph-home-catalog-list li,
.ph-featured-links li {
    border-bottom: 1px solid var(--ph-line);
}

.ph-home-catalog-list li:last-child,
.ph-featured-links li:last-child {
    border-bottom: 0;
}

.ph-home-catalog-list a,
.ph-featured-links a {
    display: block;
    padding: 10px 2px;
    color: var(--ph-wood);
    font-weight: 700;
}

.ph-home-catalog-list small {
    display: block;
    padding: 0 2px 10px;
    color: #7c6758;
    line-height: 1.45;
}

.ph-workshop-info h4 {
    margin: 0 0 7px;
    color: var(--ph-wood);
    font-size: 16px;
}

.ph-workshop-info hr {
    margin: 15px 0;
    border-color: var(--ph-line);
}

.ph-why-list > div {
    padding: 12px 0;
    border-bottom: 1px solid var(--ph-line);
}

.ph-why-list > div:last-child {
    border-bottom: 0;
}

.ph-why-list strong {
    color: var(--ph-wood);
}

.ph-why-list p {
    margin: 5px 0 0;
    font-size: 13px;
    line-height: 1.55;
}

.ph-process-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.ph-process-steps > div {
    padding: 18px 14px;
    background: #fbf5ea;
    border-radius: 10px;
}

.ph-process-steps span {
    color: var(--ph-gold);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 25px;
    font-weight: 700;
}

.ph-process-steps h4 {
    margin: 8px 0;
    color: var(--ph-wood);
    font-size: 16px;
}

.ph-process-steps p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
}

.ph-legal {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: 20px;
    overflow: hidden;
    background: var(--ph-line);
    border: 1px solid var(--ph-line);
    border-radius: 10px;
}

.ph-legal > div {
    padding: 13px 15px;
    background: #fffdf9;
}

.ph-legal span,
.ph-legal strong {
    display: block;
}

.ph-legal span {
    margin-bottom: 4px;
    color: #8a7566;
    font-size: 12px;
}

.ph-legal strong {
    color: var(--ph-wood);
    font-size: 14px;
}

.ph-home-center .ph-home-story-grid {
    grid-template-columns: 1fr;
}

.ph-home-center .ph-home-story-card {
    display: grid;
    grid-template-columns: minmax(190px, 38%) minmax(0, 1fr);
}

.ph-home-center .ph-home-story-image {
    height: 100%;
    min-height: 220px;
    aspect-ratio: auto;
}

.ph-home-grid .ph-home-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ph-home-sidebar .featured-products > .row {
    margin: 0 0 16px;
}

.ph-home-sidebar .featured-products > .row:last-child {
    margin-bottom: 0;
}

.ph-home-sidebar .featured-products .h3 {
    margin-top: 0;
    color: var(--ph-wood);
    font-size: 17px;
    font-weight: 700;
}

.ph-home-sidebar .featured-products [class*="col-"] {
    float: none;
    width: 100%;
    padding: 0;
}

.ph-home-sidebar .featured-products img {
    width: 100%;
    height: auto;
    margin-bottom: 9px;
}

.ph-home-sidebar-right .ph-home-contact form {
    font-size: 13px;
}

.ph-home-sidebar-right .ph-home-contact .form-control {
    width: 100%;
}

@media (max-width: 1199.98px) {
    .ph-header-inner {
        padding-right: 185px;
    }

    #menusite.ph-main-nav .navbar-default .navbar-nav > li > a {
        padding-right: 9px;
        padding-left: 9px;
        font-size: 14px;
    }

    #menusite.ph-main-nav .navbar-nav > li:nth-child(4) {
        margin-left: 110px !important;
    }

    .ph-home-grid {
        grid-template-columns: 205px minmax(0, 1fr) 220px;
        gap: 18px;
    }
}

@media (max-width: 991.98px) {
    .ph-header-inner {
        min-height: 66px;
        padding: 0 14px;
        justify-content: space-between;
    }

    .ph-brand {
        position: static;
        order: 1;
        width: 50px;
        height: 50px;
        padding: 3px;
        margin: 0;
        box-shadow: none;
        transform: none;
    }

    .ph-main-nav {
        order: 3;
        width: auto;
    }

    #menusite.ph-main-nav .navbar-header {
        display: block;
    }

    #menusite.ph-main-nav .navbar-toggle {
        display: block;
        float: none;
        padding: 8px 9px;
        margin: 0;
        background: transparent;
        border-color: var(--ph-line);
    }

    #menusite.ph-main-nav .navbar-toggle .icon-bar {
        background: var(--ph-wood);
    }

    #menusite.ph-main-nav .navbar-collapse {
        display: none !important;
        position: absolute;
        top: 58px;
        right: 0;
        width: min(330px, calc(100vw - 28px));
        padding: 8px 0;
        overflow: hidden !important;
        background: #fffdf9;
        border: 1px solid var(--ph-line);
        border-radius: 10px;
        box-shadow: 0 12px 28px rgba(43, 29, 20, 0.14);
    }

    #menusite.ph-main-nav .navbar-collapse.in {
        display: block !important;
    }

    #menusite.ph-main-nav .navbar-nav {
        display: block;
        margin: 0;
    }

    #menusite.ph-main-nav .navbar-nav > li:nth-child(4) {
        margin-left: 0 !important;
    }

    #menusite.ph-main-nav .navbar-default .navbar-nav > li > a {
        padding: 11px 16px;
    }

    #menusite.ph-main-nav .navbar-nav > li > a.home {
        display: none;
    }

    #menusite.ph-main-nav .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin: 0;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none;
    }

    .ph-header-actions {
        position: static;
        order: 2;
        margin-left: auto;
        margin-right: 12px;
    }

    .ph-header-search:focus-within .form-control {
        width: min(150px, 34vw);
    }

    .ph-header-contact .contactList li:first-child {
        padding: 8px 10px;
    }

    .ph-home-intro,
    .ph-home-categories,
    .ph-home-products,
    .ph-home-story,
    .ph-home-gallery,
    .ph-home-contact {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .ph-home-grid {
        grid-template-columns: minmax(0, 1fr);
        padding: 28px 15px 36px;
    }

    .ph-home-center {
        order: 1;
    }

    .ph-home-sidebar-left {
        order: 2;
    }

    .ph-home-sidebar-right {
        order: 3;
    }

    .ph-home-grid .ph-home-section {
        padding: 0;
    }

    .ph-home-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .ph-home-sidebar .ph-home-section {
        margin-bottom: 0;
    }
}

@media (max-width: 575.98px) {
    .ph-header-contact .contactList li:first-child .fa,
    .ph-header-contact .contactList li:first-child a {
        font-size: 0;
    }

    .ph-header-contact .contactList li:first-child .fa {
        display: inline;
        font-size: 14px;
    }

    .ph-header-contact .contactList li:first-child {
        min-width: 36px;
        padding: 9px 11px;
        text-align: center;
    }

    .ph-header-search:focus-within .form-control {
        width: min(120px, 32vw);
    }

    .ph-home .block-title,
    .ph-home .module-title {
        font-size: 24px;
    }

    .ph-home .product_center_wrap .items .thumbnail {
        height: 170px;
    }

    .ph-home-slider .item,
    .ph-home-slider img {
        min-height: 270px;
    }

    .ph-home-slider img {
        height: 68vw;
    }

    .ph-home-slider-caption {
        right: 18px;
        left: 18px;
        max-width: none;
        padding: 17px;
    }

    .ph-home-intro-card {
        padding: 25px 20px;
    }

    .ph-home-intro-card h2 {
        font-size: 25px;
    }

    .ph-home-categories .sidebar-nav > ul,
    .ph-home-story-grid,
    .ph-home-gallery {
        grid-template-columns: 1fr;
    }

    .ph-home-trust .featured-products,
    .ph-trust-items,
    .ph-home-sidebar,
    .ph-home-center .ph-home-story-card,
    .ph-home-grid .ph-home-gallery,
    .ph-process-steps,
    .ph-legal {
        grid-template-columns: 1fr;
    }

    .ph-trust-items > div {
        border-right: 0;
        border-bottom: 1px solid rgba(74, 50, 32, 0.2);
    }

    .ph-trust-items > div:last-child {
        border-bottom: 0;
    }

    .ph-home-center .ph-home-story-image {
        min-height: 190px;
    }

    .ph-home-center .ph-home-section > .panel,
    .ph-home-center .ph-home-page-card,
    .ph-home-center .ph-home-intro-card {
        padding: 22px 18px;
    }
}

/* Footer riêng của trang chủ, nội dung được quản trị bằng block Page. */
.ph-home + .ph-home-layout {
    position: relative;
    width: 100%;
    margin: 0;
    color: #eadfc9;
    background: #2b1d14;
    box-shadow: 0 0 0 100vmax #2b1d14;
    clip-path: inset(0 -100vmax);
}

.ph-home + .ph-home-layout > .ph-home-page-card,
.ph-home + .ph-home-layout .ph-home-page-content {
    width: 100%;
    margin: 0;
}

.ph-home-footer {
    max-width: 1170px;
    padding: 52px 24px 20px;
    margin: 0 auto;
}

.ph-home-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.45fr;
    gap: 40px;
}

.ph-home-footer h4 {
    padding-bottom: 12px;
    margin: 0 0 16px;
    color: #f3df8a;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 20px;
    border-bottom: 1px solid rgba(243, 223, 138, 0.22);
}

.ph-home-footer p,
.ph-home-footer li {
    color: #d8cbb6;
    font-size: 14px;
    line-height: 1.65;
}

.ph-home-footer ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.ph-home-footer li + li {
    margin-top: 9px;
}

.ph-home-footer a {
    color: #eadfc9;
}

.ph-home-footer a:hover,
.ph-home-footer a:focus {
    color: #f3df8a;
}

.ph-home-footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ph-home-footer-logo p {
    margin: 0;
}

.ph-home-footer-logo img {
    width: 58px;
    height: 58px;
    border: 2px solid rgba(243, 223, 138, 0.7);
    border-radius: 50%;
}

.ph-home-footer-logo strong,
.ph-home-footer-logo span {
    display: block;
}

.ph-home-footer-logo strong {
    color: #f3df8a;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 23px;
}

.ph-home-footer-logo span {
    margin-top: 2px;
    color: #c9a227;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.ph-home-footer-bottom {
    padding-top: 20px;
    margin-top: 30px;
    color: #bcae99;
    font-size: 13px;
    text-align: center;
    border-top: 1px solid rgba(243, 223, 138, 0.18);
}

.section-body:has(.ph-home-layout) + .section-footer-top {
    display: none;
}

.section-body:has(.ph-home-layout) + .section-footer-top + .section-footer-bottom {
    min-height: 38px;
    background: #1f140e;
    border-top: 1px solid rgba(243, 223, 138, 0.12);
}

@media (max-width: 991.98px) {
    .ph-home-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
    }
}

@media (max-width: 575.98px) {
    .ph-home-footer {
        padding: 38px 18px 18px;
    }

    .ph-home-footer-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}
