@font-face {
    font-family: 'YekanBakh';
    src: url('https://uploader-oss-mili.milaadfarzian.workers.dev/download/BQACAgQAAxkBAAICv2iymtz3PuGthpAxUcVoXiyev8SJAAIzQAACy_OZUT2ph7WmNdshNgQ/documents/file_2386.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'YekanBakh';
    src: url('https://uploader-oss-mili.milaadfarzian.workers.dev/download/BQACAgQAAxkBAAICwWiymuEsl0veeBlyzuh3ASm2R1H_AAI0QAACy_OZUV0unp1k_fDdNgQ/documents/file_2387.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'YekanBakh';
    src: url('https://uploader-oss-mili.milaadfarzian.workers.dev/download/BQACAgQAAxkBAAICw2iymuX9Ho15p1mE57WTJ5mfYPf0AAI1QAACy_OZUdEIj-iB8pH2NgQ/documents/file_2388.woff2') format('woff2');
    font-weight: 900; /* Black */
    font-style: normal;
}

body {
    font-family: 'YekanBakh', sans-serif;
}

tailwind.config = {
  theme: {
    extend: {
      colors: {
        primary: '#d1005b',
        'primary-soft': '#fcecf2',
      }
    }
  }
}

.bottom-nav {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    border-radius: 1rem;
}

.product-card {
    box-sizing: border-box;
    cursor: pointer;
}

.filter-sheet, .product-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
}

.filter-sheet.active, .product-sheet.active {
    transform: translateY(0);
}

.filter-overlay, .product-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.filter-overlay.active, .product-overlay.active {
    opacity: 1;
    visibility: visible;
}

.filter-tab {
    display: none;
}

.filter-tab.active {
    display: block;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    background-color: #fcecf2;
    color: #d1005b;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    margin-left: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.filter-chip button {
    margin-right: 0.25rem;
    color: #d1005b;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

.volume-option {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
}

.volume-option.selected {
    background-color: #fcecf2;
    border-color: #d1005b;
    color: #d1005b;
}

.category-chip {
    background-color: #f3f4f6;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

#product-sheet {
    z-index: 1001;
}

#product-overlay {
    z-index: 1000;
}
.product-sheet::-webkit-scrollbar {
    display: none;
}

.product-sheet {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Also hide scrollbar for the content inside if needed */
.product-sheet .overflow-y-auto::-webkit-scrollbar {
    display: none;
}

.product-sheet .overflow-y-auto {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
/* Toast notification styles */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    animation: slideInDown 0.3s ease-out;
    /* backdrop-filter: blur(10px); */
    /* -webkit-backdrop-filter: blur(10px); */
    border-radius: 16px;
    overflow: hidden;
    max-width: 95%;
}

.toast-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    /* backdrop-filter: blur(10px); */
    /* -webkit-backdrop-filter: blur(10px); */
}

.toast-success {
    border-left: 3px solid #10b981;
}

.toast-icon {
    color: #10b981;
    font-size: 18px;
    flex-shrink: 0;
}

.toast-message {
    color: #374151;
    font-weight: 500;
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.toast-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.toast-button {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.toast-button:hover {
    background: rgba(16, 185, 129, 0.2);
    transform: translateY(-1px);
}

.toast-close {
    background: rgba(156, 163, 175, 0.1);
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    background: rgba(156, 163, 175, 0.2);
    color: #6b7280;
}

/* Desktop styles */
@media (min-width: 768px) {
    .toast {
        left: 20px;
        transform: none;
        right: auto;
    }
    
    .toast-content {
        min-width: 320px;
    }
}

/* Mobile styles */
@media (max-width: 767px) {
    .toast {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        max-width: 90%;
    }
    
    .toast-content {
        padding: 12px 14px;
        min-width: auto;
    }
    
    .toast-message {
        font-size: 13px;
    }
    
    .toast-button {
        padding: 5px 10px;
        font-size: 11px;
    }
}

@keyframes slideInDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes slideOutUp {
    from {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    to {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
}

/* For desktop positioning */
@media (min-width: 768px) {
    @keyframes slideInDown {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    @keyframes slideOutUp {
        from {
            transform: translateY(0);
            opacity: 1;
        }
        to {
            transform: translateY(-100%);
            opacity: 0.0; /* Make it fully transparent */
        }
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

.toast {
    animation: slideInDown 0.3s ease-out, fadeOut 1s forwards;
}

.toast-info {
    background-color: #3b82f6;
    color: white;
}