/* ==========================================================================
   Premium Product Card Component (RedParts Style)
   ========================================================================== */

.product-card.product-card--layout--grid {
    position: relative;
    background: #fff;
    border-radius: 5px;
    border: 1px solid #f0f0f0;
    transition: box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

.product-card.product-card--layout--grid:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-color: #ebebeb;
}

/* --- Badges (Top Left, Skewed) --- */
.product-card__badges-list {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
    align-items: flex-start;
}

.product-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-family: inherit;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    transform: skewX(-15deg);
    line-height: 1;
    border-radius: 2px;
}

/* Straighten the text inside the skewed badge */
.product-card__badge::before {
    content: '';
}

.product-card__badge--sale {
    background-color: #ff3333;
}

.product-card__badge--new {
    background-color: #3377ff;
}

.product-card__badge--hot {
    background-color: #614ba6;
}

/* --- Actions List (Top Right, Fade on Hover) --- */
.product-card__actions-list {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 3;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: opacity 0.2s, visibility 0s 0.2s, transform 0.2s;
}

.product-card.product-card--layout--grid:hover .product-card__actions-list {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition-delay: 0s;
}

.product-card__action {
    background: #ffffff;
    border: 1px solid transparent;
    color: #b3b3b3;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transition: color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    padding: 0;
    position: relative; /* necessario per il tooltip */
}

/* Bottone wishlist: allineato al flusso flex */
.product-card__action--wishlist {
    position: relative;
}


.product-card.product-card--layout--grid:hover .product-card__action {
    border-color: #ccc;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Hover diretto sul singolo pulsante */
.product-card__action:hover {
    color: #fff;
    background: #ff3333;
    border-color: #c00;
    box-shadow: 0 6px 14px rgba(220, 0, 0, 0.3);
    transform: scale(1.05);
}

.product-card__action i {
    font-size: 16px;
}

/* --- Image Container --- */
.product-card__image {
    position: relative;
    padding: 25px 25px 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.image.image--type--product {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modern aspect-ratio approach — replaces the old padding-bottom hack */
.image__body {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    width: 100%;
    position: relative; /* keep for any absolute badges overlaid */
    overflow: hidden;
}

.image__tag {
    /* NOT position:absolute — let flex centering work */
    position: static;
    display: block;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* --- Fit Indicator (Green Check) --- */
.product-card__fit-indicator {
    position: absolute;
    bottom: 0px;
    left: 20px;
    width: 24px;
    height: 24px;
    background-color: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.product-card__fit-indicator svg {
    width: 12px;
    height: 12px;
}

/* --- Info Section --- */
.product-card__info {
    padding: 10px 20px 10px;
}

.product-card__meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
    font-family: inherit;
}

.product-card__name {
    margin-bottom: 8px;
}

.product-card__name h3 {
    font-size: 15px;
    font-weight: 500;
    color: #262626;
    margin: 0;
    line-height: 1.3;
}

.product-card__name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.product-card__name a:hover {
    color: #ff3333;
    /* Primary hover color */
}

/* --- Rating --- */
.product-card__rating {
    display: flex;
    align-items: center;
    font-size: 12px;
}

.product-card__rating-stars {
    display: flex;
    gap: 2px;
}

.product-card__rating-stars i.text-warning {
    color: #ffd333;
    /* Active yellow */
    font-size: 11px;
}

.product-card__rating-stars i.text-muted {
    color: #e2e8f0;
    /* Empty star gray */
    font-size: 11px;
}

.product-card__rating-label {
    color: #999;
    margin-left: 8px;
    font-size: 11px;
}

/* --- Footer --- */
.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 20px;
}

.product-card__prices {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.product-card__price--current {
    font-size: 18px;
    font-weight: 700;
    color: #262626;
}

.product-card__price--new {
    font-size: 18px;
    font-weight: 700;
    color: #262626;
}

.product-card__price--old {
    font-size: 13px;
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
}

.product-card__addtocart-icon {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    color: #b3b3b3;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transition: color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    padding: 0;
}

.product-card__addtocart-icon:hover {
    color: #fff;
    background: #ff3333;
    border-color: #c00;
    box-shadow: 0 6px 14px rgba(220, 0, 0, 0.3);
    transform: scale(1.05);
}

.product-card__addtocart-icon i {
    font-size: 16px;
    color: currentColor;
}

/* ========================================================
   TABBED FEATURED PRODUCTS BLOCK
   ======================================================== */
.catalogue-header--spaced {
    border-radius: var(--radius-lg);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.block-products-tabs {
    margin-bottom: 0rem;
}

.block-products-tabs__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.block-products-tabs__list {
    display: flex;
    gap: 1.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0;
    padding: 0;
    list-style: none;
}

.block-products-tabs__item {
    margin: 0;
    padding: 0;
}

.block-products-tabs__btn {
    color: #6b7280;
    padding-bottom: 0.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    padding-left:0.25rem;
    padding-right:0.25rem;
}

.block-products-tabs__btn:hover {
    color: #374151;
}

.block-products-tabs__btn--active {
    color: #ff3333;
    border-bottom-color: #ff3333;
}

.block-products-tabs__navigation {
    display: flex;
    gap: 0.5rem;
}

.block-products-tabs__arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.block-products-tabs__arrow--prev {
    background: #ff3333;
    color: white;
}

.block-products-tabs__arrow--next {
    background: #e5e7eb;
    color: #6b7280;
}

.block-products-tabs__arrow--next:hover {
    background: #ff3333;
    color: white;
}

.block-products-tabs__right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.block-products-tabs__content {
    position: relative;
}