/* ================================================
   DOQUE — Ürün Detay Sayfası (urun.html)
   Galeri · Bilgi paneli · Renk/Beden seçim · Benzer ürünler
================================================== */

body.page-urun {
    background: #ffffff;
    color: #1a1a1a;
}

body.page-urun #main {
    padding-top: 90px;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 4rem;
}

/* -------- Breadcrumb -------- */
.urun-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 1.25rem 0;
    font-family: 'Arial', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.55);
    animation: fadeInUp 0.5s ease both;
}

.urun-breadcrumb a {
    color: rgba(0, 0, 0, 0.55);
    text-decoration: none;
    transition: color 0.2s ease;
}

.urun-breadcrumb a:hover {
    color: #1a1a1a;
}

.urun-breadcrumb .crumb-sep {
    color: rgba(0, 0, 0, 0.3);
    margin: 0 0.2rem;
}

.urun-breadcrumb .crumb-current {
    color: #1a1a1a;
    font-weight: 600;
}

/* -------- Loading state -------- */
.urun-loading[hidden],
.urun-not-found[hidden],
.urun-detail[hidden] {
    display: none !important;
}

.urun-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 6rem 1rem;
    color: rgba(0, 0, 0, 0.55);
    font-family: 'Arial', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.urun-loading .spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(0, 0, 0, 0.08);
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* -------- Not found state -------- */
.urun-not-found {
    text-align: center;
    padding: 6rem 1rem;
    animation: fadeInUp 0.5s ease both;
}

.urun-not-found h1 {
    font-family: 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: 400;
    margin: 0 0 0.8rem;
    letter-spacing: 1px;
}

.urun-not-found p {
    color: rgba(0, 0, 0, 0.6);
    font-family: 'Arial', sans-serif;
    font-size: 0.95rem;
    margin: 0 0 2rem;
}

.urun-not-found .btn-primary {
    display: inline-block;
    padding: 0.95rem 2.2rem;
    background: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-family: 'Arial', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.urun-not-found .btn-primary:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* -------- Detail layout -------- */
.urun-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: flex-start;
    margin-top: 1.5rem;
    animation: fadeInUp 0.55s ease both;
}

/* -------- Gallery -------- */
.urun-gallery {
    position: sticky;
    top: 100px;
}

.urun-main-image {
    position: relative;
    width: 100%;
    background: #f7f5f2;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.urun-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    cursor: zoom-in;
    transition: transform 0.6s ease;
}

.urun-main-image:hover img {
    transform: scale(1.04);
}

.urun-main-image .urun-fav-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 44px;
    height: 44px;
}

.urun-thumbs {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.urun-thumb {
    width: 72px;
    height: 90px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #f7f5f2;
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

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

.urun-thumb:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, 0.3);
}

.urun-thumb.active {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
}

/* -------- Info panel -------- */
.urun-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.urun-category {
    font-family: 'Arial', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.55);
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.urun-season-pill {
    /* product-badge stilini paylaşır; konum override */
    position: relative;
    top: auto;
    left: auto;
}

.urun-title {
    font-family: 'Times New Roman', serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.5px;
    margin: 0;
    color: #1a1a1a;
}

/* Ürün kodu — başlığın altında modern monospace */
.urun-code {
    font-family: 'Arial', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 2px;
    color: rgba(0, 0, 0, 0.5);
    margin-top: 0.3rem;
    text-transform: uppercase;
    font-weight: 500;
}

/* Rating */
.urun-rating {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Arial', sans-serif;
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.7);
}

.rating-stars {
    color: #d4af37;
    letter-spacing: 2px;
    font-size: 1rem;
}

.rating-count {
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.82rem;
}

/* Price */
.urun-price {
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    flex-wrap: wrap;
    padding: 0.4rem 0;
}

.urun-price-current {
    font-family: 'Arial', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #1a1a1a;
}

.urun-price-old {
    font-family: 'Arial', sans-serif;
    font-size: 1.05rem;
    text-decoration: line-through;
    color: rgba(0, 0, 0, 0.4);
}

.urun-price-discount {
    background: #c0392b;
    color: #ffffff;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    font-family: 'Arial', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.urun-description {
    font-family: 'Arial', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(0, 0, 0, 0.7);
    margin: 0;
}

/* -------- Option group (color / size) -------- */
.urun-option-group {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding-top: 0.4rem;
}

.urun-option-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Arial', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.7);
    font-weight: 500;
}

.urun-option-value {
    color: #1a1a1a;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: none;
}

.size-guide-link {
    color: #1a1a1a;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 1.5px;
}

/* Colors */
.urun-colors {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.color-swatch {
    width: 38px;
    height: 38px;
    padding: 3px;
    border: 2px solid transparent;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s;
}

.color-swatch:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.color-swatch .swatch-inner {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.color-swatch.selected {
    border-color: #1a1a1a;
    transform: scale(1.05);
}

/* Sizes */
.urun-sizes {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.size-pill {
    min-width: 48px;
    height: 44px;
    padding: 0 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.18);
    background: #ffffff;
    border-radius: 10px;
    font-family: 'Arial', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.size-pill:hover:not(.disabled) {
    border-color: #1a1a1a;
    transform: translateY(-1px);
}

.size-pill.selected {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

.size-pill.disabled {
    color: rgba(0, 0, 0, 0.3);
    background: #f5f5f5;
    cursor: not-allowed;
    position: relative;
    text-decoration: line-through;
}

/* -------- Actions: quantity + CTA -------- */
.urun-actions {
    display: flex;
    align-items: stretch;
    gap: 0.8rem;
    margin-top: 0.6rem;
    flex-wrap: wrap;
}

.urun-quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.urun-quantity .qty-btn {
    width: 44px;
    height: 50px;
    border: none;
    background: transparent;
    color: #1a1a1a;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.urun-quantity .qty-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.urun-quantity input {
    width: 50px;
    height: 50px;
    border: none;
    background: transparent;
    text-align: center;
    font-family: 'Arial', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    -moz-appearance: textfield;
}

.urun-quantity input::-webkit-outer-spin-button,
.urun-quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.urun-quantity input:focus {
    outline: none;
}

.urun-cta {
    flex: 1;
    min-width: 200px;
    padding: 0 2rem;
    height: 50px;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: 'Arial', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.urun-cta:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.urun-cta:active {
    transform: translateY(0);
}

/* -------- Notice -------- */
.urun-notice {
    margin-top: 0.4rem;
    padding: 0.9rem 1rem;
    background: #faf7f2;
    border-left: 3px solid #1a1a1a;
    border-radius: 6px;
    font-family: 'Arial', sans-serif;
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.7);
}

/* -------- Features -------- */
.urun-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-top: 1rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.urun-feature {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.6rem 0;
}

.urun-feature svg {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: #1a1a1a;
    opacity: 0.75;
}

.urun-feature div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.urun-feature strong {
    font-family: 'Arial', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #1a1a1a;
}

.urun-feature span {
    font-family: 'Arial', sans-serif;
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.6);
}

/* -------- Related products -------- */
.urun-related {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.6s ease both;
}

.urun-related-title {
    font-family: 'Times New Roman', serif;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 400;
    letter-spacing: 1px;
    margin: 0 0 2rem;
    text-align: center;
    color: #1a1a1a;
}

.urun-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

/* -------- Image modal (full preview) -------- */
.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.image-modal.active {
    opacity: 1;
}

.image-modal .modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.95);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.image-modal.active .modal-content {
    transform: scale(1);
}

.image-modal img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-modal .modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.image-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* -------- Animations -------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* -------- Responsive -------- */
@media (max-width: 960px) {
    .urun-detail {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .urun-gallery {
        position: static;
    }
}

@media (max-width: 768px) {
    body.page-urun #main {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .urun-main-image {
        border-radius: 14px;
    }
    .urun-title {
        font-size: 1.5rem;
    }
    .urun-price-current {
        font-size: 1.5rem;
    }
    .urun-cta {
        width: 100%;
        flex: 1 1 100%;
    }
    .urun-features {
        margin-top: 0.5rem;
        padding-top: 1rem;
    }
    .urun-related {
        margin-top: 3rem;
        padding-top: 2rem;
    }
    .urun-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .urun-thumb {
        width: 60px;
        height: 76px;
    }
    .color-swatch {
        width: 34px;
        height: 34px;
    }
    .size-pill {
        min-width: 42px;
        height: 40px;
        font-size: 0.82rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .urun-breadcrumb,
    .urun-not-found,
    .urun-detail,
    .urun-related {
        animation: none;
    }
    .urun-main-image:hover img {
        transform: none;
    }
}
