/* ============================================
   GrowCommerce - Documentation Page
   ============================================ */
/* Reuse support search styles */
.support-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    padding: 0.875rem 1.25rem;
    max-width: 500px;
    margin: 1.5rem auto 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.support-search svg {
    width: 18px;
    height: 18px;
    color: #9ca3af;
    flex-shrink: 0;
}

.support-search-input {
    border: none;
    background: none;
    outline: none;
    font-size: 0.9375rem;
    width: 100%;
    font-family: inherit;
    color: #1f2937;
}

/* Layout */
.docs-layout {
    padding: 2rem 0 4rem;
}

.docs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
}

@media (min-width: 1024px) {
    .docs-grid {
        grid-template-columns: 260px 1fr;
    }
}

/* Sidebar */
.docs-sidebar {
    position: sticky;
    top: 88px;
    align-self: start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.sidebar-toggle {
    display: none;
}

@media (max-width: 1023px) {
    .docs-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 300px;
        background: white;
        z-index: 2000;
        padding: 1.5rem;
        box-shadow: 5px 0 20px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        max-height: 100vh;
    }

    .docs-sidebar.open {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: flex;
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        cursor: pointer;
        color: #6b7280;
        padding: 0.25rem;
    }

    .sidebar-toggle svg {
        width: 20px;
        height: 20px;
    }
}

.mobile-sidebar-btn {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    color: #374151;
    font-size: 0.9375rem;
}

.mobile-sidebar-btn svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 1023px) {
    .mobile-sidebar-btn {
        display: inline-flex;
    }
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: #374151;
    margin-bottom: 0.5rem;
    margin-top: 0.25rem;
    padding: 0.45rem 0.75rem;
    background: #f3f4f6;
    border-radius: 7px;
}

.sidebar-section + .sidebar-section .sidebar-heading {
    margin-top: 0.75rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s;
    margin-bottom: 0.125rem;
    text-decoration: none;
}

.sidebar-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.sidebar-link:hover {
    background: #f9fafb;
    color: #374151;
}

.sidebar-link.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.08));
    color: #667eea;
    font-weight: 600;
}

/* ── L1 heading icon ── */
.sidebar-heading {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.sidebar-heading svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #667eea;
}

/* ── L2 subgroup ── */
.sidebar-subgroup {
    margin-bottom: 0.25rem;
}

.sidebar-subheading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.4rem 0.75rem;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    transition: background 0.15s, color 0.15s;
    text-align: left;
}

.sidebar-subheading:hover {
    background: #f3f4f6;
    color: #111827;
}

.subheading-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subheading-inner svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #9ca3af;
}

.subheading-chevron {
    width: 13px !important;
    height: 13px !important;
    color: #9ca3af;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.sidebar-subheading[aria-expanded="true"] .subheading-chevron {
    transform: rotate(90deg);
}

/* L3 links container — collapsed by default */
.sidebar-subgroup-links {
    display: none;
    padding-left: 0.5rem;
    margin-top: 0.125rem;
}

.sidebar-subgroup-links.open {
    display: block;
}

/* L3 links — indented */
.sidebar-link-l3 {
    padding-left: 1.625rem;
    font-size: 0.8125rem;
}

.product-selector .form-select{
    font-size: 0.775rem;
    margin-bottom: 20px;
}
.documente-result, .search-results{
    margin: 20px 0;
}
/* Docs Content */
.docs-content {
    min-width: 0;
}

.doc-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.8125rem;
}

.doc-breadcrumbs a {
    color: #667eea;
    text-decoration: none;
}

.doc-breadcrumbs a:hover {
    text-decoration: underline;
}

.doc-breadcrumbs span {
    color: #9ca3af;
}

.doc-breadcrumbs .current {
    color: #374151;
    font-weight: 500;
}

/* Article */
.doc-article h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.75rem;
}

.doc-lead {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.doc-article h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
}

.doc-article h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.doc-article p {
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.doc-article a {
    color: #667eea;
    font-weight: 500;
}

.doc-article a:hover {
    text-decoration: underline;
}

/* Callout */
.doc-callout {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.doc-callout > svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.doc-callout a{
    color: #fff;
    margin-top: 14px;
}

/* Shared callout title / body */
.callout-title {
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    line-height: 1.4;
}

.callout-body {
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

.callout-body p { margin: 0 0 0.5rem; }
.callout-body p:last-child { margin-bottom: 0; }
.callout-body ul, .callout-body ol { margin: 0.25rem 0 0 1rem; padding: 0; }
.callout-body li { margin-bottom: 0.25rem; }

.callout-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.callout-info > svg {
    color: #3b82f6;
}

.callout-info .callout-title {
    color: #1e40af;
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
}

.callout-info p {
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

.callout-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.callout-warning > svg {
    color: #d97706;
}

.callout-warning .callout-title {
    color: #92400e;
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
}

.callout-warning p {
    color: #92400e;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

.callout-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.callout-success > svg {
    color: #16a34a;
}

.callout-success .callout-title {
    color: #166534;
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
}

.callout-success p {
    color: #166534;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

.callout-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.callout-error > svg {
    color: #dc2626;
}

.callout-error .callout-title {
    color: #991b1b;
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
}

.callout-error p {
    color: #991b1b;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

.callout-tip {
    background: #fefce8;
    border: 1px solid #fde68a;
}

.callout-tip > svg {
    color: #ca8a04;
}

.callout-tip .callout-title {
    color: #92400e;
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
}

.callout-tip p {
    color: #92400e;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

/* Doc Features */
.doc-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .doc-features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.doc-feature-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 10px;
}

.doc-feature-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.doc-feature-item strong {
    display: block;
    color: #111827;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.doc-feature-item p {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Code Block */
.code-block {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 1rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.code-header span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-copy {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.btn-copy:hover {
    border-color: #667eea;
    color: #667eea;
}

.btn-copy svg {
    width: 12px;
    height: 12px;
}

.code-block pre {
    padding: 1.25rem;
    background: #1f2937;
    overflow-x: auto;
    margin: 0;
}

.code-block code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.8125rem;
    color: #e5e7eb;
    line-height: 1.7;
    background: #1f2937;
}

/* Image Block */
.doc-image {
    margin: 0 0 2rem;
}

.doc-image img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    display: block;
    max-width: 800px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    background: #f3f4f6;

}

.doc-image figcaption {
    margin-top: 0.625rem;
    font-size: 0.8125rem;
    color: #9ca3af;
    text-align: center;
}

/* YouTube Video Block */
.doc-video {
    margin: 0 0 2rem;
}

.doc-video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #000;
}

.doc-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.doc-video-title {
    margin-top: 0.625rem;
    font-size: 0.8125rem;
    color: #9ca3af;
    text-align: center;
}

/* Table */
.doc-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.doc-table th {
    background: #f9fafb;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.doc-table td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #4b5563;
    border-bottom: 1px solid #f3f4f6;
}

.doc-table tr:last-child td {
    border-bottom: none;
}

/* Prev / Next navigation */


a.next-link-card.prev-link-card{
    justify-content: flex-start;
}
.prev-link-card h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.25rem;
}

.prev-link-card > svg {
   width: 18px;
    height: 18px;
    color: #667eea;
    flex-shrink: 0;
}

/* Next Links */
.doc-nav-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

@media (min-width: 640px) {
    .doc-nav-links {
        grid-template-columns: 1fr 1fr;
    }
}

.next-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border: 2px solid #f3f4f6;
    border-radius: 12px;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    gap: 2rem;
}

.next-link-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.08);
}

.next-link-card h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.25rem;
}

.next-link-card p {
    font-size: 0.8125rem;
    color: #9ca3af;
    margin: 0;
}

.next-link-card > svg {
    width: 18px;
    height: 18px;
    color: #667eea;
    flex-shrink: 0;
}

/* Search Results */

.search-results {
    padding: 1rem 0;
}

.search-results h3 {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 1rem;
}

.search-result-item-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border: 0.5px solid var(--color-border-tertiary);
    border-radius: 8px;
    margin-bottom: 8px;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
}

.search-result-item-wrapper:hover {
    border-color: #ccc;
    background: #f9f9f9;
}

.search-result-item {
    flex: 1;
    text-decoration: none;
}

.search-result-item h4 {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.search-result-item-link {
    padding: 4px 10px;
}


/* New CSS for Installation Section */
.installation-section {
    padding: 5rem 0;
    background: #f9fafb;
}

.installation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .installation-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.installation-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section-text {
    font-size: 1.125rem;
    color: #6b7280;
}

.installation-card {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.installation-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
}

.installation-method {
    margin-bottom: 2rem;
}

.method-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.method-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.method-icon svg {
    width: 20px;
    height: 20px;
}

.method-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.method-steps {
    list-style: none;
    margin-left: 3.25rem;
}

.method-steps li, li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #374151;
}

.step-number {
    font-weight: 600;
    color: #2563eb;
    flex-shrink: 0;
}

/* ── SUMMARY CHECKLIST ── */
  ul.summary {
    list-style: none;
    padding: 0;
    margin: 12px 0;
  }
  ul.summary li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    padding: 6px 0;
  }
  ul.summary li::before {
    content: '✅';
    flex-shrink: 0;
  }

   /* ── PREREQUISITES ── */
  ul.prereq {
    list-style: none;
    padding: 0;
    margin: 12px 0 24px;
  }
  ul.prereq li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
  }
  ul.prereq li:last-child { border-bottom: none; }
  ul.prereq li::before {
    content: '✓';
    color: var(--green);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
  }
  ul.prereq li b { color: var(--dark); }

  /* Steps Block */
.doc-steps {
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.doc-step {
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px 8px 0 0;
    border: 1px solid #f3f4f6;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.625rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 6px;
    flex-shrink: 0;
}

.step-header .title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.doc-step .step-description {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.7;
    margin: 0;
    padding-left: 0;
}
.step-body {
    border: 1px solid #DBEAFE;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 20px 24px;
    margin-bottom: 2rem;
}