/**
 * WPCrypto Shop Frontend Styles
 * Modern, mobile-responsive design with 3 unique template variations
 * 
 * TABLE OF CONTENTS:
 * 1. BASE GRID SYSTEM
 * 2. DEFAULT TEMPLATE (3 Columns - 16:9 Images)
 * 3. MINIMAL TEMPLATE (5 Columns - 1:1 Square Images)
 * 4. TALL TEMPLATE (4 Columns - 9:16 Portrait Images)
 * 5. PRODUCT BADGES
 * 6. CART SYSTEM
 * 7. CART HEADER BAR
 * 8. CHECKOUT MODAL
 * 9. MOBILE RESPONSIVENESS
 * 10. ANIMATIONS & TRANSITIONS
 * 11. UTILITY CLASSES
 */

/* ==========================================================================
   1. BASE GRID SYSTEM - Shared Styles
   ========================================================================== */

.wpcrypto-shop-products {
    margin: 30px 0;
    padding: 0;
    list-style: none;
    display: grid;
}

.wpcrypto-shop-product {
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wpcrypto-shop-product-image {
    width: 100%;
    background: #f8fafc;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.wpcrypto-shop-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.wpcrypto-shop-product:hover .wpcrypto-shop-product-image img {
    transform: scale(1.08);
}

.wpcrypto-shop-product-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 20px;
}

.wpcrypto-shop-product-title {
    color: #1e293b;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.wpcrypto-shop-product-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.wpcrypto-shop-product-title a:hover {
    color: #3b82f6;
}

.wpcrypto-shop-product-price {
    font-weight: 800;
    color: #dc2626;
    margin-bottom: 15px;
}

.wpcrypto-shop-product-stock {
    color: #64748b;
    margin-bottom: 12px;
}

.wpcrypto-shop-free-shipping {
    color: #059669;
    margin-bottom: 12px;
}

.wpcrypto-shop-product-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: auto;
    padding-top: 15px;
}

/* ==========================================================================
   2. DEFAULT TEMPLATE - 3 Columns with 16:9 Landscape Images
   ========================================================================== */

.wpcrypto-shop-products:not(.wpcrypto-shop-minimal):not(.wpcrypto-shop-tall) {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.wpcrypto-shop-products:not(.wpcrypto-shop-minimal):not(.wpcrypto-shop-tall) .wpcrypto-shop-product {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.wpcrypto-shop-products:not(.wpcrypto-shop-minimal):not(.wpcrypto-shop-tall) .wpcrypto-shop-product:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-color: #3b82f6;
}

.wpcrypto-shop-products:not(.wpcrypto-shop-minimal):not(.wpcrypto-shop-tall) .wpcrypto-shop-product-image {
    aspect-ratio: 16/9;
}

.wpcrypto-shop-products:not(.wpcrypto-shop-minimal):not(.wpcrypto-shop-tall) .wpcrypto-shop-product-content {
    padding: 24px;
}

.wpcrypto-shop-products:not(.wpcrypto-shop-minimal):not(.wpcrypto-shop-tall) .wpcrypto-shop-product-title {
    font-size: 18px;
    font-weight: 700;
    min-height: 52px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wpcrypto-shop-products:not(.wpcrypto-shop-minimal):not(.wpcrypto-shop-tall) .wpcrypto-shop-product-meta {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
}

.wpcrypto-shop-products:not(.wpcrypto-shop-minimal):not(.wpcrypto-shop-tall) .wpcrypto-shop-product-excerpt {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wpcrypto-shop-products:not(.wpcrypto-shop-minimal):not(.wpcrypto-shop-tall) .wpcrypto-shop-product-price {
    font-size: 24px;
    margin-bottom: 18px;
}

.wpcrypto-shop-products:not(.wpcrypto-shop-minimal):not(.wpcrypto-shop-tall) .wpcrypto-shop-product-stock {
    font-size: 13px;
    padding: 6px 12px;
    background: #f1f5f9;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 14px;
}

.wpcrypto-shop-products:not(.wpcrypto-shop-minimal):not(.wpcrypto-shop-tall) .wpcrypto-shop-free-shipping {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    background: #d1fae5;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 14px;
}

/* ==========================================================================
   3. MINIMAL TEMPLATE - 5 Columns with 1:1 Square Images
   ========================================================================== */

.wpcrypto-shop-products.wpcrypto-shop-minimal {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.wpcrypto-shop-minimal .wpcrypto-shop-product {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.wpcrypto-shop-minimal .wpcrypto-shop-product:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.wpcrypto-shop-minimal .wpcrypto-shop-product-image {
    aspect-ratio: 1/1;
}

.wpcrypto-shop-minimal .wpcrypto-shop-product-content {
    padding: 14px;
}

.wpcrypto-shop-minimal .wpcrypto-shop-product-title {
    font-size: 14px;
    font-weight: 600;
    min-height: 38px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wpcrypto-shop-minimal .wpcrypto-shop-product-meta,
.wpcrypto-shop-minimal .wpcrypto-shop-product-excerpt {
    display: none;
}

.wpcrypto-shop-minimal .wpcrypto-shop-product-price {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.wpcrypto-shop-minimal .wpcrypto-shop-product-stock {
    font-size: 11px;
    margin-bottom: 10px;
}

.wpcrypto-shop-minimal .wpcrypto-shop-free-shipping {
    font-size: 10px;
    font-weight: 600;
    background: #10b981;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
}

.wpcrypto-shop-minimal .wpcrypto-shop-product-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
}

.wpcrypto-shop-minimal .wpcrypto-shop-btn {
    padding: 8px 12px;
    font-size: 12px;
}

/* ==========================================================================
   4. TALL TEMPLATE - 4 Columns with 9:16 Portrait Images
   ========================================================================== */

.wpcrypto-shop-products.wpcrypto-shop-tall {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.wpcrypto-shop-tall .wpcrypto-shop-product {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.wpcrypto-shop-tall .wpcrypto-shop-product:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.wpcrypto-shop-tall .wpcrypto-shop-product-image {
    aspect-ratio: 9/16;
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}

.wpcrypto-shop-tall .wpcrypto-shop-tall-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.wpcrypto-shop-tall .wpcrypto-shop-product-title {
    font-size: 16px;
    font-weight: 700;
    min-height: 44px;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wpcrypto-shop-tall .wpcrypto-shop-product-meta,
.wpcrypto-shop-tall .wpcrypto-shop-product-excerpt {
    display: none;
}

.wpcrypto-shop-tall .wpcrypto-shop-product-price {
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    padding: 10px;
    background: linear-gradient(135deg, #fee2e2, #fef2f2);
    border-radius: 8px;
    margin-bottom: 14px;
}

.wpcrypto-shop-tall .wpcrypto-shop-product-stock {
    font-size: 12px;
    text-align: center;
    padding: 5px;
    background: #f8fafc;
    border-radius: 4px;
    margin-bottom: 12px;
}

.wpcrypto-shop-tall .wpcrypto-shop-free-shipping {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #059669;
    background: #d1fae5;
    padding: 5px;
    border-radius: 4px;
    margin-bottom: 14px;
}

.wpcrypto-shop-tall .wpcrypto-shop-product-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
}

.wpcrypto-shop-tall .wpcrypto-shop-btn {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
}

/* ==========================================================================
   5. PRODUCT BADGES - Works for All Templates
   ========================================================================== */

.wpcrypto-shop-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.wpcrypto-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 12px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.5px;
    line-height: 1;
}

.wpcrypto-shop-minimal .wpcrypto-badge {
    padding: 3px 6px;
    font-size: 9px;
    border-radius: 8px;
}

.wpcrypto-shop-tall .wpcrypto-badge {
    padding: 5px 8px;
    font-size: 9px;
}

.wpcrypto-badge.new-badge {
    background: linear-gradient(45deg, #ff6b6b, #ff5722);
    animation: pulse 2s infinite;
}

.wpcrypto-badge.sale-badge {
    background: linear-gradient(45deg, #e91e63, #c2185b);
}

.wpcrypto-badge.bestseller-badge {
    background: linear-gradient(45deg, #ffd700, #ffb300);
    color: #333;
    text-shadow: none;
}

.wpcrypto-badge.limited-badge {
    background: linear-gradient(45deg, #9c27b0, #673ab7);
}

.wpcrypto-badge.hot-badge {
    background: linear-gradient(45deg, #ff5722, #d84315);
    animation: glow 2s ease-in-out infinite;
}

.wpcrypto-badge.digital-badge {
    background: linear-gradient(45deg, #2196f3, #1976d2);
}

.wpcrypto-badge.preorder-badge {
    background: linear-gradient(45deg, #00bcd4, #0097a7);
}

.wpcrypto-badge.outofstock-badge {
    background: linear-gradient(45deg, #757575, #424242);
}

/* ==========================================================================
   6. CART SYSTEM - Universal Button Styles
   ========================================================================== */

.wpcrypto-shop-btn {
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.wpcrypto-shop-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.wpcrypto-shop-btn:hover::before {
    left: 100%;
}

.wpcrypto-shop-btn-cart {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.wpcrypto-shop-btn-cart:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.wpcrypto-shop-btn-buy {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.wpcrypto-shop-btn-buy:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.wpcrypto-shop-btn-disabled {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: white;
    cursor: not-allowed;
    opacity: 0.6;
}

.wpcrypto-shop-btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Cart Container */
.wpcrypto-shop-cart-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 32px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid #e2e8f0;
}

.wpcrypto-shop-cart-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 32px;
    text-align: center;
    position: relative;
    padding-bottom: 16px;
}

.wpcrypto-shop-cart-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

.wpcrypto-shop-cart-empty {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 16px;
    border: 2px dashed #e2e8f0;
}

.wpcrypto-shop-cart-empty::before {
    content: '🛒';
    font-size: 64px;
    display: block;
    margin-bottom: 20px;
    opacity: 0.6;
}

.wpcrypto-shop-cart-empty p {
    font-size: 20px;
    color: #64748b;
    margin: 0;
    font-weight: 600;
}

.wpcrypto-shop-cart-item {
    display: grid;
    grid-template-columns: 120px 1fr 180px 140px 60px;
    gap: 24px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.3s ease;
}

.wpcrypto-shop-cart-item:hover {
    background-color: #f8fafc;
    border-radius: 12px;
    margin: 0 -16px;
    padding: 24px 16px;
}

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

.wpcrypto-shop-cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wpcrypto-shop-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wpcrypto-shop-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    opacity: 0.3;
}

.wpcrypto-shop-cart-item-title a {
    font-weight: 700;
    font-size: 18px;
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.wpcrypto-shop-cart-item-title a:hover {
    color: #3b82f6;
}

.wpcrypto-shop-cart-item-price {
    font-size: 16px;
    color: #64748b;
    font-weight: 500;
}

.wpcrypto-shop-cart-item-quantity {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    overflow: hidden;
}

.wpcrypto-shop-quantity-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: #ffffff;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    color: #3b82f6;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpcrypto-shop-quantity-btn:hover {
    background: #3b82f6;
    color: white;
}

.wpcrypto-shop-quantity-input {
    width: 60px;
    height: 44px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 16px;
    color: #1e293b;
}

.wpcrypto-shop-cart-item-subtotal {
    font-weight: 800;
    font-size: 20px;
    color: #dc2626;
    text-align: right;
}

.wpcrypto-shop-remove-item {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #ef4444;
    opacity: 0.7;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpcrypto-shop-remove-item:hover {
    opacity: 1;
    background: #fef2f2;
    transform: scale(1.1);
}

.wpcrypto-shop-cart-summary {
    margin-top: 40px;
    padding: 32px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wpcrypto-shop-cart-total {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
}

.wpcrypto-shop-cart-actions {
    display: flex;
    gap: 16px;
}

.wpcrypto-shop-clear-cart {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.wpcrypto-shop-clear-cart:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

.wpcrypto-shop-checkout {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.wpcrypto-shop-checkout:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   7. CART HEADER BAR
   ========================================================================== */

.wpcrypto-cart-header-bar {
    background: linear-gradient(135deg, #3b82f6 0%, #1e293b 100%);
    color: white;
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.wpcrypto-cart-header-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: wpcrypto-shine 3s infinite;
}

.wpcrypto-cart-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.wpcrypto-cart-header-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.wpcrypto-cart-header-icon {
    font-size: 28px;
}

.wpcrypto-cart-header-text {
    font-size: 18px;
    font-weight: 700;
    margin-right: 12px;
}

.wpcrypto-cart-header-total {
    font-size: 20px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.wpcrypto-cart-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wpcrypto-cart-header-btn {
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.wpcrypto-cart-header-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.wpcrypto-cart-header-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.wpcrypto-cart-header-close {
    background: rgba(239, 68, 68, 0.2);
    color: white;
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpcrypto-cart-header-close:hover {
    background: #ef4444;
    transform: rotate(90deg);
}

/* ==========================================================================
   8. CHECKOUT MODAL
   ========================================================================== */

.wpcrypto-checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.wpcrypto-checkout-modal-show {
    opacity: 1;
    visibility: visible;
}

.wpcrypto-checkout-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.wpcrypto-checkout-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    max-height: 90%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.wpcrypto-checkout-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.wpcrypto-checkout-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* ==========================================================================
   9. MOBILE RESPONSIVENESS
   ========================================================================== */

/* Large Tablet - 1024px */
@media (max-width: 1024px) {
    .wpcrypto-shop-products:not(.wpcrypto-shop-minimal):not(.wpcrypto-shop-tall) {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .wpcrypto-shop-products.wpcrypto-shop-minimal {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .wpcrypto-shop-products.wpcrypto-shop-tall {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Tablet - 768px */
@media (max-width: 768px) {
    .wpcrypto-shop-products:not(.wpcrypto-shop-minimal):not(.wpcrypto-shop-tall) {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .wpcrypto-shop-products.wpcrypto-shop-minimal {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .wpcrypto-shop-products.wpcrypto-shop-tall {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .wpcrypto-shop-tall .wpcrypto-shop-product-image {
        aspect-ratio: 3/4;
    }

    .wpcrypto-shop-cart-container {
        margin: 20px 10px;
        padding: 20px;
    }

    .wpcrypto-shop-cart-item {
        grid-template-columns: 80px 1fr 80px;
        grid-template-areas: 
            "image details remove"
            "image quantity subtotal";
        gap: 16px 20px;
    }

    .wpcrypto-shop-cart-item-image {
        grid-area: image;
        width: 80px;
        height: 80px;
    }

    .wpcrypto-shop-cart-item-details {
        grid-area: details;
    }

    .wpcrypto-shop-cart-item-quantity {
        grid-area: quantity;
        justify-self: start;
    }

    .wpcrypto-shop-cart-item-subtotal {
        grid-area: subtotal;
        text-align: right;
        align-self: center;
    }

    .wpcrypto-shop-remove-item {
        grid-area: remove;
        justify-self: end;
    }

    .wpcrypto-shop-cart-summary {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .wpcrypto-cart-header-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Mobile - 480px */
@media (max-width: 480px) {
    .wpcrypto-shop-products:not(.wpcrypto-shop-minimal):not(.wpcrypto-shop-tall),
    .wpcrypto-shop-products.wpcrypto-shop-minimal,
    .wpcrypto-shop-products.wpcrypto-shop-tall {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .wpcrypto-shop-minimal .wpcrypto-shop-product {
        display: grid;
        grid-template-columns: 120px 1fr;
        gap: 12px;
    }

    .wpcrypto-shop-minimal .wpcrypto-shop-product-image {
        aspect-ratio: 1/1;
    }

    .wpcrypto-shop-minimal .wpcrypto-shop-product-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 12px;
    }

    .wpcrypto-shop-minimal .wpcrypto-shop-product-buttons {
        flex-direction: row;
        gap: 8px;
    }

    .wpcrypto-shop-tall .wpcrypto-shop-product-image {
        aspect-ratio: 16/9;
    }

    .wpcrypto-shop-product-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .wpcrypto-shop-cart-item {
        grid-template-columns: 60px 1fr;
        grid-template-areas:
            "image details"
            "image price"
            "quantity subtotal"
            ". remove";
        row-gap: 12px;
    }

    .wpcrypto-shop-cart-item-price {
        grid-area: price;
    }

    .wpcrypto-shop-cart-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .wpcrypto-shop-clear-cart,
    .wpcrypto-shop-checkout {
        width: 100%;
    }
}

/* ==========================================================================
   10. ANIMATIONS & TRANSITIONS
   ========================================================================== */

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 87, 34, 0.6);
    }
    50% {
        box-shadow: 0 2px 16px rgba(255, 87, 34, 0.8);
    }
}

@keyframes wpcrypto-shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes wpcrypto-loading {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

.wpcrypto-loading {
    animation: wpcrypto-loading 1.5s infinite;
}

.wpcrypto-shop-btn.loading {
    position: relative;
    color: transparent;
}

.wpcrypto-shop-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ==========================================================================
   11. UTILITY CLASSES
   ========================================================================== */

.wpcrypto-shop-no-products {
    text-align: center;
    color: #64748b;
    font-style: italic;
    padding: 80px 40px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 16px;
    margin: 32px 0;
    border: 2px dashed #e2e8f0;
    font-size: 18px;
    font-weight: 500;
}

.wpcrypto-shop-product.out-of-stock {
    opacity: 0.65;
    position: relative;
}

.wpcrypto-shop-product.out-of-stock::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    border-radius: inherit;
}

.wpcrypto-shop-product.out-of-stock .wpcrypto-shop-btn {
    pointer-events: none;
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

.wpcrypto-shop-toast-container-unique {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wpcrypto-shop-toast-unique {
    background: white;
    color: #1e293b;
    padding: 16px 20px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    min-width: 250px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    border-left: 4px solid;
}

.wpcrypto-shop-toast-show-unique {
    transform: translateX(0);
}

.wpcrypto-shop-toast-success-unique {
    border-left-color: #10b981;
    background: #d1fae5;
    color: #059669;
}

.wpcrypto-shop-toast-error-unique {
    border-left-color: #ef4444;
    background: #fee2e2;
    color: #dc2626;
}

.wpcrypto-shop-toast-warning-unique {
    border-left-color: #f59e0b;
    background: #fef3c7;
    color: #92400e;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .wpcrypto-shop-product {
        border: 2px solid #000;
    }

    .wpcrypto-shop-btn {
        border: 2px solid #000;
    }

    .wpcrypto-badge {
        border: 1px solid #000;
    }
}

/* Print styles */
@media print {
    .wpcrypto-shop-product-buttons,
    .wpcrypto-cart-header-bar,
    .wpcrypto-shop-cart-actions,
    .wpcrypto-shop-remove-item {
        display: none;
    }

    .wpcrypto-shop-product {
        break-inside: avoid;
    }
}