/* ==========================================
   1. RESET & BASIC STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #F8F6F3;
    color: #222222;
}

/* ==========================================
   2. HEADER & LOGO
   ========================================== */
header {
    width: 100%;
    height: 90px;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    width: 80px;
    height: auto;
    display: block;
}

/* ==========================================
   3. NAVIGATION MENU
   ========================================== */
nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav a {
    position: relative;
    text-decoration: none;
    color: #222222;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    transition: 0.3s ease;
}

nav a:hover {
    color: #d4af37;
}

/* Underline hover effect */
nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: #d4af37;
    transition: 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* ==========================================
   4. NAV ICONS & TOOLTIP
   ========================================== */
.nav-icon {
    display: flex;
    align-items: center;
    gap: 7px;
}

.nav-icon i {
    font-size: 15px;
    transition: 0.3s ease;
}

.nav-icon:hover i {
    color: #d4af37;
}

.icon-btn {
    position: relative !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    text-decoration: none;
    color: #222222;
    font-size: 18px;
}

.icon-btn:hover {
    color: #d4af37;
}

.icon-btn .tooltip {
    position: absolute;
    top: 38px;
    left: 50%;
    transform: translateX(-50%);
    background: #222222;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;
    z-index: 9999;
}

.icon-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   5. HERO SECTION & OVERLAY
   ========================================== */
.hero {
    width: 100%;
    height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url("images/kecil.PNG");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.overlay {
    max-width: 800px;
    padding: 20px;
}

.overlay h3 {
    color: #D4AF37;
    letter-spacing: 6px;
    font-size: 18px;
    margin-bottom: 20px;
}

.overlay h1 {
    color: #ffffff;
    font-size: 60px;
    font-family: 'Cinzel', serif;
    margin-bottom: 25px;
}

.overlay p {
    color: #ffffff;
    font-size: 18px;
    line-height: 30px;
    margin-bottom: 35px;
}

/* Common Button */
.btn {
    display: inline-block;
    text-decoration: none;
    background: #D4AF37;
    color: #ffffff;
    padding: 16px 40px;
    border-radius: 40px;
    font-size: 18px;
    transition: 0.3s ease;
}

.btn:hover {
    background: #b8902b;
    transform: translateY(-3px);
}

/* ==========================================
   6. FEATURE SECTION & CARDS
   ========================================== */
.features {
    padding: 80px;
    text-align: center;
    background: #ffffff;
}

.features h2 {
    font-family: 'Cinzel', serif;
    font-size: 40px;
    margin-bottom: 50px;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
}

.card {
    width: 280px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.card h3 {
    margin: 20px 0 10px;
}

.card p {
    color: #666666;
    padding: 0 20px 25px;
}

/* ==========================================
   7. SEARCH OVERLAY & SEARCH BOX
   ========================================== */

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 8, 10, 0.94);
    z-index: 99999;

    /* Hidden by default */
    display: none;
}

/* Show search overlay */
.search-overlay.active {
    display: block;
}


/* ==========================================
   SEARCH CONTAINER
   ========================================== */

.search-container {
    width: 65%;
    max-width: 1200px;

    position: absolute;
    top: 31%;
    left: 50%;

    transform: translate(-50%, -50%);
}


/* ==========================================
   SEARCH BOX
   ========================================== */

.search-box {
    width: 100%;
    height: 150px;

    border: 1px solid rgba(255,255,255,0.3);

    display: flex;
    align-items: center;

    box-sizing: border-box;

    background: rgba(20, 23, 26, 0.8);
}


/* ==========================================
   SEARCH INPUT
   ========================================== */

.search-box input {
    flex: 1;
    height: 100%;

    background: transparent;
    border: none;
    outline: none;

    color: #ffffff;

    font-size: 42px;

    padding: 0 38px;

    font-family: 'Poppins', sans-serif;
}

.search-box input::placeholder {
    color: #d0d0d0;
}


/* ==========================================
   SEARCH SUBMIT BUTTON
   ========================================== */

.search-submit {
    width: 90px;
    height: 90px;

    margin-right: 22px;

    border: none;
    border-radius: 50%;

    background: #000000;
    color: #ffffff;

    font-size: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition: 0.3s ease;
}

.search-submit:hover {
    background: #b9973d;
    transform: scale(1.05);
}


/* ==========================================
   CLOSE SEARCH BUTTON
   ========================================== */

.close-search {
    position: absolute;

    top: 25px;
    right: 35px;

    background: none;
    border: none;

    color: #ffffff;

    font-size: 45px;

    cursor: pointer;

    z-index: 100000;

    transition: 0.3s ease;
}

.close-search:hover {
    color: #c8a96a;
    transform: rotate(90deg);
}


/* ==========================================
   SEARCH SUGGESTIONS
   ========================================== */

.search-suggestions {
    width: 100%;

    background: #ffffff;

    max-height: 400px;

    overflow-y: auto;

    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}


/* ==========================================
   EACH PRODUCT SUGGESTION
   ========================================== */

.suggestion-item {
    display: flex;
    align-items: center;

    gap: 20px;

    padding: 15px 20px;

    text-decoration: none;

    color: #222222;

    border-bottom: 1px solid #eeeeee;

    transition: 0.2s ease;
}

.suggestion-item:hover {
    background: #f5f2ec;
}


/* ==========================================
   PRODUCT IMAGE
   ========================================== */

.suggestion-item img {
    width: 60px;
    height: 60px;

    object-fit: contain;

    background: #f8f8f8;
}


/* ==========================================
   PRODUCT INFORMATION
   ========================================== */

.suggestion-info {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.suggestion-name {
    font-size: 17px;
    font-weight: 500;

    font-family: 'Poppins', sans-serif;
}

.suggestion-price {
    font-size: 14px;
    color: #b9973d;
}


/* ==========================================
   NO SEARCH RESULT
   ========================================== */

.no-result {
    padding: 20px;

    text-align: center;

    color: #777777;

    font-family: 'Poppins', sans-serif;
}


/* ==========================================
   SEARCH RESPONSIVE
   ========================================== */

@media (max-width: 768px) {

    .search-container {
        width: 90%;
        top: 30%;
    }

    .search-box {
        height: 80px;
    }

    .search-box input {
        font-size: 20px;
        padding: 0 15px;
    }

    .search-submit {
        width: 50px;
        height: 50px;

        margin-right: 10px;

        font-size: 18px;
    }

    .close-search {
        top: 15px;
        right: 20px;

        font-size: 35px;
    }

    .suggestion-item img {
        width: 50px;
        height: 50px;
    }

    .suggestion-name {
        font-size: 14px;
    }

    .suggestion-price {
        font-size: 12px;
    }
}

/* ==========================================
   8. FOOTER
   ========================================== */
footer {
    background: #1B1B1B;
    color: #ffffff;
    text-align: center;
    padding: 25px;
}

footer p {
    font-size: 15px;
}

/* ==========================================
   9. FLOATING SOCIAL BUTTONS (WHATSAPP & TIKTOK)
   ========================================== */
@keyframes wa-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.social-float-group {
    position: fixed;
    right: 25px;
    bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 99999;
}

.social-float-btn {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-size: 28px;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

/* WhatsApp Styling */
.whatsapp-btn {
    background: #25D366 !important;
    animation: wa-pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background: #20ba5a !important;
}

/* TikTok Styling */
.tiktok-btn {
    background: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tiktok-btn:hover {
    transform: scale(1.1);
    background: #111111 !important;
}

/* Tooltip Text */
.social-float-btn span {
    position: absolute;
    right: 70px;
    background: #222222;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    pointer-events: none;
}

.social-float-btn:hover span {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   10. RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 900px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }

    .logo {
        margin-bottom: 15px;
    }

    .logo img {
        width: 80px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    nav a {
        font-size: 15px;
    }

    .overlay h1 {
        font-size: 40px;
    }

    .overlay p {
        font-size: 16px;
    }

    .hero {
        padding: 20px;
    }

    .cards {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .search-container {
        width: 90%;
        padding-top: 35%;
    }

    .search-box {
        height: 75px;
    }

    .search-box input {
        font-size: 20px;
        padding: 0 15px;
    }

    .search-submit {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }

    .search-suggestions {
        grid-template-columns: 1fr;
        padding: 0;
        row-gap: 20px;
    }

    .close-search {
        top: 15px;
        right: 20px;
        font-size: 35px;
    }
}

@media (max-width: 600px) {
    .social-float-group {
        right: 18px;
        bottom: 18px;
        gap: 10px;
    }

    .social-float-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .social-float-btn span {
        display: none;
    }
}
/* ==========================================
   SEARCH SUGGESTION - TEXT ONLY
========================================== */

#suggestions {
    width: 100%;
    background: #ffffff;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Hide ALL images inside search suggestions */
#suggestions img {
    display: none !important;
}

/* Make suggestion links text only */
#suggestions a {
    display: block !important;
    width: 100%;
    padding: 16px 25px;
    text-decoration: none;
    color: #222222;
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 500;
    border-bottom: 1px solid #eeeeee;
    transition: 0.2s ease;
}

/* Hover effect */
#suggestions a:hover {
    background: #f5f2ec;
    color: #b9973d;
}

/* Hide price */
#suggestions .suggestion-price {
    display: none !important;
}
