:root {
    --beige: #F9F7F2;
    --terracotta: #E2725B;
    --sage: #8A9A5B;
    --dark: #2B2B2B;
    --white: #FFFFFF;
    --cream: #FFFDF9;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body { 
    font-family: 'Poppins', sans-serif; 
    background-color: var(--beige); 
    color: var(--dark);
}

h1, h2, .logo { font-family: 'Quicksand', sans-serif; font-weight: 700; }

/* Navbar */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo { font-size: 1.6rem; color: var(--terracotta); }
.logo span { font-weight: 300; font-size: 1rem; color: var(--sage); }

.cart-wrapper {
    position: relative;
    font-size: 1.5rem;
    cursor: pointer;
}

#cart-count {
    position: absolute;
    top: -5px; right: -8px;
    background: var(--terracotta);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: 600;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(226, 114, 91, 0.05), rgba(138, 154, 91, 0.1)), url('https://www.toptal.com/designers/subtlepatterns/uploads/paws.png');
    padding: 80px 20px;
    text-align: center;
}

.hero-content { max-width: 700px; margin: 0 auto; }
.badge { background: var(--sage); color: white; padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }

.hero h1 { font-size: 2.5rem; margin: 20px 0; line-height: 1.2; }
.hero h1 span { color: var(--terracotta); }
.hero p { color: #666; margin-bottom: 30px; font-size: 1.1rem; }

.btn-primary {
    background: var(--terracotta);
    color: white;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(226, 114, 91, 0.3);
    transition: 0.3s;
}

/* Features */
.features {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 40px 20px;
    background: var(--white);
    flex-wrap: wrap;
}

.feature-item { text-align: center; font-size: 0.9rem; font-weight: 500; }
.feature-item span { font-size: 1.5rem; display: block; margin-bottom: 5px; }

/* Grid de Productos */
.container { max-width: 1100px; margin: 40px auto; padding: 0 20px; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 2rem; color: var(--dark); }

#product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (min-width: 768px) {
    #product-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
    background: var(--white);
    border-radius: 25px;
    padding: 10px;
    transition: 0.3s;
    border: 1px solid transparent;
}

.product-card:hover { border-color: var(--sage); transform: translateY(-5px); }

.img-container { 
    background: var(--beige);
    border-radius: 20px;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.img-container img { width: 100%; height: 100%; object-fit: cover; }

.product-info { padding: 15px 5px; }
.product-info h3 { font-size: 0.9rem; height: 40px; overflow: hidden; margin-bottom: 10px; }

.product-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.price { font-size: 1.2rem; font-weight: 700; color: var(--terracotta); }
.stock-tag { font-size: 0.7rem; color: #999; }

.add-btn {
    width: 100%;
    padding: 12px;
    border-radius: 15px;
    border: none;
    background: var(--sage);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.add-btn:hover { background: var(--dark); }

/* Ubicación */
.location-section { background: var(--white); padding: 80px 20px; }
.location-container { 
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr; gap: 40px;
}

@media (min-width: 768px) {
    .location-container { grid-template-columns: 1fr 1fr; align-items: center; }
}

.info-list { list-style: none; margin: 20px 0; }
.info-list li { margin-bottom: 10px; }

.map-container { 
    height: 350px; border-radius: 25px; overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.map-container iframe { width: 100%; height: 100%; }

.btn-instagram {
    display: inline-block;
    margin-top: 20px;
    color: var(--terracotta);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid;
}

/* Sidebar Carrito */
#cart-sidebar {
    position: fixed; top: 0; right: 0;
    width: 100%; max-width: 400px; height: 100%;
    background: var(--white); z-index: 2000;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    display: flex; flex-direction: column;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-hidden { transform: translateX(100%); }

.cart-header { padding: 30px 20px; display: flex; justify-content: space-between; align-items: center; background: var(--cream); }
.close-cart { background: none; border: none; font-size: 1.2rem; cursor: pointer; }

#cart-items { flex: 1; padding: 20px; overflow-y: auto; }

.cart-footer { padding: 30px 20px; background: var(--cream); }
.total-row { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.total-price { color: var(--terracotta); }

.btn-whatsapp {
    width: 100%; padding: 18px; border-radius: 20px; border: none;
    background: #25D366; color: white; font-weight: 700; font-size: 1rem;
    cursor: pointer; box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-note { font-size: 0.75rem; color: #888; text-align: center; margin-top: 15px; }