/* Gamified WooCommerce Cart Styles */
.ppc-gamified-cart {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cart-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.cart-header h1 {
    font-size: 2.5rem;
    color: #4CAF50;
    margin-bottom: 10px;
    display: inline-block;
    position: relative;
}

.cart-header h1:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #FF9800);
    border-radius: 2px;
}

.cart-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.cart-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

@media (max-width: 992px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }
}

.cart-items-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

.cart-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #4CAF50;
    color: white;
}

.cart-items-header h2 {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.continue-shopping {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.continue-shopping:hover {
    opacity: 0.9;
    transform: translateX(-3px);
}

.cart-items {
    padding: 20px;
}

.cart-item {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.cart-item:hover {
    background-color: #E8F5E9;
}

.cart-item-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 20px;
    border: 1px solid #eee;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.cart-item:hover .cart-item-image img {
    transform: scale(1.05);
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.cart-item-title a {
    color: inherit;
    text-decoration: none;
}

.cart-item-title a:hover {
    text-decoration: underline;
}

.category-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.plants-shop { background: #C8E6C9; color: #2E7D32; }
.plants-care { background: #B3E5FC; color: #0288D1; }
.pets-shop { background: #FFECB3; color: #FF8F00; }
.pet-accessories-shop { background: #D1C4E9; color: #512DA8; }
.pet-foods-shop { background: #FFCCBC; color: #E64A19; }
.pet-care-items { background: #F8BBD0; color: #C2185B; }

.cart-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #4CAF50;
    margin: 10px 0;
}

.cart-item-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #ddd;
}

.quantity-input {
    width: 40px;
    height: 32px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 1rem;
}

.remove-item {
    background: none;
    border: none;
    color: #f44336;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.remove-item:hover {
    color: #d32f2f;
}

.free-shipping-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.free-shipping-container.achieved {
    border: 2px solid #FF9800;
}

.free-shipping-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.free-shipping-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.free-shipping-amount {
    font-weight: 700;
    color: #4CAF50;
}

.progress-container {
    height: 14px;
    background: #eee;
    border-radius: 7px;
    overflow: hidden;
    position: relative;
    margin: 15px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #2196F3);
    border-radius: 7px;
    position: relative;
    transition: width 1s ease;
    width: 0;
}

.progress-text {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.achievement-badge {
    position: absolute;
    top: -35px;
    right: 0;
    background: #FF9800;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 7px;
    animation: celebrateBadge 0.8s forwards;
}

.cart-summary-section {
    position: sticky;
    top: 20px;
}

.cart-summary {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 25px;
}

.cart_totals {
    width: 100%;
}

.shop_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.shop_table th,
.shop_table td {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.shop_table .order-total th,
.shop_table .order-total td {
    font-size: 1.2rem;
    font-weight: 700;
    padding: 15px 0;
    border-top: 2px dashed #eee;
    border-bottom: 2px dashed #eee;
}

.coupon {
    margin: 20px 0;
    padding: 15px;
    background: #E8F5E9;
    border-radius: 8px;
}

.coupon label {
    display: block;
    margin-bottom: 10px;
    color: #2E7D32;
    font-weight: 600;
}

.coupon .input-text {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 10px;
}

.coupon .button {
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.coupon .button:hover {
    background: #2E7D32;
}

.wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(90deg, #4CAF50, #FF9800);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.wc-proceed-to-checkout .checkout-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.payment-methods {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.payment-title {
    font-size: 1rem;
    color: #666;
    margin-bottom: 10px;
    text-align: center;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.payment-icon {
    font-size: 2rem;
    color: #555;
}

@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
    }
    
    .cart-item-image {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .cart-header h1 {
        font-size: 2rem;
    }
    
    .quantity-selector {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .cart-item-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .continue-shopping span {
        display: none;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes celebrateBadge {
    0% { transform: translateY(50px); opacity: 0; }
    50% { opacity: 1; transform: translateY(-10px); }
    100% { transform: translateY(0); opacity: 1; }
}

.celebrate {
    animation: pulse 0.5s ease 3;
}