/* BREADCRUMB */
.single-machines .breadcrumb,
.tax-machine_categories .breadcrumb,
.secondhand_machines-template-default .breadcrumb,
.tax-secondhand_machine_categories .breadcrumb {
    background-image: url('https://kervanmakina.com/wp-content/uploads/2025/09/istockphoto-1255097775-612x612-1-1.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px;
    position: relative;
    overflow: hidden;
}

.breadcrumb-item { z-index: 2; color: #fff; font-size: 24px; position: relative; }
.breadcrumb-item a { color: #fff; text-decoration: none;font-size: 32px; font-family: Poppins; font-weight: bold; }
.breadcrumb-item:not(:last-child)::after { content: '»';position: absolute;right: -12px;top: 29%;color: #fff; font-size: 14px; }
.breadcrumb-item:last-child span { font-weight: 600; }


/* HERO + AÇIKLAMA */
.product-hero-with-desc { display: flex; gap: 40px; max-width: 1240px; margin: 0 auto; padding: 30px 20px; flex-wrap: wrap; }
.product-hero-column, .product-desc-column { flex: 1; min-width: 300px; }
.product-hero-column { max-width: 600px; }
.main-image-wrapper { position: relative; overflow: hidden; border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,0.1); cursor: zoom-in; }
.main-image-wrapper:hover { transform: scale(1.02); }
.main-product-image { width: 100%; height: auto; max-height: 600px; object-fit: cover; display: block; }
.gallery-view-all-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(216,86,88,0.9); color: white; padding: 12px 24px; border-radius: 30px; font-weight: 600; opacity: 0; visibility: hidden; transition: all 0.3s; pointer-events: none; z-index: 10; }
.main-image-wrapper:hover .gallery-view-all-btn { opacity: 1; visibility: visible; pointer-events: auto; }
.thumbnail-gallery { display: flex; gap: 12px; margin-top: 20px; overflow-x: auto; padding: 10px 0; }
.thumb-item { width: 100px; height: 80px; overflow: hidden; border: 2px solid transparent; border-radius: 8px; cursor: pointer; flex-shrink: 0; }
.thumb-item.active, .thumb-item:hover { border-color: #D85658; }
.thumb-img { width: 100%; height: 100%; object-fit: cover; }

/* AÇIKLAMA */
.entry-title { font-family: 'Poppins', sans-serif; font-size: 32px; font-weight: 600; color: #303030; margin: 0 0 16px; }
.product-origin { font-size: 18px; color: #D85658; text-decoration: underline; margin: 0 0 20px; }
.product-summary-content { font-family: 'Inter', sans-serif; font-size: 16px; color: #383838; line-height: 1.2; margin-bottom: 25px; }
.product-summary-content a {display: inline-block; color: #303030; text-decoration: underline;}
.product-link-container { display: flex; gap: 16px; flex-wrap: wrap; }

/* TABLAR */
.product-tabs-wrapper { max-width: 1240px; margin: 40px auto; padding: 0 20px; }
.tab-menu { display: flex; gap: 0; border-bottom: 2px solid #e0e0e0; margin-bottom: 30px; justify-content: center; list-style: none; padding-inline-start: 0; }
.tab-menu li { padding: 14px 32px; cursor: pointer; font-family: 'Poppins', sans-serif; font-weight: 600; color: #555; position: relative; }
.tab-menu li::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 3px; background: #D85658; transition: width 0.3s; }
.tab-menu li.active, .tab-menu li:hover { color: #D85658; }
.tab-menu li.active::after { width: 100%; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.5s; }

/* TEKNİK ÖZELLİKLER */
.tech-specs-container { overflow-x: auto; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.tech-specs-table { width: 100%; border-collapse: collapse; background: #fff; font-family: 'Inter', sans-serif; }
.tech-specs-table th, .tech-specs-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid #f0f0f0; }
.tech-specs-table th { background: #f8f9fa; font-weight: 700; color: #303030; text-transform: uppercase; letter-spacing: 0.5px; }
.tech-specs-table tr:hover { background: #fdf4f4; }

/* FORM */
.contact-form-container { background: linear-gradient(135deg, #D85658 0%, #c13e40 100%); padding: 50px; border-radius: 20px; box-shadow: 0 15px 40px rgba(216,86,88,0.25); position: relative; overflow: hidden; }
.contact-form-container::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 10px, transparent 10px, transparent 20px); animation: shimmer 15s linear infinite; pointer-events: none; }
@keyframes shimmer { 0% { transform: translateX(-50%) translateY(-50%); } 100% { transform: translateX(0) translateY(0); } }
.contact-form-container input:focus ~ label, .contact-form-container input:not(:placeholder-shown) ~ label { top: -10px; left: 12px; font-size: 13px; background: #D85658; padding: 0 8px; color: white; font-weight: 600; }
.contact-form-container input, .contact-form-container textarea { background: rgba(255,255,255,0.12); border: 2px solid rgba(0,0,0,0.4); border-radius: 8px; padding: 14px; color: white; }
.contact-form-container .wpcf7-submit { background: white; color: #D85658; padding: 16px 40px; border-radius: 50px; font-weight: 700; text-transform: uppercase; width: 100%; margin-top: 10px; box-shadow: 0 8px 25px rgba(0,0,0,0.15); }

/* BENZER ÜRÜNLER */
.related-products-section { max-width: 1240px; margin: 60px auto; padding: 0 20px; text-align: center; }
.related-products-section h2 { font-family: 'Poppins', sans-serif; font-size: 28px; margin-bottom: 30px; position: relative; display: inline-block; }
.related-products-section h2::after { content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: #D85658; border-radius: 2px; }
.related-product-box { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 25px rgba(0,0,0,0.08); transition: all 0.4s; height: 100%; display: flex; flex-direction: column; }
.related-product-box:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0,0,0,0.15); }
.related-product-image { position: relative; height: 200px; overflow: hidden; }
.related-product-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.related-product-box:hover .related-product-img { transform: scale(1.08); }
.image-overlay { position: absolute; inset: 0; background: rgba(216,86,88,0.9); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.related-product-box:hover .image-overlay { opacity: 1; }
.view-details-btn { background: white; color: #D85658; padding: 12px 24px; border-radius: 30px; font-weight: 600; text-decoration: none; }
.related-product-title { padding: 20px; font-size: 18px; color: #303030; margin: 0; flex-grow: 1; font-family: 'Poppins', sans-serif; }

/* SWIPER */
.swiper-button-next, .swiper-button-prev { width: 44px; height: 44px; background: white; border-radius: 50%; box-shadow: 0 4px 15px rgba(0,0,0,0.1); color: #D85658; transition: all .3s;}
.swiper-button-next:hover, .swiper-button-prev:hover { background: #D85658 !important; color: white; }


.simple-image-slider .swiper-button-prev:hover.swiper-button-prev:after,
.simple-image-slider .swiper-button-prev:hover.swiper-button-prev:after,
.simple-image-slider .swiper-rtl .swiper-button-next:after,
.simple-image-slider .swiper-button-next:hover.swiper-button-prev:after,
.simple-image-slider .swiper-button-next:hover.swiper-button-next:after,
.simple-image-slider .swiper-rtl .swiper-button-prev:after {
    background: #D85658;
        color: white;
}

.simple-image-slider .swiper-button-next:hover  .swiper-button-next:after,
.simple-image-slider .swiper-button-next:hover .swiper-rtl .swiper-button-prev:after { background: #D85658;
color: wihte; }

/* GİRİŞ ANİMASYONU */
.single-machines .site-main > * { opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s ease forwards; }
.product-hero-with-desc { animation-delay: 0.2s; }
.product-tabs-wrapper { animation-delay: 0.4s; }
.related-products-section { animation-delay: 0.6s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }


.thumbnail-swiper-container {
    margin-top: 20px;
    padding: 10px 40px;
    position: relative;
    overflow: hidden;
}

.thumbnail-swiper-container .swiper-slide {
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}


.thumbnail-swiper-container .swiper-slide.swiper-slide-active {
    border-color: #D85658;
    opacity: 1;
    transform: scale(1.05);
}

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

.thumb-next, .thumb-prev {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: #D85658;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.thumb-next:after, .thumb-prev:after {
    font-size: 14px;
}

.machines-template-default .swiper-button-next:after, .machines-template-default .swiper-rtl .swiper-button-prev:after,
.machines-template-default .swiper-button-prev:after, .machines-template-default .swiper-rtl .swiper-button-next:after,
.secondhand_machines-template-default .swiper-button-prev:after, .secondhand_machines-template-default .swiper-rtl .swiper-button-next:after,
.secondhand_machines-template-default .swiper-button-next:after,.secondhand_machines-template-default .swiper-rtl .swiper-button-prev:after {
    font-size: 14px;
    font-weight: bold;
    display: flex;
}

.machines-template-default h1.entry-title,
.secondhand_machines-template-default h1.entry-title{
    display: flex;
    width: 100%;
    justify-content: center;
}

.swiper-related-products {
    overflow: hidden;
    position: relative;
    padding: 40px 20px;
}

.machines-template-default .swiper-button-prev,
.machines-template-default .swiper-button-next,
.secondhand_machines-template-default .swiper-button-next,
.secondhand_machines-template-default .swiper-button-prev  {
    background: white;
    border-radius: 50%;
    padding: 22px;
    bottom: 20% !important;
    top: unset !important;
    width: 20px;
    height: 20px;
    padding: 12px !important;
}

.machines-template-default .swiper-related-products  .swiper-button-prev,
.machines-template-default .swiper-related-products  .swiper-button-next {
    bottom: 50% !important;
}

.breadcrumb-item-container {
    display: flex;
    gap: 14px;
    align-items: center;
}

.breadcrumb-item a {
    transition: color .3s ease;
}

/* Alt çizgi (başlangıçta görünmez) */
.breadcrumb-item a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    /* başlangıç genişliği */
    height: 2px;
    background-color: white;
    /* çizgi rengi */
    transition: width .3s ease;
    /* genişlik animasyonu */
}

/* Hover: çizgi sağa doğru kayar */
.breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-item a:hover::after {
    width: 100%;
    /* tam genişlik */
}

.product-link-container .post-card-button {
    width: calc(50% - 15px);
}

.product-link-container .contact-button-wrapper {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    width: 100%;
}

.whatsapp-btn .button {
    background: #25D366;
}

.product-link-container .whatsapp-btn {
    width: 100%;
    order: -1;
}

.machine-situtaion {
    padding: 8px 30px;
    font-size: 30px;
    font-weight: bold;
    position: absolute;
    top: 19px;
    left: -20px;
    background: #D85658;
    color: white;
    rotate: -45deg;
}

.machine-situtaion p {
    margin: 0;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 16px 0;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-price::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 5px;
    height: 100%;
    background: #007bff;
    border-radius: 12px 0 0 12px;
    transition: width 0.3s ease;
}

.product-price:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.15);
    border-color: #007bff;
}

.product-price:hover::before {
    width: 8px;
}

.product-price strong {
    color: #495057;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .product-hero-with-desc { flex-direction: column; }
    .product-desc-column { margin-top: 30px; text-align: center; }
    .entry-title, .product-origin { text-align: center; }
    .product-link-container { justify-content: center; }
}

@media (max-width: 1024px) {
    .single-machines .breadcrumb,
    .tax-machine_categories .breadcrumb,
    .secondhand_machines-template-default .breadcrumb,
    .tax-secondhand_machine_categories .breadcrumb {
        padding: 60px 20px;
    }

    .breadcrumb-item {
        font-size: 20px;
    }

    .product-hero-column {
        flex: unset;
        width: 100%;
        max-width: unset;
    }

        .product-link-container .contact-button-wrapper {
            gap: 12px
        }

    .machines-template-default h1.entry-title,
    .secondhand_machines-template-default h1.entry-title {
        font-size: 28px;
    }

        .tech-specs-table th,
        .tech-specs-table td {
            padding: 6px;
            text-align: left;
            border-bottom: 1px solid #f0f0f0;
        }

    .single-machines .breadcrumb .breadcrumb-item:last-child {
        display: none;
    }
}

@media (max-width: 768px) {
    .product-link-container .post-card-button {
            width: calc(100%);
        }
	
	   .product-price {
        font-size: 1.25rem;
        padding: 8px 12px;
        border-radius: 10px;
    }

    .tab-menu li {
        font-size: 16px;
        padding: 8px;
    }

    .tab-menu {
        justify-content: start;
    }
}