/**
 * ============================================================================
 * Brccfaka Cart Styles for Riniba 01 Theme
 * ============================================================================
 * Template: Toy Store
 * Colors: #FBC270 (Primary/Accent), #67D4E0 (Secondary/Background)
 * Font: Nunito, Lato, Inter
 * Style: Playful, rounded corners, soft shadows
 * ============================================================================
 */

/* ============================================================================
   Cart Icon & Counter
   ============================================================================ */

.cart-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-icon-wrapper:hover {
    transform: scale(1.1);
}

.cart-icon {
    font-size: 24px;
    color: #333;
    transition: color 0.3s ease;
}

.cart-icon-wrapper:hover .cart-icon {
    color: #FBC270;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: linear-gradient(135deg, #FBC270 0%, #E8A94D 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    line-height: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(251, 194, 112, 0.5);
    animation: cartBadgePulse 2s ease-in-out infinite;
}

.cart-badge.empty {
    display: none;
}

.cart-badge.bounce {
    animation: cartBadgeBounce 0.6s ease;
}

@keyframes cartBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes cartBadgeBounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ============================================================================
   Cart Dropdown
   ============================================================================ */

.cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 380px;
    max-height: 0;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
}

.cart-dropdown.show {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, #67D4E0 0%, #4FC3D0 100%);
    border-bottom: none;
}

.cart-dropdown-title {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.cart-dropdown-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    margin-left: 10px;
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 13px;
}

.cart-dropdown-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-dropdown-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

/* ============================================================================
   Cart Items List
   ============================================================================ */

.cart-items-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px 0;
}

.cart-items-list::-webkit-scrollbar {
    width: 6px;
}

.cart-items-list::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.cart-items-list::-webkit-scrollbar-thumb {
    background: #67D4E0;
    border-radius: 3px;
}

.cart-items-list::-webkit-scrollbar-thumb:hover {
    background: #4FC3D0;
}

.cart-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

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

.cart-item:hover {
    background: #f9f9f9;
}

.cart-item-image {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    margin-right: 15px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cart-item:hover .cart-item-image img {
    transform: scale(1.1);
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    margin: 0 0 6px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.cart-item-variant {
    font-size: 12px;
    color: #888;
    padding: 2px 8px;
    background: #f5f5f5;
    border-radius: 4px;
}

.cart-item-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-item-price {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #FBC270;
}

.cart-item-price .currency {
    font-size: 12px;
    margin-right: 2px;
}

.cart-item-original-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-left: 6px;
}

.cart-item-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50%;
    color: #999;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-item-remove:hover {
    background: #ff5252;
    border-color: #ff5252;
    color: #fff;
    transform: rotate(90deg);
}

/* ============================================================================
   Quantity Controls
   ============================================================================ */

.cart-quantity-control {
    display: inline-flex;
    align-items: center;
    background: #f8f8f8;
    border-radius: 25px;
    padding: 3px;
}

.cart-quantity-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #fff;
    border: none;
    border-radius: 50%;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.cart-quantity-btn:hover:not(:disabled) {
    background: #67D4E0;
    color: #fff;
    transform: scale(1.1);
}

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

.cart-quantity-btn.minus:hover:not(:disabled) {
    background: #ff5252;
}

.cart-quantity-input {
    width: 40px;
    height: 28px;
    border: none;
    background: transparent;
    text-align: center;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.cart-quantity-input:focus {
    outline: none;
}

/* Remove spinner arrows */
.cart-quantity-input::-webkit-outer-spin-button,
.cart-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-quantity-input[type=number] {
    -moz-appearance: textfield;
}

/* ============================================================================
   Cart Empty State
   ============================================================================ */

.cart-empty {
    padding: 40px 20px;
    text-align: center;
}

.cart-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #67D4E0 0%, #4FC3D0 100%);
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(103, 212, 224, 0.4);
}

.cart-empty-icon i {
    font-size: 36px;
    color: #fff;
}

.cart-empty-title {
    margin: 0 0 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.cart-empty-text {
    margin: 0 0 20px;
    font-size: 14px;
    color: #888;
    line-height: 1.6;
}

.cart-empty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background: linear-gradient(135deg, #FBC270 0%, #E8A94D 100%);
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 25px;
    box-shadow: 0 6px 20px rgba(251, 194, 112, 0.4);
    transition: all 0.3s ease;
}

.cart-empty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(251, 194, 112, 0.5);
}

.cart-empty-btn i {
    margin-right: 8px;
}

/* ============================================================================
   Cart Footer
   ============================================================================ */

.cart-dropdown-footer {
    padding: 20px;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.cart-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ddd;
}

.cart-subtotal-label {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.cart-subtotal-amount {
    font-family: 'Nunito', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #FBC270;
}

.cart-subtotal-amount .currency {
    font-size: 14px;
    margin-right: 2px;
}

.cart-footer-buttons {
    display: flex;
    gap: 12px;
}

.cart-view-btn,
.cart-checkout-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-view-btn {
    background: #fff;
    color: #67D4E0;
    border: 2px solid #67D4E0;
}

.cart-view-btn:hover {
    background: #67D4E0;
    color: #fff;
}

.cart-checkout-btn {
    background: linear-gradient(135deg, #FBC270 0%, #E8A94D 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(251, 194, 112, 0.4);
}

.cart-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(251, 194, 112, 0.5);
}

.cart-checkout-btn i {
    margin-left: 8px;
}

/* ============================================================================
   Full Cart Page
   ============================================================================ */

.cart-page {
    padding: 40px 0;
    min-height: 60vh;
}

.cart-page-header {
    margin-bottom: 30px;
}

.cart-page-title {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #333;
}

.cart-page-title i {
    color: #67D4E0;
    margin-right: 15px;
}

.cart-page-breadcrumb {
    margin-top: 10px;
}

.cart-page-breadcrumb a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.cart-page-breadcrumb a:hover {
    color: #FBC270;
}

.cart-page-breadcrumb span {
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.cart-page-breadcrumb i {
    margin: 0 10px;
    color: #ccc;
    font-size: 12px;
}

/* ============================================================================
   Cart Table
   ============================================================================ */

.cart-table-container {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 30px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table thead {
    background: linear-gradient(135deg, #67D4E0 0%, #4FC3D0 100%);
}

.cart-table thead th {
    padding: 20px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-align: left;
    white-space: nowrap;
}

.cart-table thead th:first-child {
    padding-left: 30px;
}

.cart-table thead th:last-child {
    padding-right: 30px;
    text-align: right;
}

.cart-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.cart-table tbody tr:last-child {
    border-bottom: none;
}

.cart-table tbody tr:hover {
    background: #fafafa;
}

.cart-table tbody td {
    padding: 20px;
    vertical-align: middle;
}

.cart-table tbody td:first-child {
    padding-left: 30px;
}

.cart-table tbody td:last-child {
    padding-right: 30px;
    text-align: right;
}

/* Cart Table Product Cell */
.cart-table-product {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-table-product-image {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 15px;
    overflow: hidden;
    background: #f5f5f5;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cart-table-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cart-table tbody tr:hover .cart-table-product-image img {
    transform: scale(1.05);
}

.cart-table-product-info {
    flex: 1;
}

.cart-table-product-name {
    margin: 0 0 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
}

.cart-table-product-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cart-table-product-name a:hover {
    color: #67D4E0;
}

.cart-table-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cart-table-product-variant {
    font-size: 13px;
    color: #888;
    padding: 4px 12px;
    background: #f5f5f5;
    border-radius: 6px;
}

.cart-table-product-sku {
    font-size: 12px;
    color: #aaa;
}

/* Cart Table Price Cell */
.cart-table-price {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
}

.cart-table-price .currency {
    font-size: 13px;
    margin-right: 2px;
}

.cart-table-original-price {
    display: block;
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
}

/* Cart Table Quantity Cell */
.cart-table-quantity {
    white-space: nowrap;
}

.cart-table-quantity .cart-quantity-control {
    display: inline-flex;
}

/* Cart Table Total Cell */
.cart-table-total {
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #FBC270;
    white-space: nowrap;
}

.cart-table-total .currency {
    font-size: 13px;
    margin-right: 2px;
}

/* Cart Table Actions Cell */
.cart-table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.cart-table-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    color: #888;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-table-action-btn:hover {
    border-color: #67D4E0;
    color: #67D4E0;
}

.cart-table-action-btn.remove:hover {
    background: #ff5252;
    border-color: #ff5252;
    color: #fff;
}

/* ============================================================================
   Cart Actions Bar
   ============================================================================ */

.cart-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    background: #fafafa;
    border-radius: 15px;
    margin-bottom: 30px;
}

.cart-select-all {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-select-all label {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
}

.cart-bulk-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-bulk-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-bulk-btn:hover {
    border-color: #67D4E0;
    color: #67D4E0;
}

.cart-bulk-btn.delete:hover {
    border-color: #ff5252;
    color: #ff5252;
}

.cart-continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #67D4E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cart-continue-shopping:hover {
    color: #4FC3D0;
}

.cart-continue-shopping i {
    transition: transform 0.3s ease;
}

.cart-continue-shopping:hover i {
    transform: translateX(-5px);
}

/* ============================================================================
   Cart Summary
   ============================================================================ */

.cart-summary {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.cart-summary-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, #67D4E0 0%, #4FC3D0 100%);
}

.cart-summary-title {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.cart-summary-body {
    padding: 30px;
}

.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #eee;
}

.cart-summary-row:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cart-summary-label {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.cart-summary-value {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.cart-summary-row.total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.cart-summary-row.total .cart-summary-label {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.cart-summary-row.total .cart-summary-value {
    font-size: 28px;
    font-weight: 800;
    color: #FBC270;
}

.cart-summary-row.total .cart-summary-value .currency {
    font-size: 16px;
}

.cart-summary-savings {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(103, 212, 224, 0.1);
    border-radius: 10px;
    margin-top: 20px;
}

.cart-summary-savings i {
    color: #67D4E0;
}

.cart-summary-savings span {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #67D4E0;
}

/* ============================================================================
   Cart Coupon
   ============================================================================ */

.cart-coupon {
    padding: 25px 30px;
    border-top: 1px solid #eee;
}

.cart-coupon-title {
    margin: 0 0 15px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.cart-coupon-title i {
    color: #FBC270;
    margin-right: 8px;
}

.cart-coupon-form {
    display: flex;
    gap: 10px;
}

.cart-coupon-input {
    flex: 1;
    height: 48px;
    padding: 0 20px;
    border: 2px solid #eee;
    border-radius: 24px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    color: #333;
    transition: border-color 0.3s ease;
}

.cart-coupon-input:focus {
    outline: none;
    border-color: #67D4E0;
}

.cart-coupon-input::placeholder {
    color: #aaa;
}

.cart-coupon-btn {
    height: 48px;
    padding: 0 25px;
    background: linear-gradient(135deg, #67D4E0 0%, #4FC3D0 100%);
    border: none;
    border-radius: 24px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cart-coupon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(103, 212, 224, 0.4);
}

.cart-coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: rgba(103, 212, 224, 0.1);
    border: 2px dashed #67D4E0;
    border-radius: 12px;
}

.cart-coupon-applied-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-coupon-applied-info i {
    font-size: 20px;
    color: #67D4E0;
}

.cart-coupon-applied-code {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #67D4E0;
}

.cart-coupon-applied-discount {
    font-size: 13px;
    color: #888;
}

.cart-coupon-remove {
    background: none;
    border: none;
    color: #999;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cart-coupon-remove:hover {
    color: #ff5252;
}

/* ============================================================================
   Cart Checkout Button
   ============================================================================ */

.cart-summary-footer {
    padding: 25px 30px;
    border-top: 1px solid #eee;
}

.cart-checkout-main-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #FBC270 0%, #E8A94D 100%);
    border: none;
    border-radius: 28px;
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(251, 194, 112, 0.4);
}

.cart-checkout-main-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(251, 194, 112, 0.5);
}

.cart-checkout-main-btn:active {
    transform: translateY(0);
}

.cart-checkout-main-btn i {
    font-size: 20px;
}

.cart-Pay -methods {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.cart-Pay -methods span {
    font-size: 13px;
    color: #888;
}

.cart-Pay -methods img {
    height: 24px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.cart-Pay -methods img:hover {
    opacity: 1;
}

/* ============================================================================
   Mini Cart Sidebar
   ============================================================================ */

.cart-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
}

.cart-sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 100%;
    background: #fff;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.show {
    transform: translateX(0);
}

.cart-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px;
    background: linear-gradient(135deg, #67D4E0 0%, #4FC3D0 100%);
    flex-shrink: 0;
}

.cart-sidebar-title {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.cart-sidebar-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 10px;
    margin-left: 12px;
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 14px;
}

.cart-sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-sidebar-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

.cart-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-sidebar-body::-webkit-scrollbar {
    width: 6px;
}

.cart-sidebar-body::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.cart-sidebar-body::-webkit-scrollbar-thumb {
    background: #67D4E0;
    border-radius: 3px;
}

.cart-sidebar-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.cart-sidebar-item:last-child {
    margin-bottom: 0;
}

.cart-sidebar-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.cart-sidebar-item-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cart-sidebar-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-sidebar-item-details {
    flex: 1;
    min-width: 0;
}

.cart-sidebar-item-name {
    margin: 0 0 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-sidebar-item-variant {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.cart-sidebar-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-sidebar-item-price {
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #FBC270;
}

.cart-sidebar-item-remove {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: none;
    border-radius: 50%;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-sidebar-item-remove:hover {
    background: #ff5252;
    color: #fff;
}

.cart-sidebar-footer {
    padding: 25px;
    background: #fafafa;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.cart-sidebar-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.cart-sidebar-total-label {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #666;
}

.cart-sidebar-total-amount {
    font-family: 'Nunito', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #FBC270;
}

.cart-sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-sidebar-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 54px;
    background: linear-gradient(135deg, #FBC270 0%, #E8A94D 100%);
    border: none;
    border-radius: 27px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(251, 194, 112, 0.4);
}

.cart-sidebar-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(251, 194, 112, 0.5);
}

.cart-sidebar-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    background: #fff;
    border: 2px solid #67D4E0;
    border-radius: 24px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #67D4E0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cart-sidebar-view-btn:hover {
    background: #67D4E0;
    color: #fff;
}

/* ============================================================================
   Add to Cart Animation
   ============================================================================ */

.add-to-cart-animation {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #FBC270;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    z-index: 9999;
    pointer-events: none;
    animation: addToCartFly 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes addToCartFly {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(0.5);
    }
    100% {
        transform: scale(0.2);
        opacity: 0;
    }
}

.cart-icon-wrapper.shake {
    animation: cartShake 0.5s ease;
}

@keyframes cartShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px) rotate(-5deg); }
    50% { transform: translateX(5px) rotate(5deg); }
    75% { transform: translateX(-5px) rotate(-5deg); }
}

/* ============================================================================
   Cart Recommendations
   ============================================================================ */

.cart-recommendations {
    margin-top: 50px;
}

.cart-recommendations-title {
    margin: 0 0 30px;
    font-family: 'Nunito', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #333;
    text-align: center;
}

.cart-recommendations-title span {
    color: #FBC270;
}

.cart-recommendations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.cart-recommendation-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.cart-recommendation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.cart-recommendation-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.cart-recommendation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cart-recommendation-card:hover .cart-recommendation-image img {
    transform: scale(1.1);
}

.cart-recommendation-add {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FBC270;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 194, 112, 0.4);
}

.cart-recommendation-card:hover .cart-recommendation-add {
    opacity: 1;
    transform: translateY(0);
}

.cart-recommendation-add:hover {
    background: #E8A94D;
}

.cart-recommendation-body {
    padding: 20px;
}

.cart-recommendation-name {
    margin: 0 0 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-recommendation-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cart-recommendation-name a:hover {
    color: #67D4E0;
}

.cart-recommendation-price {
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #FBC270;
}

/* ============================================================================
   Responsive Styles
   ============================================================================ */

@media (max-width: 1200px) {
    .cart-recommendations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .cart-dropdown {
        width: 340px;
    }
    
    .cart-summary {
        position: static;
        margin-top: 30px;
    }
    
    .cart-recommendations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cart-dropdown {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 100%;
        border-radius: 0;
        transform: translateY(100%);
    }
    
    .cart-dropdown.show {
        transform: translateY(0);
    }
    
    .cart-items-list {
        max-height: calc(100vh - 250px);
    }
    
    .cart-table-container {
        overflow-x: auto;
    }
    
    .cart-table {
        min-width: 800px;
    }
    
    .cart-actions-bar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .cart-sidebar {
        width: 100%;
    }
    
    .cart-page-title {
        font-size: 24px;
    }
    
    .cart-recommendations-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-item-name {
        font-size: 13px;
    }
    
    .cart-footer-buttons {
        flex-direction: column;
    }
    
    .cart-view-btn,
    .cart-checkout-btn {
        width: 100%;
    }
    
    .cart-coupon-form {
        flex-direction: column;
    }
    
    .cart-coupon-btn {
        width: 100%;
    }
    
    .cart-summary-row.total .cart-summary-value {
        font-size: 24px;
    }
    
    .cart-checkout-main-btn {
        height: 50px;
        font-size: 16px;
    }
}

/* ============================================================================
   Cart Loading States
   ============================================================================ */

.cart-loading {
    position: relative;
    pointer-events: none;
}

.cart-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
}

.cart-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: #67D4E0;
    border-radius: 50%;
    animation: cartSpin 0.8s linear infinite;
}

@keyframes cartSpin {
    to { transform: rotate(360deg); }
}

.cart-item-skeleton {
    display: flex;
    align-items: flex-start;
    padding: 15px 20px;
    gap: 15px;
}

.cart-item-skeleton .skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: 8px;
}

.cart-item-skeleton .skeleton-image {
    width: 70px;
    height: 70px;
    border-radius: 12px;
}

.cart-item-skeleton .skeleton-text {
    height: 14px;
    margin-bottom: 8px;
}

.cart-item-skeleton .skeleton-text.short {
    width: 60%;
}

.cart-item-skeleton .skeleton-text.long {
    width: 100%;
}

@keyframes skeletonShimmer {
    to { background-position: -200% 0; }
}

/* ============================================================================
   Cart Error & Success States
   ============================================================================ */

.cart-message {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.cart-message-success {
    background: rgba(103, 212, 224, 0.1);
    border: 1px solid rgba(103, 212, 224, 0.3);
}

.cart-message-success i {
    font-size: 24px;
    color: #67D4E0;
}

.cart-message-success p {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #67D4E0;
}

.cart-message-error {
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.3);
}

.cart-message-error i {
    font-size: 24px;
    color: #ff5252;
}

.cart-message-error p {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #ff5252;
}

.cart-message-warning {
    background: rgba(251, 194, 112, 0.1);
    border: 1px solid rgba(251, 194, 112, 0.3);
}

.cart-message-warning i {
    font-size: 24px;
    color: #FBC270;
}

.cart-message-warning p {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #e8a94d;
}
