/* Ürün Sayfası Stilleri */
.product-page {
    padding: 30px 0;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
}

.main-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-bottom: 15px;
    border-radius: 10px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumbnail-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumbnail {
    width: 100%;
    height: 100px;
    overflow: hidden;
    border-radius: 5px;
    background-color: #f5f5f5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.thumbnail:hover img {
    transform: scale(1.05);
}

.product-details {
    padding: 20px;
}

.product-details h1 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.price {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.old-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
}

.new-price {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
}

.current-price {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.discount-badge {
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
}

.product-description {
    margin-bottom: 30px;
    line-height: 1.6;
}

.option-group {
    margin-bottom: 20px;
}

.option-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.color-options, .size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-option {
    position: relative;
}

.color-option input {
    position: absolute;
    opacity: 0;
}

.color-option label {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.color-option input:checked + label {
    border-color: #333;
}

.color-option.out-of-stock label {
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
}

.color-option.out-of-stock label::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 2px;
    background-color: #e74c3c;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.size-option {
    position: relative;
}

.size-option input {
    position: absolute;
    opacity: 0;
}

.size-option label {
    display: block;
    min-width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.size-option input:checked + label {
    border-color: #333;
    background-color: #333;
    color: white;
}

.size-option.out-of-stock label {
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
}

.size-option.out-of-stock label::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 2px;
    background-color: #e74c3c;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.quantity-group {
    margin-bottom: 30px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background-color: #e0e0e0;
}

#quantity {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    -moz-appearance: textfield;
}

#quantity::-webkit-outer-spin-button,
#quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart-btn {
    width: 100%;
    padding: 15px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 30px;
}

.add-to-cart-btn:hover {
    background-color: #218838;
}

.product-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 14px;
}

.meta-item i {
    font-size: 20px;
    color: #28a745;
}

.product-tabs {
    margin-bottom: 50px;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #007bff;
}

.tab-btn.active {
    border-bottom-color: #007bff;
    color: #007bff;
    font-weight: bold;
}

.tab-pane {
    display: none;
    padding: 20px 0;
    line-height: 1.6;
}

.tab-pane.active {
    display: block;
}

/* Resim yakınlaştırma stilleri */
.product-gallery {
    position: relative;
}

.main-image {
    overflow: hidden;
    cursor: zoom-in;
}

.main-image img {
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
    display: block;
}

.main-image.zoomed img {
    transform: scale(2);
    cursor: zoom-out;
}

/* Thumbnail stilleri */
.thumbnail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.thumbnail {
    width: 70px;
    height: 70px;
    border: 1px solid #ddd;
    cursor: pointer;
    overflow: hidden;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s;
}

.thumbnail:hover img {
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #333;
}

/* Renk seçenekleri */
.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.color-option {
    position: relative;
}

.color-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.color-option label {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.color-option input[type="radio"]:checked + label {
    border-color: #333;
    transform: scale(1.1);
}

.color-option label:hover {
    transform: scale(1.1);
}

.color-option.out-of-stock label {
    opacity: 0.5;
    position: relative;
}

.color-option.out-of-stock label::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #f00;
    transform: rotate(-45deg);
}

/* Responsive Tasarım */
@media (max-width: 992px) {
    .product-container {
        grid-template-columns: 1fr;
    }
    
    .main-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .product-meta {
        grid-template-columns: 1fr;
    }
    
    .tabs-header {
        overflow-x: auto;
        white-space: nowrap;
    }
}