/* A&M Quick Kart — WordPress & WooCommerce elements in the design's style.
   Loaded on every page after the page's own stylesheet. */

/* ---------- Admin bar: keep sticky bars below it ---------- */
@media (min-width: 601px) {
  body.admin-bar .header { top: var(--wp-admin--admin-bar--height, 32px); }
  body.admin-bar .toolbar { top: calc(var(--hh, 0px) + var(--wp-admin--admin-bar--height, 32px)); }
}

/* ---------- Accessibility helpers used by WordPress and WooCommerce ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: static !important; width: auto; height: auto; clip: auto; }
[hidden] { display: none !important; }

/* ---------- Product cards: rating row keeps its height when there are no reviews yet ---------- */
.card .rating.is-empty { visibility: hidden; }

/* ---------- WooCommerce notices ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice, .wc-block-components-notice-banner {
  position: relative; list-style: none; margin: 0 0 16px; padding: 14px 16px 14px 46px;
  border-radius: 12px; border: 1px solid var(--line, #dce9f5); background: var(--primary-50, #eef6ff);
  color: var(--ink, #12365d); font-weight: 700; font-size: 14px; line-height: 1.5;
}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before {
  font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 16px; top: 14px; font-size: 16px;
}
.woocommerce-message::before { content: "\f058"; color: #0f8a5f; }
.woocommerce-message { background: #e9fbf0; border-color: #bfe9d0; }
.woocommerce-info::before { content: "\f05a"; color: var(--primary, #1269bc); }
.woocommerce-error { background: #fff1f1; border-color: #f6c9c9; color: #8a1c1c; }
.woocommerce-error::before { content: "\f071"; color: #d33; }
.woocommerce-error li { list-style: none; margin: 0; }
.woocommerce-error li + li { margin-top: 6px; }
.woocommerce-message .button, .woocommerce-info .button, .woocommerce-error .button { float: right; margin-left: 12px; }
.woocommerce-message a:not(.button), .woocommerce-info a:not(.button), .woocommerce-error a:not(.button) { color: inherit; text-decoration: underline; }

/* ---------- Generic WooCommerce buttons and form fields (pages the design did not cover) ---------- */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button, .woocommerce-page .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px;
  border: 0; border-radius: 7px; background: var(--primary, #1269bc); color: #fff; font: inherit; font-weight: 800;
  cursor: pointer; text-decoration: none; transition: background .2s;
}
.woocommerce .button:hover, .woocommerce-page .button:hover { background: var(--primary-600, #0b4f93); color: #fff; }
.woocommerce .button.alt { background: var(--ink, #12365d); }
.woocommerce .button:disabled, .woocommerce .button.disabled { opacity: .5; cursor: not-allowed; }
.woocommerce form .form-row { margin: 0 0 14px; padding: 0; }
.woocommerce form .form-row label { display: block; margin-bottom: 6px; font-weight: 800; font-size: 14px; color: var(--ink, #12365d); }
.woocommerce form .form-row .required { color: #d33; text-decoration: none; border: 0; }
.woocommerce form .form-row .optional { color: var(--muted, #5c7289); font-weight: 600; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text, .woocommerce-page form .form-row textarea, .woocommerce-page form .form-row select {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line, #dce9f5); border-radius: 7px;
  background: #fff; color: var(--ink, #12365d); font: inherit; font-size: 16px; box-sizing: border-box;
}
.woocommerce form .form-row textarea { min-height: 96px; resize: vertical; }
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus, .woocommerce form .form-row select:focus {
  outline: none; border-color: var(--primary, #1269bc); box-shadow: 0 0 0 3px rgba(18, 105, 188, .15);
}
.woocommerce form .form-row.woocommerce-invalid input.input-text, .woocommerce form .form-row.woocommerce-invalid select { border-color: #d33; }
.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100%; }
@media (min-width: 640px) {
  .woocommerce form .form-row-first, .woocommerce form .form-row-last { width: calc(50% - 8px); display: inline-block; vertical-align: top; }
  .woocommerce form .form-row-first { margin-right: 12px; }
}
.woocommerce form .form-row .woocommerce-input-wrapper { display: block; }
.woocommerce-password-strength { margin-top: 6px; font-size: 13px; font-weight: 700; }
.woocommerce-password-strength.short, .woocommerce-password-strength.bad { color: #d33; }
.woocommerce-password-strength.good { color: #b47b00; }
.woocommerce-password-strength.strong { color: #0f8a5f; }
.woocommerce-password-hint { display: block; margin-top: 6px; color: var(--muted, #5c7289); font-size: 13px; }

/* ---------- Order tables (order received, view order, emails preview) ---------- */
.woocommerce table.shop_table, .woocommerce-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line, #dce9f5); border-radius: 12px; overflow: hidden; font-size: 14px; margin: 0 0 20px; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td, .woocommerce-table th, .woocommerce-table td { padding: 12px 14px; border-bottom: 1px solid var(--line, #dce9f5); text-align: left; vertical-align: top; }
.woocommerce table.shop_table thead th, .woocommerce-table thead th { background: var(--soft, #f3f8fd); color: var(--ink, #12365d); font-weight: 800; }
.woocommerce table.shop_table tfoot th { color: var(--ink, #12365d); }
.woocommerce table.shop_table tr:last-child td, .woocommerce table.shop_table tr:last-child th { border-bottom: 0; }
.woocommerce .wc-item-meta { list-style: none; margin: 4px 0 0; padding: 0; color: var(--muted, #5c7289); font-size: 13px; }
.woocommerce .wc-item-meta li, .woocommerce .wc-item-meta p { display: inline; margin: 0; }
.woocommerce .wc-item-meta li + li::before { content: " · "; }
.woocommerce-customer-details address { font-style: normal; line-height: 1.6; padding: 14px 16px; border: 1px solid var(--line, #dce9f5); border-radius: 12px; }

/* ---------- Star ratings (WooCommerce markup) ---------- */
.star-rating { position: relative; display: inline-block; width: 5.4em; height: 1.1em; overflow: hidden; font-size: 14px; line-height: 1; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--sun, #ffc61a); }
.star-rating::before { content: "\f005\f005\f005\f005\f005"; color: #dbe5ef; position: absolute; top: 0; left: 0; letter-spacing: .1em; }
.star-rating span { position: absolute; top: 0; left: 0; overflow: hidden; padding-top: 1.5em; }
.star-rating span::before { content: "\f005\f005\f005\f005\f005"; position: absolute; top: 0; left: 0; letter-spacing: .1em; }

/* ---------- Content written in the WordPress editor ---------- */
.entry-content img, .wp-block-image img { max-width: 100%; height: auto; }
.alignleft { float: left; margin: 0 20px 12px 0; }
.alignright { float: right; margin: 0 0 12px 20px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, .wp-element-caption { color: var(--muted, #5c7289); font-size: 13px; }

/* ---------- Pagination (blog, search) ---------- */
.nav-links, .woocommerce-pagination ul { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; list-style: none; padding: 0; margin: 24px 0; }
.nav-links .page-numbers, .woocommerce-pagination .page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0 12px; border: 1.5px solid var(--line, #dce9f5); border-radius: 8px; font-weight: 800; color: var(--ink, #12365d); }
.nav-links .page-numbers.current, .woocommerce-pagination .page-numbers.current { background: var(--primary, #1269bc); border-color: var(--primary, #1269bc); color: #fff; }

/* ---------- Footer contact links keep the footer text colour ---------- */
.f-contact a { color: inherit; text-decoration: none; }
.f-contact a:hover { text-decoration: underline; }

/* ---------- WooCommerce "store notice" bar (if switched on) ---------- */
.woocommerce-store-notice, p.demo_store { position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; margin: 0; padding: 12px 16px; background: var(--ink, #12365d); color: #fff; text-align: center; font-weight: 700; }
.woocommerce-store-notice a { color: #fff; text-decoration: underline; }
