/* ==========================================================================
   Tienda (Store / Product Catalog) Styles
   ========================================================================== */

.shop-page-wrapper {
    background-color: #f9fafb;
    padding: 45px 0 85px 0;
    min-height: calc(100vh - 350px);
}

/* Shop Hero Header */
.shop-hero-card {
    background: #ffffff;
    padding: 40px 36px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef2f6;
    margin-bottom: 36px;
    text-align: center;
}

.shop-tagline-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    background-color: rgba(247, 138, 12, 0.1);
    color: var(--accent-color, #f78a0c);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
}

.shop-main-title {
    font-size: 2.3rem;
    font-weight: 700;
    color: #161616;
    margin: 0 0 10px 0;
    line-height: 1.25;
}

.shop-subtitle {
    font-size: 1.05rem;
    color: #4b5563;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Toolbar & Filters */
.shop-toolbar {
    background: #ffffff;
    padding: 20px 24px;
    border-radius: 12px;
    border: 1px solid #eef2f6;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    margin-bottom: 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.shop-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shop-filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    background-color: #f8fafc;
    color: #4b5563;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shop-filter-btn:hover {
    border-color: var(--accent-color, #f78a0c);
    color: var(--accent-color, #f78a0c);
    background-color: #ffffff;
}

.shop-filter-btn.active {
    background-color: var(--primary-color, #1a2b4a);
    color: #ffffff;
    border-color: var(--primary-color, #1a2b4a);
}

.shop-search-sort-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.shop-search-box {
    position: relative;
    width: 240px;
}

.shop-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px 10px 38px;
    font-family: inherit;
    font-size: 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #ffffff;
    outline: none;
    transition: all 0.2s ease;
    color: #1f2937;
}

.shop-search-input:focus {
    border-color: var(--accent-color, #f78a0c);
    box-shadow: 0 0 0 3px rgba(247, 138, 12, 0.15);
}

.shop-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.9rem;
    pointer-events: none;
}

.shop-sort-select {
    padding: 10px 14px;
    font-family: inherit;
    font-size: 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #ffffff;
    color: #374151;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}

.shop-sort-select:focus {
    border-color: var(--accent-color, #f78a0c);
}

.shop-results-count {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef2f6;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
    border-color: rgba(247, 138, 12, 0.4);
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f3f4f6;
}

.product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

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

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

.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
}

.wishlist-btn:hover {
    color: #e11d48;
    background: #ffffff;
    transform: scale(1.1);
}

.wishlist-btn.active {
    color: #e11d48;
    background: #ffffff;
}

.wishlist-btn.active i {
    font-weight: 900;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info .category {
    font-size: 0.8rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
    margin-bottom: 6px;
}

.product-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.product-info h3 a {
    color: #161616;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-info h3 a:hover {
    color: var(--accent-color, #f78a0c);
}

.product-info .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color, #1a2b4a);
    margin-bottom: 16px;
}

.btn-add-cart {
    margin-top: auto;
    width: 100%;
    padding: 12px 16px;
    background-color: #161616;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.btn-add-cart:hover {
    background-color: var(--accent-color, #f78a0c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 138, 12, 0.25);
}

.btn-add-cart.added {
    background-color: #10b981;
}

/* No products found */
#noProductsMessage {
    display: none;
    text-align: center;
    grid-column: 1 / -1;
    padding: 60px 0;
    color: #6b7280;
}

#noProductsMessage i {
    font-size: 2.5rem;
    color: #cbd5e1;
    margin-bottom: 14px;
    display: block;
}

/* Responsive */
@media (max-width: 860px) {
    .shop-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .shop-filter-pills {
        justify-content: center;
    }

    .shop-search-sort-wrap {
        width: 100%;
        justify-content: space-between;
    }

    .shop-search-box {
        flex-grow: 1;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
}
