/**
 * Product Page Styles
 * @package R1BBIT
 */

:root {
    --color-primary: #10b981;
    --color-text: #e4e4e7;
    --color-text-secondary: #a1a1aa;
    --color-text-muted: #71717a;
}

/* Main Layout */
main.product-page {
    /* background-image: linear-gradient(133deg, #0F172A 53%, #0F172A 100%); */
    color: var(--color-text);
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

/* Breadcrumbs */
.product-breadcrumbs-section {
    background: transparent;
    padding: 1rem 0;
}

.product-breadcrumbs .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.product-breadcrumbs .breadcrumb-item a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.product-breadcrumbs .breadcrumb-item a:hover {
    color: var(--color-primary);
}

.product-breadcrumbs .breadcrumb-item.active {
    color: var(--color-primary);
    font-size: 0.875rem;
}

.product-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: var(--color-text-muted);
}

/* Product Hero */
.product-hero-section {
    position: relative;
    /* background: linear-gradient(145deg, #18181b, #0f0f10); */
    border-top: 1px solid rgba(16, 185, 129, 0.2);
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    overflow: hidden;
}

/* Hero Image Container */
.product-hero-image-container {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 700px;
    overflow: hidden;
}

.product-hero-image {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    margin: auto;
    display: block;
}

/* Gradient overlay for better text visibility */
.product-hero-image-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 10, 11, 0.7) 0%, transparent 30%, transparent 70%, rgba(10, 10, 11, 0.7) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Decorative Corners */
.product-hero-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-primary);
    opacity: 0.4;
    z-index: 2;
}

.product-hero-corner.top-left {
    top: 30px;
    left: 40px;
    border-right: none;
    border-bottom: none;
}

.product-hero-corner.top-right {
    top: 30px;
    right: 40px;
    border-left: none;
    border-bottom: none;
}

.product-hero-corner.bottom-left {
    bottom: 30px;
    left: 40px;
    border-right: none;
    border-top: none;
}

.product-hero-corner.bottom-right {
    bottom: 30px;
    right: 40px;
    border-left: none;
    border-top: none;
}

/* Product Info Overlay - снизу слева поверх изображения */
.product-info-overlay {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 2;
    max-width: 800px;
}

.product-sku {
    font-size: 0.6875rem;
    color: var(--color-primary);
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.product-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.product-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin: 0;
}

/* Thumbnails - внутри hero секции */
.product-thumbnails-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px 40px;
    /* background: rgba(15, 15, 16, 0.9); */
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.product-thumbnails {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    /* background: var(--bg-card); */
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail:not(.active) {
    border-color: rgba(255, 255, 255, 0.1);
    opacity: 0.6;
    transform: scale(1);
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Features */
.product-features-section {
    padding: 2.5rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.feature-card {
    background: rgba(26, 29, 46, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.25rem;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 10px;
    padding: 20px;
    cursor: default;
    transition: 0.3s;
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.625rem;
}

.feature-title {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.feature-description {
    font-size: 0.6875rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* Tabs */
.product-tabs-section {
    padding: 2.5rem 0 5rem;
}

.product-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2.5rem;
    gap: 0;
}

.product-tabs .nav-link {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 1rem 2rem;
    color: var(--color-text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.product-tabs .nav-link.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.tab-content {
    min-height: 200px;
}

/* Specs Grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1rem;
}   

.spec-item {
    background: rgb(22 24 38 / 80%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.25rem;
    transition: all 0.3s;
}

.spec-item:hover {
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}

.spec-label {
    font-size: 0.6875rem;
    color: var(--color-primary);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.spec-value {
    font-size: 0.875rem;
    color: var(--color-text);
    font-weight: 500;
}

/* Description */
.product-description {
    max-width: 800px;
}

.product-description p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

/* Documentation */
.product-documentation {
    max-width: 800px;
}

.product-documentation-content {
    margin-bottom: 2rem;
}

.product-documentation-content p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.product-documentation-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.product-documentation-content h1,
.product-documentation-content h2,
.product-documentation-content h3,
.product-documentation-content h4,
.product-documentation-content h5,
.product-documentation-content h6 {
    color: var(--color-text);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.product-documentation-content ul,
.product-documentation-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: var(--color-text-secondary);
}

.product-documentation-content li {
    margin-bottom: 0.5rem;
}

.product-documentation-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.doc-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.5rem;
    /* background: var(--bg-card); */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
}

.doc-link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.doc-icon {
    font-size: 18px;
}

/* Responsive */
@media (max-width: 991.98px) {
    .product-hero-image-container {
        height: 50vh;
        min-height: 350px;
    }
    
    .product-info-overlay {
        bottom: 30px;
        left: 30px;
    }
    
    .product-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 767.98px) {
    .product-hero-image-container {
        height: 45vh;
        min-height: 300px;
    }
    
    .product-hero-corner {
        width: 30px;
        height: 30px;
    }
    
    .product-hero-corner.top-left,
    .product-hero-corner.bottom-left {
        left: 20px;
    }
    
    .product-hero-corner.top-right,
    .product-hero-corner.bottom-right {
        right: 20px;
    }
    
    .product-hero-corner.top-left,
    .product-hero-corner.top-right {
        top: 20px;
    }
    
    .product-hero-corner.bottom-left,
    .product-hero-corner.bottom-right {
        bottom: 20px;
    }
    
    .product-info-overlay {
        bottom: 20px;
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .product-sku {
        font-size: 0.625rem;
    }
    
    .product-title {
        font-size: 1.75rem;
    }
    
    .product-subtitle {
        font-size: 1rem;
    }
    
    .product-thumbnails-wrapper {
        padding: 15px 20px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .product-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.75rem;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}
