
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 120px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 64px;
}

.header-line {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.green-line {
    width: 4px;
    height: 48px;
    background: linear-gradient(to bottom, #00b894, #00a085);
}

.main-title {
    font-size: 2.25rem;
    font-weight: 300;
    color: #111827;
    letter-spacing: -0.025em;
}

.subtitle {
    color: #6b7280;
    font-size: 1.125rem;
    font-weight: 300;
    max-width: 576px;
    margin: 0 auto;
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid #e5e7eb;
    padding: 12px 24px;
    border-radius: 12px;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 32px;
    text-decoration: none;
}

.back-button:hover {
    background: #f9fafb;
    border-color: #00b894;
    color: #00b894;
    transform: translateX(-4px);
}

/* Cart Layout */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 1024px) {
    .cart-layout {
        grid-template-columns: 2fr 1fr;
    }
}

/* Cart Items */
.cart-items {
    background: white;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid rgba(229, 231, 235, 0.5);
}

.cart-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.items-count {
    color: #6b7280;
    font-size: 0.875rem;
}

.clear-cart {
    color: #ef4444;
    background: none;
    border: none;
    font-size: 0.875rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.clear-cart:hover {
    opacity: 0.7;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}

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

.cart-item:hover {
    background: rgba(249, 250, 251, 0.5);
    margin: 0 -16px;
    padding: 24px 16px;
    border-radius: 12px;
}

.item-image img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-name {
    font-weight: 600;
    font-size: 1.125rem;
    color: #111827;
    margin-bottom: 4px;
}

.item-name a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s;
}

.item-name a:hover {
    color: #00b894;
}

.item-description {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 300;
    margin-bottom: 12px;
}

.item-price {
    font-weight: 600;
    color: #00b894;
    font-size: 1.125rem;
}

.item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.remove-button {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
}

.remove-button:hover {
    background: #fef2f2;
    color: #ef4444;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f9fafb;
    border-radius: 12px;
    padding: 8px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #374151;
}

.quantity-btn:hover {
    background: #00b894;
    color: white;
    transform: scale(1.1);
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.quantity-btn:disabled:hover {
    background: white;
    color: #374151;
}

.quantity-display {
    min-width: 32px;
    text-align: center;
    font-weight: 600;
    color: #111827;
    border: none;
    background: transparent;
    font-size: 1rem;
}

.quantity-display:focus {
    outline: none;
}

/* Order Summary */
.order-summary {
    background: white;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid rgba(229, 231, 235, 0.5);
    height: fit-content;
    position: sticky;
    top: 32px;
}

.summary-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 24px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    color: #6b7280;
}

.summary-line.total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.total-price {
    color: #00b894;
    font-size: 1.5rem;
}

.checkout-button {
    width: 100%;
    background: #00b894;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.checkout-button:hover {
    background: #00a085;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 184, 148, 0.3);
}

.checkout-button:active {
    transform: translateY(0);
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.cart-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cart-actions a:hover {
    background: #f3f4f6;
}

.clear-cart-btn {
    background: #f8f9fa;
    color: #dc3545;
    border: 1px solid #f5c6cb;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.clear-cart-btn:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    border: 1px solid rgba(229, 231, 235, 0.5);
}

.empty-cart-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(to right, #00b894, #00a085);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.empty-cart-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.empty-cart-description {
    color: #6b7280;
    margin-bottom: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.shop-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #00b894;
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.shop-button:hover {
    background: #00a085;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 184, 148, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding-top: 100px;
    }

    .cart-item {
        flex-direction: column;
        gap: 16px;
    }

    .item-actions {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .cart-items, .order-summary {
        padding: 24px;
    }
}

.hidden {
    display: none;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-item {
    animation: slideIn 0.3s ease;
}

@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.9); }
}

.removing {
    animation: fadeOut 0.3s ease-out forwards;
}