/* Nike-Style Product Detail Page */
.product-detail-page { background: #fff; padding: 0; min-height: 60vh; overflow-x: hidden; }
.product-container { max-width: 1200px; margin: 0 auto; padding: 20px; box-sizing: border-box; }

/* Breadcrumb */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    font-size: 13px;
    color: #6b7280;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.breadcrumb-nav a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb-nav a:hover {
    color: #111;
}
.breadcrumb-nav .separator {
    color: #d1d5db;
}
.breadcrumb-nav .current {
    color: #374151;
    font-weight: 500;
}

/* ========================================
   PRODUCT MAIN - 2 COLUMN LAYOUT
   ======================================== */
.product-main { 
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px; 
    margin-bottom: 40px;
    align-items: start;
}

/* ========================================
   GALLERY - LEFT COLUMN
   ======================================== */
.product-gallery { 
    position: sticky;
    top: 20px;
    width: 100%;
}

.main-image { 
    width: 100%; 
 
    overflow: hidden; 
    position: relative; 
    cursor: zoom-in;
    margin-bottom: 12px;
  
}

.main-image img { 
    width: 100%; 
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease; 
}
.main-image:hover img { transform: scale(1.05); }

/* ========================================
   PRODUCT INFO - RIGHT COLUMN (Product Detail Page Only)
   ======================================== */
.product-main > .product-info { 
    width: 100%;
}

.product-gallery .main-image img { 
    width: 100%; 
    height: auto;
    display: block;
    transition: transform 0.3s ease; 
}
.product-gallery .main-image:hover img { transform: scale(1.05); }

.thumbnail-grid { 
    display: grid; 
    grid-template-columns: repeat(5, 1fr); 
    gap: 10px; 
}
.thumbnail { 
    cursor: pointer; 
    background: #f5f5f5; 
    border-radius: 8px; 
    overflow: hidden; 
    border: 2px solid transparent; 
    transition: all 0.2s; 
    aspect-ratio: 1 / 1;
    position: relative;
    padding: 8px;
    box-sizing: border-box;
}
.thumbnail img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain;
}
.thumbnail:hover { border-color: #d5d5d5; }
.thumbnail.active { border-color: #111; }

.product-info h1 { 
    font-size: 24px; 
    font-weight: 600; 
    color: #111; 
    margin-bottom: 8px; 
    line-height: 1.3; 
}

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

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

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

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

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

.product-rating-summary .rating-count:hover {
    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;
}

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

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

/* Price */
.product-price { 
    margin: 16px 0; 
    display: flex; 
    align-items: baseline; 
    gap: 12px; 
    flex-wrap: wrap; 
}
.price-current, .final-price { 
    font-size: 28px; 
    font-weight: 700; 
    color: #111; 
}
.price-original, .old-price { 
    font-size: 16px; 
    color: #9ca3af; 
    text-decoration: line-through; 
}
.discount-badge { 
    background: #dc2626; 
    color: #fff; 
    padding: 4px 10px; 
    border-radius: 4px; 
    font-size: 13px; 
    font-weight: 600;
}

/* Stock */
.product-stock { margin-bottom: 12px; }
.in-stock { color: #059669; font-weight: 500; font-size: 14px; }
.out-stock { color: #dc2626; font-weight: 500; font-size: 14px; }

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

.shipping-box,
.delivery-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    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: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    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: 18px;
    height: 18px;
    stroke: #6b7280;
}

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

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

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

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

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

.shipping-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

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

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

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

@media (max-width: 576px) {
    .shipping-box,
    .delivery-box {
        padding: 8px 10px;
    }
    
    .shipping-icon,
    .delivery-icon {
        width: 28px;
        height: 28px;
    }
    
    .shipping-icon svg,
    .delivery-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .shipping-label,
    .delivery-label {
        font-size: 12px;
    }
    
    .shipping-badge {
        padding: 3px 6px;
        font-size: 9px;
    }
}

/* Product Description - Compact */
.product-description { 
    margin: 8px 0; 
    padding: 8px 0; 
    line-height: 1.6; 
    color: #555; 
    font-size: 13px;
}
.product-description h3 { 
    font-size: 15px; 
    font-weight: 600; 
    margin-bottom: 8px; 
    color: #111; 
}

/* Purchase Area - Compact */
.product-purchase-area {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    flex-wrap: wrap;
}

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

/* Buttons - Compact */
.action-buttons { display: flex; gap: 10px; flex: 1; }
.btn-primary { 
    flex: 1; 
    padding: 12px 24px; 
    background: #10b981; 
    color: #fff; 
    border: none; 
    border-radius: 8px; 
    font-size: 14px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.2s; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
}
.btn-primary:hover { background: #059669; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16,185,129,0.3); }

.btn-favorite { 
    width: 40px; 
    height: 40px; 
    background: #fff; 
    border: 1px solid #e5e5e5; 
    border-radius: 8px; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 16px; 
    color: #6b7280; 
    transition: all 0.2s; 
    flex-shrink: 0;
}
.btn-favorite:hover { border-color: #dc2626; color: #dc2626; }
.btn-favorite.active { background: #dc2626; border-color: #dc2626; color: #fff; }

/* ==================== PRODUCT IMAGE MODAL ==================== */
body.modal-open {
    overflow: hidden;
}

.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

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

.product-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.product-modal-container {
    position: relative;
    width: 90%;
    max-width: 950px;
    max-height: 85vh;
    display: flex;
    flex-direction: row;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

/* Modal Left - Main Image */
.product-modal-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #fff;
    padding: 30px;
    min-height: 450px;
}

.product-modal-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-modal-image {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Navigation buttons */
.product-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #374151;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.product-modal-nav:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.product-modal-prev { left: 15px; }
.product-modal-next { right: 15px; }

/* Counter */
.product-modal-counter {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 13px;
}

/* Modal Right - Sidebar */
.product-modal-sidebar {
    width: 260px;
    background: #fff;
    border-left: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.product-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    gap: 12px;
}

.product-modal-title {
    font-size: 14px;
    font-weight: 500;
    color: #111;
    line-height: 1.4;
    margin: 0;
    flex: 1;
}

.product-modal-close {
    width: 28px;
    height: 28px;
    border: 1px solid #d5d5d5;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    flex-shrink: 0;
}

.product-modal-close:hover {
    background: #f3f4f6;
    border-color: #999;
}

/* Zoom controls */
.product-modal-zoom-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.product-modal-zoom-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #d5d5d5;
    background: #f7f7f7;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #374151;
}

.product-modal-zoom-btn:hover {
    background: #eee;
    border-color: #999;
}

/* Thumbnails */
.product-modal-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
    flex: 1;
    align-content: flex-start;
    overflow-y: auto;
}

.product-modal-thumb {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    background: #fff;
}

.product-modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.product-modal-thumb.active {
    border-color: #2563eb;
}

/* Modal Mobile */
@media (max-width: 768px) {
    .product-modal-container {
        flex-direction: column;
        width: 95%;
        max-height: 90vh;
    }
    
    .product-modal-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e5e7eb;
        max-height: 180px;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .product-modal-header {
        width: 100%;
        padding: 12px;
    }
    
    .product-modal-zoom-controls {
        padding: 8px 12px;
        border-bottom: none;
        border-right: 1px solid #e5e7eb;
    }
    
    .product-modal-thumbs {
        padding: 8px 12px;
        flex: 1;
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .product-modal-body {
        min-height: 300px;
        padding: 20px;
    }
    
    .product-modal-thumb {
        width: 42px;
        height: 42px;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .product-modal-container {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .product-modal-body {
        min-height: 250px;
        padding: 15px;
    }
    
    .product-modal-nav {
        width: 36px;
        height: 36px;
    }
}

/* ========================================
   RELATED PRODUCTS
   ======================================== */
.related-section { 
    margin-top: 40px; 
    padding-top: 40px; 
    border-top: 1px solid #e5e5e5; 
}

.related-section h2 { 
    font-size: 20px; 
    font-weight: 600; 
    margin-bottom: 20px; 
    color: #111; 
}

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

@media (max-width: 1024px) {
    .related-section .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .related-section .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .related-section {
        margin-top: 30px;
        padding-top: 30px;
    }
}

@media (max-width: 480px) {
    .product-container {
        padding: 15px 12px;
    }
    
    .related-section .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* Product Description with Read More */
.product-full-description { margin: 20px 0; }
.product-full-description h3 { 
    font-size: 16px; 
    font-weight: 600; 
    margin-bottom: 12px; 
    color: #111; 
}
.description-content { 
    font-size: 14px; 
    line-height: 1.7; 
    color: #6b6b6b; 
    max-height: 150px; 
    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: 50px;
    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: 13px; 
    font-weight: 600; 
    cursor: pointer; 
    margin-top: 8px; 
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.btn-read-more:hover { color: #757575; }
.btn-read-more i { 
    transition: transform 0.3s ease; 
    font-size: 11px;
}
.btn-read-more.expanded i { transform: rotate(180deg); }

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

/* ========================================
   RESPONSIVE - 2 Column Layout
   ======================================== */

/* Tablet */
@media (max-width: 992px) {
    .product-main { 
        grid-template-columns: 1fr; 
        gap: 32px; 
    }
    .product-gallery {
        position: static;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .product-container { 
        padding: 16px;
    }
    
    .breadcrumb-nav {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .product-main { 
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .product-gallery {
        max-width: 100%;
    }
    
    .main-image {
        border-radius: 8px;
    }
    
    .thumbnail-grid { 
        grid-template-columns: repeat(5, 1fr); 
        gap: 8px;
    }
    
    .product-info h1 { 
        font-size: 20px; 
    }
    
    .price-current, .final-price { 
        font-size: 24px; 
    }
    
    .product-features { 
        grid-template-columns: 1fr; 
        gap: 12px; 
    }
    
    .related-section { 
        margin-top: 32px; 
        padding-top: 24px; 
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .product-container {
        padding: 12px;
    }
    
    .product-main { 
        gap: 20px; 
    }
    
    .product-info h1 {
        font-size: 18px;
    }
    
    .price-current, .final-price {
        font-size: 22px;
    }
    
    .thumbnail-grid { 
        grid-template-columns: repeat(4, 1fr); 
        gap: 6px;
    }
    
    /* Related Products Mobile Fix */
    .related-section .products-grid .product-card {
        max-width: 100%;
        overflow: hidden;
    }
    
    /* Quantity ve Butonlar */
    .product-purchase-area {
        flex-direction: column;
        gap: 12px;
    }
    
    .quantity-selector {
        width: 100%;
        justify-content: space-between;
    }
    
    .action-buttons { 
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .btn-primary {
        width: 100%;
        padding: 14px 24px;
    }
    
    .btn-favorite { 
        width: 100%; 
        height: 48px;
    }
}

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

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

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

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

.option-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #6b6b6b;
    margin-bottom: 10px;
    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: 8px;
}

.color-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    border: none;
    background: transparent;
    transition: all 0.2s ease;
    position: relative;
}

.color-option:hover .color-swatch {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.08);
    display: block;
    transition: all 0.2s ease;
    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: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    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: 8px;
}

.option-button {
    min-width: 50px;
    padding: 8px 14px;
    border: 1px solid #d1d1d1;
    background: #fff;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #111;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

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

.option-button.selected {
    border-color: #111;
    background: #111;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.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: 280px;
    padding: 10px 14px;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    font-size: 13px;
    color: #111;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    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 12px center;
    padding-right: 36px;
}

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

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

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

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

/* 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 !important;
    grid-template-columns: 550px 1fr 280px !important; /* Larger gallery (550px), flexible info, cart box (280px) */
    gap: 24px !important;
}

/* Three-Column Gallery - Vertical Thumbnails on LEFT, Main Image on RIGHT */
.product-gallery-threecol {
    display: flex !important;
    flex-direction: row !important; /* Horizontal layout: thumbnails left, image right */
    gap: 12px !important;
    align-items: flex-start !important;
    max-width: 550px !important;
    width: 100% !important;
}

/* Main image in threecol - MUST be visible and sized properly */
.product-gallery-threecol .main-image {
    margin-bottom: 0 !important;
    max-width: none !important;
    border-radius: 8px !important;
    flex: 1 1 auto !important;
    width: calc(100% - 77px) !important; /* Full width minus thumbnail sidebar */
    min-width: 350px !important;
    height: 480px !important;
    min-height: 400px !important;
    aspect-ratio: 1 / 1 !important;
    display: block !important;
    position: relative !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    overflow: hidden !important;
    cursor: zoom-in !important;
    z-index: 1 !important;
}

.product-gallery-threecol .main-image img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Fill entire container */
    pointer-events: none !important; /* Click goes to parent */
}

/* Thumbnail sidebar - vertical on left side */
.threecol-thumb-sidebar {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 65px !important;
    min-width: 65px !important;
    flex-shrink: 0 !important;
    order: -1 !important; /* Force thumbnails on left side */
}

.threecol-thumb {
    width: 55px;
    height: 55px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    transition: all 0.2s;
    background: #fff;
    padding:0px
}

.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: 18px;
    margin-bottom: 8px;
    line-height: 1.3;
}

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

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

/* Compact spacing for threecol product-info elements */
.product-info-threecol .product-detail-badges {
    margin-bottom: 8px;
}

.product-info-threecol .product-brand {
    margin-bottom: 10px;
}

.product-info-threecol .product-price {
    margin-bottom: 8px;
}

.product-info-threecol .stock-info {
    margin-bottom: 10px;
}

.product-info-threecol .shipping-info-box,
.product-info-threecol .delivery-info-box {
    margin-bottom: 10px;
    padding: 10px;
}

.product-info-threecol .product-short-description {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 10px;
}

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

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

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

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

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

/* 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 280px !important;
    }
    
    .product-gallery-threecol {
        grid-column: 1 / -1 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .product-gallery-threecol .main-image {
        width: calc(100% - 77px) !important;
        min-width: 300px !important;
        height: 400px !important;
    }
    
    .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;
        gap: 20px !important;
    }
    
    .product-gallery-threecol {
        max-width: 100% !important;
        flex-direction: row !important; /* Keep thumbnails on left on tablet */
    }
    
    .product-gallery-threecol .main-image {
        width: calc(100% - 77px) !important;
        min-width: 250px !important;
        height: 350px !important;
    }
    
    .buybox {
        position: static;
        grid-column: 1;
        margin: 0 -20px;
        padding: 0 20px;
    }
    
    .threecol-thumb-sidebar {
        flex-direction: column !important;
        width: 65px !important;
        min-width: 65px !important;
    }
    
    .threecol-thumb {
        width: 55px !important;
        height: 55px !important;
        flex-shrink: 0 !important;
    }
}

@media (max-width: 768px) {
    .product-gallery-threecol {
        flex-direction: column-reverse !important; /* Image on top, thumbnails below on mobile */
    }
    
    .product-gallery-threecol .main-image {
        width: 100% !important;
        min-width: unset !important;
        height: auto !important;
        min-height: 300px !important;
        aspect-ratio: 1 / 1 !important;
    }
    
    .threecol-thumb-sidebar {
        flex-direction: row !important;
        width: 100% !important;
        min-width: unset !important;
        overflow-x: auto !important;
        padding-bottom: 8px !important;
        order: 0 !important;
    }
    
    .threecol-thumb {
        width: 50px !important;
        height: 50px !important;
        flex-shrink: 0 !important;
    }
}

@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;
    }
}

/* ========================================
   ENHANCED MOBILE EXPERIENCE - ALL LAYOUTS
   Premium Mobile UX for Product Detail Pages
   ======================================== */

/* ===== GLOBAL MOBILE ENHANCEMENTS ===== */

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
}

/* Smooth scrolling */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Touch-friendly tap targets (minimum 44x44px) */
@media (max-width: 768px) {
    button, 
    a, 
    input[type="button"], 
    input[type="submit"],
    .btn-primary,
    .btn-favorite,
    .thumbnail,
    .color-option,
    .option-button {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Disable hover effects on touch devices */
    @media (hover: none) {
        .main-image:hover img {
            transform: none;
        }
        
        .thumbnail:hover {
            transform: none;
        }
        
        .product-card:hover {
            transform: none;
            box-shadow: none;
        }
    }
}

/* ===== DEFAULT LAYOUT - MOBILE FIXES ===== */
@media (max-width: 768px) {
    /* Product detail page base */
    .product-detail-page {
        padding: 0;
        min-height: auto;
    }
    
    /* Gallery improvements */
    .product-gallery {
        margin: 0;
        padding: 0;
    }
    
    .main-image {
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin-bottom: 8px;
        margin-left: -16px;
        margin-right: -16px;
        width: calc(100% + 32px);
        max-width: none;
    }
    
    /* Thumbnails horizontal scroll on mobile */
    .thumbnail-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding: 8px 0;
        margin: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .thumbnail-grid::-webkit-scrollbar {
        display: none;
    }
    
    .thumbnail {
        flex: 0 0 60px;
        width: 60px;
        height: 60px;
        border-radius: 6px;
    }
    
    /* Product info */
    .product-info {
        padding: 0;
    }
    
    .product-info h1 {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    
    /* Price section */
    .product-price {
        margin: 12px 0;
        gap: 10px;
    }
    
    .price-current, .final-price {
        font-size: 22px;
    }
    
    .price-original, .old-price {
        font-size: 16px;
    }
    
    /* Stock info */
    .product-stock {
        margin-bottom: 12px;
    }
    
    /* Shipping info compact */
    .product-shipping-info {
        margin: 12px 0;
        gap: 6px;
    }
    
    .shipping-box,
    .delivery-box {
        padding: 10px 12px;
    }
    
    .shipping-icon,
    .delivery-icon {
        width: 32px;
        height: 32px;
    }
    
    .shipping-label,
    .delivery-label {
        font-size: 13px;
    }
    
    /* Purchase area - normal flow (not sticky) */
    .product-purchase-area {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin: 16px 0;
        padding: 0;
    }
    
    .quantity-selector {
        display: flex;
        width: 100%;
        justify-content: space-between;
    }
    
    .action-buttons {
        flex: 1;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .btn-primary {
        width: 100%;
        padding: 14px 16px;
        font-size: 15px;
        border-radius: 8px;
    }
    
    .btn-favorite {
        width: 100%;
        height: 50px;
        border-radius: 8px;
    }
    
    /* No extra padding needed */
    .product-detail-page {
        padding-bottom: 20px;
    }
    
    /* Description section */
    .product-description {
        margin: 16px 0;
        padding: 16px 0;
    }
    
    .product-full-description h3 {
        font-size: 18px;
    }
    
    .description-content {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* Features grid */
    .product-features {
        padding: 16px;
        margin: 16px 0;
        gap: 12px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .feature-text strong {
        font-size: 13px;
    }
    
    .feature-text span {
        font-size: 11px;
    }
}

/* ===== EXTRA SMALL SCREENS (iPhone SE, etc.) ===== */
@media (max-width: 375px) {
    .product-container {
        padding: 16px 10px;
    }
    
    .main-image {
        margin-left: -10px;
        margin-right: -10px;
        width: calc(100% + 20px);
    }
    
    .product-info h1 {
        font-size: 18px;
    }
    
    .price-current, .final-price {
        font-size: 20px;
    }
    
    .product-purchase-area {
        padding: 10px 12px;
    }
    
    .btn-primary {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .btn-favorite {
        width: 46px;
        height: 46px;
    }
    
    .thumbnail {
        flex: 0 0 50px;
        width: 50px;
        height: 50px;
    }
}

/* ===== THREE-COLUMN LAYOUT - MOBILE FIXES ===== */
@media (max-width: 768px) {
    .product-main-threecol {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }
    
    .product-gallery-threecol {
        order: 1;
        flex-direction: column !important;
        gap: 8px !important;
        max-width: 100% !important;
    }
    
    .product-gallery-threecol .main-image {
        width: calc(100% + 32px) !important;
        margin-left: -16px !important;
        margin-right: -16px !important;
        height: auto !important;
        min-height: 280px !important;
        max-height: 400px !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }
    
    .threecol-thumb-sidebar {
        order: 2;
        flex-direction: row !important;
        width: 100% !important;
        overflow-x: auto !important;
        gap: 8px !important;
        padding: 8px 0 !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .threecol-thumb-sidebar::-webkit-scrollbar {
        display: none;
    }
    
    .threecol-thumb {
        flex: 0 0 55px !important;
        width: 55px !important;
        height: 55px !important;
    }
    
    .product-info-threecol {
        order: 3;
        padding: 0 !important;
    }
    
    .product-info-threecol h1 {
        font-size: 20px !important;
    }
    
    /* Buybox mobile - full width card */
    .buybox {
        order: 4;
        position: static !important;
        margin: 16px -16px 80px -16px !important;
        padding: 0 !important;
        width: calc(100% + 32px) !important;
    }
    
    .buybox-inner {
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 16px;
    }
    
    .buybox-price-value {
        font-size: 26px;
    }
    
    .buybox-actions {
        gap: 10px;
    }
    
    .buybox-add-cart,
    .buybox-buy-now,
    .buybox-contact-btn {
        padding: 14px 16px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .buybox-quantity {
        justify-content: space-between;
    }
    
    .buybox-quantity select {
        padding: 10px 30px 10px 14px;
        font-size: 14px;
    }
    
    .buybox-trust-badges {
        gap: 8px;
    }
    
    .buybox-trust-item {
        padding: 10px 8px;
    }
    
    .buybox-trust-item i {
        font-size: 16px;
    }
    
    .buybox-trust-item span {
        font-size: 10px;
    }
}

/* ===== MODAL - MOBILE ENHANCEMENTS ===== */
@media (max-width: 768px) {
    .product-modal {
        align-items: flex-end; /* Slide up from bottom */
    }
    
    .product-modal-container {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 95vh !important;
        border-radius: 16px 16px 0 0 !important;
        flex-direction: column !important;
    }
    
    .product-modal-body {
        flex: 1;
        min-height: 50vh;
        padding: 16px;
    }
    
    .product-modal-image {
        max-height: 50vh;
    }
    
    .product-modal-nav {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    .product-modal-prev {
        left: 8px;
    }
    
    .product-modal-next {
        right: 8px;
    }
    
    .product-modal-counter {
        bottom: 10px;
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .product-modal-sidebar {
        width: 100% !important;
        max-height: 45vh;
        border-left: none !important;
        border-top: 1px solid #e5e7eb;
    }
    
    .product-modal-header {
        padding: 12px 16px;
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 10;
    }
    
    .product-modal-title {
        font-size: 15px;
    }
    
    .product-modal-close {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .product-modal-zoom-controls {
        padding: 10px 16px;
        justify-content: center;
        gap: 12px;
    }
    
    .product-modal-zoom-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .product-modal-thumbs {
        padding: 12px 16px;
        gap: 10px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .product-modal-thumb {
        flex: 0 0 56px;
        width: 56px;
        height: 56px;
    }
}

/* ===== PRODUCT OPTIONS - MOBILE ===== */
@media (max-width: 768px) {
    .product-options-section {
        margin: 20px 0;
    }
    
    .option-group {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    
    .option-label {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    /* Color options - larger touch targets */
    .option-colors {
        gap: 10px;
    }
    
    .color-swatch {
        width: 44px;
        height: 44px;
    }
    
    .color-label {
        font-size: 10px;
        bottom: -20px;
    }
    
    /* Size/Option buttons - full width on small screens */
    .option-buttons {
        gap: 8px;
    }
    
    .option-button {
        min-width: auto;
        flex: 1 1 calc(33.333% - 6px);
        padding: 12px 10px;
        font-size: 13px;
        text-align: center;
        justify-content: center;
    }
    
    .option-select {
        max-width: 100%;
        padding: 14px 40px 14px 14px;
        font-size: 15px;
    }
}

/* ===== BREADCRUMB - MOBILE ===== */
@media (max-width: 768px) {
    .breadcrumb-nav {
        padding: 10px 0;
        font-size: 12px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .breadcrumb-nav::-webkit-scrollbar {
        display: none;
    }
    
    .breadcrumb-nav a {
        white-space: nowrap;
        max-width: none;
    }
    
    .breadcrumb-nav .current {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
    }
}

/* ===== SAFE AREA SUPPORT (iPhone X+) ===== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    @media (max-width: 768px) {
        .product-purchase-area {
            padding-bottom: calc(12px + env(safe-area-inset-bottom));
        }
        
        .product-detail-page {
            padding-bottom: calc(80px + env(safe-area-inset-bottom));
        }
        
        .product-modal-container {
            padding-bottom: env(safe-area-inset-bottom);
        }
    }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .main-image {
        max-height: 60vh;
        aspect-ratio: auto;
    }
    
    .product-gallery-threecol .main-image {
        max-height: 60vh !important;
        min-height: 200px !important;
    }
    
    .product-modal-body {
        min-height: 40vh;
    }
    
    .product-modal-image {
        max-height: 40vh;
    }
    
    .product-modal-sidebar {
        max-height: 50vh;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    /* Future dark mode support placeholder */
}

/* ===== PRINT STYLES ===== */
@media print {
    .product-purchase-area,
    .product-modal,
    .btn-favorite,
    .related-section {
        display: none !important;
    }
    
    .product-detail-page {
        padding-bottom: 0;
    }
}
