:root {
    --primary-color: #2563eb;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --success-color: #10b981;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --white-color: #ffffff;
    --text-color: #374151;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    transition: var(--transition);
}

.announcement-bar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    padding: 10px 0;
    font-size: 14px;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.announcement-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.announcement-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header {
    background: var(--white-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.header.sticky {
    box-shadow: var(--shadow-lg);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    gap: 20px;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-brand i {
    font-size: 32px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-list a {
    position: relative;
    font-weight: 500;
    color: var(--dark-color);
    padding: 5px 0;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-color);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    position: relative;
}

.search-box form {
    display: flex;
}

.search-input {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px 0 0 20px;
    outline: none;
    width: 200px;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary-color);
    width: 250px;
}

.search-btn {
    padding: 8px 15px;
    background: var(--primary-color);
    color: var(--white-color);
    border-radius: 0 20px 20px 0;
    cursor: pointer;
}

.search-btn:hover {
    background: var(--secondary-color);
}

.lang-btn {
    padding: 8px 15px;
    background: var(--light-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.lang-btn:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

.nav-icon {
    position: relative;
    font-size: 20px;
    color: var(--dark-color);
    padding: 8px;
}

.nav-icon:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.cart-icon {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger-color);
    color: var(--white-color);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--dark-color);
}

.alert {
    padding: 15px 20px;
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.5s ease;
}

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

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(16, 185, 129, 0.9)),
                url('/assets/images/hero-bg.jpg') center/cover no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: var(--white-color);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(16, 185, 129, 0.8));
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.6;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 80px 0;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: var(--white-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--light-color);
}

.btn-whatsapp {
    background: #25d366;
    color: var(--white-color);
}

.btn-whatsapp:hover {
    background: #20ba5a;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--dark-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--white-color);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: fadeInScale 0.5s ease;
}

@keyframes fadeInScale {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--primary-color);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    color: var(--white-color);
    transform: rotateY(360deg);
}

.category-card h3 {
    font-size: 16px;
    font-weight: 600;
}

.products-carousel {
    position: relative;
}

.carousel-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--white-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--light-color);
}

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

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

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--white-color);
}

.badge-out-of-stock {
    background: var(--danger-color);
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: var(--shadow);
    display: none;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

.prev-btn {
    left: -20px;
}

.next-btn {
    right: -20px;
}

.discount-section {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: var(--white-color);
}

.discount-banner {
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 1s ease;
}

.discount-content h2 {
    font-size: 42px;
    margin-bottom: 10px;
}

.discount-content p {
    font-size: 24px;
    margin-bottom: 20px;
}

.quick-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.quick-help-card {
    background: var(--light-color);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.quick-help-card:hover {
    background: var(--secondary-color);
    color: var(--white-color);
    transform: scale(1.05);
}

.quick-help-card i {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.quick-help-card:hover i {
    color: var(--white-color);
}

.consultation-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
}

.consultation-cta h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.consultation-cta p {
    font-size: 18px;
    margin-bottom: 25px;
}

.reviews-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--white-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    animation: fadeIn 0.8s ease;
}

.review-stars {
    color: #fbbf24;
    margin-bottom: 15px;
}

.review-text {
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.8;
}

.review-author {
    font-weight: 600;
    color: var(--primary-color);
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.contact-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer {
    background: var(--dark-color);
    color: var(--white-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--white-color);
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-5px);
}

.contact-info li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 15px;
}

.payment-methods {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.payment-methods img {
    height: 30px;
    background: var(--white-color);
    padding: 5px;
    border-radius: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 24px;
    box-shadow: var(--shadow-lg);
    animation: pulse 2s ease-in-out infinite;
    position: relative;
}

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

.call-btn {
    background: var(--primary-color);
}

.cart-float-btn {
    background: var(--secondary-color);
}

.float-btn:hover {
    transform: scale(1.1);
}

.chatbot-trigger {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white-color);
    font-size: 24px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    animation: pulse 2s ease-in-out infinite;
}

.chatbot-container {
    position: fixed;
    bottom: 100px;
    left: 20px;
    width: 350px;
    max-width: calc(100% - 40px);
    background: var(--white-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    display: none;
    flex-direction: column;
    max-height: 500px;
}

.chatbot-container.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

.chatbot-header {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 15px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-close {
    margin-left: auto;
    color: var(--white-color);
    font-size: 20px;
}

.chatbot-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    max-height: 350px;
}

.chatbot-message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 8px;
    max-width: 80%;
}

.bot-message {
    background: var(--light-color);
    margin-right: auto;
}

.user-message {
    background: var(--primary-color);
    color: var(--white-color);
    margin-left: auto;
}

.chatbot-footer {
    display: flex;
    padding: 15px;
    border-top: 1px solid var(--border-color);
}

.chatbot-footer input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    outline: none;
}

.chatbot-footer button {
    padding: 10px 15px;
    background: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white-color);
        box-shadow: var(--shadow-lg);
        padding: 20px;
    }

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

    .nav-list {
        flex-direction: column;
        gap: 15px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .search-input {
        width: 150px;
    }

    .search-input:focus {
        width: 180px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .carousel-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .floating-buttons {
        right: 10px;
        bottom: 10px;
    }

    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

.text-center {
    text-align: center;
}
