/* Consolidado de CSS inline desde templates críticos */

/* --- home.html y search.html: tarjetas de productos --- */
.card-img-container {
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
}
.card-img-top {
    transition: transform 0.3s ease;
}
.card:hover .card-img-top {
    transform: scale(1.05);
}
.card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

/* --- hero header (home, about, sobre_nosotros, checkout) --- */
.hero-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1595590424283-b8f17842773f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2141&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
}
.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.8);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}
.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 2rem;
}

/* --- Botones sociales y personalizados (about, checkout) --- */
.contact-buttons {
    margin-top: 2rem;
}
.btn-custom {
    margin: 0.5rem;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}
.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    border: none;
    color: white;
}
.btn-instagram:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    color: white;
}
.btn-facebook {
    background-color: #1877F2;
    border: 2px solid #1877F2;
    color: white;
}
.btn-facebook:hover {
    background-color: #166FE5;
    border-color: #166FE5;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    color: white;
}
.btn-whatsapp {
    background-color: #25D366;
    border: 2px solid #25D366;
    color: white;
}
.btn-whatsapp:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    color: white;
}

/* --- product.html: carrusel de imágenes --- */
.product-carousel {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    height: 600px;
}
.carousel-container {
    display: flex;
    transition: transform 0.4s ease-in-out;
    height: 100%;
}
.carousel-slide {
    min-width: 100%;
    position: relative;
    height: 100%;
}
.carousel-slide img {
    width: 100%;
    height: 600px;
    object-fit: contain;
    object-position: center;
    border-radius: 15px;
    background-color: #f8f9fa;
}
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

/* --- category_summary.html: tarjetas de categoría --- */
.category-card {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%) !important;
    border-radius: 15px;
    padding: 2rem;
    margin: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    min-height: 204px;
    width: calc(100% + 4px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    color: white !important;
    text-decoration: none;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
}
.category-armas, .category-municiones, .category-accesorios {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%) !important;
}

/* --- checkout.html: botones y formularios --- */
.btn-black {
    background: #000 !important;
    color: #fff !important;
}
.btn-black:hover {
    background: #333 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.product-item {
    transition: all 0.3s ease;
}
.product-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.form-floating-group .form-control,
.form-floating-group .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}
.form-floating-group .form-control:focus,
.form-floating-group .form-select:focus {
    border-color: #000;
    box-shadow: 0 0 0 0.2rem rgba(0,0,0,0.1);
}
.form-floating-group label {
    color: #000;
    font-weight: 600;
    margin-bottom: 5px;
}

/* --- checkout.html: opciones de envío --- */
.shipping-options {
    display: block;
    position: static;
    width: 100%;
    margin: 0 0 20px 0;
    padding: 0;
    clear: both;
}
.shipping-options > div[id^="id_shipping_method"] {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    box-shadow: none !important;
    transform: none !important;
    position: static !important;
}

/* --- Media queries para responsividad --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.3rem;
    }
    .btn-custom {
        display: block;
        margin: 0.5rem auto;
        width: 80%;
    }
}
