/**
 * Standard Shop Cart Styles
 * Custom cart and floating cart button styling
 */

/* ========================================
   Floating Cart Button
   ======================================== */

/* Mobile-first base styles */
.standard-shop-page .floating-cart {
    display: none; /* Hide floating cart - using header cart instead */
    position: fixed;
    bottom: 50%;
    right: 50%;
    transform: translate(50%, 50%);
    z-index: var(--z-floating-cart);
}

.standard-shop-page .floating-cart-button {
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    position: relative;
}

.standard-shop-page .floating-cart-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.standard-shop-page .floating-cart-button:active {
    transform: scale(0.95);
}

/* Subtle pulse on add to cart */
.standard-shop-page .floating-cart-button.pulse {
    animation: cartPulse 0.3s ease-out;
}

.standard-shop-page .floating-cart-button svg {
    width: 22px;
    height: 22px;
}

/* Cart Count Badge */
.standard-shop-page .cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #dc2626;
    color: white;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid white;
}

.standard-shop-page .cart-count:empty {
    display: none;
}

/* Subtle cart count update */
.standard-shop-page .cart-count.updated {
    animation: bounceIn 0.3s ease-out;
}

/* ========================================
   Mini Cart Customizations
   ======================================== */

/* Cart Items Container - Only for our custom cart modal */
.standard-shop-page .cart-modal .widget_shopping_cart_content {
    max-height: 400px;
    overflow-y: auto;
}

/* Custom Scrollbar - Only for our cart modal */
.standard-shop-page .cart-modal .widget_shopping_cart_content::-webkit-scrollbar {
    width: 6px;
}

.standard-shop-page .cart-modal .widget_shopping_cart_content::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.standard-shop-page .cart-modal .widget_shopping_cart_content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.standard-shop-page .cart-modal .widget_shopping_cart_content::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Cart Item - Only for our cart modal */
.standard-shop-page .cart-modal .woocommerce-mini-cart-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
    transition: background 0.2s ease;
}

.standard-shop-page .cart-modal .woocommerce-mini-cart-item:hover {
    background: #f9fafb;
}

/* Product Image in Cart - Only for our cart modal */
.standard-shop-page .cart-modal .cart-item-thumbnail {
    flex-shrink: 0;
}

.standard-shop-page .cart-modal .cart-item-thumbnail img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

/* Product Details - Only for our cart modal */
.standard-shop-page .cart-modal .cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.standard-shop-page .cart-modal .cart-item-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
}

.standard-shop-page .cart-modal .cart-item-name:hover {
    color: #3b82f6;
}

.standard-shop-page .cart-modal .cart-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #6b7280;
}

.standard-shop-page .cart-modal .cart-item-price {
    font-weight: 600;
    color: #1e40af;
}

.standard-shop-page .cart-modal .cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Remove Button - Only for our cart modal */
.standard-shop-page .cart-modal .cart-item-remove {
    position: absolute;
    top: 20px;
    right: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fee2e2;
    border-radius: 50%;
    color: #dc2626;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    opacity: 0;
    transition: all 0.2s ease;
}

.standard-shop-page .cart-modal .woocommerce-mini-cart-item:hover .cart-item-remove {
    opacity: 1;
}

.standard-shop-page .cart-modal .cart-item-remove:hover {
    background: #dc2626;
    color: white;
}

/* ========================================
   Cart Summary
   ======================================== */

/* Subtotal - Only for our cart modal */
.standard-shop-page .cart-modal .woocommerce-mini-cart__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-top: 2px solid #e5e7eb;
    margin-top: 24px;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.standard-shop-page .cart-modal .woocommerce-mini-cart__total strong {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
}

.standard-shop-page .cart-modal .woocommerce-mini-cart__total .amount {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

/* Cart Buttons - Only for our cart modal */
.standard-shop-page .cart-modal .woocommerce-mini-cart__buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.standard-shop-page .cart-modal .woocommerce-mini-cart__buttons .button {
    flex: 1;
    padding: 16px 24px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

/* View Cart Button (Hidden) - Only for our cart modal */
.standard-shop-page .cart-modal .woocommerce-mini-cart__buttons .button.wc-forward:not(.checkout) {
    display: none !important;
}

/* Checkout Button - Only for our cart modal */
.standard-shop-page .cart-modal .woocommerce-mini-cart__buttons .button.checkout {
    background: #4a90e2;
    color: white;
    border: none;
    width: 100%;
}

.standard-shop-page .cart-modal .woocommerce-mini-cart__buttons .button.checkout:hover {
    background: #357abd;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Empty Cart Message - Only for our cart modal */
.standard-shop-page .cart-modal .empty-cart-message {
    text-align: center;
    padding: 80px 20px;
}

.standard-shop-page .cart-modal .woocommerce-mini-cart__empty-message {
    font-size: 20px;
    color: #6b7280;
    margin-bottom: 24px;
    font-weight: 500;
}

.standard-shop-page .cart-modal .empty-cart-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    opacity: 0.3;
}

.standard-shop-page .cart-modal .return-to-shop {
    display: inline-block;
    padding: 12px 24px;
    background: #4a90e2;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.standard-shop-page .cart-modal .return-to-shop:hover {
    background: #357abd;
    transform: translateY(-1px);
}

/* ========================================
   Cart Animations
   ======================================== */

/* cartPulse animation - moved to animations.css */

/* bounceIn animation - moved to animations.css */

/* Item added animation - slideInRight moved to animations.css */

.standard-shop-page .cart-modal .woocommerce-mini-cart-item.added {
    animation: slideInRight 0.4s ease-out;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Mobile styles are base styles - no media query needed */
/* Tablet adjustments - aligned with responsive-breakpoints.css */
@media (min-width: 800px) {
    /* Cart button remains centered on all screen sizes */
    
    .standard-shop-page .floating-cart-button {
        width: 56px;
        height: 56px;
    }
    
    .standard-shop-page .floating-cart-button svg {
        width: 24px;
        height: 24px;
    }
    
    .standard-shop-page .cart-item-thumbnail img {
        width: 60px;
        height: 60px;
    }
}