/* Product Tabs Gallery CSS */
.ptg-tabs-wrapper {
    max-width: 1200px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

.ptg-tabs-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    gap: 5px;
    border-bottom: 3px solid #0073aa;
    flex-wrap: wrap;
}

.ptg-tabs-nav li {
    margin: 0;
}

.ptg-tab-link {
    display: inline-block;
    padding: 12px 30px;
    background: #f1f1f1;
    color: #333;
    text-decoration: none;
    border-radius: 5px 5px 0 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ptg-tab-link:hover {
    background: #e0e0e0;
}

.ptg-tab-link.active {
    background: #0073aa;
    color: #ffffff;
}

.ptg-tabs-content {
    padding: 20px 0;
}

.ptg-tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.ptg-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Gallery Grid */
.ptg-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.ptg-gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.ptg-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.ptg-gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

/* Image Overlay - Buy Now Button */
.ptg-image-overlay {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px 15px 15px 15px;
    transition: bottom 0.4s ease;
    text-align: center;
}

.ptg-gallery-item:hover .ptg-image-overlay {
    bottom: 0;
}

.ptg-buy-now-btn {
    display: inline-block;
    background: #25D366;
    color: #fff !important;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.ptg-buy-now-btn:hover {
    background: #20b85a;
    transform: scale(1.03);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    color: #fff !important;
}

.ptg-buy-now-btn span {
    margin-right: 8px;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .ptg-tabs-nav {
        flex-direction: column;
        border-bottom: none;
    }
    .ptg-tab-link {
        border-radius: 5px;
        text-align: center;
    }
    .ptg-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    .ptg-gallery-item img {
        height: 200px;
    }
    .ptg-image-overlay {
        bottom: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    }
    .ptg-buy-now-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
}