/* ==========================================================================
   ARO Product Card – Styles (Mockup Design)
   ========================================================================== */

/* ── Wrapper ── */
.aro-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: visible;
    background: transparent;
    color: #1a1a1a;
    font-family: inherit;
}

/* ── Image Area ── */
.aro-product-card__image-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #fdfaf5; /* Hellbeiger Hintergrund laut Entwurf */
    border-radius: 28px;
    margin-bottom: 24px;
}

/* Ratio utilities */
.aro-product-card__image-wrap.uk-ratio-1-1  { aspect-ratio: 1 / 1; }
.aro-product-card__image-wrap.uk-ratio-4-3  { aspect-ratio: 4 / 3; }
.aro-product-card__image-wrap.uk-ratio-3-4  { aspect-ratio: 3 / 4; }
.aro-product-card__image-wrap.uk-ratio-16-9 { aspect-ratio: 16 / 9; }

.aro-product-card__image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.aro-product-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease, transform 0.35s ease;
}

.aro-product-card:hover .aro-product-card__image {
    transform: scale(1.03);
}

/* ── Badges ── */
.aro-product-card__badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
    align-items: flex-start;
}

.aro-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #1a1a1a;
    background: #f4ede3; /* Default beige */
    line-height: 1;
}

.aro-badge--beliebt { background: #eee7df; }
.aro-badge--new { background: #eaf0c8; }
.aro-badge--sale {
    background: #ffb8b8;
    color: #e05a5a;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

/* ── Card Body ── */
.aro-product-card__body {
    display: flex;
    flex-direction: column;
    padding: 0 4px;
}

/* ── Row Base ── */
.aro-product-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* ── Name + Rating Row ── */
.aro-product-card__row--title {
    padding-bottom: 12px;
}

.aro-product-card__name-link {
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-width: 0;
}

.aro-product-card__name {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aro-product-card__rating {
    display: flex;
    align-items: center;
    gap: 3px;
}

.aro-product-card__rating-avg {
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.05em;
}

.aro-product-card__rating-max {
    font-size: 11px;
    opacity: 0.6;
    line-height: 1;
}

.aro-product-card__star {
    color: #c5a059;
    margin-left: 2px;
}

/* ── Divider ── */
.aro-product-card__divider {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin: 0;
}

/* ── Variants + Price Row ── */
.aro-product-card__row--variants {
    padding: 18px 0;
    gap: 10px;
}

.aro-product-card__variants {
    margin-bottom: 0;
}

.aro-product-card__variants {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.aro-variant-btn {
    border: none;
    background: none;
    padding: 0;
    color: var(--uk-text-primary, #ffffff);
    opacity: 0.5;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: opacity 0.18s ease;
    text-transform: uppercase;
}

.aro-variant-btn:hover,
.aro-variant-btn.is-active {
    opacity: 1;
}

.aro-variant-btn.is-active {
    font-weight: 500;
}

/* ── Price ── */
.aro-product-card__price {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.05em;
    display: flex;
    gap: 8px;
    align-items: center;
}

.aro-product-card__price del {
    color: #a0a0a0;
    text-decoration: line-through;
}

.aro-product-card__price ins {
    background: transparent !important;
    color: inherit !important;
    text-decoration: none;
}

/* ── ATC Row ── */
.aro-product-card__row--atc {
    gap: 12px;
    margin-top: 4px;
}

/* ── Wishlist Button ── */
.aro-product-card__wishlist {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: transparent;
    color: #888888;
    cursor: pointer;
    transition: all 0.18s ease;
    padding: 0;
}

.aro-product-card__wishlist:hover {
    border-color: rgba(0, 0, 0, 0.3);
    color: #1a1a1a;
}

.aro-product-card__wishlist.is-active {
    color: #e05a5a;
    border-color: rgba(224, 90, 90, 0.3);
}

.aro-product-card__wishlist.is-active span[uk-icon] svg {
    fill: currentColor;
}

/* ── Add to Cart Button ── */
.aro-product-card__atc {
    /* UIkit Button Klassen erledigen das meiste (border-radius, padding, farbe etc.) */
    border-radius: 50px !important; /* Force pill shape according to mockup */
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.aro-product-card__atc:active {
    transform: scale(0.98);
}

.aro-product-card__atc.is-in-cart {
    background: #e05a5a !important;
    border-color: #e05a5a !important;
    color: #ffffff !important;
}

/* Loading state */
.aro-product-card__atc.loading {
    color: transparent !important;
    position: relative;
}
.aro-product-card__atc.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -8px;
    margin-left: -8px;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: aro-spin 0.6s linear infinite;
}

@keyframes aro-spin {
    to { transform: rotate(360deg); }
}

/* Hide WooCommerce native element */
.aro-product-card__row--atc .added_to_cart {
    display: none !important;
}
