/* View Mode Toggle Buttons */
.view-mode-btn {
    color: #6b7280;
}

.dark.grid-view-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}de-btn {
    color: #9ca3af;
}

.view-mode-btn.active {
    background: #3b82f6;
    color: white;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.dark .view-mode-btn.active {
    background: #2563eb;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.4);
}

.view-mode-btn:hover:not(.active) {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.dark .view-mode-btn:hover:not(.active) {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

/* Grid View Styles */
.grid-view-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .grid-view-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .grid-view-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .grid-view-container {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.grid-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.dark .grid-card {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-color: #374151;
}

.grid-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

.grid-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.dark .grid-card-image {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
}

/* Order Now Button - Hidden by default */
.grid-card-order-btn {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 10;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dark .grid-card-order-btn {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.4);
}

/* Show Order Now on hover */
.grid-card:hover .grid-card-order-btn {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.grid-card-order-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5);
    transform: translateX(-50%) scale(1.05);
}

.dark .grid-card-order-btn:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 6px 16px rgba(96, 165, 250, 0.5);
}

.grid-card-body {
    padding: 0.75rem;
}

.grid-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.dark .grid-card-title {
    color: #f9fafb;
}

.grid-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid #e5e7eb;
}

.dark .grid-card-footer {
    border-top-color: #374151;
}

.grid-card-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: #10b981;
}

.dark .grid-card-price {
    color: #34d399;
}

.grid-card-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: #fef3c7;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #d97706;
}

.dark .grid-card-time {
    background: rgba(217, 119, 6, 0.2);
    color: #fbbf24;
}

.grid-card-time svg {
    width: 0.875rem;
    height: 0.875rem;
}

.grid-card-status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.75rem;
}

.grid-card-status.active {
    background: #d1fae5;
    color: #065f46;
}

.dark .grid-card-status.active {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.grid-card-status.inactive {
    background: #e5e7eb;
    color: #4b5563;
}

.dark .grid-card-status.inactive {
    background: rgba(75, 85, 99, 0.3);
    color: #9ca3af;
}
