/* ============================================
   Dzrto Web - Component Styles
   ============================================ */

/* ============================================
   Buttons
   ============================================ */

.btn,
a.btn,
button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    line-height: 1.5;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    cursor: pointer;
    white-space: nowrap;
    min-height: 48px;
    text-decoration: none;
    border: none;
    background: none;
}

.btn-primary,
a.btn-primary,
button.btn-primary {
    background: var(--primary-gradient);
    color: var(--white) !important;
    box-shadow: var(--shadow-button);
}

.btn-primary:hover,
a.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.5);
    color: var(--white) !important;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary,
a.btn-secondary {
    background-color: var(--white);
    color: var(--primary) !important;
    border: 2px solid var(--primary);
}

.btn-secondary:hover,
a.btn-secondary:hover {
    background-color: var(--accent);
    color: var(--primary) !important;
}

.btn-outline,
a.btn-outline {
    background-color: transparent;
    color: var(--black) !important;
    border: 1px solid var(--medium-grey);
}

.btn-outline:hover,
a.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
}

.btn-ghost,
a.btn-ghost {
    background-color: transparent;
    color: var(--black) !important;
}

.btn-ghost:hover,
a.btn-ghost:hover {
    background-color: var(--light-grey);
}

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: var(--text-sm);
    min-height: 36px;
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--text-lg);
    min-height: 56px;
}

.btn-full {
    width: 100%;
}

.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: var(--radius-full);
}

.btn-icon.btn-sm {
    width: 36px;
    height: 36px;
}

/* Icon Buttons */
.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    color: var(--black);
    transition: all var(--transition-fast);
    position: relative;
}

.icon-btn:hover {
    background-color: var(--light-grey);
    color: var(--primary);
}

.icon-btn i {
    font-size: var(--text-lg);
}

/* ============================================
   Cards
   ============================================ */

.card {
    background-color: var(--card-background);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Product Card - Enhanced */
.product-card {
    background-color: var(--card-background);
    border-radius: var(--radius-2xl);
    box-shadow: 0 4px 20px rgba(162, 100, 188, 0.08);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(162, 100, 188, 0.05);
}

.product-card:hover {
    box-shadow: 0 12px 40px rgba(162, 100, 188, 0.15);
    transform: translateY(-6px);
}

.product-card:active {
    transform: translateY(-2px);
}

.product-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-grey), #e8e8e8);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card-image img {
    transform: scale(1.08);
}

.product-card-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    padding: 2px 6px;
    background: var(--accent-gradient);
    color: var(--white);
    font-size: 9px;
    font-weight: var(--font-bold);
    border-radius: var(--radius-full);
    z-index: 1;
    box-shadow: 0 2px 6px rgba(247, 97, 59, 0.3);
}

[dir="rtl"] .product-card-badge {
    left: auto;
    right: 4px;
}

.product-card-favorite {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: var(--grey);
    transition: all 0.3s ease;
    z-index: 1;
    font-size: 12px;
}

[dir="rtl"] .product-card-favorite {
    right: auto;
    left: 4px;
}

.product-card-favorite:hover {
    transform: scale(1.1);
    color: var(--error);
}

.product-card-favorite.active {
    color: var(--error);
    background: linear-gradient(135deg, #fff0f0, #fff);
}

.product-card-favorite.active i {
    font-weight: 900;
}

.product-card-content {
    padding: var(--spacing-sm);
}

.product-card-name {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--black);
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.product-card-description {
    font-size: 10px;
    color: var(--grey);
    margin-bottom: var(--spacing-xs);
    display: none;
    /* Hidden for compact cards */
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xs);
}

.product-card-price {
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-card-original-price {
    font-size: var(--text-xs);
    color: var(--grey);
    text-decoration: line-through;
    margin-left: var(--spacing-xs);
}

[dir="rtl"] .product-card-original-price {
    margin-left: 0;
    margin-right: var(--spacing-xs);
}

.product-card-add-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    color: var(--white);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(247, 97, 59, 0.3);
    font-size: 12px;
}

.product-card-add-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(247, 97, 59, 0.45);
}

.product-card-add-btn:active {
    transform: scale(0.95);
}

/* Product Card Quantity Controls */
.product-card-qty {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    padding: 2px;
    box-shadow: 0 2px 8px rgba(247, 97, 59, 0.3);
}

.product-card-qty .qty-btn {
    width: 26px;
    height: 26px;
    min-width: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    font-size: 10px;
    cursor: pointer;
    border: none;
}

.product-card-qty .qty-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.product-card-qty .qty-btn:active {
    transform: scale(0.9);
}

.product-card-qty .qty-value {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    color: var(--white);
}

/* Out of Stock Styles */
.product-card.out-of-stock {
    opacity: 0.85;
}

.product-card.out-of-stock .product-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 0;
}

.product-card.out-of-stock .product-card-image img {
    filter: grayscale(30%);
}

.out-of-stock-badge {
    background: linear-gradient(135deg, #ef5350, #c62828) !important;
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.35) !important;
    top: auto !important;
    bottom: var(--spacing-sm) !important;
}

.product-card-add-btn.disabled {
    background: linear-gradient(135deg, #9e9e9e, #757575);
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}

.product-card-add-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Out-of-stock reserve button */
.product-card-add-btn.oos-reserve {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.product-card-add-btn.oos-reserve:hover {
    background: linear-gradient(135deg, #FFA726, #FF9800);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

/* Out-of-stock product card overlay */
.product-card.out-of-stock .product-card-image img {
    opacity: 0.7;
}

.product-card-rating {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--text-xs);
    color: var(--dark-grey);
}

.product-card-rating i {
    color: var(--warning);
}

/* Category Card - Enhanced */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    min-width: 90px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover {
    transform: translateY(-6px);
}

.category-card-image {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-2xl);
    background: linear-gradient(135deg, rgba(162, 100, 188, 0.1), rgba(162, 100, 188, 0.05));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(162, 100, 188, 0.12);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.category-card:hover .category-card-image {
    box-shadow: 0 8px 24px rgba(162, 100, 188, 0.2);
    border-color: rgba(162, 100, 188, 0.2);
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: transform 0.3s ease;
}

.category-card:hover .category-card-image img {
    transform: scale(1.1);
}

.category-card-image i {
    font-size: var(--text-2xl);
    color: var(--primary);
    transition: all 0.3s ease;
}

.category-card:hover .category-card-image i {
    transform: scale(1.1);
}

.category-card-name {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--dark-grey);
    text-align: center;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.category-card:hover .category-card-name {
    color: var(--primary);
}

.category-card.active .category-card-image {
    background: var(--primary-gradient);
    box-shadow: 0 8px 24px rgba(162, 100, 188, 0.35);
}

.category-card.active .category-card-image i {
    color: var(--white);
}

.category-card.active .category-card-name {
    color: var(--primary);
    font-weight: var(--font-bold);
}

/* ============================================
   Inputs
   ============================================ */

.input-group {
    position: relative;
    margin-bottom: var(--spacing-md);
}

.input-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--black);
    margin-bottom: var(--spacing-xs);
}

.input {
    width: 100%;
    height: 48px;
    padding: 0 var(--spacing-md);
    background-color: var(--white);
    border: 1px solid var(--medium-grey);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    color: var(--black);
    transition: all var(--transition-fast);
}

.input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    outline: none;
}

.input.error {
    border-color: var(--error);
}

.input-icon {
    position: absolute;
    top: 50%;
    left: var(--spacing-md);
    transform: translateY(-50%);
    color: var(--grey);
}

[dir="rtl"] .input-icon {
    left: auto;
    right: var(--spacing-md);
}

.input-with-icon {
    padding-left: 44px;
}

[dir="rtl"] .input-with-icon {
    padding-left: var(--spacing-md);
    padding-right: 44px;
}

.input-error {
    font-size: var(--text-xs);
    color: var(--error);
    margin-top: var(--spacing-xs);
}

.textarea {
    width: 100%;
    min-height: 120px;
    padding: var(--spacing-md);
    background-color: var(--white);
    border: 1px solid var(--medium-grey);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    color: var(--black);
    resize: vertical;
    transition: all var(--transition-fast);
}

.textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    outline: none;
}

/* ============================================
   Badges
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.badge-primary {
    background-color: var(--primary);
    color: var(--white);
}

.badge-secondary {
    background: var(--accent-gradient);
    color: var(--white);
}

.badge-success {
    background-color: var(--success-light);
    color: var(--success);
}

.badge-error {
    background-color: var(--error-light);
    color: var(--error);
}

.badge-warning {
    background-color: var(--warning-light);
    color: var(--warning);
}

.badge-info {
    background-color: var(--info-light);
    color: var(--info);
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--accent-gradient);
    color: var(--white);
    font-size: 10px;
    font-weight: var(--font-bold);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(247, 97, 59, 0.4);
}

.cart-badge:empty,
.cart-badge[data-count="0"] {
    display: none;
}

/* ============================================
   Modals & Overlays
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: calc(100% - 32px);
    max-width: 480px;
    max-height: calc(100vh - 64px);
    background-color: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--light-grey);
}

.modal-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: var(--grey);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background-color: var(--light-grey);
    color: var(--black);
}

.modal-content {
    padding: var(--spacing-lg);
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

.modal-footer {
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--light-grey);
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
}

/* Bottom Sheet (Mobile) */
.bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--white);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    box-shadow: var(--shadow-xl);
    z-index: var(--z-modal);
    transform: translateY(100%);
    transition: transform var(--transition-normal);
    max-height: 90vh;
    overflow: hidden;
}

.bottom-sheet.active {
    transform: translateY(0);
}

.bottom-sheet-handle {
    display: flex;
    justify-content: center;
    padding: var(--spacing-sm);
}

.bottom-sheet-handle::after {
    content: '';
    width: 40px;
    height: 4px;
    background-color: var(--medium-grey);
    border-radius: var(--radius-full);
}

/* ============================================
   Toast Notifications
   ============================================ */

.toast-container {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + var(--spacing-md) + var(--safe-area-bottom));
    left: var(--spacing-md);
    right: var(--spacing-md);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    pointer-events: none;
}

@media (min-width: 768px) {
    .toast-container {
        bottom: var(--spacing-lg);
        left: auto;
        right: var(--spacing-lg);
        width: 360px;
    }
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background-color: var(--black);
    color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    animation: slideInUp 0.3s ease;
}

.toast.toast-success {
    background-color: var(--success);
}

.toast.toast-error {
    background-color: var(--error);
}

.toast.toast-warning {
    background-color: var(--warning);
    color: var(--black);
}

.toast.toast-info {
    background-color: var(--info);
}

.toast-icon {
    font-size: var(--text-lg);
}

.toast-message {
    flex: 1;
    font-size: var(--text-sm);
}

.toast-close {
    color: inherit;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.toast-close:hover {
    opacity: 1;
}

/* ============================================
   Loading States
   ============================================ */

.loading-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: var(--z-modal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--light-grey);
    border-top-color: var(--primary);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

.spinner-sm {
    width: 24px;
    height: 24px;
    border-width: 2px;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--light-grey) 25%, var(--medium-grey) 50%, var(--light-grey) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
    border-radius: var(--radius-md);
}

.skeleton-text {
    height: 16px;
    margin-bottom: var(--spacing-xs);
}

.skeleton-text-sm {
    height: 12px;
    width: 60%;
}

.skeleton-image {
    aspect-ratio: 1;
    border-radius: var(--radius-xl);
}

.skeleton-circle {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
}

/* ============================================
   Empty States
   ============================================ */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl);
    text-align: center;
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent);
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-lg);
}

.empty-state-icon i {
    font-size: 48px;
    color: var(--primary);
}

.empty-state-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--black);
    margin-bottom: var(--spacing-sm);
}

.empty-state-description {
    font-size: var(--text-sm);
    color: var(--grey);
    margin-bottom: var(--spacing-lg);
    max-width: 280px;
}

.empty-state a,
.empty-state .btn {
    color: var(--white) !important;
    text-decoration: none;
}

.empty-state a:hover,
.empty-state .btn:hover {
    color: var(--white) !important;
}

/* ============================================
   Quantity Selector
   ============================================ */

.quantity-selector {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background-color: var(--light-grey);
    border-radius: var(--radius-full);
    padding: var(--spacing-xs);
}

.quantity-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border-radius: var(--radius-full);
    color: var(--secondary);
    font-size: var(--text-lg);
    transition: all var(--transition-fast);
}

.quantity-btn:hover:not(:disabled) {
    background: var(--accent-gradient);
    color: var(--white);
}

.quantity-btn:disabled {
    color: var(--grey);
}

.quantity-value {
    min-width: 32px;
    text-align: center;
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
}

/* ============================================
   Rating Stars
   ============================================ */

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars i {
    color: var(--medium-grey);
    font-size: var(--text-sm);
}

.rating-stars i.active {
    color: var(--warning);
}

.rating-stars.interactive i {
    cursor: pointer;
    transition: color var(--transition-fast);
}

.rating-stars.interactive i:hover {
    color: var(--warning);
}

/* ============================================
   Tabs
   ============================================ */

.tabs {
    display: flex;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs);
    background-color: var(--light-grey);
    border-radius: var(--radius-lg);
}

.tab {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--grey);
    text-align: center;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.tab:hover {
    color: var(--black);
}

.tab.active {
    background-color: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   Progress Bar
   ============================================ */

.progress {
    width: 100%;
    height: 4px;
    background-color: var(--light-grey);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

/* Order Progress */
.order-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0 var(--spacing-md);
}

.order-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: var(--spacing-md);
    right: var(--spacing-md);
    height: 2px;
    background-color: var(--light-grey);
    transform: translateY(-50%);
    z-index: 0;
}

.order-progress-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.order-progress-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border: 2px solid var(--light-grey);
    border-radius: var(--radius-full);
    color: var(--grey);
    font-size: var(--text-base);
    transition: all var(--transition-fast);
}

.order-progress-step.completed .order-progress-icon {
    background-color: var(--success);
    border-color: var(--success);
    color: var(--white);
}

.order-progress-step.current .order-progress-icon {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    animation: pulse 2s infinite;
}

.order-progress-label {
    font-size: var(--text-xs);
    color: var(--grey);
    text-align: center;
    max-width: 60px;
}

.order-progress-step.completed .order-progress-label,
.order-progress-step.current .order-progress-label {
    color: var(--black);
    font-weight: var(--font-medium);
}

/* ============================================
   Chips
   ============================================ */

.chip {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background-color: var(--light-grey);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--black);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chip:hover {
    background-color: var(--medium-grey);
}

.chip.active {
    background-color: var(--primary);
    color: var(--white);
}

.chip-close {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-size: 10px;
    opacity: 0.7;
}

.chip-close:hover {
    opacity: 1;
}

/* ============================================
   Orange Accent Elements
   ============================================ */

/* Sale/Discount Badge */
.badge-sale,
.badge-discount {
    background: var(--accent-gradient);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(247, 97, 59, 0.3);
}

/* New Badge */
.badge-new {
    background: var(--accent-gradient);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(247, 97, 59, 0.3);
}

/* Hot/Trending Badge */
.badge-hot,
.badge-trending {
    background: var(--accent-gradient);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(247, 97, 59, 0.3);
}

/* Accent Icon Buttons */
.icon-btn-accent {
    background: var(--accent-gradient);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(247, 97, 59, 0.35);
}

.icon-btn-accent:hover {
    box-shadow: 0 6px 16px rgba(247, 97, 59, 0.45);
    transform: scale(1.05);
}

/* Floating Action Button - Accent */
.fab-accent {
    background: var(--accent-gradient);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(247, 97, 59, 0.4);
}

.fab-accent:hover {
    box-shadow: 0 6px 18px rgba(247, 97, 59, 0.5);
    transform: scale(1.05);
}

/* Price Tag Orange Highlight */
.price-highlight {
    color: var(--secondary);
}

/* Action Links with Orange */
.action-link {
    color: var(--secondary);
    font-weight: var(--font-semibold);
}

.action-link:hover {
    color: var(--secondary-dark);
}

/* Notification Dot */
.notification-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    box-shadow: 0 0 0 2px var(--white);
}

/* Pulse Animation for Notifications */
.pulse-accent {
    animation: pulseAccent 2s infinite;
}

@keyframes pulseAccent {
    0% {
        box-shadow: 0 0 0 0 rgba(247, 97, 59, 0.5);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(247, 97, 59, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(247, 97, 59, 0);
    }
}

/* ============================================
   Offer Cards - Vertical Banner Section
   ============================================ */

.offers-section {
    padding-bottom: var(--spacing-lg);
}

.offers-scroll {
    overflow-x: auto;
    padding: 0 var(--mobile-padding);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.offers-scroll::-webkit-scrollbar {
    display: none;
}

.offers-container {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) 0;
}

.offer-card {
    flex: 0 0 auto;
    width: 180px;
    height: 280px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.offer-card.clickable {
    cursor: pointer;
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(162, 100, 188, 0.25);
}

.offer-card-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.offer-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.1) 100%);
    display: flex;
    align-items: flex-end;
    padding: var(--spacing-md);
    transition: background 0.3s ease;
}

.offer-card:hover .offer-card-overlay {
    background: linear-gradient(to top,
            rgba(162, 100, 188, 0.9) 0%,
            rgba(162, 100, 188, 0.5) 50%,
            rgba(0, 0, 0, 0.1) 100%);
}

.offer-card-content {
    color: var(--white);
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.offer-card:hover .offer-card-content {
    transform: translateY(0);
}

.offer-card-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    margin-bottom: var(--spacing-xs);
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.offer-card-subtitle {
    font-size: var(--text-sm);
    opacity: 0.9;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.offer-card-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.offer-card:hover .offer-card-cta {
    opacity: 1;
    transform: translateY(0);
}

.offer-card-cta i {
    font-size: var(--text-xs);
    transition: transform 0.3s ease;
}

.offer-card:hover .offer-card-cta i {
    transform: translateX(4px);
}

[dir="rtl"] .offer-card:hover .offer-card-cta i {
    transform: translateX(-4px);
}

/* ============================================
   Address Picker Modal
   ============================================ */

.address-picker-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.address-picker-overlay.active {
    opacity: 1;
    visibility: visible;
}

.address-picker-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    z-index: 1000;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
}

.address-picker-modal.active {
    transform: translateY(0);
}

.address-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--light-grey);
}

.address-picker-header h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin: 0;
}

.close-picker-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: var(--dark-grey);
    transition: all var(--transition-fast);
}

.close-picker-btn:hover {
    background: var(--light-grey);
    color: var(--black);
}

.address-picker-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
}

.address-picker-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl);
    color: var(--grey);
}

.address-picker-loading .spinner {
    margin-bottom: var(--spacing-md);
}

.address-picker-empty {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--grey);
}

.address-picker-empty i {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

.address-picker-empty p {
    margin-bottom: var(--spacing-md);
}

.address-picker-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.address-picker-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--light-grey);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.address-picker-item:hover {
    background: var(--accent);
}

.address-picker-item.selected {
    border-color: var(--primary);
    background: var(--accent);
}

.address-picker-item .address-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    color: var(--primary);
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.address-picker-item.selected .address-icon {
    background: var(--primary);
    color: var(--white);
}

.address-picker-item .address-info {
    flex: 1;
    min-width: 0;
}

.address-picker-item .address-label {
    font-weight: var(--font-semibold);
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.address-picker-item .address-label .default-badge {
    font-size: var(--text-xs);
    padding: 2px 6px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: var(--font-medium);
}

.address-picker-item .address-text {
    font-size: var(--text-sm);
    color: var(--dark-grey);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.address-picker-item .address-check {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.address-picker-item.selected .address-check {
    opacity: 1;
}

/* Address Picker Loading */
.address-picker-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 12px;
    color: #6b7280;
}

.address-picker-loading .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--primary-color, #ef4444);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Address Picker Empty State */
.address-picker-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
}

.address-picker-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #d1d5db;
}

.address-picker-empty p {
    font-size: 14px;
    margin: 0;
}

/* Default Badge */
.address-picker-item .default-badge {
    display: inline-block;
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--primary-color, #ef4444);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-inline-start: 8px;
    font-weight: 500;
}

.address-picker-footer {
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--light-grey);
}

.add-address-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--light-grey);
    border-radius: var(--radius-lg);
    color: var(--primary);
    font-weight: var(--font-semibold);
    transition: all var(--transition-fast);
}

.add-address-link:hover {
    background: var(--accent);
}

.add-address-link i {
    font-size: var(--text-lg);
}

/* ============================================
   Zone Closed Modal
   ============================================ */

.zone-closed-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.zone-closed-overlay.active {
    opacity: 1;
    visibility: visible;
}

.zone-closed-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    width: 90%;
    max-width: 400px;
    z-index: 9999;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.zone-closed-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.zone-closed-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
}

.zone-closed-icon i {
    font-size: 36px;
    color: white;
}

.zone-closed-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--black);
    margin-bottom: var(--spacing-sm);
}

.zone-closed-message {
    font-size: var(--text-base);
    color: var(--grey);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.zone-closed-schedule {
    font-size: var(--text-sm);
    color: var(--primary);
    font-weight: var(--font-semibold);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--accent);
    border-radius: var(--radius-md);
    display: inline-block;
}

.zone-closed-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(30, 136, 229, 0.1));
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: #1976D2;
    margin-bottom: var(--spacing-lg);
}

.zone-closed-info i {
    font-size: var(--text-base);
}

.zone-closed-btn {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.zone-closed-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}