/* ----------------------------------------------
   RESET & BASE (Teal/Cyan Theme)
-------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #FFFFFF;
    color: #000000;
    line-height: 1.6;
}

:root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #E8F5F4;
    --bg-card: #F5FBFB;
    --bg-dark: #000000;
    --text-primary: #000000;
    --text-muted: #4B5563;
    --accent-teal: #00AEB5;
    --accent-teal-hover: #2A8E94;
    --border-subtle: #D1E5E3;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ----------------------------------------------
   HEADER / NAVBAR
-------------------------------------------------- */
.navbar {
    padding: 20px 0;
    background-color: #000000;
    border-bottom: 2px solid var(--accent-teal);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #FFFFFF;
}
.logo span {
    color: var(--accent-teal);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    list-style: none;
    font-size: 14px;
    font-weight: 500;
}
.nav-links a {
    color: #D1D5DB;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--accent-teal);
}
.nav-links .rewards-link {
    color: #000000;
    background: var(--accent-teal);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.nav-links .rewards-link:hover {
    background: var(--accent-teal-hover);
    color: #FFFFFF;
}

/* ----------------------------------------------
   HERO SECTION
-------------------------------------------------- */
.hero {
    padding: 80px 0 70px 0;
    text-align: center;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: #000000;
}
.hero h1 span {
    color: var(--accent-teal);
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 40px auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--accent-teal);
    color: #FFFFFF;
    padding: 14px 40px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-primary:hover {
    background: var(--accent-teal-hover);
}

.btn-secondary {
    background: transparent;
    color: #000000;
    padding: 14px 40px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid var(--accent-teal);
    cursor: pointer;
    transition: all 0.2s;
}
.btn-secondary:hover {
    background: var(--accent-teal);
    color: #FFFFFF;
    border-color: var(--accent-teal);
}

/* ----------------------------------------------
   PRODUCT GRID
-------------------------------------------------- */
.products-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.section-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #000000;
}
.section-header a {
    color: var(--accent-teal);
    font-size: 14px;
    font-weight: 600;
}
.section-header a:hover {
    color: var(--accent-teal-hover);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 20px 16px 24px 16px;
    border: 1px solid var(--border-subtle);
    transition: all 0.25s ease;
    position: relative;
}
.product-card:hover {
    background: #FFFFFF;
    border-color: var(--accent-teal);
    box-shadow: 0 8px 25px rgba(0, 174, 181, 0.15);
    transform: translateY(-4px);
}

.purity-badge {
    background: var(--accent-teal);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 14px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
}

.product-img {
    width: 100%;
    aspect-ratio: 1/1;
    background: #FFFFFF;
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 12px;
    border: 1px dashed var(--border-subtle);
}

.product-title {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 2px;
    line-height: 1.3;
}

.product-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    margin: 10px 0 16px 0;
}

.product-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-add {
    background: var(--accent-teal);
    color: #FFFFFF;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    flex: 1;
}
.btn-add:hover {
    background: var(--accent-teal-hover);
}

.btn-options {
    background: transparent;
    color: #000000;
    border: 1px solid var(--border-subtle);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    cursor: pointer;
    transition: border 0.2s;
}
.btn-options:hover {
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}

.ruo-tag {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
    padding-top: 14px;
    margin-top: 14px;
    display: block;
    text-align: center;
}

/* ----------------------------------------------
   FOOTER
-------------------------------------------------- */
.footer {
    background: #000000;
    border-top: 3px solid var(--accent-teal);
    padding: 60px 0 30px 0;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.footer p, .footer a {
    font-size: 14px;
    color: #9CA3AF;
    line-height: 2.2;
}
.footer a:hover {
    color: var(--accent-teal);
}

.footer-newsletter input {
    background: #1A1A1A;
    border: 1px solid #333333;
    padding: 12px 16px;
    border-radius: 40px;
    width: 100%;
    color: #FFF;
    margin-bottom: 12px;
}
.footer-newsletter input::placeholder {
    color: #6B7280;
}
.footer-newsletter button {
    background: var(--accent-teal);
    border: none;
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: 700;
    cursor: pointer;
    color: #FFFFFF;
    width: 100%;
    transition: background 0.2s;
}
.footer-newsletter button:hover {
    background: var(--accent-teal-hover);
}

.copyright {
    border-top: 1px solid #1A1A1A;
    padding-top: 25px;
    text-align: center;
    font-size: 13px;
    color: #6B7280;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 32px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .nav-links { gap: 15px; }
}
/* ===== SEARCH BAR ===== */
.search-container {
    position: relative;
    margin-left: auto;
}

.search-form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 30px;
    padding: 4px 4px 4px 16px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    min-width: 200px;
}

.search-form:focus-within {
    background: rgba(255,255,255,0.2);
    border-color: #00AEB5;
    box-shadow: 0 0 20px rgba(0,174,181,0.1);
}

.search-form input {
    background: transparent;
    border: none;
    outline: none;
    color: #FFFFFF;
    font-size: 14px;
    padding: 8px 0;
    width: 100%;
    min-width: 120px;
}

.search-form input::placeholder {
    color: rgba(255,255,255,0.6);
}

.search-form button {
    background: #00AEB5;
    border: none;
    color: #FFFFFF;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
}

.search-form button:hover {
    background: #2A8E94;
}

/* Search Suggestions Dropdown */
.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border: 1px solid #E5E7EB;
    display: none;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    min-width: 300px;
}

.search-suggestions.active {
    display: block;
}

.search-suggestions .suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #F3F4F6;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    color: #000;
}

.search-suggestions .suggestion-item:hover {
    background: #E8F5F4;
}

.search-suggestions .suggestion-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: #F9FAFB;
    border-radius: 6px;
    padding: 4px;
}

.search-suggestions .suggestion-item .info {
    flex: 1;
}

.search-suggestions .suggestion-item .info .name {
    font-weight: 600;
    font-size: 14px;
}

.search-suggestions .suggestion-item .info .sub {
    font-size: 12px;
    color: #6B7280;
}

.search-suggestions .suggestion-item .info .price {
    font-weight: 700;
    color: #00AEB5;
    font-size: 14px;
}

.search-suggestions .suggestion-empty {
    padding: 20px;
    text-align: center;
    color: #6B7280;
    font-size: 14px;
}

.search-suggestions .suggestion-view-all {
    padding: 12px 16px;
    text-align: center;
    background: #F9FAFB;
    border-top: 1px solid #E5E7EB;
    font-weight: 600;
    color: #00AEB5;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.search-suggestions .suggestion-view-all:hover {
    background: #E8F5F4;
}

/* Mobile Search */
@media (max-width: 768px) {
    .search-container {
        order: 10;
        width: 100%;
        margin-top: 12px;
    }
    
    .search-form {
        width: 100%;
        min-width: unset;
    }
    
    .search-suggestions {
        min-width: unset;
        left: -60px;
        right: -60px;
    }
}
@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
    }
    
    .search-container {
        order: 10;
        width: 100%;
        margin-top: 12px;
    }
    
    .search-form {
        width: 100%;
    }
}
/* ===== MOBILE SEARCH: ICON ONLY ===== */
@media (max-width: 768px) {
    /* On mobile, hide the input, show only the button */
    .search-form input {
        display: none;
    }
    .search-form {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        min-width: auto !important;
        width: auto !important;
        box-shadow: none !important;
    }
    .search-form button {
        background: transparent !important;
        color: #FFFFFF !important;
        padding: 8px 10px !important;
        font-size: 20px !important;
        border-radius: 50% !important;
    }
    .search-form button:hover {
        background: rgba(255,255,255,0.1) !important;
        color: #00AEB5 !important;
    }
    /* Adjust navbar right spacing */
    .navbar-right {
        gap: 6px !important;
    }
    /* Suggestions dropdown position */
    .navbar-right .search-suggestions {
        right: -20px !important;
        left: -20px !important;
        min-width: 240px !important;
    }
}
/* ==============================================
   LIVE CHAT WIDGET - RIGHT ALIGNED + FULL MOBILE
   ============================================== */

/* --- Desktop --- */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: auto;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #00AEB5;
    color: #FFF;
    border: none;
    box-shadow: 0 4px 20px rgba(0,174,181,0.4);
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.chat-toggle:hover {
    transform: scale(1.05);
    background: #2A8E94;
}

.chat-toggle .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #EF4444;
    color: #FFF;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: none;
    align-items: center;
    justify-content: center;
}

.chat-toggle .badge.show {
    display: flex;
}

.chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    left: auto;
    width: 360px;
    max-width: 90vw;
    height: 450px;
    background: #FFF;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border: 1px solid #E5E7EB;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-box.open {
    display: flex;
}

.chat-header {
    background: #00AEB5;
    color: #FFF;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.chat-header .close-btn {
    background: none;
    border: none;
    color: #FFF;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
}

.chat-header .close-btn:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    padding: 12px 16px;
    overflow-y: auto;
    background: #F9FAFB;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 60px;
}

.chat-message {
    max-width: 80%;
    padding: 8px 14px;
    border-radius: 12px;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.4;
    animation: fadeIn 0.2s ease;
}

.chat-message.user {
    background: #00AEB5;
    color: #FFF;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-message.admin {
    background: #E5E7EB;
    color: #000;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-message .sender {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.7;
    margin-bottom: 2px;
}

.chat-message .time {
    font-size: 10px;
    opacity: 0.6;
    margin-top: 4px;
    text-align: right;
}

.chat-input-area {
    padding: 10px 16px;
    border-top: 1px solid #E5E7EB;
    display: flex;
    gap: 8px;
    background: #FFF;
    flex-shrink: 0;
}

.chat-input-area input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

.chat-input-area input:focus {
    border-color: #00AEB5;
    box-shadow: 0 0 0 3px rgba(0,174,181,0.1);
}

.chat-input-area button {
    background: #00AEB5;
    color: #FFF;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.chat-input-area button:hover {
    background: #2A8E94;
}

.chat-guest-info {
    padding: 8px 16px;
    background: #F3F4F6;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.chat-guest-info input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 13px;
    min-width: 80px;
}

.chat-guest-info input:focus {
    border-color: #00AEB5;
    outline: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==============================================
   MOBILE RESPONSIVE (Right Aligned, Full Display)
   ============================================== */
@media (max-width: 767px) {
    .chat-widget {
        bottom: 10px;
        right: 10px;
        left: auto;
    }

    .chat-toggle {
        width: 48px;
        height: 48px;
        font-size: 18px;
        box-shadow: 0 3px 15px rgba(0,174,181,0.3);
    }

    .chat-toggle .badge {
        width: 16px;
        height: 16px;
        font-size: 8px;
        top: -2px;
        right: -2px;
    }

    .chat-box {
        width: calc(100vw - 20px) !important;
        height: 70vh !important;
        max-height: 70vh !important;
        bottom: 65px !important;
        right: 10px !important;
        left: auto !important;
        border-radius: 16px !important;
        max-width: 100vw !important;
        box-shadow: 0 5px 25px rgba(0,0,0,0.25);
        display: none;
        flex-direction: column;
    }

    .chat-box.open {
        display: flex;
    }

    .chat-header {
        padding: 10px 14px;
        font-size: 14px;
        flex-shrink: 0;
    }

    .chat-header .close-btn {
        font-size: 16px;
    }

    .chat-messages {
        padding: 8px 10px;
        gap: 4px;
        flex: 1;
        overflow-y: auto;
        min-height: 40px;
    }

    .chat-message {
        font-size: 13px;
        padding: 6px 10px;
        max-width: 85%;
    }

    .chat-message .sender {
        font-size: 10px;
    }

    .chat-message .time {
        font-size: 9px;
    }

    .chat-input-area {
        padding: 8px 10px;
        gap: 4px;
        flex-shrink: 0;
    }

    .chat-input-area input {
        font-size: 13px;
        padding: 6px 8px;
        border-radius: 20px;
    }

    .chat-input-area button {
        font-size: 13px;
        padding: 6px 12px;
    }

    .chat-guest-info {
        padding: 6px 10px;
        gap: 4px;
        flex-shrink: 0;
        flex-wrap: wrap;
    }

    .chat-guest-info input {
        font-size: 12px;
        padding: 4px 6px;
        min-width: 50px;
        flex: 1 1 40%;
    }
}

/* Extra small phones (≤ 375px) */
@media (max-width: 375px) {
    .chat-box {
        height: 65vh !important;
        max-height: 65vh !important;
        bottom: 60px !important;
    }

    .chat-toggle {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .chat-message {
        font-size: 12px;
        padding: 5px 8px;
        max-width: 90%;
    }

    .chat-input-area input {
        font-size: 12px;
        padding: 4px 6px;
    }

    .chat-input-area button {
        font-size: 12px;
        padding: 4px 10px;
    }
}