body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

/* ============================================
   PUBLIC PAGES SPECIFIC STYLES
   Consolidated from: index.css, catalogo.css, carrito.css, checkout.css, producto.css, etc.
   ============================================ */

/* ============================================
   NAVBAR - PUBLIC PAGES
   ============================================ */

.navbar-sportstore {
    background: #111 !important;
    padding: 0.75rem 1.5rem !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 900;
    letter-spacing: 2px;
    font-size: 1.6rem !important;
    color: white !important;
    text-decoration: none;
    transition: color 0.3s;
}

.navbar-brand:hover {
    color: var(--brand, #e44d26) !important;
}

.navbar-brand span {
    color: var(--brand, #e44d26);
}

/* ============================================
   HERO SECTION - HOMEPAGE
   ============================================ */

.hero {
    height: 90vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('https://images.unsplash.com/photo-1517836357463-d25dfeac3438?w=1400&h=1000&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
    min-height: 400px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.btn-main {
    background: var(--brand, #e44d26);
    border: none;
    font-weight: bold;
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.btn-main:hover {
    background: #c63d1f;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ============================================
   PRODUCT CARD - ALL PUBLIC PAGES
   ============================================ */

.producto-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.producto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--brand, #e44d26);
}

.producto-img {
    height: 200px;
    width: 100%;
    object-fit: contain;
    background: #f8f8f8;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.producto-card h5 {
    min-height: 70px;
    line-height: 1.3;
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
    margin: 1rem 0 0.5rem 0;
}

.producto-card p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.producto-card .d-grid {
    margin-top: auto;
    gap: 0.5rem;
}

.producto-card .d-grid .btn,
.producto-card .d-grid a.btn,
.producto-card .d-grid button.btn,
.producto-card .d-grid input[type="submit"].btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    padding: 0.75rem;
    margin: 0.25rem 0;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-custom {
    background: #111;
    color: white;
    font-weight: 600;
    border: none;
}

.btn-custom:hover {
    background: var(--brand, #e44d26);
    color: white;
}

.producto-card .d-grid .btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   CART PAGE STYLES
   ============================================ */

.carrito-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.carrito-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.carrito-header h1 {
    font-size: 2rem;
    font-weight: 900;
    margin: 0;
}

.carrito-header a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #111;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.carrito-header a:hover {
    background: var(--brand, #e44d26);
}

.carrito-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.carrito-table thead {
    background: #111;
    color: white;
}

.carrito-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.carrito-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.carrito-table tr:last-child td {
    border-bottom: none;
}

.carrito-table tr:hover {
    background: #f9f9f9;
}

.cantidad-input {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
}

.btn-eliminar {
    display: inline-block;
    background: var(--danger, #ef4444);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-eliminar:hover {
    background: var(--danger-dark, #991b1b);
}

.carrito-acciones {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-actualizar,
.btn-vaciar,
.btn-continuar {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.btn-actualizar {
    background: #111;
    color: white;
}

.btn-actualizar:hover {
    background: var(--brand, #e44d26);
}

.btn-vaciar {
    background: var(--danger, #ef4444);
    color: white;
}

.btn-vaciar:hover {
    background: var(--danger-dark, #991b1b);
}

.btn-continuar {
    background: var(--success, #10b981);
    color: white;
}

.btn-continuar:hover {
    background: var(--success-dark, #065f46);
}

.carrito-totales {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.total-row.grand-total {
    border-top: 2px solid #ddd;
    padding-top: 1rem;
    font-weight: 900;
    font-size: 1.25rem;
    color: #111;
}

/* ============================================
   SEARCH FORM
   ============================================ */

.search-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.search-form input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
}

.search-form button {
    padding: 0.75rem 1.5rem;
    background: #111;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.search-form button:hover {
    background: var(--brand, #e44d26);
}

/* ============================================
   FOOTER - PUBLIC PAGES
   ============================================ */

.footer-sportstore {
    background: #111;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--brand, #e44d26);
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--brand, #e44d26);
    padding-left: 0.5rem;
}

.footer-contact {
    font-size: 0.9rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #ccc;
}

.footer-contact a {
    color: var(--brand, #e44d26);
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-copyright {
    color: #999;
    font-size: 0.85rem;
    margin: 0;
}

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

/* TABLET - 768px y abajo */
@media (max-width: 768px) {
    /* Navbar */
    .navbar-brand {
        font-size: 1.3rem !important;
    }

    .navbar-sportstore {
        padding: 0.5rem 1rem !important;
    }

    .navbar-collapse {
        margin-top: 0.5rem;
    }

    .navbar .btn {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    /* Hero */
    .hero {
        height: auto;
        min-height: 350px;
        padding: 3rem 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .btn-main {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Productos */
    .producto-img {
        height: 150px;
    }

    .producto-card h5 {
        font-size: 1rem;
        min-height: 50px;
    }

    .producto-card p {
        font-size: 0.9rem;
    }

    /* Carrito */
    .carrito-table {
        font-size: 0.9rem;
    }

    .carrito-table th,
    .carrito-table td {
        padding: 0.75rem 0.5rem;
    }

    .carrito-table th:nth-child(n+4),
    .carrito-table td:nth-child(n+4) {
        font-size: 0.85rem;
    }

    .carrito-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .carrito-header h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .carrito-acciones {
        flex-direction: column;
    }

    .carrito-acciones .btn {
        width: 100%;
    }

    /* Grid de productos */
    .row > [class*='col-'] {
        margin-bottom: 1rem;
    }

    /* Footer */
    .footer-sportstore {
        padding: 2rem 0 0.75rem;
        margin-top: 2rem;
    }

    .footer-sportstore .row > div {
        margin-bottom: 1.5rem;
    }
}

/* MÓVIL PEQUEÑO - 480px y abajo */
@media (max-width: 480px) {
    html, body {
        font-size: 14px;
    }

    /* Navbar */
    .navbar-brand {
        font-size: 1rem !important;
        letter-spacing: 0.5px;
    }

    .navbar-sportstore {
        padding: 0.4rem 0.75rem !important;
    }

    .navbar-toggler {
        padding: 0.3rem;
    }

    .navbar .btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    /* Hero */
    .hero {
        min-height: 280px;
        height: auto;
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.4rem;
        line-height: 1.1;
        margin-bottom: 0.75rem;
    }

    .hero p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .btn-main {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        display: inline-block;
    }

    /* Productos */
    .producto-card {
        padding: 1rem;
        border-radius: 8px;
    }

    .producto-img {
        height: 120px;
    }

    .producto-card h5 {
        font-size: 0.9rem;
        min-height: 40px;
        margin: 0.75rem 0 0.5rem 0;
    }

    .producto-card p {
        font-size: 0.8rem;
        margin: 0.25rem 0;
    }

    .producto-card .d-grid {
        gap: 0.3rem;
    }

    .producto-card .d-grid .btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }

    /* Carrito */
    .carrito-container {
        padding: 0 15px;
        margin: 20px auto;
    }

    .carrito-header h1 {
        font-size: 1.25rem;
    }

    .carrito-table {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }

    .carrito-table th,
    .carrito-table td {
        padding: 0.5rem 0.3rem;
    }

    .carrito-table thead {
        position: relative;
        top: 0;
    }

    .cantidad-input {
        width: 60px;
        padding: 0.35rem;
        font-size: 0.75rem;
    }

    .btn-eliminar {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }

    .carrito-acciones {
        flex-direction: column;
        gap: 0.5rem;
    }

    .carrito-acciones .btn {
        width: 100%;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .carrito-totales {
        padding: 1rem;
        gap: 0.75rem;
    }

    .total-row {
        font-size: 0.9rem;
    }

    .total-row.grand-total {
        font-size: 1.1rem;
        padding-top: 0.75rem;
    }

    /* Búsqueda */
    .search-form {
        flex-direction: column;
        gap: 0.5rem;
    }

    .search-form input,
    .search-form button {
        width: 100%;
        font-size: 0.85rem;
        padding: 0.6rem;
    }

    /* Footer */
    .footer-sportstore {
        padding: 1.5rem 0 0.5rem;
        margin-top: 1.5rem;
    }

    .footer-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .footer-text,
    .footer-links a,
    .footer-contact {
        font-size: 0.8rem;
    }

    .footer-links li {
        margin-bottom: 0.5rem;
    }

    .footer-contact p {
        gap: 0.3rem;
        margin-bottom: 0.5rem;
    }
}

    .btn-outline-light {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .producto-img {
        height: 120px;
    }

    .producto-card {
        padding: 0.75rem;
    }

    .producto-card h5 {
        font-size: 0.9rem;
        min-height: 40px;
        margin: 0.5rem 0;
    }

    .producto-card .d-grid .btn {
        padding: 0.6rem;
        font-size: 0.8rem;
    }

    .carrito-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .carrito-header h1 {
        font-size: 1.25rem;
    }

    .carrito-table {
        font-size: 0.8rem;
    }

    .carrito-table th,
    .carrito-table td {
        padding: 0.5rem;
    }

    .cantidad-input {
        width: 60px;
        padding: 0.4rem;
    }

    .carrito-acciones {
        gap: 0.5rem;
    }

    .btn-actualizar,
    .btn-vaciar,
    .btn-continuar {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .footer-sportstore {
        padding: 1.5rem 0 0.5rem;
    }

    .footer-title {
        font-size: 1rem;
    }

    .footer-text,
    .footer-links a,
    .footer-contact p,
    .footer-copyright {
        font-size: 0.8rem;
    }


/* ============================================
   UTILITIES
   ============================================ */

.text-success {
    color: var(--success, #10b981);
}

.text-danger {
    color: var(--danger, #ef4444);
}

.text-warning {
    color: var(--warning, #f59e0b);
}

