:root {
    --primary-yellow: #ffcc00;
    --bg-light: #f8f9fa;
    --text-dark: #222222;
    --text-gray: #777777;
    --border-color: #eeeeee;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #ffffff;
    color: var(--text-dark);
    padding-bottom: 70px;
}

.tab-content, .hide {
    display: none;
}
.tab-content.active {
    display: block;
}

/* Banner Slider Container */
.banner-container {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
}

.banner-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

.banner-slides .slide {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dots Styling */
.dots-indicator {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 20px;
    background: var(--primary-yellow, #ffcc00);
}

/* Announcements Banner Styling */
.announcement-container {
    width: 100%;
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.announcement-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.section-padding {
    padding: 16px;
}

.greeting-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.delivery-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.option-card {
    background: var(--primary-yellow);
    border-radius: 12px;
    padding: 16px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.section-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.see-all-btn {
    color: var(--primary-yellow);
    font-size: 12px;
    font-weight: bold;
}

.announcement-card-01 {
    width: 100%;
    height: 180px;
    background: url('../image/announcement_01.png') center/cover;
    border-radius: 12px;
    margin-top: 10px;
}

.announcement-card-02 {
    width: 100%;
    height: 180px;
    background: url('../image/announcement_02.png') center/cover;
    border-radius: 12px;
    margin-top: 10px;
}

/* Headers */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.center-header {
    justify-content: center;
}

.page-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
}

.location-picker {
    font-weight: bold;
    font-size: 13px;
}

.search-icon {
    color: var(--primary-yellow);
}

/* Menu Layout */
.menu-layout {
    display: flex;
    min-height: calc(100vh - 120px);
}

.menu-sidebar {
    width: 90px;
    background: #fafafa;
    border-right: 1px solid var(--border-color);
}

.sidebar-item {
    padding: 14px 8px;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-gray);
    border-left: 3px solid transparent;
}

.sidebar-item i {
    font-size: 18px;
    display: block;
    margin-bottom: 4px;
}

.sidebar-item.active {
    color: var(--text-dark);
    background: #ffffff;
    border-left-color: var(--primary-yellow);
}

.menu-content {
    flex: 1;
    padding: 12px;
}

.category-title {
    margin-bottom: 10px;
}

.product-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.product-info h4 {
    font-size: 14px;
    margin-bottom: 6px;
}

.product-info p {
    font-size: 13px;
    font-weight: bold;
}

.product-img {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    object-fit: cover;
}

/* Account Page */
.section-subtitle {
    font-size: 11px;
    color: var(--text-gray);
    font-weight: bold;
    margin-bottom: 8px;
}

.spacing-top {
    margin-top: 20px;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.account-card {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 13px;
}

.account-card i {
    font-size: 20px;
    color: var(--text-gray);
}

.login-btn {
    background: var(--primary-yellow);
    border: none;
    padding: 6px 16px;
    border-radius: 15px;
    font-weight: bold;
    color: #ffffff;
}

.social-section {
    text-align: center;
    margin-top: 40px;
}

.social-section p {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 20px;
    color: var(--text-dark);
}

/* History Page */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: var(--text-gray);
}

.empty-state i {
    font-size: 60px;
    color: var(--primary-yellow);
    margin-bottom: 16px;
}

.empty-state p {
    font-weight: 600;
}

/* Shared UI Switches */
.toggle-switch {
    background: #eeeeee;
    border-radius: 20px;
    display: inline-flex;
    padding: 2px;
}

.toggle-btn {
    padding: 6px 16px;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    background: transparent;
    cursor: pointer;
}

.toggle-btn.active {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-box {
    width: 85%;
    max-width: 320px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.modal-box img {
    width: 100%;
    display: block;
}

.close-btn {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.8);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    bottom: 0;
    left: 0; right: 0;
    height: 60px;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 20;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    color: var(--text-gray);
    text-decoration: none;
    cursor: pointer;
}

.nav-item i {
    font-size: 18px;
    margin-bottom: 3px;
}

.nav-item.active {
    color: var(--primary-yellow);
}

.nav-item.qr-btn {
    background: var(--primary-yellow);
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    justify-content: center;
    margin-top: -15px;
}

.nav-item.qr-btn i {
    font-size: 22px;
    margin-bottom: 0;
}

.detail-container {
    background: #ffffff;
    min-height: 100vh;
    padding-bottom: 110px;
    position: relative;
}

.detail-header {
    position: absolute;
    top: 12px;
    left: 16px;
    z-index: 10;
}

.back-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #ffcc00;
    cursor: pointer;
}

.product-hero {
    width: 100%;
    height: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fafafa;
}

.product-hero img {
    max-height: 220px;
    object-fit: contain;
}

.detail-body {
    padding: 20px 16px;
}

.title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.product-name {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.favorite-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffcc00;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.favorite-btn i {
    font-size: 20px;
    margin-bottom: 2px;
}

.product-description {
    font-size: 13px;
    color: #999;
    line-height: 1.4;
    margin-bottom: 24px;
}

/* Option Groups */
.option-group {
    margin-bottom: 24px;
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.group-title {
    font-weight: 700;
    font-size: 14px;
    color: #333;
}

.required-badge {
    background: #fff8d6;
    color: #8a7300;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.options-grid {
    display: flex;
    gap: 12px;
}

.options-grid.four-col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

/* Option Chips */
.option-chip {
    background: #fcfcfc;
    border: 1.5px solid #eee;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-chip.size-chip {
    width: 90px;
    height: 70px;
}

.option-chip .chip-label {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    margin-bottom: 4px;
}

.option-chip .chip-price {
    font-size: 12px;
    font-weight: 700;
    color: #ffcc00;
}

.icon-chip {
    padding: 12px 6px;
    font-size: 11px;
    color: #999;
    text-align: center;
}

.icon-chip i {
    font-size: 22px;
    margin-bottom: 8px;
    color: #999;
}

/* Active Selected Chip */
.option-chip.active {
    background: #fff8d6;
    border-color: #ffcc00;
}

.option-chip.active .chip-label,
.option-chip.active span,
.option-chip.active i {
    color: #222;
}

/* Bottom Bar */
.bottom-checkout-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.06);
    padding: 16px 20px;
    z-index: 50;
}

.subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.subtotal-label {
    font-weight: 700;
    font-size: 15px;
}

.subtotal-amount {
    font-weight: 800;
    font-size: 16px;
}

.action-row {
    display: flex;
    gap: 16px;
    align-items: center;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 14px;
}

.qty-btn {
    border: none;
    background: transparent;
    color: #ffcc00;
    font-size: 18px;
    cursor: pointer;
}

.qty-number {
    font-weight: 700;
    font-size: 15px;
}

.add-to-cart-btn {
    flex: 1;
    background: #ffcc00;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-weight: 800;
    color: #ffffff;
    font-size: 13px;
    letter-spacing: 0.5px;
    cursor: pointer;
}