/* ============================================
   Custom Cart Styles - OYSHI Theme
   Full Width Two Column Layout
   ============================================ */

/* Hide cart page title */
.woocommerce-cart .entry-title,
.woocommerce-cart .page-title,
.woocommerce-cart h1.entry-title,
.page-template-default.woocommerce-cart .entry-title,
body.woocommerce-cart article.page > header,
body.woocommerce-cart .page-header,
body.woocommerce-cart article > .entry-header {
    display: none !important;
}

.wc-pds-custom-cart {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wc-pds-custom-cart * {
    box-sizing: border-box;
}

.wc-pds-custom-cart.wc-pds-updating {
    opacity: 0.6;
    pointer-events: none;
}

/* Two Column Wrapper */
.wc-pds-cart-wrapper {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.wc-pds-cart-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.wc-pds-cart-left .wc-pds-cart-items {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wc-pds-cart-left .wc-pds-cart-table {
    flex: 1;
}

.wc-pds-cart-right {
    width: 380px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.wc-pds-cart-right .wc-pds-cart-totals {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Empty Cart */
.wc-pds-cart-empty {
    text-align: center;
    padding: 80px 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

.wc-pds-cart-empty p {
    font-size: 20px;
    color: #666;
    margin-bottom: 25px;
}

.wc-pds-continue-shopping {
    display: inline-block;
    padding: 14px 35px;
    background: #1a1a1a;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 30px;
    font-weight: 500;
}

.wc-pds-continue-shopping:hover {
    background: #e63946;
}

/* Cart Table */
.wc-pds-cart-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.wc-pds-cart-table thead {
    background: #1a1a1a;
}

.wc-pds-cart-table thead th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wc-pds-cart-table thead th.product-thumbnail {
    width: 90px;
}

.wc-pds-cart-table thead th.product-quantity {
    text-align: center;
}

.wc-pds-cart-table thead th.product-subtotal {
    text-align: right;
}

.wc-pds-cart-table thead th.product-remove {
    width: 50px;
}

.wc-pds-cart-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.wc-pds-cart-table tbody tr:last-child {
    border-bottom: none;
}

.wc-pds-cart-table tbody tr:hover {
    background: #fafafa;
}

.wc-pds-cart-table tbody td {
    padding: 20px 15px;
    vertical-align: middle;
}

/* Product Thumbnail */
.wc-pds-cart-table .product-thumbnail {
    width: 90px;
}

.wc-pds-cart-table .product-thumbnail img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* Product Name */
.wc-pds-cart-table .product-name {
    min-width: 150px;
}

.wc-pds-cart-table .product-name a {
    color: #1a1a1a !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
}

.wc-pds-cart-table .product-name a:hover {
    color: #e63946 !important;
}

/* Product Price */
.wc-pds-cart-table .product-price {
    font-weight: 500;
    color: #666;
    font-size: 15px;
    white-space: nowrap;
}

/* Quantity Selector */
.wc-pds-cart-table .product-quantity {
    text-align: center;
}

.wc-pds-quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 2px solid #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.wc-pds-qty-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.wc-pds-qty-btn:hover {
    background: #1a1a1a;
    color: #fff;
}

.wc-pds-qty-btn:active {
    /* No animation */
}

.wc-pds-qty-input {
    width: 45px;
    height: 38px;
    border: none;
    border-left: 2px solid #1a1a1a;
    border-right: 2px solid #1a1a1a;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    background: #fff;
    -moz-appearance: textfield;
    padding: 0;
    margin: 0;
}

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

.wc-pds-qty-input:focus {
    outline: none;
    background: #f9f9f9;
}

/* Product Subtotal */
.wc-pds-cart-table .product-subtotal {
    text-align: right;
    font-weight: 700;
    font-size: 16px;
    color: #1a1a1a;
    white-space: nowrap;
}

/* Remove Button */
.wc-pds-cart-table .product-remove {
    width: 50px;
    text-align: center;
}

.wc-pds-remove-item {
    width: 34px;
    height: 34px;
    border: 2px solid #e63946;
    background: #fff;
    color: #e63946;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.wc-pds-remove-item:hover {
    background: #e63946;
    color: #fff;
}

.wc-pds-removing {
    opacity: 0.3;
    background: #fee;
}

/* Cart Totals - Right Column */
.wc-pds-cart-totals {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.wc-pds-totals-table {
    width: 100%;
    border-collapse: collapse;
}

.wc-pds-totals-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.wc-pds-totals-table tr:last-child {
    border-bottom: none;
}

.wc-pds-totals-table th,
.wc-pds-totals-table td {
    padding: 15px 0;
    vertical-align: middle;
}

.wc-pds-totals-table th {
    text-align: left;
    font-weight: 500;
    color: #666;
    font-size: 15px;
}

.wc-pds-totals-table td {
    text-align: right;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 16px;
}

.wc-pds-totals-table .subtotal-row th,
.wc-pds-totals-table .subtotal-row td {
    color: #888;
}

.wc-pds-totals-table .tax-row th,
.wc-pds-totals-table .tax-row td {
    color: #888;
    font-size: 14px;
}

.wc-pds-totals-table .total-row {
    border-top: 2px solid #1a1a1a;
    border-bottom: none;
}

.wc-pds-totals-table .total-row th {
    padding-top: 20px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.wc-pds-totals-table .total-row td {
    padding-top: 20px;
    font-size: 26px;
    font-weight: 700;
    color: #e63946;
}

/* Checkout Button */
.wc-pds-cart-actions {
    margin-top: 25px;
}

.wc-pds-checkout-btn {
    display: block;
    width: 100%;
    padding: 18px 30px;
    background: #1a1a1a;
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
}

.wc-pds-checkout-btn:hover {
    background: #e63946;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .wc-pds-cart-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .wc-pds-cart-right {
        width: 100%;
        max-width: 450px;
        margin-left: auto;
        position: static;
    }
}

@media (max-width: 768px) {
    .wc-pds-custom-cart {
        padding: 20px 15px;
    }

    .wc-pds-cart-table thead {
        display: none;
    }

    .wc-pds-cart-table,
    .wc-pds-cart-table tbody,
    .wc-pds-cart-table tr,
    .wc-pds-cart-table td {
        display: block;
        width: 100%;
    }

    .wc-pds-cart-table tbody tr {
        padding: 20px;
        margin-bottom: 15px;
        border: 1px solid #eee;
        border-radius: 12px;
        position: relative;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    .wc-pds-cart-table td {
        padding: 10px 0;
        text-align: left !important;
        border: none;
    }

    .wc-pds-cart-table .product-thumbnail {
        width: 100%;
        text-align: center;
        padding-bottom: 15px;
    }

    .wc-pds-cart-table .product-thumbnail img {
        width: 100px;
        height: 100px;
    }

    .wc-pds-cart-table .product-name {
        text-align: center !important;
        padding-bottom: 10px;
    }

    .wc-pds-cart-table .product-price {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .wc-pds-cart-table .product-price::before {
        content: 'Precio';
        font-weight: 600;
        color: #888;
    }

    .wc-pds-cart-table .product-quantity {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left !important;
    }

    .wc-pds-cart-table .product-quantity::before {
        content: 'Cantidad';
        font-weight: 600;
        color: #888;
    }

    .wc-pds-cart-table .product-subtotal {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left !important;
        padding-top: 15px;
        border-top: 1px dashed #eee;
    }

    .wc-pds-cart-table .product-subtotal::before {
        content: 'Subtotal';
        font-weight: 600;
        color: #888;
    }

    .wc-pds-cart-table .product-remove {
        position: absolute;
        top: 15px;
        right: 15px;
        width: auto;
    }

    .wc-pds-cart-right {
        max-width: 100%;
    }
}

/* No animations */

/* WooCommerce Price Override */
.wc-pds-custom-cart .woocommerce-Price-amount {
    font-weight: inherit;
    color: inherit;
}

.wc-pds-custom-cart .woocommerce-Price-currencySymbol {
    font-weight: inherit;
}

/* Discount Row */
.wc-pds-totals-table .discount-row th,
.wc-pds-totals-table .discount-row td {
    color: #27ae60;
    font-weight: 600;
}

.wc-pds-discount-amount {
    color: #27ae60 !important;
    font-weight: 700;
}

/* Points Row */
.wc-pds-totals-table .points-row {
    border-bottom: none;
}

.wc-pds-totals-table .points-row th {
    font-size: 14px;
    color: #888;
    font-weight: 500;
}

.wc-pds-totals-table .points-row td {
    font-size: 14px;
}

.wc-pds-points-value {
    color: #27ae60 !important;
    font-weight: 600;
}

.wc-pds-points-disabled {
    color: #888 !important;
    font-weight: 500;
    font-style: italic;
}

/* Points Earning Notice (legacy - can be removed if not used elsewhere) */
.wc-pds-points-earn-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cc 100%);
    border: 1px solid #f0d060;
    border-radius: 8px;
    font-size: 14px;
    color: #705c00;
}

.wc-pds-points-icon {
    font-size: 20px;
    color: #f0a000;
}

.wc-pds-points-earn-notice strong {
    color: #e63946;
    font-weight: 700;
}
