:root {
    /* Rich Emerald Palette - LIGHT MODE */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --text-primary: #1e293b;
    --text-muted: #64748b;

    /* Greens */
    --accent: #16a34a;
    --accent-hover: #15803d;
    --dark-green: #022c22;
    --forest-green: #064e3b;
    --neon-green: #4ade80;

    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(22, 163, 74, 0.1);

    /* Specific areas */
    --testimonial-bg: #f0fdf4;
    --icon-bg: #f0fdf4;
    --shadow-color: rgba(0, 0, 0, 0.03);
    --card-border: rgba(22, 163, 74, 0.05);
}

[data-theme="dark"] {
    /* DARK MODE */
    --bg-primary: #0b1120;
    --bg-secondary: #0f172a;
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;

    --glass-bg: rgba(15, 23, 42, 0.95);
    --glass-border: rgba(74, 222, 128, 0.1);

    --testimonial-bg: #090e17;
    --icon-bg: rgba(22, 163, 74, 0.15);
    --shadow-color: rgba(0, 0, 0, 0.4);
    --card-border: rgba(255, 255, 255, 0.05);
}

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

html {
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main[role="main"] {
    flex: 1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

.py-section {
    padding: 6rem 0;
}

/* Typography */
h1,
h2,
h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px var(--shadow-color);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: height 0.3s ease;
}

.navbar.scrolled .nav-content {
    height: 70px;
}

.logo img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
    border-radius: 16px;
    background-color: #ffffff;
    padding: 6px 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .logo img {
    box-shadow: 0 4px 25px rgba(255, 255, 255, 0.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.8rem;
    margin-left: 2.5rem;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 5px;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 3px;
    bottom: 0;
    left: 0;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-social-group {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-left: 1rem;
    padding-left: 1.5rem;
    border-left: 1px solid var(--glass-border);
}

.nav-social-group a {
    font-size: 1.2rem;
    color: var(--text-primary);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.nav-social-group a:hover {
    color: var(--accent);
    opacity: 1;
    transform: translateY(-2px);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.theme-toggle-btn:hover {
    color: var(--accent);
    background: var(--glass-border);
    transform: rotate(15deg);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, color 0.2s, border-color 0.2s;
    text-align: center;
    line-height: 1.5;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn:active {
    transform: scale(0.95);
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.5);
    transform: translateY(-2px);
}

/* HERO SECTION - THE WOW FACTOR */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 90px;
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--forest-green) 100%);
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.shape-1 {
    top: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: rgba(74, 222, 128, 0.15);
}

.shape-2 {
    bottom: -20%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    background: rgba(22, 163, 74, 0.2);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-text {
    animation: fadeInLeft 1s ease forwards;
    color: white;
}

.badge {
    display: inline-block;
    background: rgba(74, 222, 128, 0.15);
    color: var(--neon-green);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    border: 1px solid rgba(74, 222, 128, 0.3);
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.text-neon {
    color: var(--neon-green);
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.4);
}

.hero p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.hero-buttons .btn {
    min-width: 180px;
    margin: 0 !important; /* Forces no margin to override any other button spacing rules */
}

.btn-neon {
    background: var(--neon-green);
    color: var(--dark-green);
    border: 2px solid transparent;
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.4);
}

.btn-neon:hover {
    background: white;
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: rgba(74, 222, 128, 0.1);
    transform: translateY(-2px);
}

/* HERO GRAPHICS - CSS 3D COMPOSITION */
.hero-graphics {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease forwards;
}

.glow-orb {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--neon-green) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.5;
    animation: pulse 4s infinite alternate;
}

.pulse-ring {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid var(--neon-green);
    border-radius: 50%;
    animation: expand 3s infinite linear;
    opacity: 0;
}

.pulse-ring.delay {
    animation-delay: 1.5s;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    animation: float 6s infinite ease-in-out;
}

.floating-card i {
    font-size: 2rem;
    color: var(--neon-green);
    background: rgba(74, 222, 128, 0.1);
    padding: 1rem;
    border-radius: 12px;
}

.floating-card strong {
    display: block;
    font-size: 1.1rem;
}

.floating-card span {
    font-size: 0.85rem;
    color: #94a3b8;
}

.card-1 {
    top: 20%;
    right: 5%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 25%;
    left: 0%;
    animation-delay: -2s;
}

.card-3 {
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    animation-delay: -4s;
}


/* SERVICES SECTION */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--text-primary);
    display: inline-block;
    position: relative;
    font-weight: 800;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px var(--shadow-color);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.icon-wrap {
    width: 80px;
    height: 80px;
    background: var(--icon-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.icon-wrap svg {
    width: 36px;
    height: 36px;
    fill: var(--neon-green);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--accent);
}

.service-card:hover .icon-wrap {
    background: var(--accent);
}

.service-card:hover i {
    color: white !important;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}


/* DYNAMIC BANNER */
.dynamic-banner {
    background: var(--accent);
    padding: 4rem 0;
    color: white;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

/* TESTIMONIALS SECTION */
.testimonials {
    background-color: var(--testimonial-bg);
    transition: background-color 0.3s ease;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    align-items: start;
}

.testimonial-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 10px 40px var(--shadow-color);
    transition: background-color 0.3s ease;
}

.quote-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 4rem;
    color: var(--testimonial-bg);
    z-index: 0;
}

.testimonial-card p,
.stars,
.author {
    position: relative;
    z-index: 1;
}

.testimonial-card .stars {
    color: #fbbf24;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-card .author {
    font-weight: 800;
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* FOOTER */
.footer {
    background: #022c22;
    /* Always dark green for footer */
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 1.75rem;
}

.footer-info p {
    color: #94a3b8;
    max-width: 400px;
}

.footer-links ul {
    list-style: none;
    margin-top: 1rem;
}

.footer-links li {
    color: #94a3b8;
    margin-bottom: .65rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-links i {
    color: var(--neon-green);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ANIMATIONS */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    from {
        transform: scale(1);
        opacity: 0.5;
    }

    to {
        transform: scale(1.5);
        opacity: 0.8;
    }
}

@keyframes expand {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* PRODUCTS SECTION */
.product-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--card-border);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.sort-select {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: 1px solid var(--card-border);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.product-image {
    background: #f1f5f9;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-bottom: 1px solid var(--card-border);
}

[data-theme="dark"] .product-image {
    background: #0f172a;
}

.product-image i {
    color: var(--text-muted);
    opacity: 0.2;
}

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

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.product-info .category {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.product-info .stars {
    color: #fbbf24;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.product-info .price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 1rem;
    margin-top: auto;
}

.btn-outline-product {
    display: block;
    text-align: center;
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--accent);
    border-radius: 5px;
    color: var(--accent);
    font-weight: 600;
    transition: all 0.3s ease;
}

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

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    bottom: calc(30px + env(safe-area-inset-bottom, 0px));
    right: calc(30px + env(safe-area-inset-right, 0px));
    width: 65px;
    height: 65px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    animation: wa-pulse 2s infinite;
}

.whatsapp-float i {
    margin-top: 2px;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes wa-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* MOBILE NAV TOGGLE (HAMBURGER) */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 42px;
    height: 42px;
    padding: 10px 8px;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    border-radius: 8px;
    transition: background 0.2s;
}
.mobile-nav-toggle:hover {
    background: var(--glass-border);
}
.mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
}
.mobile-nav-toggle.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
.mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-nav-toggle.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* MOBILE NAV DRAWER */
.mobile-nav-drawer {
    position: fixed;
    inset: 0;
    z-index: 1100;
    pointer-events: none;
    visibility: hidden;
}
.mobile-nav-drawer.open {
    pointer-events: auto;
    visibility: visible;
}
.mobile-nav-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-nav-drawer.open .mobile-nav-backdrop {
    opacity: 1;
}
.mobile-nav-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 85vw;
    max-width: 340px;
    background: var(--bg-secondary);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.25);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
}
.mobile-nav-drawer.open .mobile-nav-panel {
    transform: translateX(0);
}
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--card-border);
}
.mobile-nav-title {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.mobile-nav-close {
    background: var(--icon-bg);
    color: var(--accent);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.mobile-nav-close:hover {
    background: var(--accent);
    color: #fff;
}
.mobile-nav-links {
    list-style: none;
    padding: 10px 12px;
    margin: 0;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mobile-nav-links li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 10px;
    border-bottom: 1px solid transparent;
    transition: background 0.2s, color 0.2s;
}
.mobile-nav-links li a i {
    width: 22px;
    color: var(--accent);
    font-size: 1rem;
}
.mobile-nav-links li a:hover,
.mobile-nav-links li a:active {
    background: var(--icon-bg);
    color: var(--accent);
}
.mobile-nav-footer {
    padding: 16px 18px 22px;
    border-top: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.mobile-nav-call {
    width: 100%;
    justify-content: center;
    gap: 8px;
}
.mobile-nav-social {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    font-size: 1.25rem;
}
.mobile-nav-social a {
    color: var(--text-muted);
    transition: color 0.2s, transform 0.2s;
}
.mobile-nav-social a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .nav-links {
        gap: 1rem;
        margin-left: 1rem;
    }
    .nav-links a {
        font-size: 0.92rem;
    }
    .nav-social-group {
        gap: 0.85rem;
        margin-left: 0.5rem;
        padding-left: 1rem;
    }
}

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text {
        padding-right: 0;
    }

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

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero p {
        margin: 1rem auto 2rem;
    }

    .hero-graphics {
        height: auto;
        transform: none;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }

    .glow-orb,
    .pulse-ring {
        display: none;
    }

    .floating-card {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100%;
        animation: none;
    }

    .section-header h2 {
        font-size: 2.3rem;
    }

    .py-section {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.2rem;
    }

    .nav-content {
        height: 70px;
    }

    .nav-links,
    .nav-social-group {
        display: none;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    .logo img {
        max-height: 54px;
        padding: 4px 8px;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .nav-call-btn {
        display: none;
    }

    .theme-toggle-btn {
        width: 38px;
        height: 38px;
        font-size: 1.3rem;
    }

    .hero {
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        min-width: 0;
    }

    .btn-large {
        padding: 0.85rem 1.4rem;
        font-size: 1rem;
    }

    .floating-card {
        padding: 1rem 1.1rem;
        gap: 0.8rem;
    }
    .floating-card i {
        font-size: 1.4rem;
        padding: 0.7rem;
    }
    .floating-card strong {
        font-size: 0.95rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }
    .section-header h2 {
        font-size: 1.9rem;
    }
    .section-header p {
        font-size: 0.95rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .service-card {
        padding: 2rem 1.5rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
        gap: 1rem;
    }
    .product-image {
        height: 160px;
    }
    .product-info {
        padding: 1rem;
    }
    .product-info h3 {
        font-size: 1rem;
    }
    .product-info .price {
        font-size: 1.15rem;
    }
    .btn-outline-product {
        padding: 0.6rem;
        font-size: 0.88rem;
    }

    .product-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-group {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }
    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    .sort-select {
        width: 100%;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .testimonial-card {
        padding: 1.75rem 1.5rem;
    }

    .stat-item h3 {
        font-size: 2.2rem;
    }
    .stat-item i {
        font-size: 2.3rem;
    }

    .banner-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer {
        padding: 2.5rem 0 1.2rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-info p {
        max-width: none;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        right: calc(20px + env(safe-area-inset-right, 0px));
    }

    .detail-article-wrap {
        padding: 1.75rem 1.25rem;
        border-radius: 16px;
    }

    .news-card-horizontal {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 0.9rem;
    }
    .news-card-horizontal .news-thumb {
        width: 100% !important;
        height: 180px !important;
    }
    .news-card-horizontal .news-content {
        padding-left: 0 !important;
    }

    .wwd-detail-hero,
    .archive-header,
    .py-section-top {
        padding-top: 110px !important;
    }

    .detail-float-img {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 1.25rem 0;
    }
}

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

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

    .logo img {
        max-height: 46px;
    }

    .section-header h2 {
        font-size: 1.55rem;
    }
    .section-header-compact h2 {
        font-size: 1.35rem;
    }

    .py-section {
        padding: 3rem 0;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    .product-image {
        height: 130px;
    }
    .product-info {
        padding: 0.8rem;
    }
    .product-info h3 {
        font-size: 0.9rem;
    }
    .product-info .category,
    .product-info .stars {
        font-size: 0.78rem;
    }
    .product-info .price {
        font-size: 1rem;
    }
    .btn-outline-product {
        padding: 0.5rem;
        font-size: 0.82rem;
    }

    .service-card {
        padding: 1.75rem 1.25rem;
    }
    .service-card h3 {
        font-size: 1.2rem;
    }

    .testimonial-card {
        padding: 1.5rem 1.2rem;
    }

    .stat-item h3 {
        font-size: 1.9rem;
    }

    .mobile-nav-panel {
        width: 90vw;
    }
}

/* Responsive tweaks for inline product detail grid */
@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

/* Responsive campaign detail inline grid */
@media (max-width: 640px) {
    .campaign-detail-price-row {
        gap: 0.75rem !important;
    }
    .campaign-detail-price-row > div:nth-child(2) {
        display: none !important;
    }
    .campaign-detail-price-row span[style*="margin-left:auto"] {
        margin-left: 0 !important;
    }
}
/* --- PAGE SPACING FIX (NAVBAR CLEARANCE) --- */
.wwd-detail-hero, .archive-header, .py-section-top {
    padding-top: 140px !important;
}

/* --- STRICT SIDEBAR IMAGE FIX --- */
.wwd-sidebar-container {
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px var(--shadow-color);
}

.wwd-card-compact {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem !important;
    align-items: center !important;
    padding: 0.75rem !important;
    margin-bottom: 0.75rem;
    border-radius: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--card-border);
    text-decoration: none !important;
}

.wwd-card-compact .thumb {
    width: 84px !important;
    height: 84px !important;
    min-width: 84px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    border: 1px solid var(--card-border) !important;
}

.wwd-card-compact .thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.wwd-card-compact .content h6 {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    margin: 0 0 4px 0 !important;
    color: var(--text-primary);
}

/* --- BUTTON SPACING --- */
/* Removed general margin-top: 1rem from buttons as it breaks alignment in flex groups like hero section. 
   Specific margins should be applied contextually if needed. */

/* --- DETAIL PAGE ARTICLE LAYOUT --- */
.detail-article-wrap {
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 10px 40px var(--shadow-color);
    margin-top: 2rem;
}


/* --- CORE LAYOUT HELPERS --- */
.news-layout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 992px) {
    .news-layout-grid {
        grid-template-columns: 1fr;
    }
}

.section-header-compact {
    margin-top: 1.5rem;
    text-align: left;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--card-border);
}

.section-header-compact h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.section-header-compact h2::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent);
}

.news-card-horizontal {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-color);
    margin-bottom: 1.5rem;
}

.detail-float-img {
 float: left;
 width: 300px;
 max-width: 45%;
 margin: 0 2rem 1.5rem 0;
 border-radius: 15px;
 box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.clearfix::after {
 content: \\;
 clear: both;
 display: table;
}

