/* ========================================
   MobiliTech - Estilos Principais
   ======================================== */

:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --success: #38ef7d;
    --success-dark: #11998e;
    --warning: #f6ad55;
    --danger: #fc5c65;
    --whatsapp: #25D366;
    --dark: #1a202c;
    --gray-900: #2d3748;
    --gray-800: #4a5568;
    --gray-700: #718096;
    --gray-600: #a0aec0;
    --gray-500: #cbd5e0;
    --gray-400: #e2e8f0;
    --gray-300: #edf2f7;
    --gray-200: #f7fafc;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-200);
    color: var(--gray-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

.btn-danger {
    border-color: var(--danger);
    color: var(--danger);
}

.btn-danger:hover {
    background: var(--danger);
    color: var(--white);
}

/* ========================================
   Top Bar
   ======================================== */

.top-bar {
    background: var(--dark);
    color: var(--gray-500);
    padding: 8px 0;
    font-size: 13px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 20px;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-right {
    display: flex;
    gap: 15px;
}

.top-bar-right a {
    color: var(--gray-500);
}

.top-bar-right a:hover {
    color: var(--white);
}

/* ========================================
   Header
   ======================================== */

.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 30px;
}

/* Info Bar */
.info-bar {
    background: var(--dark);
    border-bottom: 1px solid var(--gray-800);
    padding: 10px 0;
}

.info-bar-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
    color: var(--white);
    font-weight: 600;
}

.info-bar-location {
    white-space: nowrap;
    font-weight: 700;
    font-size: 14px;
}

.info-bar-location i {
    color: #fc5c65;
    margin-right: 5px;
}

.info-bar-separator {
    color: var(--gray-600);
    font-size: 16px;
}

/* Route Animation PY -> BR */
.info-bar-route {
    display: inline-flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
}

.flag-py,
.flag-br {
    font-size: 18px;
    line-height: 1;
}

.route-line {
    position: relative;
    width: 50px;
    height: 2px;
    background: rgba(255, 255, 255, 0.25);
    margin: 0 6px;
    border-radius: 2px;
    overflow: hidden;
}

.route-dot {
    position: absolute;
    top: -3px;
    left: -8px;
    width: 8px;
    height: 8px;
    background: #38ef7d;
    border-radius: 50%;
    box-shadow: 0 0 6px #38ef7d;
    animation: routeMove 2s ease-in-out infinite;
}

@keyframes routeMove {
    0% { left: -8px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 50px; opacity: 0; }
}

.info-bar-seller-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.info-bar-seller {
    font-weight: 700;
    color: var(--white);
    font-size: 14px;
    letter-spacing: 0.3px;
}

.info-bar-seller i {
    color: #667eea;
    margin-right: 5px;
}

@media (max-width: 768px) {
    .info-bar-content {
        flex-direction: column;
        gap: 4px;
        text-align: center;
        font-size: 12px;
    }
    .info-bar-location {
        font-size: 12px;
    }
    .info-bar-seller {
        font-size: 11px;
    }
    .info-bar-separator {
        display: none;
    }
    .info-bar-seller-block {
        gap: 4px;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
}

.logo i {
    color: var(--primary);
    font-size: 28px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 10px 0;
    z-index: 100;
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: var(--gray-800);
}

.dropdown-content a:hover {
    background: var(--gray-300);
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-form {
    display: flex;
    background: var(--gray-300);
    border-radius: 50px;
    overflow: hidden;
}

.search-form input {
    border: none;
    background: transparent;
    padding: 10px 15px;
    width: 200px;
    font-size: 14px;
}

.search-form input:focus {
    outline: none;
}

.search-form button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

.whatsapp-header {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--whatsapp);
    color: var(--white);
    border-radius: 50%;
    font-size: 18px;
}

.whatsapp-header:hover {
    transform: scale(1.1);
}

.btn-login,
.btn-area-restrita {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gray-300);
    border-radius: 50px;
    font-weight: 500;
    font-size: 13px;
}

.btn-login:hover,
.btn-area-restrita:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-admin {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50px;
    font-weight: 500;
    font-size: 13px;
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* ========================================
   Hero Section com Vídeo
   ======================================== */

.hero-wrapper {
    padding: 15px;
    background: var(--gray-200);
}

.hero-video {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 240px;
    overflow: hidden;
    border-radius: 16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    contain: layout style paint;
}

.hero-video.hero-has-image {
    height: auto;
    max-height: 550px;
    min-height: 200px;
    aspect-ratio: 1280 / 550;
}

@media (max-width: 768px) {
    .hero-video.hero-has-image {
        max-height: 400px;
        aspect-ratio: 1280 / 400;
    }
}

@media (max-width: 480px) {
    .hero-video.hero-has-image {
        max-height: 300px;
        aspect-ratio: 1280 / 300;
    }
}

.hero-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-banner-image {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hero-video-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-width: 177.78vh;
    min-height: 100vh;
    transform: translate(-50%, -50%);
    border: none;
    pointer-events: none;
}

.hero-video::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
    border-radius: 16px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

/* Banner Price Tag - canto superior esquerdo */
.banner-price-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 3;
    background: #ff1744;
    border-radius: 10px 10px 10px 0;
    padding: 14px 22px;
    box-shadow: 0 6px 20px rgba(255, 23, 68, 0.5);
}

.banner-price-tag::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 0;
    border-right: 10px solid transparent;
    border-top: 8px solid #c41230;
}

@keyframes bannerTagPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

.banner-product-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.banner-prices {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.banner-price-old {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: line-through;
}

.banner-price-current {
    font-size: 26px;
    font-weight: 900;
    color: var(--white);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Banner Button - canto superior direito */
.banner-btn-products {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
    padding: 10px 20px;
    font-size: 13px;
    border-radius: 25px;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.banner-btn-products:hover {
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .banner-price-tag {
        top: 10px;
        left: 10px;
        padding: 10px 14px;
    }
    .banner-product-name {
        font-size: 11px;
    }
    .banner-price-current {
        font-size: 20px;
    }
    .banner-price-old {
        font-size: 11px;
    }
    .banner-btn-products {
        top: 10px;
        right: 10px;
        padding: 8px 14px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .banner-price-tag {
        top: 8px;
        left: 8px;
        padding: 8px 12px;
    }
    .banner-product-name {
        font-size: 10px;
        margin-bottom: 3px;
    }
    .banner-price-current {
        font-size: 18px;
    }
    .banner-price-old {
        font-size: 10px;
    }
    .banner-btn-products {
        top: 8px;
        right: 8px;
        padding: 6px 12px;
        font-size: 10px;
    }
}

.hero-description {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}

/* ========================================
   Faixa Flip de Avisos
   ======================================== */

/* Shipping Bar */
.shipping-bar {
    background: linear-gradient(135deg, #ff6b00 0%, #ff1744 100%);
    padding: 12px 0;
    overflow: hidden;
    min-height: 48px;
    contain: layout style;
    position: relative;
}

.shipping-bar::before {
    display: none;
}

.shipping-bar-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.shipping-bar-content strong {
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.shipping-bar-content i {
    font-size: 22px;
}

@keyframes truckBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@media (max-width: 768px) {
    .shipping-bar-content {
        font-size: 13px;
        gap: 8px;
    }
    .shipping-bar-content i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .shipping-bar-content {
        font-size: 12px;
        gap: 6px;
    }
    .shipping-bar-content i {
        font-size: 16px;
    }
}

/* Supplier Bar */
.supplier-bar {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    padding: 12px 0;
    position: relative;
    overflow: hidden;
    min-height: 48px;
    contain: layout style;
}

.supplier-bar::before {
    display: none;
}

.supplier-bar-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.supplier-bar-content strong {
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.supplier-bar-content i {
    font-size: 20px;
}

.supplier-bar-content .fa-arrow-right {
    font-size: 14px;
}

@keyframes arrowSlide {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(5px); opacity: 0.6; }
}

@media (max-width: 768px) {
    .supplier-bar-content {
        font-size: 13px;
        gap: 8px;
    }
    .supplier-bar-content i {
        font-size: 16px;
    }
    .supplier-bar-content .fa-arrow-right {
        display: none;
    }
    .supplier-bar-content .fa-user {
        display: none;
    }
}

@media (max-width: 480px) {
    .supplier-bar-content {
        font-size: 12px;
        gap: 6px;
    }
    .supplier-bar-content i {
        font-size: 14px;
    }
}

.flip-banner {
    background: var(--dark);
    padding: 14px 0;
    overflow: hidden;
    min-height: 56px;
    contain: layout style;
}

.flip-display {
    position: relative;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-card {
    position: absolute;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: rotateX(90deg);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.flip-card.active {
    opacity: 1;
    transform: rotateX(0deg);
}

.flip-card.exit {
    opacity: 0;
    transform: rotateX(-90deg);
}

.flip-card-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--white);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.flip-card-inner i {
    font-size: 18px;
    color: #38ef7d;
}

/* ========================================
   Sections
   ======================================== */

.section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--gray-700);
    font-size: 16px;
}

/* ========================================
   Categories
   ======================================== */

.categories-section {
    overflow: hidden;
}

.categories-scroll-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Desktop: centralizado em grid */
.categories-scroll {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 10px 0 20px;
}

.category-card {
    flex: 0 0 auto;
    width: 150px;
    background: var(--white);
    padding: 25px 15px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon i {
    font-size: 24px;
    color: var(--white);
}

.category-card h3 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

/* Mobile: scroll horizontal */
@media (max-width: 768px) {
    .categories-scroll {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 12px;
        padding: 10px 5px 20px;
    }
    
    .categories-scroll::-webkit-scrollbar {
        display: none;
    }
    
    .category-card {
        scroll-snap-align: start;
        width: 120px;
        padding: 18px 10px;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
    }
    
    .category-icon i {
        font-size: 20px;
    }
    
    .category-card h3 {
        font-size: 11px;
    }
}

/* ========================================
   Products Grid
   ======================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    contain: layout style;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    contain: layout style;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Product Image Carousel */
.product-image-carousel {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--gray-300);
}

.carousel-container {
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Progress Bar Carousel */
.carousel-progress-bar {
    position: absolute;
    bottom: 12px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 4px;
    z-index: 10;
}

.progress-segment {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: var(--white);
    border-radius: 3px;
    transition: none;
}

.progress-segment.completed .progress-fill {
    width: 100%;
}

.progress-segment.active .progress-fill {
    width: 0%;
    animation: progressFill 2s linear forwards;
}

@keyframes progressFill {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: var(--white);
    font-size: 14px;
    cursor: pointer;
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
    z-index: 10;
}

.product-image-carousel:hover .carousel-arrow {
    opacity: 1;
}

.carousel-arrow:hover {
    background: rgba(0,0,0,0.7);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.product-badges {
    position: absolute;
    top: -8px;
    right: -8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 5;
}

.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-discount {
    background: #ff1744;
    color: var(--white);
    padding: 8px 14px;
    border-radius: 8px 8px 0 8px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 23, 68, 0.4);
    position: relative;
}

.badge-discount::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 0;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-top: 6px solid #c41230;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.badge-featured {
    background: var(--gradient);
    color: var(--white);
}

.badge-low-stock {
    background: var(--warning);
    color: var(--dark);
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 8px 0;
    line-height: 1.4;
}

.product-title a:hover {
    color: var(--primary);
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.product-specs span {
    font-size: 12px;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-specs i {
    color: var(--primary);
}

.product-price {
    margin: 15px 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.product-price .price-old {
    font-size: 14px;
    color: var(--gray-600);
    text-decoration: line-through;
}

.product-price .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--success-dark);
}

.product-meta {
    font-size: 12px;
    color: var(--gray-700);
}

.product-actions {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px;
}

.product-actions .btn {
    flex: 1;
    padding: 10px;
    font-size: 12px;
}

.product-actions .btn-whatsapp {
    flex: 0;
    padding: 10px 15px;
}

/* ========================================
   Products Page Layout
   ======================================== */

.page-header {
    background: var(--gradient);
    color: var(--white);
    padding: 40px 0;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Product Top Bar */
.product-top-bar {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-400);
    margin-top: 80px;
}

.product-top-bar-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gray-300);
    color: var(--gray-800);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
}

.btn-back:hover {
    background: var(--gray-400);
    color: var(--gray-900);
}

.btn-back i {
    font-size: 12px;
}

.product-top-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Products Categories Section */
.products-categories-section {
    background: var(--white);
    padding: 15px 0 20px;
    margin-top: 80px;
    border-bottom: 1px solid var(--gray-400);
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gray-300);
    color: var(--gray-800);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 15px;
    transition: var(--transition);
}

.btn-back-home:hover {
    background: var(--gray-400);
    color: var(--gray-900);
}

.btn-back-home i {
    font-size: 12px;
}

.products-categories-section .category-card {
    width: 100px;
    padding: 15px 10px;
}

.products-categories-section .category-card.active {
    background: var(--gradient);
    color: var(--white);
}

.products-categories-section .category-card.active .category-icon {
    background: rgba(255,255,255,0.2);
}

.products-categories-section .category-card.active h3 {
    color: var(--white);
}

.products-categories-section .category-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 8px;
}

.products-categories-section .category-icon i {
    font-size: 18px;
}

.products-categories-section .category-card h3 {
    font-size: 10px;
}

/* Products Section */
.products-section {
    padding-top: 30px;
}

.products-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--gray-900);
}

/* Products Grid Full Width */
.products-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.search-results-info {
    background: var(--gray-300);
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.search-results-info p {
    margin: 0;
    color: var(--gray-800);
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--radius);
}

.no-products i {
    font-size: 64px;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.no-products h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.no-products p {
    color: var(--gray-700);
}

/* ========================================
   Product Detail
   ======================================== */

.product-detail-section {
    background: var(--white);
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.gallery-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--gray-300);
    margin-bottom: 15px;
}

.gallery-carousel {
    height: 450px;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: var(--white);
    font-size: 16px;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
}

.gallery-arrow:hover {
    background: rgba(0,0,0,0.7);
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
}

.thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    flex-shrink: 0;
}

.thumb.active,
.thumb:hover {
    opacity: 1;
    box-shadow: 0 0 0 3px var(--primary);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 10px 0 20px;
}

.product-detail-price {
    margin-bottom: 25px;
}

.product-detail-price .price-old {
    font-size: 18px;
    color: var(--gray-600);
    text-decoration: line-through;
    display: block;
    margin-bottom: 5px;
}

.product-detail-price .price {
    font-size: 32px;
    font-weight: 700;
    color: var(--success-dark);
    display: inline-block;
}

.product-detail-price .discount-badge {
    display: inline-block;
    background: var(--danger);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-left: 10px;
    vertical-align: middle;
}

.product-detail-price .installment {
    font-size: 14px;
    color: var(--gray-700);
    display: block;
    margin-top: 8px;
}

.product-detail-specs {
    margin-bottom: 25px;
}

.product-detail-specs h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--gray-300);
    border-radius: var(--radius-sm);
}

.spec-item i {
    font-size: 24px;
    color: var(--primary);
}

.spec-label {
    font-size: 12px;
    color: var(--gray-700);
    display: block;
}

.spec-value {
    font-weight: 600;
}

.product-detail-stock {
    margin-bottom: 25px;
}

.in-stock {
    color: var(--success-dark);
    font-weight: 500;
}

.out-stock {
    color: var(--danger);
    font-weight: 500;
}

.product-detail-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.product-detail-actions .btn {
    flex: 1;
}

.product-share {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-400);
}

.product-share span {
    color: var(--gray-700);
}

.product-share a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-300);
    border-radius: 50%;
    color: var(--gray-800);
}

.product-share a:hover {
    background: var(--primary);
    color: var(--white);
}

/* Tabs */
.product-tabs {
    background: var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background: var(--white);
    border-bottom: 1px solid var(--gray-400);
}

.tab-btn {
    padding: 15px 30px;
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    color: var(--gray-700);
    position: relative;
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
}

.tabs-content {
    padding: 30px;
    background: var(--white);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.product-description,
.product-specs-full {
    line-height: 1.8;
    color: var(--gray-800);
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
    background: var(--gradient);
    padding: 60px 0;
}

.cta-content {
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* ========================================
   Footer Compacto
   ======================================== */

.footer {
    background: var(--dark);
    color: var(--gray-500);
    padding: 30px 0 15px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
}

.footer-logo i {
    color: var(--primary);
}

.footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--gray-500);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-contact span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.footer-contact i {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-800);
    border-radius: 50%;
    color: var(--gray-500);
    font-size: 16px;
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid var(--gray-800);
    font-size: 13px;
}

/* ========================================
   WhatsApp Float
   ======================================== */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--whatsapp);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ========================================
   Flash Messages
   ======================================== */

.flash-message {
    padding: 15px;
    text-align: center;
    font-weight: 500;
}

.flash-success {
    background: #d4edda;
    color: #155724;
}

.flash-error {
    background: #f8d7da;
    color: #721c24;
}

.flash-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    float: right;
}

/* ========================================
   Utilities
   ======================================== */

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 30px;
}

.py-5 {
    padding: 60px 0;
}

/* Desktop/Mobile visibility */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .product-gallery {
        position: static;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .search-form {
        display: none;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block;
        width: 100%;
        padding-top: 15px;
        margin-top: 15px;
        border-top: 1px solid var(--gray-400);
    }
    
    .mobile-only .nav-link {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 15px;
        background: var(--gray-300);
        border-radius: var(--radius-sm);
    }
    
    .hero-description {
        font-size: 20px;
    }
    
    .flip-card-inner {
        font-size: 13px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-card {
        border-radius: var(--radius-sm);
    }
    
    .product-image-carousel {
        height: 180px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-title {
        font-size: 14px;
    }
    
    .product-actions {
        padding: 0 12px 12px;
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .product-detail-actions {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-contact {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-description {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .hero-content-video .btn {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .flip-card-inner {
        font-size: 11px;
        gap: 6px;
    }
    .flip-card-inner i {
        font-size: 14px;
    }
    
    .categories-scroll-wrapper {
        padding: 0 10px;
    }
    
    .categories-scroll {
        gap: 10px;
    }
    
    .category-card {
        width: 100px;
        padding: 15px 8px;
    }
    
    .category-icon {
        width: 42px;
        height: 42px;
        margin-bottom: 8px;
    }
    
    .category-icon i {
        font-size: 16px;
    }
    
    .category-card h3 {
        font-size: 10px;
    }
    
    .carousel-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .carousel-nav-prev {
        left: 5px;
    }
    
    .carousel-nav-next {
        right: 5px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .section-header p {
        font-size: 14px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image-carousel {
        height: 220px;
    }
    
    .gallery-carousel {
        height: 280px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-contact {
        flex-direction: column;
        gap: 10px;
    }
}
