/**
 * Style Shop CSS - Karatemushinkan Store
 * Custom styles for the tienda (store) section
 * Colores principales: #F31F1A (Rojo Intenso) y #1A1A1A (Negro Profundo)
 */

/* =========================
   VARIABLES DE COLORES
   ========================= */

:root {
    --primary-red: #F31F1A;
    --primary-black: #1A1A1A;
    --secondary-red: #CC2028;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --white: #ffffff;
    --gold: #FFD700;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
}

/* =========================
   HERO SECTION
   ========================= */

.hero-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-black) 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-decorative {
    position: absolute;
    top: 20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    transform: rotate(45deg);
}

/* =========================
   MARCAS SECTION
   ========================= */

.brands-section {
    padding: 4rem 0;
    background: var(--light-gray);
}

.brand-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
}

.brand-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(243, 31, 26, 0.2);
    border-color: var(--primary-red);
}

.brand-logo {
    width: 100%;
    max-width: 200px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.brand-title {
    color: var(--primary-black);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.brand-description {
    color: var(--medium-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* =========================
   ABOUT SECTION
   ========================= */

.about-section {
    padding: 4rem 0;
    background: var(--white);
}

.section-title {
    color: var(--primary-black);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--gold));
    border-radius: 2px;
}

.section-subtitle {
    color: var(--medium-gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.about-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--primary-black);
}

.about-highlight {
    background: linear-gradient(120deg, rgba(243, 31, 26, 0.1) 0%, rgba(255, 215, 0, 0.1) 100%);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-red);
    margin: 2rem 0;
}

/* =========================
   FEATURES SECTION
   ========================= */

.features-section {
    padding: 4rem 0;
    background: var(--primary-black);
    color: var(--white);
}

.feature-item {
    text-align: center;
    padding: 2rem 1rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-red), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 2rem;
    color: var(--white);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-description {
    opacity: 0.9;
    line-height: 1.6;
}

/* =========================
   CINTURONES SECTION
   ========================= */

.cinturones-section {
    padding: 4rem 0;
    background: var(--light-gray);
}

.cinturon-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.cinturon-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.cinturon-color {
    width: 100%;
    height: 60px;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.cinturon-blanco { background: linear-gradient(45deg, #ffffff, #f8f9fa); }
.cinturon-amarillo { background: linear-gradient(45deg, #FFD700, #FFA500); }
.cinturon-naranja { background: linear-gradient(45deg, #FF8C00, #FF6347); }
.cinturon-morado { background: linear-gradient(45deg, #800080, #DA70D6); }
.cinturon-verde { background: linear-gradient(45deg, #32CD32, #228B22); }
.cinturon-azul { background: linear-gradient(45deg, #1E90FF, #0000CD); }
.cinturon-marron { background: linear-gradient(45deg, #8B4513, #654321); }
.cinturon-negro { background: linear-gradient(45deg, #1A1A1A, #000000); }
.cinturon-rojo { background: linear-gradient(45deg, #F31F1A, #CC2028); }

.cinturon-name {
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
}

.cinturon-level {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* =========================
   CTA SECTION
   ========================= */

.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-black) 100%);
    color: var(--white);
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-cta {
    background: var(--gold);
    color: var(--primary-black);
    font-weight: 600;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-cta:hover {
    background: var(--white);
    color: var(--primary-black);
}
/* =========================
   TIENDA - PÁGINA DE PRODUCTOS
   ========================= */

/* Breadcrumb de la tienda */
.bg-title {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-black) 100%);
    color: var(--white);
}

/* Círculos de color para productos */
.color-circle {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
    border: 1px solid #ddd;
}

/* Página actual en paginación */
.current-page {
    background-color: var(--primary-red) !important;
    border-color: var(--primary-red) !important;
    color: white !important;
}

/* Filtros de la tienda */
.toggle-all {
    color: var(--primary-black);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.toggle-all:hover {
    color: var(--primary-red);
}

.toggle-section {
    color: var(--primary-black);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.toggle-section:hover {
    color: var(--primary-red);
}

.toggle-section i {
    transition: transform 0.3s ease;
}

/* Controles personalizados */
.custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

.custom-control-label {
    cursor: pointer;
    color: var(--primary-black);
    transition: color 0.3s ease;
}

.custom-control-label:hover {
    color: var(--primary-red);
}

/* Badge de conteo de productos */
.badge.border {
    background-color: var(--light-gray);
    color: var(--medium-gray);
    font-size: 0.75rem;
}

/* Botones de filtro */
.btn-primary {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-black);
    border-color: var(--primary-black);
    transform: translateY(-2px);
}

/* Cards de productos mejoradas */
.product-item {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(243, 31, 26, 0.15);
}

.product-img {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: var(--light-gray);
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-img img {
    transform: scale(1.05);
}

/* Información del producto */
.card-body h6 {
    color: var(--primary-black);
    font-weight: 600;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-body .d-flex h6 {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Footer de la card */
.card-footer {
    background: var(--white) !important;
    border-top: 1px solid rgba(243, 31, 26, 0.1);
}

.card-footer .btn {
    color: var(--medium-gray);
    transition: all 0.3s ease;
    font-weight: 500;
}

.card-footer .btn:hover {
    color: var(--primary-red);
    transform: scale(1.05);
}

.card-footer .btn i {
    transition: transform 0.3s ease;
}

.card-footer .btn:hover i {
    transform: scale(1.2);
}

/* Buscador */
.input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.input-group .form-control {
    border: none;
    border-radius: 25px 0 0 25px;
}

.input-group .btn {
    border-radius: 0 25px 25px 0;
    background: var(--primary-red);
    border-color: var(--primary-red);
}

.input-group .btn:hover {
    background: var(--primary-black);
    border-color: var(--primary-black);
}

/* Select de ordenamiento */
.form-control {
    border-radius: 25px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(243, 31, 26, 0.25);
}

/* Paginación mejorada */
.pagination {
    gap: 0.5rem;
}

.page-link {
    color: var(--primary-red);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.page-link:hover {
    color: var(--white);
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

.page-item.disabled .page-link {
    color: var(--medium-gray);
    background-color: var(--light-gray);
}

/* Alert para productos no encontrados */
.alert-info {
    background: linear-gradient(135deg, rgba(243, 31, 26, 0.1), rgba(255, 215, 0, 0.1));
    border: 1px solid var(--primary-red);
    border-radius: 10px;
    color: var(--primary-black);
}

.alert-info h4 {
    color: var(--primary-red);
}

/* Responsive para filtros */
@media (max-width: 768px) {
    .toggle-all {
        font-size: 1.2em;
    }

    .toggle-section {
        font-size: 1em;
    }

    .product-img {
        height: 200px;
    }

    .card-body h6 {
        font-size: 0.9rem;
        height: 2.5rem;
    }

    .filter-content {
        max-height: 200px;
        overflow-y: auto;
    }
}

@media (max-width: 576px) {
    .d-flex.align-items-center.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }

    .input-group {
        width: 100%;
    }

    .ml-3 {
        margin-left: 0 !important;
        width: 100%;
    }
}

/* =========================
   NAVBAR CUSTOM STYLES
   ========================= */

/* Reducir espaciado general */
.navbar {
    margin-bottom: 0 !important;
}

.container-fluid {
    padding-bottom: 0;
}

/* Reducir padding vertical del navbar */
.navbar.py-2 {
    padding-top: 0.3rem !important;
    padding-bottom: 0.3rem !important;
}

/* Reducir espaciado del topbar */
.row.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* Reducir altura del header principal */
.row.align-items-center {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Ajuste de breadcrumb para compensar */
.bg-secondary {
    margin-top: 0.5rem;
}

/* Reducir espaciado entre elementos */
.navbar-nav .nav-link {
    padding: 0.5rem 1rem !important;
    margin: 0 2px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(0,0,0,0.05);
    border-radius: 5px;
}

/* =========================
   FORM CONTROLS
   ========================= */

.navbar-nav .nav-link.active {
    background-color: var(--primary-red);
    color: #ffffff !important;
    border-radius: 5px;
}

/* Optimizar el input de búsqueda */
.form-control {
    height: 38px;
}

.input-group-text {
    height: 38px;
    padding: 0.375rem 0.75rem;
}

/* Reducir padding de botones */
.btn.border {
    padding: 0.375rem 0.75rem;
}

/* =========================
   PRODUCT CARDS
   ========================= */

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-img {
    overflow: hidden;
    border-radius: 8px;
}

.product-img img {
    transition: transform 0.3s ease;
}

.product-img:hover img {
    transform: scale(1.05);
}

/* =========================
   BUTTONS & ACTIONS
   ========================= */

.btn-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-favorite:hover {
    background: var(--primary-red);
    color: white;
}

.btn-cart {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-cart:hover {
    background: var(--primary-black);
    color: white;
    transform: translateY(-2px);
}

/* =========================
   BADGES & LABELS
   ========================= */

.badge-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-red);
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
}

.price-original {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

.price-discount {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 1.1rem;
}

/* =========================
   FILTERS SECTION
   ========================= */

.filter-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filter-title {
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 1rem;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

/* =========================
   PAGINATION
   ========================= */

.pagination {
    justify-content: center;
    margin-top: 2rem;
}

.page-link {
    color: var(--primary-red);
    border-color: #dee2e6;
}

.page-link:hover {
    color: var(--primary-black);
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.page-item.active .page-link {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

/* =========================
   BADGES & LABELS
   ========================= */

.badge-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
}

.price-original {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

.price-discount {
    color: #dc3545;
    font-weight: 600;
    font-size: 1.1rem;
}

/* =========================
   FILTERS SECTION
   ========================= */

.filter-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filter-title {
    color: #CC2028;
    font-weight: 600;
    margin-bottom: 1rem;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

/* =========================
   PAGINATION
   ========================= */

.pagination {
    justify-content: center;
    margin-top: 2rem;
}

.page-link {
    color: #CC2028;
    border-color: #dee2e6;
}

.page-link:hover {
    color: #a51a21;
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.page-item.active .page-link {
    background-color: #CC2028;
    border-color: #CC2028;
}

/* =========================
   RESPONSIVE DESIGN
   ========================= */

@media (max-width: 991px) {
    .navbar-nav {
        padding-top: 0.5rem;
        text-align: center;
    }

    .row.align-items-center {
        padding-top: 0.3rem;
        padding-bottom: 0.3rem;
    }

    .filter-section {
        padding: 1rem;
    }

    .product-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .filter-section {
        margin-bottom: 1rem;
    }

    .navbar-nav .nav-link {
        padding: 0.4rem 0.8rem !important;
        margin: 0 1px;
    }

    .btn-cart {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .product-card {
        text-align: center;
    }

    .btn-favorite {
        top: 5px;
        right: 5px;
        width: 30px;
        height: 30px;
    }

    .badge-discount {
        top: 5px;
        left: 5px;
        padding: 3px 6px;
        font-size: 0.7rem;
    }
}

/* =========================
   CART & FAVORITES
   ========================= */

.cart-counter, .favorites-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.cart-item, .favorite-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.cart-item:last-child, .favorite-item:last-child {
    border-bottom: none;
}

/* =========================
   PRODUCT DETAIL PAGE
   ========================= */

.product-detail-img {
    border-radius: 10px;
    overflow: hidden;
}

.product-detail-info {
    padding: 1rem;
}

.size-selector, .color-selector {
    margin: 1rem 0;
}

.size-option, .color-option {
    display: inline-block;
    margin: 0.25rem;
    padding: 0.5rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-option:hover, .color-option:hover,
.size-option.active, .color-option.active {
    border-color: #CC2028;
    background-color: #CC2028;
    color: white;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.quantity-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #e9ecef;
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: 1px solid #dee2e6;
    border-left: none;
    border-right: none;
    height: 35px;
}

/* =========================
   LOADING STATES
   ========================= */

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =========================
   ALERTS & NOTIFICATIONS
   ========================= */

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 5px;
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* =========================
   BREADCRUMB
   ========================= */

.breadcrumb {
    background: transparent;
    padding: 0.5rem 0;
}

.breadcrumb-item a {
    color: #CC2028;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* =========================
   FOOTER IMPROVEMENTS
   ========================= */

/* Footer principal */
.footer-main {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-black) 100%);
    margin-top: 3rem;
    padding-top: 3rem;
}

/* Elementos decorativos del footer */
.footer-decorative::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    z-index: 1;
}

.footer-decorative::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    z-index: 1;
}

.footer-content {
    position: relative;
    z-index: 2;
}

/* Secciones del footer */
.footer-section {
    padding: 0;
    margin-bottom: 2rem;
}

/* Logo del footer */
.footer-logo {
    max-width: 200px;
    filter: brightness(1.2) contrast(1.1);
    margin-bottom: 1.5rem;
}

/* Títulos de sección */
.footer-section-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: rgba(255,255,255,0.6);
    border-radius: 2px;
}

/* Información de contacto */
.contact-info {
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 400;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.icon-wrapper {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.contact-item:hover .icon-wrapper {
    background: rgba(255,255,255,0.25);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

.icon-wrapper i {
    color: #ffffff;
    font-size: 1.1rem;
}

/* Enlaces rápidos */
.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
    transform: translateX(8px);
    text-shadow: 0 0 5px rgba(255,255,255,0.3);
}

.footer-link i {
    margin-right: 0.5rem;
    color: #ffffff;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.footer-link:hover i {
    transform: translateX(5px);
}

/* Redes sociales */
.social-links {
    display: flex;
    flex-direction: column;
}

.social-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #ffffff;
    transform: translateY(-3px);
    text-shadow: 0 0 5px rgba(255,255,255,0.3);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    transition: all 0.3s ease;
}

.social-link:hover .social-icon {
    transform: scale(1.15);
    background: rgba(255,255,255,0.25) !important;
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

.social-icon i {
    color: #ffffff;
    font-size: 1.2rem;
}

/* Iconos específicos de redes sociales */
.social-icon.facebook {
    background: rgba(59, 89, 152, 0.3);
}

.social-icon.instagram {
    background: rgba(225, 48, 108, 0.3);
}

.social-icon.youtube {
    background: rgba(255, 0, 0, 0.3);
}

.social-icon.tiktok {
    background: rgba(255, 255, 255, 0.3);
}

/* Sección de copyright */
.footer-copyright {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.copyright-text {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0;
    text-align: center;
}

.copyright-text a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.copyright-text a:hover {
    text-decoration: underline;
}

/* Métodos de pago */
.payment-methods {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.payment-label {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 400;
    margin-right: 1rem;
    white-space: nowrap;
}

.payment-icons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.payment-icon {
    color: #ffffff;
    font-size: 2rem;
    opacity: 0.9;
    transition: all 0.3s ease;
    cursor: pointer;
}

.payment-icon:hover {
    opacity: 1;
    transform: scale(1.1) translateY(-2px);
    text-shadow: 0 4px 8px rgba(255,255,255,0.3);
    filter: drop-shadow(0 4px 8px rgba(255,255,255,0.2));
}

.mercadopago-icon {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
    vertical-align: middle;
    opacity: 0.9;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mercadopago-icon:hover {
    opacity: 1;
    transform: scale(1.1) translateY(-2px);
    filter: brightness(0) invert(1) drop-shadow(0 4px 8px rgba(255,255,255,0.2));
}

/* Responsive para footer */
@media (max-width: 991px) {
    .footer-main {
        padding-top: 2rem;
    }

    .footer-section {
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .footer-section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links,
    .footer-links {
        align-items: center;
    }

    .payment-methods {
        justify-content: center;
        text-align: center;
        margin-top: 1rem;
    }

    .payment-label {
        width: 100%;
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .footer-main {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .footer-logo {
        max-width: 150px;
    }

    .footer-section-title {
        font-size: 1.1rem;
    }

    .contact-item,
    .footer-link,
    .social-link {
        font-size: 0.9rem;
    }

    .payment-icon {
        font-size: 1.5rem;
    }

    .mercadopago-icon {
        height: 24px;
    }
}

@media (max-width: 576px) {
    .contact-item {
        justify-content: center;
        text-align: center;
    }

    .icon-wrapper {
        width: 40px;
        height: 40px;
        margin-right: 0.75rem;
    }

    .social-icon {
        width: 35px;
        height: 35px;
        margin-right: 0.5rem;
    }

    .payment-icons {
        justify-content: center;
        gap: 0.5rem;
    }
}

/* Botones deshabilitados y estados de favoritos */
.btn-add-favorite.disabled {
    opacity: 0.6;
    pointer-events: none;
    background-color: #e8f5e8;
    border-color: #28a745;
    color: #28a745;
}

.btn-add-favorite:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.btn-add-favorite.disabled:hover {
    transform: none;
}

/* Animaciones para loading */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estados de producto mejorados */
.product-item {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-item .card-footer button {
    transition: all 0.2s ease;
}

.product-item .card-footer button:hover {
    background-color: rgba(243, 31, 26, 0.1);
    color: var(--karate-red);
}

/* === ESTILOS PÁGINA FAVORITOS === */
.favorites-header {
    background: linear-gradient(135deg, rgba(243, 31, 26, 0.1), rgba(26, 26, 26, 0.05));
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 4px solid var(--karate-red);
}

.favorites-actions {
    display: flex;
    gap: 0.5rem;
}

.product-favorite-item {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.product-favorite-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.favorite-product-img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-favorite-item:hover .favorite-product-img {
    transform: scale(1.05);
}

.btn-remove-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--karate-red);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.btn-remove-favorite:hover {
    background: var(--karate-red);
    color: white;
    transform: scale(1.1);
}

.favorite-product-info {
    min-height: 120px;
}

.favorite-actions .btn {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.empty-favorites {
    background: linear-gradient(135deg, rgba(243, 31, 26, 0.05), rgba(26, 26, 26, 0.02));
    border-radius: 15px;
    padding: 3rem 2rem;
    margin: 2rem 0;
}

.empty-favorites-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive para favoritos */
@media (max-width: 768px) {
    .favorites-header {
        padding: 1rem;
    }

    .favorites-header .d-flex {
        flex-direction: column;
        gap: 1rem;
    }

    .favorites-actions {
        justify-content: center;
    }

    .favorite-product-img {
        height: 150px;
    }

    .empty-favorites {
        padding: 2rem 1rem;
    }

    .empty-favorites-icon i {
        font-size: 3rem !important;
    }
}

@media (max-width: 576px) {
    .favorite-actions .row {
        gap: 0.5rem;
    }

    .favorite-actions .col-6 {
        flex: 1;
    }
}

/* === ESTILOS PÁGINA DETALLE PRODUCTO === */
.product-detail-container {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.product-image-gallery {
    position: relative;
    background: white;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.product-main-image {
    max-height: 500px;
    width: 100%;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.product-main-image:hover {
    transform: scale(1.02);
}

/* Thumbnail gallery */
.thumbnail-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.thumbnail-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumbnail-image:hover {
    border-color: var(--karate-red);
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail-image.active {
    border-color: var(--karate-red);
    opacity: 1;
    box-shadow: 0 0 10px rgba(243, 31, 26, 0.3);
}

/* Product info section */
.product-info {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--karate-black);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.product-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--karate-red);
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.product-price.select-size {
    color: #6c757d;
    font-size: 1.5rem;
    font-style: italic;
}

/* Size selector */
.size-selector {
    margin-bottom: 2rem;
}

.size-selector-label {
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 0.75rem;
    display: block;
    font-size: 1.1rem;
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.size-option {
    position: relative;
}

.size-option input[type="radio"] {
    display: none;
}

.size-option label {
    display: block;
    padding: 0.875rem 1.25rem;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-align: center;
    min-width: 70px;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.size-option label:hover {
    border-color: var(--primary-red);
    background: rgba(243, 31, 26, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(243, 31, 26, 0.15);
}

.size-option input[type="radio"]:checked + label {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 31, 26, 0.3);
}

/* Color selector */
.color-selector {
    margin-bottom: 2rem;
}

.color-selector-label {
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 0.75rem;
    display: block;
    font-size: 1.1rem;
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.color-option {
    text-align: center;
    position: relative;
    cursor: pointer;
}

.color-option input[type="radio"] {
    display: none;
}

.color-option label {
    cursor: pointer;
    display: block;
    transition: all 0.3s ease;
}

.color-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 auto 0.5rem;
    display: block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.color-option:hover .color-circle {
    border-color: var(--primary-red);
    transform: scale(1.15);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.color-option input[type="radio"]:checked + label .color-circle {
    border-color: var(--primary-red);
    border-width: 4px;
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(243, 31, 26, 0.4);
}

.color-option input[type="radio"]:checked + label .color-circle::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 1.4rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    z-index: 10;
}

.color-name {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
    line-height: 1.2;
    margin-top: 0.25rem;
}

/* Quantity and cart section */
.quantity-cart-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.quantity-selector:hover {
    border-color: var(--primary-red);
    box-shadow: 0 4px 15px rgba(243, 31, 26, 0.15);
}

.quantity-btn {
    width: 45px;
    height: 45px;
    border: none;
    background: var(--primary-red);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.quantity-btn:hover {
    background: var(--primary-black);
    transform: scale(1.05);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-input {
    width: 70px;
    height: 45px;
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    background: white;
    color: var(--primary-black);
}

.quantity-input:focus {
    outline: none;
    background: #f8f9fa;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, var(--primary-red), #d91e1e);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243, 31, 26, 0.3);
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.add-to-cart-btn:hover::before {
    left: 100%;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, var(--primary-black), #333);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(243, 31, 26, 0.4);
}

/* Share section */
.share-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.share-label {
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 1rem;
    display: block;
    font-size: 1.1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.facebook:hover {
    background: #166fe5;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
}

.share-btn.instagram {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    color: white;
}

.share-btn.instagram:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(225, 48, 108, 0.4);
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn.whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.twitter:hover {
    background: #1a91da;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(29, 161, 242, 0.4);
}

.share-btn:hover {
    color: white;
    text-decoration: none;
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.add-to-cart-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Share section */
.share-section {
    border-top: 1px solid #e9ecef;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.share-label {
    font-weight: 600;
    color: var(--karate-black);
    margin-bottom: 0.75rem;
    display: block;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    color: white;
    text-decoration: none;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.twitter {
    background: #000000;
}

/* Product description */
.product-description {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.product-description h4 {
    color: var(--karate-black);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Similar products */
.similar-products {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.similar-products-title {
    color: var(--karate-black);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
    font-size: 1.8rem;
}

/* Image zoom modal */
.zoom-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s ease;
}

.zoom-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    animation: zoomIn 0.3s ease;
}

.zoom-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.zoom-close:hover {
    opacity: 0.7;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsive design */
@media (max-width: 768px) {
    .product-title {
        font-size: 1.5rem;
    }

    .product-price {
        font-size: 2rem;
    }

    .quantity-cart-section {
        flex-direction: column;
        align-items: stretch;
    }

    .add-to-cart-btn {
        justify-content: center;
    }

    .share-buttons {
        justify-content: center;
    }

    .color-options {
        justify-content: center;
    }

    .size-options {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .product-info {
        padding: 1.5rem;
    }

    .thumbnail-image {
        width: 60px;
        height: 60px;
    }

    .color-circle {
        width: 35px;
        height: 35px;
    }
}

/* ===========================================
   CARRITO DE COMPRAS - ESTILOS
   =========================================== */

/* Header del carrito */
.cart-header {
    background: linear-gradient(135deg, var(--primary-red), #d91e1e);
    color: white;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.cart-header h1 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: 700;
}

.cart-breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.cart-breadcrumb a:hover {
    color: white;
    text-decoration: none;
}

/* Tabla del carrito */
.cart-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.cart-table thead {
    background: linear-gradient(135deg, var(--primary-black), #333);
    color: white;
}

.cart-table thead th {
    border: none;
    padding: 1.5rem 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.cart-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.cart-table tbody tr:hover {
    background: rgba(243, 31, 26, 0.02);
}

.cart-table tbody td {
    padding: 1.5rem 1rem;
    border: none;
    vertical-align: middle;
}

/* Imagen del producto */
.product-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-image:hover {
    transform: scale(1.1);
}

/* Información del producto */
.product-info {
    font-weight: 500;
    color: var(--primary-black);
}

.product-size {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
}

.color-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Precio */
.product-price {
    font-weight: 700;
    color: var(--primary-red);
    font-size: 1.1rem;
}

/* Control de cantidad */
.quantity-control {
    display: flex;
    align-items: center;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    width: 130px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.quantity-btn {
    width: 35px;
    height: 40px;
    border: none;
    background: var(--primary-red);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--primary-black);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-weight: 600;
    background: white;
    color: var(--primary-black);
}

.quantity-input:focus {
    outline: none;
    background: #f8f9fa;
}

/* Total del producto */
.product-total {
    font-weight: 700;
    color: var(--primary-black);
    font-size: 1.1rem;
}

/* Botón eliminar */
.remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    background: #c82333;
    transform: scale(1.1);
    color: white;
    text-decoration: none;
}

/* Alertas del carrito */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert .close {
    color: inherit;
    opacity: 0.7;
    font-size: 1.2rem;
    font-weight: 300;
}

.alert .close:hover {
    opacity: 1;
}

/* Sección de cupón */
.coupon-section {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.coupon-form {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    width: 100%;
}

.coupon-input {
    flex: 1;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    min-width: 0; /* Permite que flexbox reduzca el tamaño */
}

.coupon-input:focus {
    border-color: var(--primary-red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(243, 31, 26, 0.1);
}

.coupon-btn {
    background: linear-gradient(135deg, var(--primary-red), #d91e1e);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.875rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 100px;
    flex-shrink: 0; /* No permite que se reduzca */
    white-space: nowrap;
}

.coupon-btn:hover {
    background: linear-gradient(135deg, var(--primary-black), #333);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(243, 31, 26, 0.3);
}

/* Cupón aplicado */
.coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 1px solid #28a745;
    border-radius: 10px;
    margin-top: 0.5rem;
}

.coupon-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.coupon-code {
    font-weight: 600;
    color: #155724;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.coupon-description {
    font-size: 0.9rem;
    color: #155724;
    opacity: 0.8;
}

.remove-coupon-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.remove-coupon-btn:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* Resumen de compra */
.order-summary {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.order-summary-header {
    background: linear-gradient(135deg, var(--primary-black), #333);
    color: white;
    padding: 1.5rem;
    margin: 0;
}

.order-summary-header h4 {
    margin: 0;
    font-weight: 700;
    color: white;
}

.order-summary-body {
    padding: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 500;
    color: var(--primary-black);
}

.summary-value {
    font-weight: 600;
    color: var(--primary-red);
}

.discount-info {
    background: rgba(243, 31, 26, 0.05);
    padding: 0.5rem;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.discount-type {
    font-size: 0.85rem;
    color: var(--primary-red);
    font-weight: 600;
}

.order-summary-footer {
    background: #f8f9fa;
    padding: 1.5rem 2rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid var(--primary-red);
}

.total-label {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-black);
}

.total-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
}

/* Botón procesar compra */
.checkout-btn {
    background: linear-gradient(135deg, var(--primary-red), #d91e1e);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-decoration: none;
    display: block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.checkout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.checkout-btn:hover::before {
    left: 100%;
}

.checkout-btn:hover {
    background: linear-gradient(135deg, var(--primary-black), #333);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 31, 26, 0.4);
    color: white;
    text-decoration: none;
}

/* Carrito vacío */
.empty-cart {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.empty-cart-icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.empty-cart h3 {
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.empty-cart p {
    color: #666;
    margin-bottom: 2rem;
}

.shop-now-btn {
    background: linear-gradient(135deg, var(--primary-red), #d91e1e);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 1rem 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.shop-now-btn:hover {
    background: linear-gradient(135deg, var(--primary-black), #333);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Responsive design */
@media (max-width: 768px) {
    .cart-table {
        font-size: 0.9rem;
    }

    .cart-table thead th,
    .cart-table tbody td {
        padding: 1rem 0.5rem;
    }

    .product-image {
        width: 50px;
        height: 50px;
    }

    .quantity-control {
        width: 110px;
    }

    .coupon-form {
        flex-direction: column;
        gap: 1rem;
    }

    .coupon-applied {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .remove-coupon-btn {
        align-self: center;
        min-width: 120px;
    }

    .order-summary-body,
    .order-summary-footer {
        padding: 1.5rem;
    }
}

/* =========================
   PÁGINAS DE CONFIRMACIÓN
   ========================= */

.confirmation-section {
    background: var(--light-gray);
    min-height: 60vh;
}

.confirmation-card {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.confirmation-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 30px rgba(243, 31, 26, 0.3);
}

.confirmation-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.confirmation-details {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.detail-item i {
    font-size: 2rem;
}

.detail-item h5 {
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
}

/* Error page styles */
.error-section {
    background: linear-gradient(135deg, #dc3545 0%, #721c24 100%);
    min-height: 40vh;
}

.error-icon {
    background: linear-gradient(135deg, #dc3545, #b52d3a);
}

.error-icon i {
    color: var(--white);
}

/* Pending page styles */
.pending-section {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    min-height: 40vh;
}

.pending-icon {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.pending-icon i {
    color: var(--primary-black);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.confirmation-card,
.hero-content {
    animation: fadeInUp 0.8s ease;
}

/* Responsive para confirmación */
@media (max-width: 768px) {
    .confirmation-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .confirmation-icon {
        width: 60px;
        height: 60px;
    }

    .confirmation-icon i {
        font-size: 2rem;
    }
}

