/* ===================================
   GLOBAL STYLES & VARIABLES
   =================================== */
:root {
    --primary: #1c2b78;
    --accent: #e0b400;
    --secondary: #005f87;
    --background: #f8f9fa;
    --text: #333;
    --text-light: #555;
    --border: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --transition: all 0.3s ease;
    --focus-ring: 0 0 0 3px rgba(29, 78, 216, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* ===================================
   LINKS & BUTTONS
   =================================== */
a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.btn,
.search-box button,
.contact-form button,
.catalog-page .btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn:hover,
.search-box button:hover,
.contact-form button:hover,
.catalog-page .btn-back:hover {
    background: var(--secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:focus-visible,
.search-box button:focus-visible,
.contact-form button:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* Hero Button */
.hero .btn {
    background: #FFD700;
    color: var(--primary);
    font-weight: 700;
}

.hero .btn:hover {
    background: #e6a800;
}

/* Icon Buttons (Search, Send) */
.search-box button,
.contact-form button {
    min-width: 120px;
}

.search-box button i,
.contact-form button i {
    font-size: 1.1rem;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    padding: 1rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: padding 0.3s ease;
}

header.scrolled {
    padding: 0.6rem 1rem;
}

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

.branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

header.scrolled .contact-info {
    /* Keep contact info visible when scrolling */
    opacity: 1;
    transform: translateY(0);
    height: auto;
    overflow: visible;
    pointer-events: auto;
}

.phone-number {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.phone-number:hover {
    color: var(--accent);
}

.hours {
    color: var(--text-light);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Navigation */
nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

nav a {
    color: var(--primary);
    font-weight: 500;
    font-size: 1rem;
    padding: 6px 0;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropbtn {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 101;
    overflow: hidden;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dropdown-content a {
    display: block;
    padding: 12px 16px;
    color: var(--text);
    font-size: 0.95rem;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background: #f1f5f9;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-toggle:hover {
    background: #f1f5f9;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    height: 75vh;
    min-height: 500px;
    background: url('/static/images/doc.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.hero h2 {
    font-size: 3rem;
    color: #FFD700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

/* ===================================
   SECTIONS
   =================================== */
.section {
    background: white;
    margin: 2rem auto;
    padding: 3rem 2rem;
    max-width: 1100px;
    border-radius: var(--radius);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.section.highlight {
    background: #f4f8ff;
}

/* Flex Layouts */
.about-container,
.delivery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text,
.delivery-text,
.about-image,
.delivery-image {
    flex: 1;
    min-width: 300px;
}

/* ===================================
   CAROUSEL (CUSTOM CSS IMPLEMENTATION)
   =================================== */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    background: #000;
}

.carousel input[type="radio"] {
    display: none;
}

.slides {
    display: flex;
    width: 800%; /* For 8 slides: 8 * 100% */
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    width: 12.5%; /* 100% / 8 */
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

/* Slide positions based on checked radio */
#slide1:checked ~ .slides { transform: translateX(0); }
#slide2:checked ~ .slides { transform: translateX(-12.5%); }
#slide3:checked ~ .slides { transform: translateX(-25%); }
#slide4:checked ~ .slides { transform: translateX(-37.5%); }
#slide5:checked ~ .slides { transform: translateX(-50%); }
#slide6:checked ~ .slides { transform: translateX(-62.5%); }
#slide7:checked ~ .slides { transform: translateX(-75%); }
#slide8:checked ~ .slides { transform: translateX(-87.5%); }

#dslide1:checked ~ .slides { transform: translateX(0); }
#dslide2:checked ~ .slides { transform: translateX(-25%); } /* For 4 slides: 100% / 4 = 25% */
#dslide3:checked ~ .slides { transform: translateX(-50%); }
#dslide4:checked ~ .slides { transform: translateX(-75%); }

/* Indicators */
.indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 15;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

/* Active indicators */
#slide1:checked ~ .indicators .indicator:nth-child(1),
#slide2:checked ~ .indicators .indicator:nth-child(2),
#slide3:checked ~ .indicators .indicator:nth-child(3),
#slide4:checked ~ .indicators .indicator:nth-child(4),
#slide5:checked ~ .indicators .indicator:nth-child(5),
#slide6:checked ~ .indicators .indicator:nth-child(6),
#slide7:checked ~ .indicators .indicator:nth-child(7),
#slide8:checked ~ .indicators .indicator:nth-child(8),
#dslide1:checked ~ .indicators .indicator:nth-child(1),
#dslide2:checked ~ .indicators .indicator:nth-child(2),
#dslide3:checked ~ .indicators .indicator:nth-child(3),
#dslide4:checked ~ .indicators .indicator:nth-child(4) {
    background: #FFD700;
    transform: scale(1.1);
}

/* Prev/Next Buttons */
.carousel .prev,
.carousel .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.carousel .prev { left: 16px; }
.carousel .next { right: 16px; }

.carousel .prev:hover,
.carousel .next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel .prev:focus-visible,
.carousel .next:focus-visible {
    outline: 3px solid #FFD700;
    outline-offset: 2px;
}

/* ===================================
   TABS (Pure CSS Implementation)
   =================================== */
.tabs input[type="radio"] {
    display: none;
}

.tab-titles {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0 1.5rem;
}

.tab-link {
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.tab-link:hover {
    color: var(--accent);
}

.tab-contents {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-contents ul {
    list-style: none;
    padding-left: 1.2rem;
}

.tab-contents li {
    position: relative;
    margin-bottom: 0.8rem;
}

.tab-contents li::before {
    content: "Check";
    color: var(--accent);
    font-weight: bold;
    margin-right: 8px;
}

.tab-contents span {
    color: var(--primary);
    font-weight: 700;
}

/* Show active tab content */
#vision:checked ~ .tab-contents#vision-content,
#mission:checked ~ .tab-contents#mission-content {
    display: block;
}

/* Style active tab link */
#vision:checked ~ .tab-titles .tab-link[for="vision"],
#mission:checked ~ .tab-titles .tab-link[for="mission"] {
    color: var(--accent);
}

#vision:checked ~ .tab-titles .tab-link[for="vision"]::after,
#mission:checked ~ .tab-titles .tab-link[for="mission"]::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* ===================================
   CORE VALUES
   =================================== */
.values-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.value-item {
    position: relative;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-6px);
}

.value-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.value-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.value-item h3,
.value-item p {
    position: relative;
    z-index: 2;
}

.value-item h3 {
    color: #FFD700;
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

/* ===================================
   PRODUCTS SECTION
   =================================== */
.product-search-container {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 280px;
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.product-display {
    flex: 2;
    min-height: 320px;
    background: #fafafa;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

/* ===================================
   PARTNERS & CLIENTS SCROLL
   =================================== */
.carousel-container {
    overflow: hidden;
    margin: 2rem 0;
    padding: 1rem 0;
}

.partners-carousel,
.clients-carousel {
    display: flex;
    gap: 2.5rem;
    animation: scroll 25s linear infinite;
}

.partners-carousel:hover,
.clients-carousel:hover {
    animation-play-state: paused;
}

.partners-carousel img,
.clients-carousel img {
    height: 80px;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s;
}

.partners-carousel img:hover,
.clients-carousel img:hover {
    filter: grayscale(0%);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Duplicate for seamless loop */
.partners-carousel::after,
.clients-carousel::after {
    content: '';
    flex-shrink: 0;
    width: 100%;
}

/* ===================================
   CONTACT FORM
   =================================== */
.contact {
    padding: 4rem 2rem;
    background: var(--background);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.contact-info,
.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.contact-info h3 {
    margin-bottom: 1.2rem;
    color: var(--primary);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1rem 0;
    font-size: 1rem;
}

.contact-info i {
    color: var(--primary);
    font-size: 1.2rem;
    width: 24px;
}

.contact-info a:hover {
    color: var(--accent);
}

.map-container iframe {
    border-radius: 12px;
    margin-top: 1rem;
    width: 100%;
    height: 300px;
}

.contact-form .form-group {
    margin-bottom: 1.2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

#formResponse {
    margin-top: 1rem;
    font-weight: 500;
}

/* ===================================
   CATALOG PAGE
   =================================== */
.catalog-page main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.catalog-page .page-header {
    text-align: center;
    padding: 2rem 0;
}

.catalog-page .toolbar {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.catalog-page .search-input {
    min-width: 260px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
}

.catalog-page .alpha {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 1.2rem 0;
    z-index: 100;
    border-bottom: 1px solid #f1f5f9;
    box-shadow: var(--shadow-sm);
}

.catalog-page .alpha-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.catalog-page .alpha a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #64748b;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
}

.catalog-page .alpha a:hover,
.catalog-page .alpha a.active {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.catalog-page .alpha .inactive {
    color: #cbd5e1;
    pointer-events: none;
}

.catalog-page .hint {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 1rem 0 0.5rem;
    font-style: italic;
}

.catalog-page .hint {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 1rem 0 0.5rem;
    font-style: italic;
}

.catalog-page .hint {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 1rem 0 0.5rem;
    font-style: italic;
}

.catalog-page .group h2 {
    font-size: 1.6rem;
    margin: 2rem 0 1rem;
    padding-left: 6px;
    border-left: 5px solid var(--accent);
    color: #1e293b;
}

.catalog-page .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
    margin-top: 1.5rem;
}

.catalog-page .card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.catalog-page .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.catalog-page .thumb {
    aspect-ratio: 4 / 3;
    background: #f8fafc;
    overflow: hidden;
}

.catalog-page .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.catalog-page .card:hover .thumb img {
    transform: scale(1.05);
}

.catalog-page .body {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.catalog-page .tag {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.catalog-page .name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.catalog-page .strength {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 12px;
    flex-grow: 1;
}

.catalog-page .price {
    font-size: 0.9rem;
    color: #1e293b;
    margin-top: auto;
}

.catalog-page .price strong {
    color: var(--primary);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--primary);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.95rem;
}

.footer-container {
    max-width: 1100px;
    margin: auto;
}

.footer h3 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.footer-bottom {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
    color: #e2e8f0;
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===================================
   SCROLL TO TOP BUTTON
   =================================== */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* ===================================
   WHATSAPP BUTTON
   =================================== */
.whatsapp-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: #25D366;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.share-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 8px;
    transition: var(--transition);
    align-self: flex-start;
}

.share-btn:hover {
    background: var(--secondary);
    transform: translateY(-1px);
}

/* Highlighted shared product */
.card.highlighted,
.product-card.highlighted {
    border: 3px solid #FFD700 !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6) !important;
    animation: highlightPulse 2s ease-in-out;
}

@keyframes highlightPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* ===================================
   RESPONSIVE
   =================================== */
/* ===================================
   MOBILE MENU – FULLY RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    /* Show hamburger */
    .nav-toggle {
        display: block;
    }

    header {
        padding: 0.8rem 1rem;
    }

    .logo {
        height: 60px;
    }

    /* Hide contact info on mobile */
    .contact-info {
        display: none;
    }

    /* Hide nav by default */
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 1rem 2rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
        border-top: 1px solid #e2e8f0;
        max-height: 80vh;
        overflow-y: auto;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s;
        z-index: 998;
    }

    /* Open state */
    header.nav-open nav {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    nav a {
        padding: 0.9rem 0;
        border-bottom: 1px solid #f1f5f9;
        text-align: center;
        font-weight: 500;
    }

    nav a:last-child {
        border-bottom: none;
    }

    /* Dropdown on mobile */
    .dropdown {
        position: relative;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        background: #f8f9fa;
        border-radius: 8px;
        margin-top: 0.5rem;
        padding: 0.5rem 1rem;
    }

    .dropdown-content a {
        padding: 0.75rem 0;
        border-bottom: 1px solid #e2e8f0;
        text-align: center;
    }

    .dropdown-content a:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .hero h2 { font-size: 2.4rem; }
    .hero p { font-size: 1.1rem; }

    .slides img { height: 240px; }

    .catalog-page .grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    /* Contact form responsive */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }

    .map-container iframe {
        height: 250px;
    }

    /* Catalogue page mobile fixes */
    .catalog-page .alpha {
        position: relative;
        top: auto;
        padding: 1rem 0;
        margin: 1rem 0;
        background: #f8fafc;
        border-radius: 12px;
        border: 1px solid var(--border);
        display: none;
    }

    .catalog-page .hint {
        font-size: 0.9rem;
        color: var(--text-light);
        text-align: center;
        margin: 1rem 0 0.5rem;
    }

    .catalog-page main {
        padding: 0 1rem;
    }

    .catalog-page .group h2 {
        font-size: 1.4rem;
        margin: 1.5rem 0 1rem;
    }

    .catalog-page .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h2 { font-size: 1.9rem; }
    .hero p { font-size: 1rem; }

    .slides img { height: 200px; }

    .catalog-page .alpha a {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    /* Contact form mobile optimization */
    .contact {
        padding: 2rem 1rem;
    }

    .contact-intro {
        text-align: center;
        margin-bottom: 2rem;
    }

    .contact-intro h2 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .contact-info,
    .contact-form {
        padding: 1rem;
    }

    .contact-form .form-group {
        margin-bottom: 1rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 12px;
        font-size: 0.9rem;
    }

    .map-container iframe {
        height: 200px;
    }

    .catalog-page .hint {
        font-size: 0.85rem;
        margin: 0.5rem 0;
    }

    .catalog-page .alpha {
        padding: 0.8rem 0;
        margin: 0.5rem 0;
    }

    .catalog-page #loading {
        padding: 1.5rem 0;
        font-size: 0.95rem;
    }

    .catalog-page .group h2 {
        font-size: 1.2rem;
        margin: 1.5rem 0 0.8rem;
    }

    /* Fixed buttons on mobile */
    .scroll-to-top,
    .whatsapp-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .whatsapp-btn {
        bottom: 70px;
        right: 15px;
    }

    .scroll-to-top {
        bottom: 15px;
        right: 15px;
    }
}
/* ===================================
   PRODUCT CATALOG (PROFESSIONAL)
   =================================== */
.product-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.search-box {
    position: relative;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(28, 43, 120, 0.15);
}

.search-box button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: var(--secondary);
    transform: translateY(-50%) scale(1.05);
}

/* Category Pills */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.category-pill {
    background: #f1f5f9;
    color: var(--text);
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-pill:hover {
    background: #e0e7ff;
    border-color: var(--primary);
    color: var(--primary);
}

.category-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(28, 43, 120, 0.2);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
    margin-top: 1.5rem;
    min-height: 300px;
}

/* Product Card */
.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e1;
}

.product-thumb {
    height: 180px;
    background: #f8fafc;
    overflow: hidden;
    position: relative;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.4s ease;
}

.product-card:hover .product-thumb img {
    transform: scale(1.08);
}

.product-thumb .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 3rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.product-body {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.product-generic {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

.product-category {
    align-self: flex-start;
    font-size: 0.75rem;
    color: white;
    background: var(--secondary);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.product-strength {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: auto;
    padding-top: 0.6rem;
    border-top: 1px dashed #e2e8f0;
}

/* Loading Skeleton */
.loading-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
}

.skeleton-card {
    height: 320px;
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: translateX(-100%);
    animation: shimmer 1.5s infinite;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.no-results i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.no-results p {
    font-size: 1.1rem;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Make search box always visible on catalogue page */
.catalog-page .search-box {
    position: sticky;
    top: 100px;
    background: white;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .product-controls {
        align-items: stretch;
    }
    .search-box {
        max-width: 100%;
    }
    .category-filter {
        justify-content: center;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }

    /* Catalogue page main section responsive */
    .catalog-page main {
        padding: 0 1rem;
    }

    .catalog-page .product-controls {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }

    .catalog-page .search-box {
        position: sticky;
        top: 80px;
        background: white;
        z-index: 999;
        padding: 1rem 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin: -1rem -1rem 1rem;
        border-radius: 0;
    }

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
    margin-top: 1.5rem;
    min-height: 300px;
}

/* Product Card */
.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e1;
}

.product-thumb {
    height: 180px;
    background: #f8fafc;
    overflow: hidden;
    position: relative;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.4s ease;
}

.product-card:hover .product-thumb img {
    transform: scale(1.08);
}

.product-thumb .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 3rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.product-body {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.product-generic {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

.product-category {
    align-self: flex-start;
    font-size: 0.75rem;
    color: white;
    background: var(--secondary);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.product-strength {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: auto;
    padding-top: 0.6rem;
    border-top: 1px dashed #e2e8f0;
}

/* Loading Skeleton */
.loading-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
}

.skeleton-card {
    height: 320px;
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: translateX(-100%);
    animation: shimmer 1.5s infinite;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.no-results i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.no-results p {
    font-size: 1.1rem;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Responsive */
@media (max-width: 768px) {
    .product-controls {
        align-items: stretch;
    }
    .search-box {
        max-width: 100%;
    }
    .category-filter {
        justify-content: center;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }

    /* Catalogue page main section responsive */
    .catalog-page main {
        padding: 0 1rem;
    }

    .catalog-page .product-controls {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }

    .catalog-page .search-box {
        max-width: 100%;
        margin-bottom: 0;
    }

    .catalog-page .category-filter {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .catalog-page .category-filter::-webkit-scrollbar {
        display: none;
    }

    .catalog-page .hint {
        font-size: 0.9rem;
        margin: 1.5rem 0 1rem;
    }

    .catalog-page #loading {
        padding: 2rem 0;
        font-size: 1rem;
    }
}

/* ===================================
   BACKGROUND PAGE STYLES
   =================================== */
.learn-block {
    background: #fff;
    padding: 2rem;
    margin: 1.5rem 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.learn-block h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.learn-block p {
    line-height: 1.6;
    color: var(--text);
}

.tab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tab-card {
    position: relative;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.tab-card:hover {
    transform: translateY(-6px);
}

.tab-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.tab-content {
    position: relative;
    z-index: 2;
}

.tab-content h3 {
    color: #FFD700;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.tab-content p {
    line-height: 1.5;
    opacity: 0.95;
}

.tab-card.full-width {
    grid-column: 1 / -1;
    height: 250px;
}

.org-image-container {
    text-align: center;
    margin: 1.5rem 0;
}

.org-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}
