/* ========================================
   HogarPeludo - Custom Styles
   ======================================== */

:root {
    --color-primary: #F7BA00;
    --color-primary-dark: #e6a900;
    --color-secondary: #ff9f43;
    --color-text: #3c2f26;
    --color-text-light: #8b7355;
    --color-background: #ffffff;
}

/* ========================================
   Base Styles
   ======================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Button Styles
   ======================================== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--color-primary);
    color: var(--color-text);
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--color-text);
    font-weight: 500;
    border: 1px solid rgba(247, 186, 0, 0.3);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(247, 186, 0, 0.05);
}

.btn-add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: var(--color-text);
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-to-cart:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* ========================================
   Product Card Styles
   ======================================== */

.product-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.5s ease;
    border: 1px solid transparent;
}

.product-card:hover {
    background: white;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-4px);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 20;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-text);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.product-heart-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 20;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-heart-btn i {
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.product-card:hover .product-heart-btn {
    background: var(--color-primary);
}

.product-card:hover .product-heart-btn i {
    color: white;
}

/* ========================================
   Animation Styles
   ======================================== */

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.delay-500 {
    animation-delay: 0.5s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ========================================
   Responsive Styles
   ======================================== */

@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .product-card {
        margin-bottom: 2rem;
    }
}

/* ========================================
   Form Styles
   ======================================== */

input[type="email"] {
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="email"]:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(60, 47, 38, 0.1);
}

/* ========================================
   Utility Classes
   ======================================== */

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .btn-primary,
    .btn-secondary,
    .product-heart-btn {
        display: none;
    }

    body {
        background: white !important;
    }

    .product-card {
        box-shadow: none !important;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}