/* ELO8.NET — Marketplace Artesanal */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #C64200;
    --primary-dark: #963200;
    --primary-light: #E8722A;
    --accent: #F3A615;
    --accent-dark: #E85A0C;
    --success: #27AE60;
    --warning: #F39C12;
    --danger: #E74C3C;
    --star: #F1C40F;
    --text: #211C16;
    --text-light: #7F8C8D;
    --text-muted: #BDC3C7;
    --bg: #FCF9F2;
    --white: #FFFFFF;
    --border: #E8EAED;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --container: 1200px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* HEADER */
.header {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    height: 68px;
    gap: 24px;
}
.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.logo img {
    display: block;
    height: 40px;
    width: auto;
}

.search-box {
    flex: 1;
    max-width: 560px;
    position: relative;
}
.search-box input {
    width: 100%;
    padding: 12px 48px 12px 18px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    background: var(--bg);
}
.search-box input:focus { border-color: var(--primary); background: var(--white); }
.search-box button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 0;
    cursor: pointer;
    font-size: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F3A615' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
}
.search-box button:hover { opacity: 0.75; }
.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-shrink: 0;
}
.header-actions a {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.header-actions a:hover { color: var(--primary); }
.btn-sell {
    background: var(--accent) !important;
    color: white !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px !important;
    transition: background 0.2s;
}
.btn-sell:hover { background: var(--accent-dark) !important; }

/* CAROUSEL */
.carousel {
    position: relative;
    width: 100%;
    background: #EDE8DE;
    aspect-ratio: 1368/380;
    overflow: hidden;
}
.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    cursor: grab;
    user-select: none;
}
.carousel-track.dragging {
    transition: none;
    cursor: grabbing;
}
.carousel-slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
}
.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.25);
    z-index: 10;
}
.carousel-progress-bar {
    height: 100%;
    background: #F3A615;
    width: 0%;
}

/* CATEGORIAS */
.categories-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}
.categories-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.categories-grid::-webkit-scrollbar { display: none; }
.cat-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg);
    border-radius: 50px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
}
.cat-chip:hover { background: var(--primary); color: white; }
.cat-chip.active { background: var(--primary); color: white; }

/* SECTION */
.section { padding: 40px 0; }
.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}
.section-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
}
.badge-immediate {
    display: inline-block;
    margin-top: 8px;
    background: var(--accent);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
}
.badge-deadline {
    display: inline-block;
    margin-top: 8px;
    background: rgba(198,66,0,0.1);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
}

/* PRODUCT GRID */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}

/* PRODUCT CARD */
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.product-card .img-wrap {
    position: relative;
    padding-top: 100%; /* square */
    overflow: hidden;
    background: #EDE8DE;
}
.product-card .img-wrap img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.product-card:hover .img-wrap img { transform: scale(1.05); }
.product-card .info {
    padding: 14px 16px 18px;
}
.product-card .info .title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
    min-height: 39px;
}
.product-card .info .price {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}
.product-card .info .price small {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
}
.product-card .info .store-name {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
}
.product-card .info .rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 13px;
    color: var(--star);
}
.product-card .info .rating span { color: var(--text-muted); }

/* PRODUCT PAGE */
.product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px 0;
}
.product-gallery img {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 12px;
}
.product-thumbs {
    display: flex;
    gap: 8px;
}
.product-thumbs img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.product-thumbs img:hover,
.product-thumbs img.active { border-color: var(--primary); }
.product-details h1 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}
.product-details .price-big {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
}
.product-details .meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text-light);
}
.product-details .meta strong { color: var(--text); }
.btn-buy {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 16px 48px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
    width: 100%;
}
.btn-buy:hover { background: var(--accent-dark); color: white; }
.btn-contact {
    display: inline-block;
    background: transparent;
    color: var(--primary);
    padding: 14px 48px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid var(--primary);
    cursor: pointer;
    margin-top: 12px;
    width: 100%;
    text-align: center;
    transition: all 0.2s;
}
.btn-contact:hover { background: var(--primary); color: white; }
.store-box {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 24px;
}
.store-box h3 { font-size: 16px; margin-bottom: 6px; }
.store-box .loc { font-size: 13px; color: var(--text-light); }
.description-box {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.description-box h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}
.description-box p {
    color: var(--text-light);
    line-height: 1.8;
}

/* FOOTER */
.footer {
    background: #F0E8D8;
    color: var(--text-light);
    padding: 48px 0 24px;
    margin-top: 60px;
    border-top: 1px solid #DDD0B8;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 40px;
    margin-bottom: 32px;
}
.footer h4 {
    color: var(--text);
    font-size: 15px;
    margin-bottom: 16px;
}
.footer p, .footer a { font-size: 14px; color: var(--text-light); line-height: 2; }
.footer a:hover { color: var(--primary); }
.footer-bottom {
    border-top: 1px solid #DDD0B8;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .header-inner { gap: 12px; }
    .hero h1 { font-size: 24px; }
    .hero p { font-size: 15px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-page { grid-template-columns: 1fr; gap: 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .header-actions .hide-mobile { display: none; }
}
@media (max-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-card .info { padding: 10px 12px 14px; }
    .product-card .info .price { font-size: 17px; }
}

/* ============================================================
   AUTH PAGES — PROFISSIONAL
   ============================================================ */

.auth-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 48px 20px 60px;
    min-height: 65vh;
    background: var(--bg);
}

.auth-card {
    background: var(--white);
    border-radius: 16px;
    padding: 44px 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
}

.auth-card-wide {
    max-width: 640px;
}

.auth-card h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
    letter-spacing: -0.5px;
}

.auth-subtitle {
    color: var(--text-light);
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.6;
}

.form-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 32px 0 18px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.auth-form .form-group {
    margin-bottom: 20px;
    flex: 1;
}

.auth-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text);
    letter-spacing: 0.2px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="tel"],
.auth-form input[type="url"],
.auth-form input[type="password"],
.auth-form input[type="number"],
.auth-form select,
.auth-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(198,66,0,0.1);
}

.auth-form input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.auth-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%237F8C8D'%3E%3Cpath d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-row {
    display: flex;
    gap: 14px;
}

.form-help-box {
    background: linear-gradient(135deg, rgba(198,66,0,0.06) 0%, rgba(198,66,0,0.02) 100%);
    border-left: 3px solid var(--primary);
    padding: 16px 20px;
    border-radius: 0 10px 10px 0;
    margin: 24px 0;
    font-size: 14px;
}

.form-help-box strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
    font-size: 14px;
}

.form-help-box p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.5;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}

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

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(243,166,21,0.3);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-large {
    padding: 16px 28px;
    font-size: 17px;
}

.auth-links {
    margin-top: 28px;
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
}

.auth-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.alert-error {
    background: #FFF5F5;
    color: var(--danger);
    border: 1px solid rgba(231,76,60,0.2);
}

.alert-success {
    background: #F0FFF4;
    color: var(--success);
    border: 1px solid rgba(39,174,96,0.2);
}

.alert-info {
    background: #FFF3E8;
    color: var(--primary);
    border: 1px solid rgba(198,66,0,0.2);
}

.alert-warning {
    background: #FFFBEB;
    color: #92600A;
    border: 1px solid rgba(243,156,18,0.2);
}

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 400 !important;
    font-size: 14px;
    color: var(--text-light);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .auth-card {
        padding: 28px 24px;
        border-radius: 12px;
    }
    .auth-card h1 {
        font-size: 20px;
    }
}

/* ============================================================
   DASHBOARD + VENDEDOR
   ============================================================ */

.dashboard {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.dash-welcome h1 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.dash-welcome p {
    color: #666;
    margin-bottom: 24px;
}

.dash-checklist {
    background: #f8f4f0;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.dash-checklist h3 {
    margin: 0 0 12px 0;
    font-size: 1rem;
    color: #e85d00;
}

.dash-checklist ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dash-checklist li {
    padding: 6px 0;
    font-size: 0.95rem;
}

.dash-checklist li.done {
    color: #090;
    text-decoration: line-through;
}

.dash-checklist .check {
    font-family: monospace;
    margin-right: 8px;
}

.dash-action {
    text-align: center;
    margin: 28px 0;
}

.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #e85d00;
}

.stat-label {
    font-size: 0.8rem;
    color: #888;
    margin-top: 4px;
}

.dash-share {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.dash-share h3 {
    margin: 0 0 12px 0;
    font-size: 1rem;
}

.share-box {
    display: flex;
    gap: 8px;
}

.share-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #f9f9f9;
}

.share-tip {
    font-size: 0.85rem;
    color: #888;
    margin-top: 8px;
}

.dash-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.dash-menu-item {
    display: block;
    background: #fff;
    border-radius: 10px;
    padding: 18px 20px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}

.dash-menu-item:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}

.dash-menu-item strong {
    display: block;
    margin-bottom: 4px;
}

.dash-menu-item span {
    font-size: 0.85rem;
    color: #888;
}

/* SELLER PAGES */

.seller-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

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

.page-header h1 {
    font-size: 1.4rem;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.empty-state h2 {
    color: #333;
    margin-bottom: 8px;
}

.empty-state p {
    margin-bottom: 24px;
}

/* PRODUCT TABLE */

.product-table-wrap {
    overflow-x: auto;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
}

.product-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #888;
    border-bottom: 2px solid #eee;
}

.product-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.pt-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.no-thumb {
    width: 60px;
    height: 60px;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #aaa;
}

.pt-actions {
    white-space: nowrap;
}

.btn-sm {
    display: inline-block;
    padding: 5px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    color: #555;
    background: #f0f0f0;
    margin-right: 4px;
}

.btn-sm:hover {
    background: #e0e0e0;
}

.btn-danger {
    color: #c00;
}

.btn-danger:hover {
    background: #fee;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background: #e6f9e6;
    color: #090;
}

.badge-muted {
    background: #f0f0f0;
    color: #888;
}

.text-muted {
    color: #aaa;
}

/* PRODUCT FORM */

.product-form {
    max-width: 700px;
}

.product-form .form-group {
    margin-bottom: 18px;
}

.product-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #333;
}

.product-form input[type="text"],
.product-form input[type="number"],
.product-form input[type="file"],
.product-form select,
.product-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.product-form textarea {
    resize: vertical;
    font-family: inherit;
}

.product-form input:focus,
.product-form select:focus,
.product-form textarea:focus {
    border-color: #e85d00;
    outline: none;
    box-shadow: 0 0 0 3px rgba(232,93,0,0.1);
}

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal !important;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

.current-photos {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.photo-thumb {
    text-align: center;
}

.photo-thumb img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #eee;
}

.photo-delete {
    display: block;
    font-size: 0.75rem;
    color: #c00;
    margin-top: 4px;
    cursor: pointer;
}

.photo-preview {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.preview-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ddd;
}

@media (max-width: 600px) {
    .dash-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .dash-menu {
        grid-template-columns: 1fr;
    }
    .share-box {
        flex-direction: column;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}


/* ============================================================
   PEDIDOS + LOJA CONFIG
   ============================================================ */

.order-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    color: #666;
    background: #f0f0f0;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: #e0e0e0;
}

.filter-btn.active {
    background: #e85d00;
    color: #fff;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.order-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    padding: 16px 20px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}

.order-card:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}

.order-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.order-code {
    font-family: monospace;
    font-size: 0.85rem;
    color: #888;
}

.order-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-card-right {
    text-align: right;
}

.order-total {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a1a;
}

.badge-large {
    font-size: 0.9rem;
    padding: 6px 16px;
}

.badge-info {
    background: #FFF3E0;
    color: #C64200;
}

/* ORDER DETAIL */

.order-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.od-section {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.od-section h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #888;
    margin: 0 0 12px 0;
}

/* LOJA CONFIG */

.config-preview-box {
    background: #f8f4f0;
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.config-preview-box a {
    color: #e85d00;
    font-weight: 500;
    margin-left: 8px;
}

.current-logo img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #eee;
    margin-bottom: 8px;
}

.current-banner img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    border: 2px solid #eee;
    margin-bottom: 8px;
}


/* ============================================================
   CARRINHO + CHECKOUT
   ============================================================ */

.cart-page, .checkout-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 0;
}

.cart-page h1, .checkout-page h1 {
    font-size: 1.4rem;
    margin-bottom: 24px;
}

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

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    position: relative;
}

.cart-item-img img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h3 {
    font-size: 1rem;
    margin: 0 0 4px 0;
}

.cart-item-info h3 a {
    color: #333;
    text-decoration: none;
}

.cart-price {
    font-weight: 600;
    color: #e85d00;
    margin: 4px 0 0 0;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #f0f0f0;
}

.qty-val {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-item-subtotal {
    font-weight: 700;
    font-size: 1.05rem;
    min-width: 90px;
    text-align: right;
}

.cart-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #ccc;
    cursor: pointer;
}

.cart-remove:hover {
    color: #c00;
}

.cart-summary, .checkout-summary {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    position: sticky;
    top: 20px;
}

.cart-summary h3, .checkout-summary h2 {
    margin: 0 0 16px 0;
    font-size: 1.1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.95rem;
}

.summary-total {
    font-weight: 700;
    font-size: 1.15rem;
    padding: 12px 0;
}

/* CHECKOUT */

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

.checkout-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.checkout-section h2 {
    font-size: 1.1rem;
    margin: 0 0 16px 0;
}

.checkout-section textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
    resize: vertical;
}

.address-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.address-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.address-option:has(input:checked) {
    border-color: #e85d00;
    background: #fef6f0;
}

.address-option input[type="radio"] {
    margin-top: 4px;
}

.address-option p {
    margin: 2px 0;
    font-size: 0.9rem;
    color: #666;
}

.summary-store {
    margin-bottom: 12px;
}

.summary-store h4 {
    font-size: 0.85rem;
    color: #e85d00;
    margin: 0 0 8px 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 3px 0;
    color: #555;
}

.summary-store-total {
    font-weight: 600;
    color: #333;
    border-top: 1px solid #eee;
    margin-top: 4px;
    padding-top: 6px;
}

.payment-info {
    background: #f0f8f0;
    border-radius: 8px;
    padding: 14px;
    margin: 16px 0;
}

.payment-info h4 {
    margin: 0 0 4px 0;
    font-size: 0.9rem;
    color: #060;
}

.payment-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.new-address .form-group {
    margin-bottom: 12px;
}

.new-address label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: #333;
}

.new-address input,
.new-address select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    .cart-item {
        flex-wrap: wrap;
    }
    .cart-item-subtotal {
        min-width: auto;
    }
}


/* ============================================================
   PAGAMENTO PIX
   ============================================================ */

.payment-page {
    max-width: 520px;
    margin: 0 auto;
    padding: 20px 0;
}

.payment-page h1 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
}

.payment-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    text-align: center;
}

.payment-order-info {
    margin-bottom: 24px;
}

.payment-amount {
    font-size: 1.6rem;
    color: #e85d00;
}

.pix-qr {
    margin: 20px 0;
}

.pix-qr img {
    width: 240px;
    height: 240px;
    border: 2px solid #eee;
    border-radius: 12px;
}

.pix-copy {
    margin: 20px 0;
    text-align: left;
}

.pix-copy label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.pix-code-box {
    display: flex;
    gap: 8px;
}

.pix-code-box input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.8rem;
    background: #f9f9f9;
    font-family: monospace;
}

.pix-instructions {
    text-align: left;
    margin: 24px 0;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 10px;
}

.pix-instructions h3 {
    font-size: 0.95rem;
    margin: 0 0 10px 0;
}

.pix-instructions ol {
    margin: 0;
    padding-left: 20px;
}

.pix-instructions li {
    padding: 4px 0;
    font-size: 0.9rem;
}

.pix-status {
    padding: 16px;
    background: #fffbe6;
    border-radius: 8px;
    margin: 16px 0;
    font-size: 0.9rem;
}

.payment-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.payment-links a {
    color: #e85d00;
    text-decoration: none;
    font-size: 0.9rem;
}

.payment-links a:hover {
    text-decoration: underline;
}


/* ============================================================
   INBOX + CHAT
   ============================================================ */

.inbox-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 0;
}

.conv-list {
    display: flex;
    flex-direction: column;
}

.conv-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.conv-item:hover {
    background: #fafafa;
}

.conv-unread {
    background: #fef6f0;
}

.conv-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e85d00;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.conv-info {
    flex: 1;
    min-width: 0;
}

.conv-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.conv-time {
    font-size: 0.8rem;
    color: #aaa;
    flex-shrink: 0;
}

.conv-product {
    font-size: 0.8rem;
    color: #e85d00;
    margin: 0;
}

.conv-preview {
    font-size: 0.9rem;
    color: #888;
    margin: 4px 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conv-badge {
    background: #e85d00;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    flex-shrink: 0;
}

/* CHAT PAGE */

.chat-page {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    min-height: 400px;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid #eee;
    border-radius: 12px 12px 0 0;
}

.chat-back {
    font-size: 1.3rem;
    text-decoration: none;
    color: #666;
}

.chat-header-info strong {
    display: block;
}

.chat-product-link {
    font-size: 0.8rem;
    color: #e85d00;
    text-decoration: none;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px;
    background: #f8f8f8;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-empty {
    text-align: center;
    color: #aaa;
    padding: 40px 0;
}

.chat-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.45;
    position: relative;
}

.chat-mine {
    align-self: flex-end;
    background: #e85d00;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-theirs {
    align-self: flex-start;
    background: #fff;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.chat-bubble-time {
    display: block;
    font-size: 0.7rem;
    margin-top: 4px;
    opacity: 0.7;
}

.chat-mine .chat-bubble-time {
    text-align: right;
}

.chat-input-bar {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid #eee;
    border-radius: 0 0 12px 12px;
}

.chat-input-bar textarea {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: none;
    max-height: 100px;
    box-sizing: border-box;
}

.chat-input-bar textarea:focus {
    border-color: #e85d00;
    outline: none;
}

.chat-input-bar .btn {
    border-radius: 20px;
    padding: 10px 20px;
    align-self: flex-end;
}

@media (max-width: 600px) {
    .chat-page {
        height: calc(100vh - 160px);
    }
    .chat-bubble {
        max-width: 85%;
    }
}


/* ============================================================
   LOJA PUBLICA + COMPRADOR
   ============================================================ */

.buyer-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.buyer-page h1 {
    font-size: 1.4rem;
    margin-bottom: 24px;
}

.profile-sections {
    max-width: 500px;
}

/* ORDER TIMELINE */

.order-timeline {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    margin-bottom: 20px;
    position: relative;
}

.order-timeline::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: #e0e0e0;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    color: #aaa;
    position: relative;
    z-index: 1;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e0e0e0;
    margin-bottom: 6px;
}

.timeline-step.active .timeline-dot {
    background: #e85d00;
}

.timeline-step.active {
    color: #333;
    font-weight: 500;
}

.timeline-step.cancelled .timeline-dot {
    background: #c00;
}

.order-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.oir-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.oir-info {
    flex: 1;
}

.oir-info a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.oir-price {
    font-weight: 600;
}

.oir-total {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 1.1rem;
}

/* LOJA PUBLICA */

.store-public {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 0 40px 0;
}

.store-banner {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 0 0 16px 16px;
    margin-bottom: 20px;
}

.store-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 0 16px;
    margin-bottom: 20px;
}

.store-info-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.store-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.store-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e85d00;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
}

.store-info h1 {
    font-size: 1.4rem;
    margin: 0;
}

.store-location {
    color: #888;
    font-size: 0.9rem;
    margin: 2px 0;
}

.store-rating {
    color: #e85d00;
    font-size: 0.85rem;
    margin: 2px 0;
}

.store-products-count {
    font-size: 0.85rem;
    color: #aaa;
    margin: 2px 0;
}

.store-info-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.store-social {
    font-size: 0.85rem;
    color: #666;
    text-decoration: none;
}

.store-social:hover {
    color: #e85d00;
}

.store-description {
    padding: 0 16px;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.store-shipping {
    padding: 12px 16px;
    background: #f8f8f8;
    border-radius: 8px;
    margin: 0 16px 20px;
    font-size: 0.9rem;
    color: #666;
}

.store-section-title {
    font-size: 1.1rem;
    padding: 0 16px;
    margin: 24px 0 16px;
}

/* PRODUCT GRID */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 0 16px;
}

.product-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.product-card-img {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-thumb-card {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 0.85rem;
}

.fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    cursor: pointer;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fav-btn.fav-active,
.fav-btn:hover {
    color: #e85d00;
}

.product-card-info {
    padding: 12px;
}

.product-card-info h3 {
    font-size: 0.9rem;
    margin: 0 0 6px 0;
    font-weight: 500;
}

.product-card-price {
    font-weight: 700;
    color: #e85d00;
    font-size: 1.05rem;
    margin: 0;
}

.product-card-days {
    font-size: 0.8rem;
    color: #999;
    margin: 4px 0 0;
}

@media (max-width: 600px) {
    .store-info {
        flex-direction: column;
    }
    .store-info-right {
        align-items: flex-start;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .order-timeline {
        font-size: 0.65rem;
    }
}


/* ============================================================
   ADMIN + PAGINAS ESTATICAS
   ============================================================ */

.admin-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 0;
}

.admin-page h1 {
    font-size: 1.4rem;
    margin-bottom: 24px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.admin-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.admin-filters {
    margin-bottom: 20px;
}

.inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.inline-form input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    min-width: 250px;
}

.inline-form select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* STATIC PAGES */

.static-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 0;
}

.static-page h1 {
    font-size: 1.6rem;
    margin-bottom: 24px;
}

.static-content {
    line-height: 1.7;
    color: #444;
}

.static-content h2 {
    font-size: 1.2rem;
    margin: 28px 0 12px 0;
    color: #1a1a1a;
}

.static-content p {
    margin-bottom: 14px;
}

.static-intro {
    font-size: 1.05rem;
    color: #666;
    margin-bottom: 28px;
}

.static-cta {
    text-align: center;
    padding: 32px 0;
}

.static-cta p {
    margin-top: 12px;
    color: #888;
    font-size: 0.9rem;
}

.step-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e85d00;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-card h3 {
    margin: 0 0 6px 0;
    font-size: 1rem;
}

.step-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.btn-success {
    background: #090 !important;
}

@media (max-width: 600px) {
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .admin-menu {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   KIT VIRAL + DIVULGACAO
   ============================================================ */

.divulgar-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 0;
}

.divulgar-page h1 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.divulgar-intro {
    color: #666;
    margin-bottom: 28px;
}

.migration-counter {
    text-align: center;
    background: linear-gradient(135deg, #fff5ee, #fff);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 28px;
    border: 2px solid #fde8d8;
}

.migration-counter-large {
    padding: 48px;
    margin-bottom: 32px;
}

.counter-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #e85d00;
    line-height: 1;
}

.counter-label {
    font-size: 1.1rem;
    color: #333;
    margin-top: 8px;
    font-weight: 500;
}

.counter-sub {
    font-size: 0.9rem;
    color: #888;
    margin-top: 4px;
}

.divulgar-link-box {
    margin-bottom: 24px;
}

.divulgar-link-box label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.share-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.2s;
}

.share-btn:hover {
    opacity: 0.85;
}

.share-whatsapp { background: #25d366; }
.share-facebook { background: #1877f2; }
.share-twitter { background: #1da1f2; }

.divulgar-section {
    font-size: 1.1rem;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.texto-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

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

.texto-header h3 {
    font-size: 0.95rem;
    margin: 0;
}

.texto-card textarea {
    width: 100%;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.9rem;
    font-family: inherit;
    background: #fafafa;
    resize: none;
    color: #333;
    line-height: 1.5;
    box-sizing: border-box;
}

.divulgar-tips {
    margin-top: 40px;
}

.divulgar-tips h2 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.tip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.tip-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.tip-card h4 {
    font-size: 0.9rem;
    margin: 0 0 6px 0;
    color: #e85d00;
}

.tip-card p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

/* MIGRACAO PAGE */

.migracao-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.migration-hero {
    text-align: center;
    padding: 20px 0;
}

.migration-hero h1 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.migration-hero p {
    color: #666;
    margin-bottom: 24px;
}

.lojas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    padding: 0 16px;
}

.loja-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}

.loja-card:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}

.loja-card strong {
    font-size: 0.95rem;
}

.loja-meta {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 4px;
}

@media (max-width: 600px) {
    .share-buttons {
        flex-direction: column;
    }
    .tip-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   MIGRACAO ELO7
   ============================================================ */

.migracao-vendedor-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 0;
}

.migracao-vendedor-page h1 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.page-intro {
    color: #666;
    margin-bottom: 28px;
}

.migration-status-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

.migration-status-card h2 {
    font-size: 1.1rem;
    margin: 0 0 16px 0;
}

.ms-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.95rem;
}

.ms-row span:first-child {
    color: #888;
}

.migration-tips-box {
    background: #f8f4f0;
    border-left: 3px solid #e85d00;
    border-radius: 0 10px 10px 0;
    padding: 18px 24px;
    margin-bottom: 28px;
}

.migration-tips-box h3 {
    font-size: 0.95rem;
    margin: 0 0 10px 0;
}

.migration-tips-box ul {
    margin: 0;
    padding-left: 20px;
}

.migration-tips-box li {
    padding: 4px 0;
    font-size: 0.9rem;
    color: #555;
}

.migration-tips-box a {
    color: #e85d00;
}

.migration-guide {
    margin-bottom: 32px;
}

.migration-guide h2 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.migration-guide > p {
    color: #666;
    margin-bottom: 20px;
}

.guide-steps {
    margin-bottom: 28px;
}

.migration-form-box {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 32px;
}

.migration-form-box h2 {
    font-size: 1.1rem;
    margin: 0 0 20px 0;
}

.import-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.import-section h2 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.import-section > p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.upload-lote-form {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* ADMIN MIGRACOES */

.migration-admin-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

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

.mac-header strong {
    font-size: 1.05rem;
}

.mac-header span.text-muted {
    display: block;
    font-size: 0.85rem;
}

.mac-stats {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.mac-notes {
    background: #f8f8f8;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #555;
    margin: 8px 0;
}

.mac-form {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    margin-top: 12px;
}

.mac-form-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mac-form-row select,
.mac-form-row input {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.85rem;
}

.mac-form-row input {
    flex: 1;
}

/* FIX: footer links em linhas separadas */
.footer a {
    display: block;
}


/* ============================================================
   CHECKOUT REDESIGN — AMAZON STYLE
   ============================================================ */

.checkout-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 0 60px;
}

.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 36px;
}

.checkout-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkout-step.active {
    color: var(--primary);
}

.cs-num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    transition: background 0.2s;
}

.checkout-step.active .cs-num {
    background: var(--primary);
    color: white;
}

.checkout-step-line {
    width: 64px;
    height: 2px;
    background: var(--border);
    margin: 0 12px 22px;
}

.checkout-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.checkout-section h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: var(--text);
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.address-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 0;
}

.address-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.address-option:has(input:checked) {
    border-color: var(--primary);
    background: rgba(198,66,0,0.04);
}

.address-option input[type="radio"] {
    margin-top: 2px;
    accent-color: var(--primary);
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    cursor: pointer;
}

.addr-card-content { flex: 1; }

.addr-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 3px;
}

.addr-text {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

.new-address.auth-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--border);
}

.checkout-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
    color: var(--text);
    min-height: 100px;
}

.checkout-textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(198,66,0,0.08);
}

.checkout-textarea::placeholder { color: var(--text-muted); }

.checkout-summary {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 88px;
}

.checkout-summary h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: var(--text);
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.summary-store {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.summary-store:last-of-type { border-bottom: none; }

.summary-store-name {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary);
    margin-bottom: 12px;
}

.summary-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.summary-item-thumb {
    position: relative;
    flex-shrink: 0;
}

.summary-item-thumb img,
.summary-item-no-thumb {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: #EDE8DE;
    display: block;
    border: 1px solid var(--border);
}

.summary-item-qty {
    position: absolute;
    top: -7px;
    right: -7px;
    background: var(--text);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}

.summary-item-info { flex: 1; min-width: 0; }

.summary-item-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.summary-item-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    margin-top: 3px;
}

.summary-subtotal-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-light);
    padding-top: 8px;
}

.summary-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0 16px;
}

.summary-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}

.checkout-pix-info {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #F0FFF4;
    border: 1px solid rgba(39,174,96,0.25);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 16px;
}

.pix-icon {
    background: #27AE60;
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 5px 8px;
    border-radius: 6px;
    letter-spacing: 1.5px;
    flex-shrink: 0;
}

.checkout-pix-info strong {
    display: block;
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
}

.checkout-pix-info p {
    font-size: 12px;
    color: var(--text-light);
    margin: 2px 0 0;
}

.checkout-secure {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin: 12px 0 0;
}

@media (max-width: 768px) {
    .checkout-page { padding: 20px 0 40px; }
    .checkout-steps { margin-bottom: 24px; }
    .checkout-step-line { width: 32px; margin: 0 6px 22px; }
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }
}


/* ============================================================
   PERFIL DO COMPRADOR — REDESIGN
   ============================================================ */

.perfil-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 36px 0 60px;
}

.perfil-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding: 28px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.perfil-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: -1px;
}

.perfil-header-info h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
}

.perfil-header-info p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.perfil-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.perfil-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.perfil-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

@media (max-width: 640px) {
    .perfil-page { padding: 20px 0 40px; }
    .perfil-grid { grid-template-columns: 1fr; }
    .perfil-header { gap: 14px; }
    .perfil-avatar { width: 56px; height: 56px; font-size: 22px; }
    .perfil-header-info h1 { font-size: 18px; }
}


/* ============================================================
   LOJA PÚBLICA — REDESIGN (Elo7-inspired)
   ============================================================ */

.sp-wrap { padding-bottom: 60px; }

/* BANNER */
.sp-banner {
    margin: 0 -20px;
    height: 210px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    position: relative;
}
.sp-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sp-banner-overlay {
    position: absolute;
    top: 14px;
    left: 24px;
    background: rgba(0,0,0,0.38);
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    letter-spacing: 0.3px;
}

/* HEADER CARD */
.sp-header {
    background: var(--white);
    margin: 0 -20px;
    padding: 0 28px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.sp-header-top {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    padding-bottom: 18px;
    flex-wrap: wrap;
}

/* AVATAR */
.sp-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 5px solid var(--white);
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    object-fit: cover;
    margin-top: -55px;
    background: var(--primary);
    flex-shrink: 0;
    display: block;
}
.sp-avatar-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -2px;
}

/* INFO */
.sp-info {
    flex: 1;
    min-width: 0;
    padding: 10px 0 6px;
}
.sp-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 3px;
    color: var(--text);
}
.sp-handle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.sp-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
    flex-wrap: wrap;
}
.sp-sep { color: var(--text-muted); }
.sp-rating-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.sp-rating-link:hover { text-decoration: underline; }

/* ACTIONS */
.sp-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    padding-bottom: 6px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.sp-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    background: var(--white);
    transition: all 0.2s;
    white-space: nowrap;
}
.sp-btn:hover { border-color: var(--primary); color: var(--primary); }
.sp-btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    font-weight: 600;
}
.sp-btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: white; }

/* STATS BAR */
.sp-stats-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-light);
    flex-wrap: wrap;
}
.sp-stat strong { color: var(--text); font-weight: 700; }
.sp-stat-sep { color: var(--text-muted); }

/* INFO PANELS */
.sp-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}
.sp-panel {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 20px;
    box-shadow: var(--shadow);
}
.sp-panel h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin: 0 0 10px;
}
.sp-panel p {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* REVIEWS CAROUSEL */
.sp-reviews {
    background: var(--white);
    border-radius: var(--radius);
    padding: 44px 40px 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
}
.sp-reviews-inner {
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sp-review-slide {
    display: none;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    animation: spFadeIn 0.3s ease;
}
.sp-review-slide.active { display: flex; }
@keyframes spFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.sp-review-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(198,66,0,0.25);
}
.sp-reviewer-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
    color: var(--text);
}
.sp-review-stars {
    font-size: 18px;
    margin-bottom: 18px;
    letter-spacing: 3px;
}
.sp-review-text {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-light);
    margin: 0 0 12px;
    font-style: italic;
    position: relative;
    padding: 0 32px;
}
.sp-review-text::before {
    content: '\201C';
    font-size: 72px;
    color: rgba(198,66,0,0.1);
    font-family: Georgia, serif;
    position: absolute;
    top: -20px;
    left: 0;
    line-height: 1;
}
.sp-review-text::after {
    content: '\201D';
    font-size: 72px;
    color: rgba(198,66,0,0.1);
    font-family: Georgia, serif;
    position: absolute;
    bottom: -36px;
    right: 0;
    line-height: 1;
}
.sp-review-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}
.sp-review-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}
.sp-nav-arrow {
    background: none;
    border: 1.5px solid var(--border);
    color: var(--text-light);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sp-nav-arrow:hover { border-color: var(--primary); color: var(--primary); }
.sp-review-dots { display: flex; gap: 6px; align-items: center; }
.sp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    cursor: pointer;
    padding: 0;
    transition: all 0.25s;
}
.sp-dot.active {
    background: var(--accent);
    width: 22px;
    border-radius: 4px;
}
.sp-reviews-link {
    display: inline-block;
    margin-top: 20px;
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
}
.sp-reviews-link:hover { text-decoration: underline; }

/* PRODUCTS */
.sp-products-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}
.sp-products-top h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}
.sp-search-wrap { position: relative; }
.sp-search-input {
    padding: 10px 16px 10px 38px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 14px;
    width: 230px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
}
.sp-search-input:focus { border-color: var(--primary); background: var(--white); }
.sp-search-wrap::before {
    content: '🔍';
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    pointer-events: none;
}
.sp-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .sp-banner { height: 150px; }
    .sp-header { padding: 0 16px 0; }
    .sp-avatar { width: 88px; height: 88px; margin-top: -44px; font-size: 32px; }
    .sp-name { font-size: 20px; }
    .sp-header-top { gap: 12px; }
    .sp-panels { grid-template-columns: 1fr; }
    .sp-reviews { padding: 32px 20px 24px; }
    .sp-review-text { font-size: 15px; padding: 0 16px; }
    .sp-product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .sp-products-top { flex-direction: column; align-items: flex-start; }
    .sp-search-input { width: 100%; }
    .sp-search-wrap { width: 100%; }
}
@media (max-width: 480px) {
    .sp-banner { height: 120px; }
    .sp-avatar { width: 72px; height: 72px; margin-top: -36px; font-size: 26px; }
    .sp-actions { width: 100%; }
    .sp-product-grid { gap: 10px; }
}
