/* ===========================
   MODERN LUXURY 2.0 - DESIGN SYSTEM
   =========================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Color Palette - Midnight Gold */
    --color-primary: #111111;
    --color-secondary: #B08256;
    --color-accent: #8B5E3C;
    --color-bg: #FFFFFF;
    --color-surface: #F8F8F8;
    --color-text: #2D2D2D;
    --color-text-muted: #666666;

    /* Gradients */
    --grad-gold: linear-gradient(135deg, #B08256 0%, #8B5E3C 100%);
    --grad-dark: linear-gradient(135deg, #1A1A1A 0%, #000000 100%);
    --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Transitions */
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --anim-slow: 0.8s var(--ease-out);
    --anim-base: 0.4s var(--ease-out);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden !important;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
.font-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    letter-spacing: -0.02em;
}

h1 strong,
h2 strong,
h3 strong,
h4 strong,
.font-heading strong {
    color: var(--color-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--anim-base);
}

ul {
    list-style: none;
}

/* REUSABLE CLASSES */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.reveal-anim {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-anim.active {
    opacity: 1;
    transform: translateY(0);
}

/* NAVIGATION 2.0 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.5s ease;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo-box img {
    height: 65px;
    width: auto;
    transition: var(--anim-base);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.navbar.scrolled .nav-logo-box img {
    height: 50px;
    filter: none;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: #111;
    position: relative;
    text-shadow: none;
    transition: var(--anim-base);
    display: inline-block;
}

/* MOBILE MENU OVERLAY */
.mobile-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 2005;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
}

.mobile-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-overlay.active {
    transform: translateX(0);
}

.mobile-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-link {
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.mobile-overlay.active .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for links */
.mobile-overlay.active .mobile-nav-link:nth-child(1) {
    transition-delay: 0.3s;
}

.mobile-overlay.active .mobile-nav-link:nth-child(2) {
    transition-delay: 0.4s;
}

.mobile-overlay.active .mobile-nav-link:nth-child(3) {
    transition-delay: 0.5s;
}

.mobile-overlay.active .mobile-nav-link:nth-child(4) {
    transition-delay: 0.6s;
}

.mobile-overlay.active .mobile-nav-link:nth-child(5) {
    transition-delay: 0.7s;
}

.mobile-nav-link:hover {
    color: var(--color-secondary);
    padding-left: 1rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: var(--anim-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-secondary);
}

.navbar.scrolled .nav-link {
    color: var(--color-primary);
    text-shadow: none;
}

/* NAV CARD BUTTON */
.nav-card-btn {
    padding: 0.75rem 1.8rem;
    background: var(--grad-gold);
    color: white !important;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(176, 130, 86, 0.2);
    transition: all 0.4s var(--ease-out);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: none;
}

.nav-card-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(176, 130, 86, 0.4);
    filter: brightness(1.1);
}

.nav-card-btn i {
    font-size: 1rem;
}


/* MOBILE MENU BUTTON */
#mobileMenuBtn {
    display: none;
}

/* CUSTOM HAMBURGER */
.hamburger-box {
    width: 25px;
    height: 18px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    /* Changed from white to black by default */
    border-radius: 10px;
    transition: all 0.3s var(--ease-out);
}

.navbar.scrolled .hamburger-line {
    background: var(--color-primary);
}

.hamburger-box:hover .hamburger-line:nth-child(2) {
    width: 70%;
}

.hamburger-box:hover .hamburger-line:nth-child(3) {
    width: 40%;
}


.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-secondary);
    transition: var(--anim-base);
}

.navbar.scrolled .nav-link:hover {
    color: var(--color-secondary);
}

.nav-link:hover::after {
    width: 100%;
}

/* HERO 4.0 - MINIMALIST ZEN */
.hero {
    display: flex;
    align-items: center;
    background: radial-gradient(circle at center, #ffffff 0%, #f7f7f7 60%, #ececec 100%);
    border-bottom: 1px solid #f0f0f0;
    padding: 120px 0 0 0;
    position: relative;
    overflow: hidden;
}

.hero-zen-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 6rem;
}

.hero-zen-text {
    flex: 1;
    max-width: 550px;
    margin-bottom: 220px;
    animation: contentReveal 1.2s var(--ease-out) both;
}

.zen-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 700;
    color: #888;
    margin-bottom: 2rem;
    display: block;
}

.zen-title {
    font-size: 4rem;
    line-height: 1.1;
    color: #111;
    font-weight: 300;
    margin-bottom: 2rem;
}

.zen-title strong {
    font-weight: 700;
    color: var(--color-secondary);
}

.zen-paragraph {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 3rem;
}

.zen-actions {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.zen-btn-primary {
    padding: 1.1rem 2.8rem;
    background: #111;
    color: white;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.3s ease;
}

.zen-btn-primary:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
}

.zen-btn-link {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #111;
    border-bottom: 2px solid #eee;
    padding-bottom: 4px;
}

.zen-btn-link:hover {
    border-color: var(--color-secondary);
}

.hero-zen-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.zen-main-img {
    width: 100%;
    max-width: 650px;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.1));
    animation: heroReveal 1.5s var(--ease-out) both;
}

@keyframes heroReveal {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* RESPONSIVE ZEN */
@media (max-width: 1024px) {
    .hero {
        padding: 100px 0 0 0;
    }

    .hero-zen-layout {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
        align-items: center;
    }

    .hero-zen-text {
        max-width: 100%;
        margin-bottom: 2rem;
        padding: 0 1.5rem;
    }

    .zen-actions {
        justify-content: center;
        gap: 1.5rem;
    }

    .zen-title {
        font-size: 2.5rem;
    }

    .zen-paragraph {
        font-size: 1rem;
    }

    .hero-zen-visual {
        width: 100%;
        justify-content: center;
        margin-top: auto;
    }

    .zen-main-img {
        max-width: 100%;
        width: 100%;
    }
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 3rem;
    background: var(--color-secondary);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border: none;
    cursor: pointer;
    transition: var(--anim-base);
    animation: fadeInUp 1s var(--ease-out) 0.6s both;
}

.hero-btn:hover {
    background: #111 !important;
    color: white !important;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-btn i {
    transition: transform 0.3s var(--ease-out);
}

.hero-btn:hover i {
    transform: none;
}

/* SECTIONS */
.section-padding {
    padding: var(--spacing-xl) 0;
}

.section-title-wrap {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-secondary);
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--color-primary);
}

.section-title strong {
    color: var(--color-secondary);
}

/* CATEGORY DISPLAY GRID */
.category-display-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* GRID & COMPONENT CLASSES */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    margin-bottom: 8rem;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.journey-card {
    background: var(--color-primary);
    border-radius: 60px;
    padding: 6rem;
    color: white;
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
}

.reseller-info-card {
    background: #fff;
    padding: 3.5rem;
    border-radius: 50px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.reseller-benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-wrapper-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.contact-map-card {
    background: var(--color-surface);
    border-radius: 30px;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    position: relative;
    width: 100%;
}

.main-footer {
    background: var(--color-primary) !important;
    color: white !important;
    padding: 6rem 0 3rem;
    overflow: hidden;
}

.category-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--color-surface);
    display: block;
}

.category-card.desktop-hidden {
    display: none;
}

@media (max-width: 768px) {
    .category-card.desktop-hidden {
        display: block;
        /* Reset desktop hide on mobile to use mobile logic */
    }

    .category-card.mobile-hidden {
        display: none;
    }
}

.category-display-grid.show-all .category-card {
    display: block !important;
}

.category-img-box {
    width: 100%;
    height: 100%;
    position: relative;
}

.category-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s var(--ease-out);
}

.category-card:hover .category-img-box img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 3rem;
    color: white;
}

.category-info {
    width: 100%;
}

.category-name {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.category-link {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    transition: var(--anim-base);
}

.category-card:hover .category-link {
    gap: 1rem;
}

@media (max-width: 1024px) {
    .category-display-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .category-name {
        font-size: 2rem;
    }
}

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--anim-base);
    display: flex;
    justify-content: center;
}

/* RESTORE PRODUCT MASONRY */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

.product-card {
    position: relative;
    background: var(--color-surface);
    transition: var(--anim-base);
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    z-index: 10;
}

.product-img-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    /* Menghilangkan padding agar gambar lebih pas di card */
    box-sizing: border-box;
    background: var(--color-surface);
    border-radius: 0;
    overflow: hidden;
}

.product-img-box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    /* Memastikan gambar tidak terpotong */
    transition: transform 1.2s var(--ease-out);
}

.product-card:hover .product-img-box img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 5;
}

.product-info {
    padding: 1rem;
    text-align: center;
}

.product-name {
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.product-price {
    font-weight: 400;
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

.product-card:hover .product-overlay {
    opacity: 1;
    transform: translateY(0);
}

.btn-view {
    padding: 0.8rem 2rem;
    background: white;
    color: black;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* PAGE TRANSITIONS & ANIMATIONS */
section,
.detail-workspace {
    animation: flickerReveal 1s var(--ease-out) both;
}

@keyframes flickerReveal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes navSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes navItemReveal {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes contentReveal {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* KEYFRAMES */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MOBILE REFINEMENTS */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 4rem;
        --spacing-lg: 2.5rem;
        --spacing-md: 1.25rem;
    }

    body {
        font-size: 14px;
        overflow-x: hidden !important;
        position: relative;
        width: 100%;
    }

    .container {
        padding: 0 1.25rem !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    #mobileMenuBtn {
        display: block !important;
        cursor: pointer;
        padding: 0.5rem;
        color: var(--color-primary);
    }

    .nav-links,
    .nav-actions>a.nav-card-btn {
        display: none !important;
    }

    .nav-logo-box img {
        height: 35px !important;
    }

    .nav-actions {
        display: flex !important;
        gap: 0.5rem !important;
    }

    .hero-zen-layout {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
        gap: 2rem;
    }

    .zen-title {
        font-size: 2.4rem;
        line-height: 1.2;
    }

    .zen-paragraph {
        font-size: 0.9rem;
        margin: 1.5rem 0;
    }

    .zen-actions {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .zen-btn-primary {
        width: 100%;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-padding {
        padding: 4rem 0;
    }

    /* Responsive Grid Classes */
    .about-grid,
    .reseller-benefits-grid,
    .contact-wrapper-grid,
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .about-grid {
        margin-bottom: 4rem;
        text-align: center;
    }

    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .about-stats-grid>div {
        padding: 1.5rem !important;
        border-radius: 20px !important;
    }

    .journey-card {
        padding: 3rem 1.5rem !important;
        border-radius: 30px !important;
    }

    .journey-grid {
        gap: 2.5rem !important;
    }

    .reseller-info-card {
        padding: 2rem 1.5rem !important;
        border-radius: 30px !important;
    }

    .reseller-benefits-grid {
        gap: 2rem !important;
    }

    .reseller-benefits-grid>div {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem !important;
    }

    .product-name {
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
        line-height: 1.4;
        font-size: 0.75rem;
        /* Retain existing font-size */
    }

    .product-info {
        padding: 0.8rem 0.5rem;
        text-align: center;
        /* Retain existing text-align */
    }

    /* Fix buttons that should be hidden on mobile if they are hardcoded desktop-only */
    .desktop-only {
        display: none !important;
    }

    /* Product Grid specifically */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
        text-align: left;
    }

    .main-footer {
        background: var(--color-primary) !important;
        color: white !important;
        padding: 4rem 0 2rem;
    }

    .footer-social-icon {
        justify-content: flex-start;
    }

    .contact-map-card {
        min-height: 300px;
        width: 100%;
    }

    /* Homepage Category Grid Fix */
    .category-display-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem !important;
    }

    .category-card {
        aspect-ratio: 1/1 !important;
        /* Square for mobile better fit */
    }

    .category-overlay {
        padding: 1rem !important;
    }

    .category-name {
        font-size: 1.2rem !important;
        margin-bottom: 0.2rem;
    }

    .category-link {
        font-size: 0.55rem !important;
    }

    /* Footer adjustments */
    footer {
        margin-top: 5rem !important;
    }
}

/* FOOTER INTERACTIVE EFFECTS */
.footer-link-item {
    transition: all 0.3s var(--ease-out);
}

.footer-link-item:hover {
    color: var(--color-secondary) !important;
    opacity: 1 !important;
    padding-left: 8px;
}

.footer-social-icon {
    transition: all 0.4s var(--ease-out);
}

.footer-social-icon:hover {
    transform: translateY(-8px) scale(1.2);
    filter: drop-shadow(0 5px 15px rgba(176, 130, 86, 0.4));
}

/* COMPACT SEARCH DROPDOWN */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-card-dropdown {
    position: absolute;
    top: calc(100% + 20px);
    right: 0;
    width: 350px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    padding: 1.25rem;
    display: none;
    flex-direction: column;
    z-index: 3100;
    animation: slideDownFade 0.3s var(--ease-out);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-card-dropdown.active {
    display: flex;
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-input-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.search-input-group input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    border: 1px solid #eee;
    border-radius: 10px;
    font-size: 0.8rem;
    outline: none;
    transition: all 0.3s ease;
    background: #f8f8f8;
}

.search-input-group i.search-icon-inside {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.search-input-group input:focus {
    background: #fff;
    border-color: var(--color-secondary);
}

.search-results-area {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 5px;
}

.search-results-area::-webkit-scrollbar {
    width: 4px;
}

.search-results-area::-webkit-scrollbar-thumb {
    background: #eee;
    border-radius: 10px;
}

.search-section-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: var(--color-text-muted);
    margin: 1rem 0 0.8rem 0;
    display: block;
}

.search-section-label:first-child {
    margin-top: 0;
}

.result-card-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.result-card-item:hover {
    background: #f9f9f9;
}

.result-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    background: #eee;
}

.result-info h5 {
    font-size: 0.8rem;
    color: #111;
    margin-bottom: 0.1rem;
    font-weight: 600;
}

.result-info span {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.feature-result-card {
    display: block;
    padding: 0.8rem;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid #f5f5f5;
    transition: all 0.2s ease;
    margin-bottom: 0.4rem;
}

.feature-result-card:hover {
    border-color: var(--color-secondary);
    background: #fff;
    transform: translateX(3px);
}

.feature-result-card h5 {
    font-size: 0.75rem;
    color: #111;
    margin-bottom: 0.1rem;
}

.feature-result-card p {
    font-size: 0.65rem;
    color: var(--color-text-muted);
}

.nav-search-btn {
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.3s ease;
    color: inherit;
    background: none;
    border: none;
    padding: 0.5rem;
}

/* MOBILE SEARCH CARD BUTTON */
.nav-search-card-mobile {
    display: none;
}

@media (max-width: 768px) {
    .nav-search-card-mobile {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        background: #f5f5f5;
        padding: 0.5rem 0.8rem;
        border-radius: 10px;
        color: var(--color-primary);
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        border: none;
        cursor: pointer;
    }

    .nav-search-btn {
        display: none !important;
        /* Hide standard icon on mobile navbar */
    }

    .search-card-dropdown {
        position: fixed;
        top: 80px;
        left: 15px;
        right: 15px;
        width: auto;
        max-width: none;
        border-radius: 12px;
    }
}