
/* --- Main Widget Container --- */
.product-widget {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem; /* Space between widgets */
}

/* --- Image Gallery Section --- */
.image-photo {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
    padding: 2rem;
    min-height: 300px; /* Ensure a minimum height */
}

.product-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: opacity 0.3s ease-in-out;
}

.navbar-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar-btn:hover {
    background-color: #333;
    color: #fff;
}

#prev-btn {
    left: 15px;
}

#next-btn {
    right: 15px;
}

/* --- Product Info Section --- */
.product-info {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 3rem;
    font-weight: 600;
    color: #24ace5;
    margin-bottom: 0.5rem;
}

.reviews {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: #555;
}

.stars {
    color: #f39c12;
    margin-right: 8px;
}

.product-description {
    font-size: 1.5rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 2rem;
}

.takeaction-button {
    background-color: #24ace5;
    color: #ffffff;
    border: none;
    padding: 1.5rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 2rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-bottom: 2rem;
    text-align: center;
}

.takeaction-button:hover {
    background-color: #1f90c1;
}

.takeaction-button:active {
    transform: scale(0.98);
}

.social-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.share-text {
    font-size: 1.5rem;
    color: #555;
    margin-right: 1rem;
}

.social-icons a {
    color: #34495e;
    font-size: 2rem;
    margin: 0 8px;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.social-icons a:hover {
    color: #2980b9;
    transform: translateY(-2px);
}

/* --- Tabs Widget --- */
.tabs-widget {
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap; /* <<< UPDATED: Allow tabs to wrap */
}

.tab-btn {
    padding: 1rem 1.75rem;
    cursor: pointer;
    background-color: #f8f9fa;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: #555;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    flex-grow: 1; /* <<< ADDED: Allow tabs to share space */
    text-align: center;
}

.tab-btn.active {
    background-color: #ffffff;
    border-bottom-color: #24ace5;
    color: #24ace5;
    font-weight: 500;
}

.tab-content {
    padding: 2rem;
    display: none; /* Hide all tabs by default */
}

.tab-content.active {
    display: block; /* Show only the active tab */
}

.tab-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #24ace5;
    margin-bottom: 1.5rem;
}

.tab-content p {
    font-size: 1.5rem;
    line-height: 1.8;
    color: #555;
}

.tab-content p:not(:last-child) {
    margin-bottom: 1rem;
}

/* --- Contact Details Styling --- */
.contact-details p {
    font-size: 1.5rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

.contact-details a {
    color: #24ace5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #1f90c1;
}

.contact-details .fas {
    margin-right: 10px;
    color: #2c3e50;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .product-widget {
        grid-template-columns: 1fr;
    }
    .product-info {
        padding: 2rem;
    }
    .tab-content h2 {
        font-size: 2rem;
    }
    .product_title{
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .product-info, .tab-content {
        padding: 1.5rem; /* Reduce padding inside widgets */
    }
    .product-title {
        font-size: 2rem;
    }
    .tab-btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    .stars{
        font-size: 15px;
    }
}