/**
 * WooCommerce Blocks - Clean Balanced Styling
 */

/* ============================================
   REMOVE DUPLICATE PRODUCT DESCRIPTION - CART SPECIFIC
   ============================================ */

/* CART: Hide all product description variations */
.wc-block-cart .wc-block-cart-item__product-description,
.wc-block-cart .wc-block-cart-item__description,
.wc-block-cart .wc-block-components-product-details__description,
.wc-block-cart .wc-block-components-product-details,
.wc-block-cart-item .wc-block-components-product-details__description,
.wc-block-cart-items__row .wc-block-components-product-details__description,
.wc-block-cart-item__product-details .wc-block-components-product-details__description,
.wc-block-cart [class*="description"]:not(.wc-block-cart__empty-cart-description) {
    display: none !important;
}

/* CHECKOUT: Hide product description in order summary */
.wc-block-checkout__order-summary .wc-block-components-product-details__description,
.wc-block-checkout__order-summary .wc-block-components-order-summary-item__description,
.wc-block-checkout .wc-block-components-order-summary-item__description {
    display: none !important;
}

/* ============================================
   CART - Balanced Typography
   ============================================ */

.wc-block-cart {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

/* Title - smaller */
.wc-block-cart__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Cart items */
.wc-block-cart-items {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
}

.wc-block-cart-items__row {
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 12px;
}

.wc-block-cart-items__row:last-child {
    border-bottom: none;
}

/* Product image */
.wc-block-cart-item__image {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
}

.wc-block-cart-item__image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

/* Product name - smaller */
.wc-block-cart-item__product-name {
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.3;
}

.wc-block-cart-item__product-name a {
    color: #333;
    text-decoration: none;
}

/* Variations/attributes - smaller */
.wc-block-cart-item__product-attributes,
.wc-block-cart-item__product-metadata {
    font-size: 0.75rem;
    color: #666;
    margin-top: 2px;
    line-height: 1.3;
}

/* Price - smaller */
.wc-block-cart-item__price {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    white-space: nowrap;
}

.wc-block-cart-item__price ins {
    text-decoration: none;
    background: #e8f5e9;
    padding: 1px 4px;
    border-radius: 3px;
}

/* Quantity selector - smaller */
.wc-block-quantity-selector {
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.wc-block-quantity-selector__input {
    height: 30px;
    font-size: 0.85rem;
}

.wc-block-quantity-selector__button {
    height: 30px;
    width: 28px;
    font-size: 0.85rem;
}

/* Remove link - smaller */
.wc-block-cart-item__remove-link {
    font-size: 0.75rem;
    color: #999;
}

/* ============================================
   CART SIDEBAR - Balanced
   ============================================ */

.wc-block-cart__sidebar {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 12px;
}

.wc-block-cart__sidebar .wp-block-heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Totals - smaller */
.wc-block-components-totals-item {
    padding: 6px 0;
    font-size: 0.9rem;
}

.wc-block-components-totals-item__label {
    color: #666;
}

.wc-block-components-totals-item__value {
    font-weight: 500;
}

/* Order total */
.wc-block-components-totals-footer-item {
    border-top: 1px solid #333;
    margin-top: 10px;
    padding-top: 10px;
}

.wc-block-components-totals-item__value--highlight {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Checkout button */
.wc-block-cart__submit-button {
    background: #007cba;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    width: 100%;
    margin-top: 12px;
    cursor: pointer;
}

.wc-block-cart__submit-button:hover {
    background: #005a87;
}

/* Coupon field - smaller */
.wc-block-components-coupon-code__input {
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 36px;
    padding: 0 10px;
    font-size: 0.9rem;
}

.wc-block-components-coupon-code__button {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 12px;
    height: 36px;
    font-size: 0.85rem;
}

/* ============================================
   CHECKOUT - Balanced
   ============================================ */

.wc-block-checkout {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

/* Title - smaller */
.wc-block-checkout__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Form sections - smaller padding */
.wc-block-checkout__billing-fields,
.wc-block-checkout__shipping-fields,
.wc-block-checkout__payment-method {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 12px;
}

/* Form fields - smaller */
.wc-block-components-text-input input,
.wc-block-components-select select {
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 38px;
    padding: 0 10px;
    font-size: 0.9rem;
}

.wc-block-components-text-input label,
.wc-block-components-select label {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 2px;
}

/* Order summary - smaller padding */
.wc-block-checkout__order-summary {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 12px;
}

.wc-block-checkout__order-summary-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Order summary items - smaller */
.wc-block-components-order-summary-item {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.wc-block-components-order-summary-item__name {
    font-weight: 500;
    font-size: 0.9rem;
}

.wc-block-components-order-summary-item__quantity {
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 1px 4px;
    border-radius: 3px;
}

.wc-block-components-order-summary-item__total-price {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Place order button */
.wc-block-components-checkout-place-order-button {
    background: #007cba;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    padding: 14px 24px;
    width: 100%;
    margin-top: 12px;
    cursor: pointer;
}

.wc-block-components-checkout-place-order-button:hover {
    background: #005a87;
}

/* Shipping options - smaller */
.wc-block-components-shipping-rates-control__package {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
}

.wc-block-components-shipping-rates-control__package-title {
    font-size: 0.9rem;
}

/* ============================================
   MOBILE
   ============================================ */

@media (max-width: 768px) {
    .wc-block-cart,
    .wc-block-checkout {
        padding: 10px;
    }
    
    .wc-block-cart__title,
    .wc-block-checkout__title {
        font-size: 1.1rem;
    }
    
    .wc-block-cart-item__product-name {
        font-size: 0.85rem;
    }
    
    .wc-block-cart-item__image,
    .wc-block-cart-item__image img {
        width: 45px;
        height: 45px;
    }
    
    .wc-block-cart__sidebar {
        margin-top: 16px;
    }
}
