/* ============================================
   IMAGE PROTECTION STYLES
   Add this to your main CSS file or include separately
   ============================================ */

/* Disable right-click and dragging on product images */
.product-image-wrapper img,
.product-images img,
.product-card img,
.product-main-image,
img.protected {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Re-enable pointer events on parent for clicks */
.product-image-wrapper,
.product-images,
.product-card .card-img-top-wrapper {
    position: relative;
    overflow: hidden;
}

/* Invisible overlay to prevent interaction */
.product-image-wrapper::after,
.product-images .main-image::after,
.protected-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 10;
    pointer-events: auto;
}

/* Watermark overlay */
.watermark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.watermark-overlay::before {
    content: 'BadDass Apparel';
    position: absolute;
    font-size: 24px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.15);
    text-transform: uppercase;
    letter-spacing: 3px;
    transform: rotate(-30deg);
    white-space: nowrap;
    pointer-events: none;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Multiple watermarks tiled */
.watermark-tiled {
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 5;
    transform: rotate(-30deg);
}

.watermark-tiled span {
    font-size: 16px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.12);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 30px 50px;
    white-space: nowrap;
}

/* ============================================
   CART PAGE FIXES
   ============================================ */

/* Fix price display being cut off */
.cart-item-price,
.cart-price {
    white-space: nowrap;
    min-width: 80px;
    text-align: right;
}

.cart-item-total,
.cart-total {
    white-space: nowrap;
    min-width: 90px;
    text-align: right;
    font-weight: bold;
}

/* Cart table layout fixes */
.cart-table th,
.cart-table td {
    vertical-align: middle;
    padding: 1rem 0.75rem;
}

.cart-table .product-col {
    min-width: 300px;
}

.cart-table .price-col {
    min-width: 100px;
    text-align: right;
}

.cart-table .quantity-col {
    min-width: 130px;
    text-align: center;
}

.cart-table .total-col {
    min-width: 100px;
    text-align: right;
}

.cart-table .action-col {
    min-width: 60px;
    text-align: center;
}

/* Align trash icon */
.cart-table .btn-remove,
.cart-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
}

/* Cart item row alignment */
.cart-item {
    display: flex;
    align-items: center;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    padding-left: 1rem;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-variant {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Quantity input in cart */
.cart-quantity-wrapper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
}

.cart-quantity-wrapper button {
    width: 32px;
    height: 32px;
    border: none;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-quantity-wrapper button:hover {
    background: #e9ecef;
}

.cart-quantity-wrapper input {
    width: 50px;
    height: 32px;
    border: none;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    text-align: center;
    font-size: 14px;
}

.cart-quantity-wrapper input:focus {
    outline: none;
}

/* Responsive cart adjustments */
@media (max-width: 768px) {
    .cart-table {
        font-size: 14px;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-table .price-col,
    .cart-table .total-col {
        min-width: 70px;
    }
    
    .cart-quantity-wrapper input {
        width: 40px;
    }
    
    .cart-quantity-wrapper button {
        width: 28px;
        height: 28px;
    }
}

/* Cart summary styling */
.cart-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

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

.cart-summary-total {
    font-size: 1.25rem;
    font-weight: bold;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid #333;
}
