/* ============================================
   Product Card Styles — Nike Reference
   SINGLE SOURCE OF TRUTH for all card styles
   Used by: shortcode cards + WooCommerce loop
   ============================================ */

/* ============================================
   Grid
   ============================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: var(--spacing-xl);
}

/* ============================================
   Card Container
   ============================================ */
.product-card {
    background-color: transparent;
    border: none;
    border-radius: 0;
    overflow: hidden;
    transition: opacity 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: none;
}

.product-card:hover {
    opacity: 0.88;
    transform: none;
    box-shadow: none;
}

/* ============================================
   Image
   ============================================ */
.card-image {
    position: relative;
    padding-top: 125%;
    background-color: #f5f5f5;
    overflow: hidden;
    border-radius: 8px;
}

.card-image a img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    margin: 0 !important;
    transition: transform 0.5s ease;
}

.product-card:hover .card-image a img {
    transform: scale(1.03) !important;
}

/* Category Tag — overlay top-left */
.product-category-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    color: white;
    font-family: 'Archivo Narrow', var(--font-heading), sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    z-index: 2;
}

/* Wishlist Icon — top-right */
.wishlist-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.wishlist-icon:hover {
    color: #111;
    background-color: #fff;
}

/* ============================================
   Card Content — Left-aligned, Compact
   ============================================ */
.card-content {
    padding: 10px 0 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    text-align: left;
    width: 100%;
}

/* Personalize Link — green, above title */
.card-personalize {
    font-family: 'Archivo Narrow', var(--font-heading), sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #00875a;
    text-decoration: none;
    margin-bottom: 2px;
    display: inline-block;
    transition: color 0.2s ease;
}

.card-personalize:hover {
    color: #006644;
    text-decoration: underline;
}

/* Card Title */
.card-title {
    font-size: 15px;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    text-align: left;
    width: 100%;
}

.card-title a {
    color: #111111;
    font-weight: 700;
    text-decoration: none;
    font-family: 'Archivo Narrow', var(--font-heading), sans-serif;
    letter-spacing: -0.03em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.card-title a:hover {
    color: #111;
    text-decoration: underline;
}

/* Category Label — gray, below title */
.card-category {
    font-family: 'Archivo Narrow', var(--font-heading), sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #8e8e8e;
    margin: 1px 0 0;
    line-height: 1.3;
}

/* ============================================
   Price — Bold + "no Pix" + Sale styling
   ============================================ */
.card-price-subtle,
.price-with-pix {
    font-family: 'Archivo Narrow', var(--font-heading), sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    text-align: left;
    line-height: 1.3;
    margin: 4px 0 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
}

/* Sale price — bold black */
.pix-sale-price {
    font-weight: 700;
    font-size: 16px;
    color: #000000;
}

.pix-sale-price .woocommerce-Price-amount {
    color: #000000;
    font-weight: 700;
    font-size: 16px;
}

/* "no Pix" label */
.pix-label {
    font-weight: 500;
    font-size: 14px;
    color: #000000;
}

/* Original price — gray, strikethrough */
.pix-original-price {
    font-size: 14px;
    font-weight: 400;
    color: #8e8e8e;
}

.pix-original-price del {
    color: #8e8e8e;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.pix-original-price .woocommerce-Price-amount {
    color: #8e8e8e;
    font-weight: 400;
    font-size: 14px;
}

/* Discount badge — orange */
.pix-discount {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background-color: #eb8534;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

/* General price amounts */
.card-price-subtle .woocommerce-Price-amount,
.price-with-pix .woocommerce-Price-amount {
    color: #000000;
    font-weight: 700;
    font-size: 16px;
}

/* Override for original price inside price wrapper */
.card-price-subtle .pix-original-price .woocommerce-Price-amount,
.price-with-pix .pix-original-price .woocommerce-Price-amount {
    color: #8e8e8e !important;
    font-weight: 400;
    font-size: 14px;
}

/* del/ins resets */
.card-price-subtle del,
.price-with-pix del {
    color: #8e8e8e;
    font-size: 14px;
    font-weight: 400;
    text-decoration: line-through;
}

.card-price-subtle ins,
.price-with-pix ins {
    text-decoration: none;
    color: #000000;
    font-weight: 700;
}

/* CTA Link — "Ver detalhes" */
.card-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Archivo Narrow', var(--font-heading), sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #757575;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 6px;
    transition: all 0.2s ease;
}

.card-cta svg {
    transition: transform 0.2s ease;
}

.card-cta:hover {
    color: #111;
}

.card-cta:hover svg {
    transform: translateX(3px);
}

/* Legacy hide */
.card-price {
    display: none;
}

/* ============================================
   Tag Colors
   ============================================ */
.product-category-tag.tag-destaque {
    background-color: #eb8534 !important;
}

.product-category-tag.tag-sublimacao-total {
    background-color: #0a192f !important;
}

.product-category-tag.tag-personalizadas {
    background-color: #5b34a5 !important;
}

.product-category-tag.tag-novidade,
.product-category-tag.tag-lancamento {
    background-color: #22a94e !important;
}

.product-category-tag.tag-promocao,
.product-category-tag.tag-oferta {
    background-color: #dc3545 !important;
}

/* ============================================
   Shortcode Grid Responsive
   ============================================ */
@media (min-width: 1024px) {
    .products-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1023px) and (min-width: 769px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .card-content {
        padding: 8px 0 0;
    }

    .card-title {
        font-size: 13px;
    }

    .card-title a {
        letter-spacing: -0.02em;
    }

    .card-personalize {
        font-size: 12px;
    }

    .card-category {
        font-size: 12px;
    }

    .card-price-subtle,
    .price-with-pix {
        font-size: 14px;
    }

    .pix-sale-price,
    .pix-sale-price .woocommerce-Price-amount {
        font-size: 14px;
    }

    .pix-original-price,
    .pix-original-price .woocommerce-Price-amount,
    .pix-original-price del {
        font-size: 12px;
    }

    .pix-label {
        font-size: 12px;
    }

    .pix-discount {
        font-size: 11px;
        padding: 1px 6px;
    }

    .card-cta {
        font-size: 12px;
    }
}