/* Custom styles for Hathoba Fresh */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined', sans-serif;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.hide-scrollbar::-webkit-scrollbar { 
    display: none; 
}
.hide-scrollbar { 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}

@keyframes subtle-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.float-hover:hover { 
    animation: subtle-float 2s ease-in-out infinite; 
}

.glass-header {
    background: rgba(246, 250, 254, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.item-card {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.item-card:active {
    transform: scale(0.98);
}

.rating-star {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}
.rating-star:hover,
.rating-star:focus-visible {
    color: #006d18;
}
.rating-star .material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

#review-image-preview img {
    max-height: 320px;
    width: 100%;
    object-fit: cover;
}

.method-active {
    border-color: #006d18 !important;
    background-color: #E8F4EA !important;
}

/* Animations */
@keyframes checkmark-pop {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.animate-checkmark {
    animation: checkmark-pop 0.5s ease-out forwards;
}

/* ============================================
   BOTTOM SHEET SYSTEM
   ============================================ */

.bottom-sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-sheet-overlay.active {
    display: flex;
}

.bottom-sheet {
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: 1.5rem 1.5rem 0 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.bottom-sheet.active {
    transform: translateY(0);
}

.bottom-sheet-header {
    flex-shrink: 0;
}

.bottom-sheet-content {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.bottom-sheet-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

/* Hide bottom navigation when bottom sheet is open */
body.bottom-sheet-open .bottom-nav,
body.bottom-sheet-open nav[class*="bottom-0"],
body.bottom-sheet-open nav[class*="pb-safe"] {
    display: none !important;
}

/* Desktop: center the bottom sheet with max-width */
@media (min-width: 768px) {
    .bottom-sheet-overlay {
        align-items: flex-end;
        padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
        padding-left: max(16px, env(safe-area-inset-left, 16px));
        padding-right: max(16px, env(safe-area-inset-right, 16px));
    }
    
    .bottom-sheet {
        border-radius: 1.5rem 1.5rem 0 0;
        max-height: 85vh;
    }
}

.receipt-paper {
    font-family: Arial, sans-serif;
    color: #000;
    background: #fff;
    padding: 8px 0;
}

