/* =====================================
   ENTERPRISE CART SYSTEM STYLES
   ===================================== */

/* Cart Offcanvas Main Container */
.enterprise-cart-offcanvas {
    width: 450px !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(10px);
    z-index: 1055 !important;
    background-color: #ffffff !important;
    pointer-events: auto !important;
}

/* Override Bootstrap offcanvas defaults */
.offcanvas.enterprise-cart-offcanvas {
    width: 450px !important;
    max-width: 450px !important;
    pointer-events: auto !important;
}

/* Ensure offcanvas backdrop doesn't block interaction */
.offcanvas-backdrop {
    z-index: 1050 !important;
    pointer-events: auto !important;
}

.offcanvas-backdrop.show {
    opacity: 0.5 !important;
    pointer-events: auto !important;
}

@media (max-width: 768px) {
    .enterprise-cart-offcanvas,
    .offcanvas.enterprise-cart-offcanvas {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Fix all cart element interactions */
.enterprise-cart-offcanvas,
.enterprise-cart-offcanvas * {
    pointer-events: auto !important;
}

.enterprise-cart-offcanvas button,
.enterprise-cart-offcanvas a,
.enterprise-cart-offcanvas input,
.enterprise-cart-offcanvas .btn,
.enterprise-cart-offcanvas [data-cart-action],
.enterprise-cart-offcanvas [data-bs-dismiss],
.enterprise-cart-offcanvas .cart-close-btn,
.enterprise-cart-offcanvas .btn-continue-shopping,
.enterprise-cart-offcanvas .btn-view-cart,
.enterprise-cart-offcanvas .btn-checkout,
.enterprise-cart-offcanvas .input-group button,
.enterprise-cart-offcanvas .form-control {
    pointer-events: auto !important;
    cursor: pointer !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

.enterprise-cart-offcanvas input[type="number"] {
    cursor: text !important;
    user-select: auto !important;
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
}

/* Ensure offcanvas is above everything */
.offcanvas.show,
.offcanvas.enterprise-cart-offcanvas.show {
    z-index: 1056 !important;
}

/* Force backdrop to be clickable for closing */
.offcanvas-backdrop.show {
    cursor: pointer !important;
}

/* =====================================
   CART HEADER SECTION
   ===================================== */
.enterprise-cart-header {
    background: #ed5233;
    padding: 1.5rem 1.25rem;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.enterprise-cart-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
    pointer-events: none;
}

.cart-icon-wrapper {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cart-icon-wrapper i {
    font-size: 1.5rem;
    color: white;
}

.cart-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.cart-close-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cart-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* =====================================
   CART BODY SECTION
   ===================================== */
.enterprise-cart-body {
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    background: #fafbfc;
}

/* Force display fixes for cart elements */
#shoppingCart .cart-empty-state {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

#shoppingCart .cart-content {
    display: none !important;
}

#shoppingCart.has-items .cart-empty-state {
    display: none !important;
}

#shoppingCart.has-items .cart-content {
    display: flex !important;
    flex-direction: column !important;
}

/* =====================================
   CART EMPTY STATE STYLING
   ===================================== */
.cart-empty-state {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
}

.empty-state-content {
    max-width: 280px;
}

.empty-cart-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    overflow: hidden;
}

.empty-cart-icon::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.empty-cart-icon i {
    font-size: 2.5rem;
    color: white;
    z-index: 2;
    position: relative;
}

.empty-title {
    color: #2d3748;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.empty-description {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.btn-continue-shopping {
    background: #ed5233;
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(237, 82, 51, 0.4);
}

.btn-continue-shopping:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(237, 82, 51, 0.6);
    color: white;
}

/* =====================================
   CART CONTENT WITH ITEMS
   ===================================== */
.cart-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
    max-height: 400px;
}

.cart-items-list {
    padding: 0 1.25rem;
}

/* =====================================
   INDIVIDUAL CART ITEM STYLING
   ===================================== */
.cart-item-offcanvas {
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cart-item-offcanvas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #ed5233;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-item-offcanvas:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.cart-item-offcanvas:hover::before {
    opacity: 1;
}

.cart-item-offcanvas .row {
    align-items: center;
}

.cart-item-offcanvas img,
.cart-item-image {
    width: 70px !important;
    height: 70px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    border: 2px solid rgba(237, 82, 51, 0.1) !important;
    max-width: 70px !important;
    display: block !important;
    background-color: #f8f9fa;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><circle cx="8.5" cy="8.5" r="1.5"/><polyline points="21,15 16,10 5,21"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
}

.cart-item-offcanvas h6 {
    color: #2d3748;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

/* Quantity Controls */
.cart-item-offcanvas .input-group {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cart-item-offcanvas .input-group button {
    border: none;
    background: #f7fafc;
    color: #4a5568;
    font-weight: 600;
    transition: all 0.2s ease;
    padding: 0.4rem 0.6rem;
}

.cart-item-offcanvas .input-group button:hover {
    background: #ed5233;
    color: white;
}

.cart-item-offcanvas .form-control {
    border: none;
    background: white;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
}

.cart-item-offcanvas .btn-link {
    color: #e53e3e;
    transition: all 0.2s ease;
    padding: 0.25rem;
    border-radius: 6px;
}

.cart-item-offcanvas .btn-link:hover {
    background: #fed7d7;
    color: #c53030;
}

/* Price Display */
.cart-item-offcanvas .fw-bold {
    color: #2d3748;
    font-size: 1rem;
}

.cart-item-offcanvas .text-muted {
    font-size: 0.85rem;
    color: #718096 !important;
}

/* =====================================
   CART SUMMARY SECTION
   ===================================== */
.cart-summary-section {
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1.5rem 1.25rem;
}

/* Promotion Banner */
.promotion-banner {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: white;
}

.promotion-content {
    display: flex;
    align-items: center;
}

.promotion-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    opacity: 0.9;
}

.promotion-title {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
}

.promotion-desc {
    display: block;
    opacity: 0.8;
    font-size: 0.8rem;
    margin-top: 0.125rem;
}

/* Cart Totals */
.cart-totals {
    margin-bottom: 1.5rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.total-row:last-child {
    border-bottom: none;
}

.total-row-main {
    background: #f7fafc;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid rgba(237, 82, 51, 0.1);
    margin-top: 0.5rem;
}

.total-label {
    color: #4a5568;
    font-weight: 500;
    font-size: 0.95rem;
}

.total-row-main .total-label {
    color: #2d3748;
    font-weight: 600;
    font-size: 1rem;
}

.total-value {
    color: #2d3748;
    font-weight: 600;
    font-size: 0.95rem;
}

.total-amount {
    color: #ed5233 !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
}

/* Action Buttons */
.cart-actions {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn-view-cart {
    background: white;
    color: #ed5233;
    border: 2px solid #ed5233;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-view-cart:hover {
    background: #ed5233;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(237, 82, 51, 0.3);
}

.btn-checkout {
    background: #ed5233;
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(237, 82, 51, 0.4);
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(237, 82, 51, 0.6);
    color: white;
}

/* Security Badges */
.security-badges {
    display: flex;
    justify-content: space-around;
    background: #f7fafc;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.security-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.security-item i {
    font-size: 1.25rem;
    color: #48bb78;
    margin-bottom: 0.5rem;
}

.security-item span {
    color: #4a5568;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
}

/* =====================================
   ANIMATIONS & TRANSITIONS
   ===================================== */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
    100% {
        transform: scale(1);
        opacity: 0.2;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item-offcanvas {
    animation: slideInRight 0.3s ease-out;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(237, 82, 51, 0.3);
    border-top: 2px solid #ed5233;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =====================================
   RESPONSIVE DESIGN
   ===================================== */
/* Enhanced Mobile Tablet Responsive (768px and below) */
@media (max-width: 768px) {
    .cart-page-section {
        padding: 1.5rem 0;
        min-height: auto;
        background: #f8f9fa;
    }
    
    .cart-header {
        padding: 1.25rem;
        margin-bottom: 1rem;
        border-radius: 12px;
    }
    
    .cart-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
        text-align: center;
    }
    
    .cart-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        margin-top: 1rem;
    }
    
    .cart-actions .tf-btn {
        justify-content: center;
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .cart-breadcrumb {
        font-size: 0.875rem;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }
    
    /* Hide sorting controls on mobile for cleaner UI */
    .cart-controls {
        display: none;
    }
    
    .cart-items-header .col-md-6:last-child {
        display: none;
    }
    
    .cart-items-header .col-md-6:first-child {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
    }
    
    .cart-items-header {
        padding: 1rem;
        border-radius: 12px 12px 0 0;
    }
    
    .cart-items-list {
        padding: 0;
    }
    
    .continue-shopping {
        padding: 1rem;
        text-align: center;
    }
    
    .continue-shopping .tf-btn {
        display: inline-flex;
        padding: 1rem 2rem;
    }
    
    /* Force full width layout */
    .row .col-lg-8,
    .row .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .cart-items-section {
        border-radius: 12px;
        margin-bottom: 1rem;
    }
    
    .cart-summary-section {
        position: static;
        margin-top: 1rem;
    }
    
    /* Enhanced offcanvas for tablets */
    .enterprise-cart-offcanvas {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .cart-item-offcanvas {
        margin-bottom: 0.75rem;
        border-radius: 12px;
    }
    
    .cart-item-offcanvas .row .col-3 {
        flex: 0 0 30%;
        max-width: 30%;
    }
    
    .cart-item-offcanvas .row .col-9 {
        flex: 0 0 70%;
        max-width: 70%;
    }
    
    .recently-viewed-section,
    .recommended-section {
        padding: 1rem;
        border-radius: 12px;
        margin-top: 1rem;
    }
}

/* Enhanced Mobile Phone Responsive (576px and below) */
@media (max-width: 576px) {
    .cart-page-section {
        padding: 1rem 0;
    }
    
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .cart-header {
        padding: 1rem;
        border-radius: 10px;
        text-align: center;
    }
    
    .cart-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .cart-breadcrumb {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .cart-breadcrumb .icon {
        font-size: 0.8rem;
    }
    
    .cart-actions {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .cart-actions .tf-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    .row {
        margin-left: -0.375rem;
        margin-right: -0.375rem;
    }
    
    .row > * {
        padding-left: 0.375rem;
        padding-right: 0.375rem;
    }
    
    /* Force full width layout on mobile */
    .col-lg-8,
    .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .cart-items-section {
        margin-bottom: 1rem;
        border-radius: 10px;
    }
    
    .cart-items-header {
        padding: 1rem;
        border-radius: 10px 10px 0 0;
    }
    
    .section-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .item-count {
        padding: 0.2rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .continue-shopping {
        padding: 1rem;
    }
    
    .continue-shopping .tf-btn {
        width: 100%;
        padding: 1rem;
        border-radius: 10px;
    }
    
    .cart-summary-section {
        border-radius: 10px;
    }
    
    /* Enhanced offcanvas cart mobile fixes */
    .enterprise-cart-offcanvas {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .cart-item-offcanvas {
        padding: 1rem;
        margin-bottom: 0.75rem;
        border-radius: 10px;
    }
    
    .cart-item-offcanvas .col-3 {
        flex: 0 0 30%;
        max-width: 30%;
    }
    
    .cart-item-offcanvas .col-9 {
        flex: 0 0 70%;
        max-width: 70%;
    }
    
    .cart-item-offcanvas img,
    .cart-item-image {
        width: 70px !important;
        height: 70px !important;
        border-radius: 8px !important;
    }
    
    .cart-item-offcanvas h6 {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
    .cart-item-offcanvas .input-group button {
        padding: 0.5rem 0.75rem;
        min-width: 44px;
        min-height: 44px;
    }
    
    .cart-item-offcanvas .form-control {
        min-height: 44px;
        font-size: 0.9rem;
    }
    
    /* Enhanced summary section for mobile */
    .cart-summary-section {
        padding: 1rem;
    }
    
    .cart-totals {
        margin-bottom: 1rem;
    }
    
    .total-row {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }
    
    .total-amount {
        font-size: 1.1rem !important;
    }
    
    .btn-view-cart,
    .btn-checkout {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
        min-height: 48px;
    }
    
    .security-badges {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .security-item {
        flex-direction: row;
        justify-content: flex-start;
        padding: 0.5rem;
        border-radius: 6px;
        background: white;
        border: 1px solid #e9ecef;
    }
    
    .security-item i {
        margin-right: 0.75rem;
        margin-bottom: 0;
        font-size: 1rem;
        width: 20px;
        text-align: center;
    }
    
    .security-item span {
        font-size: 0.85rem;
        text-align: left;
    }
    
    .recently-viewed-section,
    .recommended-section {
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
    }
}

/* Ultra-mobile responsive (480px and below) */
@media (max-width: 480px) {
    .cart-page-section {
        padding: 0.75rem 0;
    }
    
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .cart-header {
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .cart-title {
        font-size: 1.25rem;
    }
    
    .cart-actions .tf-btn {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .cart-items-header {
        padding: 0.75rem;
    }
    
    .section-title {
        font-size: 1rem;
    }
    
    /* More compact offcanvas */
    .cart-item-offcanvas {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
        border-radius: 8px;
    }
    
    .cart-item-offcanvas img,
    .cart-item-image {
        width: 60px !important;
        height: 60px !important;
    }
    
    .cart-item-offcanvas h6 {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }
    
    .cart-item-offcanvas .fw-bold {
        font-size: 0.9rem;
    }
    
    .cart-item-offcanvas .text-muted {
        font-size: 0.8rem;
    }
    
    .cart-item-offcanvas .input-group button {
        padding: 0.4rem 0.6rem;
    }
    
    .cart-item-offcanvas .form-control {
        font-size: 0.85rem;
    }
    
    /* Compact payment section */
    .btn-view-cart,
    .btn-checkout {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .payment-icons img {
        height: 18px;
    }
    
    .toast-container {
        width: 95%;
        bottom: 10px;
    }
    
    .toast {
        min-width: 200px;
        font-size: 0.85rem;
        margin-right: 0;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .tf-btn,
    .btn-view-cart,
    .btn-checkout {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    .cart-close-btn,
    .btn-image-zoom,
    .input-group button {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .form-control {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Remove hover effects on touch devices */
    .cart-item:hover,
    .tf-btn:hover,
    .btn-view-cart:hover,
    .btn-checkout:hover,
    .cart-item-offcanvas:hover,
    .payment-icons img:hover {
        transform: none;
    }
    
    /* Enhanced tap feedback */
    .tf-btn:active,
    .btn-view-cart:active,
    .btn-checkout:active,
    .cart-close-btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Optimize cart notifications for touch */
    .cart-notification {
        padding: 1rem;
    }
    
    /* Ensure form controls are touch-friendly */
    select.form-select {
        padding: 0.5rem 2rem 0.5rem 1rem;
        min-height: 44px;
        background-position: right 0.75rem center;
        background-size: 16px 12px;
    }
}

/* =====================================
   CART NOTIFICATIONS
   ===================================== */
.cart-notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.cart-notification {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cart-notification-success {
    border-left-color: #48bb78;
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
}

.cart-notification-error {
    border-left-color: #e53e3e;
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
}

.cart-notification:hover {
    transform: translateX(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* =====================================
   LEGACY COMPATIBILITY STYLES
   ===================================== */

/* Cart icon animation */
[data-cart-icon] {
    transition: transform 0.3s ease;
}

/* Cart count badge */
[data-cart-count] {
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* Cart empty state fallback */
[data-cart-empty] {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Cart item transitions */
.cart-item-removing {
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.3s ease;
}

.cart-item-updating {
    opacity: 0.6;
}

/* Button loading states */
[data-cart-action].loading {
    opacity: 0.7;
    cursor: not-allowed;
}

[data-cart-action].loading::after {
    content: '⏳';
    margin-left: 5px;
}

/* Add to cart button states */
[data-cart-action="add"] {
    position: relative;
    overflow: hidden;
}

[data-cart-action="add"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

[data-cart-action="add"]:active::before {
    width: 200px;
    height: 200px;
}
