/* ===================================================
   SUPLEMENTOS - WORKOUTLIFE
   Novo design de cards - UX otimizada
   =================================================== */

/* ---- Grid ---- */
.supp-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 1.25rem !important;
    width: 100% !important;
    padding: 0.5rem 0 !important;
}

/* ---- Card ---- */
.supp-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    outline: none;
    min-height: auto;
    border: none;
}

.supp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(1, 60, 16, 0.12);
}

.supp-card:focus-visible {
    outline: 2px solid #013c10;
    outline-offset: 2px;
}

.supp-card--soldout {
    opacity: 0.7;
}

.supp-card--soldout:hover {
    opacity: 0.85;
}

/* ---- Imagem ---- */
.supp-card__img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
}

.supp-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.supp-card:hover .supp-card__img img {
    transform: scale(1.05);
}

.supp-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
    color: #bbb;
    font-size: 3rem;
}

/* ---- Badges ---- */
.supp-card__badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    z-index: 2;
}

.supp-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.supp-badge--sale {
    background: #ff4444;
    color: #fff;
}

.supp-badge--featured {
    background: #013c10;
    color: #b7fe02;
}

.supp-badge--soldout {
    background: #333;
    color: #fff;
}

/* ---- Favorito ---- */
.supp-card__fav {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    color: #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    z-index: 2;
}

.supp-card__fav:hover {
    background: #fff;
    color: #ff4444;
    transform: scale(1.1);
}

.supp-card__fav.active {
    color: #ff4444;
    background: #fff;
}

/* ---- Body ---- */
.supp-card__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

/* ---- Nome ---- */
.supp-card__name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}

/* ---- Meta (variações resumidas) ---- */
.supp-card__meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: #888;
}

.supp-card__meta i {
    font-size: 0.7rem;
    color: #013c10;
}

.supp-card__sep {
    color: #ccc;
    font-size: 0.6rem;
}

/* ---- Preço ---- */
.supp-card__price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.25rem;
}

.supp-card__price-old {
    font-size: 0.8rem;
    color: #aaa;
    text-decoration: line-through;
}

.supp-card__price-now {
    font-size: 1.2rem;
    font-weight: 800;
    color: #013c10;
}

/* ---- Ações (sempre visíveis) ---- */
.supp-card__actions {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    margin-top: 0.5rem;
}

.supp-card__btn-cart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: #013c10;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
}

.supp-card__btn-cart:hover {
    background: #025a18;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(1, 60, 16, 0.25);
}

.supp-card__btn-cart:active {
    transform: translateY(0);
}

.supp-card__btn-soldout {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: #e9e9e9;
    color: #888;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: default;
}

.supp-card__btn-view {
    width: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
    z-index: 2;
}

.supp-card__btn-view:hover {
    background: #1a1a1a;
    color: #fff;
    transform: translateY(-1px);
}

/* ===================================================
   PAGINAÇÃO
   =================================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-link {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.page-link:hover {
    background: #013c10;
    color: #fff;
    border-color: #013c10;
}

.page-link.active {
    background: #013c10;
    color: #fff;
    border-color: #013c10;
}

/* SEM PRODUTOS */
.no-products {
    text-align: center;
    padding: 4rem 2rem;
}

.no-products-icon {
    font-size: 3.5rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.no-products h3 {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.no-products p {
    color: #999;
    margin-bottom: 1.5rem;
}

/* ===================================================
   RESPONSIVO
   =================================================== */

/* Tablets */
@media (max-width: 1024px) {
    .supp-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
        gap: 1rem !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .supp-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .supp-card {
        border-radius: 12px;
    }

    .supp-card:hover {
        transform: translateY(-3px);
    }

    .supp-card__body {
        padding: 0.75rem;
        gap: 0.35rem;
    }

    .supp-card__name {
        font-size: 0.85rem;
        min-height: 2.3em;
    }

    .supp-card__meta {
        font-size: 0.72rem;
    }

    .supp-card__price-now {
        font-size: 1.05rem;
    }

    .supp-card__price-old {
        font-size: 0.72rem;
    }

    .supp-card__btn-cart {
        padding: 0.55rem 0.5rem;
        font-size: 0.78rem;
        gap: 0.3rem;
    }

    .supp-card__btn-view {
        width: 36px;
        min-width: 36px;
        font-size: 0.78rem;
        border-radius: 8px;
    }

    .supp-card__btn-soldout {
        padding: 0.55rem 0.5rem;
        font-size: 0.78rem;
        gap: 0.3rem;
    }

    .supp-card__fav {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .supp-badge {
        font-size: 0.62rem;
        padding: 0.2rem 0.45rem;
    }

    /* Filtros mobile */
    .products-header {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .products-title h1 {
        font-size: 1.6rem;
    }

    .products-filters {
        flex-direction: column;
        gap: 0.75rem;
    }

    .filters-left, .filters-right {
        flex-direction: column;
        width: 100%;
    }

    .filter-group {
        width: 100%;
    }

    .filter-select, .filter-input {
        width: 100%;
        min-width: auto;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 0.35rem;
    }
}

/* Mobile pequeno */
@media (max-width: 380px) {
    .supp-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }

    .supp-card__body {
        padding: 0.6rem;
        gap: 0.3rem;
    }

    .supp-card__name {
        font-size: 0.78rem;
    }

    .supp-card__meta {
        display: none;
    }

    .supp-card__price-now {
        font-size: 0.95rem;
    }

    .supp-card__actions {
        gap: 0.35rem;
        margin-top: 0.35rem;
    }

    .supp-card__btn-cart span {
        display: none;
    }

    .supp-card__btn-cart {
        padding: 0.5rem;
    }

    .supp-card__btn-view {
        width: 32px;
        min-width: 32px;
    }
}

/* ===================================================
   BUSCA SUGESTÕES
   =================================================== */
.search-suggestions {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #013c10;
}

.search-suggestions h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-suggestions li {
    color: #666;
    margin-bottom: 0.25rem;
    padding-left: 1rem;
    position: relative;
}

.search-suggestions li:before {
    content: "•";
    color: #013c10;
    position: absolute;
    left: 0;
}
