/**
 * FlavorFood Frontend Menu & Cart Styles
 * Asian Elegant Dark Theme Gold & Crimson palette
 * Performance: transform-only animations, no mobile backdrop-filter
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- CSS Custom Properties Asian Elegant Dark --- */
:root {
    --ff-bg:             #0f0f1a;
    --ff-bg-warm:        #13111e;
    --ff-surface:        #1a1828;
    --ff-surface-hover:  #221f33;
    --ff-card:           #1e1b2e;
    --ff-border:         rgba(255, 255, 255, 0.07);
    --ff-border-warm:    rgba(212, 168, 83, 0.12);

    --ff-gold:           #D4A853;
    --ff-gold-dim:       #B8923F;
    --ff-gold-light:     rgba(212, 168, 83, 0.10);
    --ff-gold-glow:      rgba(212, 168, 83, 0.25);
    --ff-crimson:        #C4324A;
    --ff-crimson-hover:  #A82A3E;
    --ff-crimson-light:  rgba(196, 50, 74, 0.12);

    --ff-success:        #2ECC71;
    --ff-warning:        #F39C12;

    --ff-text:           #F0F0F5;
    --ff-text-secondary: #8A8A9F;
    --ff-text-dim:       #5C5C75;

    --ff-radius:         14px;
    --ff-radius-sm:      10px;
    --ff-font:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ff-shadow:         0 2px 12px rgba(0, 0, 0, 0.25);
    --ff-shadow-lg:      0 8px 32px rgba(0, 0, 0, 0.4);
    --ff-transition:     0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --ff-header-h:       64px;
    --ff-cat-h:          50px;
}

/* --- Reset --- */
.ff-app {
    font-family: var(--ff-font);
    color: var(--ff-text);
    background: var(--ff-bg);
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ff-app *, .ff-app *::before, .ff-app *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- Header --- */
.ff-header {
    background: var(--ff-surface);
    border-bottom: 1px solid var(--ff-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.ff-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ff-restaurant-name {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--ff-gold), #E8C373);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Order Mode Toggle --- */
.ff-order-mode {
    display: flex;
    background: var(--ff-bg);
    border-radius: 12px;
    padding: 3px;
    border: 1px solid var(--ff-border);
}

.ff-mode-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--ff-text-secondary);
    font-family: var(--ff-font);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: color var(--ff-transition), background var(--ff-transition);
}

.ff-mode-btn.ff-mode-active {
    background: var(--ff-surface-hover);
    color: var(--ff-gold);
}

.ff-mode-icon { font-size: 1.1rem; }

/* --- Status Banner --- */
.ff-status-banner {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.15), rgba(212, 168, 83, 0.10));
    color: var(--ff-warning);
    padding: 12px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-bottom: 1px solid rgba(243, 156, 18, 0.15);
}

/* --- Categories --- */
.ff-categories {
    background: var(--ff-surface);
    border-bottom: 1px solid var(--ff-border);
    position: sticky;
    top: var(--ff-header-h);
    z-index: 90;
}

.ff-cat-scroll {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.ff-cat-scroll::-webkit-scrollbar { display: none; }

.ff-cat-btn {
    padding: 12px 18px;
    border: none;
    background: transparent;
    color: var(--ff-text-secondary);
    font-family: var(--ff-font);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color var(--ff-transition), border-color var(--ff-transition);
}

.ff-cat-btn:hover { color: var(--ff-text); }

.ff-cat-btn.ff-cat-active {
    color: var(--ff-gold);
    border-bottom-color: var(--ff-gold);
}

/* --- Main Layout --- */
.ff-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}

/* --- Search --- */
.ff-search-bar {
    position: relative;
    margin-bottom: 20px;
}

.ff-search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius-sm);
    font-family: var(--ff-font);
    font-size: 0.95rem;
    background: var(--ff-surface);
    color: var(--ff-text);
    transition: border-color var(--ff-transition);
    outline: none;
}

.ff-search-input:focus {
    border-color: var(--ff-gold-dim);
    box-shadow: 0 0 0 3px var(--ff-gold-light);
}

.ff-search-input::placeholder { color: var(--ff-text-dim); }

.ff-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    pointer-events: none;
    opacity: 0.5;
}

/* --- Menu Sections --- */
.ff-menu-section { margin-bottom: 32px; }

.ff-section-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ff-border-warm);
    letter-spacing: -0.01em;
    color: var(--ff-text);
}

.ff-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

/* --- Product Card --- */
.ff-product-card {
    background: var(--ff-card);
    border-radius: var(--ff-radius-sm);
    border: 1px solid var(--ff-border);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--ff-transition), border-color var(--ff-transition);
    display: flex;
}

.ff-product-card:hover {
    transform: translateY(-2px);
    border-color: var(--ff-border-warm);
}

.ff-product-info {
    flex: 1;
    padding: 14px;
    display: flex;
    flex-direction: column;
}

.ff-product-name {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
    color: var(--ff-text);
}

.ff-product-desc {
    font-size: 0.8rem;
    color: var(--ff-text-secondary);
    line-height: 1.4;
    margin-bottom: 8px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ff-product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ff-product-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--ff-gold);
}

.ff-product-add {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--ff-crimson);
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--ff-transition);
    flex-shrink: 0;
}

.ff-product-add:hover {
    transform: scale(1.12);
}

.ff-product-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    flex-shrink: 0;
}

.ff-product-img-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--ff-gold-light), var(--ff-surface));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

/* --- Sale Price --- */
.ff-price-old {
    text-decoration: line-through;
    color: var(--ff-text-dim);
    font-weight: 400;
    font-size: 0.85em;
    margin-right: 4px;
}

.ff-price-sale {
    color: var(--ff-crimson);
    font-weight: 800;
}

.ff-product-price .ff-price-sale {
    font-size: 1em;
}

/* Sale badge removed - prices shown inline */

.ff-modal-price .ff-price-old {
    font-size: 0.9em;
}

.ff-modal-price .ff-price-sale {
    font-size: 1.1em;
}

.ff-option-price .ff-price-old {
    font-size: 0.85em;
}

/* --- Cart Sidebar --- */
.ff-cart-sidebar {
    background: var(--ff-surface);
    border-radius: var(--ff-radius);
    border: 1px solid var(--ff-border);
    position: sticky;
    top: calc(var(--ff-header-h) + var(--ff-cat-h) + 20px);
    height: fit-content;
    max-height: calc(100vh - var(--ff-header-h) - var(--ff-cat-h) - 40px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ff-cart-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--ff-border);
}

.ff-cart-header h2 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ff-text);
}

.ff-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px;
}

.ff-cart-empty {
    text-align: center;
    padding: 40px 20px;
}

.ff-cart-empty-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
    opacity: 0.4;
}

.ff-cart-empty p {
    color: var(--ff-text-secondary);
    font-size: 0.9rem;
}

.ff-cart-empty-sub {
    font-size: 0.8rem !important;
    margin-top: 4px;
    color: var(--ff-text-dim) !important;
}

/* --- Cart Item --- */
.ff-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--ff-border);
}

.ff-cart-item-added {
    animation: ffFadeIn 0.25s ease;
}

/* Cart item quantity controls */
.ff-cart-item-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    border: 1px solid var(--ff-border);
    overflow: hidden;
}

.ff-cart-qty-btn {
    background: none;
    border: none;
    color: var(--ff-text);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.15s ease;
    font-family: var(--ff-font);
}

.ff-cart-qty-btn:hover {
    background: var(--ff-crimson);
    color: white;
}

.ff-cart-qty-btn:active {
    transform: scale(0.9);
}

.ff-cart-item-qty {
    color: var(--ff-text);
    min-width: 22px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    flex-shrink: 0;
}

.ff-cart-item-details { flex: 1; min-width: 0; }

.ff-cart-item-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ff-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ff-cart-item-extras {
    font-size: 0.73rem;
    color: var(--ff-text-secondary);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ff-cart-item-price {
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    color: var(--ff-gold);
}

.ff-cart-item-remove {
    background: none;
    border: none;
    color: var(--ff-crimson);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.6;
    transition: all 0.15s ease;
    font-family: var(--ff-font);
}

.ff-cart-item-remove:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* --- Cart Note --- */
.ff-cart-note {
    padding: 12px 20px;
    border-top: 1px solid var(--ff-border);
}

.ff-cart-note label {
    font-size: 0.82rem;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    color: var(--ff-text-secondary);
}

.ff-cart-note textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--ff-border);
    border-radius: 8px;
    font-family: var(--ff-font);
    font-size: 0.82rem;
    resize: none;
    outline: none;
    background: var(--ff-bg);
    color: var(--ff-text);
    transition: border-color var(--ff-transition);
}

.ff-cart-note textarea:focus { border-color: var(--ff-gold-dim); }

/* --- Cart Summary --- */
.ff-cart-summary {
    padding: 16px 20px;
    border-top: 1px solid var(--ff-border);
    background: var(--ff-bg-warm);
}

.ff-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.88rem;
    color: var(--ff-text-secondary);
}

.ff-summary-total {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ff-gold);
    padding-top: 10px;
    margin-top: 6px;
    border-top: 1px solid var(--ff-border);
}

.ff-min-order-warning {
    background: rgba(243, 156, 18, 0.08);
    color: var(--ff-warning);
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 10px;
    border: 1px solid rgba(243, 156, 18, 0.12);
}

.ff-checkout-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--ff-crimson), var(--ff-crimson-hover));
    color: white;
    border: none;
    border-radius: var(--ff-radius-sm);
    font-family: var(--ff-font);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 12px;
    transition: transform var(--ff-transition), opacity var(--ff-transition);
}

.ff-checkout-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.ff-checkout-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Zone Selector */
.ff-zone-row {
    flex-wrap: wrap;
    gap: 6px;
}

.ff-zone-select {
    width: 100%;
    padding: 8px 10px;
    background: var(--ff-surface);
    color: var(--ff-text);
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius-sm);
    font-family: var(--ff-font);
    font-size: 0.82rem;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237B7B95' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.ff-zone-select:focus {
    border-color: var(--ff-gold);
}

/* --- Mobile Cart Button --- */
.ff-mobile-cart-btn {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--ff-crimson), var(--ff-crimson-hover));
    color: white;
    border: none;
    border-radius: var(--ff-radius);
    font-family: var(--ff-font);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 200;
    box-shadow: 0 4px 20px rgba(196, 50, 74, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ff-mobile-cart-count {
    background: white;
    color: var(--ff-crimson);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
}

/* --- Cart Drawer (Mobile --- */
.ff-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
}

.ff-drawer-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ff-surface);
    border-radius: 20px 20px 0 0;
    z-index: 999;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: ffSlideUp 0.25s ease;
}

.ff-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--ff-border);
}

.ff-drawer-header h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ff-text);
}

.ff-drawer-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--ff-text-secondary);
    padding: 4px;
}

.ff-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.ff-drawer-body #ff-drawer-cart-clone {
    display: block !important;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    position: static;
    max-height: none;
}

.ff-drawer-body #ff-drawer-cart-clone .ff-cart-header {
    display: none;
}

.ff-drawer-body .ff-cart-item {
    padding: 12px 16px;
}

/* --- Product Modal --- */
.ff-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.ff-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.ff-modal-panel {
    position: relative;
    background: var(--ff-surface);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    animation: ffSlideUp 0.25s ease;
}

.ff-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ff-modal-img {
    height: 220px;
    background: linear-gradient(135deg, var(--ff-gold-light), var(--ff-bg));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ff-modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ff-modal-body { padding: 20px; }

.ff-modal-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--ff-text);
}

.ff-modal-desc {
    font-size: 0.88rem;
    color: var(--ff-text-secondary);
    line-height: 1.5;
    margin-bottom: 10px;
}

.ff-modal-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ff-gold);
    margin-bottom: 20px;
}

/* --- Option Groups (Sizes, Extras, Sauces --- */
.ff-option-group { margin-bottom: 20px; }

.ff-option-group h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ff-text);
}

.ff-option-tag {
    font-size: 0.7rem;
    background: var(--ff-bg);
    color: var(--ff-text-dim);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.ff-option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 2px solid var(--ff-border);
    border-radius: var(--ff-radius-sm);
    margin-bottom: 6px;
    cursor: pointer;
    transition: border-color var(--ff-transition), background var(--ff-transition);
    background: transparent;
}

.ff-option-item:hover {
    border-color: var(--ff-border-warm);
    background: var(--ff-gold-light);
}

.ff-option-item.ff-option-selected {
    border-color: var(--ff-gold);
    background: var(--ff-gold-light);
}

.ff-option-radio, .ff-option-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--ff-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color var(--ff-transition), background var(--ff-transition);
}

.ff-option-check { border-radius: 6px; }

.ff-option-selected .ff-option-radio,
.ff-option-selected .ff-option-check {
    border-color: var(--ff-gold);
    background: var(--ff-gold);
}

.ff-option-selected .ff-option-radio::after,
.ff-option-selected .ff-option-check::after {
    content: '\2713';
    color: #0f0f1a;
    font-size: 0.7rem;
    font-weight: 800;
}

.ff-option-label {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ff-text);
}

.ff-option-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ff-gold);
}

/* --- Quantity Control --- */
.ff-modal-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--ff-border);
    margin-top: 10px;
}

.ff-qty-control {
    display: flex;
    align-items: center;
    background: var(--ff-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--ff-border);
}

.ff-qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--ff-text);
    transition: background var(--ff-transition);
}

.ff-qty-btn:hover { background: var(--ff-surface-hover); }

.ff-qty-value {
    width: 36px;
    text-align: center;
    font-size: 1rem;
    font-weight: 800;
    color: var(--ff-text);
}

.ff-add-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--ff-crimson), var(--ff-crimson-hover));
    color: white;
    border: none;
    border-radius: var(--ff-radius-sm);
    font-family: var(--ff-font);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--ff-transition);
}

.ff-add-btn:hover {
    transform: translateY(-1px);
}

.ff-add-price { font-weight: 800; }

/* --- Loading --- */
.ff-loading {
    text-align: center;
    padding: 60px 20px;
}

.ff-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--ff-border);
    border-top-color: var(--ff-gold);
    border-radius: 50%;
    animation: ffSpin 0.7s linear infinite;
    margin: 0 auto 16px;
}

.ff-loading p { color: var(--ff-text-secondary); }

/* --- Animations transform/opacity only for GPU acceleration --- */
@keyframes ffFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes ffSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

@keyframes ffSpin {
    to { transform: rotate(360deg); }
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .ff-main { grid-template-columns: 1fr; }
    .ff-cart-sidebar { display: none; }
    .ff-mobile-cart-btn { display: flex !important; }
    .ff-product-grid { grid-template-columns: 1fr; }
    .ff-header-inner { flex-direction: column; gap: 10px; }
}

@media (min-width: 901px) {
    .ff-mobile-cart-btn { display: none !important; }
    .ff-cart-drawer { display: none !important; }
}

@media (max-width: 480px) {
    .ff-modal-panel { border-radius: 16px 16px 0 0; max-height: 95vh; }
    .ff-modal-img { height: 180px; }
    .ff-product-img, .ff-product-img-placeholder { width: 100px; height: 100px; }
}

/* --- Scrollbar --- */
.ff-cart-items::-webkit-scrollbar { width: 4px; }
.ff-cart-items::-webkit-scrollbar-track { background: transparent; }
.ff-cart-items::-webkit-scrollbar-thumb { background: var(--ff-border); border-radius: 4px; }

/* --- Hours Widget --- */
.ff-hours-widget {
    background: var(--ff-surface);
    border-radius: var(--ff-radius);
    padding: 20px;
    border: 1px solid var(--ff-border);
}

.ff-hours-status {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.ff-hours-status.ff-open { color: var(--ff-success); }
.ff-hours-status.ff-closed { color: var(--ff-crimson); }

.ff-hours-table {
    width: 100%;
    border-collapse: collapse;
}

.ff-hours-table td {
    padding: 8px 0;
    font-size: 0.88rem;
    color: var(--ff-text-secondary);
    border-bottom: 1px solid var(--ff-border);
}

.ff-hours-table strong { color: var(--ff-text); }