/* webroupas — Design System */
:root {
    --purple: #6C3DF5;
    --purple-dark: #5A2FD4;
    --purple-light: #EDE9FE;
    --pink: #FF4E9A;
    --green: #22C55E;
    --dark: #1E1E1E;
    --gray-900: #374151;
    --gray-600: #6B7280;
    --gray-400: #9CA3AF;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,.1);
    --shadow-lg: 0 8px 32px rgba(108,61,245,.15);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: .2s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Logo ── */
.logo {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 0;
    font-weight: 800;
    font-size: 2.05rem;
    letter-spacing: -.03em;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
}
.header .logo {
    font-size: 2.15rem;
}
.logo-web {
    color: var(--purple);
    position: relative;
}
.logo-hanger {
    position: relative;
    display: inline-block;
}
.logo-hanger::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 5px;
    border: 2px solid var(--purple);
    border-bottom: none;
    border-radius: 5px 5px 0 0;
}
.logo-roupas { color: var(--dark); }

.tagline {
    font-size: .75rem;
    color: var(--gray-600);
    font-weight: 400;
    margin-top: 2px;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: .95rem;
    transition: all var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}
.btn-primary {
    background: var(--purple);
    color: var(--white);
}
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,.15); }
.btn-white {
    background: var(--white);
    color: var(--purple);
}
.btn-white:hover { background: var(--purple-light); }
.btn-pink { background: var(--pink); color: var(--white); }
.btn-pink:hover { opacity: .9; }
.btn-sm { padding: 8px 20px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ── Header ── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}
.header-top { padding: 18px 0; }
.header-top-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}
.search-bar {
    flex: 1;
    position: relative;
    max-width: 520px;
}
.search-bar input {
    width: 100%;
    padding: 11px 16px 11px 44px;
    border: 1.5px solid var(--gray-200);
    border-radius: 50px;
    font-size: .9rem;
    background: var(--gray-100);
    transition: border-color var(--transition);
    outline: none;
}
.search-bar input:focus {
    border-color: var(--purple);
    background: var(--white);
}
.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.header-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--gray-900);
    position: relative;
    transition: color var(--transition);
}
.header-link:hover { color: var(--purple); }
.header-link svg { flex-shrink: 0; }
.badge-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--pink);
    color: var(--white);
    font-size: .65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-menu-btn { display: none; }

/* Nav */
.header-nav {
    border-top: 1px solid var(--gray-200);
    background: var(--white);
}
.nav-list {
    display: flex;
    list-style: none;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-item a {
    display: block;
    padding: 12px 16px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--gray-900);
    white-space: nowrap;
    transition: color var(--transition);
    border-bottom: 2px solid transparent;
}
.nav-item a:hover,
.nav-item a.active { color: var(--purple); border-bottom-color: var(--purple); }
.nav-promo { color: var(--pink) !important; font-weight: 600 !important; }

.has-dropdown { position: relative; }
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    min-width: 200px;
    padding: 8px 0;
    z-index: 50;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown a {
    display: block;
    padding: 10px 20px;
    font-size: .875rem;
    border-bottom: none !important;
}
.dropdown a:hover { background: var(--gray-100); color: var(--purple); }

/* ── Hero ── */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
    margin-bottom: 0;
}
.hero-content {
    background: linear-gradient(135deg, var(--purple) 0%, #8B5CF6 100%);
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.hero-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
}
.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    position: relative;
}
.hero-content p {
    font-size: 1.05rem;
    opacity: .9;
    margin-bottom: 32px;
    max-width: 380px;
    position: relative;
}
.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
}
.hero-image {
    position: relative;
    overflow: hidden;
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-badges {
    position: absolute;
    bottom: 24px;
    left: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hero-badge {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--dark);
    box-shadow: var(--shadow-sm);
}
.hero-badge.green { color: var(--green); }
.hero-badge.purple { color: var(--purple); }

/* ── Trust Bar ── */
.trust-bar {
    background: var(--gray-100);
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-200);
}
.trust-items {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--gray-900);
}
.trust-icon {
    width: 36px;
    height: 36px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
}

/* ── Section ── */
.section { padding: 48px 0; }
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
}
.section-subtitle {
    color: var(--gray-600);
    font-size: .9rem;
    margin-top: 4px;
}

/* ── Filter Chips ── */
.filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.chip {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 500;
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-900);
    transition: all var(--transition);
    cursor: pointer;
}
.chip:hover { border-color: var(--purple); color: var(--purple); }
.chip.active {
    background: var(--purple);
    color: var(--white);
    border-color: var(--purple);
}

/* ── Product Grid ── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
    position: relative;
}
.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: transparent;
}
.product-card-image {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--gray-100);
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.05); }
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.badge-nova { background: var(--pink); color: var(--white); }
.badge-usada { background: var(--green); color: var(--white); }
.fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    backdrop-filter: blur(4px);
}
.fav-btn:hover { background: var(--white); transform: scale(1.1); }
.fav-btn.active svg { fill: var(--pink); stroke: var(--pink); }
.product-card-body { padding: 14px; }
.product-card-title {
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--purple);
    margin-bottom: 4px;
}
.product-card-meta {
    font-size: .78rem;
    color: var(--gray-600);
}

/* ── Categories Row ── */
.categories-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 8px 0 16px;
    scrollbar-width: none;
}
.categories-row::-webkit-scrollbar { display: none; }
.category-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    text-align: center;
}
.category-circle-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--purple-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all var(--transition);
    border: 2px solid transparent;
}
.category-circle:hover .category-circle-icon {
    border-color: var(--purple);
    background: var(--white);
    transform: scale(1.05);
}
.category-circle span {
    font-size: .78rem;
    font-weight: 500;
    color: var(--gray-900);
}

/* ── Product Detail ── */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 40px 0;
}
.product-detail-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--gray-100);
}
.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-detail-info h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.product-detail-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--purple);
    margin-bottom: 4px;
}
.product-installment {
    font-size: .9rem;
    color: var(--gray-600);
    margin-bottom: 24px;
}
.product-attrs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
    padding: 20px;
    background: var(--gray-100);
    border-radius: var(--radius);
}
.product-attr {
    display: flex;
    justify-content: space-between;
    font-size: .9rem;
}
.product-attr-label { color: var(--gray-600); font-weight: 500; }
.product-attr-value { font-weight: 600; }
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}
.seller-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}
.seller-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--purple-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--purple);
    font-size: 1.1rem;
}
.product-description {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}
.product-description h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

/* ── Forms ── */
.form-page {
    max-width: 480px;
    margin: 48px auto;
    padding: 0 20px;
}
.form-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}
.form-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}
.form-card .subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: .9rem;
    margin-bottom: 32px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--gray-900);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: .9rem;
    outline: none;
    transition: border-color var(--transition);
    background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--purple);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-footer {
    text-align: center;
    margin-top: 24px;
    font-size: .875rem;
    color: var(--gray-600);
}
.form-footer a { color: var(--purple); font-weight: 600; }
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: .875rem;
    margin-bottom: 20px;
}
.alert-error { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
.alert-success { background: #F0FDF4; color: #16A34A; border: 1px solid #BBF7D0; }
.alert-info { background: #EFF6FF; color: #2563EB; border: 1px solid #BFDBFE; }

.cookie-banner {
    position: fixed;
    bottom: 72px;
    left: 16px;
    right: 16px;
    max-width: 520px;
    margin: 0 auto;
    padding: 16px 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.cookie-banner p { flex: 1; font-size: .85rem; color: var(--gray-700); margin: 0; min-width: 200px; }
.cookie-banner a { color: var(--purple); font-weight: 600; }
@media (min-width: 768px) {
    .cookie-banner { bottom: 24px; left: 24px; right: auto; margin: 0; }
}

/* ── Cart & Favorites ── */
.page-header {
    padding: 32px 0 16px;
}
.page-header h1 { font-size: 1.75rem; font-weight: 700; }
.empty-state {
    text-align: center;
    padding: 64px 20px;
    color: var(--gray-600);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h2 { font-size: 1.25rem; color: var(--dark); margin-bottom: 8px; }
.cart-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-200);
    align-items: center;
}
.cart-item-image {
    width: 100px;
    height: 120px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gray-100);
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-title { font-weight: 600; margin-bottom: 4px; }
.cart-item-price { color: var(--purple); font-weight: 700; font-size: 1.1rem; }
.cart-item-meta { font-size: .8rem; color: var(--gray-600); }
.cart-summary {
    margin-top: 32px;
    padding: 24px;
    background: var(--gray-100);
    border-radius: var(--radius);
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

/* ── Sell Page ── */
.sell-hero {
    background: linear-gradient(135deg, var(--purple) 0%, #8B5CF6 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}
.sell-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.sell-hero p { opacity: .9; max-width: 500px; margin: 0 auto 32px; }
.sell-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 48px 0;
}
.sell-step {
    text-align: center;
    padding: 32px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}
.sell-step-num {
    width: 48px;
    height: 48px;
    background: var(--purple-light);
    color: var(--purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0 auto 16px;
}
.sell-step h3 { font-size: 1rem; margin-bottom: 8px; }
.sell-step p { font-size: .85rem; color: var(--gray-600); }
.sell-form-section {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 20px 64px;
}

/* ── Footer ── */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 48px 0 24px;
    margin-top: 48px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}
.footer-brand .logo { margin-bottom: 8px; }
.footer-brand .logo-web { color: #A78BFA; }
.footer-brand .logo-roupas { color: var(--white); }
.footer-brand .tagline { color: var(--gray-400); }
.footer-desc {
    font-size: .875rem;
    color: var(--gray-400);
    margin-top: 12px;
    max-width: 280px;
    line-height: 1.7;
}
.footer-links h4 {
    font-size: .875rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
}
.footer-links a {
    display: block;
    font-size: .85rem;
    color: var(--gray-400);
    margin-bottom: 10px;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: .8rem;
    color: var(--gray-400);
}
.footer-social { display: flex; gap: 12px; }
.footer-social a { font-size: 1.2rem; opacity: .7; transition: opacity var(--transition); }
.footer-social a:hover { opacity: 1; }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ── Mobile Bottom Nav ── */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 8px 0;
    z-index: 100;
    justify-content: space-around;
}
.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: .65rem;
    font-weight: 500;
    color: var(--gray-600);
    padding: 4px 8px;
}
.mobile-bottom-nav a.active { color: var(--purple); }
.mobile-bottom-nav a.active svg { stroke: var(--purple); }

/* ── Responsive ── */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; }
    .hero-image { min-height: 280px; order: -1; }
    .hero-content { padding: 40px 24px; }
    .hero-content h1 { font-size: 1.75rem; }
    .product-detail { grid-template-columns: 1fr; gap: 24px; }
    .sell-steps { grid-template-columns: 1fr; }
    .header-actions .header-link span { display: none; }
    .search-bar { max-width: none; }
}

@media (max-width: 768px) {
    .header-actions { display: none; }
    .mobile-menu-btn { display: flex; }
    .header-nav { display: none; }
    .mobile-bottom-nav { display: flex; }
    body { padding-bottom: 64px; }
    .trust-items { gap: 20px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .form-row { grid-template-columns: 1fr; }
    .form-card { padding: 28px 20px; }
}

@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .product-card-body { padding: 10px; }
    .product-card-title { font-size: .82rem; }
    .product-card-price { font-size: .95rem; }
}

/* ── Orders table ── */
.orders-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.orders-table th, .orders-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--gray-200); font-size: .875rem; }
.orders-table th { background: var(--gray-100); font-weight: 600; color: var(--gray-600); }
.orders-table tr:last-child td { border-bottom: none; }


/* layout extra — home/header alinhados ao HTML atual */
.main-content { min-height: 45vh; padding-bottom: 72px; }
.logo-web, .logo-roupas { display: inline; }
