/*
Theme Name: ThisCookie21
Theme URI: https://thiscookie21.com
Author: ThisCookie21
Author URI: https://thiscookie21.com
Description: Tema personalizado para la tienda de galletas artesanales ThisCookie21
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thiscookie21
*/

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f5f0;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-title {
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.site-description {
    text-align: center;
    font-size: 1.2rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Intro Section */
.intro-section {
    text-align: center;
    padding: 3rem 1rem;
    background: white;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.intro-section h2 {
    color: #8B4513;
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Cookies Grid */
.cookies-section {
    margin: 3rem 0;
}

.price-group {
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.price-header {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
    color: white;
    padding: 1rem 2rem;
    margin: -2rem -2rem 2rem -2rem;
    border-radius: 10px 10px 0 0;
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
}

.cookies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Cookie Card */
.cookie-card {
    background: #fff;
    border: 2px solid #e0d5c7;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.cookie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.2);
}

.cookie-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(135deg, #f5e6d3 0%, #e0d5c7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #8B4513;
    font-weight: bold;
    text-align: center;
    padding: 1rem;
}

.cookie-content {
    padding: 1.5rem;
}

.cookie-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #D2691E;
    margin: 10px 0;
    text-align: center;
}

.cookie-name {
    font-size: 1.4rem;
    font-weight: bold;
    color: #8B4513;
    margin-bottom: 0.5rem;
}

.cookie-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Footer */
.site-footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.site-footer p {
    margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }
    
    .site-description {
        font-size: 1rem;
    }
    
    .cookies-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .price-header {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 1rem 0.5rem;
    }
    
    .price-group {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.5rem;
    }
    
    .cookies-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-image {
        height: 200px;
    }
    
    .intro-section h2 {
        font-size: 1.5rem;
    }
}

/* Carrito flotante */
.cart-icon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 999;
    transition: transform 0.2s;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-icon span {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
}

.cart-bounce {
    animation: bounce 0.5s;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Modal del carrito */
.cart-modal, .order-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.cart-content, .order-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-cart, .close-order {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.close-cart:hover, .close-order:hover {
    color: #333;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.cart-item button {
    background: #8B4513;
    color: white;
    border: none;
    padding: 5px 10px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
}

.cart-item button:hover {
    background: #D2691E;
}

.cart-total, .order-total {
    font-size: 1.5rem;
    margin: 20px 0;
    text-align: right;
}

.checkout-btn, button[type="button"] {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    margin-top: 20px;
}

.checkout-btn:hover, button[type="button"]:hover {
    opacity: 0.9;
}

/* Formulario */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #8B4513;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #8B4513;
}

.pickup-info {
    background: #f9f5f0;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #8B4513;
}

.add-to-cart {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    margin-top: 10px;
    transition: transform 0.2s;
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
