/* =====================================================
   ÜRÜN DETAY SAYFASI CSS
   İlmekon Halı - B2B Fason Halı Üretimi
   ===================================================== */

/* Page Header */
.page-header {
    background: #f8f9fa;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.page-header .breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 0.9rem;
}

.page-header .breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.page-header .breadcrumb a:hover {
    color: #1a5f2a;
}

.page-header .breadcrumb span {
    color: #999;
}

/* Product Detail Section */
.product-detail {
    padding: 40px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

@media (max-width: 991px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-gallery {
        position: relative !important;
        top: auto !important;
    }
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
    align-self: flex-start;
    height: fit-content;
}

.main-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    background: linear-gradient(180deg, #f8f8f8 0%, #f0f0f0 100%);
}

.main-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    padding: 20px;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

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

/* Zoom Modal */
.zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    cursor: zoom-out;
    justify-content: center;
    align-items: center;
}

.zoom-modal.active {
    display: flex;
}

.zoom-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.zoom-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10000;
    transition: transform 0.3s;
}

.zoom-close:hover {
    transform: scale(1.2);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    z-index: 10;
}

.gallery-nav:hover {
    background: #1a5f2a;
    color: #fff;
}

.gallery-nav.prev { left: 15px; }
.gallery-nav.next { right: 15px; }

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #1a5f2a;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 5;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
}

.thumbnail {
    flex-shrink: 0;
    width: 70px;
    height: 85px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8f8f8;
    padding: 0;
}

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

.thumbnail:hover {
    border-color: #1a5f2a;
}

.thumbnail.active {
    border-color: #1a5f2a;
    border-width: 3px;
    box-shadow: 0 0 0 2px rgba(26, 95, 42, 0.2);
}

/* Product Detail Info */
.product-detail-info {
    padding: 0;
}

.product-detail-info .product-brand {
    font-size: 0.9rem;
    color: #8B4513;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-detail-info h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin: 10px 0 5px;
    line-height: 1.3;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    font-size: 0.85rem;
    color: #666;
}

.product-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* B2B Quote Box */
.b2b-quote-box {
    background: linear-gradient(135deg, #1a5f2a 0%, #2d8a3e 100%);
    color: #fff;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
}

.b2b-quote-box h3 {
    font-size: 1.1rem;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.b2b-buttons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.btn-quote,
.btn-custom-size {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn-quote {
    background: #25D366;
    color: #fff;
}

.btn-quote:hover {
    background: #1da851;
    color: #fff;
}

.btn-custom-size {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-custom-size:hover {
    background: rgba(255,255,255,0.3);
}

@media (max-width: 576px) {
    .b2b-buttons {
        flex-direction: column;
    }
}

/* Size Selection */
.size-selection {
    margin: 20px 0;
}

.selection-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-option {
    padding: 10px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    font-weight: 500;
}

.size-option:hover {
    border-color: #1a5f2a;
}

.size-option.active {
    border-color: #1a5f2a;
    background: #e8f5e9;
    color: #1a5f2a;
}

/* Quantity Wrapper */
.quantity-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.quantity-wrapper .btn-add-cart {
    flex: 1;
    min-width: 150px;
}

.quantity-wrapper .btn-add-cart:hover {
    background: #155a24 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 95, 42, 0.3);
}

.quantity-wrapper .btn-favorite:hover {
    background: #dc3545 !important;
    color: white !important;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f8f9fa;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.qty-btn:hover {
    background: #1a5f2a;
    color: #fff;
}

.qty-input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}

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

/* Product Features */
.product-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .product-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.feature i {
    font-size: 1.5rem;
    color: #1a5f2a;
    margin-bottom: 8px;
}

.feature span {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

/* Product Tabs */
.product-tabs {
    background: #f8f9fa;
    padding: 50px 0;
}

.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 30px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0;
}

.tab-btn {
    padding: 15px 25px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
    position: relative;
}

.tab-btn:hover {
    color: #1a5f2a;
}

.tab-btn.active {
    color: #1a5f2a;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #1a5f2a;
}

.tab-content {
    display: none;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.tab-content.active {
    display: block;
}

/* Specifications Table */
.specifications-table {
    width: 100%;
    border-collapse: collapse;
}

.specifications-table tr {
    border-bottom: 1px solid #eee;
}

.specifications-table tr:last-child {
    border-bottom: none;
}

.specifications-table td {
    padding: 12px 15px;
}

.specifications-table td:first-child {
    font-weight: 600;
    color: #333;
    width: 40%;
    background: #f8f9fa;
}

.specifications-table td:last-child {
    color: #666;
}

/* Related Products */
.bg-light {
    background: #f8f9fa;
}

.section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

/* Color Options */
.color-options {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.color-option {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

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

.color-option.active::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.8rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Info Box */
.info-box {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
}

.info-box.tip {
    background: #e8f5e9;
    border-left: 4px solid #1a5f2a;
}

.info-box.warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.info-box.info {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
}

/* Product Card (Related) */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.product-card .product-image {
    position: relative;
    overflow: hidden;
}

.product-card .product-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.product-card .product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-card .badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-card .badge-new {
    background: #1a5f2a;
    color: #fff;
}

.product-card .badge-bestseller {
    background: #ffc107;
    color: #333;
}

.product-card .product-info {
    padding: 20px;
}

.product-card .product-brand {
    font-size: 0.8rem;
    color: #8B4513;
    font-weight: 500;
    text-transform: uppercase;
}

.product-card .product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 8px 0;
}

.product-card .product-title a {
    color: #333;
    text-decoration: none;
}

.product-card .product-title a:hover {
    color: #1a5f2a;
}

.product-card .add-to-cart {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #1a5f2a;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
}

.product-card .add-to-cart:hover {
    background: #155a24;
}

/* Responsive */
@media (max-width: 768px) {
    .product-detail-info h1 {
        font-size: 1.5rem;
    }
    
    .main-image img {
        max-height: 400px;
        padding: 15px;
    }
    
    .thumbnail {
        width: 60px;
        height: 75px;
    }
    
    .tabs-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        white-space: nowrap;
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .specifications-table td:first-child {
        width: 50%;
    }
}
