/*
 * Product Detail Page Styles
 * Consolidated for pc/products/show.html
 */

/* ── Base ── */
body {
    scroll-behavior: smooth;
}
.header-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
}
.dropdown:hover .dropdown-menu {
    display: block;
}
.whatsapp-pulse {
    display: none !important;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.max-w-\[1440px\] {
    max-width: 1700px !important;
}

/* ── Tailwind missing utilities ── */
.w-\[60px\] { width: 60px; }
.order-3 { order: 3; }
.aspect-square { aspect-ratio: 1 / 1; }
.object-contain { object-fit: contain; }
.object-top { object-position: top; }

@media (min-width: 1024px) {
    .lg\:w-\[80px\] { width: 80px; }
    .lg\:w-\[45\%\] { width: 45%; }
    .lg\:sticky { position: sticky; }
    .lg\:top-24 { top: 6rem; }
}
@media (min-width: 1280px) {
    .xl\:w-\[420px\] { width: 420px; }
}
@media (min-width: 1536px) {
    .\32xl\:w-\[560px\] { width: 560px; }
}

/* ── Gallery thumbs ── */
.gallery-thumb-v {
    border-color: transparent;
    opacity: 0.5;
    transition: all 0.25s ease;
}
.gallery-thumb-v:hover {
    opacity: 0.9;
    border-color: #d1d5db;
}
.gallery-thumb-v.active {
    opacity: 1;
    border-color: #111418;
}

/* ── Accordion ── */
.accordion-btn {
    transition: all 0.2s ease;
}
.accordion-btn:hover {
    background-color: #f9fafb;
}
.accordion-btn.open .chevron-icon {
    transform: rotate(180deg);
}
.accordion-body {
    display: none;
}
.accordion-body.open {
    display: block;
}

/* ── Overview rich content ── */
.overview-rich-content,
.overview-rich-content p,
.overview-rich-content span,
.overview-rich-content div,
.overview-rich-content li {
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #374151 !important;
}
.overview-rich-content ul li {
    line-height: 1 !important;
    margin-bottom: 0.25rem !important;
}
.overview-rich-content h2 {
    font-size: 22px !important;
    margin-top: 2rem !important;
    color: #4B5563 !important;
}
.overview-rich-content h3 {
    font-size: 18px !important;
    margin-top: 1.5rem !important;
    color: #4B5563 !important;
}
.overview-rich-content strong,
.overview-rich-content b {
    color: #4B5563 !important;
}

/* ── CMS rich content (general) ── */
.cms-rich-content {
    font-size: 14px;
    line-height: 1.7;
    color: #475569;
}
.cms-rich-content p {
    margin-bottom: 1rem;
}
.cms-rich-content a {
    color: #137fec;
    text-decoration: underline;
}
.cms-rich-content a:hover {
    color: #0e62b8;
}
.cms-rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}
.cms-rich-content h1,
.cms-rich-content h2,
.cms-rich-content h3,
.cms-rich-content h4 {
    font-weight: 700;
    color: #1e293b;
    margin: 1.5rem 0 1rem;
    line-height: 1.3;
    font-size: 16px;
}
.cms-rich-content h1 { font-size: 20px; }
.cms-rich-content h2 { font-size: 18px; }
.cms-rich-content h3 { font-size: 16px; }
.cms-rich-content h4 { font-size: 15px; }
.cms-rich-content blockquote {
    border-left: 4px solid #137fec;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #64748b;
    font-style: italic;
    font-size: 14px;
}
.cms-rich-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
}
.cms-rich-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
    font-size: 14px;
}
.cms-rich-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    font-size: 14px;
}

/* ── CMS table (minimal) ── */
.cms-rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 14px;
    border: 1px solid #e2e8f0;
}
.cms-rich-content table thead {
    background: #f3f4f6;
}
.cms-rich-content table th {
    padding: 12px 12px;
    text-align: left;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid #e2e8f0;
    color: #374151;
}
.cms-rich-content table td {
    padding: 12px 12px;
    color: #475569;
    border: 1px solid #e2e8f0;
    font-weight: 400;
}
.cms-rich-content table tr td:first-child,
.cms-rich-content table tr th:first-child {
    width: 30%;
    min-width: 140px;
    font-weight: 400;
    color: #475569;
}

/* ── Lists ── */
.cms-rich-content ul, .cms-rich-content ol {
    list-style: none !important;
    padding-left: 1.5rem !important;
    margin: 0 !important;
}
.cms-rich-content ul li, .cms-rich-content ol li {
    display: list-item !important;
    list-style-position: outside !important;
    margin-bottom: 0.5rem !important;
    padding-left: 1.5rem !important;
}
.cms-rich-content ul li::marker {
    content: "•" !important;
    color: #475569 !important;
    font-weight: bold !important;
}
.cms-rich-content ol li::marker {
    content: counter(list-item) "." !important;
    color: #475569 !important;
    font-weight: bold !important;
}

/* ── Group hover variants (missing in compiled tailwind) ── */
.group:hover .group-hover\:bg-gray-100 {
    background-color: #f3f4f6;
}

/* ── Spec table ── */
.spec-table,
.spec-table p,
.spec-table span,
.spec-table td,
.spec-table li {
    font-size: 13px !important;
    line-height: 1.6 !important;
}
.spec-table table td:first-child {
    min-width: 160px;
    white-space: nowrap;
    font-weight: 600;
    color: #374151;
}
.spec-table table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

/* ── Fixed right nav ── */
.fixed-right-nav {
    position: fixed;
    right: 24px;
    top: 40%;
    transform: translateY(-50%);
    z-index: 100;
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.fixed-right-nav .nav-item {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: white;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.fixed-right-nav .nav-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #137fec;
}
.fixed-right-nav .nav-item.active {
    border-color: #137fec;
    background: #f0f7ff;
}
.fixed-right-nav .nav-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.fixed-right-nav .nav-item .material-symbols-outlined {
    font-size: 28px;
    color: #374151;
    transition: color 0.3s;
}
.fixed-right-nav .nav-item:hover .material-symbols-outlined {
    color: #137fec;
}
.fixed-right-nav .nav-label {
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    text-align: center;
    margin-top: 4px;
    white-space: nowrap;
}
@media (max-width: 1023px) {
    .fixed-right-nav { display: none; }
}

/* ── Action buttons ── */
.action-group-fixed {
    position: fixed !important;
    bottom: 30px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}
.action-btn {
    width: 52px;
    height: 52px;
    background-color: #137fec;
    color: white;
    border-radius: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.action-btn:hover {
    transform: translateY(-5px);
    background-color: #0e62b8;
}

