/**
 * MiriamPope Pet Clothing - Cart Page Styles
 * Prefix: paw-
 */

/* Page Header Small */
.paw-page-header-small {
    padding: 40px 0 30px;
}

.paw-page-header-small .paw-page-title {
    font-size: 32px;
}

/* Cart Layout */
.paw-cart {
    padding: 40px 0 80px;
}

.paw-cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
}

/* Empty Cart */
.paw-cart-empty {
    text-align: center;
    padding: 80px 20px;
}

.paw-empty-icon {
    font-size: 80px;
    margin-bottom: 24px;
}

.paw-empty-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.paw-empty-text {
    color: var(--paw-text-light);
    margin-bottom: 32px;
}

/* Cart Items */
.paw-cart-items {
    background: white;
    border-radius: var(--paw-radius);
    box-shadow: var(--paw-shadow);
    overflow: hidden;
}

.paw-cart-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
    padding: 20px 24px;
    background: var(--paw-bg-alt);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.paw-cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
    padding: 24px;
    border-bottom: 1px solid var(--paw-border);
    align-items: center;
}

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

/* Item Product */
.paw-item-product {
    display: flex;
    gap: 16px;
    align-items: center;
}

.paw-item-image {
    width: 100px;
    height: 100px;
    border-radius: var(--paw-radius-sm);
    overflow: hidden;
    background: var(--paw-bg-alt);
    flex-shrink: 0;
}

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

.paw-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.paw-item-details {
    flex: 1;
}

.paw-item-name {
    font-weight: 700;
    font-size: 16px;
    display: block;
    margin-bottom: 8px;
    transition: var(--paw-transition);
}

.paw-item-name:hover {
    color: var(--paw-primary-dark);
}

.paw-item-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.paw-item-variant {
    font-size: 12px;
    color: var(--paw-text-light);
    background: var(--paw-bg-alt);
    padding: 4px 10px;
    border-radius: 50px;
}

.paw-item-price {
    font-weight: 600;
    color: var(--paw-primary-dark);
}

/* Item Quantity */
.paw-item-quantity {
    display: flex;
    justify-content: center;
}

.paw-qty-form {
    display: inline-block;
}

.paw-quantity-small .paw-qty-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
}

.paw-quantity-small .paw-qty-input {
    width: 48px;
    height: 36px;
    font-size: 14px;
}

/* Item Total */
.paw-item-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.paw-item-total-price {
    font-weight: 700;
    font-size: 16px;
}

.paw-remove-form {
    display: inline-block;
}

.paw-remove-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--paw-bg-alt);
    color: var(--paw-text-light);
    font-size: 20px;
    line-height: 1;
    transition: var(--paw-transition);
}

.paw-remove-btn:hover {
    background: #ff4757;
    color: white;
}

/* Cart Actions */
.paw-cart-actions {
    padding: 24px;
    border-top: 1px solid var(--paw-border);
}

/* Cart Summary */
.paw-cart-summary {
    background: white;
    border-radius: var(--paw-radius);
    padding: 32px;
    box-shadow: var(--paw-shadow);
    position: sticky;
    top: 100px;
}

.paw-summary-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.paw-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 16px;
}

.paw-summary-row span:first-child {
    color: var(--paw-text-light);
}

.paw-summary-row span:last-child {
    font-weight: 600;
}

.paw-shipping-notice {
    background: var(--paw-bg);
    padding: 12px 16px;
    border-radius: var(--paw-radius-sm);
    font-size: 14px;
    color: var(--paw-text);
    margin-top: 8px;
}

.paw-shipping-notice span {
    margin-right: 8px;
}

.paw-summary-divider {
    height: 1px;
    background: var(--paw-border);
    margin: 16px 0;
}

.paw-summary-total {
    font-size: 20px;
    font-weight: 700;
}

.paw-summary-total span:last-child {
    color: var(--paw-primary-dark);
    font-size: 24px;
}

.paw-btn-checkout {
    width: 100%;
    margin-top: 24px;
    padding: 18px;
    font-size: 18px;
}

.paw-payment-methods {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--paw-text-light);
}

.paw-payment-methods span:first-child {
    display: block;
    margin-bottom: 8px;
}

.paw-payment-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 28px;
}

.paw-trust-badges {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--paw-border);
    display: flex;
    justify-content: center;
    gap: 24px;
}

.paw-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--paw-text-light);
}

.paw-trust-item span:first-child {
    font-size: 18px;
}

/* Responsive */
@media (max-width: 1024px) {
    .paw-cart-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .paw-cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .paw-cart-header {
        display: none;
    }
    
    .paw-cart-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .paw-item-quantity {
        justify-content: flex-start;
    }
    
    .paw-item-total {
        justify-content: flex-start;
        border-top: 1px solid var(--paw-border);
        padding-top: 16px;
    }
    
    .paw-item-total-price {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .paw-item-product {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .paw-item-image {
        width: 100%;
        height: 200px;
    }
    
    .paw-cart-summary {
        padding: 24px;
    }
    
    .paw-trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}
