/*
 Theme Name:   Mê Coffee & Tea — Flatsome Child
 Theme URI:    https://phela.vn
 Description:  Pixel-perfect Mê Coffee & Tea homepage. Flatsome handles header,
               footer, WooCommerce. Homepage content is custom PHP/HTML
               in front-page.php with hand-written CSS below.
 Author:       Mê Coffee & Tea Dev
 Template:     flatsome
 Version:      2.0.0
 Text Domain:  phela-child
*/

/* ====================== FONT FACES ====================== */
@font-face { font-family: 'K2D'; src: url('assets/fonts/K2D-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'K2D'; src: url('assets/fonts/K2D-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'K2D'; src: url('assets/fonts/K2D-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'K2D'; src: url('assets/fonts/K2D-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'K2D'; src: url('assets/fonts/K2D-ExtraBold.ttf') format('truetype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'K2D'; src: url('assets/fonts/K2D-BoldItalic.ttf') format('truetype'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'K2D'; src: url('assets/fonts/K2D-Thin.ttf') format('truetype'); font-weight: 100; font-style: normal; font-display: swap; }

/* ====================== TOKENS ====================== */
:root {
    --pl-primary: #be7352;
    --pl-secondary: #ddc3af;
    --pl-text: #222;
    --pl-text-light: #8c8c8c;
    --pl-font: 'K2D', sans-serif;
}

/* ====================== GLOBAL ====================== */
body { font-family: var(--pl-font) !important; color: var(--pl-text); background: #fff; }
h1,h2,h3,h4,h5,h6 { font-family: var(--pl-font) !important; font-weight: 700; color: var(--pl-text); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pl-text); text-decoration: none; transition: all 0.3s; }
a:hover { color: var(--pl-primary); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ====================== SECTION TITLE ====================== */
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 {
    font-size: 34px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.05em; position: relative; display: inline-block;
    padding-bottom: 18px;
}
.section-title h2::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%); width: 80px; height: 3px;
    background: var(--pl-primary);
}

/* ====================== BUTTONS ====================== */
.btn-phela {
    display: inline-block; background: var(--pl-secondary); color: #fff;
    padding: 15px 30px; font-size: 14px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em; transition: all 0.3s;
}
.btn-phela:hover { background: var(--pl-primary); color: #fff; }
.btn-phela.btn-orange { background: var(--pl-primary); }
.btn-phela.btn-orange:hover { background: #a85f43; }
.btn-center { text-align: center; margin-top: 50px; }

/* ====================== HERO SLIDER ====================== */
.slider-homepage { position: relative; overflow: hidden; }
.slider-pc { margin: 0; }
.slider-pc .item { height: 860px; width: 100%; overflow: hidden; position: relative; }
.slider-pc .item img { width: 100%; height: 100%; object-fit: cover; }
.slider-pc .item::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 60px; background: rgba(0,0,0,0.5);
    pointer-events: none; z-index: 1;
}

.slider-pc .slick-prev,
.slider-pc .slick-next {
    position: absolute; top: 50%; z-index: 10;
    width: 40px; height: 40px; border: none; background: rgba(0,0,0,0.3);
    color: #fff; font-size: 0; cursor: pointer; border-radius: 50%;
    transform: translateY(-50%);
}
.slider-pc .slick-prev { left: 25px; }
.slider-pc .slick-next { right: 25px; }
.slider-pc .slick-prev::before,
.slider-pc .slick-next::before { font-size: 20px; color: #fff; opacity: 1; }

.slider-pc .slick-dots {
    position: absolute; bottom: 30px; width: 100%;
    text-align: center; list-style: none; padding: 0;
}
.slider-pc .slick-dots li { display: inline-block; margin: 0 5px; }
.slider-pc .slick-dots li button {
    width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff;
    background: rgba(255,255,255,0.4); font-size: 0; cursor: pointer; padding: 0;
}
.slider-pc .slick-dots li.slick-active button { background: var(--pl-primary); border-color: var(--pl-primary); }
.slider-pc .slick-dots { display: none !important; }

/* ====================== BRAND STORY ====================== */
.section-brand { padding: 80px 0; background: #fff; }
.brand-content {
    display: flex; align-items: center; gap: 40px;
    justify-content: center;
}
.brand-content .brand-text { flex: 1; }
.brand-content .brand-text:first-child { text-align: right; }
.brand-content .brand-text:last-child { text-align: left; }
.brand-content .brand-image { flex: 0 0 400px; }
.brand-content .brand-image img { border-radius: 4px; }
.brand-content h3 {
    font-size: 24px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.04em; margin-bottom: 20px;
}
.brand-content p {
    color: #555; font-size: 16px; line-height: 2;
}

/* ====================== PRODUCTS ====================== */
.section-products { padding: 80px 0; background: #fff; }
.products-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.product-card { text-align: center; }
.product-card a { display: block; color: var(--pl-text); }
.product-card-img { overflow: hidden; margin-bottom: 16px; }
.product-card-img img {
    width: 100%; aspect-ratio: 1/1; object-fit: cover;
    transition: transform 0.4s;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card h2 {
    font-size: 14px; font-weight: 400; text-transform: uppercase;
    letter-spacing: 0.02em; margin: 0 0 8px; line-height: 1.4;
}
.product-price { color: var(--pl-primary); font-weight: 700; font-size: 16px; margin-bottom: 12px; }
a.pl-btn-detail,
.product-card a.pl-btn-detail {
    display: inline-block !important;
    background: var(--pl-secondary) !important;
    color: #fff !important;
    padding: 5px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    transition: all 0.3s !important;
    border: none !important;
    border-radius: 0 !important;
    line-height: 1.4 !important;
    margin-top: 6px !important;
}
a.pl-btn-detail:hover,
.product-card a.pl-btn-detail:hover {
    background: var(--pl-primary) !important;
    color: #fff !important;
}

/* ====================== NEWS ====================== */
.section-news { padding: 80px 0; background: #f9f9f9; }

.news-layout { display: flex; flex-direction: column; gap: 30px; }

/* Big card (top, full width) */
.news-big { overflow: hidden; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.news-big-img { position: relative; display: block; overflow: hidden; }
.news-big-img img { width: 100%; aspect-ratio: 16/8; object-fit: cover; transition: transform 0.4s; }
.news-big:hover .news-big-img img { transform: scale(1.05); }
.news-big-body { padding: 24px; }
.news-big-body .news-title { font-size: 22px; font-weight: 700; line-height: 1.4; display: block; color: var(--pl-text); margin-bottom: 12px; }
.news-big-body .news-title:hover { color: var(--pl-primary); }
.news-big-body p { font-size: 15px; color: var(--pl-text-light); line-height: 1.8; margin-bottom: 16px; }

/* 3 small cards (below, horizontal row) */
.news-small-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-small { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,0.06); overflow: hidden; }
.news-small-img { position: relative; display: block; overflow: hidden; }
.news-small-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform 0.4s; }
.news-small:hover .news-small-img img { transform: scale(1.05); }
.news-small-body { padding: 16px; }
.news-small-body .news-title { font-size: 14px; font-weight: 700; line-height: 1.4; display: block; color: var(--pl-text); margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-small-body .news-title:hover { color: var(--pl-primary); }
.news-small-body p { font-size: 12px; color: var(--pl-text-light); line-height: 1.6; margin-bottom: 10px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Shared */
.news-badge {
    position: absolute; bottom: 12px; left: 12px;
    display: flex; gap: 6px; flex-wrap: wrap;
}
.news-badge span {
    background: #20b2aa; color: #fff; padding: 4px 12px;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.04em; border-radius: 3px;
}
.btn-readmore {
    display: inline-block; border: 1px solid var(--pl-text); color: var(--pl-text);
    padding: 6px 16px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em; transition: all 0.3s;
    width: fit-content;
}
.btn-readmore:hover { background: var(--pl-text); color: #fff; }

/* ====================== STORES ====================== */
.section-stores { padding: 80px 0; background: #fff; }
.store-featured {
    display: flex; align-items: center; gap: 40px;
    background: #fff; padding: 40px; margin-bottom: 60px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}
.store-featured-img { flex: 0 0 48%; overflow: hidden; position: relative; }
.store-featured-img img { width: 100%; height: 300px; object-fit: cover; }
.store-featured-img::before {
    position: absolute; top: 0; left: -75%; display: block; content: '';
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 100%);
    transform: skewX(-25deg); transition: 0.7s; z-index: 2;
}
.store-featured:hover .store-featured-img::before { left: 125%; }
.store-featured-info { flex: 1; }
.store-featured-info h3 {
    font-size: 20px; font-weight: 800; text-transform: uppercase;
    margin-bottom: 16px; line-height: 1.4;
}
.store-featured-info p { font-size: 14px; line-height: 1.8; color: #555; }

.store-carousel { margin-bottom: 40px; }
.store-carousel .slick-slide { padding: 0 20px; }
.store-carousel .slick-list { margin: 0 -20px; }
.store-carousel .slick-prev,
.store-carousel .slick-next {
    width: 40px; height: 40px; z-index: 10;
    background: rgba(0,0,0,0.4); border-radius: 50%;
}
.store-carousel .slick-prev { left: -15px; }
.store-carousel .slick-next { right: -15px; }
.store-carousel .slick-prev::before,
.store-carousel .slick-next::before { font-size: 18px; color: #fff; opacity: 1; }

.store-item { overflow: hidden; }
.store-item-img { overflow: hidden; margin-bottom: 12px; position: relative; }
.store-item-img img {
    width: 100%; aspect-ratio: 3/2; object-fit: cover;
    transition: transform 0.4s;
}
.store-item:hover .store-item-img img { transform: scale(1.05); }

/* Shine/glare hover effect */
.store-item-img::before {
    position: absolute; top: 0; left: -75%; display: block; content: '';
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 100%);
    transform: skewX(-25deg); transition: 0.7s; z-index: 2;
}
.store-item:hover .store-item-img::before { left: 125%; }

/* Text overlay on store images */
.store-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px 14px 14px; z-index: 3;
}
.store-addr { font-size: 18px; font-weight: 700; line-height: 1.4; margin: 0 0 8px; color: #fff; }
.store-phone { font-size: 15px; color: rgba(255,255,255,0.85); margin: 0; }

/* ====================== HEADER (custom, matches phela.vn) ====================== */
header.header-pc,
.header-pc {
    background: #000 !important; position: sticky !important; top: 0 !important;
    z-index: 9999 !important; border: none !important; box-shadow: none !important;
    padding: 0 !important; margin: 0 !important;
}
.header-pc .header-top { padding: 12px 0; }
.header-pc .header-row {
    display: flex !important; align-items: center !important;
    justify-content: flex-start !important; gap: 0;
}
.header-pc .header-menu { margin-left: auto; }
.header-pc .header-left { display: none; }
.header-pc .header-logo { flex: 0 0 auto; }
.header-pc .header-logo img {
    height: 50px !important; width: auto !important;
    border-radius: 6px; display: block;
}

.header-pc .header-menu ul.menu-pc,
.header-pc ul.menu-pc {
    display: flex !important; align-items: center !important; gap: 28px;
    list-style: none !important; margin: 0 !important; padding: 0 !important;
    flex-direction: row !important; flex-wrap: nowrap !important;
}
.header-pc ul.menu-pc > li { position: relative; list-style: none !important; }
.header-pc ul.menu-pc > li > a {
    color: #fff !important; font-size: 12px !important; font-weight: 700 !important;
    text-transform: uppercase !important; letter-spacing: 0.06em;
    padding: 8px 0 !important; display: block; white-space: nowrap;
    background: none !important; border: none !important;
}
.header-pc ul.menu-pc > li > a:hover { color: var(--pl-secondary) !important; }

.header-pc ul.menu-pc .sub-menu {
    position: absolute !important; top: 100% !important; left: 0 !important;
    min-width: 250px; background: #000 !important; list-style: none !important;
    padding: 10px !important; margin: 0 !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3); display: none !important; z-index: 100;
}
.header-pc ul.menu-pc > li:hover > .sub-menu { display: block !important; }
.header-pc ul.menu-pc .sub-menu li { list-style: none !important; }
.header-pc ul.menu-pc .sub-menu li a {
    display: block !important; padding: 8px 12px !important; color: #fff !important;
    font-size: 12px !important; font-weight: 600 !important; text-transform: uppercase;
    background: none !important;
}
.header-pc ul.menu-pc .sub-menu li a:hover { color: var(--pl-secondary) !important; background: #111 !important; }

.header-pc .header-right { display: flex !important; align-items: center !important; gap: 18px; }
.header-pc .header-icon { display: inline-flex !important; align-items: center; position: relative; }
.header-pc .header-icon img { width: 22px !important; height: 22px !important; filter: brightness(0) invert(1); }
.header-pc .cart-count {
    position: absolute; top: -6px; right: -10px;
    background: var(--pl-primary); color: #fff; font-size: 10px;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}

/* Hide Flatsome's own header completely — we use our custom one */
#header.header,
.header-wrapper,
#masthead,
.header-bg-container,
.header-bg-color { display: none !important; }

/* Nuclear override — ensure header-pc is ALWAYS black */
body header.header-pc,
body .header-pc,
html header.header-pc {
    background-color: #000000 !important;
    background-image: none !important;
    background: #000000 !important;
}

/* Hamburger */
.humberger-menu { cursor: pointer; display: flex; flex-direction: column; gap: 5px; }
.humberger-menu span { display: block; width: 22px; height: 2px; background: #fff; transition: 0.3s; }

/* ====================== MOBILE MENU ====================== */
.mobile-menu-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 10000; }
.mobile-menu-overlay.active { display: block; }
.mobile-menu {
    position: fixed; top: 0; left: -300px; width: 280px; height: 100%;
    background: #000; z-index: 10001; transition: left 0.3s; padding: 20px;
    overflow-y: auto;
}
.mobile-menu.active { left: 0; }
.mobile-menu-close { color: #fff; font-size: 28px; text-align: right; cursor: pointer; margin-bottom: 20px; }
.menu-mobile { list-style: none; padding: 0; margin: 0; }
.menu-mobile li { border-bottom: 1px solid #222; }
.menu-mobile li a { display: block; padding: 12px 0; color: #fff; font-size: 14px; font-weight: 600; text-transform: uppercase; }
.menu-mobile li a:hover { color: var(--pl-secondary); }
.menu-mobile .sub-menu { list-style: none; padding-left: 16px; }
.menu-mobile .sub-menu li { border: 0; }
.menu-mobile .sub-menu li a { font-size: 13px; padding: 8px 0; }

/* ====================== FOOTER (match phela.vn 100%) ====================== */
.footer-pc { background: #000; color: #fff; }
.footer-pc .container { max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.footer-row { display: flex; flex-wrap: wrap; padding: 35px 0 25px 0; margin: 0 -15px; }
.footer-col { padding: 0 15px; box-sizing: border-box; }
.footer-logo-col { flex: 0 0 25%; max-width: 25%; }
.footer-about { flex: 0 0 16.666%; max-width: 16.666%; }
.footer-info { flex: 0 0 33.333%; max-width: 33.333%; }
.footer-newsletter-col { flex: 0 0 25%; max-width: 25%; }
.footer-logo-img { max-width: 150px; height: auto; }

.footer-pc h5 { text-transform: uppercase; font-weight: 600; font-size: 15px; color: #fff; margin: 0 0 15px; letter-spacing: 0.02em; }
.footer-pc li { list-style: none; }
.footer-pc ul { list-style: none; padding: 0; margin: 0; }

.footer-default .list-cate li a {
    list-style: none; color: #fff; padding: 5px 5px 5px 20px;
    display: block; position: relative; font-size: 14px; text-decoration: none;
}
.footer-default .list-cate li a:before {
    position: absolute; width: 5px; height: 5px;
    border-top: 1px solid #fff; border-right: 1px solid #fff;
    transform: rotateZ(45deg); left: 0; top: 13px;
    content: ''; transition: 0.5s;
}
.footer-default .list-cate li a:hover { text-decoration: none; }
.footer-default .list-cate li a:hover:before { left: 5px; }

.footer-info p { font-size: 14px; line-height: 1.7; color: #fff; margin: 0 0 10px; }
.footer-info a { color: #fff; text-decoration: none; }

.footer-social { margin-bottom: 15px; }
.footer-social a { display: inline-block; margin: 0 10px 0 0; }
.footer-social a img { width: 35px; height: 35px; }
.footer-newsletter-text { font-size: 14px; color: #fff; line-height: 1.6; margin-bottom: 15px; }

/* Match phela.vn exactly — let overflow:hidden on wrapper clip the pill */
.form-footer {
    background: #fff;
    overflow: hidden;
    border-radius: 1000px;
    height: 45px;
    position: relative;
    border: 1px solid #fff;
    max-width: 100%;
}
.form-footer p { height: 100%; margin: 0; }
.form-footer p:nth-child(2) {
    position: absolute; right: 0; top: 0; height: 100%;
}
.form-footer p:nth-child(2) input {
    background: #000;
    color: #fff;
    cursor: pointer;
}
.form-footer input {
    width: 100%;
    height: 100%;
    border: none;
    padding: 0 15px;
    font-size: 14px;
    color: #333;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
    background: transparent;
    margin: 0;
}
.form-footer input[type="email"]::placeholder { color: #888; }

.copyrightter {
    text-align: center; padding: 15px 0; font-size: 13px;
    color: #fff; border-top: 1px solid #ffffff6b;
}
.copyrightter a { color: #fff; text-decoration: none; }
.copyrightter a:hover { text-decoration: none; color: #fff; }

/* ====================== FLOATING BUTTONS ====================== */
.floating-buttons { position: fixed; bottom: 20px; right: 20px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.float-btn { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.float-btn img { width: 24px; height: 24px; }
.phone-ring { background: #25D366; animation: phoneRing 1.5s infinite; }
.back-to-top { background: #fff; }
@keyframes phoneRing { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }

/* ====================== PRODUCT PAGE ====================== */
.sp-page { padding: 0 0 80px; background: #fff; }
.sp-page > .container { padding-top: 0 !important; }
/* Kill ALL Flatsome page-header/title/wrapper spacing on sản phẩm template
   so sidebar starts right under sticky header — no jump on scroll. */
body.page-template-page-san-pham .page-title,
body.page-template-page-san-pham .page-title-inner,
body.page-template-page-san-pham .entry-header,
body.page-template-page-san-pham #content > header,
body.page-template-page-san-pham .page-wrapper > header,
body.page-template-page-san-pham .page-header-wrapper { display: none !important; }
body.page-template-page-san-pham #content,
body.page-template-page-san-pham .page-wrapper,
body.page-template-page-san-pham .entry-content,
body.page-template-page-san-pham article.page,
body.page-template-page-san-pham main {
    padding-top: 0 !important; margin-top: 0 !important;
}
body.page-template-page-san-pham #wrapper { padding-top: 0 !important; }

/* Sidebar + Content Layout */
.sp-layout {
    display: flex; gap: 0; align-items: flex-start;
}

/* Sidebar Left */
.sp-sidebar {
    flex: 0 0 220px; position: sticky; top: 60px;
    border-right: 1px solid #e5e5e5; padding-right: 30px; margin-right: 30px;
    max-height: calc(100vh - 70px); overflow-y: auto; overflow-x: hidden;
}
.sp-cat-list {
    list-style: none; padding: 0; margin: 0;
}
.sp-cat-list li { border-bottom: 1px solid #eee; }
.sp-cat-list li a {
    display: block; padding: 12px 8px; font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.03em; color: var(--pl-text);
    transition: all 0.3s;
}
.sp-cat-list li a:hover,
.sp-cat-list li.active a {
    color: var(--pl-primary); font-weight: 800;
}
.sp-cat-list li a {
    display: flex !important; justify-content: space-between; align-items: center;
}
.sp-cat-count {
    color: var(--pl-primary); font-weight: 700; font-size: 13px;
    margin-left: 8px;
}
.sp-cat-list li.sp-cat-all { border-bottom: 2px solid #ddd; }
.sp-cat-list li.sp-cat-all a { font-weight: 800; }

/* Gap giữa các block category sản phẩm */
.sp-category-section { margin-bottom: 60px; }
.sp-category-section:last-child { margin-bottom: 0; }
.sp-cat-list li.active {
    background: rgba(190,115,82,0.05);
}

/* Content Right */
.sp-content { flex: 1; min-width: 0; }

.sp-cat-title {
    font-size: 28px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.04em; margin-bottom: 30px; padding-bottom: 16px;
    border-bottom: 2px solid #e5e5e5; width: 100%;
}

/* Product Grid — 3 columns */
.sp-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.sp-item {
    background: #fff; overflow: hidden;
    border: 1px solid #eee; border-radius: 4px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    will-change: box-shadow;
}
.sp-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); border-color: var(--pl-primary); }
.sp-item-img { overflow: hidden; position: relative; background: #f5f5f5; }
.sp-item-img img {
    width: 100%; height: auto; display: block;
    transition: transform 0.4s ease;
    backface-visibility: hidden;
    transform: translateZ(0);
}
.sp-item:hover .sp-item-img img { transform: translateZ(0) scale(1.05); }

.sp-item-img a { display: block; background: #f5f5f5; }
.sp-item-content { padding: 12px 14px; }
.sp-item-title a {
    font-size: 14px; font-weight: 500; color: var(--pl-text);
    text-transform: uppercase; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sp-item-title a:hover { color: var(--pl-primary); }
/* HOT badge ribbon style */
.badge-hot {
    position: absolute; top: 10px; left: -6px; z-index: 5;
    background: #e53935; color: #fff;
    padding: 6px 14px 6px 10px; font-size: 12px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.05em;
    line-height: 1;
}
.badge-hot::before {
    content: ''; position: absolute; left: 0; bottom: -6px;
    border-top: 6px solid #b71c1c; border-left: 6px solid transparent;
}
.badge-hot::after {
    content: ''; position: absolute; right: -10px; top: 0;
    border-top: 14px solid transparent; border-bottom: 14px solid transparent;
    border-left: 10px solid #e53935;
}

.ch-arrow.rotated { transform: rotate(180deg); }
.ch-toggle:hover span:first-child { color: #fff !important; }
.sp-item-name-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sp-item-name { font-size: 14px; font-weight: 500; color: var(--pl-text); text-transform: uppercase; line-height: 1.4; }
.sp-item-name:hover { color: var(--pl-primary); }
.sp-item-eng { font-size: 11px; color: #999; font-style: italic; margin: 2px 0 0; }
.sp-item-price {
    font-size: 13px; font-weight: 700; color: var(--pl-primary);
    border: 1px solid var(--pl-primary); border-radius: 4px;
    padding: 4px 10px; white-space: nowrap; flex-shrink: 0;
}

/* ====================== ABOUT PAGE (Về chúng tôi) ====================== */

/* Hero */
.about-hero { padding: 60px 0; background: #000; color: #fff; }
.about-hero-row { display: flex; gap: 50px; align-items: center; }
.about-hero-text { flex: 1; }
.about-hero-text h2 { font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 20px; font-style: italic; }
.about-hero-text p { font-size: 15px; line-height: 2; color: #ccc; margin-bottom: 16px; }
.about-hero-img { flex: 0 0 280px; }
.about-hero-img img { width: 100%; height: auto; max-width: 280px; }

/* Vision/Mission */
.about-vision { padding: 60px 0; background: #fff; border-bottom: 1px solid #eee; }
.about-vision-row { display: flex; justify-content: center; gap: 80px; text-align: center; }
.about-vision-item { max-width: 350px; }
.about-vision-item img { width: 60px; height: auto; margin: 0 auto 16px; }
.about-vision-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.about-vision-item p { font-size: 14px; line-height: 1.8; color: #555; }

/* Section title */
.about-section-title {
    font-size: 28px; font-weight: 800; text-align: center;
    margin-bottom: 50px; padding-bottom: 16px; position: relative;
    color: var(--pl-text); font-style: italic;
}
.about-section-title::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%); width: 80px; height: 3px;
    background: var(--pl-primary);
}

/* Core Values - Zigzag with center vertical line */
.about-core { padding: 80px 0; background: #fff; }
.about-core-list {
    position: relative; padding: 60px 0;
}
/* Vertical line in center */
.about-core-list::before {
    content: ''; position: absolute; width: 2px; height: 100%;
    background: #ddc3af; left: 50%; top: 0;
    transform: translateX(-50%);
}
/* Top circle */
.about-core-list::after {
    content: ''; position: absolute; width: 25px; height: 25px;
    background: var(--pl-primary); border-radius: 50%;
    top: -12px; left: 50%; transform: translateX(-50%);
}

.about-core-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 0; position: relative; width: 100%;
}
/* Horizontal connector line */
.about-core-item::before {
    content: ''; position: absolute; width: 100px; height: 1px;
    background: #ddc3af; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
}
/* Center circle dot */
.about-core-item::after {
    content: ''; position: absolute; width: 25px; height: 25px;
    border-radius: 50%; background: #e5e5e5; border: 5px solid var(--pl-primary);
    left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
}

.about-core-img {
    width: 40%; position: relative; background: #fff;
    padding: 30px; box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.about-core-img img { width: 100%; height: auto; display: block; }
.about-core-text { width: 40%; }
.about-core-text h3 { font-size: 26px; font-weight: 800; margin-bottom: 16px; }
.about-core-text p { font-size: 15px; line-height: 2; color: #555; }

/* Zigzag: odd items flip order */
.about-core-item:nth-child(odd) .about-core-text { order: 1; text-align: right; }
.about-core-item:nth-child(odd) .about-core-img { order: 2; }
.about-core-item:nth-child(even) .about-core-img { order: 1; }
.about-core-item:nth-child(even) .about-core-text { order: 2; text-align: left; }

/* Stats */
.about-stats { padding: 80px 0; background: #f9f9f9; }
.about-stats-row { display: flex; justify-content: center; gap: 60px; text-align: center; align-items: flex-start; }
.about-stat-item { max-width: 320px; flex: 1; }
.about-stat-item img { height: 64px; width: auto; margin: 0 auto 16px; display: block; }
.about-stat-item h3 { font-size: 36px; font-weight: 800; color: var(--pl-text); margin-bottom: 10px; }
.about-stat-item p { font-size: 14px; line-height: 1.7; color: #555; }

/* Timeline — Slick slider zigzag */
.tl-wrapper { position: relative; }

.tl-slide {
    display: flex !important; flex-direction: column; align-items: center;
    text-align: center; padding: 0 16px; height: 340px;
    position: relative;
}
.tl-top-content, .tl-bottom-content {
    height: 50%; display: flex; flex-direction: column;
    justify-content: flex-end; align-items: center;
    padding: 10px 0;
}
.tl-bottom-content { justify-content: flex-start; }

.tl-slide h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--pl-text); }
.tl-slide p { font-size: 13px; line-height: 1.6; color: #555; margin: 0 0 10px; max-width: 240px; }

.tl-date {
    display: inline-block; padding: 6px 18px;
    background: var(--pl-primary); color: #fff; font-size: 13px;
    font-weight: 700; border-radius: 4px; margin: 0;
}

.tl-dot {
    width: 16px; height: 16px; border-radius: 50%;
    border: 3px solid var(--pl-primary); background: #fff;
    z-index: 2; flex-shrink: 0;
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

/* Vertical connector line from dot to date */
.tl-top-content { padding-bottom: 20px; position: relative; }
.tl-top-content:not(:empty)::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    width: 2px; height: 20px; background: var(--pl-primary);
    transform: translateX(-50%);
}
.tl-bottom-content { padding-top: 20px; position: relative; }
.tl-bottom-content:not(:empty)::before {
    content: ''; position: absolute; top: 0; left: 50%;
    width: 2px; height: 20px; background: var(--pl-primary);
    transform: translateX(-50%);
}

/* Horizontal line through all dots */
.tl-slider .slick-list { position: relative; }
.tl-slider .slick-list::after {
    content: ''; position: absolute;
    left: 0; right: 0; top: 50%; height: 2px;
    background: #ccc; z-index: 1;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Slick arrows */
.tl-slider .slick-prev,
.tl-slider .slick-next {
    width: 44px !important; height: 44px !important; border-radius: 50% !important;
    background: var(--pl-primary) !important; z-index: 5 !important;
}
.tl-slider .slick-prev { left: -50px !important; }
.tl-slider .slick-next { right: -50px !important; }
.tl-slider .slick-prev::before,
.tl-slider .slick-next::before { font-size: 20px !important; color: #fff !important; opacity: 1 !important; }
.tl-slider .slick-prev:hover,
.tl-slider .slick-next:hover { background: #a85f43 !important; }

/* ====================== PRODUCT DETAIL PAGE ====================== */

/* Breadcrumb */
.pd-breadcrumb { padding: 16px 0; border-bottom: 1px solid #eee; }
.pd-breadcrumb ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; align-items: center; gap: 8px; font-size: 13px;
}
.pd-breadcrumb li a { color: var(--pl-primary); }
.pd-breadcrumb li a:hover { color: var(--pl-text); }
.pd-breadcrumb li + li::before { content: '>'; color: #999; margin-right: 4px; }
.pd-breadcrumb li.current { color: var(--pl-text); font-weight: 600; }

/* Product Row: Image Left + Info Right */
.pd-detail { padding: 50px 0; }
.pd-row { display: flex; gap: 50px; align-items: flex-start; }
.pd-image { flex: 0 0 42%; }
.pd-image img { width: 100%; height: auto; display: block; }
.pd-info { flex: 1; padding-top: 10px; }
.pd-title {
    font-size: 32px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.03em; color: var(--pl-text); margin: 0;
    line-height: 1.3;
}

/* Section Title with orange underline */
.pd-section-title {
    font-size: 26px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.04em; text-align: center; color: var(--pl-text);
    position: relative; display: inline-block; width: 100%;
    margin-bottom: 30px; padding-bottom: 16px;
}
.pd-section-title::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%); width: 80px; height: 3px;
    background: var(--pl-primary);
}

/* Chi tiết sản phẩm */
.pd-description { padding: 50px 0; border-top: 1px solid #eee; }
.pd-desc-content {
    font-size: 16px; line-height: 2; color: #444;
    max-width: 900px; margin: 0 auto;
}
.pd-desc-content p { margin-bottom: 16px; }

/* Sản phẩm nổi bật grid */
.pd-featured { padding: 60px 0 80px; border-top: 1px solid #eee; }
.pd-featured-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.pd-featured-item { overflow: hidden; }
.pd-featured-img { overflow: hidden; margin-bottom: 12px; }
.pd-featured-img img {
    width: 100%; aspect-ratio: 1/1; object-fit: cover;
    transition: transform 0.4s;
}
.pd-featured-item:hover .pd-featured-img img { transform: scale(1.05); }

/* Shine effect */
.pd-featured-img { position: relative; }
.pd-featured-img::before {
    position: absolute; top: 0; left: -75%; display: block; content: '';
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 100%);
    transform: skewX(-25deg); transition: 0.7s; z-index: 2;
}
.pd-featured-item:hover .pd-featured-img::before { left: 125%; }

.pd-featured-name {
    font-size: 14px; font-weight: 600; text-transform: uppercase;
    color: var(--pl-text); margin: 0; line-height: 1.4;
}
.pd-featured-item a { color: var(--pl-text); }
.pd-featured-item a:hover { color: var(--pl-primary); }

/* ====================== RESPONSIVE ====================== */
@media (max-width: 1023px) {
    .header-menu { display: none; }
    .header-left { display: flex; }
    .brand-content { flex-direction: column; }
    .brand-content .brand-text:first-child,
    .brand-content .brand-text:last-child { text-align: center; }
    .brand-content .brand-image { flex: 0 0 auto; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .news-small-list { grid-template-columns: repeat(2, 1fr); }
    .sp-layout { flex-direction: column; }
    .sp-sidebar { flex: 0 0 auto; position: static; border-right: 0; padding-right: 0; margin-right: 0; border-bottom: 1px solid #e5e5e5; padding-bottom: 16px; margin-bottom: 24px; }
    .sp-cat-list { display: flex; flex-wrap: wrap; gap: 0; }
    .sp-cat-list li { border-bottom: 0; }
    .sp-cat-list li.active { border-right: 0; margin-right: 0; }
    .sp-cat-list li a { padding: 8px 14px; font-size: 11px; }
    .sp-grid { grid-template-columns: repeat(2, 1fr); }
    .pd-row { flex-direction: column; gap: 30px; }
    .pd-image { flex: 0 0 auto; }
    .pd-title { font-size: 24px; }
    .pd-featured-grid { grid-template-columns: repeat(2, 1fr); }
    .about-hero-row { flex-direction: column; }
    .about-hero-img { flex: 0 0 auto; }
    .about-vision-row { flex-direction: column; align-items: center; gap: 40px; }
    .about-core-list::before, .about-core-list::after,
    .about-core-item::before, .about-core-item::after { display: none; }
    .about-core-item { flex-direction: column !important; gap: 20px; }
    .about-core-img, .about-core-text { width: 100% !important; order: unset !important; text-align: left !important; }
    .about-stats-row { flex-direction: column; align-items: center; gap: 40px; }
    .timeline-item { flex: 0 0 250px; }
    .store-featured { flex-direction: column; }
    .store-featured-img { flex: 0 0 auto; width: 100%; }
    .footer-logo-col, .footer-about, .footer-info, .footer-newsletter-col {
        flex: 0 0 50%; max-width: 50%; margin-bottom: 25px;
    }
    .footer-logo-col { text-align: center; }
    .slider-pc .item { height: 500px; }
}
@media (max-width: 640px) {
    .products-grid { grid-template-columns: 1fr; }
    .news-small-list { grid-template-columns: 1fr; }
    .sp-grid { grid-template-columns: 1fr; }
    .slider-pc .item { height: 300px; }
    .section-brand, .section-products, .section-news, .section-stores { padding: 50px 0; }
    .section-title h2 { font-size: 22px; }
    .footer-logo-col, .footer-about, .footer-info, .footer-newsletter-col {
        flex: 0 0 100%; max-width: 100%;
    }
    .header-logo a { width: 50px; }
}
