/* Container */
.wtp-home-tabs-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* Tabs Navigation */
.wtp-home-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.wtp-tab-item {
    background: #f5f5f5;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.wtp-tab-item:hover {
    background: #e0e0e0;
}

.wtp-tab-item.active {
    background: #00a8cc; /* Default Elementor blue-ish, can be customized */
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 168, 204, 0.3);
}

/* Content Area */
.wtp-home-tabs-content {
    position: relative;
    min-height: 200px;
}

/* Product Grid */
.wtp-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 1024px) {
    .wtp-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .wtp-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .wtp-home-tabs-nav {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .wtp-products-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Card */
.wtp-product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.wtp-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.wtp-card-image {
    position: relative;
    overflow: hidden;
    padding-top: 100%; /* 1:1 Aspect Ratio */
}

.wtp-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.wtp-product-card:hover .wtp-card-image img {
    transform: scale(1.05);
}

.wtp-badge.sale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4d4d;
    color: #fff;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

/* Add to Cart Button */
.wtp-add-to-cart-btn {
    display: block;
    width: 100%;
    background: #1a73e8; /* Blue color matching screenshot */
    color: #fff;
    text-align: center;
    padding: 10px 0;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-top: 15px;
    transition: background 0.3s ease;
}

.wtp-add-to-cart-btn:hover {
    background: #1557b0;
    color: #fff;
}

.wtp-add-to-cart-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wtp-add-to-cart-btn.added {
    background: #28a745; /* Green for success */
    pointer-events: none;
}

.wtp-btn-loader {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: wtp-spin 0.8s linear infinite;
}

@keyframes wtp-spin {
    to { transform: rotate(360deg); }
}

.wtp-card-info {
    padding: 15px;
    text-align: center;
}

.wtp-product-title {
    font-size: 15px;
    margin: 0 0 8px;
    line-height: 1.4;
}

.wtp-product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.wtp-product-title a:hover {
    color: #00a8cc;
}

.wtp-product-price {
    font-weight: 700;
    color: #333;
    font-size: 16px;
}

.wtp-product-price del {
    color: #999;
    font-weight: 400;
    margin-right: 5px;
    font-size: 14px;
}

/* Loader */
.wtp-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.wtp-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #00a8cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
