@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
    --ibuild-black: #141414;
    --accent-gold: #C8A96E;
    --ibuild-gray: #f2f2f2;
    --ibuild-dark-gray: #767676;
    --ibuild-blue: #141414;
    --white: #ffffff;
    --border-color: #e5e5e5;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--ibuild-black);
    background-color: var(--white);
    overflow: hidden; /* we'll handle scrolling in the sidebar */
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--white);
    height: 70px;
}

.logo {
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 1.2rem;
}

.menu a {
    text-decoration: none;
    color: var(--ibuild-black);
    margin-left: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.menu a:hover {
    color: var(--ibuild-dark-gray);
}

/* Configurator Layout */
.configurator {
    display: flex;
    height: calc(100vh - 70px);
}

/* Viewer */
.viewer {
    flex: 2;
    background-color: var(--ibuild-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.car-image {
    width: 80%;
    max-width: 900px;
    object-fit: contain;
    /* mix-blend-mode removed */
}

.view-controls {
    position: absolute;
    bottom: 120px;
    display: flex;
    gap: 10px;
}

.view-controls button {
    background: transparent;
    border: none;
    font-size: 0.9rem;
    color: var(--ibuild-dark-gray);
    cursor: pointer;
    padding: 5px 10px;
    transition: var(--transition);
}

.view-controls button.active {
    color: var(--ibuild-black);
    font-weight: 600;
    border-bottom: 2px solid var(--ibuild-black);
}

/* Options Sidebar */
.options-sidebar {
    flex: 1;
    min-width: 400px;
    max-width: 450px;
    background-color: var(--white);
    overflow-y: auto;
    border-left: 1px solid var(--border-color);
    position: relative;
}

.sidebar-content {
    padding: 40px;
}

.sidebar-content h1 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.subtitle {
    color: var(--ibuild-dark-gray);
    font-size: 1rem;
    margin-bottom: 40px;
}

.config-group {
    margin-bottom: 40px;
}

.config-group h2 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 15px;
}

/* Option Cards */
.option-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.option-card:hover {
    border-color: var(--accent-gold);
}

.option-card.active {
    border-color: var(--ibuild-blue);
    background-color: #f0f7ff;
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 500;
}

.price {
    font-weight: 500;
}

.option-card p {
    font-size: 0.85rem;
    color: var(--ibuild-dark-gray);
}

/* Color Options */
.color-options {
    display: flex;
    gap: 15px;
}

.color-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid #ddd;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    transition: var(--transition);
    position: relative;
}

.color-btn.active::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 2px solid var(--ibuild-blue);
    border-radius: 50%;
}

/* Bottom Bar */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 100;
}

.price-summary {
    display: flex;
    flex-direction: column;
}

.price-summary .label {
    font-size: 0.8rem;
    color: var(--ibuild-dark-gray);
}

.price-summary .total-price {
    font-size: 1.5rem;
    font-weight: 500;
}

.actions {
    display: flex;
    gap: 15px;
}

.btn-secondary {
    background: transparent;
    border: none;
    color: var(--ibuild-black);
    font-weight: 500;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--ibuild-blue);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--accent-gold);
}

@media (max-width: 768px) {
    .configurator {
        flex-direction: column;
        overflow-y: auto;
    }
    .viewer {
        height: 50vh;
        flex: none;
    }
    .options-sidebar {
        flex: none;
        width: 100%;
        max-width: none;
        overflow-y: visible;
        border-left: none;
    }
    .bottom-bar {
        padding: 0 20px;
    }
}

/* Checkout Page Styles */
.checkout-page {
    overflow-y: auto; /* Allow scrolling on this page */
}

/* Updated Navbar for Checkout (centered logo) */
.checkout-page .navbar {
    justify-content: center;
    position: relative;
}

.checkout-page .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.checkout-page .menu-left {
    display: flex;
    gap: 20px;
    margin-right: auto;
}

.checkout-page .menu-left a {
    text-decoration: none;
    color: var(--ibuild-black);
    font-size: 0.85rem;
    font-weight: 500;
}

.checkout-page .menu-right {
    display: flex;
    gap: 20px;
}

.checkout-page .menu-right a {
    text-decoration: none;
    color: var(--ibuild-black);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Checkout Layout */
.checkout-container {
    display: flex;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 40px;
    gap: 100px;
}

.checkout-form-section {
    flex: 6;
}

.checkout-summary-section {
    flex: 4;
}

/* Checkout Typography */
.checkout-title {
    font-size: 2.2rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 90%;
}

.checkout-subtitle {
    font-size: 0.95rem;
    color: var(--ibuild-dark-gray);
    margin-bottom: 50px;
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 25px;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-input {
    width: 100%;
    padding: 15px 15px;
    border: 1px solid #c4c4c4;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: var(--ibuild-black);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--ibuild-black);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-group label {
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.phone-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.code-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #c4c4c4;
    border-radius: 4px;
    padding: 5px 15px;
    min-width: 80px;
}

.code-box span {
    font-size: 0.7rem;
    color: var(--ibuild-dark-gray);
}

.code-box strong {
    font-size: 0.95rem;
    font-weight: 500;
}

.dealer-search {
    position: relative;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ibuild-dark-gray);
    cursor: pointer;
}

.location-link {
    color: var(--ibuild-black);
    font-size: 0.9rem;
    text-decoration: underline;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 20px;
}

.privacy-text {
    font-size: 0.85rem;
    color: var(--ibuild-dark-gray);
    margin-bottom: 15px;
    line-height: 1.5;
}

.privacy-text a {
    color: var(--ibuild-black);
}

.btn-submit {
    background-color: #141414; /* The brighter blue from the screenshot */
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: var(--accent-gold);
}

.disclaimer-text {
    font-size: 0.8rem;
    color: var(--ibuild-dark-gray);
    margin-top: 15px;
    line-height: 1.4;
    max-width: 400px;
}

/* Summary Section */
.summary-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.summary-card {
    background-color: #f7f7f7;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 4px;
    margin-bottom: 30px;
}

.summary-car-img {
    width: 100%;
    max-width: 300px;
    /* mix-blend-mode removed */
}

.summary-card h4 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 10px;
    text-align: left;
    width: 100%;
    text-decoration: underline;
}

.summary-delivery {
    font-size: 0.85rem;
    color: var(--ibuild-dark-gray);
    margin-bottom: 5px;
}

.summary-price-large {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.summary-iva {
    font-size: 0.75rem;
    color: var(--ibuild-dark-gray);
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.price-row.small {
    font-size: 0.8rem;
    color: var(--ibuild-dark-gray);
}

.summary-divider {
    border: 0;
    border-top: 1px solid #e5e5e5;
    margin: 15px 0;
}

/* Huge Dark Footer */
.main-footer {
    background-color: #000;
    color: #fff;
    padding: 80px 60px 40px;
    margin-top: 100px;
}

.footer-top {
    margin-bottom: 60px;
}

.newsletter h2 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 5px;
}

.newsletter .gray-text {
    color: #888;
}

.btn-subscribe {
    background-color: #fff;
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 0;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 30px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.footer-col a {
    display: block;
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 15px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #333;
    padding-top: 30px;
    margin-bottom: 60px;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.country span {
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-huge-text {
    font-size: 18vw;
    font-weight: 600;
    line-height: 0.8;
    letter-spacing: -2px;
    margin-bottom: 40px;
    color: #fff;
}

.footer-bottom {
    font-size: 0.75rem;
    color: #666;
}

/* Floating Help Button */
.btn-floating-help {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 12px 20px;
    border-radius: 0;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    cursor: pointer;
    z-index: 1000;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .checkout-container {
        flex-direction: column;
    }
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
    }
    .checkout-page .menu-left {
        display: none;
    }
}

/* Produto Page Layout Rebuild */
.produto-page {
    overflow-y: auto;
}

.produto-page .navbar {
    height: 70px;
    border-bottom: none;
}

.produto-page .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.produto-page .menu-left,
.produto-page .menu-right {
    display: flex;
    gap: 20px;
}

.produto-page .menu-left {
    margin-right: auto;
}

.produto-page .menu-left a,
.produto-page .menu-right a {
    text-decoration: none;
    color: var(--ibuild-black);
    font-size: 0.85rem;
    font-weight: 500;
}

.sticky-top-bar {
    position: sticky;
    top: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 15px 40px;
}

.sticky-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sticky-model {
    font-weight: 500;
    font-size: 1rem;
}

.sticky-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sticky-price {
    font-weight: 600;
    font-size: 1.1rem;
}

.small-btn {
    padding: 10px 25px;
    border-radius: 0;
    font-size: 0.9rem;
}

.produto-container {
    display: flex;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
    gap: 80px;
}

.produto-gallery {
    flex: 6;
}

.produto-options {
    flex: 4;
    padding-top: 20px;
    /* Sticky config */
    position: sticky;
    top: 80px;
    align-self: start;
    height: max-content;
    padding-bottom: 20px;
}

.back-link {
    color: var(--ibuild-dark-gray);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 20px;
}

.produto-title {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.produto-subtitle {
    font-size: 0.85rem;
    color: var(--ibuild-dark-gray);
    margin-bottom: 30px;
}

.gallery-item {
    position: relative;
    background: #f0f0f0; 
    margin-bottom: 20px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-img {
    width: 100%;
    display: block;
    /* mix-blend-mode removed */
}

.zoom-img {
    transform: scale(1.5);
    transform-origin: center center;
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.gallery-btn.prev { left: 15px; }
.gallery-btn.next { right: 15px; }

.interior-split {
    display: flex;
    background: none;
    gap: 2px;
}

.interior-main {
    flex: 2;
    background: #f0f0f0;
}

.interior-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.interior-small {
    background: #f0f0f0;
    height: 100%;
    object-fit: cover;
}

.legal-disclaimers {
    margin-top: 40px;
    font-size: 0.75rem;
    color: var(--ibuild-dark-gray);
    line-height: 1.5;
}

.legal-disclaimers p {
    margin-bottom: 10px;
}

.config-section {
    margin-bottom: 30px;
}

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

.config-header h3 {
    font-size: 1.1rem;
    font-weight: 500;
}

.btn-text {
    background: none;
    border: none;
    color: var(--ibuild-black);
    text-decoration: underline;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 500;
}

.config-card {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    background: var(--white);
}

.config-card.selected {
    border: 2px solid var(--ibuild-black);
}

.config-card.clean-card {
    border: 1px solid #e5e5e5;
    background: #fff; /* Screenshot has white background for clean cards */
}

.thumb-img {
    width: 100px;
    /* mix-blend-mode removed */
}

.features-list ul {
    list-style: none;
    padding-left: 0;
}

.features-list li {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--ibuild-dark-gray);
    position: relative;
    padding-left: 15px;
}

.features-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--ibuild-black);
}

.row-card {
    justify-content: flex-start;
}

.color-swatch, .wheel-swatch, .interior-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #111;
    border: 1px solid #ddd;
}
.wheel-swatch { border-radius: 4px; background: #666; }
.interior-swatch { border-radius: 4px; background: #333; }

.card-text h4 {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.card-text p {
    font-size: 0.8rem;
    color: var(--ibuild-dark-gray);
}

.summary-total-box {
    background: #f7f7f7;
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--ibuild-dark-gray);
    margin-bottom: 10px;
}

.price-huge {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.summary-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-outline {
    flex: 1;
    background: transparent;
    border: 1px solid var(--ibuild-black);
    color: var(--ibuild-black);
    padding: 15px;
    border-radius: 0;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--ibuild-black);
    color: var(--white);
}

.summary-actions .btn-primary {
    flex: 1;
    border-radius: 0;
    padding: 15px;
}

.financing-section p {
    font-size: 0.85rem;
    color: var(--ibuild-dark-gray);
    margin-bottom: 8px;
}

.finance-dropdown {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-family: inherit;
}

/* NOVO REFACTOR DO PRODUTO */
.produto-main-grid {
    display: grid;
    grid-template-columns: 63% 32%;
    gap: 5%;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
}

/* Novo Header */
.new-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    height: 70px;
}

.new-nav .nav-left, 
.new-nav .nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.new-nav .nav-right {
    justify-content: flex-end;
}

.new-nav .nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.logo-spaced {
    font-weight: bold;
    letter-spacing: 5px;
    font-size: 1.1rem;
}

.icon {
    font-size: 1.2rem;
    cursor: pointer;
}

.new-nav a {
    text-decoration: none;
    color: var(--ibuild-black);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Novo Sticky Subnav */
.sticky-subnav {
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1000;
    padding: 15px 40px;
    border-bottom: 1px solid var(--border-color);
}

.subnav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.subnav-left { flex: 1; display: flex; align-items: center; }
.subnav-center { flex: 1; display: flex; justify-content: center; }
.subnav-actions { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    flex: 1;
    justify-content: flex-end;
}

.sticky-only {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
.sticky-subnav.is-stuck .sticky-only {
    opacity: 1;
    visibility: visible;
}

.subnav-title {
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
}

/* Ajustes Galeria Esquerda */
.gallery-item.huge {
    margin-bottom: 2px;
}
.gallery-item.huge .gallery-img {
    height: auto;
    object-fit: cover;
}

/* Pills (Botões Alterar) */
.pill-btn {
    background: var(--white);
    border: 1px solid var(--border-color);
    color: var(--ibuild-black);
    padding: 6px 16px;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.pill-btn:hover {
    border-color: var(--ibuild-black);
}

.right-align {
    margin-top: 10px;
    display: block;
}

/* Card Fino */
.fine-border {
    border: 1px solid #e0e0e0;
    padding: 15px 20px;
    border-radius: 4px;
}
.fine-border.selected {
    border: 1.5px solid var(--ibuild-black);
}

.thumb-img-small {
    width: 80px;
    /* mix-blend-mode removed */
}

.view-more-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--ibuild-black);
    font-size: 0.85rem;
    text-decoration: underline;
    font-weight: 500;
}

.summary-actions-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-outline-wide, .btn-primary-wide {
    width: 100%;
    padding: 15px;
    border-radius: 0;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
}

.btn-outline-wide {
    background: transparent;
    border: 1px solid var(--ibuild-black);
    color: var(--ibuild-black);
}

.btn-primary-wide {
    background: #141414;
    color: var(--white);
    border: none;
}

/* DRAWER STYLES */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.summary-drawer {
    position: fixed;
    top: 0;
    right: -600px;
    width: 100%;
    max-width: 550px;
    height: 100vh;
    background: var(--white);
    z-index: 2001;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
}

.summary-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.drawer-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.drawer-close {
    position: absolute;
    right: 20px;
    background: transparent;
    border: 1px solid var(--ibuild-black);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.drawer-content {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.drawer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.drawer-links a {
    color: var(--ibuild-black);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.drawer-title {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 30px;
}

.drawer-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    align-items: flex-start;
}

.drawer-col-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 70%;
}

.drawer-label {
    font-size: 0.75rem;
    color: var(--ibuild-dark-gray);
}

.drawer-val {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

.drawer-col-right {
    font-size: 0.95rem;
    font-weight: 500;
}

.drawer-divider {
    border: 0;
    border-top: 1px solid #e0e0e0;
    margin: 15px 0;
}

.drawer-total {
    margin-top: 20px;
    align-items: center;
}
.drawer-label-bold { font-weight: 600; font-size: 1.1rem; }
.drawer-val-bold { font-weight: 600; font-size: 1.2rem; }

/* Accordion */
.accordion-group {
    margin-top: 30px;
}

.accordion-item {
    border-bottom: 1px solid #e0e0e0;
}
.accordion-item:first-child {
    border-top: 1px solid #e0e0e0;
}

.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--ibuild-black);
}

.accordion-icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.acc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-bottom: 20px;
}

.acc-cell {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.acc-label {
    font-size: 0.75rem;
    color: var(--ibuild-dark-gray);
}

.acc-val {
    font-size: 0.9rem;
    font-weight: 500;
}

.drawer-info-text {
    margin-top: 40px;
    font-size: 0.75rem;
    color: var(--ibuild-dark-gray);
    line-height: 1.5;
}
.drawer-info-text strong {
    color: var(--ibuild-black);
    display: block;
    margin-bottom: 10px;
}
.drawer-info-text p {
    margin-bottom: 10px;
}

/* Carousel Track */
.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}
.carousel-track::-webkit-scrollbar {
    display: none;
}
.carousel-track img {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
}

/* Lightbox Gallery */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lightbox-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}
.lightbox-img {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}
.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}
.lightbox-nav.prev {
    left: 30px;
}
.lightbox-nav.next {
    right: 30px;
}

.gallery-img {
    cursor: pointer; /* Indicar que é clicável */
}

/* iBUILD Footer */
.ibuild-footer {
  padding: 80px 40px 40px;
  background: #141414;
  position: relative;
  z-index: 2;
  margin-top: 100px;
}
.ibuild-footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.ibuild-footer-brand img {
  height: 25px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}
.ibuild-footer-brand p {
  font-size: .85rem;
  font-weight: 400;
  color: #999;
  line-height: 1.7;
  max-width: 280px;
}
.ibuild-footer-col h3 {
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}
.ibuild-footer-col ul {
  list-style: none;
}
.ibuild-footer-col li {
  margin-bottom: 12px;
}
.ibuild-footer-col a {
  font-size: .85rem;
  font-weight: 400;
  color: #999;
  text-decoration: none;
  transition: color .3s;
}
.ibuild-footer-col a:hover {
  color: #fff;
}
.ibuild-footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.ibuild-footer-copy {
  font-size: .75rem;
  font-weight: 400;
  color: #666;
}
.ibuild-footer-blinks {
  display: flex;
  gap: 24px;
}
.ibuild-footer-blinks a {
  font-size: .75rem;
  font-weight: 400;
  color: #666;
  text-decoration: none;
  transition: color .3s;
}
.ibuild-footer-blinks a:hover {
  color: #fff;
}
@media(max-width: 768px) {
  .ibuild-footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Option Cards - Mokki */
.option-card {
  cursor: pointer;
  transition: all 0.3s ease;
  align-items: center;
}
.option-card:hover {
  border-color: var(--accent-gold);
}
.option-card.selected {
  border-color: #000;
  border-width: 2px;
  background: #f9f9f9;
}
.radio-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #ccc;
  margin-right: 15px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.option-card.selected .radio-circle {
  border-color: #000;
}
.option-card.selected .radio-circle::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #000;
}
.opt-price {
  font-weight: 500;
  color: #333;
  font-size: 0.95rem;
}

/* Disabled Buttons */
.disabled-btn {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  pointer-events: auto; /* To capture click and show alert */
}

/* --- New Image Grids --- */
.image-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.image-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .image-grid-3, .image-grid-2 {
        grid-template-columns: 1fr;
    }
}


/* --- Gold Hover Enhancements --- */
a:hover, .menu a:hover, .ibuild-footer-col a:hover, .ibuild-footer-blinks a:hover {
    color: var(--accent-gold) !important;
}

.accordion-header:hover {
    color: var(--accent-gold);
}

.btn-primary:hover, .btn-submit:hover, button[style*="background: #141414"]:hover, a[style*="background: #141414"]:hover {
    background-color: var(--accent-gold) !important;
    border-color: var(--accent-gold) !important;
    color: #fff !important;
}

button[style*="border: 1px solid #1a1a1a"]:hover, a[style*="border: 1px solid #1a1a1a"]:hover {
    border-color: var(--accent-gold) !important;
    color: var(--accent-gold) !important;
}

.drawer-close:hover {
    color: var(--accent-gold);
}

.btn-floating-help:hover { background-color: var(--accent-gold); border-color: var(--accent-gold); color: #fff; }
.btn-primary-wide:hover { background-color: var(--accent-gold) !important; color: #fff !important; transition: 0.3s; }
.btn-outline-wide:hover { background-color: #fff !important; color: #141414 !important; border-color: #141414 !important; transition: 0.3s; }
.btn-outline-wide, .btn-primary-wide { transition: 0.3s; }

/* --- Franchise Cards --- */
#franchise-list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.franchise-card {
    border: 1px solid var(--border);
    padding: 20px;
    background-color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 4px;
}

.franchise-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.franchise-card.selected {
    border: 2px solid var(--ibuild-black);
}

.franchise-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.franchise-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ibuild-black);
}

.franchise-distance {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ibuild-black);
    white-space: nowrap;
    margin-left: 15px;
}

.franchise-address {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.4;
}

.btn-show-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px;
    background: transparent;
    border: none;
    color: var(--ibuild-black);
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-show-more:hover {
    color: var(--accent-gold);
}

.btn-show-more svg {
    margin-left: 8px;
    width: 16px;
    height: 16px;
}

/* --- Autocomplete Styles --- */
.autocomplete-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #1a1a1a;
    border-top: none;
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
}

.autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--ibuild-black);
    border-bottom: 1px solid #f0f0f0;
}

.autocomplete-item strong {
    font-weight: 600;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background-color: #f9f9f9;
}

/* --- Confirmation Modal --- */
.confirmation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.confirmation-modal {
    display: flex;
    width: 95%;
    max-width: 1200px;
    height: auto;
    max-height: 90vh;
    background: #fff;
    flex-direction: row;
    border-radius: 0;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    overflow: hidden;
}

.confirmation-left {
    flex: 1;
    padding: 10% 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.confirmation-right {
    flex: 1;
    background-color: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}

.confirmation-right img {
    width: 100%;
    max-width: 700px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.confirmation-title {
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1.1;
    color: var(--ibuild-black);
    margin-bottom: 25px;
}

.confirmation-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.5;
}

.confirmation-summary-box {
    background: #f9f9f9;
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 6px;
    margin-bottom: 40px;
}

.confirmation-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1rem;
}

.confirmation-summary-item:last-child {
    margin-bottom: 0;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    font-weight: bold;
}

.btn-confirmation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 40px;
    border: 1px solid var(--ibuild-black);
    background: transparent;
    color: var(--ibuild-black);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-confirmation:hover {
    background: var(--ibuild-black);
    color: #fff;
    border-color: var(--ibuild-black);
}

@media (max-width: 900px) {
    .confirmation-modal {
        flex-direction: column;
        overflow-y: auto;
        height: auto;
    }
    .confirmation-left, .confirmation-right {
        flex: none;
        width: 100%;
    }
    .confirmation-right {
        order: -1;
        padding: 20px;
    }
    .confirmation-title {
        font-size: 2.5rem;
    }
}

/* TECH SPECS GENERATED */
.tech-specs-container, .tech-features-container {
    margin-top: 40px;
    padding: 30px;
    background-color: #fcfcfc;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.tech-specs-container h3, .tech-features-container h4 {
    color: var(--ibuild-black);
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}
.tech-specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tech-specs-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}
.tech-specs-list li:last-child {
    border-bottom: none;
}
.tech-specs-list li strong {
    color: var(--ibuild-dark-gray);
    font-weight: 500;
}
.feature-group {
    margin-bottom: 25px;
}
.feature-group h4 {
    font-size: 1rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.feature-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.feature-group li {
    padding: 8px 0;
    font-size: 0.9rem;
    position: relative;
    padding-left: 20px;
    color: var(--ibuild-dark-gray);
}
.feature-group li::before {
    content: "•";
    color: var(--accent-gold);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
}

/* PRODUCT CAROUSEL */
.product-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    background-color: #f2f2f2;
}

.p-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.p-carousel-slide.active {
    opacity: 1;
}
.p-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7);
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    border: none;
    font-size: 1.2rem;
    transition: background 0.2s;
}
.p-carousel-nav:hover {
    background: #fff;
}
.p-carousel-prev { left: 15px; }
.p-carousel-next { right: 15px; }

.p-carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}
.p-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
}
.p-dot.active {
    background-color: #fff;
}

/* SECTION TITLES */
.gallery-section-title {
    font-size: 1.3rem;
    color: var(--ibuild-black);
    margin: 30px 0 15px 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

/* PRINT SUMMARY CSS */
@media print {
    body * {
        visibility: hidden;
    }
    #full-summary-view, #full-summary-view * {
        visibility: visible;
    }
    #full-summary-view {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: auto;
        overflow: visible !important;
        padding: 0;
        background: #fff;
    }
    /* Hide buttons inside print */
    #btn-print-summary, #btn-close-summary {
        display: none !important;
    }
    .confirmation-overlay {
        background: #fff !important;
        overflow: visible !important;
    }
}

/* TITLE OVERRIDE */
.confirmation-title {
    font-size: 1.5rem !important; /* Smaller to fit 2 lines */
    line-height: 1.3 !important;
}

/* FIX CONFIRMATION MODAL RELATIVE */
.confirmation-modal {
    position: relative !important;
}
