/* Custom styles with Dark Turquoise Color Scheme for Sandra */

/* Carousel Styles */
.carousel-container {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
    gap: 16px;
}

.carousel-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 0.5rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-dot:hover {
    background: rgba(13, 148, 136, 0.4);
    transform: scale(1.1);
}

.carousel-dot.active {
    background: linear-gradient(135deg, #0d9488, #0891b2);
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

.carousel-dot.active:hover {
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.4);
}

/* Scroll snap for smooth scrolling */
.carousel-scroll {
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.carousel-scroll::-webkit-scrollbar {
    display: none;
}

.carousel-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Food card hover effects */
.food-card {
    transition: all 0.3s ease;
}

.food-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(13, 148, 136, 0.15);
}

/* Category card effects */
.category-card {
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.2);
}

/* Category grid specific styles */
.category-card > a > div {
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 120px;
}

@media (max-width: 768px) {
    .category-card > a > div {
        height: 100px;
        min-height: 100px;
    }
    
    .category-card h3 {
        font-size: 0.625rem;
        line-height: 1.2;
    }
    
    .category-card i {
        font-size: 1.25rem !important;
        margin-bottom: 0.25rem !important;
    }
}

/* Custom gradient backgrounds - Dark Turquoise Theme */
.sandra-gradient {
    background: linear-gradient(135deg, #134e4a, #0f3730, #0d9488);
}

.hero-gradient {
    background: linear-gradient(135deg, #134e4a, #0f3730, #0d9488);
}

.food-gradient {
    background: linear-gradient(135deg, #0891b2, #0e7490);
}

/* Search box custom styles */
.search-focus:focus {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.3);
    border-color: #0d9488;
}

/* Custom button styles - Turquoise Theme */
.btn-primary, .sandra-btn {
    background: linear-gradient(135deg, #0d9488, #0891b2);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn-primary:hover, .sandra-btn:hover {
    background: linear-gradient(135deg, #0891b2, #0e7490);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.3);
}

/* Reflective Account Button Styles */
.account-btn {
    position: relative;
    background: linear-gradient(135deg, #0d9488, #0891b2, #06b6d4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border-radius: 8px;
}

.account-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.account-btn:hover::before {
    left: 100%;
}

.account-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px rgba(13, 148, 136, 0.4), 
                0 5px 15px rgba(6, 182, 212, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #0891b2, #06b6d4, #0ea5e9);
}

.account-btn:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 5px 15px rgba(13, 148, 136, 0.3);
}

/* Glossy reflection overlay */
.account-btn .reflection {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
    border-radius: inherit;
    pointer-events: none;
}

/* Enhanced glass morphism effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(13, 148, 136, 0.2);
}

/* Make all buttons less round */
button, .btn, input[type="submit"], input[type="button"] {
    border-radius: 8px !important;
}

/* Input fields less round */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], 
textarea, select {
    border-radius: 8px !important;
}

/* Card elements less round */
.rounded-lg {
    border-radius: 12px !important;
}

.rounded-full {
    border-radius: 8px !important;
}





/* Rating stars */
.rating-star {
    color: #f59e0b;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Price badge */
.price-badge {
    background: linear-gradient(135deg, #047857, #065f46);
    color: white;
    font-weight: bold;
}

/* Header specific styles */
.header-search {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.header-search:focus {
    background: rgba(255, 255, 255, 0.9);
    color: #134e4a;
}

/* Cart badge */
.cart-badge {
    background: #ef4444;
    animation: pulse 2s infinite;
}

/* Auth modal styles */
.auth-modal {
    backdrop-filter: blur(8px);
}

.auth-input:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* User dropdown */
.user-dropdown {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(13, 148, 136, 0.1);
}

/* Mobile menu */
.mobile-menu {
    background: linear-gradient(135deg, #0f3730, #134e4a);
}

/* Cart sidebar */
.cart-sidebar {
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
}

.cart-item {
    border-bottom: 1px solid rgba(13, 148, 136, 0.1);
}

.cart-item:hover {
    background: rgba(13, 148, 136, 0.05);
}

/* Outlet cards with turquoise theme */
.outlet-card {
    background: linear-gradient(135deg, #134e4a, #0d9488);
    transition: all 0.3s ease;
}

.outlet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(13, 148, 136, 0.3);
}

/* Feature cards */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(13, 148, 136, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(13, 148, 136, 0.1);
    border-color: rgba(13, 148, 136, 0.2);
}

/* Text colors for turquoise theme */
.text-sandra-primary {
    color: #134e4a;
}

.text-sandra-secondary {
    color: #0d9488;
}

.bg-sandra-primary {
    background-color: #134e4a;
}

.bg-sandra-secondary {
    background-color: #0d9488;
}

/* Hover effects for interactive elements */
.hover-sandra:hover {
    color: #0d9488;
    transition: color 0.3s ease;
}

/* Loading spinner */
.loading-spinner {
    border: 2px solid rgba(13, 148, 136, 0.3);
    border-top: 2px solid #0d9488;
    animation: spin 1s linear infinite;
}

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

/* Notification styles */
.notification {
    background: linear-gradient(135deg, #134e4a, #0d9488);
    color: white;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.notification.success {
    background: linear-gradient(135deg, #047857, #059669);
}

.notification.error {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

/* Form enhancements */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.form-input:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
    outline: none;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .carousel-item {
        flex: 0 0 280px;
    }
    
    .food-card {
        margin: 0 0.5rem;
    }
    
    .category-card {
        margin: 0 0.25rem;
    }
    
    .sandra-gradient {
        background: linear-gradient(180deg, #134e4a, #0f3730);
    }
    
    .cart-sidebar {
        width: 100%;
        max-width: 320px;
    }
    
    /* Mobile dot adjustments */
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .auth-modal {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
}

/* Outlet Selection Styles */
.outlet-info-badge {
    animation: slideDown 0.3s ease;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

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

/* Stock Status Styles */
.stock-indicator {
    position: relative;
    overflow: hidden;
}

.stock-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Price section styles */
.price-section {
    position: relative;
}

.price-section .line-through {
    position: relative;
}

.price-section .line-through::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ef4444;
    transform: translateY(-50%);
}

/* Enhanced button styles for stock status */
.btn-out-of-stock {
    background: linear-gradient(135deg, #6b7280, #4b5563) !important;
    cursor: not-allowed;
    position: relative;
    overflow: hidden;
}

.btn-out-of-stock::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(255,255,255,0.1) 2px,
        rgba(255,255,255,0.1) 4px
    );
}

/* Loading animation for outlet selection */
.outlet-loading {
    position: relative;
}

.outlet-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 30px;
    width: 16px;
    height: 16px;
    border: 2px solid #14b8a6;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Stock status badges */
.stock-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stock-badge.in-stock {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.stock-badge.out-of-stock {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.stock-badge.available {
    background-color: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}