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

:root {
    --primary-color: #1877f2;
    --secondary-color: #25d366;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-color: #333;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

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

/* Header */
.header {
    background: #fff;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo,
.logo a {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    max-width: 260px;
    min-width: 0;
}

.logo-img {
    display: block;
    width: auto;
    height: 64px;
    max-width: 240px;
    object-fit: contain;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    list-style: none;
    gap: 2rem;
    min-width: 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 0 0 auto;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.social-buttons {
    display: flex;
    gap: 1rem;
}

.btn-facebook,
.btn-whatsapp {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: var(--transition);
}

.btn-facebook {
    display: none;
    background-color: var(--primary-color);
}

.btn-whatsapp {
    display: flex;
    background-color: var(--secondary-color);
}

.btn-header-quote svg {
    display: none;
}

.btn-header-quote,
.btn-inquiry {
    min-height: 42px;
    padding: 0 1rem;
    font-size: 15px;
    line-height: 1;
}

.btn-header-quote {
    min-width: 104px;
    justify-content: center;
}

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

/* Hero Section */
.hero {
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-content {
    flex: 1;
    padding: 2rem;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

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

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

.hero-image {
    flex: 1;
    padding: 2rem;
}

.hero-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.about-text p {
    margin-bottom: 2rem;
    color: #666;
}

.features {
    display: grid;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-text h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.feature-text p {
    color: #666;
    margin: 0;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Products Section */
.products {
    padding: 5rem 0;
}

.product-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

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

.image-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.carousel-image.active {
    opacity: 1;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.carousel-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.video-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.product-info {
    padding: 0.85rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    min-height: calc(1.5rem * 1.3 * 2);
}

.product-price {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.spec-value {
    font-weight: 600;
    color: var(--dark-color);
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.btn-detail,
.btn-inquiry {
    flex: 1;
    min-height: 42px;
    padding: 0 1rem;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    white-space: nowrap;
}

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

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

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

.lead-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.48);
    z-index: 2000;
}

.lead-modal.active {
    display: flex;
}

.lead-modal-card {
    width: min(760px, 100%);
    max-height: min(88vh, 860px);
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

.lead-modal-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 12px;
    background: #fff;
}

.lead-modal-header h3 {
    margin: 0;
    font-size: 22px;
    color: #111827;
}

.lead-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    background: #fff;
    color: #6b7280;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
}

.lead-modal-close:hover {
    background: #f3f4f6;
    color: #111;
}

.lead-modal-body {
    padding: 24px;
}

.lead-context-box {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid #e5edf8;
    border-radius: 8px;
    background: #f8fbff;
}

.lead-context-label,
.lead-context-url span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.lead-context-box strong {
    color: #111827;
    font-size: 15px;
    line-height: 1.45;
}

.lead-context-url {
    display: flex;
    gap: 8px;
    min-width: 0;
    color: #64748b;
    font-size: 12px;
}

.lead-context-url em {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-style: normal;
}

.lead-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.lead-form-grid.compact {
    margin-bottom: 12px;
}

.lead-form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.lead-form-field.full {
    grid-column: 1 / -1;
}

.lead-form-field label {
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

.lead-form-field input,
.lead-form-field select,
.lead-form-field textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 11px 12px;
    color: #111827;
    font: inherit;
    background: #fff;
}

.lead-form-field textarea {
    resize: vertical;
}

.lead-optional-details {
    margin-top: 4px;
    padding-top: 4px;
}

.lead-optional-details summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.lead-optional-details[open] summary {
    margin-bottom: 12px;
}

.lead-form-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}

.lead-submit-btn {
    min-width: 140px;
    border: 0;
    border-radius: 6px;
    padding: 12px 18px;
    background: var(--secondary-color);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.lead-submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.lead-form-status {
    color: #64748b;
    font-size: 13px;
}

.lead-form-status.success {
    color: #15803d;
}

.lead-form-status.error {
    color: #dc2626;
}

@media (max-width: 640px) {
    .lead-modal {
        align-items: flex-end;
        padding: 12px;
    }

    .lead-modal-card {
        max-height: 92vh;
        border-radius: 10px;
    }

    .lead-modal-header,
    .lead-modal-body {
        padding: 18px;
    }

    .lead-form-grid {
        grid-template-columns: 1fr;
    }

    .lead-form-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

/* News Section */
.news-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, #fff 0%, #f7f8fa 100%);
}

.news-subtitle {
    max-width: 680px;
    margin: -1.5rem auto 2.25rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 100%;
    color: inherit;
    text-decoration: none;
    background: #f8f8f8;
    border: 1px solid #d8d8d8;
    border-radius: 20px;
    box-shadow: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: #bdbdbd;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.news-card-media {
    width: 100%;
    height: 180px;
    min-height: 180px;
    background: #edf2f7;
}

.news-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.news-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.1rem;
}

.news-card-date {
    margin-bottom: 0.5rem;
    color: #a6a6a6;
    font-size: clamp(0.9rem, 0.95vw, 1.05rem);
    font-weight: 400;
    letter-spacing: 0.08em;
}

.news-card h3 {
    margin: 0 0 0.75rem;
    color: #050505;
    font-size: clamp(1.05rem, 1.25vw, 1.35rem);
    line-height: 1.45;
    letter-spacing: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card p {
    margin: 0 0 0.75rem;
    color: #8a8a8a;
    font-size: clamp(0.88rem, 0.95vw, 1rem);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    display: none;
}

.news-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.9rem;
}

.news-more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 1.25rem;
    color: var(--dark-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid var(--dark-color);
    border-radius: 6px;
    transition: var(--transition);
}

.news-more-link:hover {
    color: white;
    background: var(--dark-color);
}

.news-empty {
    grid-column: 1 / -1;
    padding: 2rem 1.25rem;
    color: var(--text-light);
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
}

@media (max-width: 1100px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .news-card-media {
        height: 210px;
        min-height: 210px;
    }
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: #fff;
}

.contact-section {
    background-color: #fff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-text h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.contact-text p {
    color: #666;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form.disabled {
    opacity: 0.75;
}

.form-status {
    display: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    background: #f8d7da;
    color: #842029;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.contact-form.disabled .form-status {
    display: block;
}

.contact-form.disabled .btn-submit,
.contact-form.disabled .submit-btn {
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: #1565c0;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
}

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

.social-links a svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    transition: var(--transition);
}

.close:hover {
    color: var(--dark-color);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.product-modal-content {
    max-width: 600px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content,
    .hero-image {
        flex: 1;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .social-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-specs {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 1rem;
    }

    .hero {
        padding-top: 120px;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

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

    .product-filter {
        flex-wrap: wrap;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.about-content,
.products-grid,
.contact-content {
    animation: fadeIn 0.6s ease;
}

/* Loading States */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Success/Error Messages */
.success-message,
.error-message {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    display: none;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success-message.active,
.error-message.active {
    display: block;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.active {
    display: flex;
}

.scroll-top:hover {
    background: #1565c0;
    transform: translateY(-3px);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* H5 layout polish */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .header {
        padding: 10px 12px;
    }

    .nav {
        width: 100%;
        padding: 0;
        gap: 10px;
    }

    .logo,
    .logo a {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo-img {
        height: 48px;
        width: auto;
        max-width: 160px;
    }

    .nav-menu {
        width: 100%;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 14px;
        overflow-x: auto;
        padding: 2px 2px 8px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .nav-menu li {
        flex: 0 0 auto;
    }

    .nav-menu a {
        white-space: nowrap;
        font-size: 13px;
    }

    .nav-right {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .language-switcher {
        flex: 0 1 auto;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .language-switcher select {
        max-width: 142px;
        min-height: 36px;
        padding: 0.4rem 0.55rem;
        font-size: 13px;
    }

    .social-buttons {
        flex: 1 1 auto;
        justify-content: flex-end;
        gap: 8px;
    }

    .btn-facebook {
        display: none !important;
    }

    .btn-whatsapp {
        min-height: 36px;
        padding: 0.4rem 0.65rem;
        font-size: 13px;
        white-space: nowrap;
    }

    .btn-header-quote {
        min-height: 42px;
        padding: 0 0.9rem;
        font-size: 14px;
    }

    .search-section {
        padding: 168px 16px 34px;
    }

    .search-title {
        font-size: 22px;
        line-height: 1.35;
        margin-bottom: 18px;
    }

    .search-box {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .search-input,
    .search-btn {
        width: 100%;
        min-height: 46px;
    }

    .search-tags {
        justify-content: flex-start;
        gap: 8px;
    }

    .search-tag {
        font-size: 12px;
        padding: 5px 10px;
    }

    .process-section,
    .products,
    .news-section,
    .service-section,
    .about,
    .contact-section {
        padding: 44px 16px;
    }

    .section-title,
    .section-head h2 {
        font-size: 24px;
        margin-bottom: 24px;
        letter-spacing: 0;
    }

    .process-list,
    .service-list {
        gap: 16px;
    }

    .news-subtitle {
        margin-top: -12px;
        margin-bottom: 24px;
    }

    .process-item {
        flex: 1 1 150px;
        min-width: 145px;
    }

    .products-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .product-card {
        border-radius: 8px;
    }

    .product-card:hover {
        transform: none;
    }

    .product-image,
    .product-card img {
        height: 220px;
    }

    .product-info {
        padding: 0.9rem 1rem 1rem;
    }

    .product-info h3 {
        font-size: 1.1rem;
        line-height: 1.35;
        min-height: calc(1.1rem * 1.35 * 2);
    }

    .product-price {
        font-size: 1.05rem;
    }

    .product-specs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .product-actions {
        flex-direction: row;
        gap: 0.7rem;
    }

    .btn-detail,
    .btn-inquiry {
        min-height: 42px;
        padding: 0.65rem 0.7rem;
        font-size: 13px;
    }

    .about-container,
    .contact-wrap,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-left h2 {
        font-size: 24px;
    }

    .about-right img {
        max-height: 280px;
        object-fit: cover;
    }

    .section-head {
        margin-bottom: 34px;
    }

    .contact-info .info-desc {
        margin-bottom: 28px;
    }

    .info-list li {
        margin-bottom: 22px;
        padding-bottom: 22px;
    }

    .info-list div strong {
        font-size: 15px;
        word-break: break-word;
    }

    .footer {
        padding: 38px 16px 18px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .scroll-top {
        right: 1rem;
        bottom: 1rem;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 420px) {
    .search-section {
        padding-top: 176px;
    }

    .btn-whatsapp span,
    .btn-whatsapp:not(.btn-inquiry):not(.btn-header-quote) {
        font-size: 12px;
    }

    .product-image,
    .product-card img {
        height: 200px;
    }

    .product-specs,
    .product-actions {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-direction: column;
    }
}

.front-pager {
    margin: 32px 0;
    text-align: center;
}

.pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.pager a,
.pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #111827;
    text-decoration: none;
    font-size: 14px;
}

.pager a:hover {
    border-color: #111827;
}

.pager .active {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.pager .disabled {
    color: #9ca3af;
}

.wa-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 100px;
    background: rgb(37, 211, 102);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    text-decoration: none;
}

.wa-float:hover {
    background: rgb(30, 190, 90);
}

html[dir="rtl"] .wa-float {
    right: auto;
    left: 20px;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .social-buttons,
    .carousel-controls,
    .video-btn,
    .wa-float {
        display: none;
    }

    .hero {
        background: white;
        color: var(--text-color);
    }
}
