/* ============================================================
   LE TACOS - PRODUCT CARDS CSS
   ============================================================ */

/* ---- Products Section ---- */
.lt-products-section {
    padding: 48px 0 64px;
    background: var(--lt-cream);
}

.lt-products-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
    flex-wrap: wrap;
}



/* Category Filter Tabs - Premium Modern Design */
.lt-category-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    overflow-x: auto;
    padding: 4px 0 12px;
    scrollbar-width: none; /* Hide for Firefox */
    -ms-overflow-style: none; /* Hide for IE/Edge */
    justify-content: flex-start;
}

.lt-category-tabs::-webkit-scrollbar { 
    display: none; /* Hide for Chrome/Safari */
}

.lt-cat-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid var(--border-light);
    background: white;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    white-space: nowrap;
    box-shadow: var(--shadow-xs);
}

.lt-cat-tab:hover {
    border-color: var(--lt-green-light);
    color: var(--lt-green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.lt-cat-tab.active {
    background: var(--lt-green-dark);
    border-color: var(--lt-green-dark);
    color: white;
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.3);
    transform: scale(1.05);
}

/* View All Categories Button - Refined for Header Row */
.lt-all-cats-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    background: var(--lt-green-dark);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2);
    cursor: pointer;
}

.lt-all-cats-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 92, 63, 0.3);
    background: #c2410c;
}

.lt-all-cats-btn i {
    font-size: 1.1rem;
}

/* Modal Category Items */
.lt-modal-cat-item {
    padding: 16px;
    background: #f8fafc;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.lt-modal-cat-item:hover {
    background: #fff;
    border-color: var(--lt-green-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.lt-modal-cat-icon {
    width: 48px;
    height: 48px;
    background: var(--lt-green-dark);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
}

.lt-modal-cat-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
    text-align: center;
}

/* ---- Product Grid ---- */
.lt-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

@media (max-width: 640px) {
    .lt-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
}

/* ---- Product Card ---- */
.lt-product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
}

.lt-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

/* Image Container */
.lt-product-img-wrap {
    position: relative;
    height: 170px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
}

.lt-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.lt-product-card:hover .lt-product-img {
    transform: scale(1.06);
}

/* Category badge on image */
.lt-product-category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: rgba(234, 88, 12, 0.85);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Favorite Button */
.lt-favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-xs);
    z-index: 2;
}

.lt-favorite-btn:hover {
    background: white;
    transform: scale(1.1);
    color: var(--lt-red);
}

.lt-favorite-btn.active {
    color: var(--lt-red);
    background: #FEF2F2;
}

.lt-favorite-btn.active i { font-weight: 900; }

/* Pulse animation when toggling */
.lt-favorite-btn.pulse {
    animation: favPulse 0.4s ease;
}
@keyframes favPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Card Body */
.lt-product-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.lt-product-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
    line-height: 1.3;
    line-clamp: none;
    overflow: visible;
    word-break: break-word; /* Prevent long words from breaking layout */
}

.lt-product-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
    line-clamp: none;
    overflow: visible;
    flex: 1;
    min-height: 2.4em; /* Ensure some space even for short desc */
}

/* Price + Add Button row */
.lt-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.lt-product-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--lt-green-dark);
}

.lt-product-price span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 1px;
}

/* Add to Cart Button */
.lt-add-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--lt-green-dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--transition-base);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
}

.lt-add-btn:hover {
    background: var(--lt-green-light);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.4);
}

/* Quantity Controls (when item is in cart) */
.lt-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    border-radius: var(--radius-full);
    padding: 2px 6px;
}

.lt-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--lt-green-dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.lt-qty-btn:hover { background: var(--lt-green-light); }
.lt-qty-btn.minus { background: var(--border-medium); color: var(--text-primary); }
.lt-qty-btn.minus:hover { background: var(--lt-red); color: white; }

.lt-qty-count {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 20px;
    text-align: center;
}

/* ---- Skeleton loading card ---- */
.lt-product-card.skeleton {
    pointer-events: none;
}

.lt-skeleton-pulse {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonPulse 1.5s infinite;
    border-radius: 6px;
}

@keyframes skeletonPulse {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
