/* Cart Page Styles - RTL Support for Hebrew Content */

/* Header styling for cart page - make it static like shop page */
body:has(.cart-page-section) .header {
    position: fixed !important;
    top: 36px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100 !important;
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    transition: none !important;
    transform: none !important;
}

body:has(.cart-page-section) .header.scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    transform: none !important;
}

/* Header text colors - black like shop page */
body:has(.cart-page-section) .header .logo h1 {
    color: #000000 !important;
}

body:has(.cart-page-section) .header .logo .logo-letter {
    color: #000000 !important;
}

body:has(.cart-page-section) .header .nav-center a {
    color: #000000 !important;
}

body:has(.cart-page-section) .header .nav-center span {
    color: #000000 !important;
}

body:has(.cart-page-section) .header .icon-link {
    color: #000000 !important;
}

body:has(.cart-page-section) .header #search-icon {
    color: #000000 !important;
}

body:has(.cart-page-section) .header #search-icon svg {
    stroke: #000000 !important;
}

body:has(.cart-page-section) .header .cart-icon-link {
    color: #000000 !important;
}

body:has(.cart-page-section) .header .cart-icon-link svg {
    stroke: #000000 !important;
}

body:has(.cart-page-section) .header .mobile-menu-toggle span {
    background-color: #000000 !important;
}

/* Prevent header from changing on scroll for cart page */
body:has(.cart-page-section) .header {
    will-change: auto !important;
}

/* Top bar styling for cart page */
body:has(.cart-page-section) .top-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 101 !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure header stays at fixed position and doesn't move */
body:has(.cart-page-section) .header.scrolled,
body:has(.cart-page-section) .header:not(.scrolled) {
    top: 36px !important;
    position: fixed !important;
    transform: translateY(0) !important;
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    padding: 50px 0 20px !important;
}

/* Mobile header position - match shop page */
@media (max-width: 768px) {
    body:has(.cart-page-section) .header {
        top: 28px !important;
        position: fixed !important;
    }
    
    body:has(.cart-page-section) .top-bar {
        height: 32px;
        font-size: 11px;
        padding: 8px 0;
    }
}

/* Prevent any scroll-based animations or transforms */
body:has(.cart-page-section) .header * {
    transition: color 0.3s ease, opacity 0.3s ease !important;
}

body:has(.cart-page-section) .header {
    transition: none !important;
}

/* Mobile menu support for cart page */
@media (max-width: 768px) {
    /* Ensure mobile menu toggle works on cart page */
    body:has(.cart-page-section) .mobile-menu-toggle {
        display: flex !important;
        color: #000000 !important;
    }
    
    body:has(.cart-page-section) .mobile-menu-toggle span {
        background-color: #000000 !important;
    }
    
    /* Mobile menu overlay */
    body:has(.cart-page-section).menu-open .mobile-menu-overlay {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Mobile menu navigation */
    body:has(.cart-page-section) .nav-center {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: auto !important;
        transform: translateX(-100%) !important;
        width: 100% !important;
        height: 100vh !important;
        z-index: 10002 !important;
        opacity: 1 !important;
        pointer-events: none !important;
    }
    
    body:has(.cart-page-section) .nav-center.active {
        transform: translateX(0) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    /* Menu open state - hamburger to X */
    body:has(.cart-page-section) .header.menu-open .mobile-menu-toggle span {
        background-color: #ffffff !important;
    }
    
    body:has(.cart-page-section) .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px) !important;
    }
    
    body:has(.cart-page-section) .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0 !important;
        transform: translateX(-10px) !important;
    }
    
    body:has(.cart-page-section) .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px) !important;
    }
    
    /* Ensure nav links are visible in mobile menu */
    body:has(.cart-page-section) .nav-center.active a {
        color: #1a1a1a !important;
    }
    
    /* Header adjustments when menu is open */
    body:has(.cart-page-section).menu-open .header {
        z-index: 102 !important;
    }
    
    /* Prevent body scroll when menu is open */
    body:has(.cart-page-section).menu-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
    }
    
    html.menu-open {
        overflow: hidden !important;
    }
}

/* WhatsApp icon styling for cart page */
body:has(.cart-page-section) .header .whatsapp-nav-icon {
    color: #000000 !important;
}

body:has(.cart-page-section) .header .whatsapp-nav-icon svg {
    fill: #000000 !important;
}

/* Hide filter button on cart page - always hidden */
body:has(.cart-page-section) .header #filter-toggle-btn,
body:has(.cart-page-section) .header .filter-icon-link {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Also hide filter button when cart overlay is open */
body:has(.cart-page-section).cart-open .header #filter-toggle-btn,
body:has(.cart-page-section).cart-open .header .filter-icon-link,
body:has(.cart-page-section) .cart-overlay.active ~ * .header #filter-toggle-btn,
body:has(.cart-page-section) .cart-overlay.active ~ * .header .filter-icon-link {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

/* Allow clicks on cart page content - especially related products on mobile */
/* Override the body.cart-open #main pointer-events: none from style.css */
body:has(.cart-page-section) #main,
body:has(.cart-page-section).cart-open #main,
body:has(.cart-page-section) .cart-page-main,
body:has(.cart-page-section).cart-open .cart-page-main,
body:has(.cart-page-section) .cart-page-section,
body:has(.cart-page-section).cart-open .cart-page-section,
body:has(.cart-page-section) .related-products-section,
body:has(.cart-page-section).cart-open .related-products-section,
body:has(.cart-page-section) .related-products-grid,
body:has(.cart-page-section).cart-open .related-products-grid,
body:has(.cart-page-section) .related-product-item,
body:has(.cart-page-section).cart-open .related-product-item {
    pointer-events: auto !important;
}

/* Ensure related product links are clickable on mobile */
@media (max-width: 768px) {
    /* Override mobile-specific pointer-events restrictions */
    body:has(.cart-page-section) #main,
    body:has(.cart-page-section).cart-open #main,
    body:has(.cart-page-section) .cart-page-main,
    body:has(.cart-page-section).cart-open .cart-page-main {
        pointer-events: auto !important;
        position: relative !important;
        overflow: visible !important;
    }
    
    /* Related product items - allow clicks and scrolling */
    body:has(.cart-page-section) .related-product-item,
    body:has(.cart-page-section).cart-open .related-product-item {
        pointer-events: auto !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1) !important;
        cursor: pointer !important;
        -webkit-touch-callout: default !important;
    }
    
    /* All child elements should also be clickable */
    body:has(.cart-page-section) .related-product-item *,
    body:has(.cart-page-section).cart-open .related-product-item * {
        pointer-events: auto !important;
        touch-action: manipulation !important;
        cursor: pointer !important;
    }
    
    /* Ensure grid allows horizontal scrolling but items are clickable */
    body:has(.cart-page-section) .related-products-grid,
    body:has(.cart-page-section).cart-open .related-products-grid {
        pointer-events: auto !important;
        touch-action: pan-x pinch-zoom !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Images inside should not block clicks */
    body:has(.cart-page-section) .related-product-item img,
    body:has(.cart-page-section).cart-open .related-product-item img {
        pointer-events: none !important; /* Let clicks pass through to parent <a> */
        user-select: none !important;
        -webkit-user-drag: none !important;
    }
}

/* Dropdown styling */
body:has(.cart-page-section) .header .dropdown-toggle {
    color: #000000 !important;
}

body:has(.cart-page-section) .header .dropdown-menu {
    background-color: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body:has(.cart-page-section) .header .dropdown-menu a {
    color: #000000 !important;
}

.cart-page-main {
    margin-top: 200px;
    padding: 40px 0;
    min-height: calc(100vh - 200px);
    background: #ffffff;
}

/* LTR for English content sections */
.cart-page-section {
    direction: ltr;
    padding: 40px 0;
}

.cart-page-footer-info {
    direction: ltr;
}

.cart-page-title {
    font-family: "Didot", "GFS Didot", serif;
    font-size: 42px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 40px;
    color: #000000;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cart-page-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Cart Items Column */
.cart-items-column {
    background: #ffffff;
}

/* Hide mobile items on desktop */
.cart-mobile-items {
    display: none;
}

/* Hide mobile free shipping promo on desktop */
.free-shipping-promo-top {
    display: none;
}

.cart-table-container {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
}

/* Scrollbar styling for mobile */
.cart-table-container::-webkit-scrollbar {
    height: 8px;
}

.cart-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.cart-table-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.cart-table-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.cart-table-container table {
    display: table !important;
}

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

.cart-table thead {
    background: #f8f8f8;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: table-header-group !important;
}

.cart-table tbody {
    display: table-row-group !important;
}

.cart-table th {
    padding: 15px 20px;
    text-align: left;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 500;
    color: #000000;
    letter-spacing: 1px;
    text-transform: uppercase;
    vertical-align: middle;
}

.cart-th-product {
    width: 50%;
}

.cart-th-price {
    width: 15%;
    text-align: center;
}

.cart-th-quantity {
    width: 20%;
    text-align: center;
}

.cart-th-total {
    width: 15%;
    text-align: center;
}

.cart-table td {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    vertical-align: middle;
    display: table-cell;
}

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

/* Cart Item Row */
.cart-item-row {
    display: table-row !important;
}

.cart-item-row td {
    display: table-cell !important;
    vertical-align: middle !important;
}

.cart-table td.cart-item-product {
    vertical-align: middle !important;
    display: table-cell !important;
    padding: 20px !important;
    position: relative;
}

.cart-table td.cart-item-price-cell,
.cart-table td.cart-item-quantity-cell,
.cart-table td.cart-item-total-cell {
    vertical-align: middle !important;
    display: table-cell !important;
    padding: 20px !important;
    text-align: center !important;
}

.cart-item-content-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
}

.cart-table td.cart-item-product .cart-item-image-wrapper {
    flex-shrink: 0 !important;
    width: 100px !important;
    display: block !important;
}

.cart-table td.cart-item-product .cart-item-image {
    width: 100px !important;
    height: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border-radius: 4px !important;
    background-color: #f0f0f0 !important;
    display: block !important;
    flex-shrink: 0 !important;
}

.cart-table td.cart-item-product .cart-item-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    flex: 1 !important;
    min-width: 0 !important;
    gap: 6px !important;
}

.cart-table td.cart-item-price-cell {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #000000;
    white-space: nowrap;
}

.cart-table td.cart-item-total-cell {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    white-space: nowrap;
}

.cart-table .cart-item-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 500;
    color: #000000;
    margin: 0 !important;
    padding: 0 !important;
    letter-spacing: 0.5px;
    line-height: 1.5 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: block !important;
    white-space: normal !important;
}

.cart-table .cart-item-remove {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 14px;
    color: #000000;
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    display: inline-block;
    margin: 0;
    margin-top: 4px;
    padding: 0;
    background: transparent;
    border: none;
    transition: text-decoration-color 0.2s ease;
}

.cart-table .cart-item-remove:hover {
    text-decoration-color: #000000;
    color: #000000;
}

.cart-table .cart-item-variant {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 14px;
    color: #666666;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    line-height: 1.5;
}

.cart-item-price {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #000000;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    vertical-align: middle;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 4px;
}

.quantity-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #000000;
    font-size: 18px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease;
}

.quantity-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #000000;
    background: transparent;
    padding: 0;
}

.cart-item-total {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
}

.cart-item-remove {
    margin-top: 8px;
    background: none;
    border: none;
    color: #666666;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    transition: color 0.2s ease;
    align-self: flex-start;
}

.cart-item-remove:hover {
    color: #000000;
}

/* Empty Cart Message */
.cart-empty-message {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty-message p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    color: #666666;
    margin-bottom: 20px;
}

.btn-continue-shopping {
    display: inline-block;
    padding: 12px 30px;
    background: #000000;
    color: #ffffff;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.btn-continue-shopping:hover {
    background: #333333;
}

/* Cart Summary Column */
.cart-summary-column {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 4px;
}

/* Free Shipping Promotion */
.free-shipping-promo {
    background: #ffffff;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.free-shipping-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.truck-icon {
    width: 24px;
    height: 24px;
    color: #000000;
    flex-shrink: 0;
    margin-top: 2px;
}

.free-shipping-text {
    flex: 1;
}

.free-shipping-text p {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 14px;
    color: #000000;
    margin-bottom: 10px;
    line-height: 1.5;
}

.free-shipping-progress {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.free-shipping-progress-bar {
    height: 100%;
    background: #000000;
    transition: width 0.3s ease;
    width: 0%;
}

/* Order Note */
.order-note-section {
    margin-bottom: 20px;
}

.order-note-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.order-note-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 14px;
    color: #000000;
    resize: vertical;
    background: #ffffff;
}

.order-note-textarea::placeholder {
    color: #999999;
}

/* Subtotal */
.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.subtotal-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 500;
    color: #000000;
    letter-spacing: 0.5px;
}

.subtotal-amount {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}

.shipping-tax-note {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 12px;
    color: #666666;
    margin-bottom: 20px;
    text-align: center;
}

/* Terms Approval Section */
.terms-approval-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.terms-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-family: 'Assistant', 'Heebo', 'Rubik', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #000000;
    direction: rtl;
    text-align: right;
}

.terms-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #000000;
}

.terms-checkbox-text {
    flex: 1;
    direction: rtl;
    text-align: right;
}

.terms-checkbox-text a {
    color: #000000;
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 0.3);
    transition: text-decoration-color 0.3s ease;
}

.terms-checkbox-text a:hover {
    text-decoration-color: #000000;
}

/* Checkout Button */
.btn-checkout {
    width: 100%;
    padding: 16px 20px;
    background: #000000;
    color: #ffffff;
    border: none;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.btn-checkout:hover:not(:disabled) {
    background: #333333;
}

.btn-checkout:disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Related Products Section - Same as product page */
.related-products-section {
    margin-top: 100px;
    padding-top: 80px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    width: 100%;
}

.related-products-title {
    font-family: "Didot", "GFS Didot", serif;
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #000;
    text-align: center;
    margin-bottom: 60px;
}

.related-products-grid {
    display: flex;
    flex-direction: row;
    gap: 30px;
    overflow: visible;
    max-width: 100%;
    width: 100%;
    margin: 0;
    will-change: transform;
    padding: 0;
    justify-content: flex-start;
}

.related-product-item {
    position: relative;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 0 0 calc((100% - 90px) / 4);
    min-width: calc((100% - 90px) / 4);
    max-width: calc((100% - 90px) / 4);
    width: calc((100% - 90px) / 4);
    box-sizing: border-box;
}

.related-product-item:hover {
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.related-product-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: #f0f0f0;
}

.related-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.related-product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-product-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #000;
    margin: 0;
    line-height: 1.4;
}

.related-product-price {
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    letter-spacing: 0.3px;
}




/* Cart Page Footer Info */
.cart-page-footer-info {
    background: #f8f8f8;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-info-item {
    text-align: center;
}

.footer-info-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.footer-info-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 14px;
    color: #666666;
    margin-bottom: 15px;
}

.payment-methods {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.payment-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 50%;
    font-size: 18px;
    color: #000000;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .related-product-item {
        flex: 0 0 calc((100% - 60px) / 3);
        min-width: calc((100% - 60px) / 3);
        max-width: calc((100% - 60px) / 3);
        width: calc((100% - 60px) / 3);
    }
}

@media (max-width: 1024px) {
    .cart-page-content {
        gap: 30px;
    }
    
    .related-product-item {
        flex: 0 0 calc((100% - 30px) / 2);
        min-width: calc((100% - 30px) / 2);
        max-width: calc((100% - 30px) / 2);
        width: calc((100% - 30px) / 2);
    }
}

/* Mobile Cart Layout - Card Based */
@media (max-width: 768px) {
    .cart-page-main {
        margin-top: 140px;
        padding: 20px 0;
    }
    
    .cart-page-section .container {
        padding: 0 15px;
    }
    
    .cart-page-title {
        font-size: 28px;
        letter-spacing: 3px;
        margin-bottom: 40px;
        padding: 0 15px;
    }
    
    .cart-page-content {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }
    
    /* Free Shipping Promotion - Above Products (Mobile Only) */
    .free-shipping-promo-top {
        display: block;
        background: #ffffff;
        padding: 20px;
        border-radius: 4px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        order: 0;
        margin-bottom: 0;
    }

    .free-shipping-promo-top .free-shipping-content {
        display: flex;
        align-items: flex-start;
        gap: 15px;
    }

    .free-shipping-promo-top .truck-icon {
        width: 24px;
        height: 24px;
        color: #000000;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .free-shipping-promo-top .free-shipping-text {
        flex: 1;
    }

    .free-shipping-promo-top .free-shipping-text p {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
        font-size: 14px;
        color: #000000;
        margin-bottom: 10px;
        line-height: 1.5;
    }

    .free-shipping-promo-top .free-shipping-progress {
        width: 100%;
        height: 6px;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 3px;
        overflow: hidden;
    }

    .free-shipping-promo-top .free-shipping-progress-bar {
        height: 100%;
        background: #000000;
        transition: width 0.3s ease;
        width: 0%;
    }
    
    .cart-items-column {
        order: 1;
    }
    
    .cart-summary-column {
        padding: 20px;
        order: 2;
    }
    
    /* Hide free shipping promo inside summary on mobile */
    .cart-summary-column .free-shipping-promo {
        display: none;
    }
    
    /* Hide table on mobile, show card layout */
    .cart-table-container {
        overflow: visible;
        margin: 0;
        padding: 0;
        border: none;
        background: transparent;
        display: none !important;
    }
    
    .cart-table {
        display: none !important;
    }
    
    .cart-table thead {
        display: none !important;
    }
    
    /* Mobile Card Layout */
    .cart-items-column {
        display: block;
    }
    
    .cart-mobile-items {
        display: block !important;
    }
    
    .cart-mobile-item {
        background: #ffffff;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        padding: 15px;
        margin-bottom: 15px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .cart-mobile-item-header {
        display: flex;
        gap: 12px;
        align-items: flex-start;
    }
    
    .cart-mobile-item-image {
        width: 80px;
        height: 80px;
        min-width: 80px;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-color: #f0f0f0;
        border-radius: 4px;
        flex-shrink: 0;
    }
    
    .cart-mobile-item-info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    
    .cart-mobile-item-name {
        font-family: 'Cormorant Garamond', serif;
        font-size: 16px;
        font-weight: 500;
        color: #000000;
        line-height: 1.4;
        margin: 0;
    }
    
    .cart-mobile-item-variant {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
        font-size: 13px;
        color: #666666;
        margin: 0;
    }
    
    .cart-mobile-item-price {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
        font-size: 15px;
        font-weight: 500;
        color: #000000;
        margin-top: 4px;
    }
    
    .cart-mobile-item-remove {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
        font-size: 13px;
        color: #000000;
        text-decoration: underline;
        text-decoration-color: rgba(0, 0, 0, 0.4);
        cursor: pointer;
        background: transparent;
        border: none;
        padding: 0;
        margin-top: 4px;
        align-self: flex-start;
        transition: text-decoration-color 0.2s ease;
    }
    
    .cart-mobile-item-remove:hover {
        text-decoration-color: #000000;
    }
    
    .cart-mobile-item-details {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 12px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .cart-mobile-item-quantity-wrapper {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .cart-mobile-quantity-label {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
        font-size: 12px;
        color: #666666;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .cart-mobile-item-total {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
    }
    
    .cart-mobile-total-label {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
        font-size: 12px;
        color: #666666;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .cart-mobile-total-amount {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
        font-size: 18px;
        font-weight: 600;
        color: #000000;
    }
    
    .quantity-controls {
        padding: 4px;
        border: 1px solid rgba(0, 0, 0, 0.2);
        border-radius: 4px;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .quantity-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        cursor: pointer;
        color: #000000;
        padding: 0;
        transition: background 0.2s ease;
    }
    
    .quantity-btn:hover {
        background: rgba(0, 0, 0, 0.05);
    }
    
    .quantity-btn:active {
        background: rgba(0, 0, 0, 0.1);
    }
    
    .quantity-input {
        width: 45px;
        text-align: center;
        border: none;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
        font-size: 16px;
        font-weight: 500;
        color: #000000;
        background: transparent;
        padding: 0;
    }
    
    .free-shipping-promo {
        padding: 15px;
    }
    
    .free-shipping-promo-top {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .free-shipping-promo-top .free-shipping-text p {
        font-size: 13px;
    }
    
    .free-shipping-text p {
        font-size: 13px;
    }
    
    .order-note-section {
        margin-bottom: 15px;
    }
    
    .order-note-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .order-note-textarea {
        min-height: 80px;
        padding: 10px;
        font-size: 13px;
    }
    
    .cart-subtotal {
        padding: 15px 0;
        margin-bottom: 12px;
    }
    
    .subtotal-label,
    .subtotal-amount {
        font-size: 16px;
    }
    
    .shipping-tax-note {
        font-size: 11px;
        margin-bottom: 15px;
    }
    
    .terms-approval-section {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .terms-checkbox-label {
        font-size: 12px;
        gap: 8px;
    }
    
    .terms-checkbox {
        width: 16px;
        height: 16px;
    }
    
    .btn-checkout {
        padding: 14px 18px;
        font-size: 14px;
        letter-spacing: 1px;
    }
    
    .related-products-section {
        margin-top: 60px;
        padding-top: 50px;
        overflow: hidden;
        position: relative;
    }
    
    .related-products-title {
        font-size: 24px;
        letter-spacing: 2px;
        margin-bottom: 30px;
    }
    
    .related-products-grid {
        display: flex;
        gap: 15px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 10px;
    }
    
    .related-products-grid::-webkit-scrollbar {
        height: 4px;
    }
    
    .related-products-grid::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 2px;
    }
    
    .related-products-grid::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 2px;
    }
    
    .related-product-item {
        flex: 0 0 calc((100% - 30px) / 3);
        min-width: calc((100% - 30px) / 3);
        max-width: calc((100% - 30px) / 3);
        width: calc((100% - 30px) / 3);
    }
    
    .related-product-info {
        padding: 15px;
    }
    
    .related-product-name {
        font-size: 14px;
    }
    
    .related-product-price {
        font-size: 14px;
    }
    
    
    .cart-page-footer-info {
        padding: 30px 0;
        margin-top: 40px;
    }
    
    .footer-info-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-info-title {
        font-size: 18px;
    }
    
    .footer-info-text {
        font-size: 13px;
    }
    
    .cart-empty-message {
        padding: 40px 15px;
    }
    
    .cart-empty-message p {
        font-size: 20px;
    }
    
    .btn-continue-shopping {
        padding: 10px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .cart-page-main {
        margin-top: 100px;
        padding: 15px 0;
    }
    
    .cart-page-section .container {
        padding: 0 12px;
    }
    
    .cart-page-title {
        font-size: 24px;
        margin-bottom: 20px;
        letter-spacing: 0.5px;
    }
    
    .cart-page-content {
        gap: 20px;
    }
    
    .cart-summary-column {
        padding: 18px;
    }
    
    /* Ensure mobile card layout on small screens */
    .cart-table-container {
        display: none !important;
    }
    
    .cart-mobile-items {
        display: block !important;
    }
    
    .cart-mobile-item {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .cart-mobile-item-image {
        width: 70px;
        height: 70px;
        min-width: 70px;
    }
    
    .cart-mobile-item-name {
        font-size: 15px;
    }
    
    .cart-mobile-item-variant {
        font-size: 12px;
    }
    
    .cart-mobile-item-price {
        font-size: 14px;
    }
    
    .cart-mobile-item-remove {
        font-size: 12px;
    }
    
    .cart-mobile-total-amount {
        font-size: 16px;
    }
    
    .quantity-controls {
        padding: 3px;
    }
    
    .quantity-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    
    .quantity-input {
        width: 40px;
        font-size: 14px;
    }
    
    .free-shipping-promo {
        padding: 12px;
    }
    
    .free-shipping-promo-top {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .free-shipping-content {
        gap: 10px;
    }
    
    .free-shipping-promo-top .free-shipping-content {
        gap: 10px;
    }
    
    .truck-icon {
        width: 18px;
        height: 18px;
    }
    
    .free-shipping-promo-top .truck-icon {
        width: 18px;
        height: 18px;
    }
    
    .free-shipping-text p {
        font-size: 11px;
    }
    
    .free-shipping-promo-top .free-shipping-text p {
        font-size: 11px;
    }
    
    .order-note-section {
        margin-bottom: 12px;
    }
    
    .order-note-title {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .order-note-textarea {
        min-height: 70px;
        padding: 10px;
        font-size: 12px;
    }
    
    .cart-subtotal {
        padding: 12px 0;
        margin-bottom: 10px;
    }
    
    .subtotal-label,
    .subtotal-amount {
        font-size: 14px;
    }
    
    .shipping-tax-note {
        font-size: 10px;
        margin-bottom: 12px;
    }
    
    .terms-approval-section {
        padding: 10px;
        margin-bottom: 12px;
    }
    
    .terms-checkbox-label {
        font-size: 11px;
        gap: 8px;
        line-height: 1.5;
    }
    
    .terms-checkbox {
        width: 16px;
        height: 16px;
        margin-top: 1px;
    }
    
    .btn-checkout {
        padding: 12px 16px;
        font-size: 13px;
        letter-spacing: 1px;
    }
    
    .related-products-section {
        margin-top: 40px;
        padding-top: 40px;
    }
    
    .related-products-title {
        font-size: 20px;
        letter-spacing: 1.5px;
        margin-bottom: 25px;
    }
    
    .related-products-grid {
        gap: 12px;
    }
    
    .related-product-item {
        flex: 0 0 calc((100% - 24px) / 3);
        min-width: calc((100% - 24px) / 3);
        max-width: calc((100% - 24px) / 3);
        width: calc((100% - 24px) / 3);
    }
    
    .related-product-info {
        padding: 12px;
    }
    
    .related-product-name {
        font-size: 13px;
    }
    
    .related-product-price {
        font-size: 13px;
    }
    
    
    .cart-page-footer-info {
        padding: 25px 0;
        margin-top: 30px;
    }
    
    .footer-info-grid {
        gap: 20px;
    }
    
    .footer-info-title {
        font-size: 16px;
    }
    
    .footer-info-text {
        font-size: 12px;
    }
    
    .cart-empty-message {
        padding: 30px 12px;
    }
    
    .cart-empty-message p {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .btn-continue-shopping {
        padding: 10px 20px;
        font-size: 13px;
    }
}

