/* ========================================
   Cart Sidebar Styles
   ======================================== */

/* Sidebar shopping cart style */
.shoppingCart {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.shoppingCart.active {
    right: 0;
    display: flex !important;
    flex-direction: column;
}

.shoppingCart-title {
    padding: 20px;
    border-bottom: 1px solid #eee;
    margin: 0;
    font-size: 18px;
}

.shoppingCart-total {
    font-size: 14px;
    color: #666;
    font-weight: normal;
    margin-top: 5px;
}

.shoppingBag-product {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    margin: 0;
    list-style: none;
}

.shoppingBag-product_item {
    display: flex;
    gap: 15px;
    padding: 15px 25px 15px 15px;
    border-bottom: 1px solid #eee;
}

.shoppingBag-product_img {
    width: 80px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.shoppingBag-product_img img {
    width: 100%;
    height: auto;
    display: block;
}

.shoppingBag-product_img .proList-item_percent {
    position: absolute;
    top: 0;
    left: 0;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    padding: 2px 4px;
    white-space: nowrap;
    z-index: 1;
}

.shoppingBag-product_info {
    flex: 1;
    min-width: 0;
}

.shoppingBag-product_name {
    display: block;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.shoppingBag-product_bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
    position: relative;
    min-height: 28px;
}

.shoppingBag-product_option {
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    max-width: 130px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.shoppingBag-product_option:hover {
    border-color: #68699a;
    color: #68699a;
    background: #fff;
}

.shoppingBag-product_option .button-arrowDown {
    font-size: 12px;
    flex-shrink: 0;
}

.shoppingBag-product_delete {
    position: absolute;
    top: 15px;
    right: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
}

.shoppingCart-bottom {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fff;
}

.shoppingCart-bottom_btn {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shoppingCart-bottom_btn a {
    display: block;
    text-align: center;
    padding: 12px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
}

.shoppingCart-bottom_cart {
    background: #f5f5f5;
    color: #333;
}

.shoppingCart-bottom_buy {
    background: #68699a;
    color: #fff;
}

.shoppingCart-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    z-index: 10;
}

.window-cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
}

/* Quantity selector */
.option-num {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 28px;
}

.option-num_btn {
    width: 28px;
    height: 26px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    transition: all 0.2s;
}

.option-num_btn:hover {
    background: #68699a;
    color: #fff;
}

.option-num_btn:active {
    transform: scale(0.95);
}

.option-num_number {
    width: 32px;
    height: 26px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 13px;
    padding: 0;
}

/* Price box */
.price-box {
    margin-top: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.price-box_price {
    font-weight: 600;
    color: #68699a;
    font-size: 15px;
}

.price-box_oldPrice {
    text-decoration: line-through;
    color: #999;
    font-size: 12px;
}

/* Empty cart message */
.shoppingBag-product:empty::after {
    content: 'Your cart is empty';
    display: block;
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-size: 14px;
}

/* Scrollbar style */
.shoppingBag-product.scroll-bar::-webkit-scrollbar {
    width: 4px;
}

.shoppingBag-product.scroll-bar::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

.shoppingBag-product.scroll-bar::-webkit-scrollbar-track {
    background: #f5f5f5;
}

/* ===== Empty cart sidebar style ===== */
.shoppingCart-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding: 20px 20px 15px;
    border-bottom: 1px solid #eee;
}

.shoppingCart-empty {
    text-align: center;
    padding: 20px;
}

.shoppingCart-empty .empty-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.shoppingCart-empty_back {
    display: inline-block;
    padding: 10px 20px;
    background: #68699a;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
}

.shoppingCart-empty_back:hover {
    background: #238b9b;
    color: #fff !important;
}

.emptyCart-recomment {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px;
    padding: 0 20px;
    color: #333;
}

/* UIkit slider style for empty cart */
.emptyCart-slider {
    padding: 0 20px 20px;
    flex: 1;
    overflow: hidden;
}

.emptyCart-slide-item {
    width: 140px;
}

.emptyCart-product {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
}

.emptyCart-discount {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #dc1e29;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 1;
}

.emptyCart-product_img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.emptyCart-product_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.emptyCart-product_title {
    display: block;
    font-size: 12px;
    color: #333;
    padding: 8px 8px 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    line-height: 1.3;
}

.emptyCart-product_title:hover {
    color: #68699a;
}

.emptyCart-product_price {
    padding: 0 8px 10px;
    font-size: 13px;
}

.emptyCart-price {
    color: #dc1e29;
    font-weight: 600;
}

.emptyCart-oldPrice {
    color: #999;
    text-decoration: line-through;
    font-size: 11px;
    margin-left: 5px;
}

/* Slider arrow style */
.emptyCart-slider .uk-slidenav {
    color: #333;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 30px;
    height: 30px;
}

.emptyCart-slider .uk-slidenav:hover {
    color: #68699a;
}

/* Carousel indicator */
.emptyCart-slider .uk-dotnav > * > * {
    width: 8px;
    height: 8px;
    background: #ddd;
}

.emptyCart-slider .uk-dotnav > .uk-active > * {
    background: #68699a;
}
