/* ============================================================
   Custom Product Widgets for Elementor
   Frontend Styles
   ============================================================ */

/* ---------- Specs Table ---------- */
.specs-title {
    font-size: 20px;
    font-weight: 600;
    margin: 30px 0 15px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.specs-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.specs-table .specs-label {
    width: 35%;
    font-weight: 600;
    background-color: #f9f9f9;
}

.specs-table .specs-value {
    width: 65%;
}

/* Specs List layout */
.specs-list .specs-item {
    display: flex;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.specs-list .specs-label {
    flex: 0 0 35%;
    font-weight: 600;
    background-color: #f9f9f9;
    padding: 12px 15px;
}

.specs-list .specs-value {
    flex: 1;
    padding: 12px 15px;
}

/* Two-col layout */
.specs-two-col .specs-row {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.specs-two-col .specs-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 12px 15px;
    border: 1px solid #eee;
    border-radius: 6px;
}

.specs-two-col .specs-label {
    font-weight: 600;
    font-size: 13px;
    color: #888;
    margin-bottom: 4px;
}

.specs-two-col .specs-value {
    font-size: 15px;
}


/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .specs-two-col .specs-row {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 767px) {
    .specs-table .specs-label {
        width: 40%;
    }
}

/* ============================================================
   Accordion Specs Layout
   ============================================================ */

.spec-group {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
    background: #fff;
}

.spec-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: #f9fafb;
    border: none;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    gap: 12px;
    text-align: left;
    transition: background .15s;
}

.spec-toggle:hover {
    background: #eff6ff;
    color: #0061fc;
}

.spec-toggle:focus {
    outline-offset: -2px;
}

.spec-arrow {
    flex-shrink: 0;
    transition: transform .25s;
    color: #6b7280;
}

.spec-group.closed .spec-arrow {
    transform: rotate(180deg);
}

.spec-body {
    overflow: hidden;
    transition: max-height .3s ease, opacity .25s;
    padding-bottom: 4px;
}

.spec-group.closed .spec-body {
    max-height: 0 !important;
    opacity: 0;
    padding-bottom: 0;
}

.spec-row {
    display: flex;
    padding: 14px 20px;
    font-size: 14px;
    line-height: 1.7;
    border-bottom: 1px solid #f3f4f6;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-row:hover {
    background: #f9fafb;
}

.spec-label {
    width: 42%;
    flex-shrink: 0;
    font-weight: 600;
    color: #374151;
}

.spec-value {
    flex: 1;
    color: #4b5563;
}

@media (max-width: 600px) {
    .spec-toggle {
        font-size: 14px;
    }

    .spec-row {
        font-size: 12px;
    }

    .spec-label{
        padding-right: 5px;
    }
}