/**
 * Detailed Product Page - Content Sections, Sticky Nav, Breadcrumbs & Gallery
 */

/* 1-Column Layout Overrides for Catalog Product View */
body.catalog-product-view .columns .column.main {
    float: none !important;
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
}

body.catalog-product-view .page-title-wrapper.product,
body.catalog-product-view .page-title-wrapper {
    float: none !important;
    width: 100% !important;
    margin: 16px 0 24px 0 !important;
    text-align: left !important;
    clear: both !important;
}

body.catalog-product-view .page-title-wrapper .page-title {
    font-size: 32px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: #0f172a !important;
    margin-bottom: 0 !important;
}

body.catalog-product-view .product.media {
    float: none !important;
    width: 100% !important;
    max-width: 680px !important;
    margin: 0 auto 24px auto !important;
    clear: both !important;
}

body.catalog-product-view .product-info-main {
    float: none !important;
    width: 100% !important;
    margin: 0 auto 32px auto !important;
    text-align: center !important;
    clear: both !important;
}

/* Breadcrumbs Styling */
.breadcrumbs {
    margin: 16px 0 24px 0 !important;
    padding: 0 !important;
}

.breadcrumbs .items,
.breadcrumbs ul {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0 !important;
    font-size: 14px !important;
    color: #94a3b8 !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.breadcrumbs .item,
.breadcrumbs li {
    display: inline-flex !important;
    align-items: center !important;
    color: #94a3b8 !important;
}

.breadcrumbs .item a,
.breadcrumbs li a {
    color: #64748b !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.breadcrumbs .item a:hover,
.breadcrumbs li a:hover {
    color: #0091ff !important;
}

.breadcrumbs .item:not(:last-child)::after,
.breadcrumbs li:not(:last-child)::after {
    content: "•" !important;
    margin: 0 10px !important;
    color: #cbd5e1 !important;
    font-size: 12px !important;
}

.breadcrumbs .item.product,
.breadcrumbs li.product,
.breadcrumbs li strong {
    color: #1e293b !important;
    font-weight: 500 !important;
}

/* Sticky Navigation Bar */
.sticky-product-nav-container {
    width: 100%;
    background-color: #f1f5f9;
    border-radius: 30px;
    margin: 20px 0 32px 0;
    padding: 6px 20px;
    transition: all 0.3s ease;
}

.sticky-product-nav-container.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    background-color: rgba(241, 245, 249, 0.95);
    backdrop-filter: blur(8px);
    padding: 10px 32px;
}

.sticky-product-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.sticky-product-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

.sticky-product-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.sticky-nav-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    transition: color 0.2s ease;
}

.sticky-nav-link:hover,
.sticky-nav-link.active {
    color: #0091ff;
    font-weight: 600;
    text-decoration: none;
}

.nav-separator {
    color: #cbd5e1;
    user-select: none;
}

.btn-sticky-showcase {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background: linear-gradient(90deg, #c7d2fe 0%, #fbcfe8 100%);
    color: #1e1b4b;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-sticky-showcase:hover {
    opacity: 0.9;
    text-decoration: none;
    transform: scale(1.02);
}

/* Content Sections */
.product-detailed-content-wrapper {
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 16px;
}

.product-section {
    margin-bottom: 40px;
}

.product-section .section-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    color: #0091ff;
    margin-bottom: 20px;
}

.product-section .section-content {
    font-size: 16px;
    line-height: 1.65;
    color: #333333;
}

.product-section .section-content p {
    margin-bottom: 16px;
}

.product-section .section-content ul,
.product-section .section-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.product-section .section-content li {
    margin-bottom: 8px;
}

/* Інформаційний блок (clip066) */
.important-note-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background-color: #f0f7ff;
    border: 1px solid #0091ff;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 32px 0;
}

.important-note-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.important-note-content {
    font-size: 15px;
    line-height: 1.55;
    color: #1e293b;
}

.important-note-content p:last-child {
    margin-bottom: 0;
}

/* Showcase Buttons */
.showcase-btn-below-gallery {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.showcase-btn-cta-bottom {
    margin: 48px 0;
    display: flex;
    justify-content: center;
}

.btn-online-showcase {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background-color: #e2e8f0;
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    border-radius: 24px;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.btn-online-showcase:hover {
    background-color: #0091ff;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 145, 255, 0.3);
}

/* Gallery layout tweaks */
.product.media {
    margin-bottom: 32px;
}

.fotorama__stage {
    border-radius: 12px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .sticky-product-title {
        display: none;
    }
    
    .sticky-product-nav-inner {
        justify-content: space-around;
    }

    .btn-sticky-showcase {
        padding: 6px 14px;
        font-size: 13px;
    }

    .page-title-wrapper .page-title {
        font-size: 24px;
    }
}
