/* Snipcart Custom Styles for Predesigns Clothing */

/* Cart button in header */
.snipcart-checkout {
    position: relative;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.snipcart-checkout:hover {
    color: var(--primary-color);
}

.snipcart-items-count {
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    line-height: 1;
    position: absolute;
    top: -2px;
    right: -2px;
}

/* Add to cart buttons */
.snipcart-add-item {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.snipcart-add-item:hover {
    background-color: var(--primary-dark);
    color: white;
}

/* Snipcart message */
.snipcart-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateX(120%);
    transition: transform 0.3s ease-in-out;
    max-width: 300px;
}

.snipcart-message.show {
    transform: translateX(0);
}

/* Override Snipcart modal styles */
.snipcart {
    --color-default: var(--primary-color, #000);
    --color-hover: var(--primary-dark, #333);
    --color-alt: #f8f9fa;
    --color-alt-hover: #e9ecef;
    --color-link: var(--primary-color, #000);
    --border-color: #dee2e6;
    --border-radius: 4px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Customize the cart button */
.snipcart-cart-button {
    background-color: var(--primary-color);
    color: white;
}

.snipcart-cart-button:hover {
    background-color: var(--primary-dark);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .snipcart-cart-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .snipcart-message {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}
