/* ================================================================
   PANTONE MEGA MENU v3
   • is-mega  : có grandchildren → cột ngang (tự wrap khi nhiều cột)
   • is-simple: chỉ có con      → dropdown dọc chuẩn
   ================================================================ */

/* ──────────────────────────────────────────────────────────────
   NAV LIST
   ────────────────────────────────────────────────────────────── */
.pmm-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

/* ── Top-level item ── */
.pmm-item {
    position: relative;
    list-style: none;
}

/* ── Top-level link ── */
.pmm-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: inherit;
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s, background 0.18s;
    outline: none;
}

.pmm-link:hover { background: rgba(0,0,0,.05); }
.pmm-link:focus-visible { box-shadow: 0 0 0 2px currentColor; }

/* Gạch chân animate */
.pmm-link::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 12px; right: 12px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
}
.pmm-item:hover .pmm-link::after,
.pmm-link.is-current::after { transform: scaleX(1); }

/* ── Chevron ── */
.pmm-chevron {
    flex-shrink: 0;
    opacity: .55;
    transition: transform .22s ease, opacity .2s;
}
.pmm-item.is-open .pmm-chevron,
.pmm-item:hover   .pmm-chevron { transform: rotate(180deg); opacity: 1; }

/* ──────────────────────────────────────────────────────────────
   PANEL BASE (chung cho cả is-mega và is-simple)
   ────────────────────────────────────────────────────────────── */
.pmm-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);

    background: #fff;
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 16px;
    box-shadow:
        0 4px 6px -1px rgba(0,0,0,.06),
        0 20px 48px -8px rgba(0,0,0,.16);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity    .2s ease,
        transform  .2s cubic-bezier(.4,0,.2,1),
        visibility 0s .2s;
    z-index: 300;
}

/* Mũi tên nhỏ */
.pmm-panel::before {
    content: '';
    position: absolute;
    top: -5px; left: 50%;
    width: 10px; height: 10px;
    background: #fff;
    border-left: 1px solid rgba(0,0,0,.07);
    border-top:  1px solid rgba(0,0,0,.07);
    transform: translateX(-50%) rotate(45deg);
    border-radius: 2px 0 0 0;
}

/* Mở panel */
.pmm-item.has-dropdown:hover .pmm-panel,
.pmm-item.is-open            .pmm-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition:
        opacity    .2s ease,
        transform  .2s cubic-bezier(.4,0,.2,1),
        visibility 0s 0s;
}

.pmm-panel-inner { padding: 10px; }

/* ──────────────────────────────────────────────────────────────
   CĂN LỀ PANEL (JS thêm class khi gần mép màn hình)
   ────────────────────────────────────────────────────────────── */
/* Căn trái */
.pmm-item.panel-snap-left .pmm-panel {
    left: 0;
    transform: translateY(-8px);
}
.pmm-item.panel-snap-left .pmm-panel::before { left: 22px; transform: rotate(45deg); }
.pmm-item.panel-snap-left:hover .pmm-panel,
.pmm-item.panel-snap-left.is-open .pmm-panel { transform: translateY(0); }

/* Căn phải */
.pmm-item.panel-snap-right .pmm-panel {
    left: auto; right: 0;
    transform: translateY(-8px);
}
.pmm-item.panel-snap-right .pmm-panel::before { left: auto; right: 22px; transform: rotate(45deg); }
.pmm-item.panel-snap-right:hover .pmm-panel,
.pmm-item.panel-snap-right.is-open .pmm-panel { transform: translateY(0); }

/* ──────────────────────────────────────────────────────────────
   SIMPLE DROPDOWN (is-simple)
   — Không có cháu → danh sách dọc thuần
   ────────────────────────────────────────────────────────────── */
.pmm-panel.is-simple {
    min-width: 200px;
    max-width: 300px;
    width: max-content;
}

.pmm-dropdown-list {
    list-style: none;
    margin: 0; padding: 4px;
}

.pmm-dropdown-item { list-style: none; }

.pmm-dropdown-link {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 12px;
    font-size: .85rem;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    border-radius: 9px;
    white-space: nowrap;
    transition: background .14s, color .14s;
}

.pmm-dropdown-link:hover,
.pmm-dropdown-item.is-current .pmm-dropdown-link {
    background: #f1f5f9;
    color: #0f172a;
}

.pmm-dropdown-desc {
    font-size: .72rem;
    font-weight: 400;
    color: #94a3b8;
    white-space: normal;
    line-height: 1.4;
}

/* ──────────────────────────────────────────────────────────────
   MEGA PANEL (is-mega)
   — Có cháu → full-width theo container layout
   ────────────────────────────────────────────────────────────── */

/* Mega item KHÔNG tạo positioning context
   → panel sẽ reference <header> (sticky) thay vì <li> */
.pmm-item.is-mega-item {
    position: static;
}

/* Full-width panel căn theo <header> */
.pmm-panel.is-mega {
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
    max-width: none;
    top: 100%;                             /* flush với đáy header */
    transform: translateY(-8px);           /* chỉ animation dọc */
    border-radius: 0 0 20px 20px;
    border-top: none;
}

/* Ẩn mũi tên nhỏ cho mega panel (full-width không cần) */
.pmm-panel.is-mega::before { display: none; }

/* Override trạng thái MỞ cho mega
   (ghi đè rule translateX(-50%) của panel thường) */
.pmm-item.is-mega-item.has-dropdown:hover .pmm-panel,
.pmm-item.is-mega-item.is-open .pmm-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition:
        opacity    .2s ease,
        transform  .2s cubic-bezier(.4,0,.2,1),
        visibility 0s 0s;
}

/* Nội dung bên trong căn theo container 1280px (max-w-7xl) */
.pmm-panel.is-mega .pmm-panel-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 32px;
}

/* Grid cột — 4 cột cố định mỗi hàng, cột thứ 5+ tự xuống hàng */
.pmm-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);  /* luôn 4 cột */
    align-items: start;
}

/* ── Mỗi cột ── */
.pmm-col {
    padding: 8px 16px;
    border-right: 1px solid #f1f5f9;
    box-sizing: border-box;
    min-width: 0;              /* tránh overflow text dài */
}

/* Cột thứ 4 mỗi hàng và cột cuối: bỏ đường kẻ phải */
.pmm-col:nth-child(4n),
.pmm-col:last-child { border-right: none; }

/* Hàng thứ 2 trở đi: thêm đường kẻ ngang phân cách */
.pmm-col:nth-child(n + 5) {
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
    margin-top: 4px;
}

/* ── Tiêu đề cột ── */
.pmm-col-title {
    font-size: .67rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #94a3b8;
    margin: 2px 4px 10px;
    padding: 0;
    white-space: nowrap;
    line-height: 1;
}

/* ── Danh sách link trong cột ── */
.pmm-col-links {
    list-style: none;
    margin: 0; padding: 0;
}

.pmm-col-link-item { list-style: none; }

.pmm-col-link-a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    font-size: .84rem;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    border-radius: 8px;
    white-space: nowrap;
    transition: background .14s, color .14s;
    position: relative;
}

/* Bullet nhỏ trước link */
.pmm-col-link-a::before {
    content: '';
    width: 4px; height: 4px;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
    transition: background .14s;
}

.pmm-col-link-a:hover,
.pmm-col-link-item.is-current .pmm-col-link-a {
    background: #f1f5f9;
    color: #0f172a;
}

.pmm-col-link-a:hover::before,
.pmm-col-link-item.is-current .pmm-col-link-a::before { background: #475569; }

/* ── Cột đơn (depth-1 không con) ── */
.pmm-col.pmm-col-single { border-right: none; }
.pmm-col.pmm-col-single + .pmm-col { border-left: 1px solid #f1f5f9; }

.pmm-single-link {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 9px 8px;
    font-size: .84rem;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    border-radius: 8px;
    white-space: nowrap;
    transition: background .14s, color .14s;
}

.pmm-single-link:hover,
.pmm-col-single.is-current .pmm-single-link { background: #f1f5f9; color: #0f172a; }

.pmm-single-desc {
    font-size: .72rem;
    font-weight: 400;
    color: #94a3b8;
    white-space: normal;
    line-height: 1.4;
}

/* ──────────────────────────────────────────────────────────────
   NEW ARRIVALS – PRODUCT CARDS
   ────────────────────────────────────────────────────────────── */

/* Scrollbar ẩn */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Container cuộn ngang */
.pantone-arrivals-grid {
    display: flex;
    overflow-x: auto;
    gap: 24px;
    padding-bottom: 32px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.pantone-arrivals-grid::-webkit-scrollbar { display: none; }

/* Mỗi card — flex basis cố định để không bị giãn */
.pantone-product-card {
    flex: 0 0 220px;       /* không grow, không shrink, đúng 220px */
    width: 220px;
    cursor: pointer;
    position: relative;    /* stretched-link context */
}
@media (min-width: 640px) {
    .pantone-product-card { flex: 0 0 260px; width: 260px; }
}

/* Khung ảnh tỉ lệ 3:4 — height = 4/3 × width */
.pantone-product-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 12px;
    background: #f1f5f9;
    width: 100%;
    padding-top: 100%;  /* aspect-ratio 1:1 — hình vuông */
}

/* Ảnh sản phẩm — absolute fill trong khung */
.pantone-product-img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
    display: block;
}
.pantone-product-card:hover .pantone-product-img-wrap img {
    transform: scale(1.05);
}

/* Sale badge — absolute trong img-wrap */
.pantone-sale-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 3px 8px;
    border-radius: 2px;
    z-index: 2;
}

/* Quick Add – slide lên khi hover card */
.pantone-quick-add {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 2;             /* nằm trên stretched link */
    transform: translateY(100%);
    transition: transform .3s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #0f172a;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 13px 16px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    white-space: nowrap;
}
.pantone-product-card:hover .pantone-quick-add { transform: translateY(0); }
.pantone-quick-add:hover { background: #1e293b; color: #fff; }

/* Thông tin sản phẩm */
.pantone-product-name {
    font-weight: 500;
    font-size: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
    color: inherit;
    text-decoration: none;
    position: static;
}
/* Stretched link: pseudo-element phủ full card, click đâu cũng vào product */
.pantone-product-name::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}
.pantone-product-price {
    color: #64748b;
    font-size: .875rem;
}

/* WooCommerce price HTML: del xám, ins đỏ khi sale */
.pantone-product-price del { color: #94a3b8; font-size: .85em; margin-right: 4px; text-decoration: line-through; }
.pantone-product-price ins { text-decoration: none; font-weight: 600; color: #ef4444; }

/* Color swatches */
.pantone-swatches { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.pantone-swatch {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.12);
    flex-shrink: 0;
    cursor: default;
}

/* ──────────────────────────────────────────────────────────────
   SINGLE PRODUCT PAGE (psp-*)
   ────────────────────────────────────────────────────────────── */

/* Container */
.psp-main { max-width: 1280px; margin: 0 auto; padding: 32px 24px; }
@media (min-width: 1024px) { .psp-main { padding: 32px 80px; } }

/* Breadcrumb */
.psp-breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: .7rem; font-weight: 500; text-transform: uppercase;
    letter-spacing: .1em; color: #94a3b8; margin-bottom: 40px;
}
.psp-breadcrumb a { color: #94a3b8; text-decoration: none; transition: color .15s; }
.psp-breadcrumb a:hover { color: #0f172a; }
.psp-breadcrumb .breadcrumb_last { color: #0f172a; }

/* 2-column grid */
.psp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}
@media (min-width: 1024px) {
    .psp-grid { grid-template-columns: 7fr 5fr; gap: 80px; }
}

/* ── Gallery ── */
.psp-gallery { display: flex; flex-direction: column; gap: 16px; }

.psp-main-img {
    background: #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
}
.psp-main-img-el {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 700ms ease;
}
.psp-main-img:hover .psp-main-img-el { transform: scale(1.05); }

.psp-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.psp-thumb {
    aspect-ratio: 1;
    background: #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .2s, background .2s;
}
.psp-thumb:hover { background: #e2e8f0; }
.psp-thumb.is-active { border-color: #0f172a; }
.psp-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Info Panel ── */
.psp-info { display: flex; flex-direction: column; }

.psp-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}
.psp-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -.02em;
    color: #0f172a;
    margin: 0 0 8px;
    line-height: 1.1;
}
@media (min-width: 1024px) { .psp-title { font-size: 3rem; } }
.psp-sku { color: #94a3b8; font-weight: 500; letter-spacing: .04em; font-size: .875rem; margin: 0; }
.psp-price-row {
    margin-top: 24px;
    display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
}
.psp-price-current { font-size: 1.875rem; font-weight: 700; color: #0f172a; }
.psp-price-regular { color: #94a3b8; text-decoration: line-through; font-size: 1.125rem; }
.psp-save-badge {
    background: #f0efeb;
    color: #0f172a;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 2px;
}

/* ── WooCommerce Add to Cart form styling ── */
.psp-atc-wrapper { margin-bottom: 40px; }
.psp-atc-wrapper form.cart { display: flex; flex-direction: column; gap: 16px; margin: 0; }

/* Quantity row */
.psp-atc-wrapper .quantity {
    display: flex; align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    height: 56px;
    overflow: hidden;
    width: fit-content;
}
.psp-atc-wrapper .qty {
    width: 56px; text-align: center;
    border: none; outline: none;
    font-size: 1rem; font-weight: 700;
    background: transparent;
    -moz-appearance: textfield;
}
.psp-atc-wrapper .qty::-webkit-inner-spin-button,
.psp-atc-wrapper .qty::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Qty +/- buttons added by theme.js */
.psp-atc-wrapper .pantone-qty-btn {
    width: 48px; height: 56px;
    border: none; background: transparent; cursor: pointer;
    font-size: 1.2rem; font-weight: 300;
    color: #0f172a; display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.psp-atc-wrapper .pantone-qty-btn:hover { background: #f1f5f9; }

/* ATC + Buy Now buttons */
.psp-atc-wrapper .single_add_to_cart_button {
    width: 100%; height: 56px;
    background: #0f172a; color: #fff;
    border: none; border-radius: 8px;
    font-size: .8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    cursor: pointer; transition: background .2s;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.psp-atc-wrapper .single_add_to_cart_button:hover { background: #1e293b; }
.psp-atc-wrapper .single_add_to_cart_button.loading { opacity: .7; pointer-events: none; }

/* Variable product form */
.psp-atc-wrapper table.variations { width: 100%; border: none; margin-bottom: 16px; }
.psp-atc-wrapper table.variations td { padding: 6px 0; }
.psp-atc-wrapper table.variations select {
    width: 100%; padding: 10px 12px;
    border: 1px solid #e2e8f0; border-radius: 8px;
    font-size: .875rem; background: #fff;
}
.psp-atc-wrapper .woocommerce-variation-price .price { font-size: 1.5rem; font-weight: 700; }
.psp-atc-wrapper .reset_variations { font-size: .75rem; color: #94a3b8; }

/* ── Info badges ── */
.psp-badges {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    margin-top: auto;
}
.psp-badge-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}
.psp-badge-item svg { color: #64748b; flex-shrink: 0; margin-top: 2px; }
.psp-badge-label { font-size: 10px; font-weight: 700; text-transform: uppercase; color: #94a3b8; margin: 0 0 2px; }
.psp-badge-val { font-size: .75rem; font-weight: 600; margin: 0; }

/* ── Tabs ── */
.psp-tabs-wrapper {
    margin-top: 80px;
    border-top: 1px solid #f1f5f9;
    padding-top: 48px;
    max-width: 896px;
}
.psp-tab-nav {
    display: flex;
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
    gap: 0;
}
.psp-tab-li { list-style: none; }
.psp-tab-btn {
    display: block;
    padding: 16px 32px;
    font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    color: #94a3b8;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .15s, border-color .15s;
}
.psp-tab-btn:hover { color: #0f172a; }
.psp-tab-li.active .psp-tab-btn { color: #0f172a; border-bottom-color: #0f172a; }

.psp-tab-panel { display: none; }
.psp-tab-panel.active { display: block; }
.psp-tab-panel p { font-size: 1.1rem; line-height: 1.7; color: #475569; margin-bottom: 24px; }
.psp-tab-panel ul { list-style: none; padding: 0; margin: 0; }
.psp-tab-panel ul li {
    display: flex; align-items: center; gap: 12px;
    font-weight: 500; margin-bottom: 12px;
}
.psp-tab-panel ul li::before {
    content: ''; width: 8px; height: 8px;
    border-radius: 50%; background: #0f172a; flex-shrink: 0;
}

/* ── Related products ── */
.psp-related { margin-top: 96px; margin-bottom: 64px; }
.psp-related-header {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px;
}
.psp-related-title {
    font-size: 1.5rem; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; margin: 0;
}
.psp-related-all {
    font-size: .75rem; font-weight: 700;
    text-decoration: underline; text-underline-offset: 4px;
    color: inherit; transition: opacity .15s;
}
.psp-related-all:hover { opacity: .6; }

.psp-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
@media (min-width: 768px) { .psp-related-grid { grid-template-columns: repeat(4, 1fr); } }

.psp-related-card { text-decoration: none; color: inherit; display: block; }
.psp-related-img-wrap {
    aspect-ratio: 1;
    background: #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    display: flex; align-items: center; justify-content: center;
}
.psp-related-img {
    width: 100%; height: 100%;
    object-fit: contain;
    transition: transform 500ms ease;
}
.psp-related-card:hover .psp-related-img { transform: scale(1.1); }
.psp-related-name { font-weight: 700; font-size: .75rem; text-transform: uppercase; margin: 0 0 4px; }
.psp-related-price { color: #64748b; font-size: .75rem; margin: 0; }

/* ──────────────────────────────────────────────────────────────
   SHOP / ARCHIVE – PRODUCT GRID & CARDS
   ────────────────────────────────────────────────────────────── */

/* 3-column grid, xuống 2 col (tablet), 1 col (mobile) */
.pantone-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 24px;
}
@media (max-width: 1023px) {
    .pantone-product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
    .pantone-product-grid { grid-template-columns: repeat(1, 1fr); }
}

/* Card wrapper */
.pantone-shop-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.pantone-shop-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Khung ảnh tỉ lệ 4:5 */
.pantone-shop-img-wrap {
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
    margin-bottom: 16px;
    padding-top: 100%; /* 1:1 — hình vuông */
}
.pantone-shop-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
    display: block;
}
.pantone-shop-card:hover .pantone-shop-img { transform: scale(1.05); }

/* Pantone color chip overlay – bottom-left */
.pantone-color-chip {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}
.pantone-color-chip-swatch {
    width: 24px;
    height: 24px;
    border: 1.5px solid #fff;
    flex-shrink: 0;
}
.pantone-color-chip-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: #fff;
    color: #0f172a;
    padding: 4px 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
    white-space: nowrap;
    line-height: 1;
}

/* Tên sản phẩm */
.pantone-shop-name {
    font-size: .7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #0f172a;
    margin: 0 0 4px;
    line-height: 1.4;
}

/* Giá */
.pantone-shop-price {
    color: #64748b;
    font-size: .875rem;
    margin: 0 0 8px;
}
.pantone-shop-price del { color: #94a3b8; font-size: .85em; margin-right: 4px; text-decoration: line-through; }
.pantone-shop-price ins { text-decoration: none; font-weight: 600; color: #ef4444; }

/* Color swatches – square */
.pantone-shop-swatches { display: flex; gap: 4px; flex-wrap: wrap; }
.pantone-shop-swatch   { width: 12px; height: 12px; flex-shrink: 0; }

/* ──────────────────────────────────────────────────────────────
   HAMBURGER
   ────────────────────────────────────────────────────────────── */
.pmm-hamburger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    padding: 10px;
    transition: background .15s;
    color: inherit;
    flex-shrink: 0;
}
.pmm-hamburger:hover { background: rgba(0,0,0,.06); }

.pmm-hamburger span {
    display: block;
    width: 20px; height: 2px;
    background: currentColor;
    border-radius: 2px;
    transform-origin: center;
    transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .3s, width .3s;
}
.pmm-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pmm-hamburger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.pmm-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ──────────────────────────────────────────────────────────────
   MOBILE OVERLAY + PANEL
   ────────────────────────────────────────────────────────────── */
.pmob-overlay {
    position: fixed; inset: 0;
    background: rgba(15,23,42,.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 498;
    opacity: 0; visibility: hidden;
    transition: opacity .3s, visibility 0s .3s;
}
.pmob-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .3s, visibility 0s; }

.pmob-panel {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(360px, 100vw);
    background: #fff;
    z-index: 499;
    transform: translateX(100%);
    transition: transform .38s cubic-bezier(.32,.72,0,1);
    display: flex; flex-direction: column;
    box-shadow: -8px 0 48px rgba(0,0,0,.15);
    overflow: hidden;
}
.pmob-panel.is-open { transform: translateX(0); }

.pmob-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}
.pmob-header-brand {
    display: flex; align-items: center; gap: 8px;
    font-weight: 800; font-size: .9rem;
    text-transform: uppercase; letter-spacing: .06em;
    text-decoration: none; color: inherit;
}
.pmob-close {
    width: 36px; height: 36px;
    border-radius: 8px; border: none;
    background: #f1f5f9; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #64748b;
    transition: background .15s, color .15s;
}
.pmob-close:hover { background: #e2e8f0; color: #0f172a; }

.pmob-search {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}
.pmob-search-inner {
    display: flex; align-items: center; gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px; padding: 8px 12px;
}
.pmob-search-inner input {
    flex: 1; background: transparent;
    border: none; outline: none;
    font-size: .875rem; color: #0f172a; min-width: 0;
}
.pmob-search-inner input::placeholder { color: #94a3b8; }

.pmob-body {
    flex: 1; overflow-y: auto;
    overscroll-behavior: contain; padding: 8px;
}

.pmob-nav { list-style: none; margin: 0; padding: 0; }
.pmob-item { list-style: none; }
.pmob-item + .pmob-item { border-top: 1px solid #f8fafc; }

.pmob-row { display: flex; align-items: center; }

.pmob-link {
    flex: 1; display: block;
    padding: 13px 12px;
    font-size: .875rem; font-weight: 700;
    color: #0f172a; text-decoration: none;
    text-transform: uppercase; letter-spacing: .05em;
    border-radius: 8px;
    transition: color .15s;
}
.pmob-link:hover, .pmob-link.is-current { color: #475569; }

.pmob-item.depth-1 .pmob-link,
.pmob-item.depth-2 .pmob-link {
    font-weight: 500; text-transform: none; letter-spacing: 0;
    font-size: .875rem; color: #334155; padding: 10px 12px;
}
.pmob-item.depth-2 .pmob-link { font-size: .83rem; color: #64748b; padding: 8px 12px; }

.pmob-toggle {
    width: 40px; height: 40px;
    border: none; background: transparent; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8; border-radius: 8px; flex-shrink: 0;
    transition: background .15s, color .15s;
}
.pmob-toggle:hover { background: #f1f5f9; color: #0f172a; }
.pmob-toggle svg { transition: transform .25s cubic-bezier(.4,0,.2,1); }
.pmob-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.pmob-sublist {
    list-style: none; margin: 0;
    padding: 0 0 4px 12px;
    overflow: hidden;
    transition: height .28s cubic-bezier(.4,0,.2,1);
}

.pmob-footer {
    padding: 16px 20px;
    border-top: 1px solid #f1f5f9;
    flex-shrink: 0;
    display: flex; flex-direction: column; gap: 10px;
}
.pmob-footer-actions { display: flex; gap: 10px; }

.pmob-footer-btn {
    flex: 1; display: flex; align-items: center; justify-content: center;
    gap: 6px; padding: 10px; border-radius: 10px;
    font-size: .8rem; font-weight: 600;
    text-decoration: none; transition: background .15s; position: relative;
}
.pmob-footer-btn-account { background: #f1f5f9; color: #334155; }
.pmob-footer-btn-account:hover { background: #e2e8f0; }
.pmob-footer-btn-cart { background: #0f172a; color: #fff; }
.pmob-footer-btn-cart:hover { background: #1e293b; }
.pmob-cart-count {
    position: absolute; top: 6px; right: 6px;
    background: #ef4444; color: #fff;
    font-size: .6rem; font-weight: 800;
    width: 16px; height: 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.pmob-social-row { display: flex; gap: 8px; justify-content: center; }
.pmob-social-link {
    width: 34px; height: 34px; border-radius: 8px;
    background: #f8fafc; display: flex; align-items: center; justify-content: center;
    color: #64748b; text-decoration: none;
    transition: background .15s, color .15s;
}
.pmob-social-link:hover { background: #0f172a; color: #fff; }

/* ──────────────────────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .pmm-desktop-nav { display: none !important; }
    .pmm-hamburger   { display: flex; }
}
@media (min-width: 768px) {
    .pmm-hamburger { display: none; }
    .pmob-overlay, .pmob-panel { display: none !important; }
}

/* ──────────────────────────────────────────────────────────────
   DARK MODE
   ────────────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
    .pmm-panel.is-mega { border-top: 1px solid rgba(255,255,255,.06); }
    .pmm-panel {
        background: #1e293b;
        border-color: rgba(255,255,255,.08);
        box-shadow: 0 4px 6px -1px rgba(0,0,0,.3), 0 20px 48px -8px rgba(0,0,0,.5);
    }
    .pmm-panel::before { background: #1e293b; border-color: rgba(255,255,255,.08); }

    .pmm-dropdown-link { color: #cbd5e1; }
    .pmm-dropdown-link:hover,
    .pmm-dropdown-item.is-current .pmm-dropdown-link { background: rgba(255,255,255,.07); color: #f8fafc; }

    .pmm-col { border-color: rgba(255,255,255,.06); }
    .pmm-col:nth-child(n + 5) { border-top-color: rgba(255,255,255,.06); }
    .pmm-col-title { color: #475569; }
    .pmm-col-link-a { color: #cbd5e1; }
    .pmm-col-link-a:hover,
    .pmm-col-link-item.is-current .pmm-col-link-a { background: rgba(255,255,255,.07); color: #f8fafc; }
    .pmm-single-link { color: #cbd5e1; }
    .pmm-single-link:hover { background: rgba(255,255,255,.07); color: #f8fafc; }

    .pmob-panel { background: #0f172a; }
    .pmob-header, .pmob-search, .pmob-footer { border-color: #1e293b; }
    .pmob-item + .pmob-item { border-color: #1e293b; }
    .pmob-link { color: #f1f5f9; }
    .pmob-item.depth-1 .pmob-link, .pmob-item.depth-2 .pmob-link { color: #94a3b8; }
    .pmob-close { background: #1e293b; color: #94a3b8; }
    .pmob-close:hover { background: #334155; color: #f1f5f9; }
    .pmob-search-inner { background: #1e293b; border-color: #334155; }
    .pmob-search-inner input { color: #f1f5f9; }
    .pmob-footer-btn-account { background: #1e293b; color: #cbd5e1; }
    .pmob-footer-btn-cart { background: #f8fafc; color: #0f172a; }
    .pmob-social-link { background: #1e293b; color: #94a3b8; }
    .pmob-social-link:hover { background: #f8fafc; color: #0f172a; }
}

/* =====================================================
   WooCommerce Notices
   ===================================================== */
.pantone-notice-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}
.pantone-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 12px;
    border: 1px solid transparent;
    position: relative;
}
.pantone-notice:last-child { margin-bottom: 0; }

/* Success */
.pantone-notice--success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}
.pantone-notice--success .pantone-notice__icon { color: #16a34a; }

/* Error */
.pantone-notice--error {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}
.pantone-notice--error .pantone-notice__icon { color: #dc2626; }

/* Info */
.pantone-notice--info {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}
.pantone-notice--info .pantone-notice__icon { color: #2563eb; }

/* Icon */
.pantone-notice__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
}
.pantone-notice__icon svg {
    width: 100%;
    height: 100%;
}

/* Text — chứa link "Xem giỏ hàng" */
.pantone-notice__text { flex: 1; }
.pantone-notice__text a {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    color: inherit;
}
.pantone-notice__text a:hover { opacity: .75; }

/* Close button */
.pantone-notice__close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    color: inherit;
    opacity: .5;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.pantone-notice__close:hover { opacity: 1; }
.pantone-notice__close svg { width: 16px; height: 16px; }

/* =====================================================
   Cart & Checkout
   ===================================================== */
.pantone-cart-wrapper     { max-width: 1200px; margin-left: auto; margin-right: auto; width: 100%; }
.pantone-checkout-wrapper { max-width: 1400px; margin-left: auto; margin-right: auto; width: 100%; }
.pantone-thankyou-wrapper { max-width: 800px;  margin-left: auto; margin-right: auto; width: 100%; }

/* Cart item row separator */
.pantone-cart-item-sep    { border-bottom-color: rgba(240,239,235,.4); }

/* Product thumbnail background */
.pantone-cart-img-bg      { background-color: rgba(240,239,235,.1); }

/* Coupon / text input border */
.pantone-coupon-input     { border-color: #f0efeb; }

/* Order summary sidebar (cart + thankyou) */
.pantone-summary-box      { background-color: rgba(240,239,235,.2); border-color: rgba(240,239,235,.3); }

/* Checkout sticky sidebar */
.pantone-checkout-summary { background-color: rgba(240,239,235,.4); }

/* Horizontal rule / divider lines */
.pantone-divider-top      { border-top-color:    rgba(240,239,235,.6); }
.pantone-divider-bottom   { border-bottom-color: rgba(240,239,235,.6); }

/* Quantity input & misc buttons */
.pantone-qty-border       { border-color: rgba(240,239,235,.4); }
.pantone-qty-btn:hover    { background-color: rgba(240,239,235,.1); }
.pantone-btn-hover-light:hover { background-color: rgba(240,239,235,.1); }

/* Checkout sidebar fixed width */
.pantone-checkout-sidebar { width: 400px; max-width: 100%; }

/* =====================================================
   Blog / News pages
   ===================================================== */
.pantone-page-bg          { background-color: #f0efeb; }
.pantone-hero-img-sm      { height: 400px; }
.pantone-hero-img-lg      { height: 400px; }
.pantone-tooltip-text     { font-size: 10px; }
@media (min-width: 768px) {
    .pantone-hero-img-sm  { height: 500px; }
    .pantone-hero-img-lg  { height: 600px; }
}

/* =====================================================
   Comments
   ===================================================== */
.pantone-comment-bg       { background-color: #fff; border: 1px solid #e2e8f0; }
.pantone-comment-form-wrap { margin-top: 3rem; }

/* Nested replies indent */
.comment-list .children    { margin-left: 3rem; margin-top: 1.5rem; list-style: none; padding: 0; }

/* Comment reply link */
.comment-reply-link        { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .075em; color: #94a3b8; transition: color .15s; }
.comment-reply-link:hover  { color: #334155; }

/* Edit link */
.comment-edit-link         { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .075em; color: #94a3b8; transition: color .15s; }
.comment-edit-link:hover   { color: #334155; }
