/* ============================================================ */
/* 🛒 STORE.CSS - DISEÑO ELEGANTE E-COMMERCE 2025 */
/* ============================================================ */
/* Tienda cristiana digital con diseño premium consistente */
/* con el sistema de diseño del sitio (Montserrat + gradientes) */
/* ============================================================ */

/* ===================================================== */
/* HERO SECTION */
/* ===================================================== */
.store-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-2) 100%);
    color: var(--white);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

/* Extend background for bounce scroll prevention */
.store-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-2) 100%);
    z-index: -1;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.hero-trust-badges {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-icon {
    font-size: 1.1rem;
}

/* ===================================================== */
/* CATEGORY FILTERS */
/* ===================================================== */
.category-filters {
    background: var(--white);
    border-bottom: 1px solid #e5e7eb;
    padding: 24px 0;
    position: sticky;
    top: var(--header-h);
    z-index: 100;
}

.filter-pills-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.filter-pills {
    display: flex;
    gap: 12px;
    min-width: max-content;
    padding: 0 4px;
}

.filter-pill {
    background: transparent;
    border: 2px solid #e5e7eb;
    color: var(--text);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
}

.filter-pill:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.filter-pill.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(217, 160, 40, 0.3);
}

/* ===================================================== */
/* PRODUCTS SECTION */
/* ===================================================== */
.products-section {
    padding: 50px 0 80px;
    background: #fafbfc;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* ===================================================== */
/* PRODUCT CARDS - PREMIUM DESIGN */
/* ===================================================== */
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Product Image */
.product-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(18, 60, 104, 0.9);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Product Content */
.product-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.product-description {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 20px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.product-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 16px 0;
}

/* Pricing */
.product-price-row {
    margin-bottom: 20px;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.currency {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold);
}

.current-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
}

.original-price {
    font-size: 1.1rem;
    color: var(--muted);
    text-decoration: line-through;
    font-weight: 500;
}

/* Product Actions */
.product-actions {
    margin-top: auto;
    position: relative;
}

.btn-buy {
    width: 100%;
    background: var(--gold);
    color: var(--white);
    border: none;
    padding: 16px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 8px 20px rgba(217, 160, 40, 0.3);
}

.btn-buy:hover {
    background: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(217, 160, 40, 0.4);
}

/* Payment Dropdown */
.payment-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 200;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    text-decoration: none;
    color: var(--text);
    transition: background 0.2s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.payment-option:hover {
    background: #f8fafc;
}

.payment-option.whatsapp {
    color: #25d366;
}

.payment-option.whatsapp:hover {
    background: rgba(37, 211, 102, 0.1);
}

.payment-option.paypal {
    color: #0070ba;
}

.payment-option.paypal:hover {
    background: rgba(0, 112, 186, 0.1);
}

.payment-option.stripe {
    color: #635bff;
}

.payment-option.stripe:hover {
    background: rgba(99, 91, 255, 0.1);
}

.payment-option i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* ===================================================== */
/* TRUST SECTION */
/* ===================================================== */
.trust-section {
    background: #f8fafc;
    padding: 60px 0;
    border-top: 1px solid #e5e7eb;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.trust-item .trust-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.trust-item .trust-label {
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
}

/* ===================================================== */
/* VERSE SECTION */
/* ===================================================== */
.verse-quote {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--primary-blue);
    margin: 0 0 16px 0;
    line-height: 1.6;
    font-weight: 500;
}

.verse-ref {
    font-weight: 700;
    color: var(--gold);
    font-size: 1.1rem;
    font-style: normal;
}

/* ===================================================== */
/* RESPONSIVE DESIGN */
/* ===================================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-trust-badges {
        flex-direction: column;
        gap: 16px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .filter-pills {
        padding: 0 20px;
    }
    
    .trust-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 30px;
    }
    
    .verse-quote {
        font-size: 1.1rem;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 1.9rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .category-filters {
        padding: 16px 0;
    }
    
    .filter-pill {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* ===================================================== */
/* ANIMATIONS */
/* ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease forwards;
}

.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.3s; }

/* ===================================================== */
/* LOADING STATES */
/* ===================================================== */
.product-card.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* ===================================================== */
/* ACCESSIBILITY */
/* ===================================================== */
.filter-pill:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.btn-buy:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.payment-option:focus {
    background: #f8fafc;
    outline: none;
}

/* ===================================================== */
/* SCROLL BEHAVIOR */
/* ===================================================== */
.filter-pills-container::-webkit-scrollbar {
    height: 6px;
}

.filter-pills-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.filter-pills-container::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

.filter-pills-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}