body { 
    font-family: 'Cairo', sans-serif; 
    scroll-behavior: smooth; 
    -webkit-tap-highlight-color: transparent;
}

.bw-orange { background-color: #ff6000; }
.bw-text-orange { color: #ff6000; }

.image-slider {
    display: flex; 
    overflow-x: auto; 
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth; 
    -ms-overflow-style: none; 
    scrollbar-width: none;
}

.image-slider::-webkit-scrollbar { display: none; }

.image-slider img { 
    flex: 0 0 100%; 
    scroll-snap-align: start; 
    width: 100%; 
    aspect-ratio: 1/1; 
    object-fit: cover; 
}

.sticky-footer { 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    z-index: 100; 
}

.color-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.color-btn.active-dot { 
    border-color: #ff6000 !important; 
    transform: scale(1.15);
    box-shadow: 0 0 0 2px rgba(255, 96, 0, 0.2);
}

.animate-fade { 
    animation: fadeIn 0.4s ease-out forwards; 
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.loader { 
    border: 3px solid rgba(255,255,255,0.3); 
    border-top: 3px solid #ffffff; 
    border-radius: 50%; 
    width: 24px; 
    height: 24px; 
    animation: spin 0.8s linear infinite; 
    display: inline-block; 
}

@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

.step-container {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.safe-area-bottom {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}

input:placeholder-shown {
    font-size: 0.8rem;
}

/* Custom Select Styling */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-position: left 1rem center;
    background-repeat: no-repeat;
    background-size: 1.25rem;
}

#cartDrawer.open {
    pointer-events: auto;
}

#cartDrawer.open #cartOverlay {
    opacity: 1;
    pointer-events: auto;
}

#cartDrawer.open #cartContent {
    transform: translateX(0);
}

.cart-item-anim {
    animation: cartEnter 0.3s ease-out forwards;
}

@keyframes cartEnter {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}