/* ============================================
   Products Tabs Block - Styles & Animations
   ============================================ */

/* Animation Keyframes */
@keyframes tabAnimation-fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes tabAnimation-slide-left {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes tabAnimation-slide-right {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes tabAnimation-zoom {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Main Container */
.products-tabs-block {
    width: 100%;
    margin: 2rem 0;
}

/* ============================================
   Tab Navigation Styles
   ============================================ */

.products-tabs-block .tabs-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    position: relative;
}

.products-tabs-block.tab-position-bottom .tabs-nav {
    order: 2;
    margin-bottom: 0;
    margin-top: 2rem;
}

/* Modern Tab Style */
.products-tabs-block .tabs-nav.tab-style-modern {
    background: linear-gradient(90deg, #f8f9fa 0%, #ffffff 100%);
    padding: 0.75rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.products-tabs-block .tabs-nav.tab-style-modern .tab-button {
    flex: 1;
    min-width: 120px;
}

/* Classic Tab Style */
.products-tabs-block .tabs-nav.tab-style-classic {
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 0;
}

/* Flat Tab Style */
.products-tabs-block .tabs-nav.tab-style-flat {
    background: transparent;
    padding: 0;
    gap: 1rem;
}

/* Tab Button Base */
.products-tabs-block .tab-button {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
    border-radius: 8px 8px 0 0;
}

/* Modern Tab Button */
.products-tabs-block .tabs-nav.tab-style-modern .tab-button {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 8px;
    color: #666;
}

.products-tabs-block .tabs-nav.tab-style-modern .tab-button:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.products-tabs-block .tabs-nav.tab-style-modern .tab-button.active {
    background: linear-gradient(135deg, #dc2626 0%, #dc6026 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Classic Tab Button */
.products-tabs-block .tabs-nav.tab-style-classic .tab-button {
    border-bottom: 3px solid transparent;
    color: #666;
    padding: 1rem 1.5rem;
}

.products-tabs-block .tabs-nav.tab-style-classic .tab-button:hover {
    color: #333;
    border-bottom-color: #ddd;
}

.products-tabs-block .tabs-nav.tab-style-classic .tab-button.active {
    color: #dc2626;
    border-bottom-color: #dc2626;
}

/* Flat Tab Button */
.products-tabs-block .tabs-nav.tab-style-flat .tab-button {
    color: #666;
    padding: 0.75rem 1rem;
}

.products-tabs-block .tabs-nav.tab-style-flat .tab-button:hover {
    color: #dc2626;
    transform: translateX(4px);
}

.products-tabs-block .tabs-nav.tab-style-flat .tab-button.active {
    color: #dc2626;
    border-bottom: 2px solid #dc2626;
    padding-bottom: calc(0.75rem - 2px);
}

/* Tab Content Container */
.products-tabs-block .tab-content-wrapper {
    order: 1;
}

.products-tabs-block.tab-position-bottom .tab-content-wrapper {
    order: 1;
}

/* Tab Panel */
.products-tabs-block .tab-panel {
    opacity: 0;
    pointer-events: none;
    height: 0;
    overflow: hidden;
}

.products-tabs-block .tab-panel.active {
    opacity: 1;
    pointer-events: auto;
    height: auto;
}

/* ============================================
   Products Grid Styles
   ============================================ */

.products-tabs-block .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    animation: slideInUp 0.4s ease-out;
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .products-tabs-block .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .products-tabs-block .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .products-tabs-block .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Product Card Styles
   ============================================ */

.products-tabs-block .product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Hover Lift Card Style */
.products-tabs-block .product-card.card-style-hover-lift {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.products-tabs-block .product-card.card-style-hover-lift:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-6px);
}

/* Shadow Card Style */
.products-tabs-block .product-card.card-style-shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.products-tabs-block .product-card.card-style-shadow:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Border Card Style */
.products-tabs-block .product-card.card-style-border {
    border: 2px solid rgba(99, 102, 241, 0.2);
}

.products-tabs-block .product-card.card-style-border:hover {
    border-color: #dc2626;
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.1);
}

/* Gradient Card Style */
.products-tabs-block .product-card.card-style-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.products-tabs-block .product-card.card-style-gradient:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.1);
}

/* Product Image Container */
.products-tabs-block .product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}

.products-tabs-block .product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.products-tabs-block .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.products-tabs-block .product-card:hover .product-image img {
    transform: scale(1.1) rotate(0.5deg);
}

/* Product Badge */
.products-tabs-block .product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #dc2626 0%, #dc6026 100%);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10;
    animation: slideInUp 0.3s ease-out 0.1s both;
}

/* Product Info */
.products-tabs-block .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    gap: 0.75rem;
}

/* Product Title */
.products-tabs-block .product-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s ease;
    flex-wrap: wrap;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.products-tabs-block .product-title:hover {
    color: #dc2626;
}

/* Product Price */
.products-tabs-block .product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #dc2626;
    line-height: 1;
}

.products-tabs-block .product-price del {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

/* Product Rating */
.products-tabs-block .product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #fbbf24;
}

.products-tabs-block .product-rating .star {
    display: inline-block;
}
.products-tabs-block .product-actions {
    width: 100%;
}
/* Add to Cart Button */
.products-tabs-block .add-to-cart-btn {

    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #dc2626 0%, #dc6026 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.products-tabs-block .add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.products-tabs-block .add-to-cart-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* ============================================
   Empty State
   ============================================ */

.products-tabs-block .empty-state {
    padding: 3rem 2rem;
    text-align: center;
    color: #999;
}

.products-tabs-block .empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.products-tabs-block .empty-state-text {
    font-size: 1rem;
}

/* ============================================
   Loading State
   ============================================ */

.products-tabs-block .loading {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.products-tabs-block .loading-spinner {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dc2626;
    animation: pulse 1.4s infinite;
}

.products-tabs-block .loading-spinner:nth-child(1) {
    animation-delay: 0s;
}

.products-tabs-block .loading-spinner:nth-child(2) {
    animation-delay: 0.2s;
}

.products-tabs-block .loading-spinner:nth-child(3) {
    animation-delay: 0.4s;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .products-tabs-block .tabs-nav {
        gap: 0.25rem;
        margin-bottom: 1.5rem;
    }

    .products-tabs-block .tab-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .products-tabs-block .product-info {
        padding: 1rem;
        gap: 0.5rem;
    }

    .products-tabs-block .product-title {
        font-size: 0.95rem;
    }

    .products-tabs-block .product-price {
        font-size: 1.1rem;
    }

    .products-tabs-block .add-to-cart-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }

    .products-tabs-block .tabs-nav.tab-style-modern {
        padding: 0.5rem;
    }

    .products-tabs-block .tabs-nav.tab-style-classic {
        border-bottom-width: 1px;
    }

    .products-tabs-block .tabs-nav.tab-style-flat {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .products-tabs-block .tabs-nav {
        gap: 0.25rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .products-tabs-block .tab-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    .products-tabs-block .product-badge {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }

    .products-tabs-block .product-info {
        padding: 0.75rem;
    }

    .products-tabs-block .empty-state {
        padding: 2rem 1rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .products-tabs-block .tabs-nav {
        display: none;
    }

    .products-tabs-block .tab-panel {
        display: block !important;
        page-break-inside: avoid;
    }

    .products-tabs-block .product-card {
        break-inside: avoid;
    }
}
