/*
Theme Name: CeloShop
Theme URI: https://ce-loshop.com
Author: CeloShop Dev
Description: Tema vibrante y optimizado para dropshipping de alta conversión.
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: celoshop
*/

:root {
    --primary-orange: #FF6B00;
    --urgent-red: #FF2D2D;
    --success-green: #00B352;
    --dark-text: #222222;
    --light-bg: #F8F8F8;
    --white: #FFFFFF;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--dark-text); background: var(--light-bg); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* --- HEADER --- */
.site-header { background: var(--white); border-bottom: 2px solid var(--primary-orange); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.site-logo { font-size: 28px; font-weight: 900; color: var(--primary-orange); letter-spacing: -1px; text-transform: uppercase; }
.site-logo span { color: var(--urgent-red); }
.header-cart { background: var(--primary-orange); color: white; padding: 8px 16px; border-radius: 20px; font-weight: 600; display: flex; align-items: center; gap: 8px; transition: 0.3s; }
.header-cart:hover { background: var(--urgent-red); transform: scale(1.05); }

/* --- HERO BANNER --- */
.hero-banner { 
    background: linear-gradient(135deg, #FF6B00 0%, #FF2D2D 100%); 
    color: white; text-align: center; padding: 50px 20px; 
    position: relative; overflow: hidden;
}
.hero-banner::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    animation: rotate 20s linear infinite;
}
.hero-title { font-size: 42px; font-weight: 900; margin-bottom: 10px; text-shadow: 2px 2px 4px rgba(0,0,0,0.2); position: relative; }
.hero-subtitle { font-size: 20px; margin-bottom: 25px; opacity: 0.95; position: relative; }
.hero-btn { 
    display: inline-block; background: #FFD700; color: #222; font-size: 18px; font-weight: 800; 
    padding: 15px 40px; border-radius: 50px; text-transform: uppercase; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); position: relative;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(255, 215, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* --- TRUST BADGES --- */
.trust-bar { background: var(--white); padding: 20px 0; border-bottom: 1px solid #eee; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; text-align: center; }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.trust-icon { font-size: 28px; }
.trust-text { font-size: 14px; font-weight: 700; color: #444; }

/* --- FLASH DEALS SECTION --- */
.flash-section { margin: 30px 0; }
.flash-header { 
    background: linear-gradient(90deg, #222 0%, #444 100%); 
    color: white; padding: 15px 20px; border-radius: 8px 8px 0 0; 
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.flash-title { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.flash-title span { color: #FFD700; }
.flash-timer { display: flex; gap: 5px; align-items: center; font-size: 14px; }
.timer-box { background: var(--urgent-red); padding: 5px 8px; border-radius: 4px; font-weight: bold; font-size: 16px; min-width: 30px; text-align: center; }

/* --- PRODUCT GRID (Temu Style) --- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 15px; padding: 20px 0; background: var(--white); border-radius: 0 0 8px 8px; padding: 20px; }
.product-card { background: var(--white); border-radius: 8px; overflow: hidden; transition: all 0.3s; border: 1px solid #eee; position: relative; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-color: var(--primary-orange); }
.product-image { position: relative; padding-top: 100%; background: #f9f9f9; overflow: hidden; }
.product-image img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.product-card:hover .product-image img { transform: scale(1.05); }
.discount-badge { position: absolute; top: 10px; left: 10px; background: var(--urgent-red); color: white; padding: 4px 10px; border-radius: 4px; font-size: 13px; font-weight: 800; }
.product-info { padding: 15px; }
.product-title { font-size: 14px; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 42px; line-height: 1.4; }
.product-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 5px; }
.product-price { font-size: 22px; font-weight: 900; color: var(--urgent-red); }
.product-original-price { font-size: 13px; color: #999; text-decoration: line-through; }
.product-sales { font-size: 12px; color: #888; margin-bottom: 10px; }
.add-to-cart-btn { 
    display: block; width: 100%; background: linear-gradient(135deg, #FF6B00, #FF8C00); 
    color: white; text-align: center; padding: 10px; border-radius: 20px; 
    font-weight: 700; border: none; cursor: pointer; transition: 0.3s; font-size: 14px;
}
.add-to-cart-btn:hover { background: linear-gradient(135deg, #FF2D2D, #FF6B00); transform: scale(1.02); }

/* --- FOOTER --- */
.site-footer { background: #1a1a1a; color: #ccc; padding: 40px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-title { color: white; font-size: 16px; margin-bottom: 15px; font-weight: 700; }
.footer-links li { list-style: none; margin-bottom: 8px; font-size: 14px; }
.footer-links a:hover { color: var(--primary-orange); }
.copyright { text-align: center; border-top: 1px solid #333; padding-top: 20px; font-size: 13px; color: #777; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-title { font-size: 28px; }
    .hero-subtitle { font-size: 16px; }
    .hero-btn { font-size: 16px; padding: 12px 30px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 10px; }
    .product-price { font-size: 18px; }
}
