/* ============================================================
   FIT FREE Store — Tema "Green Fit" (esqueleto Orderry, paleta verde)
   Bootstrap 5.3 + Poppins · Verde #1BA65C / fluor #39FF14
   ============================================================ */
:root {
    --primary-color: #1BA65C;
    --primary-color-solid: #17934F;
    --primary-hover: #148444;
    --primary-dark: #0F7A3A;
    --accent-neon: #39FF14;          /* verde fluor marca */
    --accent-neon-dim: #80F221;
    --secondary-color: #f8f9fa;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --bg-light: #f1f5f9;
    --accent-color: #ff9900;
}
body { font-family: 'Poppins', sans-serif; background-color: var(--bg-light); color: var(--text-dark); display: flex; flex-direction: column; min-height: 100vh; }

/* Topbar */
.topbar { background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary-color) 100%); color: #fff; font-size: 0.85rem; padding: 8px 0; }
.topbar a { color: #d9ffe6; transition: 0.3s; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .offer-tag { color: var(--accent-neon); font-weight: 700; }

/* Header */
.main-header { background: #fff; padding: 20px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.03); position: sticky; top: 0; z-index: 1020; }
.logo-badge { background: var(--primary-color); }
.search-input-group { border: 2px solid var(--primary-color); border-radius: 50px; overflow: hidden; }
.search-input-group input { border: none; box-shadow: none !important; padding-left: 20px; }
.search-input-group .btn-search { background: var(--primary-color); color: white; border: none; padding: 0 25px; font-weight: 600; transition: 0.3s; }
.search-input-group .btn-search:hover { background: var(--primary-hover); }
.icon-circle { width: 45px; height: 45px; border-radius: 50%; background: var(--bg-light); display: flex; align-items: center; justify-content: center; color: var(--text-dark); font-size: 1.2rem; transition: 0.3s; }
.user-menu:hover .icon-circle, .cart-icon-wrapper:hover .icon-circle { background: var(--primary-color); color: #fff; }
.cart-icon-wrapper { position: relative; display: flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none; }
.cart-badge { position: absolute; top: -5px; right: -5px; background: #dc3545; color: #fff; font-size: 0.7rem; font-weight: 700; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; transition: transform 0.2s; }

/* Navbar */
.main-nav { background: var(--primary-color); padding: 0; }
.main-nav .nav-link { color: rgba(255,255,255,0.92) !important; font-weight: 500; padding: 15px 20px !important; transition: 0.3s; font-size: 0.9rem; }
.main-nav .nav-link:hover { color: #fff !important; background: rgba(0,0,0,0.1); }

/* Sidebar departamentos */
.sidebar-dept { background: #fff; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); overflow: hidden; }
.sidebar-dept .dept-item { display: block; padding: 12px 20px; color: var(--text-dark); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--bg-light); transition: 0.3s; }
.sidebar-dept .dept-item:hover { color: var(--primary-color); background: var(--bg-light); padding-left: 25px; }

/* Hero — gradiente verde */
.hero-banner-main { background: linear-gradient(135deg, #0F7A3A 0%, #1BA65C 55%, #39FF14 130%); border-radius: 16px; color: #fff; box-shadow: 0 10px 30px rgba(27,166,92,0.25); position: relative; overflow: hidden; }
.hero-badge-alt { background: rgba(255,255,255,0.2); padding: 5px 12px; border-radius: 30px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; display: inline-block; margin-bottom: 15px; }
.hero-title-alt { font-size: 2.8rem; font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
.btn-hero { background: #fff; color: var(--primary-color); padding: 12px 30px; border-radius: 50px; font-weight: 600; border: none; transition: 0.3s; text-decoration: none; display: inline-block; }
.btn-hero:hover { background: var(--text-dark); color: #fff; transform: translateY(-2px); }

/* Filtro categorías */
.category-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.cat-pill { background: #fff; border: 1px solid var(--border-color); color: var(--text-muted); padding: 8px 18px; border-radius: 50px; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: 0.3s; text-decoration: none; display: inline-block; }
.cat-pill:hover, .cat-pill.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

/* Product card */
.product-card { background: #fff; border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; position: relative; transition: 0.3s; height: 100%; display: flex; flex-direction: column; }
.product-card:hover { border-color: var(--primary-color); box-shadow: 0 10px 25px rgba(27,166,92,0.10); transform: translateY(-5px); }
.offer-badge { position: absolute; top: 15px; left: 15px; background: #dc3545; color: #fff; font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 4px; z-index: 2; }
.product-image-wrap { text-align: center; margin-bottom: 20px; height: 180px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.product-image-wrap img { max-height: 100%; max-width: 100%; object-fit: contain; transition: 0.3s; }
.product-card:hover .product-image-wrap img { transform: scale(1.05); }
.product-info { display: flex; flex-direction: column; flex-grow: 1; }
.product-category { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: 5px; }
.product-title { font-size: 1rem; font-weight: 600; color: var(--text-dark); text-decoration: none; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-title:hover { color: var(--primary-color); }
.price-wrap { margin-bottom: 15px; }
.price-current { font-size: 1.25rem; font-weight: 700; color: var(--primary-color); }
.price-old { font-size: 0.9rem; color: var(--text-muted); text-decoration: line-through; margin-right: 8px; }
.btn-add-cart { margin-top: auto; background: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); font-weight: 600; padding: 8px 15px; border-radius: 50px; width: 100%; transition: 0.3s; }
.btn-add-cart:hover { background: var(--primary-color); color: #fff; }

/* Detalle */
.detail-image-box { background: #fff; border-radius: 16px; padding: 30px; border: 1px solid var(--border-color); }
.detail-price { font-size: 2rem; font-weight: 700; color: var(--primary-color); }
.btn-primary-custom { background: var(--primary-color); color: #fff; border: none; padding: 12px 25px; border-radius: 8px; font-weight: 600; transition: 0.3s; text-decoration: none; display: inline-block; }
.btn-primary-custom:hover { background: var(--primary-hover); color: #fff; }

/* Features strip */
.features-strip { background: #fff; padding: 40px 0; border-top: 1px solid var(--border-color); margin-top: 40px; }
.feature-box { display: flex; align-items: center; gap: 15px; }
.feature-icon { font-size: 2rem; color: var(--primary-color); }
.feature-title { font-weight: 600; font-size: 1rem; color: var(--text-dark); }
.feature-desc { font-size: 0.85rem; color: var(--text-muted); }

/* Footer — fondo verde */
.main-footer { background: #0E6B34; color: #eafaf1; padding: 60px 0 20px; }
.footer-heading { color: #fff; font-weight: 600; margin-bottom: 20px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #dff5e9; text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: #39FF14; padding-left: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: #39FF14; }
.footer-bottom .text-white-50 { color: rgba(255,255,255,0.75) !important; }

/* Alertas */
.store-flash { margin-bottom: 16px; }
.store-alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 0.9rem; font-weight: 600; }
.store-alert.success { background: #e6f4ea; color: #218838; }
.store-alert.error { background: #fdeaea; color: #d43f41; }

/* Carrito / tablas */
.store-table th { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; }
.qty-box { border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; display: inline-flex; }
.qty-box button { width: 34px; height: 36px; border: none; background: var(--bg-light); color: var(--text-dark); cursor: pointer; font-weight: 700; }
.qty-box input { width: 50px; text-align: center; border: none; font-weight: 600; }
.summary-card { position: sticky; top: 90px; }

/* Form */
.form-control:focus, .btn:focus { box-shadow: 0 0 0 0.2rem rgba(27,166,92,0.15); }
.cursor-pointer { cursor: pointer; }

/* Slideshow hero — altura CONTROLADA (no gigante) */
.hero-carousel { position: relative; height: 380px; overflow: hidden; border-radius: 16px; box-shadow: 0 10px 30px rgba(27,166,92,0.25); background: #0F7A3A; }
.hero-carousel .carousel-inner, .hero-carousel .carousel-item { height: 100%; }
.hero-carousel .carousel-item img, .hero-carousel .carousel-item video, .hero-carousel .carousel-item iframe { height: 100%; width: 100%; object-fit: cover; border: 0; }
.hero-caption { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 2.5rem; color: #fff; background: linear-gradient(90deg, rgba(15,23,42,0.72) 0%, rgba(15,23,42,0.42) 55%, rgba(15,23,42,0) 100%); border-radius: 16px; }
.hero-slide-title { font-size: 2.1rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; text-shadow: 0 2px 10px rgba(0,0,0,0.45); }
.hero-slide-sub { font-size: 1.05rem; color: rgba(255,255,255,0.95); margin-bottom: 1.4rem; max-width: 560px; text-shadow: 0 1px 6px rgba(0,0,0,0.45); }
.hero-slide-btn { background: #39FF14; color: #0F7A3A; padding: 12px 28px; border-radius: 50px; font-weight: 700; border: none; transition: 0.3s; text-decoration: none; display: inline-block; }
.hero-slide-btn:hover { background: #fff; color: var(--primary-color); transform: translateY(-2px); }
.hero-carousel .carousel-indicators [data-bs-target] { background-color: #39FF14; height: 4px; }
.hero-carousel .carousel-control-prev-icon, .hero-carousel .carousel-control-next-icon { filter: invert(1) drop-shadow(0 0 3px rgba(0,0,0,0.5)); }
@media (max-width: 767px) { .hero-carousel { height: 300px; } .hero-caption { padding: 1.4rem; } .hero-slide-title { font-size: 1.5rem; } .hero-slide-sub { font-size: 0.92rem; } }

/* Responsivo */
@media (max-width: 991px) { .hero-title-alt { font-size: 2rem; } }

/* ============================================================
   Overrides Bootstrap → verde (clases que vienen del CDN azul)
   ============================================================ */
.btn-primary { background-color: var(--primary-color); border-color: var(--primary-color); }
.btn-primary:hover, .btn-primary:focus { background-color: var(--primary-hover); border-color: var(--primary-hover); }
.btn-outline-primary { color: var(--primary-color); border-color: var(--primary-color); }
.btn-outline-primary:hover { background-color: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.btn-success { background-color: var(--primary-color); border-color: var(--primary-color); }
.btn-success:hover { background-color: var(--primary-hover); border-color: var(--primary-hover); }
.bg-primary { background-color: var(--primary-color) !important; }
.text-primary { color: var(--primary-color) !important; }
.badge.bg-primary { background-color: var(--primary-color) !important; }
.alert-info { border-color: var(--primary-color); color: var(--primary-color); }
.breadcrumb-item.active { color: var(--text-dark); }
.breadcrumb-item a { color: var(--primary-color); }
.form-control:focus { border-color: var(--primary-color); }
.form-select:focus { border-color: var(--primary-color); }
a { color: var(--primary-color); }
a:hover { color: var(--primary-hover); }
