/* Renk Varyantları Kutucukları */
.product-color-variants {
    margin-bottom: 24px;
}

.color-variants-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
}

.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.color-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    background: var(--bg-light);
}

.color-swatch:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px var(--accent-color);
    background: var(--white);
}

.color-swatch.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
    background: var(--white);
}

.color-swatch-name .swatch-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.swatch-color {
    width: 100%;
    height: 100%;
    display: block;
}

.swatch-placeholder {
    background: var(--bg-light);
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product Detail Page */
.product-detail-page {
    padding: 40px 0 80px;
    background-color: var(--white);
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span {
    margin: 0 8px;
}

/* Product Detail Container */
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

/* Product Images Section */
.product-images-section {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image-container {
    position: relative;
}

.main-image-wrapper {
    position: relative;
}

.product-image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    z-index: 15;
    transition: all 0.2s ease;
}

.product-image-nav:hover {
    background: var(--white);
    color: var(--accent-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.product-image-nav i {
    font-size: 18px;
}

.product-image-prev {
    left: 12px;
}

.product-image-next {
    right: 12px;
}

.main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background-color: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 20px;
    cursor: crosshair;
}

.image-zoom-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.zoom-lens {
    position: absolute;
    border: 2px solid #fff;
    background-color: rgba(255, 255, 255, 0.2);
    cursor: crosshair;
    display: none;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.zoom-result {
    position: absolute;
    top: 0;
    left: calc(100% + 20px);
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    display: none;
    z-index: 20;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background-color: #fff;
}

@media (min-width: 1200px) {
    .product-detail-container {
        position: relative;
    }
    
    .zoom-result {
        position: fixed;
        left: auto;
        right: 5%;
        top: 50%;
        transform: translateY(-50%);
        width: 500px;
        height: 500px;
        max-width: 40vw;
        max-height: 40vw;
    }
}

@media (max-width: 768px) {
    .zoom-result {
        display: none !important;
    }
    
    .zoom-lens {
        display: none !important;
    }
    
    .main-image {
        cursor: default;
    }
}

.main-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    color: var(--text-light);
}

.placeholder-icon {
    font-size: 120px;
    opacity: 0.3;
    margin-bottom: 20px;
}

.discount-badge-detail {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--discount-color);
    color: var(--white);
    padding: 12px 18px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    z-index: 2;
}

.discount-badge-detail span:first-child {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.discount-badge-detail span:last-child {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumbnail {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--bg-light);
}

.thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info Section */
.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.product-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-category {
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
}

/* Price Section */
.price-section {
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 10px;
}

.old-price-large {
    font-size: 24px;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 500;
}

.new-price-large {
    font-size: 36px;
    font-weight: 800;
    color: var(--discount-color);
}

.current-price-large {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
}

.savings-info {
    margin-top: 8px;
}

.savings-amount {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

/* Product Description */
.product-description {
    padding: 20px 0;
}

.product-description h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-description p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

/* Product Features */
.product-features {
    padding: 20px 0;
}

.product-features h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.features-list li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.feature-label {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 120px;
    font-size: 15px;
}

.feature-value {
    color: var(--text-color);
    font-size: 15px;
}

.feature-value a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.feature-value a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.feature-value.in-stock {
    color: #27ae60;
    font-weight: 600;
}

.feature-value.out-of-stock {
    color: var(--discount-color);
    font-weight: 600;
}

/* Product Actions */
.product-actions {
    padding: 20px 0;
}

.contact-button-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 30px;
    background-color: #25D366;
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.contact-button-large:hover {
    background-color: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon-btn {
    font-size: 20px;
}

/* Related Products */
.related-products-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--border-color);
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.related-product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.related-product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-product-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: var(--bg-light);
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-product-card:hover .related-product-image img {
    transform: scale(1.05);
}

.related-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    font-size: 60px;
    opacity: 0.3;
}

.related-discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--discount-color);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.related-product-info {
    padding: 20px;
}

.related-product-info h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 10px;
    min-height: 48px;
}

.related-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-old-price {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
}

.related-new-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--discount-color);
}

.related-price-single {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .product-detail-container {
        gap: 40px;
    }
    
    .product-images-section {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-title {
        font-size: 28px;
    }
    
    .new-price-large,
    .current-price-large {
        font-size: 28px;
    }
    
    .thumbnail-images {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .related-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .product-detail-page {
        padding: 20px 0 60px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .thumbnail-images {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}