/* Page Header */
.page-header {
    background-image: url('../images/header-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 10rem 0 2rem 0;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    padding-top: 70px;
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #5A9FD4;
}

/* Product Detail Section */
.product-detail-section {
    padding: 5rem 0;
    background: #fff;
}

.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

/* Product Images */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    background: #fff;
    border: 1px solid #eee;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 450px;
    cursor: zoom-in;
}

.thumbnail-images {
    display: flex;
    gap: 0.75rem;
}

.thumbnail {
    width: 70px;
    height: 70px;
    background: #fff;
    border: 1px solid #eee;
    padding: 0.5rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #333;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Product Info */
.product-info-wrapper {
    display: flex;
    flex-direction: column;
}

.product-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.75rem;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0 0 1rem 0;
}

.product-price {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 2rem;
}

.product-description {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #666;
    margin: 0 0 2rem 0;
}

.product-specs {
    margin-bottom: 2rem;
}

.spec-row {
    display: flex;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.spec-row:first-child {
    border-top: 1px solid #f0f0f0;
}

.spec-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    width: 80px;
}

.spec-value {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: #333;
}

.btn-contact {
    width: 100%;
    margin-bottom: 2rem;
}

/* Add to cart / variants */
.add-to-cart-form {
    margin-bottom: 2rem;
}

.variant-group {
    margin-bottom: 1.5rem;
}

.variant-label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.variant-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: #1a1a1a;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.variant-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.variant-chip:hover {
    border-color: #1a1a1a;
}

.variant-chip:has(input:checked) {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

.variant-swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.purchase-row {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
    margin-bottom: 0.75rem;
}

.qty-stepper {
    display: flex;
    align-items: center;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    overflow: hidden;
    flex: 0 0 auto;
}

.qty-btn {
    width: 42px;
    height: 100%;
    min-height: 48px;
    border: 0;
    background: #fff;
    font-size: 1.1rem;
    line-height: 1;
    color: #1a1a1a;
    cursor: pointer;
    transition: background 0.2s ease;
}

.qty-btn:hover {
    background: #f2f2f2;
}

.qty-input {
    width: 48px;
    height: 48px;
    border: 0;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #1a1a1a;
    -moz-appearance: textfield;
}

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

.btn-add-cart {
    flex: 1;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 1.05rem 2rem;
    border: 1px solid var(--color-ink);
    background: var(--color-ink);
    color: #fff;
    cursor: pointer;
    transition: background 0.35s var(--ease-out), transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.btn-add-cart:hover:not(:disabled) {
    background: #000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-add-cart:disabled {
    background: #e5e5e5;
    border-color: #e5e5e5;
    color: #999;
    cursor: not-allowed;
}

.stock-hint {
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    color: #b42318;
    margin-bottom: 1rem;
}

.btn-contact-secondary {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.9rem 2rem;
    border: 1px solid #d9d9d9;
    background: #fff;
    color: #1a1a1a;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.btn-contact-secondary:hover {
    border-color: #1a1a1a;
    background: #fafafa;
}

.product-features {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    color: #999;
}

/* Product Details Section */
.product-details-section {
    padding: 5rem 0;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

.product-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.details-column h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 1.5rem 0;
}

.details-column p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #666;
    margin: 0 0 1.5rem 0;
}

.details-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.details-column ul li {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    line-height: 2;
    color: #666;
    padding-left: 1rem;
    position: relative;
}

.details-column ul li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: #999;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.specs-table td {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    padding: 0.75rem 0;
}

.specs-table td:first-child {
    font-weight: 500;
    color: #999;
    width: 150px;
}

.specs-table td:last-child {
    color: #333;
}

/* Related Products */
.related-products-section {
    padding: 5rem 0;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

.related-products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #1a1a1a;
    text-align: center;
    margin: 0 0 3rem 0;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.product-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.product-card:hover .product-image img {
    transform: scale(1.03);
}

.product-card:hover .product-name {
    color: #5A9FD4;
}

.product-card .product-image {
    background: #fff;
    border: 1px solid #eee;
    padding: 2rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.product-card .product-image img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card .product-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.product-card .product-brand {
    font-size: 0.65rem;
    margin-bottom: 0;
}

.product-card .product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.product-card .product-name {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: color 0.3s ease;
}

.product-card .product-price {
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #fff;
    width: 100%;
    max-width: 420px;
    padding: 3rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 0.75rem 0;
}

.modal-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #666;
    margin: 0 0 2rem 0;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form-group input {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    padding: 0.9rem 0;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    background: transparent;
    color: #1a1a1a;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.form-group input::placeholder {
    color: #ccc;
}

.btn-submit {
    width: 100%;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .product-detail-container,
    .details-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 7rem 0 1.5rem 0;
    }

    .page-header-container,
    .product-detail-container,
    .product-details-container,
    .related-products-container {
        padding: 0 2rem;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .related-products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }

    .modal-box {
        margin: 1rem;
        padding: 2rem;
    }

    .modal-title {
        font-size: 1.25rem;
    }
}

/* Size chart */
.variant-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.size-chart-link {
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 0.75rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #666;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.size-chart-link:hover {
    color: #1a1a1a;
}

.modal-box.modal-box-wide {
    max-width: 640px;
    padding: 2.5rem;
}

.size-chart-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border: 1px solid #eee;
}

.sale-note {
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    color: #999;
    margin-bottom: 1rem;
}

/* Görsel lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(10, 10, 12, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay img {
    max-width: min(92vw, 1100px);
    max-height: 86vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.lightbox-arrow:hover { background: rgba(255, 255, 255, 0.18); border-color: #fff; }

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-counter {
    position: absolute;
    bottom: 1.4rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.75);
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

@media (max-width: 640px) {
    .lightbox-arrow { width: 40px; height: 40px; }
    .lightbox-prev { left: 0.6rem; }
    .lightbox-next { right: 0.6rem; }
    .lightbox-overlay img { max-width: 96vw; }
}

/* Renk butonu (satışa kapalı ürünlerde) */
.variant-chip-btn {
    background: #fff;
    font: inherit;
}

.variant-chip-btn.is-selected {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}
