/* Custom Cart Styling for WC Extra */

.wc-extra-custom-cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #111;
}

.wc-extra-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.wc-extra-cart-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hide common theme page titles and free shipping progress bars on the cart page */
.page-title, .entry-title, .woocommerce-products-header {
    display: none !important;
}

.wc-extra-continue-shopping {
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #333;
    font-size: 0.95rem;
    transition: color 0.2s, border-color 0.2s;
}

.wc-extra-continue-shopping:hover {
    color: #000;
    border-color: #000;
}

.wc-extra-cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    border: none !important;
}

.wc-extra-cart-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #777;
    font-weight: 500;
    padding: 15px 0;
    border-top: 1px solid #eee !important;
    border-bottom: 1px solid #eee !important;
    border-left: none !important;
    border-right: none !important;
    text-align: left;
}

.wc-extra-cart-table th.text-right,
.wc-extra-cart-table td.text-right {
    text-align: right;
}

.wc-extra-cart-table th.product-quantity {
    text-align: right;
    padding-right: 20px;
}

.wc-extra-cart-table td {
    padding: 30px 0;
    border-top: none !important;
    border-bottom: 1px solid #eee !important;
    border-left: none !important;
    border-right: none !important;
    vertical-align: top;
}

.wc-extra-cart-table .product-thumbnail {
    width: 165px; /* Image width + padding */
    padding-right: 15px;
}

.wc-extra-cart-table .product-thumbnail img {
    width: 150px !important;
    height: 150px !important;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.wc-extra-product-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wc-extra-product-title {
    font-weight: 500;
    font-size: 1rem;
    color: #111;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.wc-extra-product-title:hover {
    text-decoration: underline;
}

.wc-extra-product-price-mobile {
    font-size: 0.95rem;
    color: #555;
}

.wc-extra-qty-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.wc-extra-qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid #777 !important;
    background: transparent !important;
    overflow: hidden;
    height: 30px;
}

.wc-extra-qty-controls .quantity {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

button.wc-extra-qty-btn,
.wc-extra-qty-btn {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    width: 24px;
    height: 30px;
    font-size: 1rem;
    cursor: pointer;
    color: #000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.wc-extra-qty-btn:hover {
    background: #f9f9f9;
}

.wc-extra-qty-input {
    width: 32px;
    height: 30px !important;
    min-height: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    line-height: 1 !important;
    text-align: center;
    font-size: 0.95rem;
    padding: 0;
    -moz-appearance: textfield;
}

.wc-extra-qty-input::-webkit-outer-spin-button,
.wc-extra-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.wc-extra-remove-icon {
    color: #777;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.wc-extra-remove-icon:hover {
    color: #d00;
}

.wc-extra-cart-actions-row td {
    border-bottom: none;
    padding: 15px 0;
    text-align: right;
}

/* Hide default update button as the cart updates automatically */
.wc-extra-update-btn {
    display: none !important;
}

.wc-extra-cart-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.wc-extra-cart-totals {
    width: 100%;
    max-width: 400px;
    text-align: right;
}

.wc-extra-totals-row {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 10px;
}

.wc-extra-totals-label {
    font-size: 1.05rem;
    color: #333;
}

.wc-extra-totals-value {
    font-size: 1.2rem;
    font-weight: 500;
}

.wc-extra-taxes-note {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 20px 0;
}

.wc-extra-checkout-btn {
    display: block;
    width: 100%;
    background: #111;
    color: #fff;
    text-align: center;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.wc-extra-checkout-btn:hover {
    background: #333;
    color: #fff;
}

/* Hide some default woocommerce elements that might show up */
.woocommerce-cart-form .coupon {
    display: none; /* User image doesn't show coupon field */
}
