/* Stripe Integration Styles */

/* Subtle Sold Out Product Styling */
.product-card.sold-out {
    position: relative;
    /* Keep clickable - removed pointer-events: none */
}

/* Crossed out product name */
.crossed-out {
    text-decoration: line-through;
    opacity: 0.6;
}

/* Sold out text */
.sold-out-text {
    color: #999;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 1px;
}

/* Out of stock message in product detail */
.out-of-stock-message {
    color: #999;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    padding: 1rem;
    border: 1px solid #ddd;
    background: #f8f8f8;
}

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

.purchase-modal-content {
    background: #fff;
    max-width: 500px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.purchase-modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.purchase-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 400;
    color: #333;
}

.close-modal {
    background: none;
    border: none;
    font-size: 30px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.purchase-modal-body {
    padding: 30px;
}

.purchase-modal-body p {
    margin: 0 0 15px;
    line-height: 1.6;
    color: #666;
}

.purchase-modal-body p:last-child {
    margin-bottom: 0;
}

.contact-options {
    display: flex;
    gap: 15px;
    margin: 25px 0;
}

.contact-btn {
    flex: 1;
    padding: 15px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
}

.email-btn {
    background: #000;
    color: #fff;
}

.email-btn:hover {
    background: #333;
}

.phone-btn {
    background: #f8f8f8;
    color: #333;
    border: 1px solid #ddd;
}

.phone-btn:hover {
    background: #eee;
}

.purchase-note {
    font-size: 14px;
    color: #888;
    font-style: italic;
    text-align: center;
    margin-top: 20px;
}

/* Add to Cart Button Updates */
.add-to-cart-btn.stripe-mode {
    background: #000;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.add-to-cart-btn.stripe-mode:hover {
    background: #333;
}

.add-to-cart-btn.stripe-mode:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.add-to-cart-btn.processing {
    background: #666;
    cursor: wait;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .purchase-modal {
        padding: 10px;
    }

    .purchase-modal-content {
        max-width: none;
    }

    .purchase-modal-header,
    .purchase-modal-body {
        padding: 20px;
    }

    .contact-options {
        flex-direction: column;
    }

    .sold-out-text {
        font-size: 8px;
    }
}

/* C
art Modal Styles */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
}

.cart-modal-content {
    background: #fff;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cart-modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
}

.cart-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 400;
    color: #333;
    letter-spacing: 1px;
}

.close-cart-modal {
    background: none;
    border: none;
    font-size: 30px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-cart-modal:hover {
    color: #333;
}

.cart-modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    color: #666;
    font-size: 16px;
    padding: 40px 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

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

.cart-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.cart-item-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.cart-item-price {
    font-weight: 600;
    color: #333 !important;
    font-size: 16px !important;
}

.remove-item {
    background: none;
    border: 1px solid #ddd;
    color: #666;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.remove-item:hover {
    background: #f5f5f5;
    border-color: #999;
    color: #333;
}

.cart-total {
    text-align: center;
    padding: 20px 0;
    border-top: 2px solid #333;
    margin-top: 20px;
    font-size: 18px;
}

.cart-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.cart-btn {
    flex: 1;
    padding: 15px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.checkout-btn {
    background: #333;
    color: #fff;
}

.checkout-btn:hover {
    background: #555;
}

.clear-cart-btn {
    background: #f8f8f8;
    color: #666;
    border: 1px solid #ddd;
}

.clear-cart-btn:hover {
    background: #eee;
    color: #333;
}

.email-btn {
    background: #333;
    color: #fff;
}

.email-btn:hover {
    background: #555;
}

/* Success state for add to cart button */
.add-to-cart-btn.success {
    background: #4CAF50 !important;
    color: white !important;
}

/* Mobile responsive cart modal */
@media (max-width: 768px) {
    .cart-modal {
        padding: 10px;
    }

    .cart-modal-content {
        max-width: none;
        max-height: 90vh;
    }

    .cart-modal-header,
    .cart-modal-body {
        padding: 20px;
    }

    .cart-actions {
        flex-direction: column;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .remove-item {
        align-self: flex-end;
    }
}

/* Quan
tity Selection */
.quantity-selection {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #333;
    background: transparent;
    color: #333;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #333;
    color: white;
}

.quantity-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.quantity-btn:disabled:hover {
    background: transparent;
    color: #333;
}

.quantity-display {
    font-size: 16px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

#quantity-section {
    display: none;
    /* Hidden by default for unique pieces */
}

/* Show quantity section when product allows multiple quantities */
.show-quantity #quantity-section {
    display: block;
}