/* =====================================================================
   COZY.PK v2 — Cart, Checkout, Wishlist, Account / Login
   ===================================================================== */
.cz-cart-page, .cz-checkout-page, .cz-wish-page, .cz-account-page { background: #FCFAF7; padding: 22px 0 50px; }
.cz-page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin: 6px 0 24px; }
.cz-page-title { font-family: var(--cz-serif); font-size: clamp(32px, 3.6vw, 50px); font-weight: 600; color: var(--cz-ink); margin: 0 0 6px; line-height: 1.1; }
.cz-page-title small { font-size: .55em; font-weight: 500; color: var(--cz-text); }
.cz-page-sub { margin: 0; color: var(--cz-text); font-size: 15.5px; }
.cz-btn-soft { background: #EFE7DC; color: var(--cz-ink); border-radius: 999px; }
.cz-btn-soft:hover { background: #E4D9CA; color: var(--cz-ink); }

/* Shared WooCommerce bits */
.cz-wc .woocommerce-notices-wrapper:empty { display: none; }
.cz-wc .woocommerce-message, .cz-wc .woocommerce-info, .cz-wc .woocommerce-error { background: #fff; border: 1px solid var(--cz-line); border-left: 4px solid var(--cz-olive); border-radius: 8px; padding: 14px 18px; list-style: none; margin: 0 0 18px; font-size: 14px; }
.cz-wc .woocommerce-error { border-left-color: var(--cz-red); }
.cz-wc .button, .cz-wc button.button { background: var(--cz-olive); color: #fff; border: 0; border-radius: 6px; padding: 12px 20px; font-weight: 600; cursor: pointer; font-family: inherit; }
.cz-wc .button:hover { background: #1E261C; color: #fff; }
.cz-wc input.input-text, .cz-wc select, .cz-wc textarea { width: 100%; min-height: 46px; border: 1px solid var(--cz-line); border-radius: 6px; padding: 10px 14px; font-size: 14.5px; background: #fff; font-family: inherit; }
.cz-wc textarea { min-height: 90px; }
.cz-wc input.input-text:focus, .cz-wc select:focus, .cz-wc textarea:focus { outline: 2px solid var(--cz-orange); outline-offset: -1px; }
.cz-wc label { font-size: 13.5px; font-weight: 600; color: var(--cz-ink); display: block; margin-bottom: 6px; }
.cz-wc .required { color: var(--cz-red); text-decoration: none; }
.cz-wc .select2-container .select2-selection--single { height: 46px; border: 1px solid var(--cz-line); border-radius: 6px; }
.cz-wc .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 44px; padding-left: 14px; }
.cz-wc .select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; }

/* ---------- Cart ---------- */
.cz-cart-page .cz-wc > .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.cz-cart-page .cz-wc > .woocommerce > .woocommerce-notices-wrapper, .cz-cart-page .cz-wc > .woocommerce > .wc-empty-cart-message, .cz-cart-page .cz-wc > .woocommerce > .return-to-shop, .cz-cart-page .cz-wc > .woocommerce > .cart-empty { grid-column: 1 / -1; }
.cz-cart-page .woocommerce-cart-form { background: #fff; border: 1px solid var(--cz-line); border-radius: 12px; overflow: hidden; }
.cz-cart-page table.shop_table { width: 100%; border-collapse: collapse; }
.cz-cart-page table.shop_table thead th { background: #FBF8F4; font-size: 13.5px; font-weight: 600; color: var(--cz-ink); text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--cz-line); }
.cz-cart-page table.shop_table td { padding: 18px 16px; border-bottom: 1px solid var(--cz-line); vertical-align: middle; font-size: 14.5px; }
.cz-cart-page td.product-thumbnail img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; display: block; }
.cz-cart-page td.product-name a { font-weight: 600; color: var(--cz-ink); text-decoration: none; font-size: 15.5px; }
.cz-cart-page td.product-name dl.variation { margin: 6px 0 0; font-size: 13px; color: var(--cz-muted); display: grid; grid-template-columns: auto 1fr; gap: 2px 6px; }
.cz-cart-page td.product-name dl.variation dt, .cz-cart-page td.product-name dl.variation dd { margin: 0; }
.cz-cart-page td.product-name dl.variation p { margin: 0; }
.cz-cart-page td.product-price del { color: var(--cz-muted); font-size: 13px; }
.cz-cart-page td.product-subtotal { font-weight: 700; color: var(--cz-ink); }
.cz-cart-page td.product-remove a.remove { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; color: var(--cz-muted) !important; font-size: 22px; text-decoration: none; }
.cz-cart-page td.product-remove a.remove:hover { background: #FCE8E4; color: var(--cz-red) !important; }
.cz-cart-page .quantity .qty { width: 70px; min-height: 42px; text-align: center; border: 1px solid var(--cz-line); border-radius: 6px; font-weight: 600; }
.cz-cart-page td.actions { background: #FBF8F4; }
.cz-cart-page td.actions .coupon { display: inline-flex; gap: 8px; align-items: center; }
.cz-cart-page td.actions .coupon label { display: none; }
.cz-cart-page td.actions .coupon .input-text { width: 200px; min-height: 42px; }
.cz-cart-page td.actions > .button { float: right; background: transparent; color: var(--cz-ink); border: 1px solid var(--cz-line); }
.cz-cart-page .cart-collaterals { position: sticky; top: 100px; }
.cz-cart-page .cart-collaterals .cross-sells { display: none; }
.cz-cart-page .cart_totals { background: #fff; border: 1px solid var(--cz-line); border-radius: 12px; padding: 24px; }
.cz-cart-page .cart_totals h2 { font-family: var(--cz-serif); font-size: 26px; color: var(--cz-ink); margin: 0 0 12px; }
.cz-cart-page .cart_totals table th, .cz-cart-page .cart_totals table td { padding: 10px 0; border-bottom: 1px solid var(--cz-line); text-align: left; font-size: 14.5px; background: none; }
.cz-cart-page .cart_totals table td { text-align: right; }
.cz-cart-page .cart_totals .order-total th, .cz-cart-page .cart_totals .order-total td { border-bottom: 0; padding-top: 16px; font-family: var(--cz-serif); font-size: 22px; color: var(--cz-ink); }
.cz-cart-page .woocommerce-shipping-methods { list-style: none; margin: 0; padding: 0; text-align: right; }
.cz-cart-page .woocommerce-shipping-destination, .cz-cart-page .shipping-calculator-button { font-size: 12.5px; color: var(--cz-muted); }
.cz-cart-page .wc-proceed-to-checkout { padding-top: 12px; }
.cz-cart-page .wc-proceed-to-checkout .checkout-button { display: flex; align-items: center; justify-content: center; width: 100%; background: var(--cz-orange) !important; color: #fff !important; border-radius: 999px; padding: 16px; font-size: 17px; font-weight: 700; text-decoration: none; }
.cz-cart-page .wc-proceed-to-checkout .checkout-button:hover { background: var(--cz-orange-dark) !important; }
.cz-cart-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 16px; text-align: center; font-size: 11.5px; color: var(--cz-muted); }
.cz-cart-trust strong { display: block; color: var(--cz-ink); font-size: 12.5px; }
.cz-cart-page .cart-empty { font-family: var(--cz-serif); font-size: 22px; color: var(--cz-ink); background: #fff; }
.cz-cart-page .return-to-shop .button { background: var(--cz-orange); border-radius: 999px; padding: 14px 26px; }

.cz-cart-suggest { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0; margin-top: 30px; background: #F3ECE3; border-radius: 12px; overflow: hidden; }
.cz-cart-suggest-main { padding: 26px; }
.cz-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cz-cart-look { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 8px; padding: 36px 30px; background-size: cover; background-position: center bottom; text-decoration: none; min-height: 360px; }
.cz-cart-look h2 { font-family: var(--cz-serif); font-size: 40px; line-height: 1.05; color: var(--cz-ink); margin: 0; }
.cz-cart-look p { margin: 0 0 8px; color: var(--cz-text); max-width: 240px; }

@media (max-width: 1100px) {
    .cz-cart-page .cz-wc > .woocommerce { grid-template-columns: 1fr; }
    .cz-cart-page .cart-collaterals { position: static; }
    .cz-cart-suggest { grid-template-columns: 1fr; }
    .cz-cart-look { min-height: 240px; }
}
@media (max-width: 768px) {
    .cz-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cz-cart-page table.shop_table thead { display: none; }
    .cz-cart-page table.shop_table tr.cart_item { display: grid; grid-template-columns: 96px 1fr auto; grid-template-areas: "thumb name remove" "thumb price price" "thumb qty total"; gap: 4px 12px; padding: 14px; border-bottom: 1px solid var(--cz-line); }
    .cz-cart-page table.shop_table tr.cart_item td { padding: 0; border: 0; display: block; }
    .cz-cart-page tr.cart_item td::before { display: none; }
    .cz-cart-page td.product-thumbnail { grid-area: thumb; }
    .cz-cart-page td.product-thumbnail img { width: 96px; height: 80px; }
    .cz-cart-page td.product-name { grid-area: name; }
    .cz-cart-page td.product-remove { grid-area: remove; }
    .cz-cart-page td.product-price { grid-area: price; font-size: 13px; }
    .cz-cart-page td.product-quantity { grid-area: qty; }
    .cz-cart-page td.product-subtotal { grid-area: total; align-self: center; }
    .cz-cart-page td.actions { display: block; padding: 14px !important; }
    .cz-cart-page td.actions .coupon { display: flex; width: 100%; margin-bottom: 10px; }
    .cz-cart-page td.actions .coupon .input-text { flex: 1; width: auto; }
    .cz-cart-page td.actions > .button { float: none; width: 100%; }
}

/* ---------- Checkout ---------- */
.cz-checkout-head { align-items: center; }
.cz-steps { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.cz-steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; color: var(--cz-muted); width: 110px; position: relative; }
.cz-steps li span { width: 30px; height: 30px; border-radius: 50%; background: #D9D3C9; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; position: relative; z-index: 1; }
.cz-steps li + li::before { content: ""; position: absolute; top: 15px; right: 50%; width: 100%; height: 2px; background: #D9D3C9; }
.cz-steps li.is-done span, .cz-steps li.is-active span { background: var(--cz-orange); }
.cz-steps li.is-active, .cz-steps li.is-done { color: var(--cz-ink); font-weight: 600; }
.cz-steps li.is-active::before, .cz-steps li.is-done::before { background: var(--cz-orange); }
.cz-checkout-page form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 24px; align-items: start; }
.cz-checkout-page #customer_details { grid-column: 1; grid-row: 1 / span 3; display: flex; flex-direction: column; gap: 20px; }
.cz-checkout-page #customer_details .col-1, .cz-checkout-page #customer_details .col-2 { width: 100%; float: none; background: #fff; border: 1px solid var(--cz-line); border-radius: 12px; padding: 24px; }
.cz-checkout-page #customer_details h3, .cz-checkout-page #order_review_heading { font-family: var(--cz-serif); font-size: 24px; color: var(--cz-ink); margin: 0 0 16px; }
.cz-checkout-page #order_review_heading { grid-column: 2; grid-row: 1; background: #fff; border: 1px solid var(--cz-line); border-bottom: 0; border-radius: 12px 12px 0 0; padding: 22px 24px 0; margin: 0; }
.cz-checkout-page #order_review { grid-column: 2; grid-row: 2; background: #fff; border: 1px solid var(--cz-line); border-top: 0; border-radius: 0 0 12px 12px; padding: 12px 24px 24px; position: sticky; top: 100px; }
.cz-checkout-page .woocommerce-billing-fields__field-wrapper, .cz-checkout-page .woocommerce-shipping-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.cz-checkout-page .form-row { margin: 0 0 14px; padding: 0; width: auto !important; float: none !important; }
.cz-checkout-page .form-row-wide, .cz-checkout-page #billing_address_1_field, .cz-checkout-page #shipping_address_1_field { grid-column: 1 / -1; }
.cz-checkout-page #ship-to-different-address { font-family: var(--cz-sans); font-size: 15px; }
.cz-checkout-page .woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cz-checkout-page .woocommerce-checkout-review-order-table th, .cz-checkout-page .woocommerce-checkout-review-order-table td { padding: 11px 0; border-bottom: 1px solid var(--cz-line); text-align: left; background: none; }
.cz-checkout-page .woocommerce-checkout-review-order-table td:last-child, .cz-checkout-page .woocommerce-checkout-review-order-table tfoot td { text-align: right; }
.cz-checkout-page .woocommerce-checkout-review-order-table .order-total th, .cz-checkout-page .woocommerce-checkout-review-order-table .order-total td { font-family: var(--cz-serif); font-size: 22px; color: var(--cz-ink); border-bottom: 0; padding-top: 16px; }
.cz-checkout-page .woocommerce-checkout-review-order-table .product-name { color: var(--cz-ink); }
.cz-checkout-page dl.variation { margin: 4px 0 0; font-size: 12.5px; color: var(--cz-muted); }
.cz-checkout-page dl.variation dt, .cz-checkout-page dl.variation dd, .cz-checkout-page dl.variation p { display: inline; margin: 0; }
.cz-checkout-page #shipping_method { list-style: none; margin: 0; padding: 0; }
.cz-checkout-page #payment { background: #FBF8F4; border-radius: 10px; padding: 16px; margin-top: 16px; }
.cz-checkout-page #payment ul.payment_methods { list-style: none; margin: 0 0 12px; padding: 0; }
.cz-checkout-page #payment ul.payment_methods li { background: #fff; border: 1.5px solid var(--cz-orange); border-radius: 8px; padding: 12px 14px; font-weight: 600; }
.cz-checkout-page #payment .payment_box { font-size: 13px; color: var(--cz-muted); font-weight: 400; margin-top: 6px; }
.cz-checkout-page #place_order { width: 100%; background: var(--cz-orange) !important; color: #fff !important; border-radius: 999px; padding: 17px; font-size: 17px; font-weight: 700; margin-top: 8px; }
.cz-checkout-page #place_order:hover { background: var(--cz-orange-dark) !important; }
.cz-checkout-page .woocommerce-terms-and-conditions-wrapper, .cz-checkout-page .woocommerce-privacy-policy-text { font-size: 12.5px; color: var(--cz-muted); }
.cz-checkout-page .woocommerce-form-coupon-toggle .woocommerce-info { margin-bottom: 12px; }
.cz-checkout-help { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--cz-line); border-radius: 12px; padding: 18px 22px; margin-top: 24px; flex-wrap: wrap; }
.cz-checkout-help strong { display: block; font-family: var(--cz-serif); font-size: 20px; color: var(--cz-ink); }
.cz-checkout-help span { color: var(--cz-muted); font-size: 14px; }
.cz-checkout-page .woocommerce-order { background: #fff; border: 1px solid var(--cz-line); border-radius: 12px; padding: 24px; }
@media (max-width: 1100px) {
    .cz-checkout-page form.checkout { grid-template-columns: 1fr; }
    .cz-checkout-page #customer_details, .cz-checkout-page #order_review_heading, .cz-checkout-page #order_review { grid-column: 1; grid-row: auto; position: static; }
    .cz-steps { order: 3; width: 100%; justify-content: center; }
}
@media (max-width: 560px) {
    .cz-checkout-page .woocommerce-billing-fields__field-wrapper, .cz-checkout-page .woocommerce-shipping-fields__field-wrapper { grid-template-columns: 1fr; }
    .cz-steps li { width: 76px; font-size: 11.5px; }
    .cz-checkout-page #customer_details .col-1, .cz-checkout-page #customer_details .col-2 { padding: 18px; }
}

/* ---------- Wishlist ---------- */
.cz-wish-hero { position: relative; background-color: var(--cz-cream); background-size: cover; background-position: center right; padding: 22px 0 40px; margin: -22px 0 26px; }
.cz-wish-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247, 240, 231, .98) 0%, rgba(247, 240, 231, .92) 40%, rgba(247, 240, 231, .3) 70%, rgba(247, 240, 231, 0) 100%); }
.cz-wish-hero .cozy-container { position: relative; }
.cz-wish-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.cz-wish-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cz-wish-empty { background: #fff; border: 1px solid var(--cz-line); border-radius: 12px; padding: 40px; text-align: center; }
.cz-wish-empty h2 { font-family: var(--cz-serif); color: var(--cz-ink); }
.cz-wish .cz-card-heart { color: var(--cz-red); }
.cz-wish .cz-card-heart svg { fill: var(--cz-red); }
@media (max-width: 1100px) { .cz-wish-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .cz-wish-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ---------- Login / Register ---------- */
.cz-auth { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--cz-line); margin-top: 10px; }
.cz-auth-side { position: relative; background-size: cover; background-position: center; color: #fff; padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; min-height: 620px; }
.cz-auth-side::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40, 30, 20, .55), rgba(40, 30, 20, .78)); }
.cz-auth-side > * { position: relative; }
.cz-auth-side h1, .cz-auth-side h2 { font-family: var(--cz-serif); font-size: clamp(38px, 4vw, 56px); line-height: 1.02; margin: 0 0 14px; color: #fff; }
.cz-auth-side > p { font-size: 17px; line-height: 1.5; margin: 0 0 28px; max-width: 400px; color: #fff; }
.cz-auth-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.cz-auth-perks li { display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: center; }
.cz-auth-perks i { width: 54px; height: 54px; border-radius: 50%; background: #fff; color: var(--cz-ink); display: flex; align-items: center; justify-content: center; font-style: normal; }
.cz-auth-perks strong { display: block; font-size: 16px; }
.cz-auth-perks span { font-size: 14px; opacity: .9; }
.cz-auth-main { padding: 40px 44px; }
.cz-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--cz-line); margin-bottom: 28px; }
.cz-auth-tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 14px; font: 500 17px var(--cz-sans); color: var(--cz-muted); cursor: pointer; }
.cz-auth-tab.is-active { color: var(--cz-ink); font-weight: 700; border-bottom-color: var(--cz-orange); }
.cz-auth-panel[hidden] { display: none; }
.cz-auth-panel h3 { font-family: var(--cz-serif); font-size: 34px; color: var(--cz-ink); margin: 0 0 6px; }
.cz-auth-panel > p { color: var(--cz-muted); margin: 0 0 22px; }
.cz-auth .woocommerce-form-row { margin-bottom: 16px; }
.cz-auth .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.cz-auth .lost_password { float: right; margin-top: -34px; font-size: 14px; }
.cz-auth .lost_password a, .cz-auth-switch a { color: var(--cz-orange); }
.cz-auth button.button { width: 100%; background: var(--cz-orange); border-radius: 999px; padding: 16px; font-size: 17px; font-weight: 700; margin-top: 10px; }
.cz-auth button.button:hover { background: var(--cz-orange-dark); }
.cz-auth-switch { text-align: center; margin-top: 18px; font-size: 14.5px; }
.cz-auth-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border-top: 1px solid var(--cz-line); margin-top: 26px; padding-top: 22px; text-align: center; font-size: 12.5px; color: var(--cz-muted); }
.cz-auth-benefits strong { display: block; font-size: 14px; color: var(--cz-ink); margin: 6px 0 2px; }
@media (max-width: 900px) {
    .cz-auth { grid-template-columns: 1fr; }
    .cz-auth-side { min-height: 0; padding: 36px 24px; }
    .cz-auth-main { padding: 28px 20px; }
}

/* WooCommerce default widths/floats off */
.cz-cart-page .cart-collaterals, .cz-cart-page .cart-collaterals .cart_totals { width: 100% !important; float: none !important; }
.cz-cart-page .woocommerce-cart-form, .cz-cart-page table.shop_table { width: 100% !important; margin: 0 !important; }
.cz-cart-page td.actions .coupon .input-text { min-width: 200px; }
.cz-cart-page .cart_totals table { width: 100%; }
.cz-cart-page .cart_totals table th { width: 45%; font-weight: 500; color: var(--cz-text); }
.cz-cart-page .woocommerce-message .button { background: #EFE7DC; color: var(--cz-ink); float: right; padding: 6px 12px; font-size: 13px; }
