/* ==========================================================================
   Bijal KingMaker – WooCommerce skin
   Replaces WooCommerce's general stylesheet (dequeued in inc/woocommerce.php).
   Copyright (c) 2026 Bizomatic Solutions Pvt Ltd. Developed by Ali Akbar Hamid.
   ========================================================================== */

/* ---------- Buttons ---------- */
.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.single_add_to_cart_button,
.wc-block-components-button:not(.is-link):not(.wc-block-components-panel__button) {
  font-family: var(--f-body); font-weight: 900; font-size: 16px; line-height: 1.1;
  background: var(--green); color: var(--ink); border: var(--line); border-radius: 999px;
  padding: 14px 24px; min-height: 50px; box-shadow: var(--shadow-sm); cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.single_add_to_cart_button:hover,
.wc-block-components-button:not(.is-link):not(.wc-block-components-panel__button):hover {
  background: var(--green); color: var(--ink); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink);
}
/* Primary money buttons in ink */
#place_order,
.woocommerce a.checkout-button,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
  background: var(--ink) !important; color: var(--paper) !important; box-shadow: 3px 3px 0 var(--green-ink) !important;
}
#place_order:hover,
.woocommerce a.checkout-button:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover { box-shadow: 5px 5px 0 var(--green-ink) !important; }
.woocommerce .button:disabled, .single_add_to_cart_button.disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Product buy box ---------- */
.woocommerce div.product div.summary,
.woocommerce-page div.product div.summary { float: none; width: auto; clear: none; margin: 0; }
.woocommerce div.product form.cart,
form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 8px 0 4px; }
.woocommerce div.product form.cart div.quantity,
form.cart .quantity { float: none; margin: 0; }
.woocommerce div.product form.cart .button { float: none; }
.quantity .qty,
.woocommerce .quantity input.qty {
  width: 78px; min-height: 50px; text-align: center; font: inherit; font-weight: 800; font-size: 17px;
  border: 2px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink);
}
.quantity .qty:focus { outline: none; box-shadow: 0 0 0 4px var(--green); }
.summary .price { line-height: 1; margin: 6px 0 10px; }
.summary .price .amount, .summary .price ins { font-family: var(--f-display); font-size: 46px; text-decoration: none; color: var(--ink); }
.summary .price del { opacity: .55; margin-right: 10px; }
.summary .price del .amount { font-size: 26px; }
.stock { font-weight: 800; margin: 0 0 8px; }
.stock.out-of-stock { color: #b42318; }
.single-product .woocommerce-notices-wrapper:not(:empty) { max-width: var(--wrap); margin: 24px auto 0; padding: 0 var(--gutter); }

/* ---------- Notices ---------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
  list-style: none; margin: 0 0 20px; padding: 14px 18px; border: var(--line) !important; border-radius: var(--r-sm) !important;
  background: var(--green-soft) !important; color: var(--ink) !important; box-shadow: var(--shadow-sm); font-weight: 700;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
}
.woocommerce-error, .wc-block-components-notice-banner.is-error { background: #fff1f0 !important; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; padding: 8px 16px; min-height: 40px; font-size: 14px; }
.woocommerce-error li { margin: 0; }

/* ---------- Classic forms (account, classic checkout) ---------- */
.woocommerce form .form-row { margin: 0 0 14px; }
.woocommerce form .form-row label { display: block; font-weight: 800; font-size: 15px; margin-bottom: 6px; }
.woocommerce form .input-text,
.woocommerce form select,
.woocommerce form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 2px solid var(--ink); border-radius: 12px; padding: 12px 14px; min-height: 48px;
}
.woocommerce form .input-text:focus,
.woocommerce form select:focus,
.woocommerce form textarea:focus { outline: none; box-shadow: 0 0 0 4px var(--green); }
.woocommerce form.login, .woocommerce form.register, .woocommerce form.lost_reset_password {
  background: var(--paper); border: var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 28px; max-width: 520px;
}

/* ---------- Blocks: cart & checkout ---------- */
.wc-block-components-text-input input,
.wc-block-components-textarea,
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
  border: 2px solid var(--ink) !important; border-radius: 12px !important; background: #fff !important; color: var(--ink) !important;
}
.wc-block-components-text-input input:focus,
.wc-block-components-textarea:focus,
.wc-blocks-components-select .wc-blocks-components-select__select:focus {
  box-shadow: 0 0 0 3px var(--green) !important; outline: none !important;
}
.wc-block-components-checkout-step__title,
.wc-block-cart__totals-title { font-family: var(--f-body) !important; font-weight: 900 !important; text-transform: none !important; letter-spacing: 0 !important; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-weight: 900; }
.wc-block-components-sidebar .wc-block-components-panel,
.wp-block-woocommerce-checkout-order-summary-block,
.wp-block-woocommerce-cart-order-summary-block {
  border-radius: var(--r-sm);
}
.wc-block-components-product-name { font-weight: 800; color: var(--ink); }
.wc-block-components-radio-control__option-checked, .wc-block-components-radio-control-accordion-option--checked-option-highlighted { box-shadow: inset 0 0 0 2px var(--ink) !important; border-radius: 12px; }

/* ---------- Tables (order details, classic cart) ---------- */
.woocommerce table.shop_table { width: 100%; border-collapse: separate; border-spacing: 0; border: var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--paper); }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 12px 14px; border-bottom: 1.5px solid var(--paper-2); text-align: left; }
.woocommerce table.shop_table tr:last-child td, .woocommerce table.shop_table tr:last-child th { border-bottom: 0; }

/* ---------- My account ---------- */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content { float: none; width: auto; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.woocommerce-MyAccount-navigation a { display: inline-block; padding: 8px 16px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 800; color: var(--ink); text-decoration: none; background: var(--paper); }
.woocommerce-MyAccount-navigation .is-active a, .woocommerce-MyAccount-navigation a:hover { background: var(--green); color: var(--ink); }

/* ---------- Shop archive (only shown once there is more than one product) ---------- */
.woocommerce ul.products { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { float: none; width: auto; margin: 0; padding: 18px; background: var(--paper); border: var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.woocommerce ul.products li.product a img { border-radius: 8px; margin-bottom: 12px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 19px; font-weight: 900; }
