/* shop-product-cards.css — slim card-only styles extracted from shop-menu-vertical.css */
/* Vertical-menu / SPA layout rules removed (no longer used after productsh migration). */

.spa-add-to-cart-btn {
    padding: 0.5rem 1rem;
    background: #374151;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.875rem;
    transition: background-color 0.15s ease;
}
/* ========================================
   LOADING STATES
   ======================================== */
.products-loading, .spinner, .loading-spinner {
    display: none;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* ========================================
   PRODUCTS HEADER
   ======================================== */
.products-header {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}
/* ========================================
   PRODUCT CARDS
   ======================================== */
.product-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.product-image {
    position: relative;
    height: 250px;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.no-image-placeholder {
    font-size: 4rem;
    color: #d1d5db;
}
/* SINGLE .sale-badge - merged from 339-349 and 714-725 */
.sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}
/* SINGLE .featured-badge - merged from 471-481 and 702-712 */
.featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #fbbf24;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    z-index: 10;
}
.product-details {
    padding: 0.85rem;
    height: calc(100% - 250px);
    display: flex;
    flex-direction: column;
}
.product-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: #1f2937;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    max-height: 2.4em;
    word-break: break-word;
}
.product-sku {
    font-size: 0.7rem;
    color: #6b7280;
    margin: 0 0 0.5rem 0;
}
.product-pricing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.product-price-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.original-price {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 0.875rem;
}
.current-price {
    color: #047857;
    font-size: 1.25rem;
}
.product-stock {
    font-size: 0.75rem;
    font-weight: 500;
}
.stock-in, .in-stock {
    color: #047857;
}
.stock-out, .out-of-stock {
    color: #dc2626;
}
.add-to-cart-btn {
    display: none;
}
.no-products {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}
.no-products h2 {
    color: #374151;
    margin-bottom: 1rem;
}
/* SINGLE .thumb - merged from 489-495, 933-935 */
.thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.1s ease;
}
.thumb:hover {
    border-color: #93c5fd !important;
    transform: scale(1.04);
    border-width: 1px !important; 
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}
.thumb.active {
    box-shadow: 0 0 0 2px #3b82f6, 0 4px 12px rgba(59, 130, 246, 0.3);
}
/* SINGLE .thumb img - merged from 498-502 and 766-770 */
.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.regular-price {
    color: #059669;
    font-weight: 700;
}
.sale-price {
    color: #ef4444;
    font-weight: 700;
}
.discount-badge {
    background: #fef2f2;
    color: #ef4444;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}
.product-detail-stock.in-stock {
    background: #f0fdf4;
    color: #059669;
}
.product-detail-stock.out-of-stock {
    background: #fef2f2;
    color: #ef4444;
}
.stock-status {
    font-weight: 600;
}
.stock-qty {
    font-size: 0.875rem;
    opacity: 0.8;
}
.add-to-cart-primary {
    flex: 1;
    padding: 1rem 2rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
}
.add-to-cart-primary:hover:not(:disabled) {
    background: #2563eb;
}
.add-to-cart-primary:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}
.compatible-item-image .no-image {
    font-size: 1.5rem;
    color: #9ca3af;
}
@keyframes video-pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
  100% { transform: scale(1.4); opacity: 0; }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}