/* Cart Page Styles - Consistent with Homepage, Archive and Product Detail Pages */

/* Cart Page Header Styling - Exact Product Detail Page Style */
body.page-template-page-cart .site-header {
    background-color: #EEEEEE !important;
    box-shadow: none !important;
    position: sticky !important;
    top: 0 !important; /* Stick right after top bar */
    width: 100% !important;
    z-index: 1000 !important;
    border-bottom: 1px solid #000000;
}

/* Top bar remains unchanged for consistency */
body.page-template-page-cart .top-bar {
    background-color: #0B926A;
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

/* Cart Page Header Text Black */
body.page-template-page-cart .primary-menu li a {
    color: #000000 !important;
    font-family: sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

body.page-template-page-cart .primary-menu li a:hover {
    color: #0B926A !important;
}

body.page-template-page-cart .header-actions a {
    color: #000000 !important;
}

body.page-template-page-cart .header-actions a:hover {
    color: #0B926A !important;
}

body.page-template-page-cart .toggle-menu {
    color: #000000 !important;
}

body.page-template-page-cart .toggle-menu:hover {
    color: #0B926A !important;
}

/* Ensure cart count badge remains visible */
body.page-template-page-cart .cart-count {
    background-color: #0B926A !important;
    color: white !important;
}

/* Logo text styling - consistent with theme */
body.page-template-page-cart .logo-text {
    color: #0B926A;
    font-size: 24px;
    font-weight: 700;
    margin-left: 10px;
    letter-spacing: 1px;
    vertical-align: middle;
}

/* Search dropdown styling for cart page */
body.page-template-page-cart .search-dropdown {
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.page-template-page-cart .search-input {
    color: #333;
}

body.page-template-page-cart .search-btn {
    background-color: #0B926A;
    color: white;
}

/* Mobile menu styling for cart page */
body.page-template-page-cart .mobile-menu {
    background-color: white;
}

body.page-template-page-cart .mobile-nav a {
    color: #333 !important;
}

body.page-template-page-cart .mobile-nav a:hover {
    color: #0B926A !important;
}

/* Adjust main content to account for sticky header */
body.page-template-page-cart .cart-page {
    margin-top: 0; /* No extra margin needed with sticky header */
}

/* Main Cart Container */
.cart-page {
    padding: 80px 0 60px;
    background-color: #ffffff;
    min-height: 70vh;
}

/* Page Title - Cormorant Garamond Style */
.cart-page .page-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: normal;
    font-size: 50px;
    text-transform: uppercase;
    color: #000000;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: 2px;
    line-height: 1.2;
}

/* Login Recommendation Section */
.login-recommendation {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.login-recommendation-content {
    display: flex;
    align-items: center;
    gap: 25px;
    text-align: left;
}

.recommendation-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0B926A 0%, #08774a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.recommendation-text {
    flex: 1;
}

.recommendation-text h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 400;
    color: #000000;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.recommendation-text p {
    font-family: 'Century Gothic', sans-serif;
    font-size: 14px;
    color: #666666;
    margin: 0;
    line-height: 1.5;
}

.recommendation-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-login,
.btn-register {
    /* Exact match homepage hero button styles */
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 0;
    background-color: #00b894;
    border: none;
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-family: sans-serif;
    text-transform: uppercase;
    /* Additional login/register specific styles */
    cursor: pointer;
    min-width: 100px;
    text-align: center;
    line-height: 1;
}

.btn-login:hover,
.btn-register:hover {
    /* Exact match homepage hero button hover */
    background-color: #01a884;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 184, 148, 0.3);
    color: #ffffff !important;
    text-decoration: none;
}

.btn-register {
    background-color: #ffffff;
    color: #000000 !important;
    border: 1px solid #000000;
}

.btn-register:hover {
    background-color: #000000;
    color: #ffffff !important;
    border-color: #000000;
}

/* Cart Table Styling */
.cart-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    table-layout: fixed;
    display: table;
}

@media (min-width: 769px) {
    .cart-table {
        table-layout: fixed;
        width: 100%;
        display: table;
    }
    
    .cart-table thead {
        display: table-header-group;
    }
    
    .cart-table tbody {
        display: table-row-group;
    }
    
    .cart-table tr {
        display: table-row;
    }
    
    .cart-table th,
    .cart-table td {
        display: table-cell;
    }
}

.cart-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 15px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 14px;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #0B926A;
    text-align: left;
    white-space: nowrap;
    display: table-cell;
    vertical-align: middle;
}

@media (min-width: 1024px) {
    .cart-table th {
        padding: 20px 20px;
        font-size: 16px;
    }
}

@media (min-width: 769px) {
    .cart-table th {
        padding: 20px 15px;
        display: table-cell;
    }
}

/* Set column widths for better desktop layout */
@media (min-width: 769px) {
    .cart-table th:nth-child(1),
    .cart-table td:nth-child(1) {
        width: 40%;
        text-align: left;
    }
    
    .cart-table th:nth-child(2),
    .cart-table td:nth-child(2) {
        width: 15%;
        text-align: left;
    }
    
    .cart-table th:nth-child(3),
    .cart-table td:nth-child(3) {
        width: 20%;
        text-align: left;
    }
    
    .cart-table th:nth-child(4),
    .cart-table td:nth-child(4) {
        width: 15%;
        text-align: left;
    }
    
    .cart-table th:nth-child(5),
    .cart-table td:nth-child(5) {
        width: 10%;
        text-align: center;
    }
}

.cart-table td {
    padding: 20px 15px;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
    text-align: left;
    display: table-cell;
}

@media (min-width: 1024px) {
    .cart-table td {
        padding: 25px 20px;
    }
}

@media (min-width: 769px) {
    .cart-table td {
        text-align: left;
        display: table-cell;
    }
    
    .cart-table td:nth-child(5) {
        text-align: center;
    }
}

.cart-table tbody tr {
    transition: all 0.3s ease;
}

.cart-table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    transform: scale(1.01);
}

/* Cart Product Display */
.cart-product {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-product-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .cart-product-image {
        width: 80px;
        height: 80px;
    }
}

.cart-product-info {
    flex: 1;
}

.cart-product-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (min-width: 1024px) {
    .cart-product-title {
        font-size: 18px;
    }
}

.product-variation {
    font-family: 'Century Gothic', sans-serif;
    font-size: 12px;
    color: #666666;
}

.product-variation span {
    display: inline-block;
    margin-right: 10px;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Price Display */
.price-value {
    font-family: 'Century Gothic', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000000;
}

/* Subtotal Display */
.subtotal-value {
    font-family: 'Century Gothic', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000000;
}

/* Desktop alignment for table cells */
@media (min-width: 769px) {
    .mobile-price-info,
    .mobile-qty-info,
    .mobile-subtotal-info {
        display: block;
        text-align: left;
    }
    
    .mobile-price-info {
        text-align: left;
    }
    
    .mobile-qty-info {
        text-align: left;
    }
    
    .mobile-subtotal-info {
        text-align: left;
    }
    
    .price-value,
    .subtotal-value {
        display: inline-block;
    }
}

/* Quantity Selector - Updated Design */
.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid #888888;
    border-radius: 4px;
    overflow: hidden;
    background: white;
}

@media (min-width: 769px) {
    .quantity-selector {
        display: inline-flex;
    }
}

.quantity-btn {
    width: 35px;
    height: 42px;
    border: none;
    background-color: #f5f5f5;
    font-family: 'Century Gothic', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background-color: #e0e0e0;
}

.quantity-input {
    width: 50px;
    height: 42px;
    border: none;
    text-align: center;
    font-family: 'Century Gothic', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #333;
    outline: none;
    background-color: white;
}

/* Remove Item Button */
.cart-remove {
    background: transparent;
    border: none;
    color: #dc3545;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-remove:hover {
    background-color: #dc3545;
    color: white;
    transform: scale(1.1);
}

@media (min-width: 769px) {
    .cart-remove {
        margin: 0 auto;
        display: block;
    }
}

/* Cart Summary - Full Width Design */
.cart-summary {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: none;
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: stretch;
}

/* Desktop layout for cart summary */
@media (min-width: 1024px) {
    .cart-summary {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: start;
    }
}

/* Cart Totals Section */
.cart-totals {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

@media (min-width: 1024px) {
    .cart-totals {
        grid-column: 1;
    }
}

.cart-totals h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 400;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0B926A;
    text-align: center;
}

.cart-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #e9ecef;
    font-family: 'Century Gothic', sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.cart-totals-row:last-child {
    border-bottom: 2px solid #0B926A;
    font-weight: 600;
    font-size: 18px;
    color: #000000;
    padding-top: 25px;
    margin-top: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(11, 146, 106, 0.1);
}

.cart-totals-row span:first-child {
    font-weight: 500;
    color: #333333;
}

.cart-totals-row span:last-child {
    font-weight: 600;
    color: #000000;
    font-size: 17px;
}

.cart-totals-row:last-child span {
    font-weight: 700;
    color: #0B926A;
    font-size: 20px;
}

/* Cart Actions - Right Column */
.cart-actions {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    min-height: 200px;
    position: relative;
    overflow: hidden;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

@media (min-width: 1024px) {
    .cart-actions {
        grid-column: 2;
    }
}

.cart-actions h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 400;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-align: center;
}

/* Cart Button Styles - Match Product Detail Page Buttons */
.btn-secondary,
.btn-primary {
    /* Base button styles */
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 0;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-family: sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    width: 100%;
    max-width: 220px;
    height: auto;
    line-height: 1;
}

/* Primary Button - Match Buy Now Button from Product Detail Page */
.btn-primary {
    /* Match Buy Now button styling from product detail page */
    background-color: #0B926A;
    color: #ffffff;
    border: none;
}

.btn-primary:hover {
    /* Match Buy Now button hover from product detail page */
    background-color: #0a7a59;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(11, 146, 106, 0.3);
    color: #ffffff !important;
    text-decoration: none;
}

/* Secondary Button - Match Add to Cart Button from Product Detail Page */
.btn-secondary {
    /* Match Add to Cart button styling from product detail page */
    background-color: #00b894;
    color: #ffffff;
    border: none;
}

.btn-secondary:hover {
    /* Match Add to Cart button hover from product detail page */
    background-color: #01a884;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 184, 148, 0.3);
    color: #ffffff !important;
    text-decoration: none;
}



/* Empty Cart State */
.cart-empty {
    text-align: center;
    padding: 80px 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.cart-empty i {
    color: #e9ecef;
    margin-bottom: 30px;
}

.cart-empty h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 300;
    color: #000000;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cart-empty p {
    font-family: 'Century Gothic', sans-serif;
    font-size: 16px;
    color: #666666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Mobile Labels */
.mobile-label {
    display: none;
    font-family: 'Century Gothic', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-right: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Hide top bar on mobile for cart page */
    body.page-template-page-cart .top-bar {
        display: none !important;
    }
    
    /* Adjust header positioning since top bar is hidden */
    body.page-template-page-cart .site-header {
        position: sticky !important;
        top: 0 !important;
    }
    
    .cart-page {
        padding: 40px 0;
    }
    
    .cart-page .page-title {
        font-size: 35px;
        margin-bottom: 30px;
    }
    
    .login-recommendation-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .recommendation-buttons {
        justify-content: center;
        flex-direction: row;
        gap: 10px;
    }
    
    /* Mobile Cart Table - List Layout */
    .cart-table {
        display: block !important;
    }
    
    .cart-table thead,
    .cart-table tbody {
        display: block !important;
    }
    
    .cart-table tr {
        display: block !important;
    }
    
    .cart-table th,
    .cart-table td {
        display: block !important;
    }
    
    /* Hide table header on mobile */
    .cart-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
        display: none !important;
    }
    
    /* Each product row becomes a card */
    .cart-table tbody tr {
        background: white;
        border-radius: 12px;
        margin-bottom: 20px;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        border: 1px solid #f1f3f4;
        position: relative;
        overflow: hidden;
    }
    
    /* Mobile table cells */
    .cart-table td {
        border: none !important;
        padding: 0 !important;
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        position: relative;
    }
    
    /* Product cell - no label needed */
    .cart-table td[data-label="Product"] {
        border-bottom: 2px solid #f8f9fa !important;
        padding-bottom: 15px !important;
        margin-bottom: 15px !important;
    }
    
    .cart-table td[data-label="Product"]:before {
        display: none !important;
    }
    
    /* Other cells show labels */
    .cart-table td[data-label]:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: #666;
        font-family: 'Century Gothic', sans-serif;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: inline-block;
        min-width: 50px;
        margin-right: 8px;
    }
    
    /* Remove cell has no label */
    .cart-table td[data-label="Remove"] {
        position: absolute;
        top: 15px;
        right: 15px;
        width: auto !important;
    }
    
    .cart-table td[data-label="Remove"]:before {
        display: none !important;
    }
    
    /* Mobile Product Layout - Horizontal Details */
    .cart-product {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 15px;
        width: 100%;
        text-align: left;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .cart-product-image {
        width: 80px !important;
        height: 80px !important;
        border-radius: 8px;
        object-fit: cover;
        flex-shrink: 0;
    }
    
    .cart-product-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 5px;
        min-width: 0;
    }
    
    .cart-product-title {
        font-size: 14px !important;
        font-weight: 600;
        margin-bottom: 3px !important;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .product-variation {
        font-size: 11px;
        color: #666;
        line-height: 1.2;
    }
    
    .product-variation span {
        display: inline-block;
        background: #f8f9fa;
        padding: 1px 6px;
        border-radius: 8px;
        margin-right: 4px;
        font-size: 10px;
        border: 1px solid #e9ecef;
    }
    
    /* Mobile Cart Details - Horizontal List Format */
    .mobile-price-info,
    .mobile-qty-info,
    .mobile-subtotal-info {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        padding: 8px 0;
        border-bottom: 1px solid #f1f3f4;
        margin: 0;
        box-sizing: border-box;
    }
    
    .mobile-subtotal-info {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
    .mobile-label {
        font-weight: 600;
        font-size: 11px;
        color: #666;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        min-width: 60px;
        flex-shrink: 0;
    }
    
    .price-value,
    .subtotal-value {
        font-weight: 600;
        color: #333;
        font-size: 13px;
        flex-shrink: 0;
    }
    
    .quantity-selector {
        display: flex;
        align-items: center;
        gap: 2px;
        flex-shrink: 0;
    }
    
    .quantity-btn {
        width: 24px !important;
        height: 24px !important;
        font-size: 12px !important;
        border-radius: 2px !important;
    }
    
    .quantity-input {
        width: 35px !important;
        height: 24px !important;
        font-size: 12px !important;
        text-align: center;
    }
    
    /* Remove button styling for mobile */
    .cart-remove {
        background: #ff4757;
        color: white;
        border: none;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 12px;
        transition: all 0.3s ease;
    }
    
    .cart-remove:hover {
        background: #ff3742;
        transform: scale(1.1);
    }
    
    .cart-actions {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
    }
    
    .btn-secondary,
    .btn-primary {
        flex: 1;
        min-width: 140px;
        margin-bottom: 0;
    }
    
    .cart-summary {
        margin: 20px 0;
        padding: 25px;
        display: block;
        grid-template-columns: none;
        gap: 0;
    }
    
    .cart-totals {
        grid-column: auto;
        margin-bottom: 30px;
        padding: 25px;
    }
    
    .cart-totals h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .cart-actions {
        grid-column: auto;
        padding: 30px 20px;
        margin-top: 0;
        min-height: auto;
    }
    
    .cart-actions h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .cart-page .page-title {
        font-size: 28px;
    }
    
    .login-recommendation {
        padding: 20px;
    }
    
    .recommendation-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .recommendation-text h4 {
        font-size: 18px;
    }
    
    .recommendation-text p {
        font-size: 13px;
    }
    
    .btn-login,
    .btn-register {
        padding: 8px 16px;
        font-size: 12px;
        min-width: 80px;
        flex: 1;
    }
    
    .cart-product-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-product-title {
        font-size: 16px;
    }
    
    .quantity-btn {
        width: 30px;
        height: 36px;
        font-size: 14px;
    }
    
    .quantity-input {
        width: 40px;
        height: 36px;
        font-size: 14px;
    }
    
    .cart-summary {
        padding: 20px;
        margin: 15px 0;
    }
    
    .cart-totals {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .cart-totals h3 {
        font-size: 18px;
    }
    
    .cart-totals-row {
        padding: 15px 0;
        font-size: 14px;
    }
    
    .cart-totals-row:last-child {
        font-size: 16px;
        padding: 18px;
    }
    
    .cart-actions {
        padding: 25px 15px;
        gap: 15px;
    }
    
    .cart-actions h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .btn-secondary,
    .btn-primary {
        padding: 14px 20px;
        font-size: 13px;
        max-width: none;
    }
}

/* Loading Overlay - Consistent with theme */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    font-family: 'Century Gothic', sans-serif;
}

.loading-overlay .spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid rgba(11, 146, 106, 0.1);
    border-top-color: #0B926A;
    animation: spin 1s infinite linear;
    margin-bottom: 15px;
}

.loading-overlay p {
    color: #0B926A;
    font-weight: 600;
    font-size: 16px;
    margin: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Extra small screens - Enhanced mobile responsiveness */
@media (max-width: 480px) {
    .cart-table tbody tr {
        margin-bottom: 15px;
        padding: 15px;
    }
    
    .cart-product {
        gap: 10px;
    }
    
    .cart-product-image {
        width: 60px !important;
        height: 60px !important;
    }
    
    .mobile-price-info,
    .mobile-qty-info,
    .mobile-subtotal-info {
        padding: 6px 0;
    }
    
    .mobile-label {
        font-size: 10px;
        min-width: 45px;
    }
    
    .price-value,
    .subtotal-value {
        font-size: 12px;
    }
    
    .quantity-btn {
        width: 22px !important;
        height: 22px !important;
        font-size: 11px !important;
    }
    
    .quantity-input {
        width: 32px !important;
        height: 22px !important;
        font-size: 11px !important;
    }
    
    .cart-remove {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
}

/* Large screens - ensure desktop view works properly */
@media (min-width: 769px) {
    .cart-table {
        display: table !important;
        table-layout: fixed !important;
    }
    
    .cart-table thead {
        display: table-header-group !important;
    }
    
    .cart-table tbody {
        display: table-row-group !important;
    }
    
    .cart-table thead tr,
    .cart-table tbody tr {
        display: table-row !important;
        position: static !important;
        background: transparent;
        border-radius: 0;
        margin-bottom: 0;
        padding: 0;
        box-shadow: none;
        border: none;
    }
    
    .cart-table th {
        display: table-cell !important;
        position: static !important;
        border-bottom: 2px solid #0B926A !important;
    }
    
    .cart-table td {
        display: table-cell !important;
        padding: 20px 15px !important;
        border-bottom: 1px solid #f1f3f4 !important;
        position: static !important;
        vertical-align: middle !important;
    }
    
    .cart-table td[data-label]:before {
        display: none !important;
    }
    
    .mobile-price-info,
    .mobile-qty-info,
    .mobile-subtotal-info {
        display: block;
        padding: 0;
        border: none;
        border-bottom: none;
    }
    
    .mobile-label {
        display: none !important;
    }
}