/*
Theme Name: CityMall Fast - Flipkart Style
Theme URI: https://citymall.com
Author: CityMall Team
Description: A native app-like WooCommerce theme inspired by Flipkart.
Version: 3.4.0
License: GPL v2 or later
Text Domain: citymall-fast
*/

:root { --primary: #2874f0; --primary-dark: #1e5fcf; --secondary: #fb641b; --success: #388e3c; --danger: #ff6161; --dark: #212121; --gray: #878787; --gray-light: #f0f0f0; --white: #ffffff; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f1f3f6; color: var(--dark); line-height: 1.5; padding: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
.container { max-width: 100%; margin: 0 auto; padding: 0; width: 100%; }

/* Products Grid */
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; background: #fff; }
@media (min-width: 600px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .products-grid { grid-template-columns: repeat(6, 1fr); } }

/* Product Card */
.product-card { background: var(--white); border: 1px solid #f0f0f0; padding-bottom: 12px; position: relative; transition: box-shadow 0.2s; }
.product-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); z-index: 2; }
.product-image { position: relative; padding-top: 100%; background: #fff; overflow: hidden; }
.product-image img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; padding: 15px; transition: transform 0.3s; }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-info { padding: 8px 12px 0 12px; }
.product-title { font-size: 13px; color: #4a4a4a; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 36px; }
.product-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }
.current-price { font-size: 16px; font-weight: 700; color: var(--dark); }
.original-price { font-size: 12px; color: var(--gray); text-decoration: line-through; }
.discount { font-size: 13px; color: var(--success); font-weight: 600; }
.rating-badge { background: var(--success); color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: bold; display: inline-flex; align-items: center; gap: 2px; }

/* Add to Cart Button */
.add-to-cart-btn { width: calc(100% - 24px); margin: 12px auto 0; display: block; background: var(--primary); color: var(--white); border: none; padding: 8px; border-radius: 4px; font-size: 12px; font-weight: 600; cursor: pointer; text-transform: uppercase; transition: background 0.2s; }
.add-to-cart-btn:hover { background: var(--primary-dark); }
.add-to-cart-btn:disabled { background: var(--gray); cursor: not-allowed; }

/* Skeleton Loading */
.skeleton-card { background: #fff; padding-bottom: 12px; }
.skeleton-img { width: 100%; padding-top: 100%; background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
.skeleton-text { height: 14px; margin: 10px 12px 0; background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 4px; }
.skeleton-text.short { width: 60%; }
.skeleton-btn { height: 36px; margin: 12px; background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 4px; }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

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

/* Responsive */
@media (max-width: 767px) { body { padding-bottom: 60px; } }
