/* 
   Storefront - Malibu Inspired Design 
   Ref: https://ohbz.com/oo/malibu
*/

:root {
    --malibu-cream: #e6d7c1;
    --malibu-brown: #4a2c2a;
    --malibu-white: #ffffff;
    --malibu-grey: #eeeeee;
    --malibu-text: #333333;
    --malibu-font: 'Inter', sans-serif;
    
    /* Dynamic Overrides */
    --theme-color: var(--malibu-brown);
    --body-bg: var(--malibu-white);
    --cat-bg: var(--malibu-cream);
}

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

body {
    font-family: var(--malibu-font);
    background-color: var(--body-bg);
    color: var(--malibu-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.malibu-header {
    background-color: var(--malibu-cream);
    padding: 40px 20px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.malibu-logo {
    max-width: 120px;
    max-height: 120px;
    margin-bottom: 20px;
}

.logo-rounded {
    border-radius: 50%;
}

.logo-square {
    border-radius: 8px;
}

.malibu-header h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 2.5rem;
    color: var(--malibu-brown);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.malibu-header-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.malibu-header-links a {
    color: var(--malibu-brown);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sticky Category Nav */
.malibu-nav-container {
    position: sticky;
    top: 0;
    background: var(--malibu-white);
    z-index: 1000;
    border-bottom: 1px solid var(--malibu-grey);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.malibu-nav {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 15px 20px;
    max-width: 900px;
    margin: 0 auto;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.malibu-nav::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.malibu-nav-item {
    text-decoration: none;
    color: #888;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-right: 30px;
    padding-bottom: 5px;
    transition: color 0.3s, border-bottom 0.3s;
}

.malibu-nav-item.active {
    color: var(--malibu-brown);
    border-bottom: 2px solid var(--malibu-brown);
}

/* Category Sections */
.malibu-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.malibu-section {
    margin-bottom: 60px;
    scroll-margin-top: 80px;
    display: none; /* Hide by default for tabbed behavior */
}
.malibu-section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.malibu-section-title {
    font-family: var(--malibu-font);
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--theme-color);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--theme-color);
    display: inline-block;
    padding-bottom: 5px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
    cursor: pointer;
    background: rgba(0,0,0,0.05);
}

.status-online { color: #2ecc71; }
.status-offline { color: #e74c3c; }

/* Product List */
.malibu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid var(--malibu-grey);
}

.malibu-item:last-child {
    border-bottom: none;
}

.malibu-item-info {
    flex: 1;
    padding-right: 20px;
}

.malibu-item-name {
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--malibu-brown);
    margin-bottom: 5px;
}

.malibu-item-desc {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

.malibu-item-price {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--malibu-brown);
}

.malibu-add-btn {
    background: transparent;
    border: 1.5px solid var(--malibu-brown);
    color: var(--malibu-brown);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}
.view-more-container {
    padding: 30px 0;
    text-align: center;
}
.view-more-btn {
    background: transparent;
    border: 1.5px solid var(--theme-color);
    color: var(--theme-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s;
}
.view-more-btn:hover {
    background: var(--theme-color);
    color: #fff;
}
.paginated-hidden {
    display: none !important;
}

.malibu-add-btn:hover {
    background: var(--malibu-brown);
    color: var(--malibu-white);
}

/* Floating Footer Button (Call to Order) */
.floating-order-btn {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--theme-color);
    color: #fff;
    padding: 15px 40px;
    border-radius: 40px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
}

.btn-whatsapp {
    background: #25d366;
}

.floating-order-btn:hover {
    bottom: 30px;
    box-shadow: 0 15px 35px rgba(74, 44, 42, 0.4);
}

.floating-order-btn i {
    font-size: 1.1rem;
}

/* Search Bar (Optional but useful) */
.malibu-search-container {
    max-width: 600px;
    margin: -25px auto 40px;
    position: relative;
    z-index: 10;
}

.malibu-search-input {
    width: 100%;
    padding: 18px 25px;
    border-radius: 40px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.malibu-search-input:focus {
    border-color: var(--theme-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

#search-clear-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    display: none;
}

/* Modal Styles */
.malibu-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.malibu-modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    max-width: 90%;
    width: 450px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.schedule-row:last-child {
    border-bottom: none;
}

.day-name {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.day-time {
    font-size: 0.85rem;
    color: #666;
}

.goes-well-with {
    margin-top: 10px;
    font-style: italic;
    font-size: 0.75rem;
    color: var(--theme-color);
    opacity: 0.8;
}
