/* ==========================================================================
   MUDHRA — EDITORIAL DESIGN SYSTEM
   Typography: Plus Jakarta Sans ONLY (all weights 300–800).
   Hierarchy is expressed with weight, size, tracking and colour — never a
   second font family. Brand colours are overridable from the Customizer via
   CSS custom properties printed in <head>.
   ========================================================================== */

:root {
    /* Surfaces */
    --bg-base: #F7F5F0;
    --bg-surface: #FFFFFF;
    --bg-secondary: #EFECE4;
    --bg-dark: #111111;
    --bg-dark-surface: #1A1A1A;
    --bg-dark-subtle: #242424;

    /* Text */
    --text-main: #111111;
    --text-muted: #626059;
    --text-faint: #918E85;
    --text-light: #F7F5F0;
    --text-light-muted: #A3A198;
    --text-light-faint: #6A6860;

    /* Brand accents (Customizer-overridable) */
    --accent-saffron: #C68A3A;
    --accent-vermilion: #C84B32;
    --accent-indigo: #283B63;

    /* Borders */
    --border-main: rgba(17, 17, 17, 0.12);
    --border-light: rgba(17, 17, 17, 0.06);
    --border-dark: rgba(247, 245, 240, 0.12);

    /* One family, used everywhere. */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: var(--font-sans);
    --font-mono: var(--font-sans);

    --container-max: 1380px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
    --transition-smooth: cubic-bezier(0.25, 1, 0.5, 1);
    --shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.05);
    --shadow-md: 0 8px 24px -12px rgba(17, 17, 17, 0.18);
    --shadow-lg: 0 20px 40px -20px rgba(17, 17, 17, 0.25);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.65;
    overflow-x: hidden;
    margin: 0;
}

::selection { background: #111111; color: #F7F5F0; }

/* --------------------------------------------------------------------------
   TYPOGRAPHY — all Plus Jakarta Sans
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4 {
    font-family: var(--font-sans);
    color: var(--text-main);
    margin: 0 0 0.5em;
    line-height: 1.12;
    letter-spacing: -0.022em;
    font-weight: 700;
}
h1, .h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.03em; }
h2, .h2 { font-size: clamp(1.85rem, 3.6vw, 3rem); font-weight: 700; }
h3, .h3 { font-size: clamp(1.35rem, 2.2vw, 2rem); font-weight: 700; }
h4, .h4 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
h5 { font-size: 1.0625rem; font-weight: 600; }
h6 { font-size: 0.9375rem; font-weight: 600; }

p { margin: 0 0 1rem; }
a { color: var(--text-main); text-underline-offset: 3px; }
a:hover { color: var(--accent-vermilion); }
strong, b { font-weight: 700; }
small { font-size: 0.875rem; }
em { font-style: italic; font-weight: 600; }

/* Legacy class hooks kept for template compatibility — now all one family. */
.font-serif,
.font-display,
.font-cormorant {
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: -0.022em;
}
.font-sans { font-family: var(--font-sans); }
.font-mono {
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   CATEGORY / FILTER CHIPS (shop archive)
   -------------------------------------------------------------------------- */
.mudhra-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-main);
    border-radius: var(--radius-pill);
    background: var(--bg-surface);
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.22s var(--transition-smooth);
}
.mudhra-filter-chip:hover {
    border-color: var(--text-main);
    color: var(--text-main);
    transform: translateY(-1px);
}
.mudhra-filter-chip.is-active {
    background: var(--bg-dark);
    border-color: var(--bg-dark);
    color: var(--text-light);
}
.mudhra-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.375rem;
    padding: 0 0.3125rem;
    border-radius: var(--radius-pill);
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 0.6875rem;
    font-weight: 700;
}
.mudhra-filter-chip.is-active .mudhra-filter-count {
    background: rgba(247, 245, 240, 0.16);
    color: var(--text-light);
}

/* Eyebrow / label typography */
.section-tag {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
}
.section-tag::before {
    content: '';
    width: 6px; height: 6px;
    background-color: var(--accent-saffron);
    border-radius: 50%;
    flex: none;
}

/* --------------------------------------------------------------------------
   LAYOUT
   -------------------------------------------------------------------------- */
.editorial-container,
.mudhra-container {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1.25rem, 5vw, 3.5rem);
    padding-right: clamp(1.25rem, 5vw, 3.5rem);
}

.editorial-divider { height: 1px; background-color: var(--border-main); width: 100%; }
.editorial-divider-dark { height: 1px; background-color: var(--border-dark); width: 100%; }

.bg-grain {
    background-image: radial-gradient(rgba(17, 17, 17, 0.04) 1px, transparent 0);
    background-size: 24px 24px;
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn-editorial-primary,
.btn-editorial-secondary,
.btn-editorial-light,
.mudhra-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.9375rem 1.875rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: var(--radius-pill);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    line-height: 1;
}

.btn-editorial-primary,
.mudhra-btn--dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border: 1px solid var(--bg-dark);
}
.btn-editorial-primary:hover,
.mudhra-btn--dark:hover {
    background-color: var(--accent-vermilion);
    border-color: var(--accent-vermilion);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(200, 75, 50, 0.32);
}

.btn-editorial-secondary,
.mudhra-btn--outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-main);
}
.btn-editorial-secondary:hover,
.mudhra-btn--outline:hover {
    background-color: var(--bg-secondary);
    border-color: var(--text-main);
    transform: translateY(-2px);
    color: var(--text-main);
}

.btn-editorial-light {
    background-color: var(--bg-base);
    color: var(--text-main);
    border: 1px solid var(--bg-base);
}
.btn-editorial-light:hover {
    background-color: var(--accent-saffron);
    border-color: var(--accent-saffron);
    color: #fff;
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   NAVIGATION
   -------------------------------------------------------------------------- */
.nav-link-editorial {
    position: relative;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: color 0.25s ease;
}
.nav-link-editorial::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background-color: var(--accent-saffron);
    transition: width 0.3s var(--transition-smooth);
}
.nav-link-editorial:hover::after,
.nav-link-editorial:focus-visible::after { width: 100%; }
.nav-link-editorial:hover { color: var(--text-main); }

/* --------------------------------------------------------------------------
   CARDS / PANELS
   -------------------------------------------------------------------------- */
.mudhra-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--transition-smooth);
}
.mudhra-card:hover {
    border-color: var(--accent-saffron);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.project-card .project-media { overflow: hidden; position: relative; background-color: var(--bg-secondary); }
.project-card .project-media img { transition: transform 0.7s var(--transition-smooth); }
.project-card:hover .project-media img { transform: scale(1.04); }

.service-pillar {
    border-top: 1px solid var(--border-main);
    transition: background-color 0.3s ease;
}
.service-pillar:last-child { border-bottom: 1px solid var(--border-main); }
.service-pillar:hover { background-color: rgba(255, 255, 255, 0.6); }

.process-step {
    position: relative;
    border-left: 2px solid var(--border-main);
    padding-left: 1.5rem;
    transition: border-color 0.3s ease;
}
.process-step:hover { border-color: var(--accent-vermilion); }

/* --------------------------------------------------------------------------
   FORMS
   -------------------------------------------------------------------------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="number"], input[type="date"], input[type="password"], input[type="search"],
select, textarea {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--text-main);
    background-color: var(--bg-surface);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-sm);
    padding: 0.8125rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
/*
 * Tailwind's CDN build injects the forms reset at runtime, so its stylesheet
 * lands after this file and would strip the radius from every control.
 * Specificity (html body + element) beats it without resorting to !important.
 */
html body select,
html body input[type="text"],
html body input[type="email"],
html body input[type="tel"],
html body input[type="url"],
html body input[type="number"],
html body input[type="date"],
html body input[type="password"],
html body input[type="search"],
html body input[type="file"],
html body textarea {
    border-radius: var(--radius-sm);
}

/* Checkboxes and radios keep their native shape. */
html body input[type="checkbox"] {
    border-radius: 4px;
    accent-color: var(--bg-dark);
}
html body input[type="radio"] {
    border-radius: 50%;
    accent-color: var(--bg-dark);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--text-main);
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}
label { font-weight: 600; font-size: 0.875rem; display: block; margin-bottom: 0.375rem; }
.dark-form input, .dark-form select, .dark-form textarea { background-color: #121212; border-color: rgba(255,255,255,0.12); color: #fff; }

/* --------------------------------------------------------------------------
   NOTICES
   -------------------------------------------------------------------------- */
.mudhra-notice {
    border: 1px solid var(--border-main);
    border-left-width: 4px;
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    background: var(--bg-surface);
}
.mudhra-notice--success { border-left-color: var(--accent-saffron); }
.mudhra-notice--error { border-left-color: var(--accent-vermilion); }
.mudhra-notice--info { border-left-color: var(--accent-indigo); }

/* --------------------------------------------------------------------------
   UTILITIES
   -------------------------------------------------------------------------- */
.mudhra-muted { color: var(--text-muted); }
.mudhra-faint { color: var(--text-faint); }
.mudhra-eyebrow {
    font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--text-faint);
}
.mudhra-pill {
    display: inline-flex; align-items: center; gap: 0.375rem;
    padding: 0.375rem 0.75rem; border-radius: var(--radius-pill);
    font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; background: var(--bg-secondary); color: var(--text-muted);
}
.mudhra-trust-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.mudhra-trust-list li { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.875rem; color: var(--text-muted); }
.mudhra-trust-list li::before { content: '—'; color: var(--accent-saffron); font-weight: 700; flex: none; }

.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
    position: fixed; top: 8px; left: 8px; z-index: 200;
    background: #111; color: #fff; padding: 0.75rem 1rem; border-radius: 8px;
    width: auto; height: auto; clip: auto;
}

/* --------------------------------------------------------------------------
   SCROLLBAR
   -------------------------------------------------------------------------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: #D1CDC3; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #B5B0A4; }

/* --------------------------------------------------------------------------
   ARTICLE TYPOGRAPHY — .mudhra-prose
   Post and page body copy: single.php, page.php, page-about.php, page-help.php
   and the quote page all render the editor's HTML through this class. It was
   referenced from five templates but never defined, so article copy fell back
   to browser defaults.
   -------------------------------------------------------------------------- */
.mudhra-prose {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-main);
}
.mudhra-prose > * + * { margin-top: 1.15em; }
.mudhra-prose p { margin: 0; }

.mudhra-prose h2,
.mudhra-prose h3,
.mudhra-prose h4 {
    margin: 1.9em 0 0.6em;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-main);
}
.mudhra-prose > :first-child { margin-top: 0; }
.mudhra-prose h2 { font-size: 1.6rem; font-weight: 700; }
.mudhra-prose h3 { font-size: 1.3rem; font-weight: 700; }
.mudhra-prose h4 { font-size: 1.075rem; font-weight: 700; }

.mudhra-prose a {
    color: var(--text-main);
    text-decoration: underline;
    text-decoration-color: var(--accent-saffron);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
.mudhra-prose a:hover { color: var(--accent-vermilion); }

.mudhra-prose ul,
.mudhra-prose ol { padding-left: 1.35rem; }
.mudhra-prose li { margin-top: 0.35em; }
.mudhra-prose li::marker { color: var(--accent-saffron); font-weight: 700; }
.mudhra-prose ul ul,
.mudhra-prose ol ol,
.mudhra-prose ul ol,
.mudhra-prose ol ul { margin-top: 0.35em; }

.mudhra-prose blockquote {
    margin: 1.75em 0;
    padding: 0.25rem 0 0.25rem 1.25rem;
    border-left: 3px solid var(--accent-saffron);
    font-size: 1.0625rem;
    font-style: italic;
    color: var(--text-muted);
}
.mudhra-prose blockquote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.mudhra-prose hr {
    margin: 2.25em 0;
    border: 0;
    border-top: 1px solid var(--border-main);
}

.mudhra-prose code,
.mudhra-prose kbd,
.mudhra-prose samp {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 0.15em 0.4em;
    font-size: 0.9em;
    font-family: var(--font-sans);
    font-weight: 600;
}
.mudhra-prose pre {
    margin: 1.75em 0;
    padding: 1.25rem;
    background: var(--bg-dark);
    color: var(--text-light);
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.6;
}
.mudhra-prose pre code { background: none; padding: 0; font-weight: 400; color: inherit; }

.mudhra-prose img,
.mudhra-prose iframe {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}
.mudhra-prose figure { margin: 1.75em 0; }
.mudhra-prose figcaption,
.mudhra-prose .wp-caption-text {
    margin-top: 0.6rem;
    font-size: 0.8125rem;
    color: var(--text-faint);
    text-align: center;
}

.mudhra-prose table {
    width: 100%;
    margin: 1.75em 0;
    border-collapse: collapse;
    font-size: 0.9375rem;
}
.mudhra-prose th,
.mudhra-prose td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border-main);
    text-align: left;
}
.mudhra-prose th { font-weight: 700; background: var(--bg-secondary); }

/* WordPress alignment and gallery helpers, on the same tokens. */
.mudhra-prose .alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.mudhra-prose .alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.mudhra-prose .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.mudhra-prose .wp-block-image img { border-radius: var(--radius-md); }
.mudhra-prose .wp-block-button__link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    background: var(--bg-dark);
    color: var(--text-light);
    font-weight: 700;
    text-decoration: none;
}
.mudhra-prose::after { content: ''; display: table; clear: both; }

/* --------------------------------------------------------------------------
   FOOTER LINK LISTS
   footer.php renders every column as .footer-links. The markup carries the
   spacing utilities; colour belongs here because the footer sits on the dark
   surface, where the browser default link colour is unreadable.
   -------------------------------------------------------------------------- */
.footer-links li { margin: 0; }
.footer-links a {
    color: var(--text-light-muted);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s var(--transition-smooth);
}
.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--text-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   PAGE PAGINATION
   wp_link_pages() inside page.php and single.php.
   -------------------------------------------------------------------------- */
.mudhra-pagination,
.page-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-muted);
}
.mudhra-pagination a,
.page-links a {
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 2px solid var(--accent-saffron);
}

/* --------------------------------------------------------------------------
   MARQUEE
   The announcement strip under the header. This lived in an inline <style>
   block while the theme still used the Tailwind Play CDN; it belongs with the
   rest of the design system.
   -------------------------------------------------------------------------- */
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-marquee {
    display: flex; width: max-content;
    animation: marquee 40s linear infinite;
}
.animate-marquee:hover { animation-play-state: paused; }

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

/* --------------------------------------------------------------------------
   VISTAPRINT-STYLE HEADER & MEGA-MENU
   -------------------------------------------------------------------------- */
.vp-nav-dropdown-wrapper {
    position: relative;
}

.vp-nav-dropdown-wrapper:hover .vp-mega-dropdown,
.vp-nav-dropdown-wrapper:focus-within .vp-mega-dropdown {
    display: block !important;
    animation: vpFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.vp-mega-dropdown.grid-cols-12 {
    display: none;
}
.vp-nav-dropdown-wrapper:hover .vp-mega-dropdown.grid-cols-12,
.vp-nav-dropdown-wrapper:focus-within .vp-mega-dropdown.grid-cols-12 {
    display: grid !important;
}

@keyframes vpFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   VISTAPRINT-STYLE PRODUCT CONFIGURATOR
   -------------------------------------------------------------------------- */
.vp-configurator-wrapper form.cart {
    display: block;
    margin-top: 1rem;
}

.vp-configurator-wrapper .mudra-configurator {
    margin-top: 1.25rem;
}

.vp-configurator-wrapper .mudra-configurator label {
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #111111;
    display: block;
    margin-bottom: 0.45rem;
}

.vp-configurator-wrapper .mudra-paper-select,
.vp-configurator-wrapper select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111111;
    background-color: #FFFFFF;
    border: 1.5px solid rgba(17, 17, 17, 0.15);
    border-radius: 12px;
    outline: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.vp-configurator-wrapper .mudra-paper-select:focus,
.vp-configurator-wrapper select:focus {
    border-color: #111111;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.vp-configurator-wrapper .mudra-finishes {
    border: none;
    padding: 0;
    margin: 1.25rem 0;
}

.vp-configurator-wrapper .mudra-finishes legend {
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #111111;
    margin-bottom: 0.5rem;
}

.vp-configurator-wrapper .mudra-finishes label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: #FAF9F5;
    border: 1.5px solid rgba(17, 17, 17, 0.08);
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #222222;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vp-configurator-wrapper .mudra-finishes label:hover {
    background-color: #FFFFFF;
    border-color: rgba(17, 17, 17, 0.25);
    box-shadow: 0 2px 8px rgba(17, 17, 17, 0.04);
}

.vp-configurator-wrapper .mudra-finishes input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #111111;
    cursor: pointer;
    flex-shrink: 0;
}

.vp-configurator-wrapper .mudra-tiers {
    background: #FAF9F5;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
}

.vp-configurator-wrapper .mudra-tiers span {
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #111111;
}

.vp-configurator-wrapper .mudra-tiers ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.4rem;
}

.vp-configurator-wrapper .mudra-tiers li {
    background: #FFFFFF;
    border: 1px solid rgba(17, 17, 17, 0.06);
    border-radius: 8px;
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    color: #333333;
}

.vp-configurator-wrapper .mudra-artwork-field,
.vp-configurator-wrapper .mudra-artwork-upload {
    background: #FAF9F5;
    border: 2px dashed rgba(17, 17, 17, 0.18);
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
    margin: 1.25rem 0;
    transition: all 0.2s ease;
}

.vp-configurator-wrapper .mudra-artwork-field:hover,
.vp-configurator-wrapper .mudra-artwork-upload:hover {
    background: #FFFFFF;
    border-color: #C84B32;
}

.vp-configurator-wrapper .quantity {
    display: inline-flex;
    align-items: center;
    margin-right: 0.75rem;
    vertical-align: middle;
}

.vp-configurator-wrapper .quantity input.qty {
    width: 76px;
    height: 48px;
    text-align: center;
    font-weight: 800;
    font-size: 1rem;
    border: 1.5px solid rgba(17, 17, 17, 0.2);
    border-radius: 12px;
    background: #FFFFFF;
    color: #111111;
    outline: none;
    transition: border-color 0.2s;
}

.vp-configurator-wrapper .quantity input.qty:focus {
    border-color: #111111;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.vp-configurator-wrapper .single_add_to_cart_button,
.vp-configurator-wrapper button[type="submit"].single_add_to_cart_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 2rem;
    background: #111111;
    color: #FFFFFF;
    font-weight: 800;
    font-size: 0.9375rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    vertical-align: middle;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 12px rgba(17, 17, 17, 0.15);
}

.vp-configurator-wrapper .single_add_to_cart_button:hover,
.vp-configurator-wrapper button[type="submit"].single_add_to_cart_button:hover {
    background: #C84B32;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(200, 75, 50, 0.28);
}

.vp-configurator-wrapper .mudra-estimate-note {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 12px;
    padding: 0.85rem 1.15rem;
    color: #166534;
    font-size: 0.8125rem;
    margin-top: 1.25rem;
    line-height: 1.5;
}

.vp-configurator-wrapper .mudra-estimate-value {
    display: block;
    font-size: 0.9375rem;
    font-weight: 800;
    color: #14532D;
    margin-top: 0.35rem;
}

/* ==========================================================================
   VISTAPRINT HEADER & NAVIGATION ENFORCEMENT
   Guarantees search bar and 10-category mega-bar visibility without
   depending on Tailwind purge or cache states.
   ========================================================================== */
.vp-category-nav-bar {
    display: none;
    width: 100%;
    background: #FFFFFF;
    border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.vp-search-form {
    display: none;
}

.vp-mobile-toggle {
    display: block;
}

@media (min-width: 768px) {
    .vp-search-form {
        display: flex !important;
    }
}

@media (min-width: 1024px) {
    .vp-category-nav-bar {
        display: block !important;
    }
    .vp-mobile-toggle {
        display: none !important;
    }
}

/* ==========================================================================
   VISTAPRINT SINGLE PRODUCT PAGE (PDP) BULLETPROOF 2-COLUMN LAYOUT
   Prevents narrow squishing and guarantees balanced 50/50 desktop layout.
   ========================================================================== */
.vp-pdp-main {
    background-color: #FAF9F5;
    padding-top: 2rem;
    padding-bottom: 3.5rem;
    width: 100%;
}

.vp-pdp-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 1380px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1rem, 4vw, 2.5rem);
    padding-right: clamp(1rem, 4vw, 2.5rem);
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .vp-pdp-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 3rem !important;
        align-items: start !important;
    }
}

.vp-pdp-gallery-col {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .vp-pdp-gallery-col {
        position: sticky;
        top: 130px;
    }
}

.vp-main-img-card {
    width: 100%;
    min-height: 420px;
    height: 480px;
    background: #FFFFFF;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(17, 17, 17, 0.05);
}

.vp-main-img-card img {
    max-height: 420px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.vp-main-img-card:hover img {
    transform: scale(1.04);
}

.vp-thumb-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    width: 100%;
}

.vp-thumb-btn {
    width: 5rem;
    height: 5rem;
    flex-shrink: 0;
    border-radius: 14px;
    border: 2px solid rgba(17, 17, 17, 0.1);
    padding: 0.35rem;
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    opacity: 0.75;
}

.vp-thumb-btn:hover {
    opacity: 1;
    border-color: rgba(17, 17, 17, 0.35);
}

.vp-thumb-btn.active,
.vp-thumb-btn.border-\[\#C84B32\] {
    opacity: 1;
    border-color: #C84B32 !important;
    box-shadow: 0 2px 8px rgba(200, 75, 50, 0.15);
}

.vp-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.vp-trust-card {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid rgba(17, 17, 17, 0.1);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04);
}

.vp-pdp-config-col {
    width: 100%;
    min-width: 0;
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid rgba(17, 17, 17, 0.1);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 1px 3px rgba(17, 17, 17, 0.05);
}

.vp-color-swatch-btn {
    transition: all 0.2s ease;
}
.vp-color-swatch-btn.active {
    border-color: #111111 !important;
    background-color: #FFFFFF !important;
    box-shadow: 0 2px 6px rgba(17, 17, 17, 0.1) !important;
}

.vp-finish-card {
    transition: all 0.2s ease;
}

.vp-tier-btn {
    transition: all 0.2s ease;
}
.vp-tier-btn.active {
    border-color: #111111 !important;
    background-color: #FFFFFF !important;
    box-shadow: 0 1px 4px rgba(17, 17, 17, 0.1) !important;
}

/* --------------------------------------------------------------------------
   MUDHRA HERO PRODUCT SLIDER (Dynamic WooCommerce Showcase)
   -------------------------------------------------------------------------- */
.mudhra-hero-slider {
    position: relative;
    background: #FFFFFF;
    border-radius: 28px;
    border: 1px solid rgba(17, 17, 17, 0.1);
    box-shadow: 0 25px 60px -20px rgba(17, 17, 17, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mudhra-hero-slider:hover {
    box-shadow: 0 30px 70px -20px rgba(17, 17, 17, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

.hero-slider-stage {
    position: relative;
    width: 100%;
    min-height: 490px;
    display: flex;
    flex-direction: column;
}

.hero-slider-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.96) translateY(8px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.75rem;
}

.hero-slider-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1) translateY(0);
    position: relative;
    z-index: 2;
}

.hero-slide-glow {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(198, 138, 58, 0.14) 0%, rgba(200, 75, 50, 0.05) 55%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}

.hero-slide-visual {
    position: relative;
    height: 290px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1;
}

.hero-slide-visual img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.12));
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mudhra-hero-slider:hover .hero-slider-slide.is-active .hero-slide-visual img {
    transform: scale(1.04) translateY(-4px);
}

.hero-slider-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(17, 17, 17, 0.12);
    color: #111111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(17, 17, 17, 0.08);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

.hero-slider-nav-btn:hover {
    background: #111111;
    color: #FFFFFF;
    border-color: #111111;
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(17, 17, 17, 0.18);
}

.hero-slider-dot {
    height: 6px;
    width: 6px;
    border-radius: 9999px;
    background: rgba(17, 17, 17, 0.22);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slider-dot:hover {
    background: rgba(17, 17, 17, 0.45);
}

.hero-slider-dot.is-active {
    width: 28px;
    background: #111111;
}

.hero-slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #C68A3A, #C84B32);
    width: 0%;
    transition: width 0.1s linear;
    z-index: 5;
}

/* --------------------------------------------------------------------------
   HERO CAROUSEL SLIDER (Smooth horizontal track)
   -------------------------------------------------------------------------- */
.hero-carousel-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-carousel-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100%;
    transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.hero-carousel-slide {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   FEATURED PRODUCTS CAROUSEL (Section 5)
   -------------------------------------------------------------------------- */
.featured-carousel-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0.25rem 0 1rem;
}

.featured-carousel-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 1.5rem;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.featured-carousel-card {
    flex: 0 0 calc(25% - 1.15rem);
    min-width: 270px;
    max-width: 320px;
    box-sizing: border-box;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-carousel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.12);
}

@media (max-width: 1024px) {
    .featured-carousel-card {
        flex: 0 0 calc(33.333% - 1rem);
        min-width: 260px;
    }
}

@media (max-width: 768px) {
    .featured-carousel-card {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: 240px;
    }
}

@media (max-width: 540px) {
    .featured-carousel-card {
        flex: 0 0 calc(85% - 0.5rem);
        min-width: 240px;
    }
}

/* --------------------------------------------------------------------------
   MATERIAL SYMBOLS ICONS RESILIENCE & LIGATURE ENFORCEMENT
   -------------------------------------------------------------------------- */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-weight: normal !important;
    font-style: normal !important;
    font-size: inherit;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga' 1 !important;
    -moz-font-feature-settings: 'liga' 1 !important;
    font-feature-settings: 'liga' 1 !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* --------------------------------------------------------------------------
   DESKTOP / WEB (>= 1024px): MOBILE MENU IS STRICTLY HIDDEN
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
    #mobile-menu,
    #mobile-menu.is-open,
    #mobile-menu-overlay,
    #mobile-menu-overlay.is-open,
    #mobile-toggle,
    #mobile-search-toggle,
    #mobile-search-bar {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
        opacity: 0 !important;
        transform: translateX(-9999px) !important;
    }
}

/* --------------------------------------------------------------------------
   MOBILE SCREENS (< 1024px): MOBILE MENU SLIDE DRAWER
   -------------------------------------------------------------------------- */
#mobile-menu {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 85% !important;
    max-width: 360px !important;
    height: 100% !important;
    background-color: #FFFFFF !important;
    z-index: 9999 !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    overflow: hidden !important;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#mobile-menu.is-open {
    display: flex !important;
    transform: translateX(0) !important;
}

#mobile-menu-overlay {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 9998 !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#mobile-menu-overlay.is-open {
    display: block !important;
    opacity: 1 !important;
}

/* --------------------------------------------------------------------------
   SHOPPING CART DRAWER (OFF-CANVAS FOR ALL VIEWPORTS)
   -------------------------------------------------------------------------- */
#cart-drawer {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 440px !important;
    height: 100% !important;
    background-color: #F7F5F0 !important;
    z-index: 9999 !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15) !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    will-change: transform;
}

#cart-drawer.is-open {
    display: flex !important;
    transform: translateX(0) !important;
}

#cart-drawer-overlay {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 9998 !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#cart-drawer-overlay.is-open {
    display: block !important;
    opacity: 1 !important;
}

/* Mobile Menu Drawer Engine */
#mobile-menu {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 85% !important;
    max-width: 360px !important;
    height: 100% !important;
    height: 100dvh !important;
    z-index: 99999 !important;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2) !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    will-change: transform;
}

#mobile-menu.is-open {
    display: flex !important;
    transform: translateX(0) !important;
}

#mobile-menu-overlay {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 99998 !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#mobile-menu-overlay.is-open {
    display: block !important;
    opacity: 1 !important;
}

/* Product Single Page Mobile Optimization */
@media (max-width: 768px) {
    .vp-main-img-card {
        min-height: 260px !important;
        height: 280px !important;
    }

    .vp-category-nav-bar {
        display: none !important;
    }

    .editorial-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Mobile Sticky Bar Shadow & Content Offset */
#vp-mobile-sticky-bar {
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
}

@media (max-width: 639px) {
    body.single-product .vp-pdp-main {
        padding-bottom: 7rem !important;
    }
}

/* Utilities for Text Wrapping & Contrast */
.hyphens-auto {
    hyphens: auto;
    -webkit-hyphens: auto;
}

[overflow-wrap\:anywhere],
.break-anywhere {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

/* Category Nav on Medium screens (1024px-1280px) */
@media (min-width: 1024px) and (max-width: 1280px) {
    .vp-category-nav-bar > .editorial-container {
        overflow-x: auto !important;
        scrollbar-width: none !important;
    }
    .vp-category-nav-bar > .editorial-container::-webkit-scrollbar {
        display: none !important;
    }
}
