/* Isolated with .fj-theme-modules to prevent original theme regression */
/* Global Selection Border Fix */
*:focus {
    outline: none !important;
    box-shadow: none !important;
}

.fj-theme-modules .home-product-tabs {
    display: flex;
    overflow-x: auto;
    gap: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0;
    justify-content: center;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.fj-theme-modules .home-product-tabs::-webkit-scrollbar { display: none; }

.fj-theme-modules .home-product-tablinks {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
    width: 112px;
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    transform: none;
    outline: none;
}
.fj-theme-modules .home-product-tablinks:focus {
    outline: none;
    box-shadow: none;
}

.fj-theme-modules .tab-thumb-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #dfe6ef; /* Light blueish grey from image */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}
.fj-theme-modules .home-product-tablinks.active .tab-thumb-circle {
    background: #fff;
}
.fj-theme-modules .tab-thumb-circle img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    transition: transform 0.3s ease;
    mix-blend-mode: multiply;
}
.fj-theme-modules .home-product-tablinks:hover .tab-thumb-circle img {
    transform: scale(1.1);
}

.fj-theme-modules .home-product-tablinks p {
    margin: 0;
    font-size: 12px;
    color: #4b5563;
    text-align: center;
    width: 100%;
    line-height: 1.3;
    transition: all 0.3s ease;
    font-weight: 400;
    padding-bottom: 10px;
}
.fj-theme-modules .home-product-tablinks.active p {
    color: #173d7a;
    font-weight: 400;
}
.fj-theme-modules .home-product-tablinks::after {
    content: '';
    width: 0;
    height: 0px;
    transition: width 0.3s ease;
    margin-top: -3px;
}
.fj-theme-modules .home-product-tablinks.active::after {
    width: 100%;
}

.fj-theme-modules .home-product-tabcontent { display: none !important; }
.fj-theme-modules .home-product-tabcontent.active { display: block !important; }
.fj-theme-modules .wrapper_tabcontent { width: 100% !important; }

.fj-theme-modules .showcase-cover-area { display: none !important; }

.fj-theme-modules .showcase-product-grid {
    display: grid !important;
    grid-template-columns: repeat(var(--grid-cols, 6), minmax(0, 1fr)) !important;
    border-left: 1px solid #e5e7eb !important;
    border-top: 1px solid #e5e7eb !important;
    width: 100% !important;
}

.fj-theme-modules .modern-product-card {
    width: 100% !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 16px !important;
    border-right: 1px solid #e5e7eb !important;
    border-bottom: 1px solid #e5e7eb !important;
    background: #fff !important;
    overflow: hidden !important;
    transition: box-shadow 0.3s ease !important;
    box-sizing: border-box !important;
}
.fj-theme-modules .modern-product-card:hover {
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.12) !important;
    z-index: 2 !important;
}

.fj-theme-modules .modern-product-discount {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    background: #e3342f !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 4px 8px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    border-bottom-right-radius: 8px !important;
    z-index: 10 !important;
    line-height: 1.3 !important;
}

.fj-theme-modules .modern-product-fav {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    bottom: auto !important;
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 50% !important;
    color: #d1d5db !important;
    cursor: pointer !important;
    z-index: 10 !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.fj-theme-modules .modern-product-fav:hover { color: #ef4444 !important; border-color: #ef4444 !important; }

.fj-theme-modules .modern-product-img {
    height: 160px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 24px !important;
    margin-bottom: 16px !important;
}


.fj-theme-modules .modern-product-info { flex: 1 !important; }

.fj-theme-modules .modern-product-brand {
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 2px !important;
    text-align: center !important;
}
.fj-theme-modules .modern-product-brand a {
    color: #9ca3af !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.fj-theme-modules .modern-product-title {
    font-size: 13px !important;
    text-align: center !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    height: 40px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    padding: 0 4px !important;
}
.fj-theme-modules .modern-product-title a {
    color: #1f2937 !important;
    text-decoration: none !important;
}

.fj-theme-modules .modern-product-stars {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    margin: 8px 0 !important;
}
.fj-theme-modules .modern-product-stars i { font-size: 12px !important; color: #f97316 !important; }
.fj-theme-modules .modern-product-stars i.fa-star-o { color: #d1d5db !important; }
.fj-theme-modules .modern-product-stars span { font-size: 11px !important; color: #9ca3af !important; margin-left: 4px !important; }

.fj-theme-modules .modern-product-out-of-stock {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 48px !important;
    margin-top: auto !important;
    color: #e11d48 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
}

.fj-theme-modules .modern-product-price-area {
    margin-top: auto !important;
    position: relative !important;
    height: 48px !important;
    width: 100% !important;
}

.fj-theme-modules .modern-price-wrap {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    transition: opacity 0.3s ease !important;
}
.fj-theme-modules .modern-product-card:hover .modern-price-wrap { opacity: 0 !important; }

.fj-theme-modules .modern-old-price { font-size: 11px !important; color: #e3342f !important; text-decoration: line-through !important; }
.fj-theme-modules .modern-current-price { font-size: 15px !important; font-weight: 800 !important; color: #173d7a !important; }

.fj-theme-modules .modern-add-to-cart-btn {
    position: absolute !important;
    inset: 0 !important;
    background: #173d7a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease, background 0.2s ease !important;
}
.fj-theme-modules .modern-product-card:hover .modern-add-to-cart-btn { opacity: 1 !important; }

@media (max-width: 1200px) {
    .fj-theme-modules .showcase-product-grid { grid-template-columns: repeat(5, 1fr) !important; }
}
@media (max-width: 1024px) {
    .fj-theme-modules .showcase-product-grid { grid-template-columns: repeat(4, 1fr) !important; }
}
@media (max-width: 768px) {
    .fj-theme-modules .showcase-product-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .fj-theme-modules .home-product-tabs { justify-content: flex-start !important; padding: 0 8px 16px !important; gap: 16px !important; }
    .fj-theme-modules .tab-thumb-circle { width: 72px !important; height: 72px !important; }
    .fj-theme-modules .tab-thumb-circle img { width: 48px !important; height: 48px !important; }
    .fj-theme-modules .home-product-tablinks { width: 90px !important; }
}
@media (max-width: 480px) {
    .fj-theme-modules .showcase-product-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .fj-theme-modules .modern-product-img { height: 120px !important; margin-top: 16px !important; }
    .fj-theme-modules .modern-product-title { font-size: 11px !important; height: 32px !important; }
    .fj-theme-modules .tab-thumb-circle { width: 60px !important; height: 60px !important; }
    .fj-theme-modules .tab-thumb-circle img { width: 40px !important; height: 40px !important; }
    .fj-theme-modules .home-product-tablinks { width: 80px !important; }
    .fj-theme-modules .home-product-tablinks p { font-size: 11px !important; }
}

/* Special Price Label (Modern) */
.fj-theme-modules .modern-special-price-label {
    background: #173d7a !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-bottom: 4px !important;
    text-transform: uppercase !important;
}
