/* Figma Design - Exact Match */
.custom-product-tabs-figma {
    position: relative;
    min-height: 700px;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 0 0 1px #e0e0e0;
}

.figma-tabs-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    min-height: 600px;
}

/* ===== ACTIVE TAB (CENTER) ===== */
.product-tab.active {
    text-align: center;
    position: relative;
}

/* Image Container */
.product-tab.active .image-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.product-tab.active .border-image {
    display: inline-block;
}

.product-tab.active .border-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-tab.active .product-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.product-tab.active .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* Feature Text Boxes - Figma Style */
.product-tab.active .feature-text {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    margin: 15px 0;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.product-tab.active .feature-text-1 {
    margin-top: 0;
}

.product-tab.active .feature-text-2,
.product-tab.active .feature-text-3 {
    margin-top: 15px;
}

/* Button - Figma Style */
.product-tab.active .tab-button {
    display: inline-block;
    margin-top: 25px;
    padding: 10px 28px;
    background: transparent;
    color: #333;
    text-decoration: none;
    border: 2px solid #333;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-tab.active .tab-button:hover {
    background: #333;
    color: white;
}

/* ===== INACTIVE TABS ===== */
.product-tab.inactive {
    position: absolute;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
}

.product-tab.inactive .image-wrapper {
    position: relative;
    display: inline-block;
}

.product-tab.inactive .border-image {
    display: inline-block;
}

.product-tab.inactive .border-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-tab.inactive .product-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.product-tab.inactive .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.product-tab.inactive .feature-text,
.product-tab.inactive .tab-button {
    display: none;
}

/* Hover effect for inactive tabs */
.product-tab.inactive:hover {
    transform: scale(1.1);
    filter: brightness(0.95);
}

/* ===== DASHED LINES ===== */
.figma-dashed-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.figma-dashed-line line {
    stroke: #ccc;
    stroke-dasharray: 6, 8;
    stroke-width: 2;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .custom-product-tabs-figma {
        padding: 20px;
        min-height: 550px;
    }
    
    .product-tab.active .feature-text {
        font-size: 12px;
        padding: 10px 15px;
    }
    
    .product-tab.active .tab-button {
        padding: 8px 24px;
        font-size: 12px;
    }
}