/* product/product.php — винесено з inline <style> 20260908_2104 */
:root {
    --blank-blue: #4A90E2;
    --blank-green: #007A35;
    --blank-chat-blue: #2563eb;
    --blank-price: #d4540a;
    --text-gray: #6b7280;
    --text-dark: #1f2937;
}

.breadcrumbs {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    flex-wrap: wrap;
}

.breadcrumb-nav a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: var(--blank-blue);
}

.breadcrumb-separator {
    color: #adb5bd;
    font-weight: bold;
}

.breadcrumb-current {
    color: #495057;
    font-weight: 600;
}

.single-product-section {
    padding: 40px 0;
    background-color: #ffffff;
}

.single-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.single-product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.single-main-gallery {
    aspect-ratio: 3/4;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
    background: #ffffff;
}

.single-main-gallery:hover {
    transform: scale(1.02);
}

.single-main-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.single-gallery-thumb {
    aspect-ratio: 3/4;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: #ffffff;
    border: 2px solid transparent;
}

.single-gallery-thumb:hover,
.single-gallery-thumb.active {
    border-color: var(--blank-blue);
    transform: scale(1.05);
}

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

.single-product-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.single-product-header {
    margin-bottom: 5px;
}

.single-product-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.2;
}

.single-product-article {
    font-size: 14px;
    color: var(--text-gray);
}

.single-product-prices {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 8px 0;
}

.single-current-price {
    font-size: 42px;
    font-weight: 700;
    color: var(--blank-price);
}

.single-old-price {
    font-size: 32px;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
}

.delivery-notice {
    background: linear-gradient(135deg, #fff3e0, #ffe0b3);
    border: 1px solid #ff9800;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 15px;
    color: #1f2937;
    font-weight: 500;
    text-align: left;
}

.delivery-notice-text {
    font-size: 16px;
    line-height: 1.5;
}

.delivery-notice-text strong {
    color: #dc3545;
    font-weight: 700;
}

.single-size-selection {
    margin: 0 0 10px 0;
}

.single-size-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.single-size-label {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.single-size-chart-btn {
    background: none;
    border: 1px solid #000;
    color: #000;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.single-size-chart-btn:hover {
    background: #000;
    color: white;
}

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

.single-size-option {
    background: white;
    border: 1px solid #000;
    border-radius: 8px;
    padding: 2px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: center;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-size-option:hover {
    border-color: var(--blank-blue);
}

.single-size-option.active {
    border-color: var(--blank-blue);
    background: var(--blank-blue);
    color: white;
}

.single-size-option.out-of-stock {
    background: #f5f5f5;
    border-color: #ddd;
    color: #999;
    cursor: not-allowed;
}

.single-product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 12px 0;
}

.single-buy-button {
    background-color: var(--blank-green);
    color: #ffffff;
    padding: 16px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 122, 53, 0.2);
}

.single-buy-button:hover {
    background-color: #005a28;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 53, 0.3);
}

.single-chat-button {
    background: var(--blank-chat-blue);
    color: #ffffff;
    border: none;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.single-chat-button:hover {
    background: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.single-chat-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.single-product-description {
    padding: 12px 0 0 0;
    background: transparent;
}

.single-description-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.single-description-content {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-gray);
}

.similar-products-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.similar-products-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin: 0 0 40px 0;
}

.similar-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1240px) {
    .similar-products-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
}

@media (max-width: 1024px) {
    .single-product-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 860px) {
    .similar-products-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
    }
}

@media (max-width: 768px) {
    .breadcrumb-nav {
        font-size: 13px;
    }
    
    .single-product-section {
        padding: 20px 0;
    }
    
    .single-product-title {
        font-size: 28px;
        text-align: center;
    }
    
    .single-product-article {
        text-align: center;
    }
    
    .single-product-prices {
        justify-content: center;
        flex-direction: row;
        gap: 10px;
        margin: 10px 0;
    }
    
    .single-current-price {
        font-size: 38px;
    }
    
    .single-old-price {
        font-size: 28px;
    }
    
    .delivery-notice {
        padding: 14px;
        margin-bottom: 12px;
    }
    
    .delivery-notice-text {
        font-size: 17px;
        line-height: 1.6;
    }
    
    .single-product-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .single-size-options {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }
    
    .single-size-option {
        width: 100%;
        aspect-ratio: 1/1;
        min-height: 60px;
        padding: 8px 4px;
        font-size: 18px;
    }
    
    .single-gallery-thumbnails {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .similar-products-section {
        padding: 40px 0;
    }
    
    .similar-products-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .single-description-content {
        font-size: 18px;
        line-height: 1.7;
    }
}
