/* Sepet toast + ürün kartları */
.wl-cart-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(16px);
    z-index: 9999;
    min-width: 220px;
    max-width: min(90vw, 360px);
    padding: 12px 16px;
    border-radius: 999px;
    background: #171717;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.wl-cart-toast.is-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.wl-cart-toast.is-error {
    background: #b42318;
}

.wl-add-cart {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.wl-add-cart.is-busy {
    opacity: .65;
    pointer-events: none;
}

.wl-add-cart.is-added {
    background: #0f7a3c !important;
    color: #fff !important;
}

/* Home product hover cart */
.home-product-card {
    position: relative;
}

.home-product-image {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #ede6de;
}

.home-product-image > a {
    display: block;
    width: 100%;
    height: 100%;
}

.home-product-image > a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform .25s ease;
}

.discover-card-media {
    position: relative;
    display: block;
    overflow: hidden;
}

.discover-card-media > a {
    display: block;
}

.discover-card-media > a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-add-cart {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    min-height: 36px;
    border: 0;
    border-radius: 999px;
    background: #171717;
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, background .15s ease;
    cursor: pointer;
}

.home-product-card:hover .home-add-cart,
.home-product-card:focus-within .home-add-cart {
    opacity: 1;
    transform: translateY(0);
}

@media (hover: none) {
    .home-add-cart {
        opacity: 1;
        transform: none;
    }
}

/* Classic grid cards */
.single-product .product-img {
    position: relative;
}

.single-product .wl-card-cart {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 5;
    min-height: 36px;
    border: 0;
    border-radius: 999px;
    background: #171717;
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease;
    cursor: pointer;
}

.single-product:hover .wl-card-cart,
.single-product:focus-within .wl-card-cart {
    opacity: 1;
    transform: translateY(0);
}

@media (hover: none) {
    .single-product .wl-card-cart {
        opacity: 1;
        transform: none;
    }
}

/* Discover cards */
.discover-card-media {
    position: relative;
    display: block;
}

.discover-add-cart {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    min-height: 36px;
    border: 0;
    border-radius: 999px;
    background: #171717;
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease;
    cursor: pointer;
}

.discover-card:hover .discover-add-cart,
.discover-card:focus-within .discover-add-cart {
    opacity: 1;
    transform: translateY(0);
}

@media (hover: none) {
    .discover-add-cart {
        opacity: 1;
        transform: none;
    }
}

/* Modern product detail */
.pd-page {
    background: #f7f4f0;
    color: #171411;
    padding: 28px 0 56px;
    min-height: 70vh;
}

.pd-shell {
    width: min(1120px, calc(100% - 28px));
    margin: 0 auto;
}

.pd-crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 18px;
    font-size: 12px;
    font-weight: 700;
    color: #7a6f64;
}

.pd-crumb a {
    color: #7a6f64 !important;
    text-decoration: none !important;
}

.pd-crumb a:hover {
    color: #171717 !important;
}

.pd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 22px;
    align-items: start;
}

.pd-gallery,
.pd-info,
.pd-panel {
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(30, 24, 18, .07);
}

.pd-gallery {
    padding: 14px;
    position: sticky;
    top: 72px;
}

.pd-main-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    border-radius: 14px;
    background: #ebe4db;
}

.pd-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
}

.pd-thumbs button {
    flex: 0 0 64px;
    width: 64px;
    height: 80px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: #ebe4db;
    cursor: pointer;
}

.pd-thumbs button.is-active {
    border-color: #171717;
}

.pd-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-info {
    padding: 26px;
}

.pd-kicker {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #7a6f64;
}

.pd-info h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
}

.pd-designer {
    margin: 10px 0 0;
    color: #6b6259;
    font-size: 14px;
}

.pd-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 18px 0 14px;
}

.pd-price {
    font-size: 28px;
    font-weight: 800;
}

.pd-price-old {
    color: #9a9087;
    text-decoration: line-through;
    font-size: 15px;
}

.pd-summary {
    margin: 0 0 18px;
    color: #5f564d;
    line-height: 1.55;
    font-size: 14px;
}

.pd-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.pd-sizes span {
    min-width: 42px;
    height: 36px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, .1);
    background: #fff;
    font-size: 12px;
    font-weight: 800;
}

.pd-buy {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.pd-qty {
    display: inline-flex;
    align-items: center;
    height: 44px;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.pd-qty button {
    width: 40px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
}

.pd-qty input {
    width: 48px;
    height: 44px;
    border: 0;
    text-align: center;
    font-weight: 800;
    background: transparent;
}

.pd-cart-btn,
.pd-wish-btn {
    min-height: 44px;
    border-radius: 999px;
    border: 0;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
}

.pd-cart-btn {
    background: #171717;
    color: #fff !important;
    flex: 1 1 180px;
}

.pd-cart-btn:hover {
    background: #2c2620;
    color: #fff !important;
}

.pd-wish-btn {
    background: #fff;
    color: #171717 !important;
    border: 1px solid rgba(0, 0, 0, .1);
}

.pd-meta {
    display: grid;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, .06);
    font-size: 13px;
    color: #6b6259;
}

.pd-meta a {
    color: #171717 !important;
    font-weight: 700;
    text-decoration: none !important;
}

.pd-stock {
    display: inline-flex;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: #d8f3e3;
    color: #0f7a3c;
    font-size: 11px;
    font-weight: 800;
}

.pd-stock.is-out {
    background: #fde2e1;
    color: #b42318;
}

.pd-panel {
    margin-top: 22px;
    padding: 22px;
}

.pd-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.pd-tabs button {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, .08);
    background: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.pd-tabs button.is-active {
    background: #171717;
    color: #fff;
    border-color: #171717;
}

.pd-tab-pane {
    display: none;
    color: #5f564d;
    line-height: 1.6;
    font-size: 14px;
}

.pd-tab-pane.is-active {
    display: block;
}

.pd-related {
    margin-top: 34px;
}

.pd-related h2 {
    margin: 0 0 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
}

.pd-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.pd-related-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: 16px;
    overflow: hidden;
}

.pd-related-card a.media {
    display: block;
    position: relative;
    aspect-ratio: 3/4;
    background: #ebe4db;
}

.pd-related-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-related-card .body {
    padding: 12px;
}

.pd-related-card strong {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.pd-related-card span {
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 900px) {
    .pd-layout,
    .pd-related-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pd-gallery {
        position: static;
    }
}

@media (max-width: 640px) {
    .pd-layout,
    .pd-related-grid {
        grid-template-columns: 1fr;
    }
}
