@import url("/assets/cashnetshopping/app.css");
@import url("/assets/cashnetshopping/colors.css");

a,
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-black);
}

/* Navbar */

.navbar a {
    color: var(--color-white);
}

.search-box {
    background: var(--color-white);
    border-radius: 50px;
    border: 1px solid #ddd;
    padding-left: 18px;
    padding: 5px 12px;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
}

.search-box:focus-within {
    border-color: var(--color-primary);
}

.search-input {
    border: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    font-size: 15px;
}

.search-btn {
    position: absolute;
    right: 14px;
    border: none;
    background: none;
    color: var(--color-primary);
    font-size: 18px;
    cursor: pointer;
}

.icon-box {
    position: relative;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon-box:hover {
    background: var(--color-primary);
    color: var(--color-white) !important;
    border-color: var(--color-primary);
}

.icon-box:hover i {
    color: var(--color-white) !important;
}

.icon-box i {
    font-size: 18px;
}

.icon-badge {
    font-size: 13px;
    font-weight: bold;
}

.header-icon .icon-box {
    white-space: nowrap;
}

.header-icon {
    flex-shrink: 0;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-text {
    font-size: 18px;
    color: var(--color-white);
    background: var(--color-primary);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mega menu */

.megamenu-content {
    display: none;
    position: absolute;
    top: 56px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    padding: 20px;
    background-color: var(--color-white);
    box-shadow: 0 8px 16px rgb(0, 0, 0, 0.2);
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    z-index: 1000;
}

.megamenu-content .dropdown-item {
    color: #333;
}

.megamenu-content .dropdown-item:hover {
    background-color: #f8f9fa;
}

.megamenu-content h5 {
    margin-bottom: 0.5rem;
}

.megamenu-content small {
    color: var(--color-primary);
    font-weight: bold;
}

.parent-category {
    font-size: 1rem;
    font-weight: bold;
    display: block;
}

.category-children a {
    color: var(--color-primary);
}

.child-category {
    font-size: 1rem;
    color: var(--color-primary) !important;
    display: block;
    margin-bottom: 0.15rem;
}

.dropdown-menu {
    border: none;
    border-radius: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
}

/* Botões */

.btn-add-cart,
.btn-add-favorite,
.btn-remove-favorite,
.btn-report {
    cursor: pointer;
    font-size: 15px;
    padding: 10px 20px;
}

.btn-report-opinion {
    display: flex;
    justify-content: center;
    align-items: start;
    gap: 5px;
    padding: 0 10px;
    height: 50px;
    cursor: pointer;
    background: none;
}

.btn-qty-min,
.btn-qty-max {
    background: transparent;
    max-height: 25px;
    padding: 0 10px;
    border: var(--bs-border-width) solid var(--bs-border-color);
}

.btn-absolute {
    position: absolute;
    top: 0;
    right: 5px;
    width: 40px;
    height: 40px;
    z-index: 9999;
    border: none;
    background: var(--color-primary);
    border-radius: 50%;
}

#backButton {
    z-index: 9999;
    background: var(--color-primary);
    border-radius: 6px;
    display: none;
}

/* Conversão de bônus */

.small-box-custom {
    background: var(--color-gradient);
    border-radius: 18px;
    padding: 28px 20px;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.small-box-custom:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.small-box-custom .inner h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.small-box-custom .inner p {
    font-size: 0.95rem;
    opacity: 0.95;
    margin: 0;
}

.icon-wrapper {
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: 4.5rem;
    opacity: 0.15;
    transform: rotate(-5deg);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.small-box-custom:hover .icon-wrapper {
    opacity: 0.25;
    transform: rotate(0deg);
}

/* Gerais */

.fa-check-circle,
.text-green {
    color: var(--color-secondary) !important;
}

.offer {
    text-decoration: line-through;
    color: var(--color-black);
}

.right-bar p,
.right-bar a {
    color: var(--color-white);
    font-size: 15px;
}

.box {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 55px;
    height: 40px;
}

.cart-qty,
.favorites-qty,
.notification-qty {
    position: absolute;
    right: -5px;
    top: -10px;
    color: var(--color-white);
    font-size: 14px;
    background: var(--color-primary);
    border-radius: 5px;
    padding: 0 8px;
}

.disabled {
    background-color: var(--color-disabled);
    color: var(--color-grey);
    pointer-events: none;
    opacity: 0.6;
}

/* Cards */

.card-header {
    display: flex;
    align-items: center;
    height: 55px;
}

/* Form */

.form-control,
.form-control:focus {
    border-radius: 0;
    outline: none;
    box-shadow: none;
}

.form-select,
.form-select:focus {
    height: calc(2.5rem + calc(var(--bs-border-width) * 2));
    min-height: calc(2.5rem + calc(var(--bs-border-width) * 2));
    line-height: 1.25;
    box-shadow: none;
}

.form-floating > label {
    transition: all 0.2s;
}

.text-area {
    min-height: 200px !important;
}

/* Footer */

.footer-links a {
    color: #ffffff;
    opacity: 0.85;
    transition: 0.2s;
    display: block;
    margin-bottom: 0.4rem;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Social icons */
.footer-social {
    width: 45px;
    height: 45px;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: 0.3s;
}

.footer-social:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

/* Página de busca de produto */

.custom-range {
    accent-color: #268665;
    height: 6px;
    cursor: pointer;
}

/* Produto imagem */

#product .container-image-product {
    max-width: 650px;
    max-height: 380px;
    min-height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 15px;
}

#product .container-image-product img {
    max-height: 450px;
}

#product .product-offer {
    font-size: 13px;
    text-decoration: line-through;
}

#product .container-product-return i {
    font-size: 18px;
}

/* Produtos do carrinho e checkout */

.cart .container-image img {
    max-width: 120px;
    max-height: 120px;
}

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

.cart .btn-qty {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
    border: none;
}

.cart .input-group {
    max-width: 150px;
}

.cart .form-control {
    height: 25px;
}

/* Estrelas de avaliação */

.start-note {
    font-weight: 700;
    color: var(--color-primary);
}
.star-rating {
    direction: rtl;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 2rem;
    color: var(--color-bg-star);
    cursor: pointer;
}

.star-rating input:checked ~ label {
    color: var(--color-primary);
}

.star-rating label:hover,
.star-rating label:hover ~ label {
    color: var(--color-primary);
}

.star-rating-product {
    direction: rtl;
}

.star-rating-product input {
    display: none;
}

.star-rating-product label {
    font-size: 2rem;
    color: var(--color-bg-star);
    cursor: pointer;
}

.star-rating-product input:checked ~ label {
    color: var(--color-primary);
}

.star-rating-product label:hover,
.star-rating-product label:hover ~ label {
    color: var(--color-primary);
}

/* Página Lojista */

.container-image-profile-seller {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: var(--color-grey-light);
    width: 40px;
    height: 40px;
}

.container-image-profile-seller img {
    position: absolute;
    max-height: 30px;
}

.container-image-seller {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--color-grey-light);
    object-fit: cover;
    border-radius: 50%;
}

/* Paginação */

.pagination {
    margin: 0 !important;
}

.active > .page-link,
.page-link.active {
    background: var(--color-primary);
}

.active > .page-link,
.page-link.active {
    border-color: var(--color-primary);
}

.page-link {
    color: var(--color-primary);
}

.page-link:focus {
    box-shadow: none;
}

/* Página Cliente */

.buy-points-card,
.wallet-points-card {
    background: var(--color-gradient);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(38, 134, 101, 0.35);
    position: relative;
    overflow: hidden;
}

.points-icon {
    background: rgba(255, 255, 255, 0.15);
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.points-icon i {
    font-size: 26px;
    color: var(--color-white);
}

.wallet-points-card .btn-primary,
.buy-points-card .btn-primary {
    color: var(--color-primary) !important;
    transition: all 0.25s ease-in-out;
}

.wallet-points-card .btn-primary:hover,
.buy-points-card .btn-primary:hover {
    color: var(--color-white) !important;
}

.buy-points-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    transition: 0.6s;
}

.buy-points-card:hover::after {
    left: 120%;
}

#my-account .account-card {
    border: 2px solid transparent !important;
    cursor: pointer;
    transition: all 0.4s;
    min-height: 120px;
}

#my-account .account-card:hover {
    border: 2px solid var(--color-primary) !important;
    transition: all 0.4s;
}

#my-account .icon-wrapper {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

#orders .container-icon,
#data-personal .container-icon {
    display: flex;
    justify-content: center;
    background: var(--color-primary);
    border-radius: 50%;
    width: 60px;
    height: 60px;
}

#orders .container-icon i,
#data-personal .container-icon i {
    font-size: 24px;
}

#address-send {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 10px;
}

#address-send p {
    color: var(--color-secondary);
    background: var(--color-white-transparent);
    border-radius: 5px;
    padding: 2px 5px;
}

/* Página do lojista */

.seller-card {
    background: var(--color-gradient);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(38, 134, 101, 0.35);
    position: relative;
    overflow: hidden;
}

.seller-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 10px;
    background-color: var(--color-white);
}

/* Tickets */

.support .nav-pills .nav-link {
    border-radius: 0;
    padding: 10px 15px;
    transition: background 0.2s, padding-left 0.2s;
}

.support .nav-pills .nav-link:hover {
    background: rgba(114, 114, 114, 0.1);
    padding-left: 20px;
}

.support .nav-pills .nav-link {
    color: var(--color-primary);
}

.support .nav-pills .nav-link.active {
    background: var(--color-primary);
    color: var(--color-white) !important;
}

.support .nav-pills .nav-link.active .badge {
    background: var(--color-white) !important;
    color: var(--color-primary) !important;
}

.support .nav-pills .nav-link.active:hover {
    padding-left: 20px;
}

.support .mailbox-attachment-size {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.support .mailbox-attachments li {
    margin-bottom: 0;
}

.support .mailbox-read-message {
    max-height: 500px;
    overflow-y: auto;
}

.support .chat-bubble {
    max-width: 85%;
    padding: 1rem;
    border-radius: 8px;
    background: var(--color-grey-soft);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    border-left: 3px solid var(--color-border-dark);
}

.support .user-bubble {
    background: var(--color-white-light);
    border-left: 3px solid var(--color-primary);
}

.support .support-bubble {
    background: var(--color-grey-light);
    border-left: 3px solid var(--color-grey-dark);
}

.support .attachment-box {
    min-width: 160px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Favoritos */

.product-favorited .container-image {
    width: 100%;
    height: 100%;
}

/* Anexos */

.media-container {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 250px;
}

.container-att {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90px;
    height: 60px;
}

.container-att img {
    max-height: 50px;
}

/* Disputas */

.dispute-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    min-height: 550px;
    height: 100%;
}

.dispute-header {
    padding: 16px;
    background-color: var(--color-primary);
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    display: flex;
    flex-direction: column;
}

.dispute-header h5 {
    margin: 0;
    color: #fff;
    font-size: 1.25rem;
}

.dispute-header p {
    color: #fff;
    margin: 4px 0 0;
    font-size: 0.875rem;
}

.dispute-box {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background-color: #fff;
    max-height: 450px;
    min-height: 450px;
}

.dispute-message {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 6px;
}

.dispute-message.client,
.dispute-description,
.dispute-message.support {
    background-color: #ebecec;
}

.dispute-input {
    padding: 12px;
    border-top: 1px solid #ddd;
    background-color: #fff;
    display: flex;
}

.dispute-input text-area {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
}

.dispute-input button {
    padding: 10px 20px;
    border: none;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.dispute-input button:hover {
    background-color: var(--color-primary);
}

/* Datatable */
table {
    width: 100% !important;
}

/* Página de contato */

.search-box input {
    height: 48px;
    font-size: 1rem;
}

.search-box .input-group-text {
    border-radius: 8px 0 0 8px;
}

.help-category h3 {
    font-size: 1.25rem;
}

.accordion-item:last-of-type > .accordion-header .accordion-button.collapsed {
    box-shadow: none;
}

.accordion-button {
    border-radius: 8px !important;
}

.accordion-button:not(.collapsed) {
    background: var(--color-primary) !important;
    color: var(--color-white) !important;
    box-shadow: none;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.accordion {
    overflow: hidden;
    border-radius: 12px !important;
}

/* Sweet Alert */

div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm) {
    background-color: var(--color-primary) !important;
}

div:where(.swal2-container) button:where(.swal2-close):hover {
    color: var(--color-primary-hover) !important;
}

div:where(.swal2-container) button:where(.swal2-close):focus-visible {
    box-shadow: none !important;
}

/* Dashboard */

.dashboard-image-profile {
    width: 60px;
    height: 60px;
    object-fit: contain;
    padding: 5px;
    border-radius: 50%;
    background: var(--color-grey);
}

.dashboard-image-product {
    width: 60px;
    height: 60px;
    object-fit: contain;
    padding: 5px;
    background: var(--color-grey);
}

.dashboard-image-associate {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: contain;
    padding: 5px;
    background: var(--color-grey);
}

.dashboard-image-child {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    border: 2px solid var(--color-primary);
    background: var(--color-grey);
}

.dashboard-image-modal-product {
    max-width: 220px;
    max-height: 220px;
    padding: 5px;
    object-fit: contain;
}

.product-info {
    height: 220px;
}

.bonus-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--color-gradient);
    border-radius: 20px;
    padding: 26px 24px;
    color: var(--color-white) !important;
    text-decoration: none !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
    transition: all 0.2s ease-in-out;
    height: 100%;
}

.bonus-card:hover {
    transform: translateY(-4px) scale(1.01);
}

.bonus-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.15);
}

/* Skeleton para datatables */
.skeleton-wrapper {
    width: 100%;
    padding: 20px 0;
}

.skeleton-table {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    background: linear-gradient(90deg, #e6e6e6 25%, #f2f2f2 37%, #e6e6e6 63%);
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: 0 0;
    }
}
