:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg: #ffffff;
    --surface: #f8fafc;
    --text: #0f172a;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --whatsapp: #25D366;
    --whatsapp-hover: #128C7E;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

/* Header */
.header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 1 auto;
}



.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    padding: 4px;
}

.header-flag {
    height: 24px;
    width: auto;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin: 0;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

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

.nav-whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 50%;
    transition: background 0.2s;
    text-decoration: none;
}

.nav-whatsapp-link:hover {
    background: rgba(37, 211, 102, 0.1);
}

.nav-whatsapp-link svg {
    width: 24px;
    height: 24px;
    color: var(--whatsapp);
}

/* Product Section */
.product-section {
    padding: 48px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

@media (max-width: 968px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Gallery */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: zoom-in;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.main-image-container:hover .main-image {
    transform: scale(1.05);
}

.zoom-hint {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s;
}

.main-image-container:hover .zoom-hint {
    opacity: 1;
}

.thumbnail-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.thumbnail.active {
    border-color: var(--primary);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stock-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--success);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10;
}

.stock-badge.low {
    background: var(--warning);
}

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

/* Product Info */
.product-info h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.product-description {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.bundle-info {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9375rem;
    color: var(--success);
    font-weight: 600;
}

/* Quantity Selector */
.quantity-selector {
    margin-bottom: 24px;
}

.quantity-selector label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
}

.quantity-controls {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    background: var(--surface);
    border: none;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.2s;
    color: var(--text);
}

.qty-btn:hover {
    background: var(--border);
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-controls input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
}

.support-message {
    margin-top: 12px;
    padding: 12px;
    background: var(--surface);
    border-left: 3px solid var(--primary);
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.support-message a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.support-message a:hover {
    text-decoration: underline;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.0625rem;
    cursor: pointer;
    transition: background 0.2s;
    flex: 1;
    min-width: 200px;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.btn-large {
    padding: 18px 32px;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.0625rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: var(--bg);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.0625rem;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.btn-whatsapp:hover {
    background: var(--whatsapp-hover);
}

/* Payment Logos */
.payment-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.payment-badges-img {
    max-width: 100%;
    height: auto;
    max-height: 48px;
    object-fit: contain;
    display: block;
}

.badge-flag-img {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    margin-right: 8px;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Trust Badges */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}

@media (max-width: 640px) {
    .trust-badges {
        grid-template-columns: 1fr;
    }
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.trust-badge svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

/* Lab Report Section */
.lab-report-section {
    padding: 64px 0;
    background: var(--surface);
}

.lab-report-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 48px;
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.lab-icon {
    color: var(--primary);
    margin-bottom: 16px;
}

.lab-report-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.lab-report-card p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.lab-form {
    text-align: left;
    background: #f8fafc;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.lab-form .form-group {
    margin-bottom: 20px;
}

.lab-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.lab-form input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
}

.lab-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkbox-group {
    margin-top: 24px;
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.5;
    position: relative;
    padding-left: 30px;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: white;
    border: 2px solid var(--border);
    border-radius: 4px;
    transition: all 0.2s;
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: var(--primary);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.success-message {
    margin-top: 24px;
    padding: 24px;
    background: #ecfdf5;
    border: 1px solid var(--success);
    border-radius: 8px;
    text-align: center;
}

.success-message p {
    color: var(--success);
    font-weight: 600;
    margin-bottom: 16px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--success);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-download:hover {
    background: #059669;
}

/* Details Section */
.details-section {
    padding: 64px 0;
    background: var(--bg);
}

.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.accordion-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.0625rem;
    transition: background 0.2s;
}

.accordion-header:hover {
    background: var(--bg);
}

.accordion-icon {
    transition: transform 0.3s;
    width: 20px;
    height: 20px;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-body {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.accordion-body ul {
    margin-top: 12px;
    padding-left: 20px;
}

.accordion-body li {
    margin-bottom: 8px;
}



/* Footer */
.footer {
    background: var(--text);
    color: var(--text-secondary);
    padding: 32px 0;
    font-size: 0.875rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

#footer-email {
    margin: 0;
    font-size: 0.9375rem;
}

.footer-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--whatsapp);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 1px solid var(--whatsapp);
    border-radius: 50px;
    transition: all 0.2s;
}

.footer-whatsapp-btn:hover {
    background: var(--whatsapp);
    color: white;
}



/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Zoom Modal */
.zoom-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.active .zoom-modal-content {
    transform: scale(1);
}

.zoom-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

/* Cart Modal */
.modal-content {
    background: var(--bg);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--surface);
}

.modal-content h2 {
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.cart-inactive-message {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-secondary);
    background: var(--surface);
    border-radius: 8px;
    margin-bottom: 24px;
}

.cart-summary {
    background: var(--surface);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9375rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-weight: 700;
    font-size: 1.125rem;
}

.order-form .form-group {
    margin-bottom: 16px;
}

.order-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.order-form input,
.order-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9375rem;
    transition: border-color 0.2s;
}

.order-form input:focus,
.order-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.payment-notice {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .header-content {
        gap: 8px;
    }

    .logo {
        flex: 0 1 auto;
    }


    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 16px 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        display: none;
    }
    
    .nav.active {
        display: flex;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-primary, .btn-whatsapp {
        width: 100%;
    }
    
    .price {
        font-size: 2.5rem;
    }
    
    .modal-content {
        width: 100%;
        max-width: none;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        padding: 24px;
    }
    
    .zoom-modal-content {
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .lab-report-card {
        padding: 32px 24px;
    }
}