/* ===================================================
   CUSTOM CSS — Lingerie & Pijamas
   Complementa o Tailwind CSS
   =================================================== */

/* Fontes Google */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;800;900&display=swap');

/* -----------------------------------------------
   VARIÁVEIS GLOBAIS
   ----------------------------------------------- */
:root {
    --primary: #000000;
    --primary-dark: #111111;
    --primary-light: #333333;
    --accent: #555555;
    --dark: #000000;
    --gray-900: #1a1a1a;
    --gray-100: #f4f4f4;
    --success: #059669;
    --danger: #e11d48;
    --radius: 0px;
    --shadow: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-lg: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-premium: 0 4px 12px rgba(0,0,0,0.08);
}

/* -----------------------------------------------
   GLASSMORPHISM & UTILITIES
   ----------------------------------------------- */
.glass-panel {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-premium);
    border-radius: var(--radius);
}

.glass-badge {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    color: var(--primary);
}

/* -----------------------------------------------
   RESET & BASE
   ----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    background-color: #f4f4f4;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* -----------------------------------------------
   TOP BAR
   ----------------------------------------------- */
.top-bar {
    background: linear-gradient(90deg, #111 0%, #1a1a2e 50%, #111 100%);
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}

/* -----------------------------------------------
   HEADER & NAV
   ----------------------------------------------- */
.main-header {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease;
}

.main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.nav-link {
    position: relative;
    transition: all 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 99px;
    transition: width 0.3s ease;
}

.nav-link:hover::after { width: 60%; }

/* -----------------------------------------------
   BANNER HERO
   ----------------------------------------------- */
.hero-banner {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    background: linear-gradient(135deg, #0d0d1a 0%, #1a0a2e 40%, #2a1040 100%);
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 50%, rgba(192,22,110,0.25) 0%, transparent 60%);
    z-index: 1;
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 99px;
    padding: 4px 14px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f9a8d4;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    color: #fff;
}

.hero-title span { color: var(--primary-light); }

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #000;
    color: #fff;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: 0;
    border: 1px solid #000;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background: #fff;
    color: #000;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    padding: 13px 24px;
    border-radius: 99px;
    border: 1.5px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
}

/* -----------------------------------------------
   CATEGORIAS CIRCULARES
   ----------------------------------------------- */
.category-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.category-circle:hover { transform: translateY(-6px); }

.category-circle-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    background: transparent;
    transition: all 0.4s ease;
    padding: 0;
}

.category-circle:hover .category-circle-img {
    transform: scale(1.05);
}

.category-circle-label {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    color: #333;
    letter-spacing: 0.03em;
    margin-top: 4px;
    transition: color 0.3s ease;
}

.category-circle:hover .category-circle-label {
    color: #000;
}

/* -----------------------------------------------
   PRODUCT CARD
   ----------------------------------------------- */
.product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(0,0,0,0.08);
}

.product-card-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f9f9f9;
}

.product-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-image-wrap img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 99px;
    text-transform: uppercase;
    z-index: 2;
}

.product-badge-discount {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

.product-badge-new {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
}

.product-card-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    padding: 10px 12px;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
    transition: bottom 0.3s ease;
    display: flex;
    gap: 8px;
}

.product-card:hover .product-card-actions { bottom: 0; }

.btn-add-cart {
    flex: 1;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.btn-add-cart:hover { opacity: 0.9; }

.btn-wishlist {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-wishlist:hover {
    background: rgba(255,255,255,0.25);
    color: var(--primary-light);
}

.product-card-body {
    padding: 16px;
    text-align: center;
}

.product-card-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.01em;
}

.product-price-original {
    font-size: 0.75rem;
    text-decoration: line-through;
    color: #999;
    margin-right: 6px;
}

.product-sizes {
    display: flex;
    gap: 4px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.size-chip {
    font-size: 0.65rem;
    font-weight: 700;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 2px 6px;
    transition: all 0.2s;
}

.size-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* -----------------------------------------------
   SECTION TITLES
   ----------------------------------------------- */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #111;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-top: 8px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 99px;
    margin: 12px auto 32px;
}

/* -----------------------------------------------
   BANNER CALCINHAS
   ----------------------------------------------- */
.calcinhas-banner {
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    background: #111; /* Fallback */
}

.calcinhas-banner img.bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transition: transform 1.2s ease;
}

.calcinhas-banner:hover img.bg-img { transform: scale(1.03); }

.calcinhas-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}

.calcinhas-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

/* -----------------------------------------------
   BANNER TELEGRAM (VIP)
   ----------------------------------------------- */
.telegram-banner {
    background: linear-gradient(135deg, #0d0d1a 0%, #111827 100%);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.telegram-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #2aabee, #229ed9);
    color: #fff;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 10px 24px;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(42,171,238,0.35);
    text-decoration: none;
}

.telegram-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(42,171,238,0.5);
}

/* -----------------------------------------------
   CART BADGE ANIMATION
   ----------------------------------------------- */
@keyframes bounce-once {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.animate-bounce-once { animation: bounce-once 0.5s ease; }

/* -----------------------------------------------
   CHECKOUT STEPS
   ----------------------------------------------- */
.checkout-step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2.5px solid #e0e0e0;
    background: #fff;
    color: #999;
    z-index: 1;
}

.step-circle.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(192,22,110,0.3);
}

.step-circle.completed {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.step-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 6px;
    color: #999;
    white-space: nowrap;
}

.step-label.active { color: var(--primary); }
.step-label.completed { color: var(--success); }

.step-connector {
    height: 2px;
    width: 80px;
    background: #e0e0e0;
    margin-top: -20px;
    transition: background 0.3s;
}

.step-connector.completed { background: var(--success); }

/* -----------------------------------------------
   FORM INPUTS
   ----------------------------------------------- */
.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--dark);
    background: #fbfbfb;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
}

.form-input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.01), 0 0 0 4px rgba(157, 23, 77, 0.1);
}

.form-input.error { border-color: #ef4444; }
.form-input.success { border-color: var(--success); }

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    letter-spacing: 0.03em;
}

/* -----------------------------------------------
   ADMIN PANEL
   ----------------------------------------------- */
.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #111 0%, #1a1a2e 100%);
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.admin-content {
    margin-left: 260px;
    min-height: 100vh;
    background: #f4f6fb;
    padding: 24px;
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* -----------------------------------------------
   PIX QR CODE
   ----------------------------------------------- */
.pix-container {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #86efac;
    border-radius: 20px;
    padding: 32px;
    text-align: center;
}

.pix-qrcode-wrapper {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    display: inline-block;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.pix-copy-code {
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px 16px;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    word-break: break-all;
    color: #555;
    margin: 16px 0;
    text-align: left;
    max-height: 80px;
    overflow-y: auto;
}

/* -----------------------------------------------
   TOAST NOTIFICATIONS
   ----------------------------------------------- */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: #fff;
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    pointer-events: all;
    animation: slideInRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-width: 280px;
    max-width: 360px;
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error   { border-left: 4px solid #ef4444; }
.toast.info    { border-left: 4px solid #3b82f6; }

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

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

.toast.removing { animation: slideOutRight 0.3s ease forwards; }

/* -----------------------------------------------
   LOADING SKELETON
   ----------------------------------------------- */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* -----------------------------------------------
   RESPONSIVIDADE
   ----------------------------------------------- */
@media (max-width: 768px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-content { margin-left: 0; padding: 16px; }
    .admin-sidebar.open { transform: translateX(0); }

    .hero-banner { min-height: 300px; }
    .step-connector { width: 40px; }
}

/* -----------------------------------------------
   SCROLLBAR
   ----------------------------------------------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* -----------------------------------------------
   SELECTION
   ----------------------------------------------- */
::selection { background: rgba(192,22,110,0.2); color: var(--primary-dark); }
