/**
 * Sandro Cart Styles
 * Implementation of Sandro cart design specifications
 */

/* Reset and Base Styles */
.sandro-cart-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.sandro-cart-container {
    color: #000000;
    background-color: #ffffff;
    line-height: 1.4;
    font-size: 12px;
    letter-spacing: 0.1rem;
}

/* Main Cart Container */
.cart-container {
    display: flex;
    width: 100%;
    padding: 0;
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* Neutral divider between cart items and summary using pseudo-element */
.cart-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 50%;
    width: 0;
    height: 100vh;
    border-left: 1px solid #000000;
    z-index: 9999;
    pointer-events: none;
    display:none;
}

/* Hide divider on empty cart state */
.cart-container.cart-empty-state::before {
    display: none;
}

/* Cart Items Section - 50% width */
.cart-items {
    width: 50%;
    background-color: #ffffff;
    padding: 40px;
    overflow-y: auto;
    height: 100%;
}

/* Hide scrollbar for cart items */
.cart-items::-webkit-scrollbar {
    display: none;
}
.cart-items {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Cart Summary Section - Always sticky, centered vertically */
.cart-summary {
    width: 50%;
    background-color: #ffffff;
    padding: 40px;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.summary-title {
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    text-align: center;
}

/* Center all summary content */
.cart-summary > * {
    width: 100%;
    text-align: center;
}

/* Override for elements that need left alignment */
.summary-line,
.total-line {
    display: flex;
    justify-content: space-between;
    text-align: left;
}

.cart-title {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.1rem;
    color: #000000;
    text-transform: uppercase;
    margin-bottom: 30px;
}

/* Product Item Layout */
.product-item {
    display: flex;
    gap: 20px;
    /* no vertical padding so images can touch the bottom border */
    padding: 0;
    position: relative;
    border-bottom: 1px solid #000000;
    align-items: stretch;
}

.product-item:first-child {
    padding-top: 0;
}

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

/* Product Image Container */
.product-image-container {
    position: relative;
    width: 220px;
    /* Height will match the row so the image can touch the bottom border */
    height: auto;
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
}

.product-image {
    width: 220px;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-image-placeholder {
    width: 220px;
    height: 100%;
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
}

/* Sale Tag */
.sale-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #D2691E;
    color: #ffffff;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Product Details */
.product-details {
    flex: 1;
}

.product-title {
    font-size: 13px;
    margin-bottom: 6px; /* Reduced from 12px to 6px for tighter spacing like Sandro */
}

.product-info {
    margin-bottom: 8px;
    letter-spacing: 0.1rem;
}

.product-color,
.product-size,
.product-quantity {
    color: #666;
    margin-bottom: 4px;
    letter-spacing: 0.1rem;
}

.product-price {
    margin-top: 6px; /* Reduced from 12px to 6px for tighter spacing like Sandro */
    letter-spacing: 0.1rem;
}

.product-price .sale-price {
    color: #ff0000;
    margin-right: 8px;
}

.product-price .original-price {
    text-decoration: line-through;
    color: #666;
}

/* Product Details */
.product-details {
    flex: 1;
    padding: 30px 60px 30px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Reverted to space-between */
}

.product-info-block {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* Product Actions Container - Edit and Remove buttons on same line at bottom */
.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    margin-bottom: 2.5rem;
}

.edit-button {
    background: none;
    border: none;
    padding: 0;
    font-family: 'supremoflat', 'supremo', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 0.1rem;
    text-decoration: underline;
    color: #000;
}

.edit-button:hover {
    opacity: 0.7;
}

.remove-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease-in-out;
    background-image: url('../images/cancel.svg');
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
    padding: 4px;
}

.remove-button:hover {
    opacity: 1;
}

.remove-button:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
    opacity: 1;
}

.product-title {
    font-family: 'supremoflat', 'supremo', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #000000;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* Product Price */
.product-price {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.current-price {
    font-family: 'supremo', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #000000;
}

.original-price {
    font-family: 'supremo', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #999999;
    text-decoration: line-through;
}

.discount-percentage {
    font-family: 'supremo', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #D2691E;
}

/* Product Attributes */
.product-attributes {
    display: flex;
    flex-direction: column;
    gap: 3px; /* Reduced from 6px to 3px for tighter spacing like Sandro */
}

.product-attribute {
    font-family: 'supremo', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #666666;
    text-transform: uppercase;
}

.attribute-label {
    margin-right: 8px;
}

.product-quantity {
    display: flex;
    align-items: center;
    gap: 8px; /* Reduced from 12px to 8px for tighter spacing */
    margin-top: 3px; /* Reduced from 6px to 3px for tighter spacing */
}

.quantity-label {
    font-family: 'supremo', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #666666;
    text-transform: uppercase;
}

.quantity-value {
    font-family: 'supremo', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #666666;
    text-transform: uppercase;
}

/* Empty Cart State */
.cart-empty-state {
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.cart-empty-state .cart-items {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.empty-cart {
    text-align: center;
    padding: 80px 40px;
    background-color: #fafafa;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 0 auto;
}

.empty-cart-icon {
    margin-bottom: 24px;
    opacity: 0.7;
}

.empty-cart-title {
    font-size: 24px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.empty-cart-message {
    font-size: 16px;
    color: #666666;
    margin-bottom: 32px;
    font-weight: 300;
    line-height: 1.6;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.continue-shopping {
    display: inline-block;
    padding: 16px 32px;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.2px;
    border: none;
    transition: background-color 0.3s ease;
}

.continue-shopping:hover {
    background-color: #333333;
    color: #ffffff;
    text-decoration: none;
}

/* Cart Summary Section - 40% width */
.cart-summary {
    width: 40%;
    background-color: #ffffff;
    padding: 0 40px;
}

.summary-title {
    font-family: 'supremo', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #000000;
    text-transform: uppercase;
    margin-bottom: 30px;
}

/* Discount Section */
.discount-section {
    margin-bottom: 30px;
}

.discount-checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.discount-checkbox {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    cursor: pointer;
}

.discount-label {
    font-size: 12px;
    font-weight: 400;
    color: #000;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 0.1rem;
}

.discount-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.discount-input {
    flex: 1;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
    font-size: 12px;
    text-transform: uppercase;
    background-color: transparent;
}

.discount-input:focus {
    outline: none;
    border-bottom-color: #000000;
}

.apply-discount-btn {
    background-color: transparent;
    border: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    color: #000000;
}

.applied-coupons {
    margin-top: 15px;
}

.applied-coupon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.coupon-code {
    font-size: 12px;
    color: #666666;
    text-transform: uppercase;
}

.coupon-discount {
    font-size: 12px;
    color: #D2691E;
    font-weight: 600;
}

/* Order Breakdown */
.order-breakdown {
    margin-bottom: 30px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.summary-label {
    font-size: 12px;
    font-weight: 400;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.summary-value {
    font-size: 12px;
    font-weight: 400;
    color: #000000;
    letter-spacing: 0.1rem;
}



/* Order Total */
.order-total {
    border-top: 1px solid #000000;
    padding-top: 20px;
    margin-bottom: 40px;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-size: 13px;
    font-weight: 400;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.total-value {
    font-size: 13px;
    font-weight: 400;
    color: #000000;
    letter-spacing: 0.1rem;
}

/* ZIP Code Section */
.zip-code-section {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #000000;
}

.zip-code-input {
    width: 70%;
    border: none;
    border-bottom: 1px solid #000000;
    padding: 10px 0;
    font-size: 12px;
    background-color: transparent;
    letter-spacing: 0.1rem;
}

.zip-code-input:focus {
    outline: none;
    border-bottom-color: #000000;
}

.zip-add-btn {
    background: none;
    border: none;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 0.1rem;
    text-decoration: underline;
    margin-left: 10px;
}

/* Finalize Button */
.finalize-button {
    width: 100%;
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 16px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background-color 0.2s ease-in-out;
}

.finalize-button:hover {
    background-color: #333333;
}

/* Summary Footer - moved from main footer */
.summary-footer {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-footer-item {
    font-family: 'supremo', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #666666;
    text-transform: uppercase;
    text-align: center;
}

/* Footer */
.cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    max-width: 1600px;
    margin: 0 auto;
}

.footer-item {
    font-family: 'supremo', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #666666;
    text-transform: uppercase;
    flex: 1;
    text-align: center;
}

/* Loading Overlay */
.sandro-cart-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top: 3px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .cart-container {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
        height: auto; /* Remove fixed height on mobile */
    }
    
    /* Mobile: Hide the divider completely */
    .cart-container::before {
        display: none;
    }
    
    .cart-items,
    .cart-summary {
        width: 100%;
    }
    
    .cart-summary {
        padding: 0;
        position: static; /* Disable sticky on mobile */
        height: auto; /* Remove fixed height */
    }
}

@media (max-width: 768px) {
    .product-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .product-image-container {
        width: 100%;
        height: 300px;
    }
    
    .product-image,
    .product-image-placeholder {
        width: 100%;
        height: 300px;
    }
    /* On mobile, stack the actions vertically for better touch targets */
    .product-actions {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
        margin-top: 15px;
    }
    
    .remove-button {
        align-self: flex-end;
    }
    
    .cart-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .footer-item {
        text-align: center;
    }
}

/* Edit Product Modal */
.edit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Remove Confirmation Modal */
.remove-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.remove-modal {
    background-color: #ffffff;
    max-width: 500px;
    width: 100%;
    padding: 40px;
    position: relative;
    text-align: center;
}

.remove-modal-header {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1101;
}

.remove-modal-title {
    font-family: 'supremo', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.remove-modal-message {
    font-family: 'supremo', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 40px;
    line-height: 1.4;
}

.remove-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.remove-confirm-btn {
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    width: 100%;
}

.remove-confirm-btn:hover {
    background-color: #333333;
}

.remove-cancel-btn {
    background-color: transparent;
    color: #000000;
    border: 1px solid #000000;
    padding: 16px 32px;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    width: 100%;
}

.remove-cancel-btn:hover {
    background-color: #000000;
    color: #ffffff;
}

.edit-modal {
    background-color: #ffffff;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.edit-modal-header {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.modal-close {
    background-color: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666666;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease-in-out;
}

.modal-close:hover {
    color: #000000;
}

.edit-modal-content {
    display: flex;
    min-height: 500px;
}

.edit-product-image {
    width: 50%;
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.edit-product-details {
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.modal-product-title {
    font-family: 'supremo', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #000000;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.modal-product-price {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.edit-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.edit-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.edit-label {
    font-family: 'supremo', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.edit-select {
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    background-color: #ffffff;
    cursor: pointer;
    text-transform: uppercase;
}

.edit-select:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

.modal-modify-btn {
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    margin-top: 30px;
    align-self: flex-start;
}

.modal-modify-btn:hover {
    background-color: #333333;
}

/* Modal Body Lock */
body.modal-open {
    overflow: hidden;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .edit-modal {
        max-width: 95%;
        margin: 10px;
    }
    
    .edit-modal-content {
        flex-direction: column;
        min-height: auto;
    }
    
    .edit-product-image,
    .edit-product-details {
        width: 100%;
    }
    
    .edit-product-image {
        height: 300px;
    }
    
    .edit-product-details {
        padding: 20px;
    }
    
    .remove-modal {
        max-width: 95%;
        margin: 10px;
        padding: 30px 20px;
    }
    
    .remove-modal-actions {
        gap: 12px;
    }
}

/* Focus States for Accessibility */
.edit-button:focus,
.remove-button:focus,
.finalize-button:focus,
.apply-discount-btn:focus,
.zip-add-btn:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

.discount-input:focus,
.zip-input:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

/* Add to Cart Popup Styles */
.sandro-cart-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0;

    padding: 20px;
    min-width: 300px;
    max-width: 400px;
    font-family: 'supremo', sans-serif;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sandro-cart-popup:hover {
    transform: translateY(-2px);

}

.popup-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup-product-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.popup-product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0;
    border: 1px solid #f0f0f0;
}

.popup-product-details {
    flex: 1;
}

.popup-product-name {
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.popup-added-text {
    font-size: 12px;
    color: #666666;
    margin: 0;
    text-transform: lowercase;
}

.popup-view-basket {
    display: inline-block;
    background: none;
    color: #000000;
    text-decoration: underline;
    padding: 0;
    font-size: 12px;
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: 0;
    border: none;
    border-radius: 0;
    transition: opacity 0.2s ease;
    text-align: left;
    border-top: 1px solid #000000;
    border-bottom: 1px solid #000000;
    padding: 4px 0;
    margin-top: 8px;
}

.popup-view-basket:hover {
    background: none;
    color: #000000;
    text-decoration: underline;
    opacity: 0.7;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sandro-cart-popup {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
    
    .popup-product-info {
        gap: 10px;
    }
    
    .popup-product-image {
        width: 50px;
        height: 50px;
    }
    
    .popup-product-name {
        font-size: 13px;
    }
}

/* Print Styles */
@media print {
    .edit-button,
    .remove-button,
    .finalize-button,
    .discount-section,
    .zip-code-section,
    .sandro-cart-popup {
        display: none;
    }
    
    .cart-container {
        flex-direction: column;
    }
    
    .cart-items,
    .cart-summary {
        width: 100%;
    }
}


/*
===========================
CUSTOM SANDRO CART STYLES
===========================
*/

/* Container */
#wrapper .site-content .container{
	margin-left:0px;
    margin-right:0px;
	padding-left:0px!important;
	padding-right:0px!important;
}

/* Container */
#wrapper .page-wrapper-inner .site-content .container{
	width:100% !important;
}

/* Cart items */
#sandro-cart .cart-items{
	padding-left:0px;
	padding-right:0px;
	padding-top:0px;
	padding-bottom:0px;
}

/* Text column */
.vc_column-inner .wpb_wrapper .wpb_text_column{
	margin-bottom:0px;
}

.cart-items-list .product-item .edit-button{
	text-align:left;
}

/* Cart summary */
#sandro-cart .cart-summary{
	padding-right:0px;
	padding-left:120px;
	
}

/* Discount toggle */
#discount-toggle{
	font-size:10px;
	min-width:14px;
	width:14px;
	height:14px;
	top:3px;
	
}

/* Summary Item (eg: Subtotal, Shipping Fees, etc) */
.cart-summary .order-breakdown .summary-line{
	font-family:'supremotall';
	
}

/* Total line */
.cart-summary .order-total .total-line{
	font-family:'supremoflat';
	
}

/* Heading */
#sandro-cart .cart-summary h3{
	text-align:left;
	font-size:12px;
	font-family:'supremoflat'!important;
}

/* Hide .hentry only on Cart Page */
body.page-id-72 #wrapper .hentry {
    display: none;
}

/* Heading */
#sandro-cart .cart-items h2{
	padding-left:15px;
}

/* Sandrocustomcart */
#sandrocustomcart{
	padding-top:33px;
}

/* Heading */
#sandro-cart .cart-items h2{
font-family:'supremoflat'!important;
}

/* Mobile responsive styles - 1024px and below */
@media (max-width: 1024px) {

	/* Cart summary */
	#sandro-cart .cart-summary{
		padding-right:0px;
		padding-left:0px;
	}
	
	/* Cart summary */
	#wrapper .wpb-content-wrapper #sandrocustomcart .wpb_row .vc_column_container .vc_column-inner .wpb_wrapper .wpb_text_column .wpb_wrapper #sandro-cart .cart-container .cart-summary{
		width:100% !important;
	}
	
	/* Row */
	#wrapper .page-wrapper-inner .site-content .container .post-content .wpb-content-wrapper #sandrocustomcart .wpb_row{
		width:100% !important;
	}
	
	
	/* Image */
	.cart-items-list .product-item img{
		width:50%;
		height:226px;
	}
	
	/* Product image container */
	.cart-items-list .product-item .product-image-container{
		height:226px;
	}
	
	/* Product details */
	.cart-items-list .product-item .product-details{
		padding-top:20px;
		margin-bottom:0px;
		margin-top:0px;
		padding-left:15px;
	}
	
	/* Product actions */
	.cart-items-list .product-item .product-actions{
		flex-direction:row;
	}
	
	/* Product item */
	.cart-items .cart-items-list .product-item{
		margin-bottom:45px;
		padding-bottom:15px;
	}
	
	/* Cart items */
	#sandro-cart .cart-items{
		border-bottom-style:solid;
		padding-left:0px;
	}
	
	/* Cart items */
	#wrapper .wpb-content-wrapper #sandrocustomcart .wpb_row .vc_column_container .vc_column-inner .wpb_wrapper .wpb_text_column .wpb_wrapper #sandro-cart .cart-container .cart-items{
		border-bottom-width:1px !important;
	}
	
	/* Cart container */
	#sandro-cart .cart-container{
		padding-right:0px;
		padding-left:0px;
	}
	
	/* Row */
	#sandrocustomcart .wpb_row{
		margin-right:0px;
		margin-left:0px;
	}
	
	/* Sandrocustomcart */
	#sandrocustomcart{
		padding-left:0px;
		padding-right:0px;
	}
	
	/* Product info block */
	.cart-items-list .product-item .product-info-block{
		gap: 0px;
	}
	
	/* Cart summary */
	#sandro-cart .cart-summary{
		padding-left:20px;
		padding-right:20px;
	}
	
	/* Finalize button */
	#sandro-cart .cart-summary .finalize-button{
		padding-top:13px;
		padding-bottom:13px;
		font-size:11px;
	}

	
}

/* 1200px and larger screen sizes */
@media (min-width:1200px){

	/* Container */
	#wrapper .site-content .container{
		max-width:none!important;
	}
	
}

/* 1024px and smaller screen sizes */
@media (max-width:1024px){

	/* Container */
	#wrapper .site-content .container{
		max-width:none;
	}
	
	/* Container */
	#wrapper .page-wrapper-inner .site-content .container{
		width:100% !important;
	}
	
	/* Product image container */
	#sandrocustomcart .wpb_row .vc_column_container .vc_column-inner .wpb_wrapper .wpb_text_column .wpb_wrapper #sandro-cart .cart-container .cart-items .cart-items-list .product-item .product-image-container{
		height:100% !important;
	}
	
	/* Product item */
	.cart-items .cart-items-list .product-item{
		padding-bottom:0px;
		margin-bottom:0px;
	}
	
	/* Image */
	.cart-items-list .product-item img{
		width:100%;
	}
	
}

/* 782px and smaller screen sizes */
@media (max-width:782px){

	/* Image */
	.cart-items-list .product-item img{
		height:100%;
		width:302px;
	}
	
}

/* 400px and smaller screen sizes */
@media (max-width:400px){

	/* Image */
	.cart-items-list .product-item img{
		width:200px;
		
	}
	
}

/* Link */
#sandro-cart-popup a{
	border-top-style:none;
	border-bottom-style:none;
	padding-left:15px;
	padding-right:15px;
	padding-bottom:15px;
	margin-top:0px;
	font-size:14px;
	text-decoration:none;
}

/* Sandro cart popup */
#sandro-cart-popup{
	padding:0px;
}

/* Image */
#sandro-cart-popup .popup-product-info img{
	width:90px;
	height:90px;
}

/* Heading */
.popup-product-info .popup-product-details h4{
	text-transform:uppercase;
	font-size:14px;
}

/* Link (hover) */
#sandro-cart-popup a:hover{
	text-decoration:underline;
}

/* Modal Loading States */
.modal-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1002;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.modal-loading .loading-spinner {
    width: 30px;
    height: 30px;
    border: 2px solid #e0e0e0;
    border-top: 2px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.modal-loading p {
    font-family: 'supremo', sans-serif;
    font-size: 12px;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0;
}

/* Enhanced Modal Header */
.edit-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px 0;
    position: relative;
    z-index: 1001;
}

.modal-title {
    font-family: 'supremo', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Dynamic Attribute Fields */

.edit-field[data-attribute] .edit-label {
    color: #333333;
    font-weight: 500;
}

/* Button States */
.modal-modify-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.modal-modify-btn:disabled:hover {
    background-color: #cccccc;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .edit-modal {
        max-width: 95vw;
        max-height: 85vh;
        margin: 20px;
    }
    
    .edit-modal-content {
        flex-direction: column;
        min-height: auto;
    }
    
    .edit-product-image,
    .edit-product-details {
        width: 100%;
    }
    
    .edit-product-image {
        height: 250px;
    }
    
    .edit-product-details {
        padding: 30px 20px;
    }
    
    .modal-title {
        font-size: 12px;
    }
    
    .remove-modal {
        max-width: 90vw;
        padding: 30px 20px;
    }
    
    .remove-modal-actions {
        gap: 10px;
    }
}