/* storage/css/cart.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', 'Tahoma', sans-serif;
    background-color: #d6f7fc;
    direction: rtl;
    min-height: 100vh;
}

.mobile-container {
    max-width: 480px;
    margin: 0 auto;
    background-color: #d6f7fc;
    min-height: 100vh;
    position: relative;
    padding-bottom: 80px;
}

/* Page Header */
.page-header {
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    margin: 15px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.page-header h1 {
    font-size: 22px;
    color: #1f2d3d;
    margin-bottom: 8px;
    font-weight: 700;
}

.page-header p {
    font-size: 14px;
    color: #3d4b57;
}

/* Cart Content Layout */
.cart-content {
    padding: 0 15px;
}

/* Cart Items */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.cart-item {
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Item Header */
.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(68, 132, 160, 0.15);
}

.item-info {
    flex: 1;
}

.item-info h3 {
    font-size: 17px;
    color: #1f2d3d;
    margin-bottom: 8px;
    font-weight: 700;
    line-height: 1.4;
}

.item-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #5a6c7d;
    flex-wrap: wrap;
}

.item-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Remove Button */
.remove-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.25);
    white-space: nowrap;
    flex-shrink: 0;
}

.remove-btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(231, 76, 60, 0.35);
}

.remove-btn:active {
    transform: translateY(0);
}

/* Selected Items Tags */
.selected-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.selected-item-tag {
    background: linear-gradient(135deg, #4484a0 0%, #2c6d88 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 8px rgba(68, 132, 160, 0.25);
}

/* Item Price */
.item-price {
    background: rgba(191, 216, 236, 0.25);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(191, 216, 236, 0.4);
}

.item-price .label {
    font-size: 13px;
    color: #5a6c7d;
    margin-bottom: 4px;
}

.item-price .value {
    font-size: 20px;
    font-weight: 700;
    color: #2c6d88;
}

/* Cart Summary */
.cart-summary {
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    margin: 0 15px 20px;
}

.summary-title {
    font-size: 18px;
    color: #1f2d3d;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(68, 132, 160, 0.15);
    font-weight: 700;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 15px;
    color: #3d4b57;
}

.summary-row.total {
    border-top: 2px solid rgba(68, 132, 160, 0.2);
    margin-top: 12px;
    padding-top: 16px;
    font-size: 18px;
    font-weight: 700;
    color: #1f2d3d;
}

.summary-row .value {
    color: #2c6d88;
    font-weight: 700;
}

/* Checkout Button */
.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, #ffdf7c 0%, #ffd54f 100%);
    color: #1a1a1a;
    border: none;
    padding: 14px;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.25s ease;
    box-shadow: 0 6px 16px rgba(255, 223, 124, 0.4);
}

.checkout-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 223, 124, 0.5);
    background: linear-gradient(135deg, #ffd54f 0%, #ffca28 100%);
}

.checkout-btn:active:not(:disabled) {
    transform: translateY(0);
}

.checkout-btn:disabled {
    background: rgba(149, 165, 166, 0.4);
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
}

/* Empty Cart */
.empty-cart {
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 50px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    margin: 0 15px;
}

.empty-cart-icon {
    font-size: 70px;
    color: #bfd8ec;
    margin-bottom: 16px;
}

.empty-cart h2 {
    font-size: 20px;
    color: #3d4b57;
    margin-bottom: 12px;
    font-weight: 700;
}

.empty-cart p {
    font-size: 15px;
    color: #5a6c7d;
    margin-bottom: 24px;
    line-height: 1.6;
}

.continue-shopping {
    display: inline-block;
    background: linear-gradient(135deg, #4484a0 0%, #2c6d88 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(68, 132, 160, 0.3);
}

.continue-shopping:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(68, 132, 160, 0.4);
    background: linear-gradient(135deg, #2c6d88 0%, #1f4f66 100%);
}

/* Responsive */
@media (max-width: 480px) {
    .page-header {
        margin: 10px;
        padding: 16px;
    }

    .page-header h1 {
        font-size: 20px;
    }

    .cart-content {
        padding: 0 10px;
    }

    .item-header {
        flex-direction: column;
        gap: 12px;
    }

    .remove-btn {
        width: 100%;
        padding: 10px;
    }

    .item-meta {
        flex-direction: column;
        gap: 6px;
    }

    .cart-summary {
        margin: 0 10px 20px;
    }

    .empty-cart {
        margin: 0 10px;
        padding: 40px 16px;
    }
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: #a7a7a7;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding: 0px 4px 4px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    height: 80px;
}

.nav-icon-small {
    width: 67px;
    height: 70px;
    background: transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon-small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-icon-large {
    width: 100px;
    height: 100px;
    position: relative;
    top: -2px;
    border: 11px solid #a7a7a7;
    border-radius: 50%;
    box-sizing: border-box;
}

.nav-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
/* Selected Items Section */
.selected-items-title {
    font-size: 14px;
    color: #3d4b57;
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(68, 132, 160, 0.1);
}

.selected-item-tag {
    background: linear-gradient(135deg, #4484a0 0%, #2c6d88 100%);
    color: white;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 8px rgba(68, 132, 160, 0.25);
    transition: all 0.2s ease;
}

.selected-item-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(68, 132, 160, 0.35);
}

.item-tag-price {
    margin-right: auto;
    background: rgba(255, 255, 255, 0.25);
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.back-btn {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 200;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 8px 18px;
    color: #2c6d88;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.45);
}

.item-remove-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    transition: background 0.2s ease;flex-shrink: 0;margin-right: auto;
}

.item-remove-btn:hover {
    background: rgba(231, 76, 60, 0.5);
}
