/* ==========================================================================
   Fonte Da Vida - Pricing/Calculator Styles
   (Products Grid Layout & Sidebar Cart - 20% Scaled Down)
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. Page Header
   -------------------------------------------------------------------------- */
.page-header.animated-header {
    position: relative;
    overflow: hidden;
    padding: 200px 24px 140px;
    z-index: 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.ph-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -99;
    transform: scale(1.0);
    animation: slowPan 25s linear infinite alternate;
}

@keyframes slowPan {
    from { transform: scale(1.05) translate(0, 0); }
    to { transform: scale(1.15) translate(-1%, 1%); }
}

.ph-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: -98;
}

.ph-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.ph-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
    font-family: 'JetBrains Mono', monospace;
}

.ph-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.ph-breadcrumb a:hover {
    color: #fff;
}

.ph-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 100px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.ph-title {
    font-size: clamp(38px, 5vw, 56px);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.ph-desc {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto;
}

.gradient-text {
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 60%, #1E40AF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Force white text and white logo when navbar is transparent at top, in BOTH modes */
.navbar:not(.scrolled) .logo-light { display: none !important; }
.navbar:not(.scrolled) .logo-dark { display: block !important; }
.navbar:not(.scrolled) .nav-links a,
.navbar:not(.scrolled) .btn-ghost,
.navbar:not(.scrolled) .theme-toggle,
.navbar:not(.scrolled) .lang-btn,
.navbar:not(.scrolled) .lang-btn .lang-text {
    color: #ffffff !important;
    transition: transform 0.2s ease, border-color 0.2s ease !important;
}

.navbar:not(.scrolled) .nav-links a { display: inline-block; }
.navbar:not(.scrolled) .lang-btn { background: transparent !important; border-color: rgba(255, 255, 255, 0.4) !important; }
.navbar:not(.scrolled) .theme-toggle { background: transparent !important; border-color: rgba(255, 255, 255, 0.4) !important; }
.navbar:not(.scrolled) .btn-ghost { background: transparent !important; }
.navbar:not(.scrolled) .nav-toggle span { background: #ffffff !important; }

.navbar:not(.scrolled) .nav-links a:hover,
.navbar:not(.scrolled) .btn-ghost:hover,
.navbar:not(.scrolled) .theme-toggle:hover,
.navbar:not(.scrolled) .lang-btn:hover {
    transform: translateY(-2px) !important;
    color: #ffffff !important;
    background: transparent !important;
}
.navbar:not(.scrolled) .theme-toggle:hover,
.navbar:not(.scrolled) .lang-btn:hover {
    border-color: rgba(255, 255, 255, 0.8) !important;
}

.breadcrumb {
    display: flex; justify-content: center; gap: 8px;
    font-size: 11px; color: var(--text-muted); margin-bottom: 16px;
    font-family: 'JetBrains Mono', monospace;
}
.breadcrumb a { color: var(--text-muted); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--text-primary); }

.section-desc { max-width: 600px; margin: 0 auto; font-size: 14px; }
.section-title { font-size: clamp(26px, 3.5vw, 36px); margin-bottom: 12px; }

/* --------------------------------------------------------------------------
   02. Layout Grid (Split Screen)
   -------------------------------------------------------------------------- */
.interactive-pricing {
    padding-bottom: 100px;
}

.pricing-layout {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 24px;
    align-items: start;
}

/* --------------------------------------------------------------------------
   03. Products Grid (Left) matching products.html exactly
   -------------------------------------------------------------------------- */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.template-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding-bottom: 8px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 30px rgba(0, 0, 0, 0.2);
}

.light-mode .template-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 30px rgba(15, 23, 42, 0.05);
}

/* The glare sweep pseudo-element */
.template-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.1) 50%, transparent);
    transform: skewX(-20deg);
    transition: all 0.7s ease;
    pointer-events: none;
    z-index: 10;
}

.light-mode .template-card::before {
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.6) 50%, transparent);
}

.template-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(59, 130, 246, 0.15);
}

.light-mode .template-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 30px 60px rgba(15, 23, 42, 0.1), 0 0 30px rgba(59, 130, 246, 0.1);
}

.template-card:hover::before {
    left: 150%;
}

.template-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.light-mode .template-thumb {
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.template-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.template-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.template-number {
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.template-name {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--text-primary);
}

/* Simply Quantity Input */
.qty-simple-input {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    outline: none;
    transition: all 0.2s;
    margin-top: auto;
}
.qty-simple-input::placeholder {
    color: var(--text-muted);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
}
.qty-simple-input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px var(--accent-soft), 0 0 20px rgba(59, 130, 246, 0.3);
}
.light-mode .qty-simple-input:focus {
    background: #fff;
    box-shadow: 0 0 0 3px var(--accent-soft), 0 0 20px rgba(59, 130, 246, 0.2);
}

/* Remove Arrows from Number Input */
.qty-simple-input::-webkit-outer-spin-button,
.qty-simple-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-simple-input[type=number] {
  -moz-appearance: textfield;
}

/* Customer Fields Input */
.customer-input {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 12px 14px;
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: all 0.2s;
}
.customer-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}
.customer-input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px var(--accent-soft), 0 0 20px rgba(59, 130, 246, 0.3);
}
.light-mode .customer-input:focus {
    background: #fff;
    box-shadow: 0 0 0 3px var(--accent-soft), 0 0 20px rgba(59, 130, 246, 0.2);
}

/* --------------------------------------------------------------------------
   04. Logistics Card
   -------------------------------------------------------------------------- */
.logistics-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px 28px;
    margin-top: 24px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 30px rgba(0, 0, 0, 0.2);
}

.light-mode .logistics-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 30px rgba(15, 23, 42, 0.05);
}

.logistics-header h2 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.logistics-header p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.delivery-fieldset { border: none; padding: 0; margin: 0; }
.delivery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.delivery-card { cursor: pointer; position: relative; }
.delivery-card input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }

.dc-inner { 
    position: relative; overflow: hidden;
    border: 1px solid var(--border-subtle); border-radius: 8px; 
    padding: 14px 12px; text-align: center; background: var(--surface-2); 
    transition: all 0.2s ease; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; 
}
.dc-title { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.dc-price { font-size: 11px; color: var(--text-secondary); font-family: 'JetBrains Mono', monospace; font-weight: 600; }

.dc-check {
    position: absolute; top: 8px; right: 8px;
    width: 14px; height: 14px; background: var(--accent); color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: scale(0.5); transition: all 0.2s ease;
}

.delivery-card:hover .dc-inner { border-color: var(--accent-border); background: var(--surface-1); }
.delivery-card input:focus-visible + .dc-inner { outline: 2px solid var(--accent-soft); outline-offset: 2px; }

.delivery-card input:checked + .dc-inner { 
    border-color: var(--accent); 
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.05) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 20px rgba(59, 130, 246, 0.2), 0 0 20px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}
.delivery-card input:checked + .dc-inner .dc-check { opacity: 1; transform: scale(1); }
.delivery-card input:checked + .dc-inner .dc-price { color: var(--text-primary); }


/* --------------------------------------------------------------------------
   05. Summary Column (Desktop Sticky / Mobile Sidebar)
   -------------------------------------------------------------------------- */
.summary-column {
    position: sticky;
    top: 100px; /* Offset for navbar */
}

.receipt-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 20px 40px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 80vh;
}
.light-mode .receipt-card { 
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 20px 40px rgba(15, 23, 42, 0.06); 
}

.receipt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--surface-2);
}

.receipt-header h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
}

.rh-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.clear-cart-btn {
    display: flex; align-items: center; gap: 4px; 
    background: var(--surface-3); border: none; border-radius: 100px;
    color: var(--text-secondary); padding: 6px 12px;
    font-size: 11px; font-weight: 600; cursor: pointer; 
    transition: all 0.2s; font-family: inherit;
}
.clear-cart-btn:hover { background: rgba(244, 63, 94, 0.1); color: var(--rose); }

.close-mobile-cart {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}
.close-mobile-cart:hover { color: var(--rose); }

.receipt-body {
    padding: 24px;
    min-height: 150px;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.receipt-body::-webkit-scrollbar { width: 6px; }
.receipt-body::-webkit-scrollbar-thumb { background: #000; border-radius: 3px; }
.receipt-body::-webkit-scrollbar-track { background: transparent; }

/* Empty State */
.empty-state {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; color: var(--text-muted); height: 100%; padding: 20px 0;
    animation: fadeIn 0.4s ease;
}
.es-icon {
    width: 50px; height: 50px; background: var(--surface-2); border-radius: 50%;
    display: grid; place-items: center; color: var(--surface-3); margin-bottom: 12px;
}
.empty-state p { font-weight: 700; font-size: 14px; margin-bottom: 4px; color: var(--text-primary); }
.empty-state span { font-size: 12px; max-width: 80%; line-height: 1.4; }

/* Receipt Items */
.receipt-items {
    list-style: none; display: flex; flex-direction: column; gap: 16px;
}

.receipt-item {
    display: flex; justify-content: space-between; align-items: center;
    animation: slideIn 0.3s ease forwards;
    padding-bottom: 16px; border-bottom: 1px dashed var(--border-subtle);
}
.receipt-item:last-child { border-bottom: none; padding-bottom: 0; }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes popUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); color: var(--accent-light); }
    100% { transform: scale(1); }
}

.ri-details { display: flex; flex-direction: column; gap: 2px; }
.ri-name { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.ri-calc { font-size: 11px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.ri-price { font-size: 14px; font-weight: 800; color: var(--text-primary); font-family: 'JetBrains Mono', monospace; white-space: nowrap; }

/* Warning */
.receipt-warning {
    display: flex; gap: 10px; margin-top: 20px; padding: 12px;
    background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 8px; color: var(--amber); font-size: 11px; line-height: 1.5;
    animation: fadeIn 0.4s ease;
}
.receipt-warning svg { flex-shrink: 0; margin-top: 2px; }

/* Footer */
.receipt-footer {
    background: var(--surface-2);
    border-top: 1px solid var(--border-subtle);
    padding: 24px;
}

.receipt-line {
    display: flex; justify-content: space-between; font-size: 13px;
    color: var(--text-secondary); margin-bottom: 12px; font-weight: 500;
}
.receipt-line span:last-child { font-family: 'JetBrains Mono', monospace; font-weight: 600; color: var(--text-primary); }

.receipt-total {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 16px; padding-top: 16px; border-top: 2px dashed var(--border-subtle);
    font-size: 14px; font-weight: 700;
}

.total-price-wrap {
    display: flex; align-items: baseline; gap: 6px; color: var(--green);
}
.total-price-wrap.updating { animation: popUpdate 0.3s ease; }

.total-currency { font-size: 12px; font-weight: 700; opacity: 0.8; }
.total-amount { 
    font-size: 32px; 
    font-weight: 800; 
    font-family: 'JetBrains Mono', monospace; 
    letter-spacing: -0.02em; 
    line-height: 1; 
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 60%, #1E40AF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.receipt-actions {
    display: flex; flex-direction: column; gap: 10px; margin-top: 24px;
}

.action-btn { 
    width: 100%; display: flex; justify-content: center; align-items: center; 
    gap: 8px; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); font-weight: 700; padding: 14px; border-radius: 12px; font-size: 14px;
}
.action-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.action-btn.whatsapp { background: linear-gradient(135deg, #25D366 0%, #1EBE57 100%); color: white; box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 6px 18px rgba(37, 211, 102, 0.3); border: none; }
.action-btn.whatsapp:hover:not(:disabled) { box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 15px 30px rgba(37, 211, 102, 0.4); transform: translateY(-3px) scale(1.02); }

#btnEmail { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-primary); }
.light-mode #btnEmail { background: rgba(0, 0, 0, 0.03); border: 1px solid rgba(0, 0, 0, 0.1); }
#btnEmail:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.light-mode #btnEmail:hover:not(:disabled) { background: rgba(0, 0, 0, 0.05); border-color: rgba(0, 0, 0, 0.2); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

.corporate-link {
    text-align: center; font-size: 11px; color: var(--text-muted); margin-top: 16px;
}
.corporate-link a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
.corporate-link a:hover { color: var(--accent-light); }

/* --------------------------------------------------------------------------
   06. Mobile Sticky Bottom Bar & Full Page Sidebar Logic
   -------------------------------------------------------------------------- */
.mobile-summary-bar {
    display: none; /* Hidden on desktop */
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: rgba(30, 30, 36, 0.95);
    border-top: 1px solid var(--border-subtle);
    padding: 16px 24px; box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
    z-index: 100; align-items: center; justify-content: space-between;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.light-mode .mobile-summary-bar {
    box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.95);
}

.msb-info { display: flex; flex-direction: column; }
.msb-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 700; margin-bottom: 2px; }
.msb-total { font-size: 18px; font-weight: 800; color: var(--green); font-family: 'JetBrains Mono', monospace; }
.msb-total.updating { animation: popUpdate 0.3s ease; }

/* --------------------------------------------------------------------------
   07. Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .pricing-layout { grid-template-columns: 1fr; }
    
    .templates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* True Full Page Sidebar Overlay pushing everything visually */
    .summary-column {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        height: 100dvh; /* For mobile browsers */
        background: var(--surface-1);
        z-index: 99999; /* Covers everything including navbar */
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        box-shadow: -10px 0 50px rgba(0,0,0,0.5);
        margin: 0;
        padding: 0;
    }

    .summary-column.active {
        right: 0;
    }

    .receipt-card {
        border-radius: 0;
        border: none;
        box-shadow: none;
        height: 100%;
        flex: 1;
        max-height: 100vh !important;
    }
    
    .receipt-body {
        flex: 1; /* allow scrolling inside the drawer */
    }

    .close-mobile-cart {
        display: block; /* Show close button in mobile overlay */
    }

    /* Show Sticky Toggle Bar on Mobile */
    .mobile-summary-bar { display: flex; }
    
    .interactive-pricing { padding-bottom: 100px; /* Space for sticky bar */ }
}

@media (max-width: 768px) {
    .page-header { padding: 120px 0 30px; }
    .templates-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .delivery-grid { grid-template-columns: 1fr; }
    
    .split-layout { grid-template-columns: 1fr; gap: 32px; }
    .split-sidebar { position: relative; top: 0; }
}

/* --------------------------------------------------------------------------
   08. Premium FAQ Split Layout Overrides
   -------------------------------------------------------------------------- */
.faq-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-subtle);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: flex-start;
}

.split-sidebar {
    position: sticky;
    top: 120px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Override Global FAQ Items */
.faq-item {
    background: rgba(30, 30, 36, 0.4) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
}

.light-mode .faq-item {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05) !important;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateX(4px) !important;
}

.light-mode .faq-item:hover {
    border-color: var(--accent-border) !important;
}

.faq-btn {
    width: 100% !important;
    text-align: left !important;
    padding: 24px !important;
    background: transparent !important;
    border: none !important;
    color: var(--text-primary) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 20px !important;
    transition: background 0.3s ease !important;
}

.faq-title {
    flex: 1;
    line-height: 1.4;
}

.faq-toggle-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.light-mode .faq-toggle-icon {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.05);
}

.vertical-line {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.faq-item.active {
    background: rgba(59, 130, 246, 0.05) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2), inset 0 0 0 1px var(--accent) !important;
}

.light-mode .faq-item.active {
    background: #ffffff !important;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1), inset 0 0 0 1px var(--accent) !important;
}

.faq-item.active .faq-toggle-icon {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
    transform: rotate(180deg) !important;
}

/* Force icon to inherit white color from the container */
.faq-toggle-icon .faq-icon {
    color: inherit !important;
}

/* Override global 45deg rotation so the container's 180deg works properly */
.faq-item.active .faq-icon {
    transform: none !important;
}

.faq-item.active .vertical-line {
    transform: scaleY(0) !important;
}

.faq-answer {
    display: grid !important;
    grid-template-rows: 0fr !important;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: transparent !important;
    border-top: none !important;
    max-height: none !important;
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr !important;
}

.faq-answer-inner {
    overflow: hidden !important;
    padding: 0 24px !important;
    color: var(--text-secondary) !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease 0.1s, padding 0.4s ease !important;
}

.faq-item.active .faq-answer-inner {
    opacity: 1 !important;
    padding: 0 24px 24px 24px !important;
}