.cart-wrapper {
    position: relative;
}

.cart-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
}

.cart-btn:hover {
    color: var(--pbmit-global-color);
}

.cart-btn i {
    font-size: 16px;
    color: var(--pbmit-global-color);
}

.cart-btn-price {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.cart-btn-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background-color: var(--pbmit-global-color);
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.cart-dropdown-panel {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    padding-top: 8px;
    background: transparent;
    z-index: 9999;
}

.cart-dropdown-panel-inner {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cart-wrapper:hover .cart-dropdown-panel {
    display: block;
}

.cart-dropdown-panel.show {
    display: block;
}

.cart-dropdown-header {
    padding: 14px 18px 10px;
    border-bottom: 1px solid #eee;
}

.cart-dropdown-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.cart-dropdown-body {
    padding: 14px 18px;
    max-height: 260px;
    overflow-y: auto;
}

.cart-empty-state {
    text-align: center;
    padding: 24px 10px 10px;
}

.cart-empty-icon {
    font-size: 42px;
    color: #ccc;
    margin-bottom: 10px;
    display: block;
}

.cart-empty-title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.cart-empty-text {
    margin: 0;
    font-size: 13px;
    color: #777;
    line-height: 1.4;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-of-type {
    border-bottom: none;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 170px;
}

.cart-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.cart-item-name:hover {
    color: var(--pbmit-global-color);
}

.cart-item-brand {
    font-size: 11px;
    color: #999;
}

.cart-item-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cart-item-qty {
    font-size: 12px;
    color: #777;
}

.cart-item-price {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.cart-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 10px 0 8px;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.cart-total-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.cart-total-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--pbmit-global-color);
}

.cart-dropdown-footer {
    padding: 12px 18px 14px;
    border-top: 1px solid #eee;
    text-align: center;
}

.cart-action-btn {
    display: block;
    width: 100%;
    padding: 10px 0;
    background-color: var(--pbmit-global-color);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 3px;
    transition: filter 0.2s;
}

.cart-action-btn:hover {
    filter: brightness(0.88);
    color: #fff;
}

.cart-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 320px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    z-index: 99999;
    overflow: hidden;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.2), opacity 0.3s ease;
}

.cart-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.cart-toast-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 20px;
}

.cart-toast-icon {
    font-size: 24px;
    color: var(--pbmit-global-color);
    flex-shrink: 0;
}

.cart-toast-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.cart-toast-title {
    font-size: 14px;
    font-weight: 700;
    color: #222;
}

.cart-toast-name {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-toast-view {
    font-size: 12px;
    font-weight: 700;
    color: var(--pbmit-global-color);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    border-left: 1px solid #eee;
    padding-left: 12px;
    align-self: stretch;
    display: flex;
    align-items: center;
}

.cart-toast-view:hover {
    opacity: 0.75;
    color: var(--pbmit-global-color);
}

.cart-toast-progress {
    height: 4px;
    background: var(--pbmit-global-color);
    width: 100%;
    transition: none;
}