:root {
    /* Emerald Color Palette */
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;

    /* Gray Color Palette */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --font-sans: 'Inter', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
}

body {
    background-color: var(--gray-50);
    color: var(--gray-800);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}
@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

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

.ml-icon {
    margin-left: 0.5rem;
}

/* --- Header --- */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--emerald-100);
    transition: all 0.3s;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

@media (min-width: 768px) {
    .header-inner {
        height: 5rem;
    }
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--emerald-600);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo a i {
    transition: transform 0.3s;
}
.logo a:hover i {
    transform: rotate(12deg);
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
}

.nav-link {
    color: var(--gray-600);
    font-weight: 500;
    transition: color 0.2s;
}
.nav-link:hover {
    color: var(--emerald-600);
}

.call-now-link {
    color: var(--emerald-600);
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.call-now-link:hover {
    color: var(--emerald-700);
}
.icon-circle {
    background-color: var(--emerald-100);
    padding: 0.5rem;
    border-radius: 9999px;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-whatsapp {
    background-color: var(--emerald-500);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3), 0 4px 6px -2px rgba(16, 185, 129, 0.15);
}
.btn-whatsapp:hover {
    background-color: var(--emerald-600);
    transform: translateY(-2px);
}

.mobile-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.mobile-call-btn {
    background-color: var(--emerald-100);
    color: var(--emerald-700);
    padding: 0.625rem;
    border-radius: 9999px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s;
}
.mobile-call-btn:hover {
    background-color: var(--emerald-200);
}

.mobile-whatsapp-btn {
    background-color: var(--emerald-500);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}
.mobile-whatsapp-btn:hover {
    background-color: var(--emerald-600);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    background-color: var(--emerald-600);
    color: white;
    padding-top: 6rem;
    padding-bottom: 8rem;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .hero-section {
        padding-top: 8rem;
        padding-bottom: 10rem;
    }
}

.hero-bg-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.decor-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(64px);
}

.top-right {
    top: -6rem;
    right: -6rem;
    width: 24rem;
    height: 24rem;
    background-color: var(--emerald-500);
    opacity: 0.5;
}

.middle-left {
    top: 50%;
    left: -6rem;
    width: 18rem;
    height: 18rem;
    background-color: var(--emerald-400);
    opacity: 0.3;
}

.decor-line {
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 100%;
    height: 0.25rem;
    background-color: rgba(255, 255, 255, 0.2);
    filter: blur(4px);
    transform: rotate(-3deg) translateY(1rem);
}

.hero-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .hero-container {
        flex-direction: row;
    }
}

.hero-content {
    width: 100%;
    text-align: center;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .hero-content {
        width: 50%;
        text-align: left;
        margin-bottom: 0;
    }
}

.hero-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background-color: rgba(16, 185, 129, 0.5);
    border: 1px solid var(--emerald-400);
    color: var(--emerald-50);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hero-badge i {
    color: #fde047; /* yellow-300 */
    margin-right: 0.25rem;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

.hero-title {
    font-size: 2.25rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

@media (min-width: 768px) {
    .hero-title { font-size: 3rem; }
}
@media (min-width: 1024px) {
    .hero-title { font-size: 3.75rem; }
}

.text-highlight {
    color: var(--emerald-200);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--emerald-50);
    margin-bottom: 2rem;
    max-width: 32rem;
    opacity: 0.9;
    line-height: 1.625;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem;
        margin-left: 0;
        margin-right: 0;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}
@media (min-width: 768px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

.btn-primary {
    background-color: white;
    color: var(--emerald-600);
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-primary:hover {
    background-color: var(--emerald-50);
    transform: translateY(-4px);
}
.btn-primary i {
    margin-right: 0.5rem;
    transition: transform 0.3s;
}
.btn-primary:hover i {
    transform: scale(1.1);
}

.btn-secondary {
    background-color: rgba(4, 120, 87, 0.8);
    color: white;
    border: 1px solid rgba(52, 211, 153, 0.5);
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-secondary:hover {
    background-color: var(--emerald-800);
}

.hero-image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

@media (min-width: 768px) {
    .hero-image-wrapper {
        width: 50%;
        justify-content: flex-end;
    }
}

.hero-image-container {
    position: relative;
    width: 18rem;
    height: 18rem;
    border-radius: 3rem;
    border: 4px solid rgba(52, 211, 153, 0.3);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top right, var(--emerald-800), var(--emerald-600));
    backdrop-filter: blur(4px);
    transform: rotate(3deg);
    transition: transform 0.5s;
}

@media (min-width: 640px) {
    .hero-image-container {
        width: 24rem;
        height: 24rem;
    }
}

.hero-image-container:hover {
    transform: rotate(0deg);
}

.texture-overlay {
    position: absolute;
    inset: 0;
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
    mix-blend-mode: overlay;
}

.icon-large {
    font-size: 6rem;
    color: white;
    opacity: 0.9;
    filter: drop-shadow(0 10px 8px rgba(0,0,0,0.04));
}

@media (min-width: 640px) {
    .icon-large { font-size: 8rem; }
}

.pulse-ring {
    position: absolute;
    inset: 0;
    border: 2px solid var(--emerald-300);
    border-radius: 3rem;
    opacity: 0.2;
    animation: ping 3s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.bottom-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.bottom-wave svg {
    position: relative;
    display: block;
    width: 100%;
    height: 3rem;
}

@media (min-width: 768px) {
    .bottom-wave svg { height: 5rem; }
}

.wave-fill {
    fill: var(--gray-50);
}

/* --- Prescription Section --- */
.prescription-section {
    padding: 4rem 0;
    background-color: var(--gray-50);
    position: relative;
    margin-top: -2.5rem;
    z-index: 20;
}

.prescription-card {
    background-color: white;
    border: 1px solid var(--gray-100);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(229, 231, 235, 0.5), 0 10px 10px -5px rgba(229, 231, 235, 0.04);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s;
    max-width: 56rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .prescription-card { padding: 3rem; }
}

.prescription-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.card-top-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0.5rem;
    background: linear-gradient(to right, var(--emerald-400), var(--emerald-600));
}

.camera-icon-wrapper {
    width: 5rem;
    height: 5rem;
    background-color: var(--emerald-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    transition: transform 0.5s;
}

.prescription-card:hover .camera-icon-wrapper {
    transform: scale(1.1);
}

.camera-icon-wrapper i {
    font-size: 1.875rem;
    color: var(--emerald-600);
}

.prescription-card h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.prescription-desc {
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.125rem;
}

.btn-upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--emerald-600);
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s;
    box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.3);
}

.btn-upload:hover {
    background-color: var(--emerald-700);
    transform: translateY(-4px);
}

/* --- Gallery Section --- */
.gallery-section {
    padding: 5rem 0;
    background-color: var(--gray-50);
}

.gallery-header {
    margin-bottom: 4rem;
}

.gallery-subtitle {
    color: var(--emerald-600);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
}

.gallery-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .gallery-header h2 { font-size: 3rem; }
}

.divider {
    width: 6rem;
    height: 0.25rem;
    background-color: var(--emerald-500);
    margin: 0 auto 1.5rem auto;
    border-radius: 9999px;
}

.gallery-desc {
    color: var(--gray-600);
    max-width: 42rem;
    margin: 0 auto;
    font-size: 1.125rem;
}

/* Filters */
.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid var(--gray-200);
    background-color: white;
    color: var(--gray-600);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    font-family: inherit;
    font-size: 1rem;
}

.filter-btn:hover {
    border-color: var(--emerald-500);
    color: var(--emerald-600);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.filter-btn.active {
    background-color: var(--emerald-600);
    color: white;
    border-color: var(--emerald-600);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3), 0 4px 6px -2px rgba(16, 185, 129, 0.15);
}

/* Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem;}
}

/* Product Card */
.product-card {
    background-color: white;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
    transform: translateY(0);
}

.product-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-8px);
}

.card-image-placeholder {
    height: 14rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.bg-otc { background: linear-gradient(to bottom right, var(--emerald-50), white); }
.bg-wellness { background: linear-gradient(to bottom right, var(--emerald-50), white); }
.bg-baby { background: linear-gradient(to bottom right, var(--emerald-50), white); }

.hover-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--emerald-100);
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .hover-overlay {
    opacity: 0.2;
}

.card-icon {
    font-size: 3.75rem;
    color: var(--emerald-400);
    transition: all 0.5s;
    filter: drop-shadow(0 4px 3px rgba(0,0,0,0.07));
    position: relative;
    z-index: 2;
}

.product-card:hover .card-icon {
    transform: scale(1.25);
    color: var(--emerald-500);
}

.card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: white;
}

.card-badge {
    position: absolute;
    top: -1.25rem;
    right: 2rem;
    background-color: white;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-100);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--emerald-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    margin-top: 0.5rem;
}

.card-content p {
    color: var(--gray-500);
    font-size: 1rem;
    margin-bottom: 2rem;
    flex: 1;
    line-height: 1.625;
}

.btn-check {
    width: 100%;
    text-align: center;
    background-color: var(--emerald-50);
    color: var(--emerald-700);
    padding: 0.875rem;
    border-radius: 0.75rem;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    display: block;
}

.btn-check:hover {
    background-color: var(--emerald-600);
    color: white;
}

/* Filter animation classes */
.product-card {
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.95);
}

.product-card.fade-in {
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(15px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* --- Floating WhatsApp --- */
.floating-whatsapp {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background-color: #22c55e; /* green-500 */
    color: white;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 50;
    transition: transform 0.3s;
    animation: customBounce 2.5s infinite;
}

@media (min-width: 768px) {
    .floating-whatsapp {
        bottom: 2rem;
        right: 2rem;
    }
}

.floating-whatsapp i {
    font-size: 2.25rem;
    transition: transform 0.3s;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    animation: none;
}

.floating-whatsapp:hover i {
    transform: rotate(12deg);
}

@keyframes customBounce {
    0%, 100% {
        transform: translateY(-15%);
        animation-timing-function: cubic-bezier(0.8,0,1,1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0,0,0.2,1);
    }
}

/* --- Footer --- */
.footer {
    background-color: var(--gray-900);
    color: var(--gray-400);
    padding: 4rem 0;
    border-top: 1px solid var(--gray-800);
}

.footer-logo {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo i {
    color: var(--emerald-500);
    font-size: 1.875rem;
}

.footer-logo span {
    font-size: 1.875rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.025em;
}

.footer-desc {
    margin-bottom: 2rem;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.125rem;
}

.copyright {
    margin-top: 2.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Scrollbar styling (optional but in original) */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
::-webkit-scrollbar-thumb {
    background: #10b981; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #059669; 
}
