:root {
    --primary-color: #ff6b9d;
    --secondary-color: #ffd93d;
    --accent-color: #6bcf7f;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --background-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --border-radius: 15px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ffeef8 0%, #fff5e6 100%);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header */
.header-top {
    background: linear-gradient(135deg, var(--primary-color) 0%, #FF8C00 100%);
    color: var(--white);
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    max-height: 90px;
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: var(--shadow);
}

.main-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.1rem;
    margin: 5px 0 0 0;
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.whatsapp {
    background: #25d366;
}

.social-btn.telegram {
    background: #0088cc;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    color: var(--white);
}

/* Sidebar */
.sidebar {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 10px;
    overflow-y: auto;
    z-index: 999;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.sidebar-content {
    padding: 10px;
}

.sidebar-title {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 20px;
    margin-top: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--background-light);
}

.category-filters {
    margin-bottom: 30px;
}

.category-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 15px;
    margin-bottom: 8px;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    background: var(--background-light);
    color: var(--text-dark);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.category-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(5px);
}

.category-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.category-btn i {
    margin-right: 8px;
    width: 16px;
}

.social-section {
    border-top: 2px solid var(--background-light);
    padding-top: 20px;
}

.social-section h6 {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 15px;
}

.social-link {
    display: block;
    padding: 8px 0;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-link i {
    margin-right: 8px;
    width: 20px;
}

/* Main Content */
.main-content {
    padding: 30px;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.products-header h3 {
    color: var(--primary-color);
    margin: 0;
}

.products-count {
    background: var(--secondary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    color: var(--text-dark);
}

/* Product Cards */
.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.sales-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}


.product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8; /* fundo neutro */
    height: 250px; /* altura fixa */
    overflow: hidden;
}

.product-image img,
.product-image video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* mostra a imagem inteira sem cortar */
}

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

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

.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.product-price {
    margin-bottom: 15px;
}

.original-price {
    display: block;
    color: var(--text-light);
    text-decoration: line-through;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.current-price {
    display: block;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: bold;
}

.btn-buy {
    background: linear-gradient(135deg, var(--primary-color) 0%, #FF8C00 100%);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
}

.btn-buy:hover {
    background: linear-gradient(135deg, #FF8C00 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.4);
    color: var(--white);
}

/* Loading */
#loading {
    padding: 40px;
    color: var(--primary-color);
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Load More Button */
#load-more {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #ffed4e 100%);
    color: var(--text-dark);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

#load-more:hover {
    background: linear-gradient(135deg, #ffed4e 0%, var(--secondary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 217, 61, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
        top: 0;
        height: auto;
        border-radius: var(--border-radius);
        margin-bottom: 20px;
    }

    .main-content {
        margin-left: 0;
        padding: 15px;
    }

    .main-title {
        font-size: 1.8rem;
    }

    .social-links {
        justify-content: center;
        margin-top: 15px;
    }

    .products-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .product-image {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .header-top {
        padding: 3px 0;
    }

    .main-title {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .product-info {
        padding: 15px;
    }

    .product-image {
        height: 160px;
    }
}

/* Scrollbar customization for sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--background-light);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #FF8C00;
}

.product-title a {
    color: #333; /* cor próxima ao texto normal */
    text-decoration: none; /* remove o sublinhado */
    transition: color 0.2s ease;
}

.product-title a:hover {
    color: #247f8e; /* muda suavemente ao passar o mouse */
}

.product-image a {
    display: block; /* garante que todo o bloco seja clicável */
    text-decoration: none;
}

.product-image a:hover img,
.product-image a:hover video {
    transform: scale(1.03); /* efeito leve de zoom no hover */
    transition: transform 0.2s ease;
    cursor: pointer;
}


.media-container {
    position: relative;
    width: 100%;
    height: 150px; /* Mobile */
    overflow: hidden;
    border-radius: 8px;
    background-color: #f5f5f5;
}

/* Tablet */
@media (min-width: 768px) {
    .media-container {
        height: 200px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .media-container {
        height: 250px;
    }
}

.product-video,
.video-fallback,
.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-video {
    display: none;
}