/* ===================================
   PRODUCT DETAIL PAGE - TÜREV MEDIKAL
   Modern Design System
   =================================== */

/* Hero background image for product pages (default) */
.page-hero.product-hero::before {
    background-image: url('../images/categories-hero-main.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.28;
}

.page-hero.categories-hero::before {
    background-image: url('../images/categories-hero-main.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.28;
}

/* Per-product hero images */
.page-hero.product-hero.beslenme-kateteri-hero::before { background-image: url('../images/products/beslenme-kateteri-hero.jpg'); }
.page-hero.product-hero.nazogastrik-kateter-hero::before { background-image: url('../images/products/nazogastrik-kateter-hero.jpg'); }
.page-hero.product-hero.rektal-kateter-hero::before { background-image: url('../images/products/rektal-kateter-hero.jpg'); }
.page-hero.product-hero.funnel-konnektor-hero::before { background-image: url('../images/products/funnel-konnektor-hero.jpg'); }
.page-hero.product-hero.kapakli-konnektor-hero::before { background-image: url('../images/products/kapakli-konnektor-hero.jpg'); }
.page-hero.product-hero.nelaton-kateter-hero::before { background-image: url('../images/products/nelaton-kateter-hero.jpg'); }
.page-hero.product-hero.funnel-konnektor-uroloji-hero::before { background-image: url('../images/products/funnel-konnektor-uroloji-hero.jpg'); }
.page-hero.product-hero.aspirasyon-kateteri-hero::before { background-image: url('../images/products/aspirasyon-kateteri-hero.jpg'); }
.page-hero.product-hero.funnel-konnektor-trakeal-hero::before { background-image: url('../images/products/funnel-konnektor-trakeal-hero.jpg'); }
.page-hero.product-hero.pvc-hortumlar-hero::before { background-image: url('../images/products/pvc-hortumlar-hero.jpg'); }
.page-hero.product-hero.aspirasyon-baglanti-hortumu-hero::before { background-image: url('../images/products/aspirasyon-baglanti-hortumu-hero.jpg'); }
.page-hero.product-hero.yankauer-aspirasyon-seti-hero::before { background-image: url('../images/products/yankauer-aspirasyon-seti-hero.jpg'); }
.page-hero.product-hero.yankauer-aspirasyon-ucu-hero::before { background-image: url('../images/products/yankauer-aspirasyon-ucu-hero.jpg'); }
.page-hero.product-hero.iv-kanul-hero::before { background-image: url('../images/products/iv-kanul-hero.jpg'); }
.page-hero.product-hero.serum-seti-hero::before { background-image: url('../images/products/serum-seti-hero.jpg'); }

/* ===================================
   PRODUCT DETAIL
   =================================== */

.product-detail {
    padding: var(--space-20) 0;
}

.product-layout {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: var(--space-16);
    margin-bottom: var(--space-16);
    align-items: start;
}

@media (max-width: 900px) {
    .product-layout {
        /* minmax(0,...) so the single column can shrink instead of
           overflowing the container on mobile */
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-8);
    }

    .product-image {
        position: static;
        top: auto;
    }
}

/* ===================================
   PRODUCT IMAGE
   =================================== */

.product-image {
    position: relative;
}

.product-image img:not(.product-yerli-badge) {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 48px rgba(var(--color-primary-rgb), 0.16);
    background: linear-gradient(180deg, rgba(var(--color-primary-rgb), 0.04) 0%, rgba(var(--color-accent-rgb), 0.08) 100%);
}

/* Yerli üretim rozeti: görselin üstüne binmez; görselin altında,
   sağa yaslı statik blok (ürün/uçlar artık kapanmıyor) */
.product-image img.product-yerli-badge {
    display: block;
    width: 130px;
    height: auto;
    margin: var(--space-5) 0 0 auto;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

@media (max-width: 640px) {
    .product-image img.product-yerli-badge {
        width: 100px;
        margin-top: var(--space-4);
    }
}

.product-image-badge {
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
    padding: var(--space-2) var(--space-4);
    background: var(--color-primary);
    color: var(--color-bg-white);
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
    z-index: 3;
}

/* ===================================
   PRODUCT INFO
   =================================== */

.product-info {
    position: relative;
    padding: clamp(1.5rem, 3vw, 2rem);
    background: linear-gradient(180deg, rgba(var(--color-primary-rgb), 0.03) 0%, rgba(var(--color-accent-rgb), 0.08) 100%);
    border: 1px solid rgba(var(--color-primary-rgb), 0.10);
    border-radius: 28px;
    box-shadow: 0 20px 48px rgba(var(--color-primary-rgb), 0.08);
}

.product-info h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 24px;
    line-height: 1.2;
}

.product-meta {
    display: flex;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border);
}

.product-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.product-meta-icon {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
}

.product-meta-text {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: var(--font-size-sm);
    color: var(--color-text-body);
}

.product-description {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-text-body);
    margin-bottom: 32px;
}

.product-description p {
    margin-bottom: 16px;
}

.product-description strong {
    color: var(--color-primary);
    font-weight: 600;
}

/* English Description */
.product-english {
    background: var(--color-bg-gray-50);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
    border-left: 4px solid var(--color-accent);
}

.product-english h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.product-english p {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.product-english p:last-child {
    margin-bottom: 0;
}

/* Product Features List */
.product-features {
    list-style: none;
    margin-bottom: var(--space-10);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.product-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--color-bg-gray-50);
    border-radius: var(--radius-md);
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: var(--font-size-sm);
    color: var(--color-text-body);
    transition: all var(--transition-base);
}

.product-features li:hover {
    background: var(--color-bg-gray-100);
}

.product-features li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--color-accent);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: var(--font-weight-bold);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-10);
    flex-wrap: wrap;
}

/* ===================================
   PRODUCT SPECS
   =================================== */

.product-specs {
    margin-top: 48px;
}

.product-specs:first-of-type {
    margin-top: 0;
}

.product-specs h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.specs-table thead {
    background: var(--gradient-brand);
}

.specs-table thead th {
    color: var(--color-bg-white);
    font-weight: 600;
    font-size: 15px;
    text-align: left;
    padding: 16px 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.specs-table tbody tr {
    border-bottom: 1px solid var(--color-border);
    transition: background-color var(--transition-base);
}

.specs-table tbody tr:hover {
    background-color: var(--color-bg-gray-50);
}

.specs-table tbody tr:last-child {
    border-bottom: none;
}

.specs-table tbody td {
    padding: 14px 20px;
    font-size: 15px;
    color: var(--color-text-body);
}

.specs-table tbody td:first-child {
    font-weight: 600;
    color: var(--color-primary);
}

/* Content Placeholder */
.content-placeholder {
    padding: var(--space-12);
    background: var(--color-bg-gray-50);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
}

/* ===================================
   PRODUCT TABS (OPTIONAL)
   =================================== */

.product-tabs {
    margin-top: var(--space-16);
}

.tabs-nav {
    display: flex;
    gap: var(--space-2);
    border-bottom: 2px solid var(--color-border);
    margin-bottom: var(--space-8);
}

.tab-btn {
    padding: var(--space-4) var(--space-6);
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-light);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.tab-btn:hover {
    color: var(--color-primary);
}

.tab-btn.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===================================
   RELATED PRODUCTS
   =================================== */

.related-products {
    margin-top: var(--space-24);
    padding-top: var(--space-16);
    border-top: 1px solid var(--color-border);
}

.related-products h3 {
    font-size: var(--font-size-3xl);
    color: var(--color-text-dark);
    margin-bottom: var(--space-8);
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
}

/* ===================================
   PRODUCT HIGHLIGHT BOX
   =================================== */

.product-highlight {
    padding: var(--space-8);
    background: linear-gradient(135deg, var(--color-bg-gray-50) 0%, var(--color-bg-white) 100%);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-8);
}

.product-highlight h4 {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-dark);
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.product-highlight h4::before {
    content: 'ℹ';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--color-accent);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    flex-shrink: 0;
}

.product-highlight p {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: var(--font-size-sm);
    color: var(--color-text-body);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* ===================================
   PRODUCT DOWNLOAD SECTION
   =================================== */

.product-downloads {
    margin-top: var(--space-10);
    padding: var(--space-8);
    background: var(--color-bg-gray-50);
    border-radius: var(--radius-lg);
}

.product-downloads h4 {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-dark);
    margin-bottom: var(--space-5);
}

.download-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.download-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.download-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.download-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-gray-100);
    color: var(--color-primary);
    border-radius: var(--radius-md);
}

.download-name {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-dark);
}

/* ===================================
   PRODUCT GALLERY (Slider for multiple product images)
   =================================== */

.product-gallery {
    position: relative;
    overflow: hidden;
}

.product-gallery-track {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
}

.product-gallery-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.product-gallery-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.product-gallery-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.product-gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(var(--color-primary-rgb), 0.15);
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-primary);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: background-color var(--transition-base), transform var(--transition-base);
    z-index: 2;
}

.product-gallery-btn:hover {
    background: var(--color-primary);
    color: var(--color-bg-white);
    transform: translateY(-50%) scale(1.05);
}

.product-gallery-prev { left: 12px; }
.product-gallery-next { right: 12px; }

.product-gallery-dots {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}

.product-gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(var(--color-primary-rgb), 0.25);
    cursor: pointer;
    padding: 0;
    transition: background-color var(--transition-base), transform var(--transition-base);
}

.product-gallery-dot.is-active {
    background: var(--color-primary);
    transform: scale(1.2);
}

/* ===================================
   PRODUCT IMAGE COLUMN (sol kolon: görsel + feature ikonları)
   =================================== */

.product-image-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

/* ===================================
   PRODUCT FEATURES (Yuvarlak ikonlu özellik kartları)
   =================================== */

.product-image-col .product-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
    margin: 0;
    padding: 0;
    border: none;
    list-style: none;
}

.product-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: none;
    padding: 0;
}

.product-feature::before {
    content: none !important;
}

.product-feature-icon {
    width: 100%;
    max-width: 130px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-2);
}

.product-feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-feature-title {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-dark);
    margin: 0;
    line-height: var(--leading-snug);
}

@media (max-width: 640px) {
    .product-feature-icon {
        width: 100%;
        max-width: 160px;
        height: auto;
    }

    .product-feature-title {
        font-size: var(--font-size-base);
    }
}

/* ===================================
   RESPONSIVE - MOBILE
   (placed last so it overrides the base rules above)
   =================================== */
@media (max-width: 768px) {
    .product-detail {
        padding: var(--space-12) 0;
    }

    .product-layout {
        margin-bottom: var(--space-10);
    }

    .product-info {
        padding: var(--space-4);
        border-radius: 18px;
    }

    .product-description {
        font-size: var(--font-size-base);
        line-height: 1.7;
        margin-bottom: var(--space-6);
    }

    .product-specs h3 {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--space-4);
    }

    .specs-table thead th {
        padding: 12px 10px;
        font-size: var(--font-size-xs);
        letter-spacing: 0.02em;
    }

    .specs-table tbody td {
        padding: 12px 10px;
        font-size: var(--font-size-sm);
    }

    /* Reference code stays on one line */
    .specs-table tbody td:first-child {
        white-space: nowrap;
    }
}
