/* =========================================================
   iCenter unified product card
   One visual template for catalog, homepage tabs, collections,
   recommendations and other product-list components.
   ========================================================= */

.icenter-product-card {
    --ic-card-bg: #f5f5f7;
    --ic-card-bg-hover: #f7f7f9;
    --ic-card-text: #1d1d1f;
    --ic-card-muted: #86868b;
    --ic-card-accent: #d2232a;
    --ic-card-accent-hover: #bb1f25;
    --ic-card-radius: 24px;

    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    height: 440px;
    overflow: hidden;
    border: 0;
    border-radius: var(--ic-card-radius);
    background: var(--ic-card-bg);
    color: var(--ic-card-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    box-shadow: none;
    transition:
        background-color .25s ease,
        box-shadow .25s ease,
        transform .25s cubic-bezier(.2, .6, .2, 1);
}

.icenter-product-card:hover {
    background: var(--ic-card-bg-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .055);
    transform: translateY(-1px);
}

/* ---------- badges ---------- */

.icenter-product-card__badges {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 62px;
    z-index: 6;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    pointer-events: none;
}

.icenter-product-card__badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 4px 7px;
    border-radius: 5px;
    background: rgba(255, 255, 255, .9);
    color: #515154;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .025);
}

.icenter-product-card__badge--sale {
    background: #f5a623;
    color: #fff;
    font-weight: 700;
}

.icenter-product-card__badge--green,
.icenter-product-card__badge--rustore,
.icenter-product-card__badge--no-rustore {
    background: #e8f7ef;
    color: #27865d;
}

.icenter-product-card__badge--new,
.icenter-product-card__badge--orange {
    background: #fff0e8;
    color: #d65f24;
}

/* ---------- quick actions ---------- */

.icenter-product-card__quick-actions {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 7;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    pointer-events: none;
    flex-direction: column-reverse;
}

.icenter-product-card__quick-actions > * {
    pointer-events: auto;
}

.icenter-product-card__quick-actions .icenter-product-card__wishlist.like_icons {
    position: static !important;
    top: auto !important;
    right: auto !important;
    z-index: auto !important;
    flex: 0 0 36px;
    width: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.icenter-product-card__quick-actions .icenter-product-card__wishlist .wish_item_button,
.icenter-product-card__quick-actions .icenter-product-card__wishlist .item-action {
    width: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.icenter-product-card__quick-action,
.icenter-product-card__wishlist-button {
    -webkit-appearance: none;
    appearance: none;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, .94) !important;
    color: #6e6e73 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .07) !important;
    cursor: pointer !important;
    opacity: 1 !important;
    visibility: visible !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition:
        color .18s ease,
        background-color .18s ease,
        transform .15s ease,
        box-shadow .18s ease !important;
}

.icenter-product-card__quick-action:hover,
.icenter-product-card__wishlist-button:hover {
    color: #1d1d1f !important;
    background: #fff !important;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .11) !important;
    transform: scale(1.04);
}

.icenter-product-card__quick-action:active,
.icenter-product-card__wishlist-button:active {
    transform: scale(.96);
}

.icenter-product-card__quick-action:focus-visible,
.icenter-product-card__wishlist-button:focus-visible {
    outline: 2px solid #0071e3 !important;
    outline-offset: 2px;
}

.icenter-product-card__quick-action svg,
.icenter-product-card__wishlist-button svg {
    display: block;
    width: 18px;
    height: 18px;
    overflow: visible;
}

.icenter-product-card__one-click svg path,
.icenter-product-card__wishlist-button svg path {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.55 !important;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icenter-product-card__one-click svg .icenter-product-card__one-click-bolt {
    fill: currentColor !important;
    stroke: none !important;
}

.icenter-product-card__wishlist-button.added,
.icenter-product-card__wishlist-button.is-active,
.icenter-product-card__wishlist-button[data-state="active"] {
    background: #fff !important;
    color: #d2232a !important;
}

.icenter-product-card__wishlist-button.added svg path,
.icenter-product-card__wishlist-button.is-active svg path,
.icenter-product-card__wishlist-button[data-state="active"] svg path {
    fill: currentColor !important;
}

/* ---------- image / Apple-like gallery ---------- */

.icenter-product-card__gallery {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    touch-action: pan-y;
}

.icenter-product-card__image-link {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    padding: 22px 22px 0;
    color: inherit !important;
    text-decoration: none !important;
}

.icenter-product-card__image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 218px;
    min-height: 218px;
    overflow: hidden;
}

.icenter-product-card__image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: contain;
    object-position: center;
    mix-blend-mode: multiply;
    transition:
        transform .35s cubic-bezier(.2, .6, .2, 1),
        opacity .18s ease;
}

.icenter-product-card:hover .icenter-product-card__image {
    transform: scale(1.018);
}

.icenter-product-card__gallery.is-switching .icenter-product-card__image {
    opacity: .42;
    transform: scale(.992);
}

.icenter-product-card__gallery-arrow {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    top: 50%;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(224, 224, 229, .88);
    color: #515154;
    box-shadow: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-50%) scale(.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition:
        background-color .18s ease,
        color .18s ease,
        transform .16s ease,
        opacity .18s ease,
        visibility 0s linear .18s;
}

/* Apple-like behaviour: gallery controls appear only while the pointer is over
   the image area. focus-within keeps keyboard navigation accessible. */
.icenter-product-card__gallery:hover .icenter-product-card__gallery-arrow,
.icenter-product-card__gallery:focus-within .icenter-product-card__gallery-arrow {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
    transition-delay: 0s;
}

.icenter-product-card__gallery-arrow--prev {
    left: 14px;
}

.icenter-product-card__gallery-arrow--next {
    right: 14px;
}

.icenter-product-card__gallery-arrow:hover {
    background: rgba(210, 210, 215, .96);
    color: #1d1d1f;
    transform: translateY(-50%) scale(1.04);
}

.icenter-product-card__gallery-arrow:active {
    transform: translateY(-50%) scale(.96);
}

.icenter-product-card__gallery-arrow:focus-visible {
    outline: 2px solid #0071e3;
    outline-offset: 2px;
}

.icenter-product-card__gallery-arrow[hidden] {
    display: none !important;
}

.icenter-product-card__gallery-arrow svg {
    display: block;
    width: 19px;
    height: 19px;
}

.icenter-product-card__gallery-arrow svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Apple-like SKU/color dots ---------- */

.icenter-product-card__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 18px;
    margin: 2px 18px 0;
}

.icenter-product-card__dot,
.icenter-product-card__dot-more {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 10px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    text-decoration: none !important;
    cursor: pointer;
    transition:
        transform .16s ease,
        box-shadow .16s ease,
        opacity .16s ease;
}

.icenter-product-card__dot {
    border: 1px solid rgba(0, 0, 0, .14);
    background: var(--icenter-card-dot, #d2d2d7);
    box-shadow: 0 0 0 2px transparent;
}

.icenter-product-card__dot:hover,
.icenter-product-card__dot-more:hover {
    transform: scale(1.16);
}

.icenter-product-card__dot.is-active {
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #86868b;
}

.icenter-product-card__dot.is-unavailable {
    opacity: .48;
}

.icenter-product-card__dot:focus-visible,
.icenter-product-card__dot-more:focus-visible {
    outline: 2px solid #0071e3;
    outline-offset: 3px;
}

.icenter-product-card__dot-more {
    width: 14px;
    height: 14px;
    border: 1px solid rgba(0, 0, 0, .08);
    background: #fff;
    color: #6e6e73 !important;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

/* ---------- content ---------- */

.icenter-product-card__info {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    padding: 18px;
}

.icenter-product-card__new-label {
    min-height: 16px;
    margin: 0 0 5px;
    color: #bf4800;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
}

.icenter-product-card__name {
    display: -webkit-box;
    overflow: hidden;
    min-height: 38px;
    color: var(--ic-card-text) !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -.01em;
    text-decoration: none !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.icenter-product-card__name:hover {
    color: #000 !important;
}

.icenter-product-card__bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
}

.icenter-product-card__prices {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 2px;
    min-height: 37px;
}

.icenter-product-card__old-price {
    order: 1;
    color: var(--ic-card-muted);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: line-through;
    white-space: nowrap;
}

.icenter-product-card__price {
    order: 2;
    color: var(--ic-card-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
    white-space: nowrap;
}

/* ---------- CTA ---------- */

.icenter-product-card__buy-block {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

.icenter-product-card__oneclick-cart-data {
    display: none !important;
}

.icenter-product-card__cart-button,
.icenter-product-card__secondary-button,
.icenter-product-card__request-button {
    -webkit-appearance: none;
    appearance: none;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 36px;
    padding: 8px 15px;
    border-radius: 999px;
    font-family: inherit !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition:
        background-color .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .15s ease,
        opacity .18s ease;
}

.icenter-product-card__cart-button {
    border: 0;
    background: var(--ic-card-accent);
    color: #fff !important;
}

.icenter-product-card__cart-button:hover {
    background: var(--ic-card-accent-hover);
    color: #fff !important;
}

.icenter-product-card__cart-button.is-loading {
    pointer-events: none;
    opacity: .68;
}

.icenter-product-card__cart-button.is-added {
    background: #1d1d1f;
    color: #fff !important;
}

.icenter-product-card__secondary-button {
    border: 0;
    background: #e8e8ed;
    color: #1d1d1f !important;
}

.icenter-product-card__secondary-button:hover {
    background: #dedee3;
    color: #1d1d1f !important;
}

.icenter-product-card__request-button {
    border: 1px solid rgba(210, 35, 42, .5);
    background: transparent;
    color: var(--ic-card-accent) !important;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.icenter-product-card__request-button:hover {
    border-color: var(--ic-card-accent);
    background: rgba(210, 35, 42, .04);
    color: var(--ic-card-accent) !important;
}


/* Native Aspro request/order action. The generated HTML keeps Aspro's own
   popup/form data attributes, while the unified card owns its appearance. */
.icenter-product-card__request-native,
.icenter-product-card__request-native .button_block,
.icenter-product-card__request-native .counter_wrapp {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.icenter-product-card__request-native .counter_block,
.icenter-product-card__request-native .counter_wrapp > .counter_block {
    display: none !important;
}

.icenter-product-card__request-native .btn,
.icenter-product-card__request-native a.btn,
.icenter-product-card__request-native button.btn {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 8px 15px !important;
    border: 1.5px solid var(--ic-card-accent) !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: var(--ic-card-accent) !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: background-color .18s ease, transform .15s ease, opacity .18s ease !important;
}

.icenter-product-card__request-native .btn:hover,
.icenter-product-card__request-native a.btn:hover,
.icenter-product-card__request-native button.btn:hover {
    border-color: var(--ic-card-accent-hover) !important;
    background: rgba(210, 35, 42, .06) !important;
    color: var(--ic-card-accent-hover) !important;
}

.icenter-product-card__request-native .btn .svg,
.icenter-product-card__request-native .btn svg,
.icenter-product-card__request-native .btn::after,
.icenter-product-card__request-native .btn::before {
    display: none !important;
}

.icenter-product-card__cart-button:active,
.icenter-product-card__secondary-button:active,
.icenter-product-card__request-button:active {
    transform: scale(.985);
}

.icenter-product-card__cart-button:focus-visible,
.icenter-product-card__secondary-button:focus-visible,
.icenter-product-card__request-button:focus-visible,
.icenter-product-card__name:focus-visible,
.icenter-product-card__image-link:focus-visible {
    outline: 2px solid #0071e3;
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .icenter-product-card {
        height: 410px;
        border-radius: 20px;
    }

    .icenter-product-card__badges {
        top: 12px;
        left: 12px;
        right: 54px;
    }

    .icenter-product-card__quick-actions {
        top: 10px;
        right: 10px;
        gap: 6px;
    }

    .icenter-product-card__image-link {
        padding: 18px 18px 0;
    }

    .icenter-product-card__image-wrap {
        height: 206px;
        min-height: 206px;
    }

    .icenter-product-card__info {
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .icenter-product-card,
    .icenter-product-card__image,
    .icenter-product-card__quick-action,
    .icenter-product-card__wishlist-button,
    .icenter-product-card__cart-button,
    .icenter-product-card__secondary-button,
    .icenter-product-card__request-button {
        transition: none !important;
    }
}


@media (max-width: 767px) {
    .icenter-product-card__gallery-arrow {
        width: 32px;
        height: 32px;
    }

    .icenter-product-card__gallery-arrow--prev {
        left: 10px;
    }

    .icenter-product-card__gallery-arrow--next {
        right: 10px;
    }
}
