/* ============================================
   COMPONENTS - PREMIUM UI ELEMENTS
   ============================================ */

/* ========== NAVIGATION ========== */

.navbar {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-xs);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    transition: all var(--transition-normal);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    border-bottom-color: transparent;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-heading);
    font-weight: var(--weight-extrabold);
    color: var(--navy);
    transition: transform var(--transition-normal);
    letter-spacing: -0.02em;
}

.logo:hover {
    transform: scale(1.03);
    color: var(--navy);
}

.logo img {
    height: 52px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo span {
    display: inline;
    font-size: var(--text-lg);
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 768px) {
    .logo span {
        font-size: var(--text-2xl);
    }
}

.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    font-size: var(--text-xl);
    color: var(--navy);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    transition: background var(--transition-normal);
}

.mobile-menu-toggle:hover {
    background: var(--bg-light);
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    padding: var(--space-4);
    z-index: var(--z-dropdown);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

.nav-menu.active {
    display: flex;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
        flex-direction: row;
        position: static;
        box-shadow: none;
        padding: 0;
        gap: var(--space-1);
        border-radius: 0;
    }
}

.nav-link {
    padding: var(--space-3) var(--space-4);
    color: var(--text-secondary);
    font-weight: var(--weight-medium);
    transition: all var(--transition-normal);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    letter-spacing: 0.01em;
}

.nav-link:hover {
    color: var(--primary);
    background-color: var(--primary-subtle);
}

.nav-link.active {
    color: var(--primary);
    font-weight: var(--weight-semibold);
}

@media (min-width: 768px) {
    .nav-link {
        padding: var(--space-2) var(--space-4);
    }
    
    .nav-link:hover {
        background-color: transparent;
    }
    
    .nav-link.active {
        background-color: transparent;
        position: relative;
    }

    .nav-link.active::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: var(--space-4);
        right: var(--space-4);
        height: 2px;
        background: linear-gradient(90deg, var(--primary), var(--accent-light));
        border-radius: var(--radius-full);
    }
}

/* ========== BUTTONS ========== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    text-align: center;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.btn-sm {
    padding: 8px 18px;
    font-size: var(--text-xs);
    border-radius: var(--radius-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(43, 125, 195, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--navy) 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 125, 195, 0.35);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--border-medium);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Inquire button - blue instead of green */
.btn-whatsapp {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(43, 125, 195, 0.2);
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(43, 125, 195, 0.3);
}

/* ========== CARDS ========== */

.category-card,
.feature-card {
    background-color: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: all var(--transition-slow);
}

.product-card {
    background-color: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    transition: all var(--transition-slow);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.category-card:hover,
.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: transparent;
}

/* Category Cards */
.category-card {
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent-light));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-4);
    color: var(--primary);
}

.category-card h3 {
    font-size: var(--text-2xl);
    color: var(--navy);
    margin-bottom: var(--space-3);
}

.category-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

.category-link {
    color: var(--primary);
    font-weight: var(--weight-semibold);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    transition: all var(--transition-normal);
}

.category-card:hover .category-link {
    gap: var(--space-3);
}

/* Feature Cards */
.feature-card {
    text-align: center;
    position: relative;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-subtle) 0%, var(--cta-light) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    margin: 0 auto var(--space-5);
    color: var(--primary);
    transition: all var(--transition-slow);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    transform: scale(1.05);
}

.feature-card h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
    font-weight: var(--weight-semibold);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}

/* ========== PRODUCT CARDS ========== */

.product-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    background-color: var(--bg-light);
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.product-category-tag {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    padding: 4px 12px;
    background: rgba(15, 42, 68, 0.8);
    color: var(--white);
    font-size: 11px;
    font-weight: var(--weight-semibold);
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
    letter-spacing: 0.03em;
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
}

.product-badge {
    display: inline-block;
    padding: 4px 14px;
    background: linear-gradient(135deg, var(--primary-subtle), var(--cta-light));
    color: var(--navy);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-3);
}

.product-name {
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-1);
    color: var(--text-primary);
    line-height: var(--leading-tight);
}

.product-model {
    font-size: var(--text-xs);
    color: var(--text-light);
    margin-bottom: var(--space-2);
    font-style: italic;
}

.product-model-detail {
    font-size: var(--text-sm);
    color: var(--primary);
    font-weight: var(--weight-medium);
    margin-bottom: var(--space-4);
}

.product-desc-short {
    color: var(--text-secondary);
    font-size: var(--text-xs);
    margin-bottom: var(--space-4);
    line-height: var(--leading-relaxed);
    flex-grow: 1;
}

.product-description {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
    line-height: var(--leading-relaxed);
}

.product-price {
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--primary);
    margin-top: auto;
    margin-bottom: var(--space-4);
}

.product-actions,
.product-card-actions {
    display: flex;
    gap: var(--space-2);
    margin-top: auto;
}

.product-card-actions .btn {
    flex: 1;
    text-align: center;
    font-size: 11px;
    padding: 8px 12px;
}

/* ========== BADGES ========== */

.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    border-radius: var(--radius-full);
}

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

.badge-category {
    background-color: var(--primary-subtle);
    color: var(--navy);
}

/* ========== CONTACT ITEMS ========== */

.contact-item {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.contact-icon {
    font-size: var(--text-3xl);
    flex-shrink: 0;
    color: var(--primary);
}

.contact-item h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
    color: var(--navy);
}

.contact-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: var(--leading-relaxed);
}

/* ========== SOCIAL LINKS ========== */

.social-links {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.social-links a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    color: #94A3B8;
    font-size: var(--text-lg);
    transition: all var(--transition-normal);
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(43, 125, 195, 0.3);
}

/* ========== FLOATING WHATSAPP ========== */

.floating-whatsapp {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px;
    height: 58px;
    background-color: var(--whatsapp);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    z-index: var(--z-fixed);
    transition: all var(--transition-normal);
    text-decoration: none;
    animation: pulseWhatsApp 2s infinite;
}

@keyframes pulseWhatsApp {
    0% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35); }
    50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.55); }
    100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35); }
}

.floating-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    color: var(--white);
    transform: scale(1.1);
    animation: none;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

/* ========== AGE FILTER BUTTONS ========== */

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.age-filter-buttons {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.age-filter-btn {
    padding: 5px 14px;
    background-color: var(--bg-lighter);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.age-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.age-filter-btn.active {
    background: linear-gradient(135deg, var(--navy), var(--primary));
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(15, 42, 68, 0.2);
}

/* ========== WHATSAPP HERO BUTTON ========== */

.btn-whatsapp-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--whatsapp) 0%, #1da851 100%);
    color: var(--white);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    line-height: 1.4;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp-hero:hover {
    background: linear-gradient(135deg, #1da851 0%, #128c3e 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ========== PRODUCT AVAILABILITY ========== */

.product-availability {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(37, 211, 102, 0.1);
    color: #16a34a;
    font-size: 11px;
    font-weight: var(--weight-semibold);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-3);
    letter-spacing: 0.03em;
}

.product-availability-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(37, 211, 102, 0.1);
    color: #16a34a;
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}

.product-availability-detail.out-of-stock {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}
