/* ================================
   TIENDA CHIC - CSS PRINCIPAL
   ================================ */

/* Reset y configuración global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    line-height: 1.6;
}

/* ================================
   HEADER Y NAVEGACIÓN (Común a todas las páginas)
   ================================ */
.header {
    background: #1a1a1a;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    color: white;
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 300;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover, .nav-menu a.active {
    color: #c4a574;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c4a574;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after, .nav-menu a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    position: relative;
}

.search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    color: white;
    width: 200px;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    width: 250px;
}

.cart-icon, .logout-btn {
    color: white;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    position: relative;
}

.cart-icon:hover, .logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.cart-icon.active {
    background: #c4a574;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-message {
    background: #c4a574;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
}

/* ================================
   LAYOUT COMÚN
   ================================ */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.page-subtitle {
    color: #666;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ================================
   BOTONES COMUNES
   ================================ */
.btn-primary {
    background: #1a1a1a;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: #c4a574;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    background: #b3956a;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #1a1a1a;
    padding: 1rem 2rem;
    border: 2px solid #1a1a1a;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-outline:hover {
    background: #1a1a1a;
    color: white;
}

/* ================================
   FORMULARIOS COMUNES
   ================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 400;
    font-size: 0.9rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #c4a574;
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ================================
   TARJETAS DE PRODUCTOS
   ================================ */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Imagen del producto */
.product-image {
    height: 220px;
    background: linear-gradient(135deg, #c4a574, #d4b584);
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Si no hay imagen, mostrar placeholder */
.product-image.no-image {
    background: linear-gradient(135deg, #c4a574, #d4b584);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.img-placeholder {
    background: linear-gradient(135deg, #c4a574, #d4b584);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    width: 100%;
    height: 100%;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(26, 26, 26, 0.9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-content {
    padding: 1.5rem;
}

.product-category {
    color: #c4a574;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-name {
    color: #1a1a1a;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

/* ================================
   NOTIFICACIONES Y MENSAJES
   ================================ */
.notification {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
    opacity: 0;
    animation: slideIn 0.3s ease forwards;
}

.notification.success {
    background: #27ae60;
    color: white;
}

.notification.error {
    background: #ff4757;
    color: white;
}

.notification.warning {
    background: #f39c12;
    color: white;
}

.notification.info {
    background: #3498db;
    color: white;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   BREADCRUMBS
   ================================ */
.breadcrumbs {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.breadcrumbs a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #1a1a1a;
}

.breadcrumbs span {
    color: #1a1a1a;
    font-weight: 500;
}

/* ================================
   RESPONSIVE DESIGN - MOBILE
   ================================ */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .search-input {
        width: 150px;
    }

    .search-input:focus {
        width: 180px;
    }

    .main-container {
        padding: 1rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .product-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem;
    }

    .nav-menu {
        font-size: 0.9rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .btn-primary, .btn-secondary, .btn-outline {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ================================
   UTILIDADES
   ================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-block { display: block; }
.d-none { display: none; }