﻿/* ===========================================
   CATEGORY PAGE — REDESIGN
   =========================================== */

/* ── Breadcrumb ───────────────────────────── */
.breadcrumb-bar {
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 0;
    margin-top: 64px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--color-muted);
}

.breadcrumb a {
    color: var(--color-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--color-foreground);
}

.breadcrumb-sep {
    color: var(--color-border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.breadcrumb-current {
    color: var(--color-foreground);
    font-weight: 500;
}

/* ── Category Hero ────────────────────────── */
.cat-hero {
    background: var(--color-background);
    padding: 4rem 0 3rem;
    border-bottom: 1px solid var(--color-border);
}

.cat-hero-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
}

.cat-hero-left {
    flex-shrink: 0;
}

.cat-label {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-category-1);
    margin-bottom: 0.875rem;
}

.cat-title {
    font-size: clamp(2.25rem, 4vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-foreground);
    margin-bottom: 0.875rem;
    letter-spacing: -0.02em;
}

.cat-subtitle {
    font-size: 0.9375rem;
    color: var(--color-muted);
    max-width: 360px;
    line-height: 1.6;
}

.cat-hero-right {
    flex-shrink: 0;
}

.cat-nav-tabs {
    display: flex;
    gap: 0.5rem;
}

.cat-nav-tab {
    padding: 0.875rem 1.125rem;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.45;
    border-radius: 6px;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    min-width: 112px;
}

.cat-nav-tab:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.85);
}

.cat-nav-tab.active {
    background: var(--color-category-1);
    border-color: var(--color-category-1);
    color: #fff;
}

.cat-nav-mobile-select {
    display: none;
    width: 100%;
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    color: var(--color-foreground);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
}

/* ── Main layout ─────────────────────────── */
.cat-main {
    min-height: 60vh;
}

.cat-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    align-items: start;
}

/* ── Sidebar ─────────────────────────────── */
.cat-sidebar {
    background: var(--color-card);
    border-right: 1px solid var(--color-border);
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
}

.cat-sidebar::-webkit-scrollbar {
    width: 4px;
}

.cat-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.cat-sidebar::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 2px;
}

.sidebar-inner {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.sidebar-header span {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--color-muted);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 0;
    transition: color 0.2s;
}

.sidebar-close:hover {
    color: var(--color-foreground);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    margin-bottom: auto;
    padding-bottom: 2rem;
}

.sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.875rem;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    text-align: left;
    width: 100%;
    line-height: 1.4;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--color-foreground);
}

.sidebar-item.active {
    background: rgba(255, 59, 0, 0.12);
    color: var(--color-category-1);
}

.item-count {
    font-size: 0.6875rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    color: var(--color-muted);
    font-weight: 600;
    flex-shrink: 0;
}

.sidebar-cta {
    background: rgba(255, 59, 0, 0.07);
    border: 1px solid rgba(255, 59, 0, 0.18);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    margin-top: 1.5rem;
}

.sidebar-cta p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.875rem;
    line-height: 1.55;
}

.sidebar-cta-btn {
    display: block;
    background: var(--color-category-1);
    color: #fff;
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 5px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: opacity 0.2s;
}

.sidebar-cta-btn:hover {
    opacity: 0.88;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 400;
    backdrop-filter: blur(3px);
}

.sidebar-overlay.visible {
    display: block;
}

/* ── Content Area ────────────────────────── */
.cat-content-wrapper {
    background: #f3f4f6;
    min-height: calc(100vh - 64px);
    padding: 2.25rem 2rem;
}

.cat-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #dde1e7;
}

.filter-toggle-btn {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5625rem 0.875rem;
    background: var(--color-card);
    color: var(--color-foreground);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.02em;
}

.filter-toggle-btn:hover {
    background: #151a26;
}

.results-count {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.no-results-msg {
    display: none;
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1rem;
    color: #6b7280;
    font-size: 0.9375rem;
}

/* ── Products Grid ───────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.375rem;
}

/* ── Product Card ────────────────────────── */
.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.11), 0 4px 8px rgba(0, 0, 0, 0.07);
}

.product-image-wrapper {
    position: relative;
    padding-top: 68%;
    overflow: hidden;
    background: #eaecf0;
    flex-shrink: 0;
}

.product-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(13, 15, 20, 0.82);
    backdrop-filter: blur(4px);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.5625rem;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 1;
}

.product-patented-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--color-category-1);
    color: #fff;
    font-size: 0.5625rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.5625rem;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 1;
}

.product-card-body {
    padding: 1.125rem 1.25rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1rem;
    font-weight: 700;
    color: #0d0f14;
    margin-bottom: 0.4375rem;
    line-height: 1.3;
}

.product-description {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1.125rem;
}

.product-card-footer {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.product-details-btn {
    flex: 1;
    padding: 0.5625rem 0.875rem;
    background: var(--color-category-1);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    text-align: center;
    letter-spacing: 0.02em;
}

.product-details-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.product-quote-link {
    display: flex;
    align-items: center;
    gap: 0.3125rem;
    padding: 0.5625rem 0.75rem;
    background: transparent;
    border: 1px solid #dde1e7;
    border-radius: 6px;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
}

.product-quote-link:hover {
    border-color: var(--color-category-1);
    color: var(--color-category-1);
}

/* ── Product Modal ───────────────────────── */
.product-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.product-modal.open {
    pointer-events: all;
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.modal-card {
    position: relative;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    z-index: 1;
    transform: scale(0.94) translateY(12px);
    transition: transform 0.28s ease;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}

.product-modal.open .modal-card {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    width: 2.125rem;
    height: 2.125rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.09);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
    color: #333;
    line-height: 0;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.16);
}

.modal-image-side {
    background: #eaecf0;
    display: flex;
    align-items: stretch;
    min-height: 380px;
    overflow: hidden;
}

.modal-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-info-side {
    padding: 2.25rem 1.875rem;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.modal-code {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--color-category-1);
    text-transform: uppercase;
    margin-bottom: 0.625rem;
}

.modal-title {
    font-size: 1.625rem;
    font-weight: 800;
    color: #0d0f14;
    line-height: 1.2;
    margin-bottom: 0.875rem;
    letter-spacing: -0.01em;
}

.modal-description {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.75;
    margin-bottom: 1.375rem;
}

.modal-features-title {
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 0.75rem;
}

.modal-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.modal-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.8125rem;
    color: #374151;
    line-height: 1.5;
}

.modal-features li::before {
    content: '';
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--color-category-1);
    flex-shrink: 0;
    margin-top: 1px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 9px;
}

.modal-cta {
    display: block;
    background: var(--color-category-1);
    color: #fff;
    text-decoration: none;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9375rem;
    text-align: center;
    transition: opacity 0.2s, transform 0.2s;
    letter-spacing: 0.01em;
}

.modal-cta:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* ── Fixed Actions ───────────────────────── */
.fixed-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.scroll-top-btn {
    width: 2.625rem;
    height: 2.625rem;
    border-radius: 50%;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    color: var(--color-foreground);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, opacity 0.25s, transform 0.25s;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    line-height: 0;
}

.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--color-category-1);
    border-color: var(--color-category-1);
}

.whatsapp-btn {
    width: 3.125rem;
    height: 3.125rem;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.38);
    transition: transform 0.25s, box-shadow 0.25s;
    text-decoration: none;
    line-height: 0;
}

.whatsapp-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn svg {
    width: 1.625rem;
    height: 1.625rem;
    fill: #fff;
}

/* ── Responsive ──────────────────────────── */

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cat-nav-tab {
        min-width: 100px;
        padding: 0.75rem 0.875rem;
        font-size: 0.625rem;
    }
}

@media (max-width: 900px) {
    .cat-hero-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .cat-nav-tabs {
        display: none;
    }

    .cat-nav-mobile-select {
        display: block;
    }

    .cat-hero-right {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .cat-layout {
        grid-template-columns: 1fr;
    }

    .cat-sidebar {
        position: fixed;
        top: 0;
        left: -290px;
        width: 270px;
        height: 100%;
        max-height: 100%;
        z-index: 500;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    .cat-sidebar.open {
        left: 0;
    }

    .sidebar-close {
        display: flex;
    }

    .filter-toggle-btn {
        display: flex;
    }

    .cat-content-wrapper {
        padding: 1.5rem 1rem;
        min-height: auto;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .modal-card {
        grid-template-columns: 1fr;
        max-height: 88vh;
    }

    .modal-image-side {
        min-height: 230px;
        max-height: 260px;
    }

    .modal-info-side {
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.375rem;
    }
}

@media (max-width: 480px) {
    .cat-hero {
        padding: 2.5rem 0 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .cat-content-wrapper {
        padding: 1.25rem 0.875rem;
    }

    .fixed-actions {
        bottom: 1.5rem;
        right: 1.25rem;
    }

    .modal-card {
        border-radius: 10px;
    }
}

/* ===========================================
   QUOTE FORM MODAL
   =========================================== */

.quote-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.quote-modal.open {
    pointer-events: all;
    opacity: 1;
}

.quote-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: pointer;
}

.quote-modal-card {
    position: relative;
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 620px;
    max-height: 92vh;
    overflow-y: auto;
    z-index: 1;
    transform: scale(0.94) translateY(14px);
    transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb transparent;
}

.quote-modal.open .quote-modal-card {
    transform: scale(1) translateY(0);
}

/* ── Header ── */
.quote-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.75rem 2rem 1.5rem;
    border-bottom: 1px solid #f0f0f2;
}

.quote-modal-label {
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-category-1, #FF3B00);
    margin-bottom: 0.375rem;
}

.quote-modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0d0f14;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0;
}

.quote-modal-close {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.07);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    color: #555;
    padding: 0;
}

.quote-modal-close:hover {
    background: rgba(0, 0, 0, 0.14);
}

/* ── Form ── */
.quote-form {
    padding: 1.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #374151;
    letter-spacing: 0.02em;
}

.form-group label span {
    color: var(--color-category-1, #FF3B00);
}

.form-group input,
.form-group textarea {
    padding: 0.625rem 0.875rem;
    border: 1.5px solid #e2e4e8;
    border-radius: 7px;
    font-size: 0.875rem;
    color: #1f2937;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #c4c8d0;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-category-1, #FF3B00);
    box-shadow: 0 0 0 3px rgba(255, 59, 0, 0.1);
}

.form-group input.input-error,
.form-group textarea.input-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 88px;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.5;
    cursor: pointer;
}

.quote-submit-btn {
    width: 100%;
    padding: 0.875rem;
    background: var(--color-category-1, #FF3B00);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    margin-top: 0.25rem;
    font-family: inherit;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.quote-submit-btn:hover:not(:disabled) {
    opacity: 0.92;
    transform: translateY(-1px);
}

.quote-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* ── Success State ── */
.quote-form-state.hidden,
.quote-success-state.hidden {
    display: none;
}

.quote-success-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3.5rem 2.5rem;
}

.success-checkmark {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #f0fdf4;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: successPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes successPop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.success-checkmark svg {
    width: 38px;
    height: 38px;
    overflow: visible;
}

.success-check-circle {
    fill: #f0fdf4;
    stroke: #bbf7d0;
    stroke-width: 1.5;
}

.success-check-path {
    fill: none;
    stroke: #22c55e;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 60;
    stroke-dashoffset: 0;
    animation: checkDraw 0.4s ease 0.3s both;
}

@keyframes checkDraw {
    from { stroke-dashoffset: 60; opacity: 0; }
    to   { stroke-dashoffset: 0;  opacity: 1; }
}

.success-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0d0f14;
    margin-bottom: 0.875rem;
    letter-spacing: -0.01em;
}

.success-message {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.75;
    max-width: 400px;
    margin-bottom: 2rem;
}

.success-message strong {
    color: #1f2937;
    font-weight: 700;
}

.success-close-btn {
    padding: 0.75rem 2.75rem;
    background: var(--color-category-1, #FF3B00);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    font-family: inherit;
}

.success-close-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .quote-modal-header {
        padding: 1.25rem 1.25rem 1rem;
    }

    .quote-form {
        padding: 1.25rem 1.25rem 1.5rem;
    }

    .quote-modal-title {
        font-size: 1.0625rem;
    }

    .quote-success-state {
        padding: 2.5rem 1.5rem;
    }
}

/* ===========================================
   MODAL IMAGE GALLERY
   =========================================== */

.modal-image-side {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: visible;
}

.modal-gallery {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.modal-gallery-main {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    background: #d6d8dd;
}

.modal-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.18s ease;
}

/* Prev / Next buttons */
.modal-gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.125rem;
    height: 2.125rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.2s;
    line-height: 0;
    padding: 0;
}

.modal-gallery-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal-gallery-prev { left: 0.75rem; }
.modal-gallery-next { right: 0.75rem; }

/* Counter badge */
.modal-gallery-counter {
    position: absolute;
    bottom: 0.625rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(4px);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.2rem 0.625rem;
    border-radius: 999px;
    letter-spacing: 0.04em;
    pointer-events: none;
    white-space: nowrap;
}

/* Hide nav + counter when only 1 image */
.modal-gallery-main.gallery-single .modal-gallery-btn,
.modal-gallery-main.gallery-single .modal-gallery-counter {
    display: none;
}

/* Thumbnails strip */
.modal-gallery-thumbs {
    display: flex;
    gap: 0.4375rem;
    padding: 0.625rem 0.75rem;
    background: #e2e4e8;
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 0;
}

.modal-gallery-thumbs::-webkit-scrollbar { display: none; }

.modal-gallery-thumbs.gallery-single { display: none; }

.modal-gallery-thumb {
    width: 56px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    padding: 0;
    background: none;
    transition: border-color 0.18s, opacity 0.18s;
    opacity: 0.52;
    line-height: 0;
}

.modal-gallery-thumb:hover { opacity: 0.82; }

.modal-gallery-thumb.active {
    border-color: var(--color-category-1);
    opacity: 1;
}

.modal-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* <button> reset for modal-cta */
button.modal-cta {
    border: none;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
}

/* <button> reset for sidebar-cta-btn */
button.sidebar-cta-btn {
    border: none;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
}

/* Responsive: mobile gallery */
@media (max-width: 768px) {
    .modal-gallery-main {
        min-height: 200px;
    }
}

