/* =============================================================
   Vkard Product Info Tabs
   Mirrors the tab block from the ProductHero React component.
   ============================================================= */

.vkpit {
    --vkpit-accent: #03a9f4;
    --vkpit-tab: #6b7280;
    --vkpit-tab-hover: #01013c;
    --vkpit-content: #4b5563;
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid #f3f4f6;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-sizing: border-box;
}

.vkpit *,
.vkpit *::before,
.vkpit *::after {
    box-sizing: border-box;
}

.vkpit__list {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    border-bottom: 1px solid #e5e7eb;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.vkpit__tab {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 12px 20px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent none !important;
    color: var(--vkpit-tab);
    box-shadow: none !important;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.vkpit__tab:hover,
.vkpit__tab:focus-visible {
    color: var(--vkpit-tab-hover);
    border-bottom-color: #d1d5db;
    outline: none;
}

.vkpit__tab.is-active,
.vkpit__tab[aria-selected="true"] {
    color: var(--vkpit-accent);
    border-bottom-color: var(--vkpit-accent);
}

.vkpit__panel {
    display: none;
    padding: 32px 0;
    color: var(--vkpit-content);
    font-size: 14px;
    line-height: 1.72;
}

.vkpit__panel.is-active {
    display: block;
}

.vkpit__panel > *:first-child {
    margin-top: 0;
}

.vkpit__panel > *:last-child {
    margin-bottom: 0;
}

.vkpit__panel p {
    margin: 0 0 16px;
}

.vkpit__panel strong,
.vkpit__table td:first-child {
    color: #111827;
    font-weight: 700;
}

.vkpit__panel a {
    color: var(--vkpit-accent);
    font-weight: 500;
    text-decoration: none;
}

.vkpit__panel a:hover,
.vkpit__panel a:focus-visible {
    text-decoration: underline;
}

.vkpit__panel ul,
.vkpit__list-content {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.vkpit__panel li,
.vkpit__list-content li {
    margin: 0 0 10px;
}

.vkpit__table-wrap {
    width: 100%;
    overflow-x: auto;
}

.vkpit__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.vkpit__table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.18s ease;
}

.vkpit__table tbody tr:hover {
    background-color: #f9fafb;
}

.vkpit__table td {
    padding: 12px 0;
    color: var(--vkpit-content);
    vertical-align: top;
}

.vkpit__table td:first-child {
    width: 33.333%;
    padding-right: 16px;
}

.vkpit__empty {
    padding: 24px 0;
    color: var(--vkpit-content);
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .vkpit {
        margin-top: 40px;
        padding-top: 28px;
    }

    .vkpit__tab {
        padding: 11px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vkpit__tab,
    .vkpit__table tbody tr {
        transition: none;
    }
}
