.filled-cart-container *,
.empty-cart-container{
    box-sizing: border-box;
}
.filled-cart-container,
.empty-cart-container{
    display: flex;
    flex-direction: column;
    padding: clamp(2rem, calc(0.842rem + 4.752vw), 5rem) clamp(1.25rem, calc(0.96rem + 1.188vw), 2rem);
    gap: clamp(1.5rem, calc(1.114rem + 1.584vw), 2.5rem);
}

.filled-cart-title h1,
.empty-cart-title h1{
    font-size: clamp(1.75rem, 1.4714rem + 1.1429vw, 2.5rem);
    font-family: "Cormorant", serif;
    font-weight: 600;
    margin: 0px;
}

.filled-cart-content{
    display: grid;
    grid-template-columns: 1.5fr 1fr ;
    gap: 2.5rem;
    min-width: 0;
}

/* Tablet + Mobile */
@media (max-width: 1024px) {
    .filled-cart-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.filled-cart-item {
    display: flex;
    flex-direction: column;
    border:1px solid #BDBDBD;
}

.top-grid > *,
.bottom-container > *,
.quantity-total-wrapper > * {
    min-width: 0;
}

.filled-cart-item .top-grid{

    display: grid;
    grid-template-columns: 2rem 1fr 2rem;
    align-items: center;
    gap: 16px;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left:1.25rem ;
    padding-right: 1.25rem;
    border-bottom: 1px solid #BDBDBD;

}

.filled-cart-item .top-grid .product-name-img .custom-product-img{

    height: 48px;
    width: 48px;
    object-fit: contain;
    object-position: center center;
    background-color:#BDBDBD ;
    
}

.filled-cart-item .top-grid button.product-delete-btn {
    height: 2rem;
    width: 2rem;
    color: #0B0B0B;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    padding: 8px;
    transition: all ease 0.3s;
}

.filled-cart-item .top-grid button.product-delete-btn:hover {
    background-color: #BDBDBD;
    border-radius: 50%;
}

.filled-cart-item .top-grid button.product-delete-btn svg{
    height: 100%;
    width: 100%;
}

.filled-cart-item .top-grid .product-name-img {
    display: flex;
    align-items: center;
    gap: 8px;
    text-wrap: wrap;
}

.filled-cart-item .top-grid .product-url{
    height: 2rem;
    width: 2rem;
    color: #0B0B0B;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 0px;
    transition: all ease 0.3s;
}



.filled-cart-item .top-grid .product-url:hover {
    background-color: #BDBDBD;
    border-radius: 50%;
}
.filled-cart-item .top-grid .product-url svg{
    height: 100%;
    width: 100%;
}

.filled-cart-item .bottom-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: clamp(1rem, calc(0.907rem + 0.381vw), 1.25rem);
    padding-bottom: clamp(1rem, calc(0.907rem + 0.381vw), 1.25rem);
    padding-left:1.25rem ;
    padding-right: 1.25rem;
}

.filled-cart-item .bottom-container .quantity-total-wrapper{
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filled-cart-item .bottom-container .quantity-total-wrapper input[type="number"] {
    display: flex;
    padding: 12px 8px;
    border: 1px solid #BDBDBD;
    outline: none;
    color: #0B0B0B;
    max-width: 4rem;
}

.custom-product-name,
.price-per-item
.total-item-price,
.filled-cart-item .bottom-container .quantity-total-wrapper input{
    font-family: "Cormorant", serif;
    font-weight: 500;
    font-size: clamp(1rem, 0.9536rem + 0.1905vw, 1.125rem);
}

/*THE SUMMARY*/

.filled-cart-items-summary {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filled-cart-items-summary .subtotal-wrapper{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-family: "Cormorant", serif;
    font-weight: 800;
    font-size: clamp(1rem, 0.9536rem + 0.1905vw, 1.125rem);
    padding-bottom: 8px;
    border-bottom: 1px solid #BDBDBD;
}

.black-btn {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 1rem !important;
    border: 1px solid #0B0B0B !important;
    background-color: #0B0B0B !important;
    color: #fff !important;
    cursor: pointer !important;
    font-family: "Cormorant", serif !important;
    font-size: clamp(0.875rem, 0.8286rem + 0.1905vw, 1rem) !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
    transition: all ease 0.3s !important;
	text-align:center !important;

}

.filled-cart-items-summary button.black-btn:hover{
    background-color: transparent !important;
    color: #0B0B0B !important;
}

.outline-btn {
    width: max-content !important;
    box-sizing: border-box !important;
    padding: 0.75rem 1rem !important;
    border: 1px solid #BDBDBD !important;
    background-color: transparent !important;
    color: #0B0B0B !important;
    cursor: pointer !important;
    font-family: "Inter", sans-serif !important;
    line-height: 1.6 !important;
    font-weight: 500 !important;
}

form.coupon-form {
    display: flex;
    width: 100%;
    gap: 0.75rem;
    align-items: end;
}

.input-wrapper,
.select-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.input-wrapper label,
.select-wrapper label{
    font-family: "Inter", sans-serif;
    font-size: clamp(0.875rem, 0.8518rem + 0.0952vw, 0.9375rem);
    color: #0B0B0B;
    font-weight: 400;
    opacity: 0.8;
}

.input-wrapper input,
.input-wrapper textarea,
.select-wrapper select{
    font-family: "Inter", sans-serif;
    font-size: clamp(0.875rem, 0.8286rem + 0.1905vw, 1rem) !important;
    color: #0B0B0B !important;
    font-weight: 400 !important;
    border: 1px solid #BDBDBD !important;
    background-color: transparent !important;
    padding: 0.75rem !important;
    line-height: 1.4 !important;
    outline: none !important;
}


/* Allow product text to wrap properly */
.custom-product-name {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Make image/text section shrink correctly */
.filled-cart-item .top-grid .product-name-img {
    min-width: 0;
}

/* Coupon form responsiveness */
form.coupon-form {
    flex-wrap: wrap;
}

.form-body {
    flex: 1;
    min-width: 0;
}

.input-wrapper input {
    width: 100%;
    box-sizing: border-box;
}

/* Prevent buttons from causing overflow */
.filled-cart-items-summary button.outline-btn {
    width: auto;
    max-width: 100%;
}

/* ── Custom Flow: Cart notice ───────────────────────────────────────────── */

#custom-flow-cart-notice {
    display: none;
    padding: 0.75rem 1rem;
    font-family: "Inter", sans-serif;
    font-size: clamp(0.875rem, 0.8286rem + 0.1905vw, 1rem);
    line-height: 1.5;
    border: 1px solid transparent;
}

#custom-flow-cart-notice.is-success {
    background-color: #f0faf0;
    border-color: #4caf50;
    color: #2e7d32;
}

#custom-flow-cart-notice.is-error {
    background-color: #fff5f5;
    border-color: #e53935;
    color: #c62828;
}

/* Coupon discount rows */
.coupon-discount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Cormorant", serif;
    font-weight: 600;
    font-size: clamp(1rem, 0.9536rem + 0.1905vw, 1.125rem);
    color: #2e7d32;
}

/* Disabled state during AJAX */
.cart-quantity-input:disabled,
.product-delete-btn:disabled,
#custom-flow-coupon-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Checkout: order summary table */
.checkout-items-summary .shop_table {
    font-family: "Cormorant", serif;
    font-size: clamp(1rem, 0.9536rem + 0.1905vw, 1.125rem);
    width: 100%;
    border-collapse: collapse;
}

.checkout-items-summary .shop_table th,
.checkout-items-summary .shop_table td {
    padding: 8px 0;
    border-bottom: 1px solid #BDBDBD;
    vertical-align: top;
}

.checkout-items-summary .shop_table td {
    text-align: right;
}

.checkout-items-summary .shop_table tfoot tr:last-child th,
.checkout-items-summary .shop_table tfoot tr:last-child td {
    font-weight: 800;
    border-bottom: none;
}

/* WC field overrides to match our input style */
.woocommerce-checkout .woocommerce-input-wrapper {
    width: 100%;
}

.woocommerce-checkout p.form-row {
    margin: 0;
    padding: 0;
}

.woocommerce-checkout .input-text,
.woocommerce-checkout select {
    font-family: "Inter", sans-serif;
    font-size: clamp(0.875rem, 0.8286rem + 0.1905vw, 1rem);
    color: #0B0B0B;
    font-weight: 400;
    border: 1px solid #BDBDBD;
    background-color: transparent;
    padding: 0.75rem;
    line-height: 1.4;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.woocommerce-checkout .input-text:focus,
.woocommerce-checkout select:focus {
    border-color: #0B0B0B;
}

.woocommerce-checkout label {
    font-family: "Inter", sans-serif;
    font-size: clamp(0.875rem, 0.8518rem + 0.0952vw, 0.9375rem);
    color: #0B0B0B;
    font-weight: 400;
    opacity: 0.8;
    display: block;
    margin-bottom: 4px;
}

.billing-details-fields .form-row,
.shipping-details-fields .form-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.billing-details-fields,
.shipping-details-fields {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Side-by-side first/last name */
.billing-details-fields .form-row-first,
.billing-details-fields .form-row-last,
.shipping-details-fields .form-row-first,
.shipping-details-fields .form-row-last {
    display: inline-flex;
    flex-direction: column;
    width: calc(50% - 6px);
    vertical-align: top;
}

.billing-details-fields .form-row-first,
.shipping-details-fields .form-row-first {
    margin-right: 12px;
}

@media (max-width: 768px) {
    .billing-details-fields .form-row-first,
    .billing-details-fields .form-row-last,
    .shipping-details-fields .form-row-first,
    .shipping-details-fields .form-row-last {
        width: 100%;
        margin-right: 0;
    }
}


nav.woocommerce-breadcrumb {
    display: none !important;
}