/* ==========================================================================
   CUSTOM COMPONENTS & PAGE STYLES (Interloper Frontend)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. WISHLIST & CART COUNTER BADGES (Header)
   -------------------------------------------------------------------------- */
.wishlist-link,
.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 10px;
    padding: 5px 10px;
}

.wishlist-badge,
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #e3342f;
    color: #ffffff;
    font-size: 9px;
    font-weight: bold;
    text-align: center;
    line-height: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   2. REVIEW CARDS & REACTION BUTTONS
   -------------------------------------------------------------------------- */
.review-card {
    padding: 16px 4px;
    border-bottom: 1px solid #f0f0f0;
}

.review-card:last-child {
    border-bottom: none;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-stars .fa-star {
    color: #e0e0e0;
    font-size: 0.85rem;
}

.review-stars .fa-star.filled {
    color: #f5a623;
}

.review-rating-badge {
    background: #fff8ec;
    border: 1px solid #f5a62340;
    color: #b07800;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.review-reviewer-name {
    font-weight: 600;
    font-size: 0.97rem;
    color: #1a1a1a;
    line-height: 1.2;
}

.review-date {
    font-size: 0.78rem;
    color: #9e9e9e;
}

.review-body-text {
    font-size: 0.93rem;
    color: #444;
    line-height: 1.65;
    margin: 0;
    word-break: break-word;
}

.review-footer-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 12px;
    margin-top: 14px;
    border-top: 1px solid #f0f0f0;
}

.review-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.review-empty i {
    font-size: 2.5rem;
    color: #ddd;
    display: block;
    margin-bottom: 10px;
}

.react-btn {
    cursor: pointer;
    transition: transform 0.1s ease, color 0.2s ease, opacity 0.2s ease;
    user-select: none;
}

.react-btn:active {
    transform: scale(0.85);
}

.react-btn.liked {
    color: #0d6efd;
}

.react-btn.disliked {
    color: #dc3545;
}

/* --------------------------------------------------------------------------
   3. CUSTOM ACTION BUTTONS & WISHLIST BUTTONS
   -------------------------------------------------------------------------- */
.custom-action-btn {
    all: unset !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 24px !important;
    border-radius: 9999px !important;
    background-color: #f2f2f2 !important;
    color: #000000 !important;
    border: 1px solid #ccc !important;
    cursor: pointer !important;
    font-size: 1rem !important;
}

.custom-action-btn i {
    margin-right: 8px !important;
}

.wishlist-active i,
.wishlist-inactive i {
    color: red !important;
}

.wishlist-button.selected {
    background-color: red;
    color: white;
    border: none;
}

/* --------------------------------------------------------------------------
   4. OUT OF STOCK BANNER & ANIMATIONS
   -------------------------------------------------------------------------- */
.out-of-stock-banner {
    background: linear-gradient(135deg, #fffcf6 0%, #fff8eb 100%);
    border: 1px solid #ffdcb3;
    border-left: 4px solid orange;
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 0 2px 8px rgba(255, 141, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}

.out-of-stock-banner:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 141, 0, 0.06);
}

.banner-icon-wrapper {
    background-color: #ffe8cc;
    color: orange;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.animated-bell {
    animation: pulse-bell 2s infinite;
}

@keyframes pulse-bell {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.banner-title {
    color: #3b2000;
    font-weight: 700;
    font-size: 0.9rem;
    margin: 0 0 2px 0;
}

.banner-message {
    color: #5c3c15;
    font-size: 0.85rem;
    line-height: 1.35;
    margin: 0;
}

/* --------------------------------------------------------------------------
   5. IMAGE PREVIEW MODAL STYLES
   -------------------------------------------------------------------------- */
#image-preview-modal .img-preview-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 2px;
}

#image-preview-modal .img-preview-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
}

#image-preview-modal .img-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 15px 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#image-preview-modal .img-nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

#image-preview-modal .img-nav-btn.prev-btn {
    left: 20px;
}

#image-preview-modal .img-nav-btn.next-btn {
    right: 20px;
}

#image-preview-modal .img-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#image-preview-modal .image-container {
    cursor: grab;
}

#image-preview-modal .image-container:active {
    cursor: grabbing;
}

#image-preview-modal .image-counter {
    color: #666;
    font-size: 0.9rem;
}

#image-preview-modal .control-section {
    display: flex;
    gap: 5px;
    align-items: center;
}

#image-preview-modal #modal-image,
#image-preview-modal #modal-video {
    transform-origin: center center;
}

/* --------------------------------------------------------------------------
   6. THEME MODAL & DIALOG UNIFORMITY
   -------------------------------------------------------------------------- */
.theme-modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.theme-modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
    padding: 1.25rem 1.5rem;
}

.theme-modal-title {
    font-weight: 700;
    color: #222;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.2rem;
}

.theme-modal-title i {
    color: #f5a623;
}

.theme-modal-title i.fa-share {
    color: #4a90e2;
}

.theme-modal-title i.fa-bell {
    color: #e74c3c;
}

.theme-modal-body {
    padding: 1.5rem;
}

.theme-modal-footer {
    border-top: 1px solid #eaeaea;
    padding: 1rem 1.5rem;
    background-color: #fdfdfd;
}

.theme-modal-btn {
    border-radius: 6px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.share-row-platforms .btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.share-row-platforms .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.share-row-url .form-control {
    border-radius: 6px;
    background-color: #f4f6f8;
    border: 1px solid #dce1e6;
}

.share-row-url .btn {
    border-radius: 6px;
}

/* --------------------------------------------------------------------------
   7. SCROLL TO TOP COMPONENT
   -------------------------------------------------------------------------- */
.fixed-scroll-top {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 44px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1050;
}

.btn-scroll-top {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #007bff;
    color: #ffffff;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-scroll-top:hover {
    background-color: #ff8100 !important;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: #ffffff !important;
    border-color: #ff8100 !important;
}

.btn-scroll-top i {
    transition: transform 0.3s ease;
}

.btn-scroll-top:hover i {
    transform: translateY(-2px);
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .btn-scroll-top {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .fixed-scroll-top {
        top: auto !important;
        bottom: 20px !important;
        right: 24px !important;
        transform: none !important;
    }
}

/* --------------------------------------------------------------------------
   8. FOOTER STYLES
   -------------------------------------------------------------------------- */
.footer-premium {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

.text-light-grey {
    color: #b0b0b0 !important;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.text-gold {
    color: #ffb818;
}

.social-link {
    width: 35px;
    height: 35px;
    background: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    text-decoration: none;
    flex-shrink: 0;
}

.social-link:hover {
    background: #ffb818;
    color: #000;
}

.footer-links a.active,
.footer-links a:hover,
.footer-contact a:hover {
    color: #ffb818 !important;
}

.footer-bottom {
    background-color: #111;
    border-top: 1px solid #333;
}

@media (max-width: 575.98px) {
    .footer-premium {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .footer-contact .d-flex {
        justify-content: center;
    }

    #siteseal {
        display: flex;
        justify-content: center;
    }
}

/* --------------------------------------------------------------------------
   9. HOME PAGE CAROUSEL PRODUCTS
   -------------------------------------------------------------------------- */
.home-page-products .product-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    text-decoration: none;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-page-products .product-desc {
    font-size: 0.875rem;
    color: #fff;
    margin-top: 0.25rem;
    margin-bottom: 0;
    display: block;
}
