/* ============================================================
   urun.css – Ürün Detay Sayfası Stilleri
   ============================================================ */

:root {
    --pdp-bg: #fff;
    --pdp-border: #f0f0f0;
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    background: #fdfaf7;
    border-bottom: 1px solid var(--pdp-border);
    font-size: 0.85rem;
    color: var(--gray);
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb i {
    font-size: 0.7rem;
    opacity: 0.5;
}

.breadcrumb span {
    color: var(--text-dark);
    font-weight: 500;
}

/* PDP Grid */
.product-detail-section {
    padding: 40px 0 60px;
    background: var(--pdp-bg);
}

.pdp-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Gallery */
.pdp-gallery {
    position: sticky;
    top: 100px;
}

.pdp-main-img-wrap {
    background: #fdfdfd;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pdp-border);
}

.pdp-main-img-wrap img {
    width: 100%;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.pdp-thumbs {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.pdp-thumb-btn {
    border: 1px solid var(--pdp-border);
    background: #fff;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--trans);
}

.pdp-thumb-btn img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}

.pdp-thumb-btn:hover {
    border-color: var(--primary);
}

.pdp-thumb-btn.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(92, 61, 34, 0.15);
}

/* Info */
.pdp-info {
    display: flex;
    flex-direction: column;
}

.pdp-header h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--primary-dark);
    line-height: 1.2;
}

.pdp-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.pdp-price-box {
    margin-bottom: 30px;
    padding: 20px;
    background: #fdf8f4;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.pdp-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.pdp-tax {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 5px;
}

.pdp-delivery-info {
    margin-bottom: 30px;
    padding: 15px;
    border: 1px dashed var(--primary-light);
    border-radius: 12px;
}

.pdi-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.pdi-item i {
    font-size: 1.4rem;
    color: var(--primary);
}

.pdi-item strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.pdi-item p {
    font-size: 0.85rem;
    color: var(--gray);
    margin: 0;
}

/* Form */
.pdp-qty-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.qty-ctrl {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--pdp-border);
    border-radius: 30px;
    overflow: hidden;
    background: #fff;
}

.qty-ctrl button {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.qty-ctrl button:hover {
    background: #f5f5f5;
}

.qty-ctrl input {
    width: 50px;
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
}

/* Hide arrows */
.qty-ctrl input::-webkit-inner-spin-button {
    display: none;
}

.pdp-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.btn-wa-pdp {
    background: #25d366;
    color: #fff;
    border: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s;
}

.btn-wa-pdp:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.pdp-description {
    padding-top: 30px;
    border-top: 1px solid var(--pdp-border);
}

.pdp-description h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.pdp-description p {
    line-height: 1.6;
    color: var(--text-sm);
    font-size: 0.95rem;
}

.pdp-tags {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pdp-tag-item {
    font-size: 0.8rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pdp-tag-item i {
    color: #2ecc71;
}

/* Similar Products */
.similar-products {
    padding: 60px 0;
    background: #fdfaf7;
}

/* Responsive PDP */
@media (max-width: 992px) {
    .pdp-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .pdp-info {
        position: static;
    }

    .pdp-header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .pdp-actions {
        flex-direction: column;
    }

    .pdp-thumb-btn img {
        height: 74px;
    }

    .qty-ctrl {
        width: 100%;
        justify-content: space-between;
    }

    .qty-ctrl input {
        flex: 1;
    }
}

/* =====================================================
   ✨ Sticky Mobil Sipariş Barı
   ===================================================== */
.pdp-sticky-bar {
    display: none;
    /* JS ile açılır */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 500;
    background: var(--white);
    border-top: 1px solid var(--pdp-border);
    padding: 12px 16px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
    animation: slideUpBar 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@keyframes slideUpBar {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pdp-sticky-bar.visible {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sticky-bar-info {
    flex: 1;
    min-width: 0;
}

.sticky-bar-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-bar-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
}

.sticky-bar-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.sticky-bar-wa {
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.sticky-bar-wa:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.sticky-bar-cart {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.sticky-bar-cart:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: scale(1.04);
}

.sticky-bar-cart:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

/* Sadece mobilde göster */
@media (min-width: 993px) {
    .pdp-sticky-bar {
        display: none !important;
    }
}

/* Sticky bar açıkken sayfanın altına boşluk bırak */
body.sticky-bar-active .product-detail-section {
    padding-bottom: 100px;
}

/* =====================================================
   ✨ PDP Görsel Animasyonu ve Mikro Efektler
   ===================================================== */
.pdp-main-img-wrap img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pdp-main-img-wrap:hover img {
    transform: scale(1.03);
}

/* Fiyat kutusu parlama efekti */
.pdp-price-box {
    transition: box-shadow 0.3s ease;
}

.pdp-price-box:hover {
    box-shadow: 0 4px 20px rgba(139, 94, 60, 0.12);
}

/* Teslimat kutusu hover */
.pdp-delivery-info {
    transition: border-color 0.3s ease, background 0.3s ease;
}

.pdp-delivery-info:hover {
    border-color: var(--primary);
    background: #fdf5ee;
}

/* WA Butonu animasyonu */
.btn-wa-pdp {
    position: relative;
    overflow: hidden;
}

.btn-wa-pdp::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn-wa-pdp:hover::after {
    transform: translateX(100%);
}

/* Sepete Ekle butonu */
#addToCartBtn {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.25s ease !important;
}

#addToCartBtn:hover:not(:disabled) {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(139, 94, 60, 0.35) !important;
}

#addToCartBtn:active:not(:disabled) {
    transform: scale(0.97) !important;
}
