/* Voltek favorites — heart button + "Bəyəndiklərim" page */

/* ===== Heart button overlay on product cards ===== */
.voltek-favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    color: #9aa3ad;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    transition: transform 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    padding: 0;
}

.voltek-favorite-btn:hover {
    background: #fff;
    color: #d62323;
    transform: scale(1.08);
}

.voltek-favorite-btn:active {
    transform: scale(0.95);
}

.voltek-favorite-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(214, 35, 35, 0.25);
}

.voltek-favorite-btn i {
    pointer-events: none;
}

.voltek-favorite-btn i.fas { display: none; }
.voltek-favorite-btn i.far { display: inline-block; }

.voltek-favorite-btn.is-favorited {
    color: #d62323;
    background: #fff;
    box-shadow: 0 2px 8px rgba(214, 35, 35, 0.25);
    animation: voltekHeartPop 0.28s ease;
}

.voltek-favorite-btn.is-favorited i.far { display: none; }
.voltek-favorite-btn.is-favorited i.fas { display: inline-block; }

.voltek-favorite-btn[disabled] {
    opacity: 0.6;
    cursor: default;
}

@keyframes voltekHeartPop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.25); }
    100% { transform: scale(1); }
}

/* Ensure the product card positions heart correctly. */
.product .product-outer,
.product-card .product-outer,
.voltek-favorite-card {
    position: relative;
}

/* Inline variant used next to product titles on the detail page. */
.voltek-favorite-btn--inline {
    position: static;
    margin-left: 10px;
    vertical-align: middle;
    width: 42px;
    height: 42px;
}

/* Card footer variant replaces the old like icon slot. */
li.deff.voltek-favorite-action {
    cursor: pointer;
}

li.deff.voltek-favorite-action p {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voltek-favorite-btn--card-action {
    position: relative;
    width: 100%;
    height: 100%;
    top: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #fff;
    font-size: 18px;
    padding: 0;
    line-height: 1;
}

.voltek-favorite-btn--card-action:hover,
.voltek-favorite-btn--card-action:focus,
.voltek-favorite-btn--card-action.is-favorited {
    background: transparent;
    box-shadow: none;
    color: #d62323;
}

.voltek-favorite-btn--card-action i {
    margin-right: 0;
}

/* ===== Header counter badge ===== */
.voltek-favorites-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.voltek-favorites-nav-link i {
    font-size: 18px;
    line-height: 1;
}

/* Match the cart SVG (.user-side svg = 25x25) so favorites & basket icons
   have identical heights and the gaps between header icons stay uniform. */
.user-side .voltek-favorites-nav-link {
    width: 25px;
    height: 25px;
    line-height: 1;
    vertical-align: middle;
}

.user-side .voltek-favorites-nav-link i {
    font-size: 20px;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

.voltek-favorites-counter {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 10px;
    background: #d62323;
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    font-weight: 700;
    text-align: center;
}

.voltek-favorites-counter.is-empty {
    display: none;
}

/* ===== "Bəyəndiklərim" page ===== */
.voltek-favorites-page {
    padding: 24px 0 60px;
}

.voltek-favorites-header {
    padding: 10px 0 24px;
    border-bottom: 1px solid #eceef1;
    margin-bottom: 24px;
}

.voltek-favorites-title {
    font-size: 28px;
    font-weight: 700;
    color: #253444;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.voltek-favorites-title i {
    color: #d62323;
}

.voltek-favorites-subtitle {
    color: #6b7380;
    margin: 0;
    font-size: 14px;
}

.voltek-favorites-login-link {
    color: #d62323;
    font-weight: 600;
    margin-left: 6px;
    text-decoration: underline;
}

.voltek-favorites-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.voltek-favorite-card {
    position: relative;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    min-width: 0;
    height: auto !important;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.voltek-favorite-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.voltek-favorite-card__link {
    color: inherit;
    text-decoration: none;
    display: block;
}

.voltek-favorite-card__link:hover {
    color: inherit;
    text-decoration: none;
}

.voltek-favorite-card__thumb {
    background: #f7f8fa;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.voltek-favorite-card__thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.voltek-favorite-card__body {
    padding: 12px 14px 16px;
}

.voltek-favorite-card__company {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8c95a2;
    display: block;
    margin-bottom: 4px;
}

.voltek-favorite-card__title {
    font-size: 14px;
    color: #253444;
    margin: 0 0 10px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}

.voltek-favorite-card__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.voltek-favorite-card__price ins {
    font-weight: 700;
    color: #d62323;
    font-size: 15px;
    text-decoration: none;
}

.voltek-favorite-card__price del {
    color: #9aa3ad;
    font-size: 13px;
}

.voltek-favorites-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fafbfc;
    border-radius: 12px;
}

.voltek-favorites-empty i {
    font-size: 56px;
    color: #cfd4da;
    margin-bottom: 16px;
}

.voltek-favorites-empty p {
    color: #6b7380;
    margin: 0 0 18px;
    font-size: 15px;
}

.voltek-favorites-cta {
    display: inline-block;
    background: #d62323;
    color: #fff;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease;
}

.voltek-favorites-cta:hover {
    background: #b41d1d;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 480px) {
    .voltek-favorite-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
        top: 8px;
        right: 8px;
    }

    .voltek-favorites-title {
        font-size: 22px;
    }
}

/* Wishlist page product grid: override global ul.products/li.product theme rules. */
.voltek-favorites-page .woocommerce-breadcrumb {
    margin-bottom: 18px;
}

.voltek-favorites-page ul.products.voltek-favorites-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    align-items: stretch !important;
    justify-content: initial !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.voltek-favorites-page ul.products.voltek-favorites-grid::before,
.voltek-favorites-page ul.products.voltek-favorites-grid::after {
    content: none !important;
    display: none !important;
}

.voltek-favorites-page ul.products.voltek-favorites-grid > li.product.voltek-favorite-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 330px !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(214, 35, 35, 0.12) !important;
    border-radius: 18px !important;
    background: #fff !important;
    overflow: hidden !important;
    box-shadow: 0 12px 34px rgba(37, 52, 68, 0.1) !important;
}

.voltek-favorites-page ul.products.voltek-favorites-grid > li.product.voltek-favorite-card:hover {
    transform: translateY(-4px);
    border-color: rgba(214, 35, 35, 0.28) !important;
    box-shadow: 0 18px 42px rgba(37, 52, 68, 0.16) !important;
}

.voltek-favorites-page .voltek-favorite-card::after {
    display: none !important;
    content: none !important;
}

.voltek-favorites-page .voltek-favorite-card__link {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
}

.voltek-favorites-page .voltek-favorite-card__thumb {
    flex: 0 0 190px !important;
    min-height: 190px !important;
    aspect-ratio: auto !important;
    padding: 24px 18px !important;
    border-radius: 16px !important;
    margin: 14px 14px 0 !important;
    background:
        linear-gradient(145deg, rgba(246, 248, 251, 0.95), rgba(255, 255, 255, 0.75)),
        radial-gradient(circle at 50% 15%, rgba(214, 35, 35, 0.12), transparent 44%) !important;
}

.voltek-favorites-page .voltek-favorite-card__thumb img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 150px !important;
    object-fit: contain !important;
}

.voltek-favorites-page .voltek-favorite-card__body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    padding: 14px 18px 18px !important;
}

.voltek-favorites-page .voltek-favorite-card__company {
    width: fit-content;
    max-width: 100%;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f3f5f8;
    color: #6b7380 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.voltek-favorites-page .voltek-favorite-card__title {
    min-height: 44px !important;
    margin: 10px 0 14px !important;
    color: #1a2330 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
}

.voltek-favorites-page .voltek-favorite-card__price {
    margin-top: auto !important;
}

.voltek-favorites-page .voltek-favorite-card__price ins {
    color: #d62323 !important;
    font-size: 18px !important;
    font-weight: 900 !important;
}

.voltek-favorites-page .voltek-favorite-card__price del {
    color: #9aa3ad !important;
    font-size: 13px !important;
}

.voltek-favorites-page .voltek-favorite-card > .voltek-favorite-btn {
    top: 24px !important;
    right: 24px !important;
    width: 40px !important;
    height: 40px !important;
    background: #fff !important;
    box-shadow: 0 8px 18px rgba(37, 52, 68, 0.14) !important;
}

.voltek-favorites-page .voltek-favorite-card > .new {
    top: 22px !important;
    left: 22px !important;
    right: auto !important;
    z-index: 4 !important;
}

.voltek-favorites-page .voltek-favorite-card > .new img {
    width: 58px !important;
    height: auto !important;
}

@media (min-width: 1200px) {
    .voltek-favorites-page ul.products.voltek-favorites-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    .voltek-favorites-page ul.products.voltek-favorites-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    .voltek-favorites-page ul.products.voltek-favorites-grid > li.product.voltek-favorite-card {
        min-height: 285px !important;
        border-radius: 14px !important;
    }

    .voltek-favorites-page .voltek-favorite-card__thumb {
        flex-basis: 150px !important;
        min-height: 150px !important;
        margin: 10px 10px 0 !important;
        padding: 18px 10px !important;
    }

    .voltek-favorites-page .voltek-favorite-card__thumb img {
        max-height: 118px !important;
    }

    .voltek-favorites-page .voltek-favorite-card__body {
        padding: 12px !important;
    }

    .voltek-favorites-page .voltek-favorite-card__title {
        font-size: 13px !important;
        min-height: 38px !important;
    }
}

@media (max-width: 420px) {
    .voltek-favorites-page ul.products.voltek-favorites-grid {
        grid-template-columns: 1fr !important;
    }
}
