:root {
    --primary-color: #0F172A;
    --accent-color: #D4AF37; /* Gold */
    --text-color: #333333;
    --light-bg: #F8FAFC;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
}

h1, h2, h3, .logo {
    font-family: 'Playfair Display', serif;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-icons {
    display: flex;
    gap: 1rem;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.icon-btn:hover {
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    background: linear-gradient(135deg, rgba(15,23,42,0.9), rgba(15,23,42,0.7)), url('https://images.unsplash.com/photo-1441984904996-e0b6ba687e04?auto=format&fit=crop&w=1920&q=80') center/cover;
    position: relative;
}

.hero-content {
    max-width: 600px;
    color: var(--white);
    animation: fadeInUp 1s ease-out;
}

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

.highlight {
    color: var(--accent-color);
    font-style: italic;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: #b5952f;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

/* Featured Products */
.featured {
    padding: 6rem 5%;
}

.featured h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.4s ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
}

.img-placeholder {
    height: 300px;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    position: relative;
    
    /* Horizontal Carousel Support */
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}

.img-placeholder::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Edge */
}

.img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    
    /* Carousel Item Support */
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.product-card:hover .img-placeholder img {
    /* Desactivar scale si hay varias imágenes puede ser mejor, 
       pero se puede dejar para la primera o hacer un efecto más sutil */
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.price {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.add-to-cart {
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Promise Section (Glassmorphism) */
.promise {
    padding: 6rem 5%;
    background: url('https://images.unsplash.com/photo-1550684848-fac1c5b4e853?auto=format&fit=crop&w=1920&q=80') fixed center/cover;
}

.promise-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--white);
    max-width: 1000px;
    margin: 0 auto;
}

.promise-glass h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.feature {
    flex: 1;
    min-width: 200px;
}

.emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.feature h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.brand h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.links h4 {
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
}

.links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.links a:hover {
    color: var(--accent-color);
}

.input-group {
    display: flex;
    margin-top: 1rem;
}

.input-group input {
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 20px 0 0 20px;
    outline: none;
    width: 250px;
}

.input-group button {
    padding: 0.8rem 1.5rem;
    border: none;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    font-weight: 600;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #888;
    font-size: 0.9rem;
}

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero h1 {
        font-size: 3rem;
    }
    .features {
        flex-direction: column;
    }
    .input-group {
        width: 100%;
    }
    .input-group input {
        width: 100%;
    }
}

/* Admin Modal */
.admin-modal {
    display: none; 
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    animation: fadeInUp 0.3s ease-out;
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
}

.input-group-modal {
    margin-bottom: 1.5rem;
}

.input-group-modal input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-group-modal input:focus {
    border-color: var(--accent-color);
}

/* Dynamic Product Elements */
.prod-desc {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.size-options {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.size-badge {
    padding: 0.3rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 15px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.size-badge:hover {
    border-color: var(--primary-color);
}

.size-badge.selected {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.print-badge-container {
    margin-bottom: 0.8rem;
}

.print-badge {
    background: #eef2f5;
    color: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Admin Edit/Delete Controls */
.admin-controls {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    gap: 0.5rem;
    z-index: 10;
}

body.admin-logged-in .admin-controls {
    display: flex;
}

.admin-controls button {
    background: rgba(255,255,255,0.9);
    border: 1px solid #ddd;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.admin-controls .edit-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.admin-controls .delete-btn:hover {
    background: #ff4757;
    color: var(--white);
    border-color: #ff4757;
}

/* Cart Styles */
.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}
.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}
.cart-item-details {
    flex: 1;
}
.cart-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}
.cart-item-meta {
    font-size: 0.8rem;
    color: #666;
}
.cart-item-price {
    font-weight: 600;
    color: var(--accent-color);
}
.cart-item-remove {
    background: none;
    border: none;
    color: #ff4757;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
}
