/* Trigger icona carrello */
.urbs-cart-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 0;
    background: transparent;
    color: #000;
    cursor: pointer;
    transition: color 0.2s ease;
}

.urbs-cart-trigger:hover,
.urbs-cart-trigger:focus {
    color: #555;
    background: transparent;
    border-color: transparent;
}

.urbs-cart-trigger--floating:hover,
.urbs-cart-trigger--floating:focus {
    background: #333 !important;
    color: #fff !important;
    border: none !important;
}

.urbs-cart-trigger--floating:hover svg,
.urbs-cart-trigger--floating:focus svg {
    stroke: #fff;
}

.urbs-cart-trigger svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.urbs-cart-count {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #000;
    color: #fff;
    font-family: 'Afacad', sans-serif;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
}

.urbs-cart-count[hidden] {
    display: none;
}

.urbs-mobile-icons .urbs-cart-trigger {
    width: 100%;
    justify-content: flex-start;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    border-radius: 0;
}

.urbs-mobile-icons .urbs-cart-trigger::after {
    content: 'Carrello';
    font-size: 16px;
    font-weight: 500;
}

.urbs-mobile-icons .urbs-cart-trigger svg {
    width: 20px;
    height: 20px;
    stroke-width: 0;
    fill: currentColor;
}

.urbs-mobile-icons .urbs-cart-count {
    position: static;
    margin-left: auto;
}

/* Drawer */
.urbs-cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 100000010;
    pointer-events: none;
}

.urbs-cart-drawer.is-open {
    pointer-events: auto;
}

.urbs-cart-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.urbs-cart-drawer.is-open .urbs-cart-overlay {
    opacity: 1;
}

.urbs-cart-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(820px, 100vw);
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
}

.urbs-cart-drawer.is-open .urbs-cart-panel {
    transform: translateX(0);
}

.urbs-cart-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid #eee;
}

.urbs-cart-panel__header h2 {
    margin: 0;
    font-family: 'Afacad', sans-serif;
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
}

.urbs-cart-panel__close {
    border: 0;
    background: transparent;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #000;
}

.urbs-cart-drawer__inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.urbs-cart-drawer__body {
    flex: 1;
    overflow: auto;
    padding: 20px 28px;
}

.urbs-cart-drawer__footer:empty {
    display: none;
}

.urbs-cart-empty {
    text-align: center;
    padding: 40px 10px;
    font-family: 'Afacad', sans-serif;
}

.urbs-cart-empty p {
    margin-bottom: 20px;
    font-size: 16px;
}

.urbs-cart-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.urbs-cart-item {
    display: grid;
    grid-template-columns: 90px 1fr 24px;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}

.urbs-cart-item__image img {
    width: 90px;
    height: auto;
    border-radius: 4px;
    display: block;
}

.urbs-cart-item__name a {
    color: #232323;
    text-decoration: none;
    font-family: 'Afacad', sans-serif;
    font-size: 15px;
    font-weight: 500;
}

.urbs-cart-item__name a:hover {
    text-decoration: underline;
}

.urbs-cart-item__details dl {
    margin: 6px 0 0;
    font-size: 12px;
}

.urbs-cart-item__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    font-family: 'Afacad', sans-serif;
    font-size: 14px;
}

.urbs-cart-item__remove {
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.urbs-cart-item__remove:hover {
    color: #000;
}

.urbs-cart-footer {
    padding: 20px 28px 28px;
    border-top: 1px solid #eee;
    background: #fff;
}

.urbs-cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-family: 'Afacad', sans-serif;
    font-size: 18px;
}

.urbs-cart-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.urbs-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    font-family: 'Afacad', sans-serif;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    border: 2px solid #000;
    transition: all 0.2s ease;
}

.urbs-cart-btn--secondary {
    background: #fff;
    color: #000;
}

.urbs-cart-btn--secondary:hover {
    background: #f5f5f5;
    color: #000;
}

.urbs-cart-btn--primary {
    background: #000;
    color: #fff !important;
}

.urbs-cart-btn--primary:hover,
.urbs-cart-btn--primary:focus {
    background: #333;
    color: #fff !important;
}

.urbs-cart-drawer .urbs-cart-checkout,
.urbs-cart-drawer a.urbs-cart-btn--primary,
.urbs-cart-drawer a.checkout-button {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

.urbs-cart-drawer .urbs-cart-checkout:hover,
.urbs-cart-drawer .urbs-cart-checkout:focus,
.urbs-cart-drawer a.urbs-cart-btn--primary:hover,
.urbs-cart-drawer a.urbs-cart-btn--primary:focus,
.urbs-cart-drawer a.checkout-button:hover,
.urbs-cart-drawer a.checkout-button:focus {
    background: #333 !important;
    color: #fff !important;
    border-color: #333 !important;
}

body.urbs-cart-open {
    overflow: hidden;
}

/* Icona flottante in basso a destra (come il vecchio side cart) */
.urbs-cart-floating {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100000020;
}

.urbs-cart-trigger--floating {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    padding: 0;
}

.urbs-cart-trigger--floating svg {
    width: 26px;
    height: 26px;
    stroke: #fff;
}

.urbs-cart-trigger--floating .urbs-cart-count {
    top: -2px;
    right: -2px;
    background: #fff;
    color: #000;
    border: 2px solid #000;
}

@media (max-width: 767px) {
    .urbs-cart-panel {
        width: 100vw;
    }

    .urbs-cart-actions {
        grid-template-columns: 1fr;
    }
}
