/* ==========================================================================
   DI ALBERTO | SYSTEM DESIGN & STYLESHEET
   Inspired by Jader Almeida (Minimalism) & Air Center (Dynamic)
   ========================================================================== */

/* --- Custom Variables & Tokens --- */
:root {
    --color-bg-light: #f9f9fb;
    --color-bg-white: #ffffff;
    --color-text-dark: #111112;
    --color-text-muted: #666668;
    --color-accent: #cfa17c; /* Subtle luxury gold/bronze */
    --color-accent-dark: #b88b67;
    --color-border: rgba(17, 17, 18, 0.08);
    --color-border-dark: rgba(255, 255, 255, 0.15);
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Dark Mode Accessibility --- */
body.accessibility-dark-mode {
    --color-bg-light: #0d0d0e;
    --color-bg-white: #161619;
    --color-text-dark: #e2e2e6;
    --color-text-muted: #9a9aa2;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-dark: rgba(255, 255, 255, 0.20);
    background-color: var(--color-bg-light) !important;
    color: var(--color-text-dark) !important;
}

/* Scrolled Header and specific elements fixes for Dark Mode */
body.accessibility-dark-mode .main-header.scrolled {
    background-color: rgba(22, 22, 25, 0.85) !important;
}

body.accessibility-dark-mode .contact-section {
    background-color: #121214 !important;
}

body.accessibility-dark-mode .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.accessibility-dark-mode input,
body.accessibility-dark-mode textarea,
body.accessibility-dark-mode select {
    background-color: #161619 !important;
    color: #e2e2e6 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* --- Global Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: initial; /* Handled by Lenis for smooth scroll */
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* --- Main Header (Jader Almeida Style) --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 100;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    height: 75px;
    border-bottom: 1px solid var(--color-border);
}

.header-container {
    max-width: 1600px;
    height: 100%;
    margin: 0 auto;
    padding: 0 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Logo */
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (min-width: 1025px) {
    .logo-link {
        position: absolute;
        left: 4%;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }
}

.logo-icon {
    height: 32px;
    width: auto;
    /* Since logo is white on black, we invert it for the light header */
    filter: invert(1);
    transition: var(--transition-smooth);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--color-text-dark);
}

/* Desktop Navigation */
.desktop-nav {
    flex-grow: 1;
    margin-left: 60px;
}

@media (min-width: 1025px) {
    .desktop-nav {
        margin-left: 0;
    }
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
    width: 100%;
    justify-content: center;
}

.nav-canvas-li {
    /* Sit next to Contato naturally in the centered flex container */
}

.nav-canvas-li .nav-item {
    color: var(--color-accent);
}

.nav-item {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-text-dark);
    position: relative;
    padding: 8px 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: var(--transition-fast);
}

.nav-item:hover {
    color: var(--color-accent);
}

.nav-item:hover::after {
    width: 100%;
}

/* Hamburger Menu Toggle */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 101;
}

.bar {
    width: 100%;
    height: 1.5px;
    background-color: var(--color-text-dark);
    transition: var(--transition-smooth);
    transform-origin: center;
}

/* Open states for menu toggle */
.menu-open .bar {
    background-color: var(--color-bg-white);
}

.menu-open .bar-top {
    transform: translateY(9px) rotate(45deg);
}

.menu-open .bar-middle {
    opacity: 0;
    transform: scaleX(0);
}

.menu-open .bar-bottom {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- Full Screen Menu Overlay --- */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-text-dark);
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}

.menu-overlay.active .menu-overlay-bg {
    transform: translateY(0);
}

.menu-overlay-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 2;
    color: var(--color-bg-white);
}

/* Left panel - Image preview */
.menu-left-panel {
    width: 40%;
    height: 100%;
    border-right: 1px solid var(--color-border-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.menu-overlay.active .menu-left-panel {
    opacity: 1;
    transform: translateX(0);
}

.menu-preview-container {
    width: 80%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.menu-preview-img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border: 1px solid var(--color-border-dark);
    transition: opacity 0.3s ease;
}

.menu-preview-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.preview-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.preview-subtitle {
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

/* Right panel - Links list */
.menu-right-panel {
    width: 60%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 120px 8% 60px 8%;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.menu-overlay.active .menu-right-panel {
    opacity: 1;
    transform: translateX(0);
}

.overlay-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.overlay-link {
    display: flex;
    align-items: baseline;
    gap: 20px;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.375rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
}

.link-num {
    font-size: clamp(0.875rem, 1.2vw, 1.125rem);
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 0.1em;
}

.overlay-link:hover {
    color: var(--color-bg-white);
    transform: translateX(15px);
}

.overlay-nav ul:hover .overlay-link:not(:hover) {
    color: rgba(255, 255, 255, 0.15);
}

.menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--color-border-dark);
    padding-top: 30px;
}

.menu-socials {
    display: flex;
    gap: 30px;
}

.menu-socials a {
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.menu-socials a:hover {
    color: var(--color-accent);
}

.menu-copyright {
    font-size: 0.625rem;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.3);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: var(--color-bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Canvas container for Three.js */
.canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#bg-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.7) 70%, rgba(255, 255, 255, 0.95) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Hero Brand Title and Subtitle container (fade-in) */
.hero-content {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 4%;
    pointer-events: none; /* Let pointer events pass to Canvas */
}

/* Background Sketches Layout & Style */
.hero-sketches-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Behind logo canvas and hero content */
    pointer-events: none;
    overflow: hidden;
}

.hero-sketch {
    position: absolute;
    width: 17vw;
    max-width: 220px;
    height: auto;
    opacity: 0.85;
}

/* Position each of the 16 sketches strategically to form a beautiful drawing table layout */
.sketch-chair-1 {
    top: 6%;
    left: 4%;
    transform: rotate(-5deg);
}

.sketch-table-1 {
    top: 5%;
    right: 4%;
    transform: rotate(6deg);
}

.sketch-lamp-2 {
    top: 28%;
    right: 3%;
    transform: rotate(-10deg);
}

.sketch-lamp-1 {
    top: 32%;
    left: 3%;
    transform: rotate(8deg);
}

.sketch-sideboard-1 {
    bottom: 6%;
    right: 4%;
    transform: rotate(-4deg);
}

.sketch-chair-2 {
    bottom: 8%;
    left: 4%;
    transform: rotate(5deg);
}

.sketch-table-2 {
    top: 15%;
    left: 24%;
    transform: rotate(-7deg);
}

.sketch-stool {
    bottom: 18%;
    right: 24%;
    transform: rotate(7deg);
}

.sketch-sofa {
    top: 52%;
    left: 2%;
    transform: rotate(-6deg);
}

.sketch-chair-3 {
    top: 16%;
    right: 22%;
    transform: rotate(4deg);
}

.sketch-shelves {
    bottom: 40%;
    right: 18%;
    transform: rotate(-8deg);
}

.sketch-armchair {
    bottom: 42%;
    left: 18%;
    transform: rotate(9deg);
}

.sketch-lamp-3 {
    top: 2%;
    left: 44%;
    transform: rotate(3deg);
}

.sketch-bench {
    bottom: 3%;
    right: 45%;
    transform: rotate(-5deg);
}

.sketch-desk {
    bottom: 2%;
    left: 42%;
    transform: rotate(4deg);
}

.sketch-mirror {
    top: 3%;
    right: 42%;
    transform: rotate(-3deg);
}

/* Responsive adjustment for sketches */
@media (max-width: 768px) {
    .hero-sketch {
        width: 32vw;
        max-width: 120px;
        opacity: 0.55;
    }
    .sketch-table-2, .sketch-chair-3, .sketch-lamp-3, .sketch-mirror {
        display: none; /* Hide some sketches on mobile to avoid overcrowding */
    }
    .sketch-table-2 {
        left: 10%;
        top: 25%;
    }
    .sketch-stool {
        right: 10%;
        bottom: 25%;
    }
}

/* Sketch Line Styles: Blueprint Board Aesthetic (More Prominent Traces) */
.sketch-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    /* Initialize for drawing animation */
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    will-change: stroke-dashoffset;
}

/* Different line categories for technical depth */
.outline-line-heavy {
    stroke: var(--color-text-dark);
    stroke-width: 1.8px;
}

.outline-line {
    stroke: var(--color-text-dark);
    stroke-opacity: 0.8;
    stroke-width: 1.2px;
}

.accent-line {
    stroke: var(--color-accent);
    stroke-width: 1.4px;
}

.grid-line {
    stroke: var(--color-text-dark);
    stroke-opacity: 0.2;
    stroke-width: 0.8px;
}

.dimension-line {
    stroke: var(--color-accent);
    stroke-opacity: 0.7;
    stroke-width: 0.8px;
}

/* Points/circles at joints */
.sketch-point, .sketch-point-accent {
    /* Initialize for drawing/scale animation on scroll */
    transform: scale(0);
    transform-origin: center;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.sketch-point {
    fill: var(--color-text-dark);
    fill-opacity: 0.6;
}

.sketch-point-accent {
    fill: var(--color-accent);
}

/* Text annotations */
.sketch-text, .sketch-text-brand {
    font-family: var(--font-body);
    font-size: 0.4688rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0; /* Animate fade in along with lines */
    will-change: opacity;
    user-select: none;
}

.sketch-text {
    fill: var(--color-text-muted);
}

.sketch-text-brand {
    fill: var(--color-accent);
    font-family: var(--font-heading);
    font-size: 0.4063rem;
    letter-spacing: 0.18em;
}

.hero-brand-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 220px; /* Offset below the Three.js logo */
    opacity: 1;
    transform: translateY(0);
    will-change: transform, opacity;
}

.hero-brand-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3.5vw, 2.625rem);
    font-weight: 500;
    letter-spacing: 0.4em;
    color: var(--color-text-dark);
    text-align: center;
    padding-left: 0.4em; /* offset for letter-spacing centering */
}

/* Hero Footer: Subtitle and scroll indicator */
.hero-footer-info {
    position: absolute;
    bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.hero-subtitle {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    color: var(--color-text-muted);
}

.hero-award-seal {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.hero-award-seal .seal-line {
    width: 15px;
    height: 1px;
    background-color: var(--color-text-muted);
    opacity: 0.25;
}

.hero-award-seal .seal-text {
    font-size: 0.5313rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    opacity: 0.7;
}

.hero-flags {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.hero-flags .flag-svg {
    width: 22px;
    height: 15px;
    color: var(--color-text-muted);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-arrow {
    font-size: 0.875rem;
    animation: bounce 2s infinite;
    color: var(--color-text-muted);
}

.scroll-text {
    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: rgba(17, 17, 18, 0.4);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* --- Content Sections General --- */
.content-section {
    padding: 120px 0;
    position: relative;
    background-color: var(--color-bg-light);
    z-index: 5;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4%;
}

.section-number {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--color-accent);
    display: block;
    margin-bottom: 20px;
}

/* --- Section Coleções & Ícones (Horizontal Scroll Jader Almeida style) --- */
.section-colecoes, .section-icones {
    position: relative;
    width: 100%;
    background-color: var(--color-bg-white);
    overflow: visible;
    border-top: 1px solid var(--color-border);
}

.section-icones {
    overflow: hidden;
}

/* Background Sensory Effect for Ícones */
.icones-bg-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.icones-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.45;
    mix-blend-mode: multiply;
    will-change: transform;
    animation: float-icones-orb 30s infinite alternate ease-in-out;
}

.icones-orb-1 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(230, 215, 195, 0.7) 0%, rgba(255, 255, 255, 0) 70%);
    top: -10%;
    left: 10%;
    animation-duration: 25s;
}

.icones-orb-2 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(215, 222, 215, 0.6) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: -15%;
    right: 5%;
    animation-duration: 35s;
    animation-delay: -7s;
}

.icones-orb-3 {
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(220, 210, 225, 0.5) 0%, rgba(255, 255, 255, 0) 70%);
    top: 40%;
    left: 55%;
    animation-duration: 28s;
    animation-delay: -14s;
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.035;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

@keyframes float-icones-orb {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    50% {
        transform: translate(8%, 12%) scale(1.1) rotate(180deg);
    }
    100% {
        transform: translate(-5%, -5%) scale(0.95) rotate(360deg);
    }
}

.colecoes-sticky-wrapper, .icones-sticky-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.colecoes-sticky-content, .icones-sticky-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 110px 0 60px 0;
    z-index: 1;
}

.section-colecoes .section-header, .section-icones .section-header {
    padding: 0 4%;
    margin-bottom: 0;
    max-width: 750px;
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.625rem);
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--color-text-dark);
}

.section-description {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    font-weight: 300;
}

.horizontal-scroll-container {
    width: 100%;
    overflow: hidden;
    padding-left: 4%;
    margin-top: 20px;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.horizontal-track {
    display: flex;
    gap: 70px;
    will-change: transform;
    padding-right: 12%; /* Extra padding at the end of scroll track */
}

.portfolio-card-horizontal {
    flex-shrink: 0;
    width: 23vw;
    min-width: 270px;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: var(--transition-smooth);
    background-color: var(--color-bg-white);
}

.portfolio-card-horizontal .card-image-wrapper {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.portfolio-card-horizontal .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio-card-horizontal:hover .card-img {
    transform: scale(1.03);
}

.portfolio-card-horizontal:hover .card-image-wrapper {
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
    border-color: rgba(17, 17, 18, 0.15);
}

.portfolio-card-horizontal .card-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 2px;
}

.portfolio-card-horizontal .card-item-title {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--color-text-dark);
    text-transform: uppercase;
}

.portfolio-card-horizontal .card-category {
    font-size: 0.625rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

/* Responsive styles for Coleções & Ícones */
@media (max-width: 768px) {
    .section-colecoes, .section-icones {
        padding: 60px 0;
    }
    .colecoes-sticky-wrapper, .icones-sticky-wrapper {
        height: auto;
        overflow: visible;
    }
    .colecoes-sticky-content, .icones-sticky-content {
        position: relative;
        height: auto;
        padding: 0;
    }
    .horizontal-scroll-container {
        overflow-x: auto;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch;
    }
    .horizontal-track {
        gap: 30px;
        padding-right: 4%;
    }
    .portfolio-card-horizontal {
        width: 70vw;
        min-width: 240px;
    }
}

/* --- Section O Designer --- */
.section-designer {
    background-color: var(--color-bg-white);
    border-top: 1px solid var(--color-border);
}

.section-designer .section-container {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.designer-header {
    padding: 0 4%;
    margin-bottom: 50px;
}

.designer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: stretch;
}

.designer-text-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.designer-name-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 30px;
    color: var(--color-text-dark);
}

.designer-bio-lead {
    font-family: var(--font-heading);
    font-size: clamp(1.125rem, 1.8vw, 1.5rem);
    line-height: 1.6;
    color: var(--color-accent-dark);
    margin-bottom: 40px;
    font-style: italic;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.02em;
    text-align: justify;
    text-justify: inter-word;
}

.designer-bio-text {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 25px;
    font-weight: 300;
    text-align: justify;
    text-justify: inter-word;
}

.designer-cta-wrapper {
    margin-top: auto;
    display: flex;
    justify-content: flex-start;
}

.designer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 30px;
    border: 1px solid var(--color-text-dark);
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-dark);
    transition: var(--transition-smooth);
    text-decoration: none;
}

.designer-cta-btn:hover {
    background-color: var(--color-text-dark);
    color: var(--color-bg-white);
}

.designer-cta-btn:hover .btn-arrow {
    transform: translateX(4px);
}

.designer-cta-btn .btn-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.designer-graphic-col {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.designer-photo-wrapper {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-light);
    border-radius: 2px;
    box-sizing: border-box;
}

.designer-photo-img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.designer-photo-wrapper:hover .designer-photo-img {
    filter: grayscale(0%);
}

.chair-sketch-svg {
    width: 100%;
    height: auto;
}

/* SVG Line animation */
.chair-sketch-svg path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawSketch 6s ease forwards;
}

@keyframes drawSketch {
    to {
        stroke-dashoffset: 0;
    }
}

/* --- Shared: Left-aligned section header + centered body --- */
.section-header-left {
    padding: 0 4%;
    margin-bottom: 40px;
}

.section-centered-body {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 0 4%;
}

.section-lead-text {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    font-weight: 300;
    margin-bottom: 40px;
    max-width: 600px;
}

/* --- Section Contato --- */
.section-contato {
    background-color: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
    padding-bottom: 160px;
}

.section-contato .section-centered-body {
    max-width: 1100px;
    text-align: left;
}

.section-contato .section-lead-text {
    max-width: 800px;
    margin-bottom: 60px;
}

.contato-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.contato-grid {
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: 80px;
}

.contato-info-col {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-label {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.info-val {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-dark);
}

/* Minimal Form Styling */
.minimal-form {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.form-group {
    position: relative;
    width: 100%;
}

.minimal-form input,
.minimal-form textarea {
    width: 100%;
    padding: 12px 0;
    background: none;
    border: none;
    border-bottom: 1.5px solid var(--color-text-dark);
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--color-text-dark);
    outline: none;
    transition: var(--transition-fast);
}

.minimal-form textarea {
    min-height: 120px;
    resize: vertical;
}

.minimal-form label {
    position: absolute;
    top: 12px;
    left: 0;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    pointer-events: none;
    transition: var(--transition-fast);
}

/* Floating label logic */
.minimal-form input:focus ~ label,
.minimal-form input:not(:placeholder-shown) ~ label,
.minimal-form textarea:focus ~ label,
.minimal-form textarea:not(:placeholder-shown) ~ label {
    top: -12px;
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
}

/* Hide placeholders as they are only used for CSS logic */
.minimal-form input::placeholder,
.minimal-form textarea::placeholder {
    color: transparent;
}

.minimal-form input:focus,
.minimal-form textarea:focus {
    border-bottom-color: var(--color-accent);
}

.submit-btn {
    align-self: flex-start;
    background: var(--color-text-dark);
    color: var(--color-bg-white);
    border: none;
    padding: 16px 40px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition-fast);
}

.submit-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-text-dark);
    transform: translateY(-2px);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* --- Main Footer --- */
.main-footer {
    background-color: var(--color-text-dark);
    color: var(--color-bg-white);
    padding: 100px 0 40px 0;
    z-index: 5;
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4% 80px 4%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    height: 38px;
    width: auto;
    filter: none; /* Keep original white-on-black on dark bg */
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.3em;
}

.footer-links {
    display: flex;
    gap: 100px;
}

.footer-col h4 {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: 25px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-col a {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-col a:hover {
    color: var(--color-bg-white);
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 4% 0 4%;
    border-top: 1px solid var(--color-border-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.3);
}

.developer-credit {
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .desktop-nav ul {
        gap: 20px;
    }
    
    .portfolio-grid {
        gap: 60px 40px;
    }
    
    .portfolio-card.large {
        margin-top: 0 !important;
    }
    
    .designer-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .designer-text-col {
        padding-right: 0;
    }
    
    .designer-cta-wrapper {
        margin-top: 30px;
    }
    
    .designer-graphic-col {
        align-items: center;
    }
    
    .contato-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .menu-left-panel {
        display: none;
    }
    
    .menu-right-panel {
        width: 100%;
        padding-top: 140px;
    }
}

@media (max-width: 768px) {
    .main-header {
        height: 75px;
    }
    
    .desktop-nav {
        display: block !important;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 5px 0;
        margin-top: 5px;
    }
    
    .desktop-nav::-webkit-scrollbar {
        display: none; /* Hide scrollbar for clean Jader look */
    }
    
    .desktop-nav ul {
        display: flex;
        gap: 20px;
        padding: 0 4%;
        width: max-content;
    }
    
    .nav-canvas-li {
        margin-left: 0 !important;
        padding-left: 0 !important;
        border-left: none !important;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 60px;
    }
    
    .footer-links {
        width: 100%;
        justify-content: space-between;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
}

/* --- Dropdown Submenu (Jader Style) --- */
.nav-item-dropdown {
    position: relative;
}

.arrow-icon {
    font-size: 0.5rem;
    margin-left: 4px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.nav-item-dropdown:hover .arrow-icon {
    transform: rotate(180deg);
}

.desktop-nav .submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    padding: 6px 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 190px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    z-index: 110;
}

.desktop-nav .submenu li {
    width: 100%;
    text-align: left;
}

.desktop-nav .submenu a {
    display: block;
    padding: 4px 20px;
    font-family: var(--font-body);
    font-size: 0.625rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.desktop-nav .submenu a:hover, .desktop-nav .submenu a.active {
    color: var(--color-text-dark);
    background-color: rgba(17, 17, 18, 0.02);
    padding-left: 24px;
}

/* Dynamic Language Switcher Styling */
.lang-selector {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 24px;
    font-family: var(--font-body);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.lang-btn {
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    font-size: 0.625rem;
    font-weight: 500;
}

.lang-btn:hover, .lang-btn.active {
    color: var(--color-text-dark);
    font-weight: 600;
}

.lang-separator {
    color: var(--color-border);
    font-size: 0.5625rem;
    opacity: 0.6;
}

/* Upcoming Badge in Submenu */
.upcoming-badge,
.legacy-badge {
    font-size: 0.5rem;
    font-style: italic;
    text-transform: lowercase;
    opacity: 0.6;
    margin-left: 6px;
    display: inline-block;
}

.desktop-nav .nav-item-dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* --- Instagram Gallery Section --- */
.section-galeria {
    background-color: var(--color-bg-white);
    border-top: 1px solid var(--color-border);
    padding: 100px 0;
}

.center-align {
    text-align: center;
    margin: 0 auto 60px auto;
}

.instagram-feed-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.instagram-item {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    position: relative;
    cursor: pointer;
}

.insta-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.instagram-item:hover .insta-img {
    transform: scale(1.04);
}

.instagram-profile-link-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.instagram-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 35px;
    border: 1px solid var(--color-text-dark);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-dark);
    transition: var(--transition-smooth);
}

.instagram-profile-btn:hover {
    background-color: var(--color-text-dark);
    color: var(--color-bg-white);
}

.instagram-profile-btn:hover .btn-icon {
    transform: translate(3px, -3px);
}

.btn-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

@media (max-width: 1024px) {
    .instagram-feed-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* --- Catalog Product Page --- */
.catalog-page-body {
    background-color: var(--color-bg-white);
    color: var(--color-text-dark);
}

.catalog-main {
    padding-top: 90px; /* Offset for header */
}

.section-catalog-intro {
    padding: 80px 0 40px 0;
}

.catalog-breadcrumb {
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 25px;
}

.catalog-breadcrumb a {
    color: var(--color-text-muted);
}

.catalog-breadcrumb a:hover {
    color: var(--color-text-dark);
}

.catalog-breadcrumb .active-crumb {
    color: var(--color-accent-dark);
    font-weight: 500;
}

.catalog-page-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.catalog-page-description {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    font-weight: 300;
    max-width: 800px;
}

/* Filters Bar */
.section-filters-bar {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 10px 0;
    background-color: var(--color-bg-white);
    position: sticky;
    top: 75px;
    z-index: 99;
}

.filters-panel {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.filter-group {
    position: relative;
}

.filter-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
}

.filter-label {
    color: var(--color-text-muted);
}

.filter-active-val {
    font-weight: 600;
}

.filter-arrow {
    font-size: 0.5rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.filter-btn[aria-expanded="true"] .filter-arrow {
    transform: rotate(180deg);
}

.filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    list-style: none;
    padding: 10px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    z-index: 110;
}

.filter-dropdown.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.filter-dropdown li {
    padding: 10px 20px;
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.filter-dropdown li:hover, .filter-dropdown li.selected {
    color: var(--color-text-dark);
    background-color: rgba(17, 17, 18, 0.02);
}

.clear-filters-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
    padding: 10px 15px;
    transition: var(--transition-fast);
}

.clear-filters-btn:hover {
    color: var(--color-text-dark);
}

/* Catalog Grid */
.section-catalog-grid {
    padding: 80px 0 120px 0;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px 40px;
}

.catalog-card-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: var(--color-bg-white);
}

.catalog-img-wrapper {
    width: 100%;
    aspect-ratio: 4/5;
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.catalog-card-item:hover .catalog-img {
    transform: scale(1.03);
}

.catalog-card-item:hover .catalog-img-wrapper {
    box-shadow: 0 15px 35px rgba(0,0,0,0.02);
    border-color: rgba(17, 17, 18, 0.15);
}

.catalog-info-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 2px;
}

.catalog-item-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--color-text-dark);
    text-transform: uppercase;
}

.catalog-item-meta {
    font-size: 0.625rem;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.catalog-item-desc {
    font-size: 0.6875rem;
    line-height: 1.5;
    color: var(--color-text-muted);
    font-weight: 300;
}

/* Alert styles */
.no-products-found {
    text-align: center;
    padding: 80px 0;
}

.alert-message {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin-bottom: 25px;
    font-weight: 300;
}

.clear-filters-btn-inline {
    background-color: var(--color-text-dark);
    border: none;
    color: var(--color-bg-white);
    padding: 15px 30px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.clear-filters-btn-inline:hover {
    background-color: var(--color-accent);
}

@media (max-width: 1024px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px 30px;
    }
}

@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .filters-panel {
        gap: 20px;
    }
}

/* ==========================================================================
   ADMIN PANEL STYLES
   ========================================================================== */
.admin-page-body {
    background-color: var(--color-bg-white);
    color: var(--color-text-dark);
    font-family: var(--font-body);
}

.admin-login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: var(--color-bg-light);
}

.admin-login-box {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    padding: 60px 50px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.02);
    text-align: center;
}

.login-logo {
    margin-bottom: 20px;
}

.login-logo .logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.3em;
}

.login-title {
    font-size: 0.8125rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 50px;
    font-weight: 500;
}

.admin-submit-btn {
    width: 100%;
    margin-top: 20px;
    background-color: var(--color-text-dark);
    color: var(--color-bg-white);
    border: none;
    padding: 16px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: var(--transition-fast);
}

.admin-submit-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-text-dark);
}

.login-error-message {
    color: #a94442;
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    padding: 12px;
    font-size: 0.75rem;
    margin-top: 25px;
    text-align: center;
    letter-spacing: 0.05em;
}

.back-link {
    display: inline-block;
    margin-top: 35px;
    font-size: 0.6875rem;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.back-link:hover {
    color: var(--color-text-dark);
}

/* Dashboard Container */
.admin-dashboard-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg-light);
}

.admin-dashboard-header {
    background-color: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
    padding: 0 4%;
    height: 75px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-nav-logo .logo-text {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--color-text-dark);
}

.admin-tag {
    font-size: 0.5rem;
    font-weight: 600;
    background-color: var(--color-text-dark);
    color: var(--color-bg-white);
    padding: 3px 6px;
    margin-left: 6px;
    letter-spacing: 0.1em;
    vertical-align: middle;
}

.admin-nav-center {
    display: flex;
    gap: 30px;
}

.admin-tab-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    padding: 27px 5px;
    position: relative;
    transition: var(--transition-fast);
}

.admin-tab-btn:hover, .admin-tab-btn.active {
    color: var(--color-text-dark);
}

.admin-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-dark);
}

.admin-logout-btn {
    background: none;
    border: 1px solid var(--color-border);
    color: var(--color-text-dark);
    padding: 10px 22px;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-fast);
}

.admin-logout-btn:hover {
    background-color: var(--color-text-dark);
    color: var(--color-bg-white);
    border-color: var(--color-text-dark);
}

.admin-main {
    flex-grow: 1;
    padding: 50px 0;
}

.admin-section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4%;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.admin-tab-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.admin-tab-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-dark);
    margin-bottom: 8px;
}

.admin-tab-subtitle {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    font-weight: 300;
}

.admin-action-btn {
    background-color: var(--color-text-dark);
    color: var(--color-bg-white);
    border: none;
    padding: 14px 28px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-fast);
}

.admin-action-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-text-dark);
}

/* List Card */
.admin-list-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.01);
}

.admin-list-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.admin-search-input {
    flex-grow: 1;
    padding: 12px 20px;
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    outline: none;
}

.admin-select-input {
    padding: 12px 20px;
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    background-color: var(--color-bg-white);
    outline: none;
}

/* Tables */
.admin-table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th {
    padding: 12px 8px;
    font-size: 0.5938rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    border-bottom: 1.5px solid var(--color-text-dark);
}

.admin-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.7813rem;
    color: var(--color-text-dark);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background-color: rgba(17, 17, 18, 0.01);
}

.admin-warning-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #e67e22;
    cursor: help;
    line-height: 1;
    filter: drop-shadow(0 0 2px rgba(230, 126, 34, 0.3));
    animation: warningPulse 2s ease-in-out infinite;
}

@keyframes warningPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.admin-table-img-wrapper {
    width: 60px;
    aspect-ratio: 1/1;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-table-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-item-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.admin-table-cat, .admin-table-col {
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background-color: var(--color-bg-light);
    padding: 4px 8px;
    border: 1px solid var(--color-border);
}

.admin-status-col {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.status-indicator {
    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 2px;
}

.status-indicator.active {
    background-color: #e2f0d9;
    color: #385723;
}

.status-indicator.inactive {
    background-color: #f2f2f2;
    color: #7f7f7f;
}

.status-indicator.featured {
    background-color: #fff2cc;
    color: #7f6000;
}

.admin-actions-cell {
    display: flex;
    gap: 12px;
}

.admin-row-btn {
    background: none;
    border: 1px solid var(--color-border);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 12px;
    transition: var(--transition-fast);
}

.admin-row-btn:hover {
    background-color: var(--color-text-dark);
    color: var(--color-bg-white);
    border-color: var(--color-text-dark);
}

.admin-row-btn.delete-btn:hover {
    background-color: #a94442;
    border-color: #a94442;
    color: white;
}

.admin-table-summary {
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--color-text-muted);
}

/* Modals */
.admin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 17, 18, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.admin-modal-box {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 70px rgba(0,0,0,0.08);
}

.admin-modal-box.modal-large {
    max-width: 850px;
}

.admin-modal-header {
    padding: 24px 30px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-modal-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.admin-close-modal {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: var(--color-text-muted);
}

.admin-close-modal:hover {
    color: var(--color-text-dark);
}

.admin-modal-form {
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.modal-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 20px;
}

.modal-form-grid > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-form-grid label {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.modal-form-grid input[type="text"],
.modal-form-grid select {
    padding: 10px 16px;
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    outline: none;
    background-color: var(--color-bg-white);
}

.form-row-full {
    grid-column: span 2;
}

.checkboxes-row {
    grid-column: span 2;
    flex-direction: row !important;
    gap: 40px !important;
    margin-top: 10px;
}

.admin-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.6875rem !important;
    font-weight: 500 !important;
    color: var(--color-text-dark) !important;
    text-transform: none !important;
    cursor: pointer;
}

.admin-checkbox-label input {
    width: 16px;
    height: 16px;
    accent-color: var(--color-text-dark);
}

/* Seções organizadas do formulário administrativo */
.admin-form-section {
    padding-top: 24px;
    border-top: 1px dashed var(--color-border);
    margin-top: 15px;
}

.admin-form-section:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.admin-section-title {
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-dark);
    margin-bottom: 20px;
    opacity: 0.8;
}

/* Layout da aba de Atributos */
.admin-params-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 60px;
}

@media (max-width: 900px) {
    .admin-params-grid {
        grid-template-columns: 1fr;
    }
}

.admin-param-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.admin-param-card-title {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-dark);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 12px;
    margin: 0;
}

.admin-param-input-group {
    display: flex;
    gap: 10px;
}

.admin-param-input-group input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.admin-param-input-group input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(207, 161, 124, 0.12);
}

.admin-param-add-btn {
    background-color: var(--color-text-dark);
    color: var(--color-bg-white);
    border: 1px solid var(--color-text-dark);
    border-radius: 8px;
    padding: 0 16px;
    font-size: 1.25rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.admin-param-add-btn:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg-white);
    transform: translateY(-1px);
}

.admin-param-add-btn:active {
    transform: translateY(0);
}

.admin-param-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 350px;
    overflow-y: auto;
}

.admin-param-list::-webkit-scrollbar {
    width: 6px;
}

.admin-param-list::-webkit-scrollbar-track {
    background: transparent;
}

.admin-param-list::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 10px;
}

.admin-param-list::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

.admin-param-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    transition: var(--transition-fast);
}

.admin-param-item:hover {
    background-color: var(--color-bg-white);
    border-color: var(--color-accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transform: translateX(3px);
}

.admin-param-badge {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    color: var(--color-text-muted);
    margin-left: 8px;
    background-color: rgba(17, 17, 18, 0.04);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.admin-param-item:hover .admin-param-badge {
    background-color: rgba(207, 161, 124, 0.15);
    color: var(--color-accent-dark);
}

.param-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.param-action-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    pointer-events: none;
}

.param-action-btn.edit-btn:hover {
    color: var(--color-accent-dark);
    background-color: rgba(207, 161, 124, 0.1);
}

.param-action-btn.delete-btn:hover {
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
}

/* Image input row container */
.image-input-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.file-picker-hidden {
    display: none;
}

.admin-secondary-btn {
    width: 100%;
    padding: 10px;
    background: none;
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-fast);
}

.admin-secondary-btn:hover {
    background-color: var(--color-bg-light);
}

.image-preset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.preset-label {
    font-size: 0.5625rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    align-self: center;
    margin-right: 5px;
}

.preset-btn, .preset-btn-blog {
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    padding: 4px 8px;
    font-size: 0.5625rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.preset-btn:hover, .preset-btn-blog:hover {
    background-color: var(--color-text-dark);
    color: var(--color-bg-white);
}

.admin-image-preview-box {
    margin-top: 15px;
    width: 120px;
    aspect-ratio: 1/1;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-bg-light);
}

.admin-image-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-placeholder {
    font-size: 0.5625rem;
    color: var(--color-text-muted);
    text-align: center;
    padding: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-modal-footer {
    padding: 24px 30px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.admin-cancel-btn {
    background: none;
    border: 1px solid var(--color-border);
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-fast);
}

.admin-cancel-btn:hover {
    background-color: var(--color-bg-light);
}

.admin-save-btn {
    background-color: var(--color-text-dark);
    color: var(--color-bg-white);
    border: none;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-fast);
}

.admin-save-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-text-dark);
}

/* ==========================================================================
   BLOG LAYOUT STYLES
   ========================================================================== */
.blog-page-body, .post-page-body {
    background-color: var(--color-bg-white);
    color: var(--color-text-dark);
}

.blog-main, .post-main {
    padding-top: 75px;
}

.section-blog-intro {
    padding: 80px 0 30px 0;
}

.blog-breadcrumb, .post-breadcrumb {
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 25px;
}

.blog-breadcrumb a, .post-breadcrumb a {
    color: var(--color-text-muted);
}

.blog-breadcrumb a:hover, .post-breadcrumb a:hover {
    color: var(--color-text-dark);
}

.blog-page-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.blog-page-description {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    font-weight: 300;
    max-width: 800px;
}

/* Blog list grid */
.section-blog-grid {
    padding: 50px 0 120px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px 50px;
}

.blog-card-item {
    display: flex;
    flex-direction: column;
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.blog-card-img-wrapper {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-light);
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-card-item:hover .blog-card-img {
    transform: scale(1.03);
}

.blog-card-item:hover .blog-card-img-wrapper {
    box-shadow: 0 15px 35px rgba(0,0,0,0.02);
    border-color: rgba(17, 17, 18, 0.15);
}

.blog-card-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-card-date {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-text-dark);
    letter-spacing: 0.02em;
    transition: var(--transition-fast);
}

.blog-card-item:hover .blog-card-title {
    color: var(--color-accent-dark);
}

.blog-card-summary {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    font-weight: 300;
}

.blog-card-more {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-dark);
    margin-top: 5px;
    display: inline-block;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

/* ==========================================================================
   SINGLE POST READER STYLES
   ========================================================================== */
.post-main {
    padding-bottom: 120px;
}

.section-container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 4%;
}

.article-reader {
    padding: 60px 0 0 0;
}

.article-header {
    margin-top: 20px;
    margin-bottom: 40px;
}

.article-meta {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    display: block;
    margin-bottom: 20px;
}

.article-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.02em;
    color: var(--color-text-dark);
    margin-bottom: 25px;
}

.article-summary-lead {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.8;
    color: var(--color-text-muted);
    font-weight: 300;
    font-style: italic;
}

.article-cover-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 60px auto;
    aspect-ratio: 16/9;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-light);
}

.article-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body-content {
    font-size: 1rem;
    line-height: 1.9;
    color: #2b2b2c;
    font-weight: 300;
}

.article-body-content p {
    margin-bottom: 30px;
}

.article-body-content blockquote {
    font-family: var(--font-heading);
    font-size: clamp(1.125rem, 1.8vw, 1.5rem);
    line-height: 1.6;
    color: var(--color-accent-dark);
    border-left: 2px solid var(--color-text-dark);
    padding-left: 30px;
    margin: 40px 0;
    font-style: italic;
}

.article-reader-footer {
    border-top: 1px solid var(--color-border);
    margin-top: 80px;
    padding-top: 40px;
}

.back-to-blog-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border: 1px solid var(--color-text-dark);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-dark);
    text-decoration: none;
    transition: var(--transition-fast);
}

.back-to-blog-btn:hover {
    background-color: var(--color-text-dark);
    color: var(--color-bg-white);
}

.next-story-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border: 1px solid var(--color-text-dark);
    background-color: var(--color-text-dark);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-bg-white);
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
}

.next-story-btn:hover {
    background-color: transparent;
    color: var(--color-text-dark);
}

/* Footer link styling */
.footer-admin-link-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-login-footer-link {
    margin-left: 10px;
    font-size: 0.5625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    border-bottom: 1px stroke rgba(255, 255, 255, 0.15);
    transition: var(--transition-fast);
}

.admin-login-footer-link:hover {
    color: var(--color-bg-white);
    border-bottom-color: var(--color-bg-white);
}

/* ==========================================================================
   WYSIWYG EDITOR COMPONENT
   ========================================================================== */
.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    margin-bottom: 8px;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-light);
    border-radius: 2px 2px 0 0;
}

.editor-toolbar .toolbar-btn {
    background: none;
    border: 1px solid transparent;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 6px 10px;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.editor-toolbar .toolbar-btn:hover {
    color: var(--color-text-dark);
    background-color: rgba(17, 17, 18, 0.05);
    border-color: var(--color-border);
}

.editor-toolbar .toolbar-separator {
    display: inline-block;
    width: 1px;
    height: 16px;
    background-color: var(--color-border);
    margin: 0 6px;
}

.editor-container {
    min-height: 250px;
    max-height: 400px;
    overflow-y: auto;
    padding: 20px 24px;
    border: 1px solid var(--color-border);
    border-top: none;
    background-color: var(--color-bg-white);
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--color-text-dark);
    outline: none;
    transition: var(--transition-fast);
    border-radius: 0 0 2px 2px;
}

.editor-container:focus {
    border-color: var(--color-text-dark);
    box-shadow: 0 5px 15px rgba(0,0,0,0.01);
}

.editor-container[placeholder]:empty::before {
    content: attr(placeholder);
    color: var(--color-text-muted);
    pointer-events: none;
    display: block;
}

/* --- Horizontal Scroll Blog Section --- */
.section-home-blog-horizontal {
    position: relative;
    width: 100%;
    background-color: var(--color-bg-white);
    overflow: visible;
    border-top: 1px solid var(--color-border);
}

.blog-sticky-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.blog-sticky-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 110px 0 60px 0;
}

.section-home-blog-horizontal .section-header {
    padding: 0 4%;
    margin-bottom: 0;
    max-width: 750px;
}

.blog-horizontal-scroll-container {
    width: 100%;
    overflow: hidden;
    padding-left: 4%;
    margin-top: 20px;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.blog-horizontal-track {
    display: flex;
    gap: 70px;
    will-change: transform;
    padding-right: 12%;
}

.blog-horizontal-track .blog-card-item {
    flex-shrink: 0;
    width: 23vw;
    min-width: 270px;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg-white);
}

@media (max-width: 768px) {
    .section-home-blog-horizontal {
        padding: 60px 0;
    }
    .blog-sticky-wrapper {
        height: auto;
        overflow: visible;
    }
    .blog-sticky-content {
        position: relative;
        height: auto;
        padding: 0;
    }
    .blog-horizontal-scroll-container {
        overflow-x: auto;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch;
    }
    .blog-horizontal-track {
        gap: 30px;
        padding-right: 4%;
    }
    .blog-horizontal-track .blog-card-item {
        width: 70vw;
        min-width: 240px;
    }
}

.home-blog-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.home-blog-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 35px;
    border: 1px solid var(--color-text-dark);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-dark);
    transition: var(--transition-smooth);
    text-decoration: none;
}

.home-blog-more-btn:hover {
    background-color: var(--color-text-dark);
    color: var(--color-bg-white);
}

.home-blog-more-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* ==========================================================================
   BLOG POST CONTENT MULTIMEDIA SUPPORT
   ========================================================================== */
.article-body-content img.blog-inline-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 45px auto;
    border: 1px solid var(--color-border);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.02);
}

.article-body-content .blog-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    margin: 50px auto;
    border: 1px solid var(--color-border);
    background-color: #000;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
}

.article-body-content .blog-video-wrapper iframe,
.article-body-content .blog-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   STANDALONE GALLERY PAGE (DYNAMIC FLOATING COLLAGE & LIGHTBOX)
   ========================================================================== */
.gallery-page-active {
    overflow: hidden !important;
    height: 100vh;
}

.gallery-viewport {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: var(--color-bg-white);
    cursor: grab;
    user-select: none;
    z-index: 10;
}

.gallery-viewport:active {
    cursor: grabbing;
}

.gallery-canvas {
    position: absolute;
    width: 2600px;
    height: 1800px;
    transform-origin: 0 0;
    will-change: transform;
}

/* Staggered Floating Items (Art piece frames) */
.gallery-canvas-item {
    position: absolute;
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
    user-select: none;
    pointer-events: auto;
}

.gallery-canvas-item:hover {
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.07);
    border-color: rgba(17, 17, 18, 0.15);
    z-index: 50; /* Rise above other items when hovered */
}

.gallery-canvas-item .gallery-item-image-wrapper {
    width: 100%;
    background-color: var(--color-bg-white);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
}

.gallery-canvas-item .gallery-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none; /* Let clicks pass to the container */
}

.gallery-canvas-item:hover .gallery-item-img {
    transform: scale(1.03);
}

/* Minimalist captions underneath inside the frame */
.gallery-canvas-item .gallery-item-caption {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gallery-canvas-item .gallery-item-name {
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--color-text-dark);
    text-transform: uppercase;
}

.gallery-canvas-item .gallery-item-meta {
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

/* Floating Instructions Tooltip */
.gallery-instructions {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-border);
    padding: 12px 24px;
    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    z-index: 100;
    pointer-events: none;
    backdrop-filter: blur(10px);
    border-radius: 0;
    text-align: center;
    white-space: nowrap;
}

/* Lightbox overlay */
.gallery-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.96);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    cursor: zoom-out;
    transition: opacity 0.3s ease;
}

.gallery-lightbox-overlay .lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    cursor: default;
}

.gallery-lightbox-overlay .lightbox-image-wrapper {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    padding: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

.gallery-lightbox-overlay .lightbox-image-wrapper img {
    max-width: 80vw;
    max-height: 65vh;
    object-fit: contain;
    display: block;
}

.gallery-lightbox-overlay .lightbox-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gallery-lightbox-overlay .lightbox-info h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--color-text-dark);
    text-transform: uppercase;
}

.gallery-lightbox-overlay .lightbox-info p {
    font-size: 0.5625rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

/* Responsive adjustments for sizes */
@media (max-width: 768px) {
    .gallery-canvas-item {
        padding: 10px;
    }
    .gallery-instructions {
        font-size: 0.5rem;
        padding: 8px 16px;
        bottom: 20px;
    }
    .gallery-lightbox-overlay .lightbox-image-wrapper img {
        max-height: 55vh;
    }
}

/* ==========================================================================
   INTERACTIVE VIDEO SPLASH SCREEN (CENTERED & RESPONSIVE - BLACK THEME)
   ========================================================================== */
.splash-active {
    overflow: hidden !important;
    height: 100vh;
}

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000; /* Pure black background to merge with video background */
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 1;
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), visibility 1.2s;
}

.splash-screen video {
    width: 90%;
    max-width: 360px; /* Centered in a small portion of the screen, reduced by 25% */
    height: auto;
    object-fit: contain; /* Prevents cropping or distortion */
    display: block;
}
/* Skip Button: Elegant white border/text for dark theme background */
.splash-skip-btn {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.75);
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 0.5625rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    z-index: 1000000;
    transition: all 0.3s ease;
}

.splash-skip-btn:hover {
    border-color: rgba(255, 255, 255, 0.8);
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   HORIZONTAL BLOG LAYOUT
   ========================================================================== */

/* Fix body vertical scroll on blog page */
body.blog-page-horizontal {
    background-color: var(--color-bg-white);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Dreamy Background Orbs Style */
.dreamy-orbs-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
    background-color: var(--color-bg-white);
}

.dreamy-orb {
    position: absolute;
    width: 65vw;
    height: 65vw;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    mix-blend-mode: multiply;
    will-change: transform;
    animation: float-orb 24s infinite alternate ease-in-out;
}

.dreamy-orb-1 {
    background: radial-gradient(circle, rgba(238, 208, 228, 0.6) 0%, rgba(255, 255, 255, 0) 70%);
    top: -15%;
    left: -10%;
    animation-duration: 28s;
}

.dreamy-orb-2 {
    background: radial-gradient(circle, rgba(208, 230, 238, 0.5) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: -20%;
    right: -10%;
    animation-duration: 32s;
    animation-delay: -6s;
}

.dreamy-orb-3 {
    background: radial-gradient(circle, rgba(245, 230, 210, 0.5) 0%, rgba(255, 255, 255, 0) 70%);
    top: 35%;
    left: 45%;
    animation-duration: 25s;
    animation-delay: -12s;
}

@keyframes float-orb {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    50% {
        transform: translate(6%, 10%) scale(1.08) rotate(180deg);
    }
    100% {
        transform: translate(-4%, -6%) scale(0.92) rotate(360deg);
    }
}

.blog-horizontal-main {
    width: 100%;
    position: relative;
}

.blog-page-sticky-wrapper {
    position: relative;
    width: 100%;
}

.blog-page-sticky-content {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 110px 0 60px 0;
    box-sizing: border-box;
}

.blog-page-horizontal-scroll-container {
    width: 100%;
    overflow: visible;
    padding-left: 6%;
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.blog-moving-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    will-change: transform;
    height: 100%;
}

/* Intro panel */
.blog-horizontal-intro {
    flex-shrink: 0;
    width: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 20px;
}

.blog-horizontal-intro .blog-breadcrumb {
    font-family: var(--font-body);
    font-size: 0.5625rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted) !important;
    margin-bottom: 20px;
}

.blog-horizontal-intro .blog-breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

.blog-horizontal-intro .blog-breadcrumb a:hover {
    color: var(--color-text-dark) !important;
}

.blog-horizontal-intro .blog-breadcrumb .active-crumb {
    color: var(--color-text-dark) !important;
    font-weight: 500;
}

.blog-horizontal-intro h1 {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 400;
    line-height: 1.15;
    color: var(--color-text-dark) !important;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.blog-horizontal-intro p {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    line-height: 1.7;
    color: var(--color-text-muted) !important;
}

/* Track holding the posts */
.blog-horizontal-track {
    display: flex;
    gap: 40px;
    align-items: center;
    height: 100%;
}

@media (max-width: 768px) {
    .blog-page-sticky-wrapper {
        height: auto;
        overflow: visible;
    }
    
    .blog-page-sticky-content {
        position: relative;
        height: auto;
        padding: 100px 0 40px 0;
    }
    
    .blog-page-horizontal-scroll-container {
        overflow-x: auto;
        padding-left: 20px;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch;
    }
    
    .blog-moving-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 40px;
        height: auto;
        width: max-content;
    }
    
    .blog-horizontal-intro {
        width: 280px;
        flex-shrink: 0;
    }
    
    .blog-horizontal-track {
        flex-direction: row;
        gap: 30px;
        padding-right: 20px;
        align-items: stretch;
        height: 48vh;
    }
    
    .blog-horizontal-item {
        width: 75vw;
        max-width: 290px;
        height: 100%;
        flex-direction: column;
    }
    
    .blog-item-img-box {
        width: 100%;
        height: 180px;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }
    
    .blog-item-text-box {
        width: 100%;
        height: calc(100% - 180px);
        padding: 20px;
    }
    
    .blog-item-excerpt {
        -webkit-line-clamp: 3;
    }
}

/* Horizontal post item */
.blog-horizontal-item {
    display: flex;
    flex-direction: row;
    height: 48vh; /* Proportionate height */
    flex-shrink: 0;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-white);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text-dark) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: box-shadow 0.4s ease;
}

.blog-horizontal-item:hover {
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
}

/* Image box: square (width matching height) */
.blog-item-img-box {
    width: 48vh;
    height: 100%;
    overflow: hidden;
    position: relative;
    border-right: 1px solid var(--color-border);
    background-color: var(--color-bg-light);
}

.blog-item-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Text box: square (width matching height) */
.blog-item-text-box {
    width: 48vh;
    height: 100%;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    background-color: var(--color-bg-white);
}

.blog-item-date {
    display: block;
    font-family: var(--font-body);
    font-size: 0.5625rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 15px;
}

.blog-item-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.35;
    color: var(--color-text-dark);
    margin-bottom: 15px;
    letter-spacing: -0.01em;
}

.blog-item-excerpt {
    font-family: var(--font-body);
    font-size: 0.7813rem;
    line-height: 1.65;
    color: var(--color-text-muted);
    /* Multi-line truncation */
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hover overlay covering the whole item */
.blog-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: background-color 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
    z-index: 10;
    backdrop-filter: blur(0px);
}

.blog-hover-text {
    font-family: var(--font-body);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-text-dark);
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    padding: 12px 28px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transform: translateY(15px);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-horizontal-item:hover .blog-hover-overlay {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
}

.blog-horizontal-item:hover .blog-hover-text {
    transform: translateY(0);
}

.blog-horizontal-item:hover .blog-item-img-box img {
    transform: scale(1.04);
}

/* --- Section Newsletter --- */
.section-newsletter {
    background-color: var(--color-bg-white);
    border-top: 1px solid var(--color-border);
    padding: 100px 0;
}

/* .newsletter-wrapper and .newsletter-lead replaced by shared .section-centered-body and .section-lead-text */

.newsletter-form-container {
    width: 100%;
    max-width: 600px;
}

#newsletter-form .submit-btn {
    align-self: stretch;
    justify-content: center;
}

.newsletter-status-message {
    margin-top: 20px;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.contact-status-message {
    margin-top: 20px;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.no-posts-alert {
    width: 100%;
    text-align: center;
    padding: 40px 0;
}

.alert-message {
    color: #ffffff !important;
    font-family: var(--font-body);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ==========================================================================
   30. NEW PAGES STYLING (Designer & Factories Detail)
   ========================================================================== */

/* Designer Detail Page */
.designer-detail-page, .factories-detail-page {
    background-color: var(--color-bg-white);
    color: var(--color-text-dark);
}

.designer-main-content, .factories-main-content {
    padding-top: 120px;
    background-color: var(--color-bg-white);
    min-height: 100vh;
}

.section-designer-intro, .section-factories-intro {
    padding: 30px 0;
}

.designer-detail-breadcrumb, .factories-detail-breadcrumb {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.designer-detail-breadcrumb a, .factories-detail-breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.designer-detail-breadcrumb a:hover, .factories-detail-breadcrumb a:hover {
    color: var(--color-text-dark);
}

.designer-detail-breadcrumb .active-crumb, .factories-detail-breadcrumb .active-crumb {
    color: var(--color-text-dark);
    font-weight: 500;
}

/* Bio Detail Section */
.section-designer-bio-detail {
    padding: 60px 0;
}

.designer-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.designer-detail-image-box {
    width: 100%;
    padding: 20px;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-light);
    border-radius: 2px;
    box-sizing: border-box;
}

.designer-detail-img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.6s ease;
}

.designer-detail-image-box:hover .designer-detail-img {
    filter: grayscale(0%);
}

.designer-detail-text-col {
    padding-left: 20px;
}

.detail-section-tag {
    font-family: var(--font-body);
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
}

.designer-detail-title {
    font-size: clamp(2.25rem, 5vw, 4rem);
    margin-bottom: 10px;
    color: var(--color-text-dark);
}

.designer-detail-subtitle {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    font-weight: 300;
}

.designer-detail-quote {
    font-family: var(--font-heading);
    font-size: clamp(1.125rem, 2vw, 1.625rem);
    line-height: 1.6;
    color: var(--color-text-dark);
    margin-bottom: 45px;
    font-style: italic;
    border-left: 2px solid var(--color-accent-dark);
    padding-left: 30px;
    font-weight: 400;
}

.designer-paragraphs .designer-p {
    font-size: 0.9375rem;
    line-height: 1.9;
    color: var(--color-text-muted);
    margin-bottom: 30px;
    font-weight: 300;
    text-align: justify;
}

/* Creations Section */
.section-designer-creations {
    padding: 100px 0;
    border-top: 1px solid var(--color-border);
}

.creations-section-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 60px;
    text-align: center;
    color: var(--color-text-dark);
}

.creations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.creation-card {
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    padding: 20px;
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.creation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.03);
}

.creation-img-wrapper {
    width: 100%;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 25px;
}

.creation-img-wrapper img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.creation-card:hover .creation-img-wrapper img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.creation-info .creation-name {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--color-text-dark);
}

.creation-info .creation-desc {
    font-size: 0.8125rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    font-weight: 300;
}

/* Factories Page Styles */
.factories-intro-header {
    max-width: 800px;
    margin: 40px 0;
}

.factories-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    margin-bottom: 15px;
    color: var(--color-text-dark);
}

.factories-subtitle {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 30px;
    font-weight: 300;
}

.factories-intro-header .separator-line {
    width: 60px;
    height: 1px;
    background-color: var(--color-accent-dark);
    margin-bottom: 30px;
}

.factories-lead-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    font-weight: 300;
}

.section-factories-list {
    padding: 40px 0 100px 0;
}

.factory-block-item {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
    padding: 80px 0;
    border-top: 1px solid var(--color-border);
}

.factory-block-item.reverse {
    grid-template-columns: 0.9fr 1.1fr;
}

.factory-block-item.reverse .factory-info-col {
    order: 2;
}

.factory-block-item.reverse .factory-img-col {
    order: 1;
}

.factory-name {
    font-size: clamp(1.375rem, 2.5vw, 2rem);
    margin-bottom: 10px;
    color: var(--color-text-dark);
}

.factory-location {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
    font-weight: 600;
    display: block;
    margin-bottom: 30px;
}

.factory-description p {
    font-size: 0.9375rem;
    line-height: 1.9;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    font-weight: 300;
    text-align: justify;
}

.factory-image-box {
    width: 100%;
    padding: 20px;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-light);
    border-radius: 2px;
    box-sizing: border-box;
}

.factory-img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.6s ease;
}

.factory-image-box:hover .factory-img {
    filter: grayscale(0%);
}

/* Responsiveness for new pages */
@media (max-width: 992px) {
    .designer-detail-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .creations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .factory-block-item, .factory-block-item.reverse {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .factory-block-item.reverse .factory-info-col {
        order: 1;
    }
    
    .factory-block-item.reverse .factory-img-col {
        order: 2;
    }
}

@media (max-width: 600px) {
    .creations-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .designer-detail-text-col {
        padding-left: 0;
    }
}

/* ==========================================================================
   Fábricas - Estilos de Informações de Contato
   ========================================================================== */
.factory-contact-info {
    margin-top: 28px;
    border-top: 1px dashed var(--color-border);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.factory-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8125rem;
    font-family: var(--font-body);
    color: var(--color-text-muted);
    line-height: 1.6;
}

.factory-contact-label {
    font-weight: 500;
    color: var(--color-text-dark);
    min-width: 80px;
    flex-shrink: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.6875rem;
}

.factory-contact-value {
    color: var(--color-text-muted);
}

.factory-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-dark);
    text-decoration: none;
    font-weight: 500;
    margin-top: 6px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--color-text-dark);
    padding-bottom: 2px;
    width: fit-content;
}

.factory-contact-link:hover {
    opacity: 0.7;
    transform: translateX(4px);
}

/* ==========================================================================
   Modal de Detalhes do Produto - Estilos Premium
   ========================================================================== */
.prod-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 20px;
    box-sizing: border-box;
}

.prod-modal-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    width: 100%;
    max-width: 1360px;
    height: 80vh;
    max-height: 85vh;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.06);
    transform: translateY(15px) scale(0.98);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.prod-modal-close-btn {
    position: absolute;
    top: 28px;
    right: 28px;
    background: none;
    border: none;
    font-size: 1.75rem;
    font-weight: 200;
    color: var(--color-text-dark);
    cursor: pointer;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    padding: 0;
    line-height: 1;
}

.prod-modal-close-btn:hover {
    opacity: 0.5;
    transform: rotate(90deg);
}

.prod-modal-content {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    height: 100%;
    overflow: hidden;
}

/* Left Column: Gallery */
.prod-modal-left-col {
    padding: 40px;
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fafafa;
    gap: 24px;
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
}

.prod-modal-main-img-wrapper {
    width: 100%;
    height: 75%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    padding: 24px;
    box-sizing: border-box;
}

.prod-modal-main-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.prod-modal-thumbnails {
    display: flex;
    gap: 12px;
    justify-content: center;
    width: 100%;
}

.prod-modal-thumb {
    width: 96px;
    height: 96px;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-white);
    cursor: pointer;
    padding: 6px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, opacity 0.3s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}

.prod-modal-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.prod-modal-thumb:hover {
    border-color: var(--color-text-dark);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.prod-modal-thumb.active {
    border-color: var(--color-text-dark);
    outline: 1px solid var(--color-text-dark);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Right Column: Info */
.prod-modal-right-col {
    padding: 60px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: 100%;
    box-sizing: border-box;
}

.prod-modal-meta {
    font-family: var(--font-body);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-text-muted);
    margin-bottom: 12px;
    display: block;
}

.prod-modal-title {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 500;
    color: var(--color-text-dark);
    margin: 0 0 18px 0;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

.prod-modal-separator {
    width: 60px;
    height: 1px;
    background-color: var(--color-text-dark);
    margin-bottom: 28px;
}

.prod-modal-section {
    margin-bottom: 26px;
}

.prod-modal-section-title {
    font-family: var(--font-title);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-dark);
    margin: 0 0 10px 0;
    font-weight: 600;
}

.prod-modal-text {
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.85;
    color: var(--color-text-muted);
    margin: 0;
    text-align: justify;
    font-weight: 300;
}

.prod-modal-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
}

.prod-modal-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    box-sizing: border-box;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}

.prod-modal-action-btn .btn-icon {
    font-size: 0.875rem;
    line-height: 1;
}

.prod-modal-action-btn.pdf-btn {
    background-color: var(--color-text-dark);
    color: var(--color-bg-white);
    border: 1px solid var(--color-text-dark);
}

.prod-modal-action-btn.pdf-btn:hover {
    background-color: transparent;
    color: var(--color-text-dark);
}

.prod-modal-action-btn.skp-btn {
    background-color: transparent;
    color: var(--color-text-dark);
    border: 1px solid var(--color-border);
}

.prod-modal-action-btn.skp-btn:hover {
    border-color: var(--color-text-dark);
    background-color: #fcfcfc;
}

/* Responsive Styles for Modal */
@media (max-width: 860px) {
    .prod-modal-content {
        grid-template-columns: 1fr;
    }
    
    .prod-modal-left-col {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        padding: 30px;
    }
    
    .prod-modal-right-col {
        padding: 35px 30px;
        max-height: none;
    }
    
    .prod-modal-card {
        max-height: 95vh;
        overflow-y: auto;
    }
    
    .prod-modal-main-img-wrapper {
        max-width: 320px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .prod-modal-overlay {
        padding: 10px;
    }
    
    .prod-modal-card {
        max-height: 98vh;
    }
    
    .prod-modal-close-btn {
        top: 15px;
        right: 15px;
    }
    
    .prod-modal-left-col {
        padding: 20px;
    }
    
    .prod-modal-right-col {
        padding: 25px 20px;
    }
    
    .prod-modal-title {
        font-size: 1.375rem;
    }
}

/* ==========================================================================
   Admin - Estilos da Galeria de Imagens do Produto
   ========================================================================== */
.admin-gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
    border: 1px solid var(--color-border);
    padding: 16px;
    background-color: #fafafa;
}

.admin-gallery-row {
    display: grid;
    grid-template-columns: 120px 1fr 150px;
    gap: 16px;
    align-items: center;
    background-color: var(--color-bg-white);
    padding: 10px;
    border: 1px solid var(--color-border);
}

.gallery-row-preview {
    width: 120px;
    height: 90px;
    border: 1px solid var(--color-border);
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-thumb-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-row-inputs {
    display: flex;
    gap: 10px;
    flex-grow: 1;
}

.gallery-path-input {
    flex-grow: 1;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 0.8125rem;
}

.gallery-row-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 150px;
}

.gallery-radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--color-text-dark);
    cursor: pointer;
    font-weight: 500;
}

.gallery-principal-radio {
    margin: 0;
}

.admin-delete-btn {
    background-color: #fff;
    color: #e06666;
    border: 1px solid #f3c2c2;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.admin-delete-btn:hover {
    background-color: #fdf2f2;
    color: #cc0000;
    border-color: #e06666;
}

@media (max-width: 768px) {
    .admin-gallery-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .gallery-row-preview {
        margin: 0 auto;
    }
    
    .gallery-row-inputs {
        flex-direction: column;
    }
    
    .gallery-row-controls {
        width: 100%;
        justify-content: center;
        gap: 20px;
    }
}

/* Position relative for Award Badge Overlays */
.portfolio-card-horizontal .card-image-wrapper,
.catalog-img-wrapper,
.gallery-canvas-item .gallery-item-image-wrapper,
.prod-modal-main-img-wrapper {
    position: relative;
}

/* Subtle and Premium Award Badge Styling */
.product-award-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(191, 161, 95, 0.35);
    color: #8e7236; /* Premium gold color */
    padding: 4px 8px;
    font-family: var(--font-body);
    font-size: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Star icon inside badge */
.product-award-badge .award-star {
    font-size: 0.5625rem;
    line-height: 1;
    color: #bfa15f;
    margin-top: -1px;
}

/* ==========================================================================
   WIDE PRODUCTS LAYOUT RULES
   ========================================================================== */

/* 1. Portfolio Horizontal Cards (Home Sliders) */
.portfolio-card-horizontal.portfolio-card-wide {
    width: calc(2 * 23vw + 70px);
    max-width: calc(2 * 380px + 70px);
    min-width: calc(2 * 270px + 70px);
}

.portfolio-card-horizontal.portfolio-card-wide .card-image-wrapper {
    aspect-ratio: 1.75;
}

@media (max-width: 768px) {
    .portfolio-card-horizontal.portfolio-card-wide {
        width: 90vw;
        min-width: 280px;
    }
    .portfolio-card-horizontal.portfolio-card-wide .card-image-wrapper {
        aspect-ratio: 1.6;
    }
}

/* 2. Catalog Grid Card Spanning (Colecoes) */
.catalog-card-item.catalog-card-wide {
    grid-column: span 2;
}

.catalog-card-item.catalog-card-wide .catalog-img-wrapper {
    aspect-ratio: 1.68;
}

@media (max-width: 1024px) {
    .catalog-card-item.catalog-card-wide {
        grid-column: span 2;
    }
    .catalog-card-item.catalog-card-wide .catalog-img-wrapper {
        aspect-ratio: 1.65;
    }
}

@media (max-width: 768px) {
    .catalog-card-item.catalog-card-wide {
        grid-column: span 1;
    }
    .catalog-card-item.catalog-card-wide .catalog-img-wrapper {
        aspect-ratio: 1.6;
    }
}

/* Subtle factory subtitle next to product name */
.title-factory-subtle {
    font-size: 0.72em;
    font-style: italic;
    font-weight: 300;
    color: var(--color-text-muted);
    margin-left: 8px;
    text-transform: none;
    display: inline-block;
}

/* --- Designer Bio Flow Layout --- */
.designer-detail-bio-flow {
    width: 100%;
    margin: 0 auto;
}

.designer-detail-bio-flow::after {
    content: "";
    display: table;
    clear: both;
}

.designer-detail-bio-flow .designer-detail-image-box {
    float: left;
    width: 42%;
    max-width: 460px;
    margin-right: 80px;
    margin-bottom: 40px;
}

.designer-detail-text-header {
    display: flow-root;
    margin-bottom: 30px;
}

.designer-paragraphs {
    display: block;
}

/* --- Social Icons under image --- */
.designer-social-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed var(--color-border);
}

.designer-social-link {
    color: var(--color-text-muted, #888888);
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.designer-social-link:hover {
    color: var(--color-text-dark, #111111);
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .designer-detail-bio-flow .designer-detail-image-box {
        float: none;
        width: 100%;
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
    }
}

/* ==========================================================================
   VELOCIDADE DE ROLAGEM, AURA GOLD, VISUALIZADOR 3D E GALERIA 2D
   ========================================================================== */

/* Locked body scroll for modal open */
body.modal-open {
    overflow: hidden !important;
    height: 100vh !important;
}

/* Subtle Golden Award Aura */
.award-aura {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.12), inset 0 0 10px rgba(212, 175, 55, 0.04) !important;
    border-color: rgba(212, 175, 55, 0.28) !important;
    transition: var(--transition-smooth);
}

.portfolio-card-horizontal:hover .award-aura,
.catalog-card-item:hover .award-aura,
.gallery-canvas-item:hover .award-aura {
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.22), inset 0 0 12px rgba(212, 175, 55, 0.08) !important;
    border-color: rgba(212, 175, 55, 0.45) !important;
}

.prod-modal-main-img-wrapper.award-aura {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15), inset 0 0 12px rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
}

/* 3D Action button inside modal */
.prod-modal-action-btn.view-3d-btn {
    background-color: transparent;
    color: #bfa34c;
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.prod-modal-action-btn.view-3d-btn:hover {
    border-color: #bfa34c;
    background-color: rgba(212, 175, 55, 0.05);
}

/* Flag transitions and animations */
.hero-flags .flag-svg {
    width: 22px;
    height: 15px;
    color: var(--color-text-muted);
    opacity: 0.45;
    transition: opacity 0.3s ease, filter 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.hero-flags .flag-svg:hover {
    opacity: 1;
}

.hero-flags .flag-br:hover {
    animation: br-glow 3s linear infinite;
}

.hero-flags .flag-it:hover {
    animation: it-glow 3s linear infinite;
}

@keyframes br-glow {
    0%, 100% {
        color: #009c3b;
        filter: drop-shadow(0 0 6px rgba(0, 156, 59, 0.75));
    }
    33% {
        color: #ffdf00;
        filter: drop-shadow(0 0 8px rgba(255, 223, 0, 0.85));
    }
    66% {
        color: #002776;
        filter: drop-shadow(0 0 6px rgba(0, 39, 118, 0.75));
    }
}

@keyframes it-glow {
    0%, 100% {
        color: #009246;
        filter: drop-shadow(0 0 6px rgba(0, 146, 70, 0.75));
    }
    33% {
        color: #ffffff;
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.85));
    }
    66% {
        color: #ce2b37;
        filter: drop-shadow(0 0 6px rgba(206, 43, 55, 0.75));
    }
}

/* Gallery sutil floating animation */
@keyframes float-gentle-1 {
    0% { transform: translate(0, 0); }
    50% { transform: translate(12px, -8px); }
    100% { transform: translate(0, 0); }
}

@keyframes float-gentle-2 {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-10px, 12px); }
    100% { transform: translate(0, 0); }
}

@keyframes float-gentle-3 {
    0% { transform: translate(0, 0); }
    50% { transform: translate(8px, 10px); }
    100% { transform: translate(0, 0); }
}

.gallery-float-1 {
    animation: float-gentle-1 25s ease-in-out infinite;
}
.gallery-float-2 {
    animation: float-gentle-2 29s ease-in-out infinite;
}
.gallery-float-3 {
    animation: float-gentle-3 33s ease-in-out infinite;
}

/* ==========================================================================
   LOADING SKELETON & ACCESSIBILITY TOAST STYLES
   ========================================================================== */

/* Keyframe for pulse effect */
@keyframes skeleton-pulse {
    0% { opacity: 0.15; }
    50% { opacity: 0.35; }
    100% { opacity: 0.15; }
}

/* Skeleton layouts */
.skeleton-card {
    pointer-events: none;
}

.skeleton-image-placeholder {
    background-color: #161616 !important;
    animation: skeleton-pulse 1.5s infinite ease-in-out;
    position: relative;
    overflow: hidden;
}

.skeleton-text {
    background-color: #202020 !important;
    border-radius: 2px;
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}

.skeleton-title {
    width: 60%;
    height: 16px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.skeleton-sub {
    width: 40%;
    height: 11px;
    margin-bottom: 4px;
}

/* Specific details for catalog page grid skeletons */
.catalog-card-item.skeleton-card .catalog-img-wrapper {
    background-color: #161616 !important;
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}

/* Specific details for gallery scattered skeletons */
.gallery-canvas-item.skeleton-card .gallery-item-image-wrapper {
    background-color: #161616 !important;
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}

/* Specific details for blog card skeletons */
.blog-card-item.skeleton-card .blog-card-img-wrapper {
    background-color: #161616 !important;
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}

.blog-horizontal-item.skeleton-card .blog-item-img-box {
    background-color: #161616 !important;
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}

/* Accessibility Toast notification */
.accessibility-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background-color: rgba(20, 20, 20, 0.95);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 999999;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    opacity: 0;
    text-align: center;
    border-radius: 4px;
    max-width: 90%;
    width: 420px;
    pointer-events: none;
}

.accessibility-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ==========================================================================
   NUEVO DISEÑO DE ADMINISTRATIVO PREMIUM (INSPIRADO EN WIX STUDIO)
   ========================================================================== */

/* Layout Grid Lado a Lado */
.admin-page-body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100vh;
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
}

#admin-wrapper {
    height: 100%;
    width: 100%;
}

.admin-dashboard-container {
    display: flex;
    flex-direction: row;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background-color: #f3f4f6;
}

/* Menu Lateral (Sidebar) */
.admin-sidebar {
    width: 260px;
    min-width: 260px;
    height: 100%;
    background-color: #111115;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
    z-index: 101;
}

.sidebar-brand {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-brand .logo-text {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #ffffff;
}

.sidebar-brand .admin-tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.55rem;
    font-weight: 600;
    background-color: #ffffff;
    color: #111115;
    padding: 2px 6px;
    letter-spacing: 0.05em;
    border-radius: 2px;
}

.sidebar-nav {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px 0;
}

/* Custom Scrollbar for Sidebar Nav */
.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}
.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

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

.menu-item {
    margin-bottom: 4px;
}

.menu-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #a1a1aa;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
}

.menu-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    opacity: 0.7;
}

.menu-btn:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.03);
}

.menu-btn.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.06);
    font-weight: 500;
    border-left: 3px solid #ffffff;
    padding-left: 21px;
}

/* Submenu Acordeón */
.menu-item.has-submenu {
    position: relative;
}

.menu-btn.submenu-toggle {
    justify-content: space-between;
}

.menu-btn.submenu-toggle .toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-btn.submenu-toggle .arrow-icon {
    width: 10px;
    height: 10px;
    transition: transform 0.2s ease;
    opacity: 0.5;
}

.menu-item.open .menu-btn.submenu-toggle .arrow-icon {
    transform: rotate(90deg);
}

.submenu-list {
    display: none;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 4px 0;
}

.menu-item.open .submenu-list {
    display: block;
}

.submenu-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 8px 16px 8px 52px;
    display: block;
    color: #a1a1aa;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
}

.submenu-btn:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.02);
}

.submenu-btn.active {
    color: #ffffff;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.04);
}

/* Inativo / Disabled States */
.menu-btn.inativo, .submenu-btn[disabled], .menu-btn[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.badge-inativo {
    font-size: 0.55rem;
    font-weight: 500;
    color: #71717a;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
    letter-spacing: 0.02em;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.user-profile-widget {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.admin-logout-btn-sidebar {
    background: none;
    border: none;
    padding: 6px;
    color: #a1a1aa;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background-color 0.2s;
}

.admin-logout-btn-sidebar:hover {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
}

.admin-logout-btn-sidebar svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.sidebar-footer .credit {
    font-size: 0.625rem;
    color: #52525b;
    letter-spacing: 0.05em;
    font-weight: 400;
    text-align: center;
}

/* Área de Trabalho Principal (Main Work Area) */
.admin-main-pane {
    flex-grow: 1;
    height: 100vh;
    overflow-y: auto;
    background-color: #f4f5f7;
    box-sizing: border-box;
}

/* Custom Scrollbar for Main Content Pane */
.admin-main-pane::-webkit-scrollbar {
    width: 8px;
}
.admin-main-pane::-webkit-scrollbar-track {
    background: #f4f5f7;
}
.admin-main-pane::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}
.admin-main-pane::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.admin-content-pane {
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 60px;
    box-sizing: border-box;
}

/* Botones Cinza Escuro Override */
.admin-action-btn, 
.admin-save-btn, 
.admin-submit-btn,
.btn-primary-custom,
#add-product-btn,
#add-post-btn {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
    border: 1px solid #2a2a2a !important;
    font-family: 'Inter', sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.admin-action-btn:hover, 
.admin-save-btn:hover, 
.admin-submit-btn:hover,
.btn-primary-custom:hover,
#add-product-btn:hover,
#add-post-btn:hover {
    background-color: #1a1a1a !important;
    border-color: #1a1a1a !important;
}

/* CARD LAYOUTS & WIDGETS */
.admin-tab-content {
    display: none;
    animation: fadeInTab 0.3s ease;
}

.admin-tab-content.active {
    display: block;
}

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

/* Aba Inicio */
.inicio-dashboard-row {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 30px;
    margin-top: 30px;
    align-items: start;
}

@media (max-width: 1024px) {
    .inicio-dashboard-row {
        grid-template-columns: 1fr;
    }
}

.inicio-welcome-banner {
    background: linear-gradient(135deg, #111115 0%, #1c1c22 100%);
    border-radius: 12px;
    padding: 40px;
    color: #ffffff;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.inicio-welcome-banner::after {
    content: '';
    position: absolute;
    right: -5%;
    bottom: -20%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.welcome-title-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.welcome-title-line h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.05em;
}

.welcome-header-actions {
    display: flex;
    gap: 12px;
}

.welcome-header-actions .btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #ffffff;
    padding: 10px 20px;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.welcome-header-actions .btn-outline:hover {
    background-color: rgba(255,255,255,0.08);
    border-color: #ffffff;
}

.site-status-card {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.status-badge {
    background-color: rgba(255,255,255,0.1);
    color: #ffffff;
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.1em;
}

.status-detail-item {
    font-size: 0.6875rem;
    color: #a1a1aa;
    line-height: 1.5;
}

.status-detail-item strong {
    color: #ffffff;
    display: block;
    font-size: 0.8125rem;
    margin-bottom: 2px;
}

/* Card: Adicionar Kit de Recursos */
.inicio-resource-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.resource-content {
    flex: 1;
    padding-right: 30px;
}

.resource-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    letter-spacing: 0.02em;
    color: #111115;
}

.resource-content p {
    font-size: 0.8125rem;
    color: #71717a;
    line-height: 1.6;
    margin: 0;
}

.resource-preview-img {
    width: 140px;
    height: auto;
    opacity: 0.95;
}

/* Card: Progresso de Metas */
.inicio-progress-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.progress-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #111115;
}

.progress-counter-text {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #71717a;
}

.progress-bar-container {
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 25px;
}

.progress-bar-fill {
    height: 100%;
    background-color: #10b981; /* Green success */
    border-radius: 4px;
    transition: width 0.6s ease;
}

.checklist-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checklist-item {
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background-color: #fdfdfd;
    transition: background-color 0.2s;
}

.checklist-item:hover {
    background-color: #f9fafb;
}

.checklist-left {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.checklist-bullet {
    width: 6px;
    height: 6px;
    background-color: #2a2a2a;
    border-radius: 50%;
    margin-top: 6px;
}

.checklist-details h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #111115;
    margin: 0 0 4px 0;
}

.checklist-details p {
    font-size: 0.75rem;
    color: #71717a;
    line-height: 1.5;
    margin: 0;
}

.btn-small-outline {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 6px 12px;
    font-size: 0.6875rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-small-outline:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

/* Overview Analytics Grid for Inicio */
.inicio-analytics-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.preview-stat-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.01);
}

.preview-stat-card h4 {
    font-size: 0.6875rem;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 10px 0;
    font-weight: 500;
}

.stat-number-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.stat-number-row .number {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #111115;
    margin: 0;
}

.stat-trend {
    font-size: 0.6875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

.stat-trend.up { color: #10b981; }
.stat-trend.down { color: #ef4444; }

/* Interactive SVG World Map Styles */
.world-map-svg {
    width: 100%;
    height: auto;
    fill: #e5e7eb;
    stroke: #ffffff;
    stroke-width: 0.5;
}

.world-map-svg path:hover {
    fill: #d1d5db;
}

.map-marker {
    fill: #2a2a2a;
    stroke: #ffffff;
    stroke-width: 1.5;
    opacity: 0.85;
    transition: transform 0.2s ease, fill 0.2s ease;
    cursor: pointer;
}

.map-marker:hover {
    transform: scale(1.3);
    fill: #111115;
}

/* Diagnostic Score Gauge */
.score-flex-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.score-gauge-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gauge-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(#10b981 var(--score-pct), #e5e7eb 0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
}

.gauge-circle::before {
    content: '';
    position: absolute;
    width: 84px;
    height: 84px;
    background-color: #ffffff;
    border-radius: 50%;
}

.gauge-value {
    position: relative;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111115;
    z-index: 2;
}

.gauge-title {
    font-family: 'Cinzel', serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111115;
    margin: 5px 0 10px 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.gauge-desc {
    font-size: 0.75rem;
    color: #71717a;
    line-height: 1.5;
    margin: 0;
}

.score-gauge-card.warning .gauge-circle {
    background: conic-gradient(#f59e0b var(--score-pct), #e5e7eb 0);
}

.score-gauge-card.error .gauge-circle {
    background: conic-gradient(#ef4444 var(--score-pct), #e5e7eb 0);
}

/* Modals Modernos */
.admin-modal-overlay {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background-color: rgba(17, 17, 21, 0.4);
}

.admin-modal-box {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border: 1px solid #e5e7eb;
}

/* Switch Toggle Component */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-border);
    transition: var(--transition-fast);
    border-radius: 24px;
}

.switch-slider::before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: var(--color-bg-white);
    transition: var(--transition-fast);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.switch-toggle input:checked + .switch-slider {
    background-color: var(--color-accent) !important;
}

.switch-toggle input:checked + .switch-slider::before {
    transform: translateX(20px);
}

/* Custom Prompt Input Focus */
#custom-prompt-input:focus {
    border-color: var(--color-accent) !important;
    box-shadow: 0 0 0 3px rgba(207, 161, 124, 0.12) !important;
}

/* ==========================================================================
   CANVAS & MOODBOARD PAGE
   ========================================================================== */

/* Menu Subtext styling */
.menu-subtext {
    font-style: italic;
    font-weight: 300;
    font-size: 8px;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-left: 2px;
    opacity: 0;
    display: inline-block;
    transform: translateX(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-item:hover .menu-subtext {
    opacity: 0.9;
    transform: translateX(0);
}

.canvas-page-body {
    background-color: var(--color-bg-light);
    height: 100vh;
    overflow: hidden;
}

/* Canvas Layout Grid */
.canvas-layout {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: 15px;
    height: calc(100vh - 120px); /* under the scrolled header (height 75px) + extra margin */
    margin-top: 100px;
    padding: 0 15px 15px 15px;
}

/* Sidebars styling */
.canvas-sidebar {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

body.accessibility-dark-mode .canvas-sidebar {
    background: rgba(22, 22, 25, 0.85);
}

/* Workspace Canvas Container */
.canvas-workspace-container {
    background: #f1f2f5;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    height: 100%;
    position: relative;
    padding: 20px;
}

body.accessibility-dark-mode .canvas-workspace-container {
    background: #0f0f11;
}

/* The Whiteboard itself */
.canvas-board {
    width: 1120px;
    height: 790px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    cursor: default;
}

/* Elements on canvas */
.mb-element {
    position: absolute;
    cursor: move;
    user-select: none;
    transform-origin: center center;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid transparent;
    transition: box-shadow 0.2s;
}

.mb-element:hover {
    box-shadow: 0 0 0 1px rgba(207, 161, 124, 0.4);
}

.mb-element.selected {
    border: 1px dashed var(--color-accent);
    box-shadow: 0 4px 15px rgba(207, 161, 124, 0.15);
}

.mb-element img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* Text elements on canvas */
.mb-text-el {
    word-break: break-word;
    white-space: pre-wrap;
    text-align: center;
    cursor: move;
    line-height: 1.4;
}

/* Selected item properties section */
.canvas-prop-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
    border-top: 1px solid var(--color-border);
    padding-top: 15px;
}

/* Context Menu */
.canvas-context-menu {
    position: fixed;
    z-index: 10000;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    width: 200px;
    display: none;
    padding: 5px 0;
}

body.accessibility-dark-mode .canvas-context-menu {
    background: #1c1c1f;
}

.canvas-context-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.canvas-context-menu li {
    padding: 10px 15px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    color: var(--color-text-dark);
}

.canvas-context-menu li:hover {
    background: var(--color-bg-light);
    color: var(--color-accent);
}

body.accessibility-dark-mode .canvas-context-menu li:hover {
    background: #252529;
}

/* Printing logic */
#print-page-2 {
    display: none;
}

@media print {
    @page {
        size: landscape;
        margin: 0;
    }
    
    html, body {
        width: 1120px !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        overflow: visible !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    .main-header, .canvas-sidebar, .gallery-instructions, .cookie-consent, #accessibility-panel, #accessibility-btn, #canvas-context-menu {
        display: none !important;
    }
    
    .canvas-layout {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 1120px !important;
        height: auto !important;
    }
    
    .canvas-workspace-container {
        display: block !important;
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 1120px !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    .canvas-board {
        box-shadow: none !important;
        border: none !important;
        width: 1120px !important;
        height: 790px !important;
        position: relative !important;
        margin: 0 !important;
        padding: 0 !important;
        page-break-after: always;
        page-break-inside: avoid;
    }
    
    #print-page-2.active-print {
        display: block !important;
        width: 1120px !important;
        height: 790px !important;
        box-sizing: border-box !important;
        padding: 50px !important;
        background: #ffffff !important;
        page-break-before: always;
        page-break-inside: avoid;
        position: relative !important;
    }
}

/* Responsive fixes */
@media (max-width: 1024px) {
    .canvas-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 500px auto;
        height: auto;
        overflow-y: auto;
    }
    .canvas-sidebar {
        height: auto;
        max-height: 400px;
    }
}

/* Helper Tooltip Styling */
.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--color-text-muted);
    font-size: 9px;
    font-weight: 600;
    cursor: help;
    margin-left: 6px;
    position: relative;
    transition: all 0.2s ease;
    user-select: none;
    vertical-align: middle;
}

.help-icon:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.help-tooltip-content {
    visibility: hidden;
    width: 200px;
    background: rgba(17, 17, 18, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(207, 161, 124, 0.2);
    color: #f5f5f7;
    text-align: left;
    padding: 10px 12px;
    border-radius: 6px;
    position: absolute;
    z-index: 1000;
    font-size: 10px;
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-transform: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

/* Position helpers */
.help-icon .tooltip-left {
    top: 50%;
    right: 140%;
    transform: translateY(-50%) translateX(10px);
}

.help-icon .tooltip-right {
    top: 50%;
    left: 140%;
    transform: translateY(-50%) translateX(-10px);
}

.help-icon .tooltip-bottom {
    top: 140%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
}

.help-icon:hover .help-tooltip-content {
    visibility: visible;
    opacity: 1;
}

.help-icon:hover .tooltip-left {
    transform: translateY(-50%) translateX(0);
}

.help-icon:hover .tooltip-right {
    transform: translateY(-50%) translateX(0);
}

.help-icon:hover .tooltip-bottom {
    transform: translateX(-50%) translateY(0);
}

/* Floating Guide Badge and Tooltip */
.help-guide-badge {
    position: absolute;
    top: 35px;
    left: 35px;
    z-index: 1000;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    font-size: 10px;
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.help-guide-badge:hover {
    background: var(--color-bg-white);
    border-color: var(--color-accent);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.help-guide-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 280px;
    background: rgba(17, 17, 18, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(207, 161, 124, 0.25);
    color: #f5f5f7;
    padding: 16px 18px;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 300;
    line-height: 1.5;
    text-transform: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
    pointer-events: none;
}

.help-guide-badge:hover .help-guide-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Checkbox Specs Container Hover Effect */
.canvas-specs-checkbox-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(207, 161, 124, 0.25) !important;
    border-color: var(--color-accent) !important;
}

/* Radar-pulse and spin animations for Admin Buscador Maps */
@keyframes radar-pulse {
    0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Chip filter buttons in Buscador */
.btn-chip {
    outline: none;
    user-select: none;
}
.btn-chip:hover {
    background: rgba(207, 161, 124, 0.06);
    border-color: var(--color-accent);
}
.btn-chip.active:hover {
    background: rgba(207, 161, 124, 0.18) !important;
}





