/* ============================
   Navigation and Categories
============================ */
.category-item {
    display: block !important;
    width: 100%;
    margin-bottom: 10px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.category-link {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #000;
}

.category-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.category-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.count-submenu {
    display: inline-block;
    background-color: #253064 !important;
    color: #fff !important;
    border-radius: 50%;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    line-height: 24px;
}

.toggle-submenu {
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    color: #000;
}

.submenu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 8px 0 0 28px;
}

.submenu li {
    display: block;
    margin: 4px 0;
}

.category-item.active > .submenu {
    display: block;
}

.title.style-3 {
    background-size: auto 15px !important;
    padding-bottom: 15px !important;
}

/* ============================
   Alerts
============================ */
#lw-alert {
    display: none;
    background: #253064;
    border: 1px solid #1a2247;
    color: #ffffff;
    font-size: 1.2rem;
    position: fixed;
    bottom: 300px;
    right: 40px;
    padding: 30px;
}

/* ============================
   Cart Actions
============================ */
.shopping-cart-button:hover a {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #ffffff !important;
}

.shopping-cart-button-2 a {
    display: inline-block;
    width: 100%;
    margin-top: 5px;
    text-align: center;
    font-size: 14px;
    color: #ffffff;
    border-radius: 4px;
    line-height: 1;
    padding: 10px 20px;
    background-color: #8099CE;
    font-family: "Quicksand", sans-serif;
    border: 2px solid #8099CE;
    transition: all 0.3s ease;
}

.shopping-cart-button-2 a:hover {
    background-color: #5f7bb8 !important;
    border-color: #5f7bb8;
}

.btn-acquisto-rapido,
.btn-acquisto-rapido:visited {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #ffffff !important;
}

.btn-acquisto-rapido:hover,
.btn-acquisto-rapido:focus,
.btn-acquisto-rapido:active {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.btn-conferma-carrello,
.btn-conferma-carrello:visited {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #ffffff !important;
}

.btn-conferma-carrello:hover,
.btn-conferma-carrello:focus,
.btn-conferma-carrello:active {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

/* ============================
   Generic Swatches
============================ */
.list-filter.size-filter li a {
    display: inline-block;
    width: 32px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid #ddd;
}

.list-filter.size-filter li a.small {
    width: 24px;
    height: 24px;
}

.list-filter.size-filter li.active a {
    border: 5px solid #253064;
}

/* ============================
   Carousel
============================ */
.carausel-1-column-cover {
    position: relative;
}

/* ============================
   Buttons
============================ */
.btn-dark {
    background-color: #1a1f3c !important;
    border-color: #1a1f3c !important;
    color: #ffffff !important;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.btn-dark:hover,
.btn-dark:focus {
    background-color: #242a52 !important;
    border-color: #242a52 !important;
    color: #ffffff !important;
}

.btn-dark:active {
    background-color: #11152b !important;
    border-color: #11152b !important;
    color: #ffffff !important;
}

.btn-toogle-filtro {
    position: absolute;
    display: inline-block;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    text-align: center;
    opacity: 0.8;
    padding: 10px;
    font-weight: 700;
    color: #253064;
    background-color: #e6e6e6;
}

.btn-toogle-filtro:hover {
    background-color: #d4d4d4;
    color: #253064;
    opacity: 1;
}

.box-toggle-filtro {
    max-height: 200px;
    overflow: hidden;
    transition: all 0.6s ease;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================
   Product Detail
============================ */
.product-format-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid #253064;
    background: linear-gradient(180deg, #2c3a76 0%, #253064 100%);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(37, 48, 100, 0.18);
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.product-format-chip:hover,
.product-format-chip:focus-visible {
    background: #ffffff;
    border-color: #253064;
    color: #253064 !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(37, 48, 100, 0.18);
}

.product-format-chip:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(37, 48, 100, 0.15);
}

.product-format-switcher .product-format-chip--current {
    background: #8099CE;
    border-color: #8099CE;
    color: #fff !important;
    cursor: default;
    pointer-events: none;
    box-shadow: none;
    transform: none;
}

.product-color-switcher .list-filter.size-filter li a {
    transition: box-shadow .2s ease, border-color .2s ease, filter .2s ease;
}

.product-color-switcher .list-filter.size-filter li a:hover,
.product-color-switcher .list-filter.size-filter li a:focus-visible {
    border-color: #253064 !important;
    box-shadow: 0 0 0 3px rgba(37, 48, 100, 0.18);
    filter: brightness(1.03);
    outline: none;
}

.product-color-switcher .list-filter.size-filter li.active a {
    border-color: #253064 !important;
    box-shadow: 0 0 0 4px rgba(37, 48, 100, 0.25);
}

.product-tag-chip {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.1;
    text-decoration: none !important;
    background-color: #8099CE;
    border: 1px solid #8099CE;
    color: #fff !important;
    transition: box-shadow .2s ease, filter .2s ease, background-color .2s ease, border-color .2s ease;
}

.product-tag-chip:hover,
.product-tag-chip:focus-visible {
    background-color: #6f88bf;
    border-color: #6f88bf;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 0 0 3px rgba(37, 48, 100, 0.16);
    filter: none;
    outline: none;
}

/* ============================
   Text Utilities
============================ */
b {
    font-weight: 800 !important;
    color: inherit;
}

/* ============================
   Custom Alert Cards
============================ */
.tb-alert {
    position: relative;
    margin-bottom: 12px;
    padding: 14px 16px;
    border-width: 1px;
    border-style: solid;
    border-radius: 0;
}

.tb-alert::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    border-top-left-radius: inherit;
    border-bottom-left-radius: inherit;
}

.tb-alert strong {
    color: inherit;
}

.tb-alert--success {
    background-color: rgba(25, 135, 84, 0.10);
    color: var(--bs-success-text-emphasis, #0f5132);
    border-color: var(--bs-success, #198754);
}

.tb-alert--success::before {
    background: var(--bs-success, #198754);
}

.tb-alert--info {
    background-color: rgba(13, 202, 240, 0.10);
    color: var(--bs-info-text-emphasis, #055160);
    border-color: var(--bs-info, #0dcaf0);
}

.tb-alert--info::before {
    background: var(--bs-info, #0dcaf0);
}

.tb-alert--primary {
    background-color: rgba(13, 110, 253, 0.10);
    color: var(--bs-primary-text-emphasis, #052c65);
    border-color: var(--bs-primary, #0d6efd);
}

.tb-alert--primary::before {
    background: var(--bs-primary, #0d6efd);
}

.tb-alert--warning {
    background-color: rgba(255, 193, 7, 0.14);
    color: var(--bs-warning-text-emphasis, #664d03);
    border-color: var(--bs-warning, #ffc107);
}

.tb-alert--warning::before {
    background: var(--bs-warning, #ffc107);
}

.tb-alert--danger {
    background-color: rgba(220, 53, 69, 0.10);
    color: var(--bs-danger-text-emphasis, #842029);
    border-color: var(--bs-danger, #dc3545);
}

.tb-alert--danger::before {
    background: var(--bs-danger, #dc3545);
}

.tb-alert--secondary {
    background-color: rgba(108, 117, 125, 0.10);
    color: var(--bs-secondary-text-emphasis, #41464b);
    border-color: var(--bs-secondary, #6c757d);
}

.tb-alert--secondary::before {
    background: var(--bs-secondary, #6c757d);
}

.tb-alert--light {
    background-color: rgba(248, 249, 250, 0.75);
    color: var(--bs-secondary-text-emphasis, #495057);
    border-color: var(--bs-light, #f8f9fa);
}

.tb-alert--light::before {
    background: var(--bs-light, #f8f9fa);
}

.tb-alert--dark {
    background-color: rgba(33, 37, 41, 0.10);
    color: var(--bs-dark-text-emphasis, #1a1d20);
    border-color: var(--bs-dark, #212529);
}

.tb-alert--dark::before {
    background: var(--bs-dark, #212529);
}

/* ============================
   Order Detail
============================ */
.tb-note-box {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 12px 14px;
    border: 1px solid #dbe3f4;
    border-radius: 6px;
    background: #f8faff;
}

.tb-note-box__title {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 700;
    color: #253064;
}

.tb-note-box__body {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #4b5d8f;
    white-space: pre-line;
}

/* ============================
   Reso Form
============================ */
.contact-from-area .reso-control {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
    box-shadow: none;
    color: #253D4E;
    font-size: 16px;
    width: 100%;
    transition: border-color .2s ease, background-color .2s ease, opacity .2s ease;
}

.contact-from-area .input-style .reso-control,
.contact-from-area .textarea-style .reso-control {
    padding: 15px 20px;
}

.contact-from-area .input-style .reso-control,
.contact-from-area .input-style select.reso-control {
    height: 64px;
}

.contact-from-area .textarea-style .reso-control {
    min-height: 200px;
    resize: vertical;
}

.contact-from-area select.reso-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #838383 50%), linear-gradient(135deg, #838383 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 42px;
}

.contact-from-area input[type="file"].reso-control {
    padding: 13px 15px;
    height: auto;
}

.contact-from-area input[type="file"].reso-control::file-selector-button {
    border: 1px solid #253D4E;
    background: #253D4E;
    color: #fff;
    border-radius: 8px;
    padding: 10px 16px;
    margin-right: 14px;
    cursor: pointer;
}

.contact-from-area input[type="file"].reso-control::-webkit-file-upload-button {
    border: 1px solid #253D4E;
    background: #253D4E;
    color: #fff;
    border-radius: 8px;
    padding: 10px 16px;
    margin-right: 14px;
    cursor: pointer;
}

.contact-from-area .reso-control[readonly],
.contact-from-area .reso-control:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 1;
}

.contact-from-area .reso-control:disabled::file-selector-button,
.contact-from-area .reso-control:disabled::-webkit-file-upload-button {
    background: #6c757d;
    border-color: #6c757d;
}

.contact-from-area .is-readonly {
    opacity: .92;
}

.contact-from-area .reso-submit:disabled {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    cursor: not-allowed;
    opacity: .75;
}
