/**
 * AshesWP 1.8.15 — product info shell (tabs desktop / accordion <992px).
 * Loaded only on single product. Owns geometry for description/specs/reviews panels.
 */

.single-product.asheswp-product-info-page .asheswp-product-info {
    --pi-border: var(--asheswp-border, #e4e7eb);
    --pi-surface: var(--asheswp-surface, #fff);
    --pi-surface-soft: var(--asheswp-surface-soft, #f7f8fa);
    --pi-text: var(--asheswp-text-primary, #1c2128);
    --pi-muted: var(--asheswp-text-secondary, #4d5560);
    --pi-primary: var(--asheswp-color-primary, #ff7239);
    --pi-radius: var(--asheswp-radius-lg, 16px);
    margin: clamp(28px, 4vw, 56px) 0 0;
    color: var(--pi-text);
}

.single-product.asheswp-product-info-page .asheswp-product-info__tablist-wrap {
    position: sticky;
    top: 12px;
    z-index: 5;
    margin-bottom: 18px;
}

.single-product.asheswp-product-info-page .asheswp-product-info__tablist {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 8px;
    list-style: none;
    border: 1px solid var(--pi-border);
    border-radius: var(--pi-radius);
    background: var(--pi-surface-soft);
}

.single-product.asheswp-product-info-page .asheswp-product-info__tab {
    min-height: var(--asheswp-touch-target, 44px);
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--pi-muted);
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
}

.single-product.asheswp-product-info-page .asheswp-product-info__tab.is-active,
.single-product.asheswp-product-info-page .asheswp-product-info__tab:hover {
    background: var(--pi-surface);
    color: var(--pi-primary);
    box-shadow: var(--asheswp-shadow-sm, 0 4px 14px rgba(28, 33, 39, 0.05));
}

.single-product.asheswp-product-info-page .asheswp-product-info__tab:focus-visible {
    outline: 3px solid var(--asheswp-focus-ring-color, var(--pi-primary));
    outline-offset: 2px;
}

.single-product.asheswp-product-info-page .asheswp-product-info__accordion-heading {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

.single-product.asheswp-product-info-page .asheswp-product-info__accordion-trigger {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 8px;
    padding: 14px 16px;
    border: 1px solid var(--pi-border);
    border-radius: var(--pi-radius);
    background: var(--pi-surface);
    color: var(--pi-text);
    font: inherit;
    font-size: 15px;
    font-family: var(--SemiBold, inherit);
    text-align: right;
    cursor: pointer;
}

.single-product.asheswp-product-info-page .asheswp-product-info__accordion-trigger:focus-visible {
    outline: 3px solid var(--asheswp-focus-ring-color, var(--pi-primary));
    outline-offset: 2px;
}

.single-product.asheswp-product-info-page .asheswp-product-info__accordion-trigger.is-open {
    border-color: color-mix(in srgb, var(--pi-primary) 45%, var(--pi-border));
    background: var(--asheswp-surface-warm, #fff5ef);
}

.single-product.asheswp-product-info-page .asheswp-product-info__accordion-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    position: relative;
}

.single-product.asheswp-product-info-page .asheswp-product-info__accordion-icon::before,
.single-product.asheswp-product-info-page .asheswp-product-info__accordion-icon::after {
    content: "";
    position: absolute;
    inset-inline-start: 50%;
    top: 50%;
    width: 12px;
    height: 2px;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: transform var(--asheswp-motion, 180ms ease);
}

.single-product.asheswp-product-info-page .asheswp-product-info__accordion-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.single-product.asheswp-product-info-page .asheswp-product-info__accordion-trigger.is-open .asheswp-product-info__accordion-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 0;
}

.single-product.asheswp-product-info-page .asheswp-product-info__panel {
    margin: 0 0 16px;
    padding: clamp(16px, 2.4vw, 28px);
    border: 1px solid var(--pi-border);
    border-radius: var(--pi-radius);
    background: var(--pi-surface);
}

.single-product.asheswp-product-info-page .asheswp-product-info__panel[hidden] {
    display: none !important;
}

@media (min-width: 992px) {
    .single-product.asheswp-product-info-page .asheswp-product-info__accordion-heading {
        display: none;
    }

    .single-product.asheswp-product-info-page .asheswp-product-info__section {
        margin: 0;
    }

    .single-product.asheswp-product-info-page .asheswp-product-info__panel {
        margin-bottom: 0;
    }
}

@media (max-width: 991.98px) {
    .single-product.asheswp-product-info-page .asheswp-product-info__tablist-wrap {
        display: none;
    }

    .single-product.asheswp-product-info-page .asheswp-product-info__section + .asheswp-product-info__section {
        margin-top: 10px;
    }
}

.single-product.asheswp-product-info-page .woocommerce-tabs .wc-tabs-wrap,
.single-product.asheswp-product-info-page .wc-tabs-wrap {
    display: contents;
}

.single-product.asheswp-product-info-page .woocommerce-tabs .scroll-top,
.single-product.asheswp-product-info-page .wc-tabs .scroll-top {
    display: none !important;
}

.single-product.asheswp-product-info-page .asheswp-product-info .asheswp-product-specs__header {
    display: none;
}

.single-product.asheswp-product-info-page .asheswp-product-specs__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--pi-border);
    border-radius: 14px;
    background: var(--pi-surface);
}

.single-product.asheswp-product-info-page .asheswp-product-specs .woocommerce-product-attributes {
    min-width: 280px;
}

.single-product.asheswp-product-info-page .asheswp-product-specs .woocommerce-product-attributes th,
.single-product.asheswp-product-info-page .asheswp-product-specs .woocommerce-product-attributes td {
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
    color: var(--pi-text);
    background: transparent;
}

.single-product.asheswp-product-info-page .asheswp-product-specs .woocommerce-product-attributes th {
    color: var(--pi-muted);
    background: var(--pi-surface-soft);
}

html[data-theme="dark"] .single-product.asheswp-product-info-page .asheswp-product-info,
html[data-asheswp-theme="dark"] .single-product.asheswp-product-info-page .asheswp-product-info,
body.dark-mode.single-product.asheswp-product-info-page .asheswp-product-info {
    --pi-border: var(--asheswp-border);
    --pi-surface: var(--asheswp-surface-elevated);
    --pi-surface-soft: var(--asheswp-surface-soft);
    --pi-text: var(--asheswp-text-primary);
    --pi-muted: var(--asheswp-text-secondary);
}

@media (prefers-reduced-motion: reduce) {
    .single-product.asheswp-product-info-page .asheswp-product-info__accordion-icon::before,
    .single-product.asheswp-product-info-page .asheswp-product-info__accordion-icon::after {
        transition: none;
    }
}
