/* Ürün detay sayfası */

html.page-product,
body.page-product {
    height: 100%;
}

body.page-product {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.page-product .header {
    flex-shrink: 0;
}

body.page-product .product-hero {
    flex-shrink: 0;
}

body.page-product .product-content {
    flex: 1 1 auto;
    min-height: 0;
}

body.page-product .footer {
    flex-shrink: 0;
    margin-top: auto;
}

.product-hero {
    margin-top: 80px;
    padding: 24px 0 0;
    background: #f5f5f5;
}

.product-breadcrumb {
    font-size: 1.05rem;
    color: #555;
    padding-bottom: 18px;
}

.product-breadcrumb a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.product-breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-sep {
    margin: 0 8px;
    color: #aaa;
}

body.page-product .product-content .container,
body.page-product .product-hero .container {
    max-width: 1280px;
}

.product-content {
    padding: 0 0 60px;
    background: #f5f5f5;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(340px, 1.05fr) minmax(400px, 1fr);
    gap: 48px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 0;
}

.product-detail-media {
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
}

.product-detail-image-wrap {
    width: 100%;
    height: 500px;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    background: #ececec;
    flex-shrink: 0;
}

.product-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.product-detail-body {
    padding: 48px 48px 48px 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.product-detail-category {
    margin: 0;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #666;
    font-weight: 600;
}

.product-detail-title {
    margin: 0;
    font-size: 2.5rem;
    line-height: 1.18;
    color: #1a1a1a;
}

.product-detail-price {
    margin: 0;
    font-size: 2.1rem;
    font-weight: 700;
    color: #333;
}

.product-detail-description {
    color: #444;
    font-size: 1.15rem;
    line-height: 1.7;
    flex: 1;
}

.product-detail-code {
    margin: 0;
    margin-top: 4px;
    padding: 14px 18px;
    background: #f5f5f5;
    border-radius: 10px;
    font-size: 1.05rem;
    color: #333;
    border: 1px solid #e8e8e8;
}

.product-detail-code-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #666;
    font-weight: 600;
    margin-bottom: 6px;
}

.product-detail-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
    background: #fff;
    border-top: 1px solid #eee;
}

.product-detail-thumb {
    padding: 0;
    margin: 0;
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #f9f9f9;
    line-height: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-detail-thumb:hover {
    border-color: #ccc;
}

.product-detail-thumb.is-active {
    border-color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.product-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.product-detail-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-top: 12px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #1a1a1a, #333);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-detail-back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.product-not-found {
    text-align: center;
    padding: 72px 32px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.1);
}

.product-not-found i {
    font-size: 3.5rem;
    color: #ccc;
    margin-bottom: 20px;
}

.product-not-found h2 {
    color: #1a1a1a;
    margin: 0 0 12px;
    font-size: 1.75rem;
}

.product-not-found p {
    color: #666;
    margin: 0 0 28px;
    font-size: 1.1rem;
}

@media (max-width: 900px) {
    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-detail-body {
        padding: 32px 28px 40px;
    }

    .product-detail-media {
        min-height: 0;
    }

    .product-detail-image-wrap {
        height: 360px;
        max-width: none;
    }

    .product-detail-title {
        font-size: 1.9rem;
    }

    .product-detail-price {
        font-size: 1.85rem;
    }

    .product-detail-description {
        font-size: 1.08rem;
    }

    .product-detail-thumb {
        width: 72px;
        height: 72px;
    }
}
