/* Preem3D Featured Specs — 3 layouts (stack | strip | grid)
 * Scoped under .single-product for specificity over theme placeholder CSS.
 * Aesthetic: matches the mini trust bar & card language on the product page.
 *
 * Kadence palette (fallbacks):
 *   --global-palette1: #6D28D9 (purple accent)
 *   --global-palette3: #2D3748 (dark text)
 *   --global-palette5: rgba(45,55,72,0.7) (muted text)
 *   --global-palette6: #E2E8F0 (border)
 *   --global-palette7: #F7FAFC (light bg)
 *   --global-palette8: #EDF2F7 (hover bg)
 *   --global-palette9: #FFFFFF (white)
 */

/* ========== Reset ========== */

.single-product .preem-specs-strip {
    margin: 16px 0;
    color: var(--global-palette3, #2D3748);
    box-sizing: border-box;
}

.single-product .preem-specs-strip *,
.single-product .preem-specs-strip *::before,
.single-product .preem-specs-strip *::after {
    box-sizing: border-box;
}

/* ========== Shared elements ========== */

.single-product .preem-spec-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.single-product .preem-spec-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    stroke: currentColor;
    fill: none;
}

.single-product .preem-spec-body {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.single-product .preem-spec-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--global-palette5, rgba(45,55,72,0.7));
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.3;
}

.single-product .preem-spec-value {
    font-weight: 700;
    color: var(--global-palette3, #2D3748);
    line-height: 1.25;
    word-wrap: break-word;
}

/* ========== STACK — vertical list, compact rows ========== */

.single-product .preem-layout-stack {
    display: flex;
    flex-direction: column;
    padding: 2px 16px;
    border: 1px solid var(--global-palette6, #E2E8F0);
    border-radius: 12px;
    background: var(--global-palette7, #F7FAFC);
}

.single-product .preem-layout-stack .preem-spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--global-palette6, #E2E8F0);
}

.single-product .preem-layout-stack .preem-spec-item:last-child {
    border-bottom: none;
}

.single-product .preem-layout-stack .preem-spec-icon {
    width: 18px;
    height: 18px;
    color: var(--global-palette1, #6D28D9);
    opacity: 0.8;
}

.single-product .preem-layout-stack .preem-spec-body {
    flex: 1 1 auto;
}

.single-product .preem-layout-stack .preem-spec-value {
    font-size: 13px;
}

/* ========== STRIP — horizontal row of cards ========== */

.single-product .preem-layout-strip {
    display: flex;
    gap: 0;
    padding: 0;
    border: 1px solid var(--global-palette6, #E2E8F0);
    border-radius: 12px;
    overflow: hidden;
    background: var(--global-palette7, #F7FAFC);
}

.single-product .preem-layout-strip .preem-spec-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 14px 10px;
    text-align: center;
    position: relative;
    gap: 5px;
}

.single-product .preem-layout-strip .preem-spec-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--global-palette6, #E2E8F0);
}

.single-product .preem-layout-strip .preem-spec-icon {
    width: 20px;
    height: 20px;
    color: var(--global-palette1, #6D28D9);
    opacity: 0.8;
}

.single-product .preem-layout-strip .preem-spec-body {
    align-items: center;
    text-align: center;
    gap: 2px;
}

.single-product .preem-layout-strip .preem-spec-value {
    font-size: 13px;
}

@media (max-width: 767px) {
    .single-product .preem-layout-strip {
        flex-wrap: wrap;
    }
    .single-product .preem-layout-strip .preem-spec-item {
        flex: 1 1 45%;
        padding: 12px 8px;
    }
    .single-product .preem-layout-strip .preem-spec-item:nth-child(2n)::after {
        display: none;
    }
    .single-product .preem-layout-strip .preem-spec-item:nth-child(-n+2) {
        border-bottom: 1px solid var(--global-palette6, #E2E8F0);
    }
}

/* ========== GRID — 2-column, structured cells ========== */

.single-product .preem-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--global-palette6, #E2E8F0);
    border-radius: 12px;
    overflow: hidden;
    background: var(--global-palette7, #F7FAFC);
}

.single-product .preem-layout-grid .preem-spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 16px 16px;
    min-width: 0;
    border-bottom: 1px solid var(--global-palette6, #E2E8F0);
}

/* Vertical divider between columns */
.single-product .preem-layout-grid .preem-spec-item:nth-child(odd) {
    border-right: 1px solid var(--global-palette6, #E2E8F0);
}

/* Remove bottom border on last row */
.single-product .preem-layout-grid .preem-spec-item:last-child,
.single-product .preem-layout-grid .preem-spec-item:nth-last-child(2):nth-child(odd) {
    border-bottom: none;
}

.single-product .preem-layout-grid .preem-spec-icon {
    width: 22px;
    height: 22px;
    color: var(--global-palette1, #6D28D9);
    opacity: 0.8;
}

.single-product .preem-layout-grid .preem-spec-body {
    align-items: center;
    text-align: center;
}

.single-product .preem-layout-grid .preem-spec-value {
    font-size: 13.5px;
}

@media (max-width: 520px) {
    .single-product .preem-layout-grid {
        grid-template-columns: 1fr;
    }
    .single-product .preem-layout-grid .preem-spec-item:nth-child(odd) {
        border-right: none;
    }
    .single-product .preem-layout-grid .preem-spec-item:last-child {
        border-bottom: none;
    }
    .single-product .preem-layout-grid .preem-spec-item:nth-last-child(2):nth-child(odd) {
        border-bottom: 1px solid var(--global-palette6, #E2E8F0);
    }
}
