/* Nike-Style Product Detail Page */
.product-detail-page { background: #fff; padding: 10px 0; min-height: 60vh; }
.product-container { max-width: 1340px; margin: 0 auto; padding: 0 20px; } /* ✅ Default padding */

/* Breadcrumb */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0 12px 0;
    font-size: 13px;
    color: #757575;
    flex-wrap: wrap; /* ✅ Allow wrapping */
}
.breadcrumb-nav a {
    color: #757575;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px; /* ✅ Truncate long links */
}
.breadcrumb-nav a:hover {
    color: #111;
}
.breadcrumb-nav .separator {
    color: #d5d5d5;
    flex-shrink: 0; /* ✅ Don't shrink separators */
}
.breadcrumb-nav .current {
    color: #111;
    font-weight: 500;
    white-space: normal; /* ✅ Last item can wrap */
    overflow: visible;
    text-overflow: clip;
    max-width: none; /* ✅ Full width for current page */
}

/* Mobile breadcrumb */
@media (max-width: 768px) {
    .breadcrumb-nav {
        font-size: 11px;
        gap: 6px;
        padding: 8px 0;
    }
    
    .breadcrumb-nav a {
        max-width: 80px; /* ✅ Shorter on mobile */
    }
}

/* Product Main - Fixed gallery width */
.product-main { 
    display: grid; 
    grid-template-columns: 500px 1fr; /* Fixed 500px gallery, flexible info */
    gap: 30px; 
    margin-bottom: 10px; 
}

/* Gallery */
.product-gallery { 
    max-width: 500px;
    width: 100%; /* ✅ Full width on smaller screens */
}
.main-image { 
    width: 100%; 
    max-width: 500px;
    background: #ffffff; /* ✅ White background - no grey borders */
    overflow: hidden; 
    position: relative; 
    aspect-ratio: 1 / 1; /* Square aspect ratio */
    height: 500px; /* ✅ Fixed height - prevents content-based stretching */
    cursor: zoom-in;
    margin-bottom: 12px;
}
.main-image img { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; /* ✅ Cover - fills entire area without grey borders */
    transition: transform 0.3s ease; 
}
.main-image:hover img { transform: scale(1.05); }

.thumbnail-grid { 
    display: grid; 
    grid-template-columns: repeat(6, 1fr); 
    gap: 8px; 
    max-width: 500px; 
}
.thumbnail { 
    cursor: pointer; 
    background: #f5f5f5; 
    border-radius: 4px; 
    overflow: hidden; 
    border: 2px solid transparent; 
    transition: all 0.2s; 
    aspect-ratio: 1 / 1; /* Square thumbnails */
    position: relative; 
}
.thumbnail img { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: contain; /* ✅ Show full product in thumbnails */
}
.thumbnail:hover { border-color: #d5d5d5; transform: translateY(-1px); }
.thumbnail.active { border-color: #111; box-shadow: 0 1px 4px rgba(0,0,0,0.15); }

/* Product Info */
.product-info { position: sticky; top: 20px; }
.product-info h1 { 
    font-size: 25px; 
    font-weight: 600; 
    color: #111; 
    margin-bottom: 5px; 
    line-height: 1.2; 
}

.product-brand { 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    padding: 8px 16px; 
    background: #f5f5f5; 
    border-radius: 20px; 
    font-size: 14px; 
    color: #111; 
    margin-bottom: 16px;
}

/* Product Rating Summary - Professional Style */
.product-rating-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}

.product-rating-summary .rating-score {
    font-weight: 600;
    color: #111;
}

.product-rating-summary .rating-stars {
    display: flex;
    gap: 2px;
    color: #f59e0b;
    font-size: 14px;
}

.product-rating-summary .rating-stars i {
    color: #f59e0b;
}

.product-rating-summary .rating-count {
    color: #007185;
    text-decoration: none;
    font-size: 13px;
}

.product-rating-summary .rating-count:hover {
    color: #c7511f;
    text-decoration: underline;
}

.product-rating-summary .rating-camera {
    background: none;
    border: 1px solid #d5d5d5;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    transition: all 0.2s;
    margin-left: 4px;
}

.product-rating-summary .rating-camera:hover {
    border-color: #111;
    color: #111;
}

.product-category { 
    display: inline-block; 
    padding: 8px 16px; 
    background: #e5e5e5; 
    border-radius: 20px; 
    font-size: 14px; 
    color: #111; 
    text-decoration: none; 
    margin-left: 8px;
}
.product-category:hover { background: #d5d5d5; }

.product-price { margin: 3px 0; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.price-current, .final-price { font-size: 28px; font-weight: 700; color: #111; }
.price-original, .old-price { font-size: 20px; color: #757575; text-decoration: line-through; }
.discount-badge { 
    background: #dc2626; 
    color: #fff; 
    padding: 6px 12px; 
    border-radius: 20px; 
    font-size: 14px; 
    font-weight: 600; 
      display: none;
}

.product-stock { margin-bottom: 4px; }
.in-stock { color: #059669; font-weight: 400; font-size:13px }
.out-stock { color: #dc2626; font-weight: 400;font-size:13px  }

/* Kargo Bilgileri */
.product-shipping-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
    padding: 0;
}

.shipping-box,
.delivery-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.2s;
}

.shipping-box:hover,
.delivery-box:hover {
    border-color: #d1d5db;
    background: #f3f4f6;
}

.shipping-box.shipping-free {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #10b981;
}

.shipping-icon,
.delivery-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    flex-shrink: 0;
}

.shipping-box.shipping-free .shipping-icon {
    background: #10b981;
}

.shipping-box.shipping-free .shipping-icon svg {
    stroke: #fff;
}

.shipping-icon svg,
.delivery-icon svg {
    width: 22px;
    height: 22px;
    stroke: #6b7280;
}

.delivery-icon svg {
    stroke: #4f46e5;
}

.shipping-details,
.delivery-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shipping-label,
.delivery-label {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.shipping-sublabel {
    font-size: 12px;
    color: #6b7280;
}

.delivery-date {
    font-size: 13px;
    font-weight: 500;
    color: #4f46e5;
}

.shipping-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shipping-badge.free {
    background: #10b981;
    color: #fff;
}

.shipping-badge.paid {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.shipping-company {
    padding: 4px 10px;
    background: #eef2ff;
    color: #4f46e5;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

@media (max-width: 576px) {
    .shipping-box,
    .delivery-box {
        padding: 10px 12px;
    }
    
    .shipping-icon,
    .delivery-icon {
        width: 36px;
        height: 36px;
    }
    
    .shipping-icon svg,
    .delivery-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .shipping-label,
    .delivery-label {
        font-size: 13px;
    }
    
    .shipping-badge {
        padding: 4px 8px;
        font-size: 11px;
    }
}

.product-description { 
    margin: 10px 0; 
    padding: 10px 0px  ; 
    border-radius: 12px; 
    line-height: 1.7; 
    color: #555; 
}
.product-description h3 { 
    font-size: 18px; 
    font-weight: 600; 
    margin-bottom: 12px; 
    color: #111; 
}

/* Purchase Area - Quantity + Buttons Side by Side */
.product-purchase-area {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 10px 0;
    flex-wrap: wrap;
}

/* Quantity */
.quantity-selector { 
    display: flex; 
    align-items: center; 
    gap: 12px;
}
.quantity-selector label { font-size: 16px; font-weight: 600; color: #111; }
.qty-controls { 
    display: flex; 
    align-items: center; 
    border: 1px solid #e5e5e5; 
    border-radius: 8px; 
    overflow: hidden; 
}
.qty-btn { 
    width: 40px; 
    height: 56px; 
    background: #fff; 
    border: none; 
    cursor: pointer; 
    font-size: 18px; 
    color: #111; 
    transition: background 0.2s; 
}
.qty-btn:hover { background: #f5f5f5; }
.qty-input { 
    width: 60px; 
    height: 56px; 
    border: none; 
    text-align: center; 
    font-size: 16px; 
    font-weight: 500; 
}

/* Buttons */
.action-buttons { display: flex; gap: 12px; flex: 1; }
.btn-primary { 
    flex: 1; 
    padding: 16px 32px; 
    background: #111; 
    color: #fff; 
    border: none; 
    border-radius: 30px; 
    font-size: 16px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.2s; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
}
.btn-primary:hover { background: #000; transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.2); }

.btn-favorite { 
    width: 56px; 
    height: 56px; 
    background: #fff; 
    border: 1px solid #e5e5e5; 
    border-radius: 50%; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 20px; 
    color: #111; 
    transition: all 0.2s; 
}
.btn-favorite:hover { border-color: #111; transform: scale(1.05); }
.btn-favorite.active { background: #dc2626; border-color: #dc2626; color: #fff; }

/* Lightbox */
.image-lightbox { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.95); 
    z-index: 9999; 
    align-items: center; 
    justify-content: center; 
}
.image-lightbox.active { display: flex; }
.lightbox-content { position: relative; max-width: 90%; max-height: 90vh; }
.lightbox-image { max-width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox-close { 
    position: absolute; 
    top: -50px; 
    right: 0; 
    background: rgba(255,255,255,0.2); 
    border: none; 
    color: #fff; 
    font-size: 32px; 
    cursor: pointer; 
    width: 50px; 
    height: 50px; 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }
.lightbox-nav { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    width: calc(100% + 100px); 
    left: -50px; 
    display: flex; 
    justify-content: space-between; 
}
.lightbox-nav button { 
    width: 50px; 
    height: 50px; 
    background: rgba(255,255,255,0.9); 
    border: none; 
    border-radius: 50%; 
    cursor: pointer; 
    font-size: 20px; 
    color: #111; 
    transition: all 0.2s; 
}
.lightbox-nav button:hover { background: #fff; transform: scale(1.1); }
.lightbox-counter { 
    position: absolute; 
    bottom: -40px; 
    left: 50%; 
    transform: translateX(-50%); 
    color: #fff; 
    font-size: 14px; 
}

/* Related Products */
.related-section { margin-top: 10px; padding-top: 40px; border-top: 1px solid #e5e5e5; }
.related-section h2 { 
    font-size: 32px; 
    font-weight: 700; 
    text-align: center; 
    margin-bottom: 40px; 
    color: #111; 
}
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { 
    background: #fff; 
    border: 1px solid #e5e5e5;
    overflow: hidden; 
    transition: all 0.3s; 
    text-decoration: none; 
    color: inherit; 
    display: block; 
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.product-card-image { 
    position: relative; 
    padding-top: 120%; 
    background: #f5f5f5; 
}
.product-card-image img { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}
.product-card-title { 
    padding: 16px; 
    font-size: 16px; 
    font-weight: 600; 
    color: #111; 
    line-height: 1.4;
}
.product-card-price { 
    padding: 0 16px 16px; 
    font-size: 18px; 
    font-weight: 700; 
    color: #111; 
}

/* Product Description with Read More */
.product-full-description { margin: 32px 0; }
.product-full-description h3 { 
    font-size: 20px; 
    font-weight: 600; 
    margin-bottom: 16px; 
    color: #111; 
}
.description-content { 
    font-size: 15px; 
    line-height: 1.8; 
    color: #6b6b6b; 
    max-height: 200px; 
    overflow: hidden; 
    position: relative; 
    transition: max-height 0.3s ease;
}
.description-content.expanded { max-height: none; }
.description-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.description-content.expanded::after { opacity: 0; }
.btn-read-more { 
    background: transparent; 
    border: none; 
    color: #111; 
    font-size: 15px; 
    font-weight: 600; 
    cursor: pointer; 
    margin-top: 12px; 
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.btn-read-more:hover { color: #757575; }
.btn-read-more i { 
    transition: transform 0.3s ease; 
    font-size: 12px;
}
.btn-read-more.expanded i { transform: rotate(180deg); }

/* Product Features */
.product-features { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
    margin: 32px 0;
    padding: 24px;
    background: #f9f9f9;
    border-radius: 12px;
}
.feature-item { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}
.feature-icon { 
    width: 48px; 
    height: 48px; 
    background: #111; 
    color: #fff; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 20px; 
    flex-shrink: 0;
}
.feature-text { 
    display: flex; 
    flex-direction: column; 
    gap: 2px; 
}
.feature-text strong { 
    font-size: 14px; 
    font-weight: 600; 
    color: #111; 
}
.feature-text span { 
    font-size: 12px; 
    color: #757575; 
}

/* Responsive */
@media (max-width: 1024px) {
    .product-main { grid-template-columns: 1fr; gap: 40px; }
    .product-info { position: static; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* ✅ Ensure mobile containers have padding */
    .container-fluid,
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .product-container { 
        padding: 20px 16px; /* ✅ Add horizontal padding on mobile */
    }
    .product-main { 
        grid-template-columns: 1fr !important; /* Stack on mobile */
    }
    .product-gallery,
    .main-image {
        max-width: 100%;
        width: 100%;
        height: auto; /* ✅ Auto height on mobile */
        aspect-ratio: 1 / 1; /* ✅ Maintain square ratio */
    }
    .thumbnail-grid {
        max-width: 100%;
    }
    .product-info h1 { font-size: 24px; }
    .price-current, .final-price { font-size: 24px; }
    .thumbnail-grid { grid-template-columns: repeat(3, 1fr); }
    .product-features { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 480px) {
    .product-main { gap: 30px; }
    
    /* Benzer ürünler 2 kolon */
    .related-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px;
    }
    
    .related-grid .product-card {
        max-width: 100%;
    }
    
    .related-grid .product-card .product-image {
        padding-top: 120%;
    }
    
    .related-grid .product-card .product-name {
        font-size: 12px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .related-grid .product-card .product-price {
        font-size: 14px;
    }
    
    /* Quantity ve Butonlar alt alta */
    .product-purchase-area {
        flex-direction: column;
        gap: 15px;
    }
    
    .quantity-selector {
        width: 100%;
        justify-content: space-between;
    }
    
    .qty-controls {
        flex: 1;
        max-width: 140px;
    }
    
    .action-buttons { 
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary {
        width: 100%;
        padding: 14px 24px;
    }
    
    .btn-favorite { 
        width: 100%; 
        border-radius: 30px; 
        height: 50px; 
    }
    
    .thumbnail-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

/* ========================================
   Product Variants/Options Styles - Minimal & Professional
   ======================================== */

.product-options-section {
    margin: 32px 0;
    padding: 0;
    background: transparent;
    border: none;
}

.option-group {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e8e8e8;
}

.option-group:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.option-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #6b6b6b;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.option-label .required {
    color: #dc2626;
    margin-left: 4px;
}

/* Color Options - Clean & Minimal */
.option-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.color-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    border: none;
    background: transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.color-option:hover .color-swatch {
    transform: scale(1.1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.color-option.selected .color-swatch {
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px #111;
}

.color-swatch {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.08);
    display: block;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.color-option:hover .color-swatch {
    border-color: rgba(0, 0, 0, 0.2);
}

.color-option.selected .color-swatch {
    border-color: transparent;
}

.color-label {
    position: absolute;
    bottom: -26px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #999;
    text-align: center;
    white-space: nowrap;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.color-option:hover .color-label,
.color-option.selected .color-label {
    opacity: 1;
}

/* Out of Stock Color Options */
.color-option.out-of-stock {
    opacity: 0.35;
    cursor: not-allowed;
    position: relative;
}

.color-option.out-of-stock .color-swatch {
    filter: grayscale(90%) brightness(1.1);
}

.color-option.out-of-stock:hover .color-swatch {
    transform: none;
    box-shadow: none;
}

/* Button Options (Size, Storage, etc.) - Minimal Style */
.option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-button {
    min-width: 70px;
    padding: 12px 20px;
    border: 1.5px solid #d1d1d1;
    background: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #111;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
}

.option-button:hover {
    border-color: #111;
    background: #fafafa;
    transform: translateY(-1px);
}

.option-button.selected {
    border-color: #111;
    background: #111;
    color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.option-button:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    position: relative;
    color: #999;
}

.option-button:disabled::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #999;
    transform: translate(-50%, -50%) rotate(-15deg);
}

.option-button:disabled:hover {
    background: #fff;
    border-color: #d1d1d1;
    transform: none;
}

/* Out of Stock Button Options */
.option-button.out-of-stock {
    opacity: 0.35;
    cursor: not-allowed;
    position: relative;
    color: #bbb;
    border-color: #e8e8e8;
    background: #fafafa;
}

.option-button.out-of-stock:hover {
    background: #fafafa;
    border-color: #e8e8e8;
    transform: none;
}

/* Dropdown Options */
.option-select {
    width: 100%;
    max-width: 320px;
    padding: 12px 16px;
    border: 1.5px solid #d1d1d1;
    border-radius: 6px;
    font-size: 14px;
    color: #111;
    background: #fff;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23111' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.option-select:hover {
    border-color: #111;
    background-color: #fafafa;
}

.option-select:focus {
    outline: none;
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* Variant Error Message */
.variant-error {
    margin-top: 16px;
    padding: 14px 18px;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid #dc2626;
    border-radius: 8px;
    color: #dc2626;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.variant-error::before {
    content: '⚠️';
    font-size: 18px;
}

/* Shake Animation for Missing Options */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Responsive Design for Variants */
@media (max-width: 768px) {
    .product-options-section {
        margin: 24px 0;
    }
    
    .option-group {
        margin-bottom: 28px;
        padding-bottom: 28px;
    }
    
    .color-swatch {
        width: 44px;
        height: 44px;
    }
    
    .option-button {
        min-width: 65px;
        padding: 11px 18px;
        font-size: 13px;
    }
    
    .option-select {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .option-colors {
        gap: 10px;
    }
    
    .option-label {
        font-size: 12px;
        margin-bottom: 14px;
    }
    
    .color-swatch {
        width: 42px;
        height: 42px;
    }
    
    .option-button {
        min-width: 60px;
        padding: 10px 16px;
    }
    
    .color-label {
        font-size: 12px;
        min-width: 50px;
    }
    
    .option-button {
        min-width: 60px;
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Tahmini Kargo Teslimi - Kompakt */
.estimated-delivery-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    margin-top: 1px;
    font-size: 13px !important;
    color: #166534;
}

.estimated-delivery-box i.fa-truck {
    color: #22c55e;
    font-size: 14px;
}

.estimated-delivery-box strong {
    color: #15803d;
    font-weight: 600;
}

.estimated-delivery-box .fast-badge {
    background: #f97316;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
}

.estimated-delivery-box .fast-badge i {
    font-size: 10px;
}

/* Mobile */
@media (max-width: 480px) {
    .estimated-delivery-box {
        font-size: 12px;
        padding: 8px 12px;
        flex-wrap: wrap;
    }
}

/* ==================== THREE-COLUMN LAYOUT (3-Column) ==================== */

/* Main Container - 3 Column Grid with fixed gallery width */
.product-main-threecol {
    display: grid;
    grid-template-columns: 500px 1fr 260px !important; /* Fixed gallery (500px), flexible info, narrower cart box (260px) */
    gap: 24px;
}

/* Three-Column Gallery - Vertical Thumbnails */
.product-gallery-threecol {
    display: flex; /* ✅ Flex to position sidebar + main-image side by side */
    gap: 12px;
    align-items: flex-start; /* ✅ Prevent height stretching */
}

.product-gallery-threecol .main-image {
    margin-bottom: 0;
    max-width: none;
    border-radius: 8px;
    flex: 1; /* ✅ Main image takes remaining space */
}

.threecol-thumb-sidebar {
    display: flex;
    flex-direction: column; /* ✅ Vertical thumbnails on left side */
    gap: 6px;
    width: 60px;
    flex-shrink: 0; /* ✅ Fixed width sidebar */
}

.threecol-thumb {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    transition: all 0.2s;
    background: #f9fafb;
}

.threecol-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.threecol-thumb:hover {
    border-color: #9ca3af;
}

.threecol-thumb.active {
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

/* Three-Column Product Info - Middle Column (Compact) */
.product-info-threecol {
    position: static;
}

.product-info-threecol h1 {
    font-size: 16px;
    margin-bottom: 6px;
    line-height: 1.3;
}

.product-info-threecol .product-rating-summary {
    font-size: 12px;
    margin-bottom: 10px;
}

.product-info-threecol .product-rating-summary .stars {
    font-size: 12px;
}

.product-info-threecol .product-short-description {
    font-size: 12px;
    line-height: 1.5;
}

.product-info-threecol .product-short-description p {
    font-size: 12px;
    margin-bottom: 8px;
}

.product-info-threecol .product-short-description ul li {
    font-size: 12px;
    margin-bottom: 4px;
}

.product-info-threecol .product-meta-item {
    font-size: 11px;
    padding: 6px 0;
}

.product-info-threecol .product-meta-item .label {
    font-size: 11px;
}

.product-info-threecol .product-meta-item .value {
    font-size: 11px;
}

/* Hide purchase area and features in threecol layout (moved to buy box) */
.product-main-threecol .product-purchase-area {
    display: none;
}

.product-main-threecol .estimated-delivery-box {
    display: none;
}

.product-main-threecol .product-features {
    display: none;
}

/* Buy Box - Right Column */
.buybox {
    position: sticky;
    top: 20px;
    height: fit-content;
    min-width: 220px;
}

.buybox-inner {
    background: #fff;
    border: 1px solid #d5d9d9;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Price Section */
.buybox-price-section {
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 12px;
}

.buybox-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.buybox-price-label {
    font-size: 12px;
    color: #565959;
}

.buybox-price-value {
    font-size: 22px;
    font-weight: 700;
    color: #0f1111;
}

.buybox-price-old {
    margin-top: 3px;
    font-size: 11px;
    color: #565959;
}

.buybox-price-old .strikethrough {
    text-decoration: line-through;
    color: #999;
}

.buybox-discount-badge {
    background: #cc0c39;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 6px;
}

.buybox-price-request {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #f59e0b;
}

.buybox-price-request i {
    font-size: 16px;
    color: #d97706;
}

.buybox-price-request span {
    font-size: 14px;
    font-weight: 700;
    color: #b45309;
}

/* Delivery */
.buybox-delivery {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
    background: #f0fdf4;
    border-radius: 6px;
    margin-bottom: 10px;
}

.buybox-delivery-icon {
    width: 26px;
    height: 26px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    font-size: 11px;
}

.buybox-delivery-text {
    font-size: 11px;
    color: #374151;
    line-height: 1.3;
}

.buybox-delivery-text strong {
    display: block;
    color: #166534;
    margin-bottom: 1px;
    font-size: 12px;
}

/* Stock */
.buybox-stock {
    margin-bottom: 12px;
}

.buybox-in-stock {
    color: #007600;
    font-size: 13px;
    font-weight: 500;
}

.buybox-in-stock i {
    margin-right: 5px;
    font-size: 12px;
}

.buybox-out-stock {
    color: #cc0c39;
    font-size: 13px;
    font-weight: 500;
}

.buybox-out-stock i {
    margin-right: 5px;
    font-size: 12px;
}

/* Quantity */
.buybox-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.buybox-quantity label {
    font-size: 12px;
    color: #0f1111;
}

.buybox-quantity select {
    padding: 6px 24px 6px 10px;
    border: 1px solid #d5d9d9;
    border-radius: 6px;
    background: #f0f2f2;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.buybox-quantity select:hover {
    background: #e7e9ec;
}

/* Actions */
.buybox-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.buybox-add-cart {
    width: 100%;
    padding: 10px 14px;
    background: linear-gradient(180deg, #ffd814 0%, #f7ca00 100%);
    border: 1px solid #f2c200;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    color: #0f1111;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.buybox-add-cart:hover {
    background: linear-gradient(180deg, #f7ca00 0%, #e6b800 100%);
}

.buybox-buy-now {
    width: 100%;
    padding: 10px 14px;
    background: linear-gradient(180deg, #ffa41c 0%, #ff8f00 100%);
    border: 1px solid #ff8f00;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    color: #0f1111;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.buybox-buy-now:hover {
    background: linear-gradient(180deg, #ff8f00 0%, #e67e00 100%);
}

.buybox-contact-btn {
    width: 100%;
    padding: 10px 14px;
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    border: none;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.buybox-contact-btn:hover {
    background: linear-gradient(180deg, #d97706 0%, #b45309 100%);
    color: #fff;
}

/* Favorite */
.buybox-favorite {
    width: 100%;
    padding: 8px;
    background: transparent;
    border: 1px solid #d5d9d9;
    border-radius: 6px;
    font-size: 11px;
    color: #007185;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    margin-bottom: 12px;
}

.buybox-favorite:hover {
    background: #f7fafb;
    border-color: #007185;
}

.buybox-favorite i {
    font-size: 13px;
}

/* Seller Info */
.buybox-seller-info {
    padding: 10px;
    background: #f7f8f8;
    border-radius: 6px;
    margin-bottom: 10px;
}

.buybox-seller-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    padding: 3px 0;
}

.buybox-seller-row .label {
    color: #565959;
}

.buybox-seller-row .value {
    color: #007185;
    font-weight: 500;
}

/* Trust Badges */
.buybox-trust-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.buybox-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 6px;
    background: #f7f8f8;
    border-radius: 5px;
    text-align: center;
}

.buybox-trust-item i {
    font-size: 14px;
    color: #007185;
}

.buybox-trust-item span {
    font-size: 9px;
    color: #565959;
}

/* Responsive - Three-Column Layout */
@media (max-width: 1200px) {
    .product-main-threecol {
        grid-template-columns: 1fr 300px !important;
    }
    
    .product-gallery-threecol {
        grid-column: 1 / -1;
        max-width: 500px;
    }
    
    .product-info-threecol {
        grid-column: 1;
    }
    
    .buybox {
        grid-column: 2;
        grid-row: 2;
    }
}

@media (max-width: 992px) {
    .product-main-threecol {
        grid-template-columns: 1fr !important;
    }
    
    .product-gallery-threecol {
        max-width: 100%;
    }
    
    .buybox {
        position: static;
        grid-column: 1;
        margin: 0 -20px; /* ✅ Expand to edges on tablet */
        padding: 0 20px; /* ✅ Add padding inside */
    }
    
    .threecol-thumb-sidebar {
        flex-direction: row;
        width: auto;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .threecol-thumb {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }
    
    .product-gallery-threecol {
        flex-direction: column-reverse;
    }
}

@media (max-width: 480px) {
    /* ✅ Extra small screens - tighter padding */
    .container-fluid,
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    .product-container {
        padding: 20px 12px; /* ✅ Reduce padding on very small screens */
    }
    
    .buybox {
        margin: 0 -12px; /* ✅ Match container padding */
        padding: 0 12px;
    }
    
    .buybox-inner {
        padding: 16px;
    }
    
    .buybox-price-value {
        font-size: 24px;
    }
    
    .buybox-actions button,
    .buybox-actions a {
        padding: 12px 16px;
    }
}
