/* ============================================================
   Product Tabs Widget — style.css
   ============================================================ */

/* ── Wrapper ── */
.ptw-wrapper {
    font-family: inherit;
    max-width: 100%;
}

/* ── Intro text ── */
.ptw-intro {
    text-align: center;
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 32px;
}

/* ── Tab Nav ── */
.ptw-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 36px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.ptw-tab-nav::-webkit-scrollbar { display: none; }

.ptw-tab {
  /*  background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 12px 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #555;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s, border-bottom-color 0.2s;
    outline-offset: 2px;*/
}
.ptw-tab:hover {
   /*  color: #1a1a1a;*/
}
.ptw-tab.active {
   /*  color: #1a1a1a;
    border-bottom-color: #C8A96B;*/ /* overridden by Elementor color control */
}

/* ── Panel ── */
.ptw-panel {
    display: none;
}
.ptw-panel.active {
    display: block;
}

/* ── Grid ── */
.ptw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* ── Card ── */
.ptw-card {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ptw-card.ptw-shadow {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.ptw-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

/* Image wrapper */
.ptw-img-wrap {
    position: relative;
    background: #f7f7f7;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ptw-img {
    max-height: 140px;
    max-width: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.ptw-no-img {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #ccc;
    font-size: 0.75rem;
}

/* Badge */
.ptw-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #2d4a2d;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    z-index: 1;
}

/* Card body */
.ptw-body {
    padding: 16px 16px 20px;
}
.ptw-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 14px;
    line-height: 1.3;
}

/* Meta row */
.ptw-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.ptw-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ptw-meta-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #999;
}
.ptw-meta-val {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1a1a1a;
}

/* ── Hover Overlay ── */
.ptw-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.82);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.28s ease;
    text-align: center;
}
.ptw-card:hover .ptw-overlay {
    opacity: 1;
}
.ptw-overlay-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.ptw-overlay-desc {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Button */
.ptw-btn {
    display: inline-block;
    margin-top: 4px;
    padding: 9px 22px;
    background-color: #C8A96B;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s, transform 0.15s;
}
.ptw-btn:hover {
    background-color: #b5924f;
    transform: scale(1.04);
    color: #fff;
    text-decoration: none;
}

/* Empty state */
.ptw-empty {
    text-align: center;
    color: #bbb;
    font-size: 0.9rem;
    padding: 48px 20px;
    border: 2px dashed #eee;
    border-radius: 10px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .ptw-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .ptw-tab {
        padding: 10px 14px;
        font-size: 0.72rem;
    }
}
@media (max-width: 480px) {
    .ptw-grid {
        grid-template-columns: 1fr;
    }
}
