/* =============================================
   Product Card V2 — bordered full card
   ============================================= */

.featured-product.product-card-v2 {
    padding: 0;
    margin-bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 2px;
    overflow: hidden;
    transition: border-color 0.25s ease;
}

.product-card-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -8px;
    margin-right: -8px;
}

.product-card-grid > .featured-product.product-card-v2:not(.featured-product-list),
.product-list #product-list.product-grid--4 > .featured-product.product-card-v2:not(.featured-product-list) {
    flex: 0 0 calc(25% - 16px);
    max-width: calc(25% - 16px);
    margin: 0 8px 24px;
    padding: 0;
}

.product-list #product-list.product-grid--2 .featured-product.product-card-v2.featured-product-list {
    flex: 0 0 calc(50% - 16px) !important;
    max-width: calc(50% - 16px) !important;
    align-items: stretch;
}

.product-list #product-list.product-grid--2 .featured-product.product-card-v2.featured-product-list .product-card-v2__media {
    flex: 0 0 38%;
    max-width: 38%;
    min-height: 0;
    aspect-ratio: 1 / 1;
    align-self: stretch;
}

.product-list #product-list.product-grid--2 .featured-product.product-card-v2.featured-product-list .product-card-v2__media.product-card-v2__media--gallery {
    aspect-ratio: auto;
}

.product-list #product-list.product-grid--2 .featured-product.product-card-v2.featured-product-list .product-card-v2__body {
    border-left: 1px solid #eee;
    padding: 12px 14px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.product-list #product-list.product-grid--2 .featured-product.product-card-v2.featured-product-list .product-card-v2__price {
    margin-bottom: 10px;
}

.product-list #product-list.product-grid--2 .featured-product.product-card-v2.featured-product-list .product-card-v2__actions {
    margin-top: auto;
    padding-top: 8px;
    gap: 8px;
}

.product-list #product-list.product-grid--2 .featured-product.product-card-v2.featured-product-list .product-card-v2__title {
    font-size: 13px;
    -webkit-line-clamp: 3;
}

.product-list #product-list.product-grid--2 .featured-product.product-card-v2.featured-product-list .product-card-v2__cart-btn {
    width: calc(100% + 28px);
    margin: 0 -14px 0;
    padding: 12px 14px;
}

.featured-product.product-card-v2:hover {
    border-color: #ccc;
}

/* ---- Image (no inner gray box) ---- */
.product-card-v2__media {
    position: relative;
    background: #fff;
    margin-bottom: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: none;
}

.product-card-v2__media--gallery {
    aspect-ratio: auto;
    overflow: visible;
}

.product-card-v2__gallery {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.product-card-v2__gallery-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fff;
}

.product-card-v2__gallery-slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
}

.product-card-v2__gallery-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.product-card-v2__gallery-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 0 4px;
    background: #fff;
}

.product-card-v2__gallery-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #d4ccc8;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.product-card-v2__gallery-dot.is-active {
    background: #453326;
    transform: scale(1.15);
}

.product-card-v2__media--gallery .product-card-v2__gallery-slide .product-card-v2__img,
.product-card-v2__media--gallery:hover .product-card-v2__gallery-slide.is-active .product-card-v2__img {
    transform: none;
}

.product-card-v2__media > a:not(.product-card-v2__favorite) {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    background: #fff;
}

.product-card-v2__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #fff;
    padding: 0;
    transition: transform 0.45s ease;
}

.featured-product.product-card-v2:hover .product-card-v2__img {
    transform: scale(1.03);
}

/* ---- Badges ---- */
.product-card-v2__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: #111;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 10px;
    line-height: 1.2;
    white-space: nowrap;
}

.product-card-v2__badge--sold {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 32px);
    text-align: center;
    background: #e4dbd5 !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(69, 51, 38, 0.12);
    box-shadow: none;
    padding: 10px 12px;
    letter-spacing: 0.06em;
    color: #453326;
    transition: background 0.28s ease, color 0.28s ease, letter-spacing 0.28s ease, border-color 0.28s ease, transform 0.28s ease;
}

.featured-product.product-card-v2:hover .product-card-v2__badge--sold {
    background: #fff6f2 !important;
    border-color: rgba(69, 51, 38, 0.18);
    letter-spacing: 0.14em;
    transform: translate(-50%, -50%) scale(1.02);
}

/* ---- Favorite ---- */
.product-card-v2__favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(69, 51, 38, 0.08);
    border-radius: 50%;
    background: rgba(255, 246, 242, 0.92) !important;
    box-shadow: 0 2px 8px rgba(17, 17, 17, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #453326;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    line-height: 1;
    opacity: 1;
}

.product-card-v2__favorite:hover {
    color: #453326;
    opacity: 1;
    text-decoration: none;
    background: #fff !important;
    box-shadow: 0 3px 10px rgba(17, 17, 17, 0.16);
    transform: scale(1.06);
}

.product-card-v2__favorite.active {
    color: #453326;
    background: #fff !important;
    opacity: 1;
}

.product-card-v2__favorite.active .fa-heart-o:before {
    content: "\f004";
}

.product-card-v2__favorite .fa {
    font-size: 15px;
    line-height: 1;
    pointer-events: none;
}

/* ---- Body ---- */
.product-card-v2__body {
    padding: 14px 16px 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;
}

.product-card-v2__brand {
    margin-bottom: 6px;
    line-height: 1;
}

.product-card-v2__brand a,
.product-card-v2__brand .brand {
    display: inline-block;
    font-family: "Mulish", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #888 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.product-card-v2__brand a:hover {
    color: #111 !important;
}

.product-card-v2__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
    font-family: "Mulish", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    min-height: calc(1.4em * 2);
    height: calc(1.4em * 2);
    color: #111;
    text-decoration: none;
}

.product-card-v2__title:hover {
    color: #444;
    text-decoration: none;
}

.product-card-v2__price {
    font-family: "Mulish", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
    margin-bottom: 14px;
}

.product-card-v2__kdv {
    font-size: 12px;
    font-weight: 400;
    color: #777;
}

.product-card-v2__ask {
    color: #111;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: 13px;
    font-weight: 500;
}

/* ---- Actions ---- */
.product-card-v2__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: auto;
    padding-top: 14px;
}

.product-card-v2__cart-btn {
    display: block;
    width: calc(100% + 32px);
    margin: 12px -16px 0;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    font-family: "Mulish", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 13px 16px;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease, letter-spacing 0.22s ease;
}

.product-card-v2__cart-btn:hover {
    background: #fff6f2;
    color: #111;
    border-color: #111;
    letter-spacing: 0.14em;
}

.product-card-v2__cart-btn.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.product-card-v2__cart-btn.active:hover {
    background: #fff6f2;
    color: #111;
    border-color: #111;
}

.product-card-v2__cart-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    letter-spacing: 0.1em;
}

.product-card-v2__cart-btn:disabled:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

.product-card-v2__compare {
    width: 100%;
    border: 1px solid #bbb;
    background: #fff;
    color: #333;
    font-family: "Mulish", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 9px 12px;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    float: none;
    margin: 0;
    border-radius: 0;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.product-card-v2__compare:hover {
    border-color: #111;
    color: #111 !important;
    background: #fff6f2;
}

.product-card-v2__compare.active,
.product-card-v2__compare.compare_btn.active {
    border-color: #111;
    color: #111 !important;
    background: #fff6f2;
}

.product-card-v2__compare.active:hover,
.product-card-v2__compare.compare_btn.active:hover {
    background: #111;
    color: #fff !important;
    border-color: #111;
}

/* Only compare, no cart */
.product-card-v2__actions .product-card-v2__compare:only-child {
    margin-bottom: 16px;
}

/* ---- List view ---- */
.featured-product.product-card-v2.featured-product-list {
    flex-direction: row;
    align-items: stretch;
}

.featured-product.product-card-v2.featured-product-list.align-flax {
    align-items: stretch;
}

.featured-product.product-card-v2.featured-product-list .product-card-v2__media {
    flex: 0 0 200px;
    max-width: 200px;
    aspect-ratio: auto;
    min-height: 200px;
    align-self: stretch;
}

.featured-product.product-card-v2.featured-product-list .product-card-v2__body {
    flex: 1;
    min-width: 0;
    border-top: none;
    border-left: 1px solid #eee;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
}

.featured-product.product-card-v2.featured-product-list .product-card-v2__actions {
    margin-top: auto;
    padding-top: 10px;
}

.featured-product.product-card-v2.featured-product-list .product-card-v2__cart-btn {
    width: calc(100% + 32px);
    margin: 0 -16px 0;
}

/* ---- Responsive ---- */
/* Laptop (~13.3"): 4 sütun. Geniş monitör (≥1800px): 6 sütun. */
@media (min-width: 1800px) {
    .product-card-grid > .featured-product.product-card-v2:not(.featured-product-list),
    .product-list #product-list.product-grid--4 > .featured-product.product-card-v2:not(.featured-product-list) {
        flex: 0 0 calc(16.666667% - 16px);
        max-width: calc(16.666667% - 16px);
    }

    /* Geniş ekranda liste görünümü 2 yerine 3 sütun */
    .product-list #product-list.product-grid--2 .featured-product.product-card-v2.featured-product-list {
        flex: 0 0 calc(33.333% - 16px) !important;
        max-width: calc(33.333% - 16px) !important;
    }
}

@media (max-width: 991px) {
    .product-card-grid > .featured-product.product-card-v2:not(.featured-product-list),
    .product-list #product-list.product-grid--4 > .featured-product.product-card-v2:not(.featured-product-list) {
        flex: 0 0 calc(33.333% - 16px);
        max-width: calc(33.333% - 16px);
    }
}

@media (max-width: 767px) {
    .product-list #product-list.product-grid--4 > .featured-product.product-card-v2:not(.featured-product-list) {
        flex: 0 0 calc(50% - 16px);
        max-width: calc(50% - 16px);
    }

    .product-list #product-list.product-grid--2 .featured-product.product-card-v2.featured-product-list {
        flex: 0 0 calc(100% - 16px) !important;
        max-width: calc(100% - 16px) !important;
    }

    .product-card-grid,
    .home-product-grid {
        align-items: stretch;
    }

    .product-card-grid > .featured-product.product-card-v2,
    .home-product-grid > .featured-product.product-card-v2 {
        height: auto;
        align-self: stretch;
    }

    .product-card-v2__title {
        font-size: 13px;
        line-height: 1.35;
        min-height: calc(1.35em * 2);
        height: calc(1.35em * 2);
    }
}

@media (max-width: 575px) {
    .product-card-grid > .featured-product.product-card-v2:not(.featured-product-list),
    .home-product-grid > .featured-product.product-card-v2 {
        flex: 0 0 calc(50% - 16px);
        max-width: calc(50% - 16px);
    }

    .product-card-v2__body {
        padding: 12px 14px 0;
    }

    .product-card-v2__cart-btn {
        width: calc(100% + 28px);
        margin-left: -14px;
        margin-right: -14px;
    }

    .featured-product.product-card-v2.featured-product-list {
        flex-direction: column;
    }

    .featured-product.product-card-v2.featured-product-list .product-card-v2__media {
        flex: none;
        max-width: 100%;
        width: 100%;
        aspect-ratio: 1 / 1;
    }

    .featured-product.product-card-v2.featured-product-list .product-card-v2__body {
        border-left: none;
        border-top: 1px solid #eee;
        padding: 12px 14px 0;
        padding-bottom: 0;
    }

    .featured-product.product-card-v2.featured-product-list .product-card-v2__cart-btn {
        width: calc(100% + 28px);
        margin: 0 -14px 0;
    }
}
