* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #fefaf5;
    color: #2c2418;
    line-height: 1.4;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background: #ffffffdd;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e9e0d5;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    flex-wrap: wrap;
    gap: 16px;
}

.logo h1 {
    font-size: 1.7rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2f6b3e, #c97e3a);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.logo span {
    font-size: 0.85rem;
    color: #8b6946;
    display: block;
}

.cart-icon {
    background: #f2ebe2;
    padding: 10px 16px;
    border-radius: 60px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: transform 0.1s;
}

.cart-icon:active {
    transform: scale(0.97);
}

.cart-count {
    background: #c97e3a;
    color: white;
    border-radius: 40px;
    padding: 2px 8px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Hero */
.hero {
    background: linear-gradient(105deg, #f1e7dc 0%, #e9dccc 100%);
    border-radius: 2rem;
    margin: 28px 0 40px;
    padding: 48px 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.hero-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d4a2a;
}

.hero-text p {
    font-size: 1.1rem;
    margin: 16px 0 0;
    color: #4a3b2c;
}

.hero-badge {
    background: #ffffffc9;
    padding: 8px 18px;
    border-radius: 60px;
    display: inline-block;
    font-size: 0.85rem;
}

.hero-emoji {
    font-size: 4rem;
}

/* Productos */
.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin: 48px 0 24px;
    border-left: 6px solid #c97e3a;
    padding-left: 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.product-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 12px 24px -12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f0e4d8;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 32px -16px rgba(0,0,0,0.12);
}

.product-img {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
}

.badge-category {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255,255,240,0.9);
    backdrop-filter: blur(4px);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
}

.product-info {
    padding: 20px 18px 24px;
}

.product-title {
    font-size: 1.65rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.product-price {
    font-weight: 700;
    color: #c16f2e;
    font-size: 1.35rem;
}

.product-desc {
    color: #6a5a48;
    font-size: 0.9rem;
    margin: 10px 0 20px;
}

.add-to-cart {
    background: #2f6b3e;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.add-to-cart:hover {
    background: #1f4f2e;
}

/* Carrito */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(3px);
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: 0.2s;
}

.cart-overlay.active {
    visibility: visible;
    opacity: 1;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: #fffcf8;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    transform: translateX(0);
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid #eedfcb;
    display: flex;
    justify-content: space-between;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 20px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-item-actions button {
    background: #f0e2d4;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 30px;
    cursor: pointer;
}

.cart-total {
    padding: 20px;
    border-top: 2px dashed #e2cfbb;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.checkout-btn {
    background: #c97e3a;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.toast-msg {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #2c2418e6;
    color: #fef2e0;
    padding: 10px 20px;
    border-radius: 60px;
    z-index: 1100;
    pointer-events: none;
}

footer {
    background: #e3d5c4;
    margin-top: 64px;
    padding: 32px 0;
    text-align: center;
    border-radius: 2rem 2rem 0 0;
}

@media (max-width: 680px) {
    .hero-text h2 { font-size: 1.8rem; }
    .section-title { font-size: 1.6rem; }
    .container { padding: 0 16px; }
}