/* template/css/vitrine.css */
/* Design System e Estilização para a Vitrine de Afiliados */

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #64748b;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    
    /* Cores das plataformas */
    --ml-bg: #fff5c0;
    --ml-text: #8c6b00;
    --shopee-bg: #ffe8e0;
    --shopee-text: #ee4d2d;
    --ali-bg: #ffe2e6;
    --ali-text: #e61e3b;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* Header & Navbar */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand {
    letter-spacing: -0.5px;
}

.input-group .form-control {
    border-color: var(--border-color);
}

.input-group .form-control:focus {
    border-color: var(--primary);
}

/* Banner de Destaque */
.hero-banner {
    background: linear-gradient(135deg, #4f46e5 0%, #312e81 100%);
    border-radius: 24px;
    padding: 0;
    color: white;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px -10px rgba(79, 70, 229, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
}

/* Estilos do Carrossel Hero */
.hero-banner .carousel-fade .carousel-item {
    pointer-events: none;
    z-index: 1;
}

.hero-banner .carousel-fade .carousel-item.active {
    pointer-events: auto;
    z-index: 2;
}

.hero-slide-item {
    min-height: 350px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-product-title {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.3;
    color: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-img-wrapper {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 16px;
    width: 240px;
    height: 240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-img-wrapper:hover {
    transform: scale(1.05);
}

.hero-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.badge-plataforma-hero {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-plataforma-hero.mercadolivre {
    background-color: var(--ml-bg);
    color: var(--ml-text);
}

.badge-plataforma-hero.shopee {
    background-color: var(--shopee-bg);
    color: var(--shopee-text);
}

.badge-plataforma-hero.aliexpress {
    background-color: var(--ali-bg);
    color: var(--ali-text);
}

.hero-indicators {
    bottom: 12px !important;
    margin-bottom: 0 !important;
    z-index: 5;
}

.hero-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    transition: all 0.3s ease;
    margin: 0 4px;
}

.hero-indicators .active {
    width: 28px;
    border-radius: 10px;
    background-color: #ffffff;
}

.hero-control-prev,
.hero-control-next {
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    transition: background-color 0.2s ease;
}

.hero-control-prev {
    left: 15px;
}

.hero-control-next {
    right: 15px;
}

.hero-control-prev:hover,
.hero-control-next:hover {
    background-color: rgba(255, 255, 255, 0.35);
}

/* Card de Produto */
.product-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px -10px rgba(15, 23, 42, 0.08);
    border-color: rgba(79, 70, 229, 0.2);
}

.product-img-wrapper {
    position: relative;
    padding-top: 100%; /* Proporção 1:1 */
    background-color: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-main);
    margin-bottom: 8px;
    height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-box {
    margin-top: auto;
    margin-bottom: 16px;
}

.price-original {
    font-size: 0.8rem;
    text-decoration: line-through;
    color: var(--text-muted);
}

.price-promo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e11d48;
    line-height: 1.1;
}

.price-normal {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.1;
}

/* Badges de Plataformas */
.badge-plataforma {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.badge-plataforma.mercadolivre {
    background-color: var(--ml-bg);
    color: var(--ml-text);
}

.badge-plataforma.shopee {
    background-color: var(--shopee-bg);
    color: var(--shopee-text);
}

.badge-plataforma.aliexpress {
    background-color: var(--ali-bg);
    color: var(--ali-text);
}

/* Detalhe do Produto */
.product-detail-img-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-info-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
}

.breadcrumb-item a {
    color: var(--text-muted);
    font-weight: 500;
}

.breadcrumb-item.active {
    color: var(--text-main);
    font-weight: 600;
}

.btn-buy-now {
    background-color: #22c55e;
    color: white;
    border: none;
    font-weight: 700;
    font-size: 1.15rem;
    border-radius: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px -8px rgba(34, 197, 94, 0.5);
}

.btn-buy-now:hover {
    background-color: #16a34a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(34, 197, 94, 0.6);
}

/* Responsividade Geral */
@media (max-width: 768px) {
    .hero-banner {
        padding: 0;
        text-align: center;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-slide-item {
        min-height: auto;
        padding-bottom: 45px;
    }
    .hero-product-title {
        font-size: 1.35rem;
    }
    .hero-img-wrapper {
        width: 170px;
        height: 170px;
    }
    .hero-control-prev,
    .hero-control-next {
        display: none;
    }
    .product-detail-info-card {
        padding: 24px;
    }
}

/* Botões de Filtro de Plataforma na Home */
.btn-filter-platform {
    transition: all 0.25s ease;
    cursor: pointer;
    font-size: 0.875rem;
    border: 1px solid var(--border-color) !important;
}

.btn-filter-platform:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    background-color: #f1f5f9 !important;
}

.btn-filter-platform.active {
    background-color: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}

.btn-filter-platform.active i {
    color: white !important;
}

/* Custom Header/Navbar Styling */
.store-navbar {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.store-navbar .navbar-brand {
    color: #ffffff !important;
}

.store-navbar .navbar-brand i {
    color: #818cf8 !important; /* Indigo accent icon */
}

.store-navbar .nav-link {
    color: #94a3b8 !important;
    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: 8px;
}

.store-navbar .nav-link:hover,
.store-navbar .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.06);
}

.store-navbar .navbar-toggler {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.store-navbar .navbar-toggler i {
    color: #ffffff !important;
}

/* Custom search bar inside dark navbar */
.store-navbar .input-group .form-control {
    background-color: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    font-size: 0.9rem;
}

.store-navbar .input-group .form-control::placeholder {
    color: #64748b !important;
}

.store-navbar .input-group .form-control:focus {
    background-color: rgba(255, 255, 255, 0.12) !important;
    border-color: #818cf8 !important;
    box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.2) !important;
}

.store-navbar .input-group .btn-primary {
    background-color: #4f46e5 !important;
    border-color: #4f46e5 !important;
}

.store-navbar .input-group .btn-primary:hover {
    background-color: #4338ca !important;
    border-color: #4338ca !important;
}

/* Category Filter Tags/Pills style */
.tag-inactive {
    background-color: #ffffff !important;
    border-color: var(--border-color) !important;
    color: var(--text-muted) !important;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.tag-inactive:hover {
    background-color: #f1f5f9 !important;
    color: var(--text-main) !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-1px);
}

.active-tag {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

/* Pagination modern styling updates */
.pagination .page-item .page-link {
    transition: all 0.2s ease;
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%) !important;
    border-color: transparent !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}

.pagination .page-item .page-link:hover {
    background-color: #f1f5f9;
    color: var(--primary);
    transform: translateY(-1px);
}

