/*
Theme Name: Tượng Đá Đức Toàn
Description: Theme WordPress tùy chỉnh cho cơ sở Tượng Đá Đức Toàn - Làng nghề đá Non Nước
Author: Đức Toàn
Version: 1.0
License: GPL v2 or later
Text Domain: tuongda-ductoan
*/

/* ─── Global Reset ──────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ─── Slider Navigation ────────────────────────────────────────────── */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* ─── Testimonial Scroll – hide scrollbar ──────────────────────────── */
#testimonialScrollContainer::-webkit-scrollbar {
    display: none;
}

.is-active {
    display: block !important;
}

/* Keep rem-based utility classes at an accessible baseline. */
html {
    font-size: 16px;
}

@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    .text-xs {
        font-size: 0.875rem !important;
    }
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    line-height: 1.6;
    color: #333;
}

.text-xs {
    font-size: 0.8125rem !important;
    line-height: 1.35;
}

:where(a, button, input, textarea, select):focus-visible {
    outline: 2px solid var(--primary-color) !important;
    outline-offset: 3px !important;
}

/* ─── Design Tokens ─────────────────────────────────────────────────── */
:root {
    /* ── Color Palette (Luxury Gold) ─────────────────────────────────── */
    --gold-50: #FFF9E6;
    --gold-100: #FFF0BF;
    --gold-200: #FFE699;
    --gold-300: #FFDA66;
    --gold-400: #FFCE33;
    --gold-500: #FFBE05;
    /* Primary — brand gold */
    --gold-600: #D4A017;
    /* Hover — deeper gold */
    --gold-700: #A67C00;
    /* Active — darkest gold */

    --stone-50: #FAFAF9;
    --stone-100: #F5F5F4;
    --stone-200: #E7E5E4;
    --stone-300: #D6D3D1;
    --stone-400: #A8A29E;
    --stone-500: #78716C;
    --stone-600: #57534E;
    --stone-700: #44403C;
    --stone-800: #292524;
    --stone-900: #1C1917;

    /* Semantic aliases */
    --primary-color: var(--gold-500);
    --primary-hover: var(--gold-600);
    --primary-active: var(--gold-700);
    --secondary-color: #4A6572;
    --text-dark: var(--stone-800);
    --text-body: var(--stone-600);
    --text-light: var(--stone-400);
    --bg-light: var(--stone-50);
    --bg-surface: var(--stone-100);
    --white: #fff;

    /* ── Shadow System ───────────────────────────────────────────────── */
    --shadow-sm: 0 1px 3px rgba(28, 25, 23, 0.06),
        0 1px 2px rgba(28, 25, 23, 0.04);
    --shadow-md: 0 4px 12px rgba(28, 25, 23, 0.08),
        0 2px 4px rgba(28, 25, 23, 0.04);
    --shadow-lg: 0 12px 35px rgba(28, 25, 23, 0.10),
        0 4px 12px rgba(28, 25, 23, 0.05);

    /* ── Type Scale (1.250 ratio — Major Third) ──────────────────────── */
    --text-xs: 0.75rem;
    /* 12px */
    --text-sm: 0.875rem;
    /* 14px */
    --text-base: 1rem;
    /* 16px */
    --text-lg: 1.125rem;
    /* 18px */
    --text-xl: 1.25rem;
    /* 20px */
    --text-2xl: 1.5rem;
    /* 24px */
    --text-3xl: 1.875rem;
    /* 30px */
    --text-4xl: 2.25rem;
    /* 36px */
    --text-5xl: 3rem;
    /* 48px */

    /* ── Spacing Rhythm ──────────────────────────────────────────────── */
    --space-section: 5rem;
    --space-block: 2.5rem;
    --space-element: 1rem;

    /* ── Motion ──────────────────────────────────────────────────────── */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-normal: 0.4s;
    --duration-slow: 0.7s;
}

/* ─── Type Scale Classes ────────────────────────────────────────────── */
.heading {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

/* ─── Section Entrance Animations ───────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-slow) var(--ease-out-expo),
        transform var(--duration-slow) var(--ease-out-expo);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity var(--duration-slow) var(--ease-out-expo),
        transform var(--duration-slow) var(--ease-out-expo);
}

.reveal-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity var(--duration-slow) var(--ease-out-expo),
        transform var(--duration-slow) var(--ease-out-expo);
}

.reveal-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger children in grids */
.reveal-stagger>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease-out-expo),
        transform 0.5s var(--ease-out-expo);
}

.reveal-stagger.is-visible>*:nth-child(1) {
    transition-delay: 0s;
}

.reveal-stagger.is-visible>*:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal-stagger.is-visible>*:nth-child(3) {
    transition-delay: 0.2s;
}

.reveal-stagger.is-visible>*:nth-child(4) {
    transition-delay: 0.3s;
}

.reveal-stagger.is-visible>*:nth-child(5) {
    transition-delay: 0.4s;
}

.reveal-stagger.is-visible>*:nth-child(6) {
    transition-delay: 0.5s;
}

.reveal-stagger.is-visible>* {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Shadow Utility Classes ────────────────────────────────────────── */
.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* ─── Screen-reader accessibility ───────────────────────────────────── */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute !important;
    width: 1px;
}

.screen-reader-text:focus {
    clip: auto !important;
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.entry-content img,
.entry-content figure,
.entry-content .wp-caption,
.entry-content .aligncenter,
.entry-content .alignwide,
.entry-content .alignfull {
    max-width: 100%;
    height: auto;
}

.entry-content .wp-caption {
    width: auto !important;
}

.single-post-breadcrumb__trail {
    min-width: 0;
}

.single-post-breadcrumb__current {
    overflow: hidden;
    display: -webkit-box;
    max-width: min(48vw, 42rem);
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.single-post-breadcrumb__back {
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .single-post-breadcrumb {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
        background: #fff !important;
        border-bottom: 1px solid #f3f4f6;
    }

    .single-post-breadcrumb__inner {
        gap: 0.75rem;
        margin-bottom: 0 !important;
    }

    .single-post-breadcrumb__trail {
        flex: 1;
        min-width: 0;
        gap: 0.4rem !important;
        overflow: hidden;
    }

    .single-post-breadcrumb__link {
        min-height: 2.25rem;
        display: inline-flex;
        align-items: center;
        flex-shrink: 0;
        color: #4b5563 !important;
        font-size: 0.9rem;
        font-weight: 700;
        line-height: 1.2;
        white-space: nowrap;
    }

    .single-post-breadcrumb__link:first-child {
        max-width: 5.25rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .single-post-breadcrumb__sep--current,
    .single-post-breadcrumb__current {
        display: none !important;
    }

    .single-post-breadcrumb__sep {
        flex-shrink: 0;
        color: #c4c7cc !important;
        font-size: 1rem;
    }

    .single-post-breadcrumb__back {
        min-height: 2.25rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.45rem 0.7rem;
        border: 1px solid #e5e7eb;
        border-radius: 999px;
        background: #f9fafb;
        color: #374151 !important;
        font-size: 0.86rem;
        font-weight: 800;
        line-height: 1.1;
    }

    .single-post-breadcrumb__back i {
        margin-right: 0.25rem !important;
    }

    .single-post-breadcrumb__back-text {
        font-size: 0;
    }

    .single-post-breadcrumb__back-text::after {
        content: "Blog";
        font-size: 0.86rem;
    }
}

.post-context-suggestions {
    margin: 0 0 2.5rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #fffdf5;
}

.post-context-suggestions__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.25rem;
    align-items: end;
    margin-bottom: 1.25rem;
}

.post-context-suggestions__eyebrow {
    margin: 0 0 0.35rem;
    color: #b7791f;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.post-context-suggestions h2 {
    margin: 0 0 0.55rem !important;
    font-family: 'Playfair Display', serif;
    color: #111827;
    font-size: 1.65rem !important;
    font-weight: 700;
    line-height: 1.18 !important;
}

.post-context-suggestions__header p:last-child {
    margin: 0;
    max-width: 42rem;
    color: #4b5563;
    font-size: 0.98rem;
    line-height: 1.6;
}

.post-context-suggestions__cta {
    min-height: 2.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1rem;
    border-radius: 0.75rem;
    background: var(--primary-color);
    color: #111827;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.post-context-suggestions__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.post-context-suggestions__card {
    overflow: hidden;
    border: 1px solid #f3f4f6;
    border-radius: 0.875rem;
    background: #fff;
}

.post-context-suggestions__image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f4f6;
}

.post-context-suggestions__image img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
}

.post-context-suggestions__body {
    padding: 0.9rem;
}

.post-context-suggestions__body h3 {
    margin: 0 0 0.8rem !important;
    display: -webkit-box;
    overflow: hidden;
    color: #111827;
    font-family: 'Be Vietnam Pro', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 800;
    line-height: 1.35 !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.post-context-suggestions__body h3 a {
    color: inherit;
    text-decoration: none;
}

.post-context-suggestions__link {
    display: inline-flex;
    align-items: center;
    color: #b7791f;
    font-size: 0.87rem;
    font-weight: 800;
    text-decoration: none;
}

.post-context-suggestions__link i {
    margin-left: 0.25rem;
}

@media (max-width: 767px) {
    .post-context-suggestions {
        margin-bottom: 2rem;
        padding: 1rem;
        border-radius: 1rem;
    }

    .post-context-suggestions__header {
        display: block;
        margin-bottom: 1rem;
    }

    .post-context-suggestions h2 {
        font-size: 1.45rem !important;
    }

    .post-context-suggestions__header p:last-child {
        font-size: 0.92rem;
    }

    .post-context-suggestions__cta {
        width: 100%;
        margin-top: 1rem;
    }

    .post-context-suggestions__grid {
        display: flex;
        gap: 0.8rem;
        margin-left: -1rem;
        margin-right: -1rem;
        padding: 0 1rem 0.25rem;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .post-context-suggestions__grid::-webkit-scrollbar {
        display: none;
    }

    .post-context-suggestions__card {
        min-width: min(72vw, 280px);
        scroll-snap-align: start;
    }

    .post-context-suggestions__image {
        aspect-ratio: 16 / 10;
    }
}

.blog-hero {
    scroll-margin-top: 5rem;
}

.blog-filter-chip {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .blog-hero {
        height: min(62vh, 540px) !important;
        min-height: 500px !important;
    }

    .blog-hero nav {
        margin-bottom: 1.5rem !important;
    }

    .blog-hero h1 {
        margin-bottom: 1.25rem !important;
        font-size: 2rem !important;
        line-height: 1.16 !important;
    }

    .blog-hero__summary {
        margin-bottom: 1.5rem !important;
        font-size: 1rem !important;
        line-height: 1.65 !important;
    }

    .blog-topic-section {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }

    .blog-topic-intro {
        margin-bottom: 1.75rem !important;
        text-align: left !important;
    }

    .blog-topic-intro h2 {
        margin-bottom: 0.85rem !important;
        font-size: 1.7rem !important;
        line-height: 1.2 !important;
    }

    .blog-topic-grid {
        display: flex !important;
        gap: 1rem !important;
        margin-left: -1rem;
        margin-right: -1rem;
        padding: 0 1rem 0.4rem;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .blog-topic-grid::-webkit-scrollbar {
        display: none;
    }

    .blog-topic-card {
        min-width: min(78vw, 300px);
        padding: 1.25rem !important;
        scroll-snap-align: start;
    }

    .blog-topic-icon {
        width: 3rem !important;
        height: 3rem !important;
        margin-bottom: 1rem !important;
        border-radius: 0.85rem !important;
    }

    .blog-topic-card h3 {
        margin-bottom: 0.65rem !important;
        font-size: 1.25rem !important;
        line-height: 1.25 !important;
    }

    .blog-topic-card p {
        margin-bottom: 1rem !important;
        font-size: 0.93rem;
        line-height: 1.55;
    }

    .blog-latest-header {
        display: block !important;
        margin-bottom: 1.5rem !important;
    }

    .blog-latest-header h2 {
        margin-bottom: 1rem !important;
        max-width: 13rem;
    }

    .blog-filter-chips {
        gap: 0.5rem !important;
        margin-left: -0.25rem;
        padding-bottom: 0.2rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .blog-filter-chips::-webkit-scrollbar {
        display: none;
    }

    .blog-filter-chip {
        min-height: 2.5rem;
        padding: 0.55rem 0.85rem !important;
        border-radius: 999px !important;
        background: #f9fafb;
        border: 1px solid #e5e7eb;
        font-size: 0.92rem;
    }

    .blog-filter-chip:first-child {
        background: var(--primary-color);
        border-color: var(--primary-color);
    }

    .blog-post-card h3 {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        font-size: 1.3rem !important;
        line-height: 1.28 !important;
    }

    .blog-post-card p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .blog-post-card img {
        height: 11rem !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .blog-hero {
        height: min(58vh, 560px) !important;
        min-height: 520px !important;
    }

    .blog-topic-section {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .blog-topic-intro {
        margin-bottom: 2rem !important;
    }

    .blog-topic-grid {
        display: flex !important;
        gap: 1rem !important;
        margin-left: -1rem;
        margin-right: -1rem;
        padding: 0 1rem 0.4rem;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .blog-topic-grid::-webkit-scrollbar {
        display: none;
    }

    .blog-topic-card {
        min-width: min(42vw, 320px);
        padding: 1.5rem !important;
        scroll-snap-align: start;
    }

    .blog-topic-icon {
        width: 3.5rem !important;
        height: 3.5rem !important;
        margin-bottom: 1rem !important;
    }

    .blog-topic-card h3 {
        margin-bottom: 0.75rem !important;
        font-size: 1.35rem !important;
        line-height: 1.24 !important;
    }

    .blog-topic-card p {
        margin-bottom: 1rem !important;
        font-size: 0.95rem;
        line-height: 1.55;
    }
}

/* ─── RemixIcon placeholder fix ─────────────────────────────────────── */
:where([class^="ri-"])::before {
    content: "\f3c2";
}

/* ─── Background texture helpers (not expressible as Tailwind JIT) ──── */
.stone-texture {
    background: linear-gradient(135deg, #f8fafc 0%, #f3f4f6 48%, #fff7ed 100%);
}

.stone-texture-1 {
    background: linear-gradient(135deg, #fafaf9 0%, #f5f5f4 55%, #fff8e6 100%);
}

.stone-texture-2 {
    background: linear-gradient(135deg, #fffaf0 0%, #f7f2e8 48%, #f5f5f4 100%);
}

.stone-overlay {
    background-color: rgba(255, 255, 255, 0.97);
}

.hero-section {
    background-image: linear-gradient(to right,
            rgba(255, 255, 255, 0.9) 40%,
            rgba(255, 255, 255, 0.7) 60%,
            rgba(255, 255, 255, 0.1) 80%);
    background-size: cover;
    background-position: center right;
}

/* Custom styles to override Tailwind issues */
header.sticky {
    border-bottom: 2px solid var(--primary-color) !important;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15) !important;
}

@media (min-width: 1024px) {
    .site-header-inner {
        min-height: 78px;
    }
}

.site-logo {
    max-width: min(280px, 64vw);
    height: auto;
}

@media (max-width: 1023px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        padding-bottom: 6rem;
    }

    .site-header-inner {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 2.75rem;
        gap: 0.5rem;
        position: relative;
        min-height: 64px;
    }

    .site-logo-link {
        min-width: 0;
    }

    #openMenu {
        display: flex !important;
        position: static;
        justify-self: end;
        z-index: 60;
        width: 2.75rem;
        height: 2.75rem;
        transform: none;
        background: var(--primary-color) !important;
        color: #111827 !important;
        border-radius: 0.875rem;
        box-shadow: 0 5px 14px rgba(0, 0, 0, 0.1);
    }

    #openMenu::before {
        content: "☰";
        font-size: 1.35rem;
        line-height: 1;
    }

    #openMenu i {
        display: none;
    }

    .mobile-cta-bar {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        left: 0.625rem !important;
        right: 0.625rem !important;
        width: auto !important;
        max-width: 420px;
        margin-inline: auto;
        gap: 0.5rem !important;
        padding: 0.375rem !important;
        border-radius: 1rem !important;
        box-shadow: 0 8px 24px rgba(17, 24, 39, 0.16) !important;
    }

    .mobile-cta-bar a {
        min-height: 2.75rem !important;
        padding: 0.55rem 0.75rem !important;
        border-radius: 999px !important;
        font-size: 0.82rem !important;
    }

    .mobile-cta-bar .truncate {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.single-post #backToTop {
        bottom: 1.25rem !important;
    }

    .site-logo {
        max-width: 210px;
        max-height: 52px;
        object-fit: contain;
    }
}

@media (max-width: 480px) {
    .site-logo {
        max-width: 188px;
    }
}

.hero-readable-overlay {
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.62) 0%,
            rgba(0, 0, 0, 0.48) 34%,
            rgba(0, 0, 0, 0.18) 68%,
            rgba(0, 0, 0, 0.08) 100%);
}

@media (max-width: 1023px) {
    .hero-section {
        min-height: calc(100svh - 66px) !important;
    }

    .hero-slide-image {
        background-position: 58% center !important;
        transform: scale(1.01) !important;
    }

    .hero-readable-overlay {
        background: linear-gradient(90deg,
                rgba(0, 0, 0, 0.66) 0%,
                rgba(0, 0, 0, 0.46) 48%,
                rgba(0, 0, 0, 0.18) 100%),
            linear-gradient(0deg,
                rgba(0, 0, 0, 0.16) 0%,
                rgba(0, 0, 0, 0) 34%);
    }

    .hero-section .container {
        align-self: flex-start;
        padding-top: clamp(3.75rem, 8vh, 5.5rem);
        padding-bottom: 7.25rem;
    }

    .hero-section h1.heading {
        max-width: 18.5rem;
        margin-bottom: 1rem !important;
        font-size: clamp(2.05rem, 8.8vw, 2.55rem) !important;
        line-height: 1.05 !important;
        text-wrap: balance;
    }

    .hero-section p {
        max-width: 20.5rem;
        margin-bottom: 1.125rem !important;
        font-size: 0.94rem !important;
        line-height: 1.52 !important;
    }

    .hero-section .animate-fade-slide-up > a {
        min-height: 3rem;
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem !important;
    }

    .hero-section #prevSlide,
    .hero-section #nextSlide {
        top: auto !important;
        bottom: 3.75rem !important;
        width: 2.625rem !important;
        height: 2.625rem !important;
        background: rgba(0, 0, 0, 0.28) !important;
    }

    .hero-section #prevSlide {
        left: 0.875rem !important;
    }

    .hero-section #nextSlide {
        right: 0.875rem !important;
    }

    .hero-section [role="tablist"] {
        bottom: 1.35rem !important;
    }

    .home-proof-bar {
        margin-top: 0;
    }

    .home-proof-bar dl {
        border-top: 1px solid #f3f4f6;
    }

    #about {
        overflow: hidden;
    }

    #about .relative > .absolute {
        max-width: calc(100% - 1.5rem);
    }

    #about .relative > .absolute.-top-6,
    #about .relative > .absolute.-bottom-6 {
        top: 0.75rem !important;
        bottom: auto !important;
        left: 0.75rem !important;
        right: auto !important;
    }

    #about .flex.flex-wrap.gap-4 {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    #about .flex.flex-wrap.gap-4 a {
        width: 100%;
        justify-content: center;
        min-height: 3rem;
        white-space: normal !important;
        text-align: center;
    }
}

.mobile-menu-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.mobile-menu-quick-actions__link {
    min-height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.875rem;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.mobile-menu-quick-actions__link--zalo {
    background: #1e44b8;
    border-color: #315bd6;
}

.category-product-bottom-cta a {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.category-guide-strip {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #f1e7c7;
    border-radius: 0.875rem;
    background: #fffaf0;
}

.category-guide-strip__label {
    margin-bottom: 0.55rem;
    color: #8b6300;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.category-guide-strip__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.category-guide-strip__chips span {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #fff;
    color: #3f3b35;
    font-size: 0.82rem;
    font-weight: 700;
}

.category-guide-strip__link {
    color: #111827;
    font-size: 0.86rem;
    font-weight: 900;
    text-decoration: underline;
    text-decoration-color: rgba(255, 190, 5, 0.6);
    text-underline-offset: 4px;
}

.category-guide-strip__summary {
    display: none;
    margin: 0.65rem 0 0;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.55;
}

.category-product-desktop-note {
    margin: 0 0 1.25rem;
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.6;
}

.category-product-desktop-note a {
    color: #111827;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: rgba(255, 190, 5, 0.6);
    text-underline-offset: 4px;
}

.category-product-bottom-cta {
    display: none;
    margin-top: 2rem;
    padding: 1.25rem;
    border-radius: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.category-product-bottom-cta h2 {
    margin: 0 0 0.5rem;
    font-family: 'Playfair Display', serif;
    color: #111827;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
}

.category-product-bottom-cta p {
    margin: 0 auto 1rem;
    max-width: 34rem;
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.55;
}

.category-product-bottom-cta a {
    background: var(--primary-color);
    color: #111827;
    padding: 0.75rem 1.1rem;
}

@media (min-width: 1024px) {
    .category-guide-strip__summary {
        display: block;
    }
}

.hero-section h1.heading {
    font-size: clamp(2.65rem, 4.35vw, 4.45rem) !important;
    line-height: 1.12 !important;
    text-shadow: 0 4px 15px rgba(0,0,0,0.7) !important;
    text-wrap: balance;
}

.hero-section p {
    font-size: clamp(1.05rem, 1.35vw, 1.25rem) !important;
    line-height: 1.65 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5) !important;
}

.pattern-bg {
    background-color: #f8f9fa;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e2e8f0' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ─── Gallery modal (complex multi-state, not Tailwind-expressible) ─── */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.gallery-modal.active {
    display: flex;
}

.gallery-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* ─── Shared Background Textures ─────────────────────────────────────── */
.stone-texture {
    background: linear-gradient(135deg, #f8fafc 0%, #f3f4f6 48%, #fff7ed 100%);
}

.stone-texture-1 {
    background: linear-gradient(135deg, #fafaf9 0%, #f5f5f4 55%, #fff8e6 100%);
}

/* ─── Animations ────────────────────────────────────────────────────── */
.animate-in {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ─── Custom Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e6a800;
}

/* ─── Typography Spacing Fixes ──────────────────────────────────────── */
.prose p {
    margin-bottom: 1.25em;
}

.prose p:last-child {
    margin-bottom: 0;
}

/* ─── Responsive Images Inside Content ──────────────────────────────── */
.prose img,
.prose iframe,
.prose video {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 0.5rem;
    margin: 2rem auto;
    display: block;
}

/* ─── Grid Image Aspect Ratio ─────────────────────────────────────── */
.aspect-\[4\/5\] {
    aspect-ratio: 4 / 5 !important;
}

/* ─── Typography: Heading Underline ──────────────────────────────────── */
h1.heading,
h2.heading {
    position: relative;
    padding-bottom: 0.5rem;
}

h1.heading::after,
h2.heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3rem;
    height: 2px;
    background-image: linear-gradient(to right, #fbb03b, #d97706);
}

.text-center.heading::after,
.text-center .heading::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ─── Mega Menu Premium Styles ───────────────────────────────────────── */

.mega-menu-container {
    position: absolute;
    top: 100%;
    left: 50%;
    width: min(96vw, 1560px);
    max-width: none;
    background: #ffffff;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--primary-color);
    border-radius: 0 0 16px 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    overflow: hidden;
}

.group:hover>.mega-menu-container {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-item.is-mega-dismissed>.mega-menu-container {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
    transform: translateX(-50%) translateY(10px) !important;
}

.mega-menu-close {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    z-index: 4;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.06);
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mega-menu-close:hover,
.mega-menu-close:focus-visible {
    background: #1f2937;
    color: #fff;
    transform: scale(1.04);
}

.mega-menu-close:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.mega-menu-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 0 !important;
    padding: 1.35rem 1.375rem 1.125rem !important;
    width: 100% !important;
    position: relative;
    z-index: 1;
}

.mega-menu-featured {
    grid-column: span 1;
    border-right: 1px solid #f1f1f1;
    padding-right: 1.5rem;
}

.featured-card {
    position: relative;
    height: 100%;
    min-height: 280px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: transform 0.5s ease;
}

.featured-card:hover .featured-img {
    transform: scale(1.1);
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.featured-title {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.featured-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.featured-link {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.featured-link i {
    margin-left: 0.5rem;
}

.mega-menu-column {
    min-width: 0;
    position: relative;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Golden gradient divider between columns */
.mega-menu-column+.mega-menu-column::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(255, 190, 5, 0.25) 15%,
            rgba(218, 165, 32, 0.35) 50%,
            rgba(255, 190, 5, 0.25) 85%,
            transparent 100%);
}

/* First column no left padding */
.mega-menu-column:first-child {
    padding-left: 0;
}

.mega-menu-column-title {
    font-family: 'Playfair Display', serif !important;
    min-height: 42px;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    border-bottom: none !important;
    padding-bottom: 0.65rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.15 !important;
    white-space: normal !important;
    position: relative;
}

.mega-menu-column-title--stacked {
    min-height: 0;
    margin-top: 1rem !important;
}

/* Golden gradient underline accent for category titles */
.mega-menu-column-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 42px;
    height: 2px;
    background: linear-gradient(90deg, #FFBE05, #d4a017);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.mega-menu-column:hover .mega-menu-column-title::after {
    width: 100%;
}

.mega-menu-column-title a {
    color: #1a1a1a !important;
    text-decoration: none !important;
    font-family: 'Playfair Display', serif !important;
    transition: color 0.2s ease;
}

.mega-menu-column-title a:hover {
    color: var(--primary-color);
}

.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-item {
    margin-bottom: 0.1875rem;
}

.mega-menu-link {
    color: #333;
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.35;
    display: flex;
    align-items: flex-start;
    transition: color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
    padding: 5px 6px;
    border-radius: 8px;
    overflow-wrap: normal;
    word-break: normal;
}

.link-dot {
    width: 6px;
    height: 1.5px;
    /* Thinner for elegance */
    background: #d4a017;
    margin-top: 0.5rem;
    margin-right: 7px;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.3;
}

.mega-menu-link:hover {
    color: #1a1a1a;
    transform: none;
    background: rgba(255, 190, 5, 0.04);
    /* Even subtler background */
}

.mega-menu-link:hover .link-dot {
    width: 12px;
    /* Shorter line, less intrusive */
    background: #d4a017;
    opacity: 1;
}

.mega-menu-more {
    margin-top: 0.5rem;
}

.mega-menu-more-link {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 7px 9px;
    border-radius: 999px;
    background: #fff6d6;
    color: #8b6300;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.mega-menu-more-link:hover {
    background: #ffedaa;
    color: #6f4e00;
}

.mega-menu-consult {
    grid-column: 1 / -1;
    margin-top: 0.625rem;
    margin-right: 4.75rem;
    padding: 1.05rem 1.25rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #1f2937 0%, #172033 100%);
    color: #fff;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(330px, auto);
    gap: 1rem;
    align-items: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.mega-menu-consult-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 190, 5, 0.14);
    color: #ffda69;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.mega-menu-consult-copy {
    min-width: 0;
}

.mega-menu-consult-eyebrow {
    margin: 0 0 0.3rem;
    color: #ffda69;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.mega-menu-consult h3 {
    margin: 0 0 0.35rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.2;
}

.mega-menu-consult p {
    margin: 0;
    color: #e5e7eb;
    font-size: 0.84rem;
    line-height: 1.45;
}

.mega-menu-consult-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
}

.mega-menu-consult-actions a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.mega-menu-consult-primary {
    background: var(--primary-color);
    color: #15110a;
    min-width: 150px;
    box-shadow: 0 10px 22px rgba(255, 190, 5, 0.18);
}

.mega-menu-consult-primary img {
    width: 1.35rem;
    height: 1.35rem;
    margin-right: 0.45rem;
    object-fit: contain;
}

.mega-menu-consult-secondary {
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.86);
    min-width: 155px;
}

.mega-menu-consult-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* ─── Modern Category Cards (Homepage) ──────────────────────────────── */
.modern-category-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modern-category-image-wrapper {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.modern-category-title {
    font-family: 'Playfair Display', serif !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    /* Less tracking for titles with descriptions */
    text-transform: none;
    /* Keep natural casing for "Classic" feel */
    font-size: 1.4rem;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.modern-category-accent {
    margin: 8px 0 12px;
    height: 1px;
    background: var(--primary-color);
    width: 40px;
    opacity: 0.8;
}

.modern-category-card:hover .modern-category-title {
    color: var(--primary-color);
}

.modern-category-link {
    opacity: 0.8;
}

.modern-category-card:hover .modern-category-link {
    opacity: 1;
    color: var(--primary-color);
}

.product-card__title {
    line-height: 1.35 !important;
}

.product-card__title-link {
    display: block;
    line-height: inherit;
}

.product-card__meta,
.product-card__code,
.product-card__code span {
    font-size: 0.8125rem !important;
    line-height: 1.35;
}

.product-card__cta,
.project-card__cta,
.modern-category-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.5rem;
    font-size: 0.875rem !important;
    line-height: 1.2;
}

.project-card__cta {
    display: flex;
    width: 100%;
    padding: 0.65rem 1rem !important;
}

.subcategory-count-badge {
    background-color: #fff;
    color: #1f2937;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.25;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.product-pagination > a,
.product-pagination > span:not(.product-pagination__ellipsis) {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
}

.product-pagination__ellipsis {
    min-width: 1rem;
    line-height: 44px;
    text-align: center;
}

/* Homepage category decision CTA. Kept in style.css so spacing is not
   dependent on generated Tailwind utility availability. */
.home-category-cta {
    clear: both;
    width: 100%;
    margin: clamp(1.75rem, 3vw, 3rem) 0 0;
    padding-top: 0;
    position: relative;
    z-index: 1;
}

.home-category-cta__panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    border-radius: 1.25rem;
    background: #111827;
    color: #fff;
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.18);
}

.home-category-cta__copy {
    max-width: 48rem;
}

.home-category-cta__eyebrow {
    margin: 0 0 0.85rem;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.home-category-cta__title {
    margin: 0 0 0.9rem;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 700;
    line-height: 1.34;
}

.home-category-cta__text {
    margin: 0;
    max-width: 42rem;
    color: #d1d5db;
    font-size: 1rem;
    line-height: 1.65;
}

.home-category-cta__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.9rem;
}

.home-category-cta__button {
    min-height: 3.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.4rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.home-category-cta__button--primary {
    min-width: 13.5rem;
    background: var(--primary-color);
    color: #111827;
}

.home-category-cta__button--primary:hover {
    background: #f59e0b;
}

.home-category-cta__icon {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
    object-fit: contain;
}

.home-category-cta__button--secondary {
    min-width: 13.5rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.04);
    color: #f3f4f6;
    font-weight: 700;
}

.home-category-cta__button--secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 1023px) {
    .home-category-cta {
        margin-top: 1.75rem;
    }

    .home-category-cta__panel {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.375rem;
    }

    .home-category-cta__actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {
    .category-mobile-hero {
        padding-bottom: 1.25rem !important;
    }

    .category-product-desktop-note {
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }

    .product-card .aspect-\[4\/5\] {
        aspect-ratio: 16 / 11;
    }

    .category-product-bottom-cta {
        display: block;
    }

    #products {
        padding-top: 3rem !important;
        padding-bottom: 2.25rem !important;
    }

    #products .text-center.mb-16 {
        margin-bottom: 2.25rem !important;
    }

    #products .grid {
        gap: 2rem !important;
    }

    .modern-category-image-wrapper {
        aspect-ratio: 16 / 10;
        margin-bottom: 1rem !important;
    }

    .modern-category-title {
        font-size: 1.35rem;
        line-height: 1.25;
    }

    .modern-category-info p {
        margin-bottom: 0.75rem !important;
    }

    .product-card__title-link {
        min-height: 44px;
    }

    .product-card__meta,
    .product-card__code,
    .product-card__code span,
    .subcategory-count-badge,
    .text-xs {
        font-size: 0.875rem !important;
    }

    .modern-category-link {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    .product-card__cta,
    .modern-category-link {
        font-size: 1rem !important;
    }

    .home-category-cta {
        margin-top: 1.5rem;
    }

    .home-category-cta__panel {
        border-radius: 1rem;
    }

    .home-category-cta__title {
        font-size: 1.2rem;
        line-height: 1.42;
    }

    .home-category-cta__text {
        font-size: 0.95rem;
    }

    #backToTop {
        bottom: calc(5.75rem + env(safe-area-inset-bottom)) !important;
    }
}

.home #about {
    padding-top: 2rem !important;
}

.home #about .stone-overlay {
    padding-top: 2rem !important;
}

@media (max-width: 767px) {
    .home #about {
        padding-top: 1.25rem !important;
    }

    .home #about .stone-overlay {
        padding-top: 1.25rem !important;
    }
}

@media (max-width: 640px) {
    .home-category-cta__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .home-category-cta__button {
        width: 100%;
        min-width: 0;
    }
}

/* ─── Nav Links ─────────────────────────────────────────────────────── */

.nav-link,
.nav-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-weight: 600;
    color: #333;
    padding: 1.25rem 0.35rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
    white-space: nowrap;
}

/* Ensure the arrow icon aligns without shifting */
.nav-link-btn i {
    margin-left: 4px;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

/* Hover effect stays the same */
.nav-link:hover,
.nav-link-btn:hover {
    color: var(--primary-color);
}

.nav-link::after,
.nav-link-btn::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 8px;
    right: 8px;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link-btn:hover::after {
    transform: scaleX(1);
}

/* ─── Mobile Accordion ──────────────────────────────────────────────── */

.mobile-toggle-btn {
    background: none;
    border: none;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.mobile-toggle-btn.rotate-180 {
    transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .floating-pulse {
        display: none !important;
    }
}

.mega-menu-list.active-submenu {
    display: block;
}

@media (max-width: 1023px) {
    .mega-menu-container {
        display: none !important;
    }
}

@media (max-width: 768px) {
    #mobileMenu {
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }
}
