/* Custom styles for MetaCortex Commerce */

/* NProgress customization */
#nprogress .bar {
    background: #7a3aed;
    height: 3px;
}

#nprogress .peg {
    box-shadow: 0 0 10px #7a3aed, 0 0 5px #7a3aed;
}

/* Toast notification styles */
.toast-container {
    z-index: 9999;
}

/* Quick view product modal enhancements */
.product-gallery .owl-carousel .item img {
    height: 300px;
    object-fit: contain;
}

.owl-thumbs .owl-thumb-item img {
    height: 70px;
    width: 70px;
    object-fit: contain;
}

/* Product card enhancements */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .product-card .card-img-top {
        height: 220px;
        object-fit: contain;
        padding: 10px;
    }

.product-name {
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Product detail page enhancements */
.product-detail-card .product-gallery img {
    max-height: 400px;
    object-fit: contain;
}

.product-detail-body {
    min-height: 500px;
}

/* Product info section */
.product-info-section {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-action {
    margin-top: auto;
}

/* Footer enhancements */
.footer-section1, .footer-section2, .footer-section3, .footer-section4 {
    height: 100%;
}

/* Pagination styles */
.page-item.active .page-link {
    background-color: #673ab7;
    border-color: #673ab7;
}

.page-link {
    color: #673ab7;
}

    .page-link:hover {
        color: #512da8;
    }

/* Tags box enhancements */
.tags-box .tag-link {
    display: inline-block;
    margin: 3px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    transition: all 0.3s ease;
}

    .tags-box .tag-link:hover {
        background: rgba(255, 255, 255, 0.2);
        text-decoration: none;
    }

/* Cart dropdown styling */
.cart-product {
    width: 65px;
    height: 65px;
}

    .cart-product img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.cart-product-cancel {
    top: -5px;
    right: -5px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cart-product-title {
    font-size: 14px;
    line-height: 1.2;
    max-height: 34px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .product-card .card-img-top {
        height: 180px;
    }

    .product-detail-card .product-gallery img {
        max-height: 300px;
    }

    .cart-header-title, .cart-header-clear {
        font-size: 14px;
    }
}

/* Image placeholders */
.img-placeholder {
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
}

/* ─── Rounded edges (theme-neutral) ─────────────────────────────── */

/* Buttons */
.btn {
    border-radius: 6px !important;
}

/* Product cards */
.product-card {
    border-radius: 10px !important;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

.product-card .card-img-top {
    transition: transform 0.3s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.04);
}

/* Cart/dropdown panels */
.cart-list,
.dropdown-large-menu {
    border-radius: 10px !important;
}

/* Back-to-top button */
.back-to-top {
    border-radius: 6px !important;
}

/* ─────────────────────────────────────────────────────────────────── */