/* Reset e Estilos Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #7c3aed;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-color: #64748b;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 2rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-user-menu {
    position: relative;
}

.nav-user-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-user-toggle:hover,
.nav-user-menu.open .nav-user-toggle {
    background: rgba(255, 255, 255, 0.3);
}

.nav-user-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45);
}

.nav-user-chevron {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.nav-user-menu.open .nav-user-chevron {
    transform: rotate(180deg);
}

.nav-user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    min-width: 200px;
    background: #ffffff;
    color: var(--text-color, #111827);
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(30, 64, 175, 0.25);
    padding: 0.5rem 0;
    display: none;
    z-index: 50;
}

.nav-user-menu.open .nav-user-dropdown {
    display: block;
}

.nav-user-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.1rem;
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-user-dropdown a:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav a:hover {
    opacity: 0.8;
}

.nav .admin-link {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav .admin-link-register {
    background: rgba(255,255,255,0.3);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: 2px solid rgba(255,255,255,0.5);
}

.nav .admin-link-register:hover {
    background: white;
    color: var(--primary-color);
}

.nav-cart {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--danger-color);
    color: white;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.45rem;
}

/* Hero Section */
.hero {
    position: relative;
    background: #000 url('../images/imagens/banner.png') center/cover no-repeat;
    color: white;
    min-height: 420px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Hero content oculto para exibir somente o banner */
.hero .container,
.hero .hero-content {
    display: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
    background: var(--primary-color);
    color: #fff;
}

.btn:hover {
    background: #1d4ed8;
    color: #fff;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background: #1d4ed8;
}

.btn-secondary {
    background: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background: #5b21b6;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn.copied {
    background: var(--success-color);
    color: white;
}

.btn.copied:hover {
    background: #0f9a74;
}

.btn.copy-error {
    background: var(--danger-color);
    color: white;
}

.btn.copy-error:hover {
    background: #dc2626;
}

.btn.is-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: wait;
    opacity: 0.85;
}

.btn.is-loading .loading-spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(37, 99, 235, 0.25);
    border-top-color: currentColor;
    animation: button-spin 0.8s linear infinite;
}

@keyframes button-spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-small {
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--danger-color);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.btn-link:hover {
    color: #b91c1c;
    text-decoration: underline;
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

/* Benefits */
.benefits {
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    background: var(--light-color);
    border-radius: 10px;
    transition: transform 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.benefit-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* Products */
.products-section {
    background: var(--light-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 1;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.product-description {
    color: var(--gray-color);
    margin-bottom: 1rem;
    min-height: 60px;
}

.product-pack-info {
    margin-top: -0.25rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--success-color);
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 0.5rem;
}

.stock-info {
    color: var(--success-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.add-to-cart-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quantity-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-group label {
    font-weight: 600;
    color: var(--dark-color);
}

.quantity-group input[type="number"] {
    width: 80px;
    padding: 0.45rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}

.quantity-group input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* About */
.about {
    background: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 1rem;
}

/* Contact */
.contact {
    background: var(--light-color);
}

.contact-grid {
    max-width: 600px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--dark-color);
}
.contact-action {
    margin-top: 0.5rem;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.contact-button:hover {
    background: #1ebe5d;
    transform: translateY(-1px);
}

.contact-button:focus {
    outline: 2px solid rgba(37, 211, 102, 0.35);
    outline-offset: 2px;
}

.contact-button i {
    font-size: 1rem;
    color: inherit;
}

.contact-button--disabled {
    background: #25d366;
    color: #fff;
    cursor: not-allowed;
    pointer-events: none;
}

.contact-hint {
    display: block;
    margin-top: 0.45rem;
    color: var(--gray-color);
    font-size: 0.85rem;
}

.cart-body {
    background-color: var(--light-color);
}

.cart-page {
    background: transparent;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.cart-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    padding: 3rem 2rem;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.clear-cart-form {
    margin-left: auto;
}

.cart-table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.cart-table thead {
    background: var(--light-color);
}

.cart-table th,
.cart-table td {
    padding: 1rem;
    text-align: left;
}

.cart-table tbody tr:not(:last-child) {
    border-bottom: 1px solid #e2e8f0;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-dosage {
    color: var(--gray-color);
    font-size: 0.95rem;
    margin-top: 0.2rem;
}

.cart-quantity-form {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cart-quantity-form input[type="number"] {
    width: 90px;
    padding: 0.45rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}

.cart-quantity-form input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cart-summary-info {
    font-size: 1.1rem;
}

.cart-summary-info p {
    margin-bottom: 0.5rem;
}

.cart-summary-actions {
    display: flex;
    gap: 1rem;
}

.cart-choice {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #f8fafc;
    margin-bottom: 2rem;
}

.cart-choice-icon {
    font-size: 2rem;
    color: var(--success-color);
}

.cart-choice-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.cart-choice-content p {
    color: var(--gray-color);
    margin-bottom: 1rem;
}

.cart-choice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray-color);
}

.cart-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.cart-remove-form {
    display: inline;
}

/* Checkout */
.checkout-page {
    background: transparent;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.checkout-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    padding: 3rem 2rem;
}

.checkout-layout {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.checkout-summary,
.checkout-payment {
    flex: 1 1 320px;
    background: var(--light-color);
    border-radius: 12px;
    padding: 2rem;
}

.checkout-summary h3,
.checkout-payment h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.checkout-items {
    list-style: none;
    margin-bottom: 1.5rem;
}

.checkout-items li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.checkout-items li:last-child {
    border-bottom: none;
}

.checkout-item-info {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.payment-option:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.payment-option input[type="radio"] {
    width: 18px;
    height: 18px;
}

.no-payment-methods {
    color: var(--danger-color);
}

.checkout-hint {
    color: var(--gray-color);
    font-size: 0.95rem;
}

.pix-payment-card {
    margin-top: 2rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    padding: 1.5rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.pix-payment-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.pix-payment-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.pix-payment-header h4 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.pix-payment-header p {
    color: var(--gray-color);
}

/* Order Tracking */
.tracking-body {
    background: var(--light-color);
}

.tracking-page {
    background: transparent;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.tracking-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tracking-header {
    text-align: center;
}

.tracking-intro {
    max-width: 640px;
    margin: 0.75rem auto 0;
    color: var(--gray-color);
    font-size: 1.05rem;
}

.tracking-form {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tracking-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tracking-form .form-group {
    flex: 1 1 240px;
    min-width: 220px;
    margin-bottom: 0;
}

.tracking-form .input-with-icon {
    position: relative;
}

.tracking-form .input-with-icon i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
}

.tracking-form .input-with-icon input {
    padding-left: 2.5rem;
}

.tracking-form button {
    align-self: flex-start;
}

.tracking-results {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tracking-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.tracking-card h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.tracking-card-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tracking-card-title {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.tracking-order-code {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark-color);
}

.tracking-updated {
    color: var(--gray-color);
    font-size: 0.95rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-badge.status-pending {
    background: #fff7ed;
    color: #f97316;
}

.status-badge.status-confirmed {
    background: #e0f2fe;
    color: #0ea5e9;
}

.status-badge.status-shipped {
    background: #ede9fe;
    color: #7c3aed;
}

.status-badge.status-delivered {
    background: #dcfce7;
    color: #16a34a;
}

.status-badge.status-cancelled {
    background: #fee2e2;
    color: #dc2626;
}

.tracking-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.summary-item {
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.summary-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-color);
}

.tracking-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.timeline-step {
    display: flex;
    gap: 1rem;
    position: relative;
    padding-left: 0.5rem;
}

.timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 18px;
    top: 40px;
    bottom: -1.2rem;
    width: 2px;
    background: #e2e8f0;
}

.timeline-marker {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--gray-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(226, 232, 240, 0.45);
}

.timeline-step.completed .timeline-marker {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.timeline-step.current .timeline-marker {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.18);
}

.timeline-content h4 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
    color: var(--dark-color);
}

.timeline-content p {
    color: var(--gray-color);
    font-size: 0.95rem;
}

.tracking-alert {
    margin-top: 1.5rem;
}

.tracking-items {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow-x: auto;
}

.tracking-items-header,
.tracking-item-row {
    display: grid;
    grid-template-columns: 2fr 0.8fr 1fr 1fr;
    gap: 0.5rem;
    align-items: center;
    padding: 0.9rem 1rem;
    min-width: 520px;
}

.tracking-items-header {
    background: var(--light-color);
    font-weight: 600;
    color: var(--dark-color);
    text-transform: uppercase;
    font-size: 0.85rem;
}

.tracking-item-row:nth-child(even) {
    background: #f8fafc;
}

.tracking-address {
    white-space: pre-wrap;
    color: var(--gray-color);
    line-height: 1.6;
}

.tracking-notes {
    background: #fef9c3;
    border-color: #facc15;
}

.tracking-notes p {
    color: #854d0e;
}

@media (max-width: 768px) {
    .tracking-card,
    .tracking-form {
        padding: 1.75rem;
    }

    .tracking-items-header,
    .tracking-item-row {
        min-width: 460px;
    }
}

@media (max-width: 540px) {
    .tracking-form .form-row {
        flex-direction: column;
    }

    .tracking-form button {
        width: 100%;
    }

    .tracking-card,
    .tracking-form {
        padding: 1.5rem;
    }

    .tracking-items-header,
    .tracking-item-row {
        min-width: 420px;
    }
}

.pix-payment-body {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.pix-payment-body.pix-payment-body-form {
    flex-direction: column;
    gap: 1.25rem;
}

.pix-customer-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pix-customer-form .form-group {
    margin-bottom: 0;
}

.pix-customer-form .btn {
    align-self: flex-start;
}

.pix-qr {
    flex: 0 0 280px;
    text-align: center;
}

.pix-qr img {
    width: 260px;
    height: 260px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 0.75rem;
    background: var(--light-color);
}

.pix-qr small {
    display: block;
    margin-top: 0.75rem;
    color: var(--gray-color);
}

.pix-details {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.manual-card-card {
    margin-top: 2rem;
}

.manual-card-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.manual-card-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.manual-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.manual-card-summary {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.manual-card-summary-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.manual-card-summary-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.manual-card-summary ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.manual-card-summary li {
    color: var(--dark-color);
}

.manual-card-summary p {
    margin: 0.5rem 0 0;
    color: var(--gray-color);
}

.manual-card-tips {
    border: 1px dashed rgba(37, 99, 235, 0.35);
    padding: 1.25rem;
    border-radius: 10px;
    background: #f1f5ff;
}

.manual-card-tips h5 {
    margin: 0 0 0.75rem;
    color: var(--primary-color);
    font-size: 1.05rem;
}

.manual-card-tips ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0;
    color: var(--gray-color);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.gateway-payment-card {
    margin-top: 2rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    padding: 1.5rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.gateway-payment-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.gateway-payment-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.gateway-payment-header h4 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.gateway-payment-header p {
    color: var(--gray-color);
}

.gateway-payment-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gateway-security {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.gateway-credential {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.gateway-credential code {
    background: #1e293b;
    color: #f8fafc;
    border-radius: 6px;
    padding: 0.35rem 0.55rem;
    display: inline-block;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.gateway-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gateway-mode-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 0.95rem;
}

.gateway-mode-selector span {
    font-weight: 600;
    color: var(--dark-color);
}

.gateway-mode-selector .mode-option {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
    color: var(--primary-color);
}

.gateway-mode-selector input[type="radio"] {
    accent-color: var(--primary-color);
}

.gateway-mode-single {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    font-weight: 600;
    color: var(--dark-color);
}

.gateway-mode-single i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.gateway-mode-single .gateway-mode-note {
    display: block;
    font-weight: 500;
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-top: 0.15rem;
}

.gateway-mode-summary {
    align-items: flex-start;
}

.gateway-section-hidden {
    display: none !important;
}

.gateway-pix-section,
.gateway-card-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gateway-pix-section p {
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.gateway-pix-tips {
    padding-left: 1.25rem;
    color: var(--gray-color);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    list-style: disc;
}

.gateway-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.gateway-form button {
    align-self: flex-start;
}

.field-error {
    color: var(--danger-color);
    font-size: 0.85rem;
}

.pix-details p {
    color: var(--dark-color);
}

.pix-instructions {
    color: var(--gray-color);
    line-height: 1.5;
}

.gateway-pix-qr {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.gateway-pix-qr img {
    width: 200px;
    height: 200px;
    max-width: 100%;
    object-fit: contain;
}

.gateway-pix-form-grid {
    margin: 0 0 1rem;
}

.gateway-pix-result {
    position: relative;
}

.gateway-pix-loader {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px dashed rgba(37, 99, 235, 0.35);
    color: var(--primary-color);
    font-weight: 600;
}

.gateway-pix-spinner {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 3px solid rgba(37, 99, 235, 0.2);
    border-top-color: var(--primary-color);
    animation: button-spin 0.8s linear infinite;
}

.gateway-pix-result.is-loading .gateway-pix-loader {
    display: flex;
}

.gateway-pix-result.is-loading [data-gateway-pix-content] {
    display: none;
}

.gateway-pix-hero {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.gateway-pix-hero img {
    width: 160px;
    height: auto;
}

.gateway-pix-note {
    margin: 1rem 0 0.5rem;
    color: var(--dark-color);
    text-align: center;
}

.gateway-pix-result .gateway-pix-tips {
    margin-top: 0.5rem;
}

.gateway-pix-bottom-intro {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gateway-pix-bottom-intro .gateway-payment-header {
    margin: 0;
}

.gateway-form input.input-error {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12);
}

.pix-code-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pix-code-wrapper label {
    font-weight: 600;
    color: var(--dark-color);
}

.pix-code-box {
    max-height: 180px;
    overflow-y: auto;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #f8fafc;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.4;
    word-break: break-all;
}

.pix-order-summary {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px dashed rgba(37, 99, 235, 0.45);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--dark-color);
}

.pix-order-summary h4 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--primary-color);
}

.pix-order-summary p {
    margin: 0;
    color: var(--gray-color);
}

.pix-order-summary p strong {
    color: var(--dark-color);
}

.pix-order-summary a {
    color: var(--primary-color);
    font-weight: 600;
}

.pix-error {
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .cart-container {
        padding: 2rem 1.5rem;
    }

    .cart-table {
        min-width: unset;
    }

    .cart-quantity-form {
        flex-direction: column;
        align-items: flex-start;
    }

    .quantity-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-choice {
        flex-direction: column;
        text-align: center;
    }

    .cart-choice-icon {
        font-size: 2.5rem;
    }

    .cart-choice-actions {
        justify-content: center;
    }

    .checkout-container {
        padding: 2rem 1.5rem;
    }

    .checkout-layout {
        flex-direction: column;
    }

    .checkout-summary,
    .checkout-payment {
        padding: 1.5rem;
    }

    .pix-payment-body {
        flex-direction: column;
    }

    .pix-qr {
        width: 100%;
    }

    .pix-qr img {
        width: 100%;
        height: auto;
    }

    .gateway-payment-card {
        padding: 1.25rem;
    }

    .gateway-payment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer .company-info {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.85;
}

.security-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 1.4rem auto 0;
    max-width: 560px;
}


.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.25);
    color: #f8fafc;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    min-width: 220px;
}

.security-badge:visited {
    color: #f8fafc;
}

.security-badge:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.8);
    background: rgba(37, 99, 235, 0.3);
}

.security-badge i {
    font-size: 1.55rem;
}

.security-badge span {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.security-badge span strong {
    font-size: 0.95rem;
    font-weight: 700;
}

.security-badge span small {
    font-size: 0.8rem;
    opacity: 0.75;
}

.security-badge.badge-google {
    border-color: rgba(52, 168, 83, 0.55);
}

.security-badge.badge-google i {
    color: #34a853;
}

.security-badge.badge-lock {
    border-color: rgba(96, 165, 250, 0.55);
}

.security-badge.badge-lock i {
    color: #60a5fa;
}

.disclaimer {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

@media (max-width: 600px) {
    .security-badge {
        width: 100%;
        min-width: 0;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    color: #aaa;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.address-group {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #f8fafc;
}

.address-group legend {
    padding: 0 0.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-left: -0.5rem;
}

.address-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.address-field {
    flex: 1 1 180px;
    min-width: 180px;
}

.address-field-wide {
    flex: 2 1 260px;
    min-width: 240px;
}

.cep-status {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: var(--gray-color);
}

.cep-status.cep-success {
    color: var(--success-color);
}

.cep-status.cep-error {
    color: var(--danger-color);
}

.card-payment {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: white;
}

.card-payment legend {
    padding: 0 0.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.card-field {
    flex: 1 1 200px;
    min-width: 200px;
}

.card-help {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--gray-color);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
    border-color: var(--danger-color);
}

.form-group.has-error input:focus,
.form-group.has-error textarea:focus,
.form-group.has-error select:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.selected-product {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
}

.selected-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-color);
}

.total-price {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.total-price span {
    color: var(--success-color);
    font-size: 1.5rem;
}

/* Account page */
.account-page {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.08) 0%, rgba(255, 255, 255, 0.6) 100%);
    padding: 4rem 0;
}

.account-container {
    max-width: 760px;
    margin: 0 auto;
}

.account-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(30, 64, 175, 0.15);
    padding: 2.75rem;
}

.account-card h2 {
    font-size: 2rem;
    margin-bottom: 0.35rem;
    color: var(--dark-color);
}

.account-subtitle {
    color: var(--gray-color);
    margin-bottom: 2rem;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.account-actions .btn-outline {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.account-help {
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.account-help a {
    color: var(--primary-color);
    font-weight: 600;
}

.account-divider {
    border: none;
    border-top: 1px dashed rgba(37, 99, 235, 0.2);
    margin: 2.25rem 0;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.alert-info {
    background: #dbeafe;
    color: #1e3a8a;
    border-left: 4px solid var(--primary-color);
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid var(--warning-color);
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

.pix-info {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    background: #eff6ff;
    border-left: 4px solid var(--primary-color);
    color: var(--dark-color);
    font-size: 0.95rem;
}

.pix-info p {
    margin: 0.35rem 0;
    color: var(--gray-color);
}

.pix-info-key {
    font-weight: 600;
    color: var(--dark-color);
    word-break: break-word;
}

.pix-alert {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    background: #ecfdf5;
    border-left: 4px solid var(--success-color);
    color: var(--dark-color);
    font-size: 0.95rem;
}

.pix-alert span {
    display: block;
    margin-top: 0.5rem;
    word-break: break-word;
}

.pix-alert p {
    margin: 0.75rem 0 0;
    color: var(--gray-color);
}

.flash-container {
    max-width: 1200px;
    margin: 1rem auto 0;
    padding: 0 20px;
}

.alert i {
    margin-right: 0.5rem;
}

.auth-body {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: white;
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2);
    padding: 2.5rem 2rem;
    text-align: center;
}

.auth-header i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.auth-header h1 {
    font-size: 1.9rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.auth-header p {
    color: var(--gray-color);
    margin-bottom: 2rem;
}

.auth-form .form-group {
    text-align: left;
}

.auth-form label {
    font-weight: 600;
}

.auth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.auth-grid .form-group {
    margin-bottom: 0;
}

.form-group.full-span {
    grid-column: 1 / -1;
}

.auth-footer {
    margin-top: 1.5rem;
    color: var(--gray-color);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-footer-small {
    font-size: 0.9rem;
}

.auth-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--light-color);
    padding: 0.4rem 1rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.auth-link:hover {
    background: var(--primary-color);
    color: white;
}

.optional {
    font-size: 0.85rem;
    color: var(--gray-color);
}

/* Responsive */
@media (max-width: 992px) {
    section {
        padding: 3rem 0;
    }

    .hero {
        min-height: 360px;
    }

    .products-grid {
        gap: 1.5rem;
    }

    .product-card {
        padding: 1.5rem;
    }

    .benefit-card {
        padding: 1.8rem;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .products-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .nav {
        gap: 0.75rem;
    }

    .nav a {
        font-size: 0.95rem;
    }

    .nav-user-toggle {
        font-size: 0.95rem;
    }

    .hero {
        min-height: 280px;
        background-position: top center;
    }

    .product-card {
        padding: 1.25rem;
    }

    .product-image {
        height: 180px;
    }

    .benefit-card {
        padding: 1.5rem;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .address-group {
        padding: 1.25rem;
    }

    .address-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .address-field,
    .address-field-wide {
        min-width: 100%;
    }

    .card-grid {
        flex-direction: column;
    }

    .card-field {
        min-width: 100%;
    }

    .contact-item i {
        font-size: 1.8rem;
    }

    .modal-content {
        width: 95%;
        margin: 12% auto;
        padding: 1.5rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .account-card {
        padding: 2.25rem 1.75rem;
    }

    .account-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.75rem 0;
    }

    .logo i {
        font-size: 1.6rem;
    }

    .logo h1 {
        font-size: 1rem;
    }

    .nav {
        gap: 0.5rem;
    }

    .nav a {
        font-size: 0.85rem;
    }

    .nav-user-toggle {
        font-size: 0.85rem;
    }

    section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .product-card h3 {
        font-size: 1.3rem;
    }

    .btn {
        width: 100%;
    }

    .modal-content {
        padding: 1.25rem;
        margin: 15% auto;
    }

    .auth-card {
        padding: 1.75rem 1.25rem;
    }

    .account-card {
        padding: 1.75rem 1.5rem;
    }

    .account-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .account-actions .btn {
        width: 100%;
    }
}
