/* Modal Overlay */
#cpp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999998;
}

/* Modal Container */
#cpp-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.cpp-modal-open {
    overflow: hidden;
}

/* Modal Content Box */
.cpp-modal-content {
    background: #fff;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 30px;
    box-sizing: border-box;
}

/* Close Button */
#cpp-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

#cpp-modal-close:hover {
    color: #000;
}

/* Success Message */
.cpp-success-message {
    background: #008a3c;
    color: #fff;
    padding: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    border-radius: 2px;
}

/* Product Added Details */
.cpp-product-added {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.cpp-product-image {
    width: 80px;
    flex-shrink: 0;
}

.cpp-product-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.cpp-product-details {
    flex-grow: 1;
}

.cpp-product-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.cpp-product-price-qty {
    color: #666;
    font-size: 14px;
}

/* Subtotal */
.cpp-cart-subtotal {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    margin-bottom: 25px;
    font-weight: 600;
    color: #333;
}

/* Buttons */
.cpp-cart-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
}

.cpp-btn {
    flex: 1;
    text-align: center;
    padding: 12px 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    box-sizing: border-box;
}

.cpp-btn-shop {
    background: #f5f5f5;
    color: #333;
}
.cpp-btn-shop:hover {
    background: #e0e0e0;
}

.cpp-btn-cart {
    background: #f5f5f5;
    color: #333;
}
.cpp-btn-cart:hover {
    background: #e0e0e0;
}

.cpp-btn-checkout {
    background: #222;
    color: #fff;
}
.cpp-btn-checkout:hover {
    background: #000;
    color: #fff;
}

/* Suggested Products */
.cpp-suggested-products h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #333;
}

.cpp-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.cpp-grid-item a {
    text-decoration: none;
    color: inherit;
    display: block;
    text-align: center;
}

.cpp-grid-image {
    position: relative;
    margin-bottom: 10px;
}

.cpp-grid-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.cpp-sale-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #ff5722;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    text-transform: uppercase;
}

.cpp-grid-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cpp-grid-price {
    font-size: 13px;
    color: #ff5722;
}
.cpp-grid-price del {
    color: #999;
    margin-right: 5px;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .cpp-cart-buttons {
        flex-direction: column;
    }
    
    .cpp-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cpp-modal-content {
        padding: 20px;
        max-height: 100vh;
        border-radius: 0;
    }
}
