/**
 * Condalab Home CSS
 * Header, Navigation & Hero styles based on Figma design
 */

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Jost:wght@400;500;600;700;800&display=swap');

/* ===== TOP ANNOUNCEMENT BANNER ===== */
.condalab-announcement-bar {
    background-color: #EBBE18;
    color: #000;
    text-align: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', var(--font-primary), sans-serif;
    letter-spacing: 0.02em;
}

/* ===== HEADER REDESIGN ===== */
#header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
}

#header .header-banner {
    margin: 0;
    padding: 0;
}

#header .header-nav {
    background-color: #fff;
    border-bottom: none;
    padding: 0;
}

#header .header-top {
    background-color: #fff;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
}

#header .header-top > .container {
    max-width: 1320px;
}

/* Main header layout */
.condalab-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    max-width: 1320px;
    margin: 0 auto;
}

/* Logo */
.condalab-header-main .condalab-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.condalab-logo-img {
    height: 48px;
    width: auto;
    display: block;
}

/* Navigation center */
.condalab-nav-center {
    display: flex;
    align-items: center;
    gap: 0;
}

.condalab-nav-center a,
.condalab-nav-center .condalab-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color 0.2s ease;
    cursor: pointer;
    background: none;
    border: none;
    position: relative;
}

.condalab-nav-center a:hover,
.condalab-nav-center .condalab-nav-link:hover {
    color: #009A17;
}

.condalab-nav-center a.active,
.condalab-nav-center .condalab-nav-link.active {
    color: #009A17;
}

.condalab-nav-chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.condalab-nav-link:hover .condalab-nav-chevron,
.condalab-nav-link.open .condalab-nav-chevron {
    transform: rotate(180deg);
}

/* Header right icons */
.condalab-header-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.condalab-header-icons .condalab-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #1a1a1a;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
    position: relative;
}

.condalab-header-icons .condalab-icon-btn:hover {
    background-color: #f5f5f5;
    color: #009A17;
}

.condalab-header-icons .condalab-icon-btn svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.5;
}

.condalab-cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #009A17;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Hide any leftover PS nav elements injected by hooks */
#header .header-nav {
    display: none !important;
}

/* ===== MEGAMENU CATÁLOGO ===== */
.condalab-megamenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
    padding: 32px;
    min-width: 720px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    transform: translateX(-50%) translateY(8px);
}

.condalab-megamenu.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.condalab-megamenu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.condalab-megamenu-col h4 {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1a1a1a;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #EBBE18;
}

.condalab-megamenu-col a {
    display: block;
    padding: 6px 0;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #555;
    text-decoration: none;
    text-transform: none;
    letter-spacing: normal;
    transition: color 0.15s ease;
}

.condalab-megamenu-col a:hover {
    color: #009A17;
}

.condalab-megamenu-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.condalab-megamenu-footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #009A17;
    text-decoration: none;
    text-transform: none;
    letter-spacing: normal;
    padding: 8px 20px;
    border: 1px solid #009A17;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.condalab-megamenu-footer a:hover {
    background-color: #009A17;
    color: #fff;
}

/* ===== HERO SECTION ===== */
.condalab-hero {
    position: relative;
    background: #000;
    padding: 80px 0 120px;
    overflow: hidden;
    text-align: center;
}

.condalab-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.condalab-hero h1 {
    font-family: 'Jost', sans-serif;
    font-size: 72px;
    font-weight: bold;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.condalab-hero-title-accent {
    display: block;
    margin-top: 8px;
    color: #EBBE18;
}

.condalab-hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    margin-bottom: 36px;
    line-height: 1.6;
}

/* Hero search wrapper */
.condalab-hero-search-wrap {
    position: relative;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Hero search bar */
.condalab-hero-search {
    display: flex;
    align-items: center;
    background: #fff;
    border: none;
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.condalab-hero-search input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    padding: 16px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #000;
}

.condalab-hero-search input::placeholder {
    color: #9ca3af;
}

.condalab-hero-search button {
    background-color: #EBBE18;
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.condalab-hero-search button:hover {
    background-color: #d4a916;
}

/* Hero AJAX search results */
.cdl-search-results {
    display: none;
    margin-top: 16px;
    max-width: 100%;
}

.cdl-search-results--active {
    display: block;
}

.cdl-search-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.cdl-search-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px 16px 16px;
    width: 180px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.cdl-search-card:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: #EBBE18;
    transform: translateY(-2px);
    text-decoration: none;
}

.cdl-search-card__icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 8px;
}

.cdl-search-card__name {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 4px;
}

.cdl-search-card__desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.4;
    margin-bottom: 8px;
}

.cdl-search-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #EBBE18;
    margin-top: auto;
}

.cdl-search-card__cta svg {
    stroke: #EBBE18;
}

/* Loader */
.cdl-search-loader {
    display: flex;
    justify-content: center;
    padding: 32px 0;
}

.cdl-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #EBBE18;
    border-radius: 50%;
    animation: cdl-spin 0.7s linear infinite;
}

@keyframes cdl-spin {
    to { transform: rotate(360deg); }
}

/* Empty state */
.cdl-search-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    padding: 24px 0;
    line-height: 1.6;
}

.cdl-search-empty strong {
    color: #fff;
}

.cdl-search-empty a {
    color: #EBBE18;
    text-decoration: underline;
}

/* Hero CTA buttons */
.condalab-hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.condalab-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background-color: #EBBE18;
    color: #000;
    border: 2px solid #EBBE18;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.condalab-btn-primary:hover {
    background-color: #d4a916;
    border-color: #d4a916;
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(235, 190, 24, 0.3);
}

.condalab-btn-primary svg {
    width: 20px;
    height: 20px;
}

.condalab-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.condalab-btn-outline:hover {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-1px);
}

.condalab-btn-outline svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.condalab-btn-outline:hover svg {
    transform: translateX(3px);
}

/* Hero bottom wave image */
.condalab-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 3;
    line-height: 0;
}

.condalab-hero-wave img {
    display: block;
    width: 100%;
    height: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .condalab-nav-center {
        display: none;
    }

    .condalab-header-main {
        padding: 12px 16px;
    }

    .condalab-hero h1 {
        font-size: 34px;
    }

    .condalab-hero-subtitle {
        font-size: 16px;
    }

    .condalab-hero {
        padding: 60px 0 100px;
    }

    .condalab-megamenu {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .condalab-hero h1 {
        font-size: 28px;
    }

    .condalab-hero-search {
        flex-direction: column;
        border-radius: 12px;
    }

    .condalab-hero-search input {
        width: 100%;
        text-align: center;
    }

    .condalab-hero-search button {
        width: 100%;
        border-radius: 8px;
    }

    .cdl-search-card {
        width: calc(50% - 8px);
    }

    .condalab-hero-ctas {
        flex-direction: column;
    }

    .condalab-btn-primary,
    .condalab-btn-outline {
        width: 100%;
        justify-content: center;
    }

    .condalab-logo-img {
        height: 36px;
    }

    .condalab-announcement-bar {
        font-size: 11px;
        padding: 6px 12px;
    }
}

/* ===== PRESTASHOP LAYOUT OVERRIDES FOR HOME ===== */

/* Make hero full-width by breaking out of container */
.condalab-hero {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* Remove default PS padding/margins on home */
#index #wrapper {
    padding-top: 0;
    background: #fff;
}

#index #wrapper > .container {
    padding: 0;
    max-width: 100%;
}

#index #wrapper > .container > .breadcrumb {
    display: none;
}

#index #content-wrapper {
    padding: 0;
    border: none;
}

#index #content {
    border: none;
    box-shadow: none;
}

#index .page-home {
    padding: 0;
}

#index #main {
    margin: 0;
}

/* Hide the default carousel on home - hero replaces it */
#index #carousel {
    display: none !important;
}

/* Restore container for content below hero */
#index .page-home .container {
    max-width: 1320px;
    padding: 0 15px;
    margin: 0 auto;
}
