/* =============================================
 * MANICURE.VN — Custom Design System
 * Premium, Minimal, Modern Product Catalog
 * ============================================= */

:root {
    --brand-primary: #1f2927;
    --brand-dark: #161b1a;
    --brand-text: #252827;
    --brand-muted: #6b7370;
    --brand-border: #e4e7e5;
    --brand-soft: #f5f6f5;
    --brand-bg-alt: #f0f1f0;
    --brand-white: #ffffff;
    --brand-accent: #2d3b38;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --section-space: 80px;
    --section-space-mob: 48px;
    --container-max: 1320px;
}

/* ─── Container ─── */
.catalog-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}
@media (max-width: 768px) {
    .catalog-container { padding: 0 16px; }
}

/* ─── Breadcrumb ─── */
.catalog-breadcrumb {
    padding: 16px 0 8px;
    font-size: 13px;
    color: var(--brand-muted);
}
.catalog-breadcrumb a {
    color: var(--brand-muted);
    text-decoration: none;
    transition: color var(--transition);
}
.catalog-breadcrumb a:hover { color: var(--brand-text); }
.catalog-breadcrumb .separator { margin: 0 6px; color: #ccc; }
.catalog-breadcrumb .current { color: var(--brand-text); font-weight: 500; }

/* ─── Hero ─── */
.catalog-hero {
    position: relative;
    padding: 48px 0 40px;
    margin-bottom: 16px;
}
@media (max-width: 768px) {
    .catalog-hero { padding: 32px 0 24px; }
}
.catalog-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--brand-primary);
    opacity: 0.3;
}
.catalog-hero .eyebrow {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--brand-muted);
    margin-bottom: 12px;
    font-weight: 500;
}
.catalog-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--brand-dark);
    line-height: 1.2;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}
@media (max-width: 768px) {
    .catalog-hero h1 { font-size: 30px; }
}
.catalog-hero p {
    font-size: 17px;
    color: var(--brand-muted);
    line-height: 1.7;
    max-width: 640px;
    margin: 0;
}
@media (max-width: 768px) {
    .catalog-hero p { font-size: 15px; }
}
.catalog-hero .hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 24px;
    background: var(--brand-primary);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition);
}
.catalog-hero .hero-cta:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

/* ─── Category Hero (Category page) ─── */
.category-hero {
    padding: 40px 0 32px;
}
.category-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 0 0 12px;
}
@media (max-width: 768px) {
    .category-hero h1 { font-size: 28px; }
}
.category-hero .cat-desc {
    font-size: 16px;
    color: var(--brand-muted);
    line-height: 1.7;
    max-width: 680px;
    margin: 0;
}
.category-hero .cat-count {
    font-size: 14px;
    color: var(--brand-muted);
    margin-top: 8px;
}

/* ─── Category Discovery ─── */
.catalog-categories {
    padding: 24px 0 40px;
}
.catalog-categories .section-label {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brand-muted);
    margin-bottom: 20px;
    font-weight: 500;
}
.cat-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
@media (max-width: 1024px) {
    .cat-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .cat-cards {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }
    .cat-cards::-webkit-scrollbar { display: none; }
}

.cat-card {
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    background: var(--brand-soft);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition);
    border: 1px solid transparent;
    min-width: 0;
}
@media (max-width: 768px) {
    .cat-card {
        min-width: 160px;
        scroll-snap-align: start;
        padding: 18px 16px;
    }
}
.cat-card:hover {
    background: var(--brand-white);
    border-color: var(--brand-border);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.cat-card .cat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--brand-primary);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
}
.cat-card .cat-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-text);
    margin-bottom: 4px;
    line-height: 1.3;
}
.cat-card .cat-count {
    font-size: 13px;
    color: var(--brand-muted);
}
.cat-card .cat-arrow {
    margin-top: 12px;
    font-size: 14px;
    color: var(--brand-primary);
    transition: transform var(--transition);
}
.cat-card:hover .cat-arrow {
    transform: translateX(4px);
}
.cat-card.active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}
.cat-card.active .cat-number,
.cat-card.active .cat-name,
.cat-card.active .cat-count,
.cat-card.active .cat-arrow { color: #fff; opacity: 1; }
.cat-card.active .cat-number { opacity: 0.3; }

/* ─── Toolbar ─── */
.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 24px;
    border-bottom: 1px solid var(--brand-border);
    margin-bottom: 32px;
}
@media (max-width: 768px) {
    .catalog-toolbar { flex-wrap: wrap; gap: 12px; }
}
.catalog-toolbar .result-count {
    font-size: 14px;
    color: var(--brand-muted);
}
.catalog-toolbar .sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.catalog-toolbar .sort-wrap label {
    font-size: 13px;
    color: var(--brand-muted);
    white-space: nowrap;
}
.catalog-toolbar .sort-select {
    padding: 8px 32px 8px 12px;
    font-size: 14px;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--brand-text);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7370' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    outline: none;
    transition: border-color var(--transition);
}
.catalog-toolbar .sort-select:focus {
    border-color: var(--brand-primary);
}

/* ─── Product Grid ─── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
@media (max-width: 1200px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 480px) {
    .product-grid { gap: 12px; }
}

/* ─── Product Card ─── */
.product-card {
    display: flex;
    flex-direction: column;
    background: var(--brand-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
    height: 100%;
}
.product-card:hover {
    transform: translateY(-3px);
}

.product-card__media {
    position: relative;
    background: var(--brand-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: block;
    padding: 0;
    transition: background var(--transition);
}
.product-card:hover .product-card__media {
    background: #eef0ef;
}
.product-card__media > a {
    display: block;
    width: 100%;
    height: 100%;
}
.product-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    margin: 0;
    padding: 0;
    max-width: none;
    max-height: none;
    transition: transform var(--transition);
}
.product-card:hover .product-card__media img {
    transform: scale(1.05);
}

.product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 4px 10px;
    background: var(--brand-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.product-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 4px 0;
}

.product-card__category {
    font-size: 12px;
    letter-spacing: 0.5px;
    color: var(--brand-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
    font-weight: 500;
}
.product-card__category a {
    color: inherit;
    text-decoration: none;
}
.product-card__category a:hover { color: var(--brand-text); }

.product-card__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--brand-text);
    line-height: 1.35;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 768px) {
    .product-card__title { font-size: 14px; }
}
.product-card__title a {
    color: inherit;
    text-decoration: none;
}
.product-card__title a:hover { color: var(--brand-primary); }

.product-card__meta {
    font-size: 13px;
    color: var(--brand-muted);
    line-height: 1.5;
    margin-bottom: 4px;
    flex-shrink: 0;
}

/* ─── Product Card Price ─── */
.product-card__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
    margin-bottom: 4px;
}
.product-card__price-current {
    font-size: 17px;
    font-weight: 700;
    color: var(--brand-dark);
    line-height: 1.3;
}
.product-card__price-from {
    font-size: 13px;
    font-weight: 500;
    color: var(--brand-muted);
}
.product-card__price-old {
    font-size: 13px;
    font-weight: 500;
    color: var(--brand-muted);
    text-decoration: line-through;
    line-height: 1.3;
}
.product-card__price-contact {
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-muted);
    line-height: 1.3;
}

.product-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--brand-primary);
    text-decoration: none;
    padding: 8px 0;
    margin-top: auto;
    transition: color var(--transition);
}
.product-card__link .arrow {
    display: inline-block;
    transition: transform var(--transition);
}
.product-card__link:hover .arrow {
    transform: translateX(4px);
}

/* Product Card Fallback */
.product-card__fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-soft);
    color: #bbb;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    font-family: 'Montserrat', sans-serif;
}

/* ─── Pagination ─── */
.catalog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 40px 0;
}
.catalog-pagination a,
.catalog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    font-size: 14px;
    color: var(--brand-muted);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.catalog-pagination a:hover {
    background: var(--brand-soft);
    color: var(--brand-text);
}
.catalog-pagination .active {
    background: var(--brand-primary);
    color: #fff;
    font-weight: 500;
}
.catalog-pagination .disabled {
    opacity: 0.3;
    pointer-events: none;
}
.catalog-pagination .prev-next {
    font-size: 16px;
}

/* ─── SEO Content ─── */
.catalog-seo {
    padding: 60px 0 40px;
}
@media (max-width: 768px) {
    .catalog-seo { padding: 40px 0 24px; }
}
.catalog-seo h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--brand-dark);
    margin: 0 0 20px;
    line-height: 1.3;
}
@media (max-width: 768px) {
    .catalog-seo h2 { font-size: 22px; }
}
.catalog-seo h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--brand-text);
    margin: 32px 0 12px;
}
.catalog-seo p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--brand-muted);
    margin-bottom: 16px;
}

/* ─── Brand Value Section ─── */
.brand-values {
    padding: 60px 0;
    background: var(--brand-soft);
}
@media (max-width: 768px) {
    .brand-values { padding: 40px 0; }
}
.brand-values .section-label {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--brand-muted);
    margin-bottom: 32px;
    font-weight: 500;
    text-align: center;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
@media (max-width: 900px) {
    .values-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 480px) {
    .values-grid { grid-template-columns: 1fr; }
}
.value-item .value-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-primary);
    opacity: 0.3;
    margin-bottom: 8px;
}
.value-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--brand-text);
    margin: 0 0 8px;
}
.value-item p {
    font-size: 14px;
    color: var(--brand-muted);
    line-height: 1.6;
    margin: 0;
}

/* ─── Related Categories ─── */
.related-categories {
    padding: 60px 0 40px;
}
.related-categories h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--brand-dark);
    margin: 0 0 24px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 900px) {
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .related-grid { grid-template-columns: 1fr; }
}
.related-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--brand-soft);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition);
    border: 1px solid transparent;
}
.related-card:hover {
    background: var(--brand-white);
    border-color: var(--brand-border);
    transform: translateY(-2px);
}
.related-card .rc-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-text);
    margin-bottom: 2px;
}
.related-card .rc-count {
    font-size: 13px;
    color: var(--brand-muted);
}
.related-card .rc-arrow {
    margin-top: 8px;
    color: var(--brand-primary);
    font-size: 14px;
    transition: transform var(--transition);
}
.related-card:hover .rc-arrow {
    transform: translateX(4px);
}

/* ─── CTA Section ─── */
.catalog-cta {
    padding: 60px 0;
    background: var(--brand-dark);
    text-align: center;
}
.catalog-cta h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px;
}
@media (max-width: 768px) {
    .catalog-cta h2 { font-size: 22px; }
}
.catalog-cta p {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    margin: 0 0 24px;
    line-height: 1.6;
}
.catalog-cta .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: #fff;
    color: var(--brand-dark);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}
.catalog-cta .cta-btn:hover {
    background: var(--brand-soft);
    transform: translateY(-1px);
}

/* ─── Empty State ─── */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}
.empty-state .empty-icon {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
}
.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--brand-text);
    margin: 0 0 8px;
}
.empty-state p {
    font-size: 15px;
    color: var(--brand-muted);
    margin: 0 0 20px;
}
.empty-state .empty-btn {
    display: inline-flex;
    padding: 10px 24px;
    background: var(--brand-primary);
    color: #fff;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background var(--transition);
}
.empty-state .empty-btn:hover {
    background: var(--brand-dark);
}

/* ─── Category Description on Listing ─── */
.category-intro {
    padding: 0 0 24px;
}
.category-intro p {
    font-size: 15px;
    color: var(--brand-muted);
    line-height: 1.7;
    max-width: 720px;
    margin: 0;
}

/* ─── Section Divider ─── */
.section-divider {
    height: 1px;
    background: var(--brand-border);
    border: none;
    margin: 0;
}

/* ─── Responsive Helpers ─── */
@media (max-width: 480px) {
    .product-card__meta { display: none; }
    .product-card__body { padding: 12px 4px 0; }
}

/* ─── Reduce motion ─── */
@media (prefers-reduced-motion: reduce) {
    .product-card,
    .product-card__media img,
    .cat-card,
    .related-card,
    .product-card__link .arrow,
    .cat-card .cat-arrow,
    .related-card .rc-arrow,
    .home-hero__media img,
    .home-hero__track,
    .home-use-card {
        transition: none;
        transform: none;
    }
}

/* =============================================
 * HOMEPAGE STYLES
 * ============================================= */

/* ─── Container ─── */
.home-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}
@media (max-width: 768px) {
    .home-container { padding: 0 16px; }
}

/* ─── Home Hero (DB Banners) ─── */
.home-hero {
    position: relative;
    padding: 24px 0 8px;
}
@media (max-width: 768px) {
    .home-hero { padding: 12px 0 0; }
}
.home-hero .home-container { position: relative; }

.home-hero__viewport {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    min-height: 600px;
    background: var(--brand-soft);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}
@media (max-width: 1024px) {
    .home-hero__viewport { min-height: 480px; }
}
@media (max-width: 768px) {
    .home-hero__viewport { min-height: 520px; border-radius: 16px; }
}
@media (max-width: 480px) {
    .home-hero__viewport { min-height: 540px; }
}

.home-hero__track {
    display: flex;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

.home-hero__slide {
    position: relative;
    flex: 0 0 100%;
    min-width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--brand-soft);
}
@media (max-width: 1024px) {
    .home-hero__slide { min-height: 480px; }
}
@media (max-width: 768px) {
    .home-hero__slide { min-height: 520px; align-items: flex-end; }
}
@media (max-width: 480px) {
    .home-hero__slide { min-height: 540px; }
}

.home-hero__media {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.home-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: #000;
    pointer-events: none;
}
.home-hero--text-dark .home-hero__overlay {
    background: #fff;
}

.home-hero__content {
    position: relative;
    z-index: 3;
    max-width: 600px;
    padding: 48px;
    width: 100%;
}
.home-hero--align-center .home-hero__content {
    margin: 0 auto;
    text-align: center;
    max-width: 660px;
}
.home-hero--align-right .home-hero__content {
    margin-left: auto;
    text-align: right;
}
@media (max-width: 768px) {
    .home-hero__content { padding: 24px; }
}

.home-hero__eyebrow {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 18px;
    font-weight: 600;
    opacity: 0.85;
}
.home-hero__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 54px;
    font-weight: 700;
    line-height: 1.08;
    margin: 0 0 18px;
    letter-spacing: -0.5px;
}
.home-hero__description {
    font-size: 17px;
    line-height: 1.7;
    margin: 0;
    max-width: 560px;
    opacity: 0.92;
}
.home-hero--align-center .home-hero__description { margin-left: auto; margin-right: auto; }
.home-hero--align-right .home-hero__description { margin-left: auto; }

@media (max-width: 1024px) {
    .home-hero__title { font-size: 44px; }
}
@media (max-width: 768px) {
    .home-hero__title { font-size: 38px; margin-bottom: 14px; }
    .home-hero__description { font-size: 15px; }
}
@media (max-width: 480px) {
    .home-hero__title { font-size: 34px; }
}

/* Text themes */
.home-hero--text-light .home-hero__eyebrow,
.home-hero--text-light .home-hero__title,
.home-hero--text-light .home-hero__description { color: #fff; }
.home-hero--text-dark .home-hero__eyebrow,
.home-hero--text-dark .home-hero__title,
.home-hero--text-dark .home-hero__description { color: #111827; }

/* Fallback hero (no banners) */
.home-hero__slide--fallback {
    background: var(--brand-soft);
}
.home-hero__slide--fallback .home-hero__eyebrow,
.home-hero__slide--fallback .home-hero__title,
.home-hero__slide--fallback .home-hero__description {
    color: var(--brand-dark);
}
.home-hero__slide--fallback .home-hero__eyebrow { color: var(--brand-muted); }
.home-hero__slide--fallback .home-hero__description { color: var(--brand-muted); opacity: 1; }

/* CTA actions */
.home-hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 32px;
}
.home-hero__btn-primary,
.home-hero__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 32px;
    min-height: 50px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all var(--transition);
}
.home-hero__btn-primary:hover,
.home-hero__btn-secondary:hover { transform: translateY(-1px); }

.home-hero--text-light .home-hero__btn-primary {
    background: var(--brand-primary);
    color: #fff;
}
.home-hero--text-light .home-hero__btn-primary:hover { background: var(--brand-dark); }
.home-hero--text-light .home-hero__btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
}
.home-hero--text-light .home-hero__btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: #fff;
}

.home-hero--text-dark .home-hero__btn-primary {
    background: #111827;
    color: #fff;
}
.home-hero--text-dark .home-hero__btn-primary:hover { background: #000; }
.home-hero--text-dark .home-hero__btn-secondary {
    background: rgba(255, 255, 255, 0.55);
    color: #111827;
    border: 1px solid rgba(17, 24, 39, 0.35);
}
.home-hero--text-dark .home-hero__btn-secondary:hover { background: rgba(255, 255, 255, 0.85); }

.home-hero__slide--fallback .home-hero__btn-primary {
    background: var(--brand-primary);
    color: #fff;
}
.home-hero__slide--fallback .home-hero__btn-primary:hover { background: var(--brand-dark); }
.home-hero__slide--fallback .home-hero__btn-secondary {
    background: transparent;
    color: var(--brand-text);
    border: 1px solid var(--brand-border);
}
.home-hero__slide--fallback .home-hero__btn-secondary:hover { border-color: var(--brand-text); }

/* Slider dots */
.home-hero__dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 8px;
}
.home-hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}
.home-hero__dot.is-active {
    background: #fff;
    width: 24px;
    border-radius: 99px;
}
@media (max-width: 768px) {
    .home-hero__dots { bottom: 16px; }
}

/* Slider arrows */
.home-hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.home-hero__arrow:hover { background: rgba(255, 255, 255, 0.25); }
.home-hero__arrow--prev { left: 20px; }
.home-hero__arrow--next { right: 20px; }
@media (max-width: 768px) {
    .home-hero__arrow { display: none; }
}

/* ─── Home Categories ─── */
.home-categories {
    padding: 80px 0;
}
@media (max-width: 768px) {
    .home-categories { padding: 48px 0; }
}
.home-categories__label {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--brand-muted);
    font-weight: 500;
    margin-bottom: 8px;
}
.home-categories h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: var(--brand-dark);
    margin: 0 0 12px;
    line-height: 1.2;
}
@media (max-width: 768px) {
    .home-categories h2 { font-size: 28px; }
}
.home-categories__desc {
    font-size: 16px;
    color: var(--brand-muted);
    line-height: 1.6;
    margin: 0 0 32px;
    max-width: 600px;
}
.home-cat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
@media (max-width: 1024px) {
    .home-cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .home-cat-grid {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }
    .home-cat-grid::-webkit-scrollbar { display: none; }
}

/* ─── Home Featured Products ─── */
.home-featured {
    padding: 80px 0;
    background: var(--brand-white);
}
@media (max-width: 768px) {
    .home-featured { padding: 48px 0; }
}
.home-featured__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    gap: 16px;
}
@media (max-width: 768px) {
    .home-featured__header { flex-direction: column; align-items: flex-start; }
}
.home-featured__label {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--brand-muted);
    font-weight: 500;
    margin-bottom: 4px;
}
.home-featured h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: var(--brand-dark);
    margin: 0;
    line-height: 1.2;
}
@media (max-width: 768px) {
    .home-featured h2 { font-size: 28px; }
}
.home-featured__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--brand-primary);
    text-decoration: none;
    white-space: nowrap;
    transition: gap var(--transition);
}
.home-featured__link:hover { gap: 10px; }

.home-featured .product-grid {
    padding: 0;
}

/* ─── Home Brand Story ─── */
.home-brand {
    padding: 80px 0;
    background: var(--brand-soft);
}
@media (max-width: 768px) {
    .home-brand { padding: 48px 0; }
}
.home-brand__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
@media (max-width: 900px) {
    .home-brand__grid { grid-template-columns: 1fr; gap: 32px; }
}
.home-brand__media {
    display: flex;
    align-items: center;
    justify-content: center;
}
.home-brand__media img {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 20px;
    background: #fff;
    border-radius: var(--radius-lg);
}
.home-brand__content {
    max-width: 520px;
}
.home-brand__label {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--brand-muted);
    font-weight: 500;
    margin-bottom: 12px;
}
.home-brand h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 34px;
    font-weight: 600;
    color: var(--brand-dark);
    line-height: 1.2;
    margin: 0 0 16px;
}
@media (max-width: 768px) {
    .home-brand h2 { font-size: 26px; }
}
.home-brand p {
    font-size: 16px;
    color: var(--brand-muted);
    line-height: 1.8;
    margin: 0 0 24px;
}
.home-brand__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--brand-primary);
    text-decoration: none;
}
.home-brand__btn:hover { gap: 10px; }

/* ─── About Hero (DB Banner: position = about_hero) ─── */
.about-hero {
    position: relative;
    padding: 80px 0;
    background: var(--brand-soft);
    overflow: hidden;
}
.about-hero.has-image {
    padding: 0;
    background: #1f2927;
}
.about-hero__bg {
    position: absolute;
    inset: 0;
}
.about-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.about-hero__overlay {
    position: absolute;
    inset: 0;
    background: #000;
}
.about-hero__content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 40px 0;
    color: #fff;
}
.about-hero.has-image .about-hero__content {
    padding: 96px 0;
    color: #fff;
}
.about-hero__content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 34px;
    font-weight: 800;
    color: inherit;
    line-height: 1.2;
    margin: 0 0 16px;
    letter-spacing: 1px;
}
.about-hero__content p {
    font-size: 16px;
    line-height: 1.8;
    color: inherit;
    opacity: 0.92;
    margin: 0 0 24px;
}
.about-hero__content.is-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.about-hero__content.is-center .about-hero__actions {
    justify-content: center;
}
.about-hero__content.is-dark {
    color: #111827;
}
.about-hero__content.is-dark p {
    color: #374151;
    opacity: 1;
}
.about-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.about-hero__btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    background: var(--brand-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}
.about-hero__btn-primary:hover {
    background: var(--brand-dark);
}
.about-hero__btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}
.about-hero__btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}
.about-hero__content.is-dark .about-hero__btn-secondary {
    background: transparent;
    border-color: #111827;
    color: #111827;
}
@media (max-width: 767px) {
    .about-hero.has-image .about-hero__content {
        padding: 60px 0;
    }
    .about-hero__content h1 {
        font-size: 26px;
    }
}

/* ─── Home Use Cases ─── */
.home-use-cases {
    padding: 80px 0;
    background: var(--brand-white);
}
@media (max-width: 768px) {
    .home-use-cases { padding: 48px 0; }
}
.home-use-cases__label {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--brand-muted);
    font-weight: 500;
    margin-bottom: 8px;
    text-align: center;
}
.home-use-cases h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 34px;
    font-weight: 600;
    color: var(--brand-dark);
    margin: 0 auto 40px;
    text-align: center;
    max-width: 600px;
    line-height: 1.2;
}
@media (max-width: 768px) {
    .home-use-cases h2 { font-size: 26px; margin-bottom: 32px; }
}
.home-use-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 900px) {
    .home-use-grid { grid-template-columns: 1fr; gap: 20px; }
}
.home-use-card {
    display: flex;
    flex-direction: column;
    padding: 32px;
    background: var(--brand-soft);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}
.home-use-card:hover {
    transform: translateY(-3px);
}
.home-use-card .use-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-primary);
    opacity: 0.3;
    margin-bottom: 16px;
}
.home-use-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--brand-text);
    margin: 0 0 8px;
}
.home-use-card p {
    font-size: 14px;
    color: var(--brand-muted);
    line-height: 1.6;
    margin: 0 0 20px;
    flex: 1;
}
.home-use-card .use-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--brand-primary);
    text-decoration: none;
}
.home-use-card:hover .use-link { gap: 10px; }

/* ─── Home Values ─── */
.home-values {
    padding: 80px 0;
    background: var(--brand-soft);
}
@media (max-width: 768px) {
    .home-values { padding: 48px 0; }
}
.home-values__label {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--brand-muted);
    font-weight: 500;
    margin-bottom: 40px;
    text-align: center;
}
.home-values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
@media (max-width: 900px) {
    .home-values-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 480px) {
    .home-values-grid { grid-template-columns: 1fr; }
}
.home-value-item .val-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-primary);
    opacity: 0.25;
    margin-bottom: 12px;
}
.home-value-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--brand-text);
    margin: 0 0 8px;
}
.home-value-item p {
    font-size: 14px;
    color: var(--brand-muted);
    line-height: 1.6;
    margin: 0;
}

/* ─── Home Journal ─── */
.home-journal {
    padding: 80px 0;
    background: var(--brand-white);
}
@media (max-width: 768px) {
    .home-journal { padding: 48px 0; }
}
.home-journal__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    gap: 16px;
}
@media (max-width: 768px) {
    .home-journal__header { flex-direction: column; align-items: flex-start; }
}
.home-journal__label {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--brand-muted);
    font-weight: 500;
    margin-bottom: 4px;
}
.home-journal h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 34px;
    font-weight: 600;
    color: var(--brand-dark);
    margin: 0;
    line-height: 1.2;
}
@media (max-width: 768px) {
    .home-journal h2 { font-size: 26px; }
}
.home-journal__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--brand-primary);
    text-decoration: none;
    white-space: nowrap;
    transition: gap var(--transition);
}
.home-journal__link:hover { gap: 10px; }

.home-article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 900px) {
    .home-article-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .home-article-grid { grid-template-columns: 1fr; }
}

.home-article-card {
    display: flex;
    flex-direction: column;
    background: var(--brand-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
    border: 1px solid var(--brand-border);
}
.home-article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}
.home-article-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--brand-soft);
}
.home-article-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}
.home-article-card:hover .home-article-card__media img {
    transform: scale(1.05);
}
.home-article-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.home-article-card__date {
    font-size: 12px;
    color: var(--brand-muted);
    margin-bottom: 6px;
}
.home-article-card__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--brand-text);
    line-height: 1.35;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-article-card__title a {
    color: inherit;
    text-decoration: none;
}
.home-article-card__title a:hover { color: var(--brand-primary); }
.home-article-card__excerpt {
    font-size: 13px;
    color: var(--brand-muted);
    line-height: 1.6;
    margin: 0 0 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-article-card__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--brand-primary);
    text-decoration: none;
    margin-top: auto;
}
.home-article-card:hover .home-article-card__link { gap: 8px; }

/* ─── Home SEO ─── */
.home-seo {
    padding: 60px 0;
    background: var(--brand-soft);
}
@media (max-width: 768px) {
    .home-seo { padding: 40px 0; }
}
.home-seo__inner {
    max-width: 860px;
    margin: 0 auto;
}
.home-seo h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--brand-dark);
    margin: 0 0 24px;
    line-height: 1.3;
}
@media (max-width: 768px) {
    .home-seo h2 { font-size: 22px; }
}
.home-seo p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--brand-muted);
    margin-bottom: 16px;
}
.home-seo a {
    color: var(--brand-primary);
    text-decoration: underline;
}
.home-seo a:hover { color: var(--brand-dark); }

/* ─── Home CTA ─── */
.home-cta {
    padding: 80px 0;
    background: var(--brand-dark);
    text-align: center;
}
@media (max-width: 768px) {
    .home-cta { padding: 56px 0; }
}
.home-cta__label {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
    margin-bottom: 16px;
}
.home-cta h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.2;
}
@media (max-width: 768px) {
    .home-cta h2 { font-size: 28px; }
}
.home-cta p {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    margin: 0 0 32px;
    line-height: 1.6;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.home-cta__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.home-cta__btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: #fff;
    color: var(--brand-dark);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}
.home-cta__btn-primary:hover {
    background: var(--brand-soft);
    transform: translateY(-1px);
}
.home-cta__btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all var(--transition);
}
.home-cta__btn-secondary:hover {
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-1px);
}

/* =============================================
 * PRODUCT DETAIL STYLES
 * ============================================= */

.product-detail-wrap {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}
@media (max-width: 768px) {
    .product-detail-wrap { padding: 0 16px; }
}

/* Breadcrumb */
.detail-breadcrumb {
    padding: 20px 0 12px;
    font-size: 13px;
    color: var(--brand-muted);
}
.detail-breadcrumb a {
    color: var(--brand-muted);
    text-decoration: none;
    transition: color var(--transition);
}
.detail-breadcrumb a:hover { color: var(--brand-text); }
.detail-breadcrumb .sep { margin: 0 8px; color: #d0d4d2; }
.detail-breadcrumb .current { color: var(--brand-text); font-weight: 500; }

/* Main Section */
.product-detail-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding: 24px 0 80px;
    align-items: start;
}
@media (max-width: 1024px) {
    .product-detail-main { grid-template-columns: 1fr; gap: 40px; padding: 16px 0 56px; }
}

/* Gallery */
.detail-gallery {
    position: sticky;
    top: 24px;
}
@media (max-width: 1024px) {
    .detail-gallery { position: static; }
}
.detail-gallery__main {
    position: relative;
    background: var(--brand-soft);
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: block;
    padding: 0;
    cursor: pointer;
}
.detail-gallery__main img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    margin: 0;
    padding: 0;
    max-width: none;
    max-height: none;
    transition: transform var(--transition);
}
.detail-gallery__main:hover img {
    transform: scale(1.03);
}
.detail-gallery__main .badge-featured {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 4px 12px;
    background: var(--brand-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 4px;
}
.detail-gallery__main .badge-featured i { display: none; }

/* Thumbnails */
.detail-gallery__thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.detail-gallery__thumbs::-webkit-scrollbar { height: 2px; }
.detail-gallery__thumbs::-webkit-scrollbar-thumb { background: var(--brand-border); border-radius: 4px; }
.detail-thumb {
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--brand-soft);
    display: block;
    padding: 0;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
}
.detail-thumb:hover { border-color: var(--brand-border); }
.detail-thumb.active { border-color: var(--brand-primary); }
.detail-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    margin: 0;
    max-width: none;
    max-height: none;
}

/* Merged-gallery thumbnails (button semantics) */
.product-gallery-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-border) transparent;
}
.product-gallery-thumbnails::-webkit-scrollbar { height: 2px; }
.product-gallery-thumbnails::-webkit-scrollbar-thumb { background: var(--brand-border); border-radius: 4px; }
.product-gallery-thumbnail {
    flex-shrink: 0;
    position: relative;
    width: 76px;
    height: 76px;
    padding: 0;
    border: 1px solid #e5e5df;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    opacity: .72;
    transition: border-color var(--transition), box-shadow var(--transition), opacity var(--transition);
}
.product-gallery-thumbnail:hover { border-color: var(--brand-border); opacity: .9; }
.product-gallery-thumbnail.is-active {
    border-color: #17201c;
    box-shadow: 0 0 0 2px rgba(23, 32, 28, .12);
    opacity: 1;
}
.product-gallery-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.product-gallery-thumbnail__badge {
    position: absolute;
    left: 4px;
    bottom: 4px;
    max-width: calc(100% - 8px);
    padding: 1px 6px;
    font-size: 10px;
    line-height: 1.4;
    font-weight: 600;
    color: #fff;
    background: rgba(23, 32, 28, .72);
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}
@media (max-width: 767px) {
    .product-gallery-thumbnail { width: 64px; height: 64px; }
}

/* Fallback */
.detail-fallback {
    aspect-ratio: 1 / 1;
    background: var(--brand-soft);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 64px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

/* Product Info */
.detail-info {
    display: flex;
    flex-direction: column;
}
.detail-info__category {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brand-muted);
    margin-bottom: 12px;
    font-weight: 500;
}
.detail-info__category a {
    color: inherit;
    text-decoration: none;
}
.detail-info__category a:hover { color: var(--brand-text); }
.detail-info h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--brand-dark);
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: -0.3px;
}
@media (max-width: 768px) {
    .detail-info h1 { font-size: 30px; }
}
.detail-info__intro {
    font-size: 17px;
    color: var(--brand-muted);
    line-height: 1.7;
    margin: 0 0 24px;
}

/* Meta Grid */
.detail-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid var(--brand-border);
    border-bottom: 1px solid var(--brand-border);
    margin-bottom: 24px;
}
@media (max-width: 480px) {
    .detail-meta { grid-template-columns: 1fr; gap: 12px; }
}
.detail-meta__item {
    display: flex;
    flex-direction: column;
}
.detail-meta__label {
    font-size: 12px;
    color: var(--brand-muted);
    margin-bottom: 2px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.detail-meta__value {
    font-size: 15px;
    color: var(--brand-text);
    font-weight: 500;
}

/* CTA */
.detail-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0 0;
}
.detail-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--brand-primary);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}
.detail-actions .btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}
.detail-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: transparent;
    color: var(--brand-muted);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--brand-border);
    transition: all var(--transition);
}
.detail-actions .btn-secondary:hover {
    color: var(--brand-text);
    border-color: var(--brand-text);
}
.detail-actions .btn-shopee {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: transparent;
    color: #ee4d2d;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #ee4d2d;
    transition: all var(--transition);
}
.detail-actions .btn-shopee:hover {
    background: #ee4d2d;
    color: #fff;
}

/* Brand Value Strip */
.detail-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px 0 0;
}
@media (max-width: 480px) {
    .detail-values { grid-template-columns: 1fr; gap: 12px; }
}
.detail-values__item {
    font-size: 13px;
    color: var(--brand-muted);
    line-height: 1.5;
}
.detail-values__item strong {
    color: var(--brand-text);
    display: block;
    font-weight: 600;
}
/* ─── Description Section ─── */
.detail-description {
    padding: 80px 0;
    background: var(--brand-soft);
}
@media (max-width: 768px) {
    .detail-description { padding: 56px 0; }
}
.detail-description__inner {
    max-width: 1000px;
    margin: 0 auto;
}
.detail-description__header {
    margin-bottom: 32px;
}
.detail-description__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    font-weight: 600;
    color: var(--brand-dark);
    margin: 0 0 8px;
    line-height: 1.2;
}
@media (max-width: 768px) {
    .detail-description__title { font-size: 26px; }
}
.detail-description__sub {
    font-size: 15px;
    color: var(--brand-muted);
    margin: 0;
    max-width: 620px;
    line-height: 1.6;
}

/* Content Panel */
.detail-description__panel {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 18px;
    padding: 44px 48px;
}
@media (max-width: 1024px) {
    .detail-description__panel { padding: 32px; }
}
@media (max-width: 480px) {
    .detail-description__panel { padding: 22px 24px; border-radius: 14px; }
}

/* Rich Content Typography */
.product-rich-content {
    max-width: 840px;
}
.product-rich-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--brand-dark);
    line-height: 1.3;
    margin: 0 0 16px;
}
.product-rich-content h2:not(:first-child) {
    margin-top: 38px;
}
.product-rich-content h3 {
    font-size: 19px;
    font-weight: 600;
    color: var(--brand-dark);
    line-height: 1.4;
    margin: 30px 0 12px;
}
.product-rich-content p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--brand-text);
    margin-bottom: 16px;
}
.product-rich-content h2:first-child + p {
    font-size: 17px;
    color: var(--brand-text);
}

/* Lists */
.product-rich-content ul,
.product-rich-content ol {
    list-style: none;
    padding: 0;
    margin: 14px 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.product-rich-content ul li,
.product-rich-content ol li {
    position: relative;
    padding-left: 20px;
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--brand-text);
}
.product-rich-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-primary);
    opacity: 0.5;
}
.product-rich-content ol {
    counter-reset: item;
}
.product-rich-content ol li {
    counter-increment: item;
    padding-left: 24px;
}
.product-rich-content ol li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 600;
    color: var(--brand-primary);
    font-size: 14px;
}

/* Links */
.product-rich-content a {
    color: var(--brand-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition);
}
.product-rich-content a:hover {
    color: var(--brand-dark);
}

/* Images */
.product-rich-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    margin: 28px 0;
}

/* Blockquote */
.product-rich-content blockquote {
    border-left: 3px solid var(--brand-primary);
    background: var(--brand-soft);
    padding: 16px 24px;
    margin: 24px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--brand-muted);
    line-height: 1.7;
}

/* Table */
.product-rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    overflow-x: auto;
    display: block;
}
.product-rich-content table th,
.product-rich-content table td {
    padding: 10px 14px;
    border: 1px solid var(--brand-border);
    text-align: left;
    font-size: 14px;
}
.product-rich-content table th {
    background: var(--brand-soft);
    font-weight: 600;
}

/* Strong */
.product-rich-content strong {
    font-weight: 600;
}

/* Specs Section */
.detail-specs {
    padding: 64px 0;
}
@media (max-width: 768px) {
    .detail-specs { padding: 48px 0; }
}
.detail-specs__header {
    margin-bottom: 32px;
}
.detail-specs__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--brand-dark);
    margin: 0 0 6px;
}
@media (max-width: 768px) {
    .detail-specs__title { font-size: 22px; }
}
.detail-specs__sub {
    font-size: 14px;
    color: var(--brand-muted);
    margin: 0;
}

/* Spec Grid */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--brand-soft);
    border-radius: 16px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}
@media (max-width: 767px) {
    .specs-grid { grid-template-columns: 1fr; }
}
.specs-grid__item {
    display: flex;
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--brand-border);
    border-right: 1px solid var(--brand-border);
}
@media (max-width: 767px) {
    .specs-grid__item { border-right: none; }
}
.specs-grid__item:nth-last-child(-n+2) {
    border-bottom: none;
}
@media (max-width: 767px) {
    .specs-grid__item:last-child { border-bottom: none; }
}
.specs-grid__item:nth-child(even) {
    border-right: none;
}
.specs-grid__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--brand-muted);
    margin: 0 0 4px;
}
.specs-grid__value {
    font-size: 16px;
    font-weight: 500;
    color: var(--brand-text);
    margin: 0;
}
.specs-grid__value a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color var(--transition);
}
.specs-grid__value a:hover { color: var(--brand-dark); }

/* Related Section */
.detail-related {
    padding: 64px 0;
    background: var(--brand-soft);
}
@media (max-width: 768px) {
    .detail-related { padding: 48px 0; }
}
.detail-related__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    gap: 16px;
}
@media (max-width: 768px) {
    .detail-related__header { flex-direction: column; align-items: flex-start; }
}
.detail-related h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--brand-dark);
    margin: 0 0 4px;
}
@media (max-width: 768px) {
    .detail-related h2 { font-size: 22px; }
}
.detail-related__desc {
    font-size: 14px;
    color: var(--brand-muted);
    margin: 0;
}
.detail-related__desc a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 500;
}
.detail-related__desc a:hover { color: var(--brand-dark); }
.detail-related__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--brand-primary);
    text-decoration: none;
    white-space: nowrap;
    transition: gap var(--transition);
    flex-shrink: 0;
}
.detail-related__cta:hover { gap: 10px; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
@media (max-width: 1100px) {
    .related-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
    .related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
.detail-related .product-grid { padding: 0; }

/* Knowledge Section */
.detail-knowledge {
    padding: 60px 0;
}
@media (max-width: 768px) {
    .detail-knowledge { padding: 40px 0; }
}
.detail-knowledge h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--brand-dark);
    margin: 0 0 32px;
}
.detail-knowledge .home-article-grid { padding: 0; }

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    .detail-gallery__main img,
    .detail-thumb {
        transition: none;
    }
}

/* ─── Contact Page ─── */

/* Hero */
.contact-hero {
    padding: 56px 0 48px;
    background: #fff;
}
@media (max-width: 768px) {
    .contact-hero { padding: 40px 0 32px; }
}
.contact-hero__eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brand-muted);
    margin: 0 0 16px;
}
.contact-hero__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 44px;
    font-weight: 600;
    color: var(--brand-dark);
    margin: 0 0 16px;
    line-height: 1.15;
    max-width: 780px;
}
@media (max-width: 1024px) {
    .contact-hero__title { font-size: 38px; }
}
@media (max-width: 768px) {
    .contact-hero__title { font-size: 32px; }
}
@media (max-width: 430px) {
    .contact-hero__title { font-size: 28px; }
}
.contact-hero__desc {
    font-size: 17px;
    line-height: 1.7;
    color: var(--brand-muted);
    margin: 0;
    max-width: 680px;
}
@media (max-width: 768px) {
    .contact-hero__desc { font-size: 15px; }
}

/* Contact Main Section */
.contact-main {
    padding: 72px 0;
    background: var(--brand-soft);
}
@media (max-width: 768px) {
    .contact-main { padding: 48px 0; }
}

/* Layout 2 columns */
.contact-layout {
    display: grid;
    grid-template-columns: 36% 1fr;
    gap: 64px;
    align-items: start;
}
@media (max-width: 992px) {
    .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}

/* ─── Left Info ─── */
.contact-info__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--brand-dark);
    margin: 0 0 16px;
    line-height: 1.2;
}
@media (max-width: 768px) {
    .contact-info__title { font-size: 24px; }
}
.contact-info__desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--brand-muted);
    margin: 0 0 28px;
}
.contact-info__items {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 28px;
}
.contact-info__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.contact-info__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--brand-muted);
}
.contact-info__value {
    font-size: 16px;
    font-weight: 500;
    color: var(--brand-text);
    text-decoration: none;
    transition: color var(--transition);
}
a.contact-info__value:hover {
    color: var(--brand-primary);
}

/* Social */
.contact-social {
    margin-bottom: 28px;
}
.contact-social__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--brand-muted);
    margin: 0 0 12px;
}
.contact-social__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.contact-social__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--brand-text);
    text-decoration: none;
    padding: 6px 16px;
    border: 1px solid var(--brand-border);
    border-radius: 20px;
    transition: all var(--transition);
}
.contact-social__link:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

/* CTA Link */
.contact-info__cta {
    margin-top: 4px;
}
.contact-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 500;
    color: var(--brand-primary);
    text-decoration: none;
    transition: gap var(--transition);
}
.contact-cta-link:hover {
    gap: 10px;
    color: var(--brand-dark);
}

/* ─── Form Card ─── */
.contact-form-card {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-lg);
    padding: 44px 48px 48px;
}
@media (max-width: 1024px) {
    .contact-form-card { padding: 36px 32px 40px; }
}
@media (max-width: 480px) {
    .contact-form-card { padding: 24px 22px 28px; border-radius: var(--radius-md); }
}

.contact-form-card__header {
    margin-bottom: 32px;
}
.contact-form-card__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--brand-dark);
    margin: 0 0 8px;
}
.contact-form-card__desc {
    font-size: 14px;
    color: var(--brand-muted);
    margin: 0;
    line-height: 1.6;
}

/* Form Grid */
.contact-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
    margin-bottom: 28px;
}
@media (max-width: 767px) {
    .contact-form__grid { grid-template-columns: 1fr; }
}
.contact-field--full {
    grid-column: 1 / -1;
}

/* Field */
.contact-field__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-text);
    margin-bottom: 8px;
}
.contact-field__label .required {
    color: var(--brand-muted);
    font-weight: 400;
}
.contact-field__input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    font-family: inherit;
    font-size: 15px;
    color: var(--brand-text);
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 10px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    box-sizing: border-box;
}
.contact-field__input::placeholder {
    color: #b0b5b2;
}
.contact-field__input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(31, 41, 39, 0.08);
}
.contact-field__input.is-error {
    border-color: #c0392b;
}
.contact-field__textarea {
    width: 100%;
    min-height: 160px;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 15px;
    color: var(--brand-text);
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 10px;
    outline: none;
    resize: vertical;
    transition: border-color var(--transition), box-shadow var(--transition);
    box-sizing: border-box;
    line-height: 1.6;
}
@media (max-width: 767px) {
    .contact-field__textarea { min-height: 140px; }
}
.contact-field__textarea::placeholder {
    color: #b0b5b2;
}
.contact-field__textarea:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(31, 41, 39, 0.08);
}
.contact-field__textarea.is-error {
    border-color: #c0392b;
}

/* Field Error */
.contact-field__error {
    font-size: 12px;
    color: #c0392b;
    margin: 6px 0 0;
    line-height: 1.4;
}

/* Submit Button */
.contact-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 50px;
    padding: 0 28px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--brand-dark);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}
.contact-submit:hover {
    background: var(--brand-primary);
    transform: translateY(-1px);
}
.contact-submit:active {
    transform: translateY(0);
}
@media (max-width: 767px) {
    .contact-submit { width: 100%; justify-content: center; }
}

/* Success State */
.contact-success {
    text-align: center;
    padding: 48px 20px;
}
.contact-success__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--brand-dark);
    margin: 0 0 12px;
}
.contact-success__desc {
    font-size: 15px;
    color: var(--brand-muted);
    margin: 0;
    line-height: 1.7;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Article Detail Page ─── */

/* Article Hero */
.article-hero {
    padding: 48px 0 8px;
    background: #fff;
}
@media (max-width: 768px) {
    .article-hero { padding: 36px 0 8px; }
}
.article-hero__inner {
    max-width: 900px;
}
.article-hero__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--brand-muted);
    text-decoration: none;
    margin-bottom: 16px;
    transition: color var(--transition);
}
.article-hero__eyebrow:hover {
    color: var(--brand-primary);
}
.article-hero__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 600;
    color: var(--brand-dark);
    line-height: 1.12;
    margin: 0 0 20px;
}
@media (max-width: 1024px) {
    .article-hero__title { font-size: 40px; }
}
@media (max-width: 768px) {
    .article-hero__title { font-size: 34px; }
}
@media (max-width: 430px) {
    .article-hero__title { font-size: 30px; }
}
.article-hero__excerpt {
    font-size: 19px;
    line-height: 1.65;
    color: var(--brand-muted);
    margin: 0 0 20px;
    max-width: 760px;
}
@media (max-width: 768px) {
    .article-hero__excerpt { font-size: 17px; }
}
.article-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 14px;
    color: var(--brand-muted);
}
.article-hero__date {
    color: var(--brand-muted);
}
.article-hero__reading {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.article-hero__reading::before {
    content: '·';
    margin-right: 4px;
    font-weight: 700;
}

/* Featured Image */
.article-featured {
    padding: 32px 0 0;
    background: #fff;
}
.article-featured__media {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--brand-soft);
}
.article-featured__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (max-width: 768px) {
    .article-featured__media { border-radius: 14px; }
}

/* Article Body */
.article-body {
    padding: 56px 0 72px;
    background: #fff;
}
@media (max-width: 768px) {
    .article-body { padding: 40px 0 56px; }
}

/* Reading Layout: Content + Sidebar */
.article-reading-layout {
    display: grid;
    grid-template-columns: minmax(0, 800px) minmax(260px, 290px);
    gap: 64px;
    align-items: start;
    justify-content: center;
}
.article-reading-layout--full {
    grid-template-columns: minmax(0, 820px);
}
@media (max-width: 1100px) {
    .article-reading-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 820px;
    }
}

/* Main Article Content */
.article-content {
    min-width: 0;
    font-size: 17px;
    line-height: 1.8;
    color: var(--brand-text);
}

/* ─── Sidebar ─── */
.article-sidebar {
    min-width: 0;
}

/* Sidebar TOC */
.sidebar-toc {
    padding-bottom: 28px;
    border-bottom: 1px solid var(--brand-border);
}
@media (max-width: 1100px) {
    .sidebar-toc {
        background: var(--brand-soft);
        border: none;
        border-radius: 12px;
        padding: 20px 22px;
        margin-bottom: 32px;
    }
}
.sidebar-toc__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-dark);
    margin: 0 0 18px;
}
.sidebar-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sidebar-toc__item {
    line-height: 1.4;
}
.sidebar-toc__item--level-3 {
    padding-left: 20px;
}
.sidebar-toc__link {
    display: inline-flex;
    gap: 8px;
    font-size: 14px;
    color: var(--brand-muted);
    text-decoration: none;
    transition: color var(--transition);
    line-height: 1.5;
}
.sidebar-toc__link:hover {
    color: var(--brand-primary);
}
.sidebar-toc__num {
    font-size: 11px;
    font-weight: 500;
    color: #c5c9c7;
    min-width: 20px;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}
.sidebar-toc__text {
    flex: 1;
}

/* Sidebar Related */
.sidebar-related {
    padding-top: 28px;
}
@media (max-width: 1100px) {
    .sidebar-related {
        padding-top: 0;
    }
}
.sidebar-related__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-dark);
    margin: 0 0 18px;
}
.sidebar-related__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.sidebar-related__item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--brand-border);
    align-items: flex-start;
}
.sidebar-related__item:first-child {
    padding-top: 0;
}
.sidebar-related__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.sidebar-related__thumb {
    flex-shrink: 0;
    width: 88px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--brand-soft);
    display: block;
    text-decoration: none;
}
.sidebar-related__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sidebar-related__info {
    flex: 1;
    min-width: 0;
}
.sidebar-related__date {
    font-size: 11px;
    color: var(--brand-muted);
    display: block;
    margin-bottom: 4px;
}
.sidebar-related__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-dark);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sidebar-related__title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}
.sidebar-related__title a:hover {
    color: var(--brand-primary);
}
.sidebar-related__all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-dark);
    text-decoration: none;
}

/* ═══ ARTICLE PROSE — editorial content (scoped, Quill-compatible) ═══
   Everything here is scoped under .article-rich-content — no global resets. */
.article-rich-content {
    font-size: 18px;
    line-height: 1.8;
    color: #30332f;
    letter-spacing: 0;
    overflow-wrap: break-word;
    word-break: normal;
    -webkit-font-smoothing: antialiased;
}
.article-rich-content > :first-child { margin-top: 0; }
.article-rich-content > :last-child { margin-bottom: 0; }

/* ── Headings ── */
.article-rich-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #171b18;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin: 1.8em 0 0.65em;
    scroll-margin-top: 120px;
}
.article-rich-content h2:first-child { margin-top: 0; }
.article-rich-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 23px;
    font-weight: 650;
    color: #171b18;
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin: 1.5em 0 0.55em;
    scroll-margin-top: 120px;
}
.article-rich-content h4 {
    font-size: 19px;
    font-weight: 700;
    color: #171b18;
    line-height: 1.4;
    margin: 1.4em 0 0.5em;
    scroll-margin-top: 120px;
}
.article-rich-content h5,
.article-rich-content h6 {
    font-size: 17px;
    font-weight: 700;
    color: #171b18;
    line-height: 1.45;
    margin: 1.3em 0 0.5em;
    scroll-margin-top: 120px;
}

/* ── Paragraphs (main-style.css global `p{margin-bottom:15px}` is overridden) ── */
.article-rich-content p {
    margin: 0 0 1.15em;
    line-height: 1.8;
}
.article-rich-content p:last-child { margin-bottom: 0; }

/* ── Strong / em / u ── */
.article-rich-content strong { font-weight: 700; }
.article-rich-content em { font-style: italic; }
.article-rich-content u { text-decoration: underline; text-underline-offset: 2px; }

/* ── Links ── */
.article-rich-content a {
    color: var(--brand-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color var(--transition);
}
.article-rich-content a:hover { color: var(--brand-dark); }
.article-rich-content a:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ── Lists — main-style.css sets `ul,ol{list-style:none}`, restore here ── */
.article-rich-content ul,
.article-rich-content ol {
    margin: 0 0 1.25em;
    padding-left: 1.5em;
}
.article-rich-content ul { list-style: disc; }
.article-rich-content ol { list-style: decimal; }
.article-rich-content li {
    margin-bottom: 0.55em;
    line-height: 1.75;
    padding-left: 0.15em;
}
.article-rich-content li:last-child { margin-bottom: 0; }
.article-rich-content li > ul,
.article-rich-content li > ol { margin-top: 0.4em; }

/* ── Quill indent (scoped) ── */
.article-rich-content .ql-indent-1 { margin-left: 2em; }
.article-rich-content .ql-indent-2 { margin-left: 4em; }
.article-rich-content .ql-indent-3 { margin-left: 6em; }
.article-rich-content .ql-indent-4 { margin-left: 8em; }
.article-rich-content .ql-indent-5 { margin-left: 10em; }
.article-rich-content .ql-indent-6 { margin-left: 12em; }
.article-rich-content .ql-indent-7 { margin-left: 14em; }
.article-rich-content .ql-indent-8 { margin-left: 16em; }
@media (max-width: 767px) {
    .article-rich-content .ql-indent-1 { margin-left: 1.2em; }
    .article-rich-content .ql-indent-2 { margin-left: 2.4em; }
    .article-rich-content .ql-indent-3 { margin-left: 3.6em; }
    .article-rich-content .ql-indent-4,
    .article-rich-content .ql-indent-5,
    .article-rich-content .ql-indent-6,
    .article-rich-content .ql-indent-7,
    .article-rich-content .ql-indent-8 { margin-left: 4.5em; }
}

/* ── Quill alignment (scoped) ── */
.article-rich-content .ql-align-center { text-align: center; }
.article-rich-content .ql-align-right { text-align: right; }
.article-rich-content .ql-align-justify { text-align: justify; }

/* ── Quill size (scoped) ── */
.article-rich-content .ql-size-small { font-size: 0.875em; }
.article-rich-content .ql-size-large { font-size: 1.35em; }
.article-rich-content .ql-size-huge { font-size: 1.8em; }
@media (max-width: 767px) {
    .article-rich-content .ql-size-huge { font-size: 1.5em; }
}

/* ── Images ── */
.article-rich-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.7em auto;
    border-radius: 14px;
}
/* Two+ images inside one paragraph (Quill layout): side-by-side on desktop,
   stacked on mobile — never stretched. */
.article-rich-content p img:not(:only-child) {
    display: inline-block;
    width: auto;
    max-width: 48%;
    margin: 0.4em 0.25em;
    vertical-align: middle;
}
@media (max-width: 767px) {
    .article-rich-content p img:not(:only-child) { max-width: 100%; display: block; margin: 1em auto; }
}

/* ── Figure / figcaption ── */
.article-rich-content figure {
    margin: 1.7em 0;
}
.article-rich-content figure img { margin: 0 auto; }
.article-rich-content figcaption {
    font-size: 13.5px;
    color: var(--brand-muted);
    text-align: center;
    margin-top: 10px;
    line-height: 1.5;
}

/* ── Blockquote ── */
.article-rich-content blockquote {
    margin: 1.4em 0;
    padding: 0.9em 1.2em;
    border-left: 3px solid #1d2520;
    background: #f7f7f4;
    color: #5d625d;
    font-style: italic;
    border-radius: 0 12px 12px 0;
    line-height: 1.75;
}
.article-rich-content blockquote p { margin-bottom: 0.5em; }
.article-rich-content blockquote p:last-child { margin-bottom: 0; }

/* ── Table (editorial; scrolls inside the article on overflow) ── */
.article-rich-content table {
    display: block;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.6em 0;
    border: 1px solid #e5e5df;
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 15px;
}
.article-rich-content th,
.article-rich-content td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #ecece7;
    line-height: 1.55;
    white-space: normal;
}
.article-rich-content th {
    background: #f5f5f1;
    font-weight: 700;
    color: #171b18;
    white-space: nowrap;
}
.article-rich-content tr:last-child td { border-bottom: 0; }

/* ── HR ── */
.article-rich-content hr {
    border: 0;
    border-top: 1px solid #e5e5df;
    margin: 2em 0;
}

/* ── Code / pre ── */
.article-rich-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.875em;
    background: #f1f2ef;
    padding: 2px 6px;
    border-radius: 5px;
}
.article-rich-content pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    line-height: 1.6;
    background: #f5f5f1;
    padding: 16px 18px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5em 0;
    white-space: pre;
}
.article-rich-content pre code { background: transparent; padding: 0; }

/* ── Mobile typography ── */
@media (max-width: 767px) {
    .article-rich-content { font-size: 16.5px; line-height: 1.75; }
    .article-rich-content h2 { font-size: 25px; }
    .article-rich-content h3 { font-size: 20px; }
    .article-rich-content h4 { font-size: 18px; }
    .article-rich-content ul,
    .article-rich-content ol { padding-left: 1.25em; }
    .article-rich-content blockquote { padding: 0.8em 1em; }
    .article-rich-content th,
    .article-rich-content td { padding: 10px 12px; }
}

/* ─── Sidebar All Link ─── */
.sidebar-related__all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-dark);
    text-decoration: none;
    transition: color var(--transition), gap var(--transition);
}
.sidebar-related__all:hover {
    color: var(--brand-primary);
    gap: 10px;
}

/* ─── Final CTA Section ─── */
.article-cta {
    padding: 80px 0;
    background: var(--brand-dark);
}
@media (max-width: 768px) {
    .article-cta { padding: 56px 0; }
}
.article-cta__inner {
    max-width: 900px;
    margin: 0 auto;
}
@media (max-width: 1024px) {
    .article-cta__inner { max-width: 100%; }
}
.article-cta__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.2;
}
@media (max-width: 768px) {
    .article-cta__title { font-size: 28px; }
}
.article-cta__desc {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,0.72);
    margin: 0 0 32px;
    max-width: 640px;
}
@media (max-width: 768px) {
    .article-cta__desc { font-size: 15px; }
}
.article-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
@media (max-width: 480px) {
    .article-cta__actions {
        flex-direction: column;
    }
}
.article-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    padding: 0 28px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.article-cta__btn:hover {
    transform: translateY(-1px);
}
.article-cta__btn--primary {
    background: #fff;
    color: var(--brand-dark);
    border: 1px solid #fff;
}
.article-cta__btn--primary:hover {
    background: rgba(255,255,255,0.9);
    color: var(--brand-dark);
}
.article-cta__btn--secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.45);
}
.article-cta__btn--secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: #fff;
    color: #fff;
}
@media (max-width: 480px) {
    .article-cta__btn { width: 100%; justify-content: center; }
}

/* Article Detail Page wrapper */
.article-detail-page {
    opacity: 1;
}

/* =============================================
 * KNOWLEDGE INDEX PAGE
 * ============================================= */

/* ─── Hero ─── */
.knowledge-hero {
    padding: 56px 0 48px;
    background: #fff;
}
@media (max-width: 768px) {
    .knowledge-hero { padding: 40px 0 32px; }
}
.knowledge-hero__inner {
    max-width: 860px;
}
.knowledge-hero__eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brand-muted);
    margin: 0 0 16px;
}
.knowledge-hero__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 52px;
    font-weight: 600;
    color: var(--brand-dark);
    line-height: 1.1;
    margin: 0 0 18px;
    letter-spacing: -0.5px;
    max-width: 840px;
}
@media (max-width: 1024px) {
    .knowledge-hero__title { font-size: 42px; }
}
@media (max-width: 768px) {
    .knowledge-hero__title { font-size: 34px; }
}
@media (max-width: 430px) {
    .knowledge-hero__title { font-size: 30px; }
}
.knowledge-hero__desc {
    font-size: 18px;
    line-height: 1.7;
    color: var(--brand-muted);
    margin: 0;
    max-width: 680px;
}
@media (max-width: 768px) {
    .knowledge-hero__desc { font-size: 16px; }
}

/* ─── Featured Article ─── */
.knowledge-featured {
    padding: 0 0 16px;
    background: #fff;
}
.knowledge-featured__card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--brand-soft);
    border-radius: 20px;
    overflow: hidden;
    padding: 0;
}
@media (max-width: 1024px) {
    .knowledge-featured__card { grid-template-columns: 1fr; gap: 0; }
}

.knowledge-featured__image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--brand-bg-alt);
    min-height: 300px;
}
@media (max-width: 1024px) {
    .knowledge-featured__image { min-height: 240px; }
}
.knowledge-featured__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 400ms ease;
}
.knowledge-featured__card:hover .knowledge-featured__image img {
    transform: scale(1.03);
}
.knowledge-featured__image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--brand-bg-alt);
}

.knowledge-featured__content {
    padding: 48px 48px 48px 0;
    display: flex;
    flex-direction: column;
}
@media (max-width: 1024px) {
    .knowledge-featured__content { padding: 32px; }
}
@media (max-width: 430px) {
    .knowledge-featured__content { padding: 24px; }
}

.knowledge-featured__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brand-muted);
    margin: 0 0 14px;
}

.knowledge-featured__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 34px;
    font-weight: 600;
    color: var(--brand-dark);
    line-height: 1.2;
    margin: 0 0 16px;
}
@media (max-width: 1024px) {
    .knowledge-featured__title { font-size: 30px; }
}
@media (max-width: 768px) {
    .knowledge-featured__title { font-size: 26px; }
}
.knowledge-featured__title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}
.knowledge-featured__title a:hover {
    color: var(--brand-primary);
}

.knowledge-featured__excerpt {
    font-size: 16px;
    line-height: 1.7;
    color: var(--brand-muted);
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.knowledge-featured__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--brand-muted);
    margin-bottom: 20px;
}
.knowledge-featured__reading::before {
    content: '·';
    margin-right: 8px;
    font-weight: 700;
}

.knowledge-featured__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-primary);
    text-decoration: none;
    transition: gap var(--transition);
    align-self: flex-start;
}
.knowledge-featured__cta:hover {
    gap: 12px;
    color: var(--brand-dark);
}
.knowledge-featured__cta .arrow {
    display: inline-block;
    transition: transform var(--transition);
}

/* ─── Article Discovery Section ─── */
.knowledge-discovery {
    padding: 80px 0;
    background: var(--brand-soft);
}
@media (max-width: 768px) {
    .knowledge-discovery { padding: 48px 0; }
}

/* Layout: Main + Sidebar */
.knowledge-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 64px;
    align-items: start;
}
@media (max-width: 1100px) {
    .knowledge-layout { grid-template-columns: 1fr; gap: 48px; }
}

/* ─── Main ─── */
.knowledge-main {
    min-width: 0;
}
.knowledge-main__header {
    margin-bottom: 32px;
}
.knowledge-main__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--brand-dark);
    margin: 0 0 6px;
    line-height: 1.2;
}
@media (max-width: 768px) {
    .knowledge-main__title { font-size: 24px; }
}
.knowledge-main__sub {
    font-size: 14px;
    color: var(--brand-muted);
    margin: 0;
}

/* Article Grid */
.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
}
@media (max-width: 700px) {
    .knowledge-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Article Card */
.knowledge-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition);
    border: 1px solid var(--brand-border);
}
.knowledge-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.knowledge-card__image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--brand-soft);
}
.knowledge-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 400ms ease;
}
.knowledge-card:hover .knowledge-card__image img {
    transform: scale(1.04);
}
.knowledge-card__image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--brand-bg-alt);
}

.knowledge-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 22px 22px;
}
@media (max-width: 430px) {
    .knowledge-card__body { padding: 16px 18px 20px; }
}

.knowledge-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--brand-muted);
    margin-bottom: 8px;
}
.knowledge-card__reading::before {
    content: '·';
    margin-right: 6px;
    font-weight: 700;
}

.knowledge-card__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 21px;
    font-weight: 600;
    color: var(--brand-dark);
    line-height: 1.3;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 430px) {
    .knowledge-card__title { font-size: 19px; }
}
.knowledge-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}
.knowledge-card__title a:hover {
    color: var(--brand-primary);
}

.knowledge-card__excerpt {
    font-size: 14px;
    line-height: 1.65;
    color: var(--brand-muted);
    margin: 0 0 14px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.knowledge-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-primary);
    text-decoration: none;
    margin-top: auto;
    transition: gap var(--transition);
}
.knowledge-card__cta:hover {
    gap: 8px;
    color: var(--brand-dark);
}
.knowledge-card__cta .arrow {
    display: inline-block;
    transition: transform var(--transition);
}

/* ─── Pagination ─── */
.knowledge-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 48px 0 8px;
}
.knowledge-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--brand-muted);
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--transition);
}
.knowledge-pagination__btn:hover {
    background: var(--brand-soft);
    color: var(--brand-text);
    border-color: #d0d4d2;
}
.knowledge-pagination__btn.is-current {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
    cursor: default;
    pointer-events: none;
}
.knowledge-pagination__btn.is-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}
.knowledge-pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 38px;
    color: var(--brand-muted);
    font-size: 14px;
    letter-spacing: 2px;
}

/* ─── Sidebar ─── */
.knowledge-sidebar {
    min-width: 0;
}
@media (max-width: 1100px) {
    .knowledge-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}
@media (max-width: 600px) {
    .knowledge-sidebar { grid-template-columns: 1fr; }
}

.knowledge-sidebar__block {
    margin-bottom: 32px;
}
.knowledge-sidebar__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--brand-dark);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--brand-border);
}

.knowledge-sidebar__list {
    display: flex;
    flex-direction: column;
}

.knowledge-sidebar__item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    text-decoration: none;
}
.knowledge-sidebar__item:first-child {
    padding-top: 0;
}

.knowledge-sidebar__number {
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-muted);
    min-width: 24px;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    opacity: 0.5;
}

.knowledge-sidebar__item-content {
    flex: 1;
    min-width: 0;
}

.knowledge-sidebar__item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-dark);
    line-height: 1.45;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.knowledge-sidebar__item-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}
.knowledge-sidebar__item-title a:hover {
    color: var(--brand-primary);
}

.knowledge-sidebar__item-date {
    font-size: 12px;
    color: var(--brand-muted);
}

.knowledge-sidebar__divider {
    border: none;
    border-top: 1px solid var(--brand-border);
    margin: 0;
}

/* Sidebar Product CTA */
.knowledge-sidebar__cta {
    background: var(--brand-dark);
    border-radius: 16px;
    padding: 28px 24px;
    color: #fff;
}
.knowledge-sidebar__cta-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #fff;
}
.knowledge-sidebar__cta-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.6);
    margin: 0 0 18px;
}
.knowledge-sidebar__cta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: gap var(--transition);
}
.knowledge-sidebar__cta-link:hover {
    gap: 10px;
    color: rgba(255,255,255,0.8);
}
.knowledge-sidebar__cta-link .arrow {
    display: inline-block;
}

/* ─── Empty State ─── */
.knowledge-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--brand-muted);
    font-size: 16px;
}

/* ─── Final CTA ─── */
.knowledge-final-cta {
    padding: 80px 0;
    background: var(--brand-dark);
}
@media (max-width: 768px) {
    .knowledge-final-cta { padding: 56px 0; }
}
.knowledge-final-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
@media (max-width: 900px) {
    .knowledge-final-cta__inner { flex-direction: column; text-align: center; }
}

.knowledge-final-cta__content {
    max-width: 640px;
}
.knowledge-final-cta__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.2;
}
@media (max-width: 768px) {
    .knowledge-final-cta__title { font-size: 26px; }
}
.knowledge-final-cta__desc {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    margin: 0;
}
@media (max-width: 768px) {
    .knowledge-final-cta__desc { font-size: 15px; }
}

.knowledge-final-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    flex-shrink: 0;
}
@media (max-width: 900px) {
    .knowledge-final-cta__actions { justify-content: center; }
}
@media (max-width: 480px) {
    .knowledge-final-cta__actions { flex-direction: column; width: 100%; }
}
.knowledge-final-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    padding: 0 28px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}
.knowledge-final-cta__btn:hover {
    transform: translateY(-1px);
}
.knowledge-final-cta__btn--primary {
    background: #fff;
    color: var(--brand-dark);
    border: 1px solid #fff;
}
.knowledge-final-cta__btn--primary:hover {
    background: rgba(255,255,255,0.9);
}
.knowledge-final-cta__btn--secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.45);
}
.knowledge-final-cta__btn--secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: #fff;
}
@media (max-width: 480px) {
    .knowledge-final-cta__btn { width: 100%; }
}

/* ─── Reduce Motion ─── */
@media (prefers-reduced-motion: reduce) {
    .knowledge-featured__image img,
    .knowledge-card__image img,
    .knowledge-featured__cta,
    .knowledge-card__cta,
    .knowledge-card {
        transition: none;
        transform: none;
    }
}

/* ═══════════════════════════════════════════
   PRODUCT DETAIL – PURCHASE AREA
   ═══════════════════════════════════════════ */

/* ─── Price Block ─── */
.product-price {
    margin: 16px 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.product-price__current {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--brand-primary);
    line-height: 1.1;
}
.product-price__old {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--brand-muted);
    text-decoration: line-through;
    line-height: 1.1;
}
.product-price__badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    line-height: 1.3;
    letter-spacing: 0.3px;
}
.product-price__contact {
    font-size: 15px;
    color: var(--brand-muted);
}
.product-price__contact a {
    color: var(--brand-primary);
    font-weight: 600;
    text-decoration: none;
}
.product-price__contact a:hover {
    text-decoration: underline;
}
.product-price__stock {
    font-size: 13px;
    font-weight: 500;
    padding: 2px 0;
    width: 100%;
}
.product-price__stock--ok {
    color: #27ae60;
}
.product-price__stock--low {
    color: #e67e22;
}
.product-price__stock--out {
    color: #e74c3c;
}

/* ─── Purchase Form ─── */
.product-purchase {
    margin: 20px 0;
    padding: 24px 0 20px;
    border-bottom: 1px solid var(--brand-border);
}
.product-purchase--unavailable {
    padding: 16px 0;
    border-bottom: 1px solid var(--brand-border);
}
.product-purchase__note {
    font-size: 14px;
    color: var(--brand-muted);
    margin: 0;
}
.product-purchase__quantity {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.product-purchase__quantity label {
    font-size: 14px;
    font-weight: 500;
    color: var(--brand-text);
    min-width: 60px;
}
.product-purchase__select {
    width: 76px;
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-sm);
    background: var(--brand-white);
    color: var(--brand-text);
    cursor: pointer;
    outline: none;
    transition: border-color var(--transition);
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 32px;
}
.product-purchase__select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(180, 144, 100, 0.15);
}

/* ─── Action Buttons ─── */
.product-purchase__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.btn-purchase {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    line-height: 1.2;
    white-space: nowrap;
}
.btn-purchase--cart {
    background: var(--brand-white);
    color: var(--brand-text);
    border: 1px solid var(--brand-border);
    flex: 1;
    min-width: 180px;
}
.btn-purchase--cart:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: #fdfaf7;
    transform: translateY(-1px);
}
.btn-purchase--buy {
    background: var(--brand-primary);
    color: #fff;
    flex: 1;
    min-width: 180px;
}
.btn-purchase--buy:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}
.btn-purchase svg {
    flex-shrink: 0;
}

/* ─── Flash Messages ─── */
.flash-message {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
}
.flash-message--success {
    background: #e8f8f0;
    color: #1a7d4a;
    border: 1px solid #b8e6d0;
}
.flash-message--error {
    background: #fdecea;
    color: #b71c1c;
    border: 1px solid #f5c6cb;
}
.flash-message__close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    padding: 0 4px;
    line-height: 1;
}
.flash-message__close:hover {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════
   PRODUCT CARD — RATING
   ═══════════════════════════════════════════════════════ */

.product-card__rating {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 6px;
    margin-bottom: 2px;
    font-size: 13px;
    line-height: 1.4;
}
.product-card__rating--none {
    opacity: 0.7;
}
.product-card__rating-star {
    color: #d89b2b;
    font-size: 14px;
}
.product-card__rating--none .product-card__rating-star {
    color: var(--brand-muted);
}
.product-card__rating-value {
    font-weight: 600;
    color: var(--brand-dark);
}
.product-card__rating-count {
    color: var(--brand-muted);
}

/* ═══════════════════════════════════════════════════════
   PRODUCT DETAIL — RATING HEADER
   ═══════════════════════════════════════════════════════ */

.detail-info__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    font-size: 14px;
    flex-wrap: wrap;
}
.detail-rating-stars {
    display: inline-flex;
    gap: 1px;
    font-size: 16px;
}
.detail-rating-stars .is-filled {
    color: #d89b2b;
}
.detail-rating-stars .is-empty {
    color: #d0d0ce;
}
.detail-rating-value {
    font-weight: 600;
    color: var(--brand-dark);
}
.detail-rating-count {
    color: var(--brand-muted);
    text-decoration: none;
    font-size: 13px;
}
.detail-rating-count:hover {
    color: var(--brand-text);
}
.detail-rating-empty {
    color: var(--brand-muted);
    font-size: 16px;
}
.detail-rating-write {
    font-size: 13px;
}
.detail-rating-write a {
    color: var(--brand-primary);
    text-decoration: none;
}
.detail-rating-write a:hover {
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════
   PRODUCT REVIEWS SECTION
   ═══════════════════════════════════════════════════════ */

.detail-reviews {
    padding: 64px 0;
    background: var(--brand-white);
}
@media (max-width: 768px) {
    .detail-reviews { padding: 48px 0; }
}
.detail-reviews__inner {
    max-width: 1100px;
    margin: 0 auto;
}
.detail-reviews__header {
    margin-bottom: 40px;
}
.detail-reviews__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--brand-dark);
    margin: 0 0 8px;
}
.detail-reviews__sub {
    font-size: 15px;
    color: var(--brand-muted);
    margin: 0;
}
.detail-reviews__layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
@media (max-width: 900px) {
    .detail-reviews__layout { grid-template-columns: 1fr; gap: 32px; }
}

/* Summary card */
.review-summary {
    background: var(--brand-soft);
    border-radius: 14px;
    padding: 28px;
    text-align: center;
}
.review-summary--empty {
    padding: 32px 20px;
}
.review-summary__score {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--brand-dark);
    line-height: 1.1;
    margin-bottom: 4px;
}
.review-summary__stars {
    display: flex;
    justify-content: center;
    gap: 3px;
    font-size: 24px;
    margin-bottom: 8px;
}
.review-summary__stars .is-filled { color: #d89b2b; }
.review-summary__stars .is-empty { color: #d0d0ce; }
.review-summary__label {
    font-size: 15px;
    color: var(--brand-muted);
    margin-bottom: 20px;
}
.review-summary__empty-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--brand-dark);
    margin-bottom: 8px;
}
.review-summary--empty p {
    font-size: 14px;
    color: var(--brand-muted);
    margin: 0;
    line-height: 1.6;
}

/* Distribution bars */
.review-distribution {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.review-distribution__row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}
.review-distribution__label {
    min-width: 40px;
    text-align: right;
    color: var(--brand-text);
    font-weight: 500;
}
.review-distribution__bar {
    flex: 1;
    height: 7px;
    background: #e0e2e0;
    border-radius: 4px;
    overflow: hidden;
}
.review-distribution__fill {
    height: 100%;
    background: #d89b2b;
    border-radius: 4px;
    transition: width 0.3s;
}
.review-distribution__count {
    min-width: 24px;
    text-align: left;
    color: var(--brand-muted);
}

/* Review form */
.review-form-card {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 14px;
    padding: 28px;
}
.review-form-card__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--brand-dark);
    margin: 0 0 20px;
}
.review-field {
    margin-bottom: 16px;
}
.review-field__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-text);
    margin-bottom: 6px;
}
.review-field__label .required { color: #c0392b; }
.review-field__input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    font-family: inherit;
    font-size: 14px;
    color: var(--brand-text);
    border: 1px solid var(--brand-border);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.review-field__input:focus { border-color: var(--brand-primary); }
.review-field__textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 14px;
    color: var(--brand-text);
    border: 1px solid var(--brand-border);
    border-radius: 8px;
    outline: none;
    resize: vertical;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.review-field__textarea:focus { border-color: var(--brand-primary); }
.review-field__error {
    font-size: 12px;
    color: #c0392b;
    margin: 4px 0 0;
}

/* Star radio input */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
}
.star-rating-input input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.star-rating-input label {
    font-size: 30px;
    color: #d0d0ce;
    cursor: pointer;
    transition: color 0.15s;
    line-height: 1;
}
.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
    color: #d89b2b;
}

.review-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 28px;
    background: var(--brand-dark);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}
.review-form__submit:hover {
    background: var(--brand-primary);
    transform: translateY(-1px);
}
.review-form__note {
    font-size: 12px;
    color: var(--brand-muted);
    margin: 12px 0 0;
    line-height: 1.5;
}

/* Reviews list */
.detail-reviews__list {
    border-top: 1px solid var(--brand-border);
    padding-top: 40px;
}
.detail-reviews__list-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--brand-dark);
    margin: 0 0 24px;
}

.review-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--brand-border);
}

/* ═════════════════════════════════════════════════════════════════════
   RESPONSIVE HEADER — one-row mobile layout (MANICURE.VN)
   Desktop (>=992px): giữ nguyên grid template (logo trái + nav + search + cart).
   Tablet/Mobile (<=991px): [MANICURE.VN] ........ [🔍][🛍][☰] — 1 hàng, ~68px.
   ═════════════════════════════════════════════════════════════════════ */

/* ── Base: logo text + cart icon (trước đây là inline style) ── */
.header-two .logo {
    display: inline-block;
    text-decoration: none;
}
.header-two .logo .logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #222;
    letter-spacing: 1px;
    line-height: 1;
    white-space: nowrap;
}
.header-two .cart-header-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    color: #222;
    text-decoration: none;
    font-size: 16px;
}
.header-two .cart-header-icon .cart-header-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #c0392b;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ── Base: icon <button> resets (search / hamburger / close) ── */
.header-two .header-icon-btn {
    border: 0;
    background: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: inherit;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}
.header-two .search-form-wrap .search-icon.header-icon-btn {
    color: #111;
}

/* ── Header inline SVG icons (search / menu / cart / close) ──
   Vector icons thay thế icon font (Simple Line Icons / ElegantIcons)
   bị font-family override phá glyph. Không phụ thuộc font file. */
.header-two .hd-icon {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}
.header-two .nav-trigger.open .hd-icon--close {
    display: none;
}
.header-two .nav-trigger.open.is-open .hd-icon--menu {
    display: none;
}
.header-two .nav-trigger.open.is-open .hd-icon--close {
    display: block;
}

/* ── Search close (chuyển thành <button>, giữ vị trí desktop) ── */
.header-two .search-form .search-close {
    position: absolute;
    right: 6px;
    top: 15px;
    color: #000;
    z-index: 2;
}

/* ── Mobile menu overlay + body scroll lock ── */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-menu-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}
body.mobile-menu-locked {
    overflow: hidden;
}

/* ── One-row compact header (tablet & mobile <= 991px) ── */
@media (max-width: 991px) {
    .header-two {
        padding: 0;
    }
    .header-two.is-sticky {
        padding: 0 16px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }

    /* Grid row → single flex row: logo trái, actions phải, không wrap */
    .header-two .row.header-inner-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        min-height: 68px;
        margin: 0;
    }
    /* Bootstrap clearfix pseudo-elements become flex items (width 0) and add
       phantom spacing around the logo/actions with space-between → hide them */
    .header-two .row.header-inner-row::before,
    .header-two .row.header-inner-row::after {
        display: none;
    }
    .header-two .row.header-inner-row > div {
        float: none;
        width: auto;
        margin: 0;
    }
    .header-two .logo-wrap {
        flex: 0 0 auto;
        text-align: left;
        padding-left: 16px;
        padding-right: 0;
    }
    .header-two .header-actions-col {
        flex: 0 0 auto;
        padding-left: 0;
        padding-right: 16px;
    }
    .header-two .logo {
        display: flex;
        align-items: center;
    }
    .header-two .logo .logo-text {
        font-size: 21px;
    }

    /* Action group: search + cart + menu trong 1 nhóm phải */
    .header-two .top-elements {
        float: none;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 4px;
    }

    /* Touch target 40x40, glyph 20px, căn giữa */
    .header-two .header-icon-btn {
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        line-height: 1;
        border-radius: 8px;
    }
    .header-two .hd-icon {
        width: 22px;
        height: 22px;
    }
    .header-two .header-icon-btn:active {
        background: #f2f2f0;
    }
    .header-two .header-icon-btn:focus-visible {
        outline: 2px solid #1f2927;
        outline-offset: 2px;
    }

    /* Hamburger: cùng màu dark với search/cart, gọn hơn */
    .header-two .nav-trigger.open {
        float: none;
        font-size: 22px;
        line-height: 1;
        z-index: 5;
        color: #111;
    }

    /* Search */
    .header-two .search-form-wrap {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        text-align: center;
    }
    .header-two .search-form-wrap .search-icon {
        font-size: 20px;
        color: #111;
    }

    /* Cart */
    .header-two .cart-header-icon {
        font-size: 20px;
        margin-left: 0;
        color: #111;
    }
    .header-two .cart-header-icon .cart-header-badge {
        top: 2px;
        right: 1px;
    }

    /* Search overlay: hiện ngay dưới header compact */
    .header-two .search-form {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 76px;
        background: #fff;
        z-index: 1002;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
        padding: 10px 12px;
    }
    .header-two .search-form .search {
        height: 44px;
        font-size: 14px;
        border-bottom: 1px solid #cbcbcb;
        padding: 5px 40px 5px 12px;
    }
    .header-two .search-form .search-close {
        top: 50%;
        transform: translateY(-50%);
        right: 8px;
        font-size: 22px;
    }
}

/* ── Rất nhỏ (<= 379px: 360/375) — co nhẹ để không wrap ── */
@media (max-width: 379px) {
    .header-two .logo .logo-text {
        font-size: 19px;
        letter-spacing: 0.5px;
    }
    .header-two .top-elements {
        gap: 0;
    }
    .header-two .logo-wrap {
        padding-left: 12px;
    }
    .header-two .header-actions-col {
        padding-right: 12px;
    }
}
.review-item:last-child { border-bottom: none; }
.review-item__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--brand-muted);
    flex-shrink: 0;
}
.review-item__body {
    flex: 1;
    min-width: 0;
}
.review-item__top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.review-item__name {
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-dark);
}
.review-item__verified {
    font-size: 11px;
    font-weight: 500;
    color: #27ae60;
    background: #e8f8f0;
    padding: 2px 8px;
    border-radius: 4px;
}
.review-item__stars {
    display: inline-flex;
    gap: 1px;
    font-size: 14px;
    margin-bottom: 4px;
}
.review-item__stars .is-filled { color: #d89b2b; }
.review-item__stars .is-empty { color: #d0d0ce; }
.review-item__date {
    font-size: 12px;
    color: var(--brand-muted);
    margin-bottom: 6px;
}
.review-item__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-dark);
    margin: 0 0 6px;
}
.review-item__content {
    font-size: 14px;
    color: var(--brand-text);
    line-height: 1.7;
    white-space: pre-line;
}

/* Review pagination */
.review-pagination {
    padding: 24px 0 0;
    display: flex;
    justify-content: center;
}
.review-pagination nav {
    display: flex;
    gap: 4px;
}
.review-pagination a,
.review-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    font-size: 13px;
    color: var(--brand-text);
    border: 1px solid var(--brand-border);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s;
}
.review-pagination a:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}
.review-pagination span[aria-current="page"] {
    background: var(--brand-dark);
    color: #fff;
    border-color: var(--brand-dark);
}

/* ═══════════════════════════════════════════════════════
   FOOTER — CONTACT COLUMN
   ═══════════════════════════════════════════════════════ */

.footer-contact__logo {
    display: inline-block;
    margin-bottom: 12px;
}
.footer-contact__logo img {
    max-width: 150px;
    max-height: 50px;
    object-fit: contain;
    height: auto;
}
.footer-contact__wordmark {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #222;
    text-decoration: none;
    margin-bottom: 12px;
}
.footer-contact__caption {
    font-size: 13px;
    color: #6c757d;
    margin: 0 0 12px;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════
   FLOATING CONTACT BUTTONS
   Admin -> Cài đặt -> "Liên hệ nhanh nổi"
   Fixed bottom-left, stacked: Gọi điện → Zalo → Messenger.
   z-index 900: above normal content, BELOW mobile menu (998),
   search overlay (1002) and product lightbox (1200).
   ═══════════════════════════════════════════════════════ */
.floating-contact {
    position: fixed;
    left: 20px;
    bottom: 24px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    /* Wrapper never blocks clicks outside the actual buttons. */
    pointer-events: none;
}

.floating-contact__item {
    pointer-events: auto;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-contact__item:hover,
.floating-contact__item:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26);
    color: #fff;
    text-decoration: none;
}

.floating-contact__item:focus-visible {
    outline: 3px solid rgba(31, 41, 39, 0.55);
    outline-offset: 2px;
}

.floating-contact__item svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.floating-contact__item--phone {
    background: #25a55a;
}

.floating-contact__item--zalo {
    background: #0a68ff;
}

.floating-contact__item--messenger {
    background: #0084ff;
}

.floating-contact__zalo-mark {
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.2px;
}

/* Desktop hover/focus label — sits to the RIGHT of the button. */
.floating-contact__label {
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    background: rgba(31, 41, 39, 0.92);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    pointer-events: none;
}

.floating-contact__item:hover .floating-contact__label,
.floating-contact__item:focus-visible .floating-contact__label {
    opacity: 1;
    visibility: visible;
}

/* Very subtle idle pulse on the Phone button only. */
.floating-contact__item--phone::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(37, 165, 90, 0.55);
    animation: floating-contact-pulse 2.6s ease-out infinite;
    pointer-events: none;
}

@keyframes floating-contact-pulse {
    0% { transform: scale(1); opacity: 0.7; }
    70%, 100% { transform: scale(1.35); opacity: 0; }
}

/* ── Mobile: minimal premium bottom contact bar ──
   Desktop keeps the floating vertical buttons (above).
   On mobile the wrapper becomes a full-width frosted bar fixed at
   the bottom: Gọi điện | Messenger | Zalo (CSS order). Each button
   flexes 1:1 so 3 buttons = 33.3%, 2 buttons = 50%, 1 = 100%. */
@media (max-width: 767px) {
    .floating-contact {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: stretch;
        gap: 6px;
        padding: 7px 10px calc(7px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.96);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        border-top: 1px solid rgba(17, 24, 39, 0.08);
        border-radius: 0;
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
    }

    /* Neutral light-gray buttons (override modifier backgrounds too). */
    .floating-contact__item,
    .floating-contact__item--phone,
    .floating-contact__item--zalo,
    .floating-contact__item--messenger {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        height: 44px;
        margin: 0;
        padding: 0 8px;
        border-radius: 11px;
        border: 1px solid #e7e7e2;
        background: #f6f6f3;
        color: #17201c;
        box-shadow: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .floating-contact__item:hover,
    .floating-contact__item:focus-visible,
    .floating-contact__item--phone:hover,
    .floating-contact__item--zalo:hover,
    .floating-contact__item--messenger:hover {
        transform: none;
        box-shadow: none;
        color: #17201c;
    }

    .floating-contact__item:active {
        transform: scale(0.98);
        background: #eeeeea;
        transition: transform 0.14s ease, background-color 0.14s ease;
    }

    .floating-contact__item svg {
        width: 19px;
        height: 19px;
        flex-shrink: 0;
        flex: none;
        display: block;
    }

    /* Brand-tinted icons only; labels stay dark. */
    .floating-contact__item--phone svg { color: #239b56; }
    .floating-contact__item--messenger svg { color: #1877f2; }

    .floating-contact__zalo-mark {
        width: 19px;
        height: 19px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        border-radius: 6px;
        background: #0068ff;
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        line-height: 1;
    }

    .floating-contact__label {
        position: static;
        transform: none;
        display: inline-block;
        opacity: 1;
        visibility: visible;
        background: none;
        color: #17201c;
        padding: 0;
        border-radius: 0;
        font-size: 12px;
        font-weight: 600;
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        pointer-events: none;
        transition: none;
    }

    /* No idle pulse inside the bar. */
    .floating-contact__item--phone::after {
        display: none;
    }

    /* Mobile order: Gọi điện → Messenger → Zalo. */
    .floating-contact__item--phone { order: 1; }
    .floating-contact__item--messenger { order: 2; }
    .floating-contact__item--zalo { order: 3; }

    /* Reserve page-end space (bar ~58px) so content clears the bar. */
    body.has-mobile-contact-bar {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }

    /* Back-to-top: premium dark button, positioned above the bar. */
    body.has-mobile-contact-bar #to-top.to-top {
        right: 14px;
        width: 42px;
        height: 42px;
        line-height: 42px;
        font-size: 20px;
        border-radius: 10px;
        border: none;
        background-color: #18201c;
        color: #fff;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
    }
    body.has-mobile-contact-bar #to-top.to-top:hover {
        background-color: #24312b;
        color: #fff;
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .floating-contact__item,
    .floating-contact__item--phone::after {
        animation: none;
        transition: none;
    }

    .floating-contact__item:hover,
    .floating-contact__item:focus-visible {
        transform: none;
    }
}

/* Social icons row */
.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}
.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #d0d0ce;
    border-radius: 50%;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}
.footer-social-link:hover {
    background: #222;
    color: #fff;
    border-color: #222;
    transform: translateY(-1px);
}

/* Contact details */
.footer-contact__details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.footer-contact__link {
    font-size: 13px;
    color: #6c757d;
    text-decoration: none;
    line-height: 1.6;
    transition: color 0.15s;
}
.footer-contact__link:hover {
    color: #222;
}

/* ─── Product Lightbox (Vanilla JS — fullscreen image preview) ─── */
.detail-gallery__main[data-gallery-open] {
    cursor: zoom-in;
}

.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.product-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.product-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.86);
}
.product-lightbox__dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 96px;
}
.product-lightbox__figure {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.product-lightbox__image {
    max-width: calc(100vw - 180px);
    max-height: calc(100vh - 120px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.product-lightbox__caption {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 80%;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}
.product-lightbox__counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    letter-spacing: 0.5px;
}
.product-lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}
.product-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.2);
}
.product-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}
.product-lightbox__nav--prev { left: 20px; }
.product-lightbox__nav--next { right: 20px; }
.product-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.2);
}
.product-lightbox__nav.is-hidden { display: none; }
.product-lightbox__close:focus-visible,
.product-lightbox__nav:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
body.lightbox-open {
    overflow: hidden;
}

/* Mobile */
@media (max-width: 767px) {
    .product-lightbox__dialog {
        padding: 48px 12px;
    }
    .product-lightbox__image {
        max-width: calc(100vw - 24px);
        max-height: calc(100vh - 96px);
    }
    .product-lightbox__nav {
        width: 40px;
        height: 40px;
    }
    .product-lightbox__nav--prev { left: 4px; }
    .product-lightbox__nav--next { right: 4px; }
    .product-lightbox__close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }
    .product-lightbox__caption { bottom: 64px; }
}

