/* ============================================================
 * +FAMOSA - STYLE.CSS
 * Custom styles + Tailwind CDN utilities
 * ============================================================ */

/* ---- Paleta ---- */
:root {
    --bg-primary: #070A13;
    --bg-card: #111827;
    --primary: #7C3AED;
    --secondary: #06B6D4;
    --success: #22C55E;
    --warning: #FACC15;
    --error: #EF4444;
    --text: #F9FAFB;
    --text-muted: #9CA3AF;
}

/* ---- x-cloak (esconder antes do Alpine carregar) ---- */
[x-cloak] {
    display: none !important;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text);
    min-height: 100vh;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 3px;
}

/* Scrollbar custom */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* ---- Glassmorphism ---- */
.glass {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.glass-light {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---- Gradient classes ---- */
.gradient-primary {
    background: linear-gradient(135deg, #7C3AED, #06B6D4);
}

.gradient-secondary {
    background: linear-gradient(135deg, #7C3AED, #EC4899);
}

.gradient-success {
    background: linear-gradient(135deg, #22C55E, #06B6D4);
}

.gradient-warm {
    background: linear-gradient(135deg, #FACC15, #EC4899);
}

.gradient-text {
    background: linear-gradient(135deg, #7C3AED, #06B6D4, #22C55E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-border {
    position: relative;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, #7C3AED, #06B6D4, #22C55E);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ---- Neon glow ---- */
.neon-glow {
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.3), 0 0 30px rgba(124, 58, 237, 0.1);
}

.neon-glow-secondary {
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3), 0 0 30px rgba(6, 182, 212, 0.1);
}

.neon-glow-success {
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.3), 0 0 30px rgba(34, 197, 94, 0.1);
}

/* ---- Buttons ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, #7C3AED, #06B6D4);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: transparent;
    color: var(--secondary);
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid var(--secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(6, 182, 212, 0.1);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.btn-success {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, #22C55E, #16A34A);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.35);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: transparent;
    color: var(--text);
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.1);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ---- Cards ---- */
.card {
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid rgba(124, 58, 237, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* ---- Inputs ---- */
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.input-field::placeholder {
    color: var(--text-muted);
}

/* ---- Badges ---- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-primary {
    background: rgba(124, 58, 237, 0.2);
    color: #A78BFA;
}

.badge-success {
    background: rgba(34, 197, 94, 0.2);
    color: #4ADE80;
}

.badge-warning {
    background: rgba(250, 204, 21, 0.2);
    color: #FDE047;
}

.badge-error {
    background: rgba(239, 68, 68, 0.2);
    color: #F87171;
}

.badge-info {
    background: rgba(6, 182, 212, 0.2);
    color: #67E8F9;
}

/* ---- Product header ---- */
.service-product-header {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.875rem;
    align-items: start;
}

.service-product-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    font-size: 1.875rem;
    line-height: 1;
    flex-shrink: 0;
}

.service-product-title {
    color: var(--text);
    font-size: clamp(1.25rem, 5.2vw, 1.875rem);
    line-height: 1.12;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.service-product-badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    max-width: 100%;
}

.service-product-badges .badge {
    min-height: 2.25rem;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.15;
    padding-inline: 0.625rem;
}

@media (min-width: 640px) {
    .service-product-header {
        grid-template-columns: 4rem minmax(0, 1fr);
        gap: 1rem;
    }

    .service-product-icon {
        width: 4rem;
        height: 4rem;
        font-size: 3rem;
        background: transparent;
    }

    .service-product-badges {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem;
    }

    .service-product-badges .badge {
        min-height: auto;
        justify-content: flex-start;
        white-space: nowrap;
    }
}

/* ---- Service platform + custom emoji icon ---- */
.service-visual {
    position: relative;
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.service-visual-logo {
    width: 1.55rem;
    height: 1.55rem;
    object-fit: contain;
}

.service-visual-fallback {
    font-size: 1.3rem;
    line-height: 1;
}

.service-visual-emoji {
    position: absolute;
    right: -0.35rem;
    bottom: -0.35rem;
    width: 1.45rem;
    height: 1.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
    line-height: 1;
}

.service-product-icon.service-visual {
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.05);
}

@media (min-width: 640px) {
    .service-product-icon.service-visual {
        width: 4rem;
        height: 4rem;
        background: rgba(255, 255, 255, 0.04);
    }

    .service-product-icon .service-visual-logo {
        width: 2.15rem;
        height: 2.15rem;
    }

    .service-product-icon .service-visual-emoji {
        width: 1.65rem;
        height: 1.65rem;
        font-size: 1rem;
    }
}

/* ---- Animações ---- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes slideOutRight {
    from { transform: translateX(0); }
    to { transform: translateX(100%); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes blob {
    0% { transform: scale(0.95) translateY(0); }
    33% { transform: scale(1.05) translateY(-5px); }
    66% { transform: scale(0.95) translateY(5px); }
    100% { transform: scale(0.95) translateY(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-blob {
    animation: blob 6s ease-in-out infinite;
}

.animation-delay-200 {
    animation-delay: 0.25s;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse 3s ease-in-out infinite;
}

/* ---- Drawer overlay ---- */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* ---- Quantity input ---- */
.qty-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.qty-btn:hover {
    background: rgba(124, 58, 237, 0.3);
}

.qty-btn:active {
    transform: scale(0.95);
}

/* ---- Step indicator ---- */
.step-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.step-item.active {
    background: linear-gradient(135deg, #7C3AED, #06B6D4);
    color: white;
}

.step-item.completed {
    background: rgba(34, 197, 94, 0.2);
    color: #4ADE80;
}

.step-item.pending {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

/* ---- Toast ---- */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: fadeInDown 0.3s ease;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.toast-success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ADE80;
}

.toast-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #F87171;
}

/* ---- Notificacoes sociais ---- */
.social-proof {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 80;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: min(390px, calc(100vw - 3rem));
    padding: 1rem;
    border: 1px solid rgba(6, 182, 212, 0.36);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.97);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.social-proof.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.social-proof-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.16);
    color: #4ade80;
    font-weight: 800;
}

.social-proof-content {
    min-width: 0;
    flex: 1;
}

.social-proof-eyebrow {
    margin: 0 0 0.2rem;
    color: #67e8f9;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.social-proof-title {
    margin: 0;
    color: #f8fafc;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
}

.social-proof-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.45rem;
    color: #94a3b8;
    font-size: 0.75rem;
}

.social-proof-close {
    flex: 0 0 auto;
    width: 1.7rem;
    height: 1.7rem;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #94a3b8;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.social-proof-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.social-proof-progress {
    width: 100%;
    height: 2px;
    margin-top: 0.7rem;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.social-proof-progress span {
    display: block;
    width: 100%;
    height: 100%;
    transform-origin: left;
    background: #22d3ee;
}

.social-proof.is-visible .social-proof-progress span {
    animation: socialProofTimer 9s linear forwards;
}

@keyframes socialProofTimer {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* ---- Status badges ---- */
.status-pending {
    background: rgba(250, 204, 21, 0.15);
    color: #FDE047;
    border: 1px solid rgba(250, 204, 21, 0.3);
}

.status-processing {
    background: rgba(6, 182, 212, 0.15);
    color: #67E8F9;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.status-progress {
    background: rgba(124, 58, 237, 0.15);
    color: #A78BFA;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.status-done {
    background: rgba(34, 197, 94, 0.15);
    color: #4ADE80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ---- Responsive helpers ---- */
@media (max-width: 640px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 641px) {
    .hide-desktop {
        display: none !important;
    }
}

/* ---- Hero background animation ---- */
.hero-bg {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.08), rgba(7, 10, 19, 0));
}

.hero-bg::before {
    content: none;
}

/* ---- Filter buttons ---- */
.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: rgba(124, 58, 237, 0.4);
    color: var(--text);
}

.filter-btn.active {
    background: linear-gradient(135deg, #7C3AED, #06B6D4);
    border-color: transparent;
    color: white;
}

/* ---- FAQ accordion ---- */
.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-question {
    padding: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: var(--text);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--text-muted);
    line-height: 1.6;
}

.faq-answer.open {
    max-height: 300px;
    padding-bottom: 1.25rem;
}

/* ---- Price input group ---- */
.input-group {
    display: flex;
    align-items: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(17, 24, 39, 0.8);
    overflow: hidden;
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem 0.5rem;
    color: var(--text);
    font-size: 1rem;
    text-align: center;
    outline: none;
}

.input-group input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-group button {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.2s;
}

.input-group button:hover {
    background: rgba(124, 58, 237, 0.15);
}

/* ---- Payment method cards ---- */
.payment-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: rgba(124, 58, 237, 0.3);
}

.payment-option.selected {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.1);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.15);
}

/* ---- Loading spinner ---- */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ---- Modal ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 50;
}

.quick-add-modal-shell {
    max-width: 460px;
}

.quick-add-modal-shell-wide {
    max-width: 640px;
}

.quick-add-modal {
    max-height: min(88dvh, 640px);
}

.quick-add-modal-body {
    min-height: 0;
    overscroll-behavior: contain;
}

.quick-add-modal .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.quick-add-modal .input-field {
    min-height: 40px;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.quick-add-modal select.input-field {
    padding-right: 2rem;
}

@media (max-height: 720px) {
    .quick-add-modal {
        max-height: calc(100dvh - 1rem);
    }

    .quick-add-modal .input-field {
        min-height: 38px;
        padding-top: 0.45rem;
        padding-bottom: 0.45rem;
    }
}

@media (max-width: 640px) {
    .quick-add-modal-shell,
    .quick-add-modal-shell-wide {
        max-width: calc(100vw - 1rem);
    }
}

/* ---- Mobile purchase flow ---- */
.mobile-bottom-action {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    z-index: 45;
    align-items: center;
    justify-content: space-between;
    gap: 0.875rem;
    padding: 0.75rem;
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 14px;
    background: rgba(15, 20, 32, 0.96);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.mobile-bottom-action-btn {
    min-width: 9.25rem;
    justify-content: center;
    white-space: nowrap;
}

@media (max-width: 640px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        font-size: 0.9375rem;
    }

    .checkout-page,
    .cart-page,
    .product-page,
    .page-transition {
        width: 100%;
        max-width: 100vw;
    }

    .checkout-page,
    .cart-page {
        padding: 1rem 0.875rem 7.75rem !important;
    }

    .product-page {
        padding: 1rem 0.875rem 1.5rem !important;
    }

    .checkout-title,
    .cart-title {
        margin-bottom: 1rem !important;
        font-size: 1.75rem !important;
        line-height: 1.12;
        text-align: left;
    }

    .checkout-layout,
    .cart-layout,
    .product-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 1rem !important;
    }

    .checkout-card,
    .order-summary-card,
    .cart-summary-card,
    .product-main-card,
    .product-summary-card,
    .card {
        max-width: 100%;
    }

    .checkout-card,
    .order-summary-card,
    .cart-summary-card,
    .product-main-card,
    .product-summary-card {
        padding: 1rem !important;
    }

    .card:hover {
        transform: none;
    }

    .checkout-sidebar,
    .cart-sidebar,
    .product-sidebar {
        gap: 1rem !important;
    }

    .checkout-sidebar > .card:last-child {
        display: none;
    }

    .checkout-steps {
        justify-content: flex-start;
        gap: 0.5rem !important;
        margin: 0 -0.875rem 1rem;
        padding: 0 0.875rem 0.35rem;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .checkout-steps::-webkit-scrollbar {
        display: none;
    }

    .checkout-steps .step-item {
        flex: 0 0 auto;
        min-width: 2.65rem;
        min-height: 2.35rem;
        justify-content: center;
        padding: 0.45rem 0.65rem;
    }

    .checkout-steps .step-item + div {
        flex: 0 0 1.25rem;
        width: 1.25rem !important;
    }

    .checkout-line-item,
    .order-summary-item {
        align-items: flex-start;
    }

    .checkout-line-item p,
    .order-summary-item p,
    .checkout-review-item span,
    .cart-item-card h3,
    .cart-item-card p {
        overflow-wrap: anywhere;
    }

    .checkout-review-item {
        gap: 0.75rem;
        align-items: flex-start;
    }

    .checkout-actions {
        gap: 0.75rem;
    }

    .checkout-actions > .btn-primary,
    .checkout-actions > .btn-success,
    .checkout-actions > .btn-outline,
    .checkout-actions > button,
    .checkout-actions > a {
        flex: 1 1 0;
        min-width: 0;
        justify-content: center;
        padding-inline: 0.875rem;
    }

    .checkout-actions > .btn-primary,
    .checkout-actions > .btn-success,
    .checkout-actions > button.btn-primary,
    .checkout-actions > button.btn-success {
        display: none !important;
    }

    .payment-option {
        align-items: flex-start;
        gap: 0.75rem !important;
        padding: 0.875rem !important;
    }

    .payment-option .badge {
        margin-left: 0 !important;
        align-self: flex-start;
        white-space: nowrap;
    }

    .checkout-payment-result {
        margin-top: 1rem !important;
        padding: 1rem !important;
    }

    .checkout-pix-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 1rem !important;
    }

    .checkout-qr-box {
        width: min(100%, 15rem);
        margin-inline: auto;
        padding: 0.75rem !important;
    }

    .checkout-pix-actions {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .checkout-pix-actions .btn-primary,
    .checkout-pix-actions .btn-outline {
        width: 100%;
        min-height: 2.75rem;
    }

    .checkout-payment-result textarea {
        min-height: 7.5rem !important;
        word-break: break-all;
    }

    .mobile-bottom-action {
        display: flex !important;
    }

    .mobile-bottom-action [x-cloak],
    .mobile-bottom-action [style*="display: none"] {
        display: none !important;
    }

    .mobile-bottom-action-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .cart-item-card {
        display: grid !important;
        grid-template-columns: 2.75rem minmax(0, 1fr);
        gap: 0.875rem !important;
        padding: 1rem !important;
    }

    .cart-item-card > .service-visual {
        grid-row: span 2;
    }

    .cart-item-side {
        grid-column: 2;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        flex-direction: row !important;
    }

    .cart-item-card .input-group {
        width: min(100%, 11.25rem) !important;
    }

    .cart-sidebar {
        margin-bottom: 0;
    }

    .cart-sidebar .cart-summary-card .btn-primary {
        display: none;
    }

    .cart-sidebar .cart-summary-card .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .product-page nav {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.25rem;
        scrollbar-width: none;
    }

    .product-page nav::-webkit-scrollbar {
        display: none;
    }

    .service-product-header {
        grid-template-columns: 3rem minmax(0, 1fr);
    }

    .service-product-title {
        font-size: 1.35rem;
        line-height: 1.14;
    }

    .product-main-card .grid.grid-cols-2 {
        gap: 0.75rem;
    }

    .product-main-card .bg-white\/5.rounded-xl.p-4.text-center {
        padding: 0.875rem !important;
    }

    .product-qty {
        max-width: 100% !important;
    }

    .product-actions {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
    }

    .product-actions .btn-primary,
    .product-actions .btn-success {
        width: 100%;
        min-height: 3rem;
    }

    .product-total-box {
        gap: 0.75rem;
    }

    .product-summary-card {
        position: static !important;
    }

    .service-card {
        padding: 1rem !important;
    }

    .service-card .service-visual {
        width: 2.5rem;
        height: 2.5rem;
    }

    .service-card-actions {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .service-card-actions .btn-primary,
    .service-card-actions .btn-outline {
        min-height: 2.55rem;
        padding-inline: 0.5rem;
        justify-content: center;
        white-space: nowrap;
    }

    .cart-drawer-panel {
        max-width: none !important;
        width: 100vw !important;
        border-left: 0 !important;
    }

    .cart-drawer-body {
        padding: 1rem !important;
    }

    .cart-drawer-item {
        align-items: flex-start !important;
    }

    .cart-drawer-footer {
        padding: 1rem !important;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom)) !important;
    }

    .quick-add-modal-shell,
    .quick-add-modal-shell-wide {
        max-width: calc(100vw - 0.75rem);
        margin-top: 0.375rem;
        margin-bottom: 0.375rem;
    }

    .quick-add-modal {
        max-height: calc(100dvh - 0.75rem);
        border-radius: 10px;
    }

    .quick-add-modal-body {
        padding: 0.875rem !important;
    }

    .quick-add-modal .grid.grid-cols-2,
    .quick-add-modal .grid.sm\:grid-cols-2,
    .quick-add-modal .grid.sm\:grid-cols-3 {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .quick-add-modal .input-group {
        max-width: 100% !important;
    }

    .quick-add-modal .btn-primary,
    .quick-add-modal .btn-outline {
        justify-content: center;
    }

    .toast-container {
        left: 0.75rem;
        right: 0.75rem;
        top: 0.75rem;
    }

    .toast {
        max-width: none;
        width: 100%;
        padding: 0.875rem 1rem;
    }

    .social-proof {
        top: calc(4.5rem + env(safe-area-inset-top));
        right: 0.625rem;
        bottom: auto;
        width: min(17.5rem, calc(100vw - 1.25rem));
        gap: 0.5rem;
        padding: 0.625rem 0.7rem;
    }

    .social-proof-icon {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.75rem;
    }

    .social-proof-eyebrow {
        display: none;
    }

    .social-proof-title {
        display: -webkit-box;
        overflow: hidden;
        font-size: 0.75rem;
        line-height: 1.25;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .social-proof-meta {
        margin-top: 0.25rem;
        font-size: 0.65rem;
    }

    .social-proof-close {
        width: 1.35rem;
        height: 1.35rem;
        font-size: 1.1rem;
    }

    .social-proof-progress {
        margin-top: 0.45rem;
    }

    .input-field,
    .btn-primary,
    .btn-outline,
    .btn-success {
        max-width: 100%;
    }

    .overflow-x-auto,
    .table-wrap {
        -webkit-overflow-scrolling: touch;
    }
}

@media (prefers-reduced-motion: reduce) {
    .social-proof,
    .social-proof-progress span {
        animation: none !important;
        transition: none !important;
    }
}

/* ---- Transitions page ---- */
.page-transition {
    animation: fadeIn 0.4s ease;
}


/* ---- Ticket status badges ---- */
.ticket-open {
    background: rgba(34, 197, 94, 0.15);
    color: #4ADE80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.ticket-waiting {
    background: rgba(250, 204, 21, 0.15);
    color: #FDE047;
    border: 1px solid rgba(250, 204, 21, 0.3);
}

.ticket-closed {
    background: rgba(107, 114, 128, 0.15);
    color: #9CA3AF;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

/* ---- Support section ---- */
.ticket-card {
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.ticket-card:hover {
    border-left-color: var(--primary);
}
