/* ------------------------------------------------------------------ */
/*  LUSO KITCHEN — WOOCOMMERCE STYLESHEET (SHARED + CLASSIC TEMPLATES)  */
/*  Loaded only on WooCommerce pages (see functions.php). Depends on    */
/*  base.css — its design tokens and global styles are assumed.        */
/*                                                                     */
/*  Sections                                                           */
/*  ---------                                                          */
/*  11. Buttons, badges and notices (shared by classic and block pages) */
/*  12. Classic templates (shop, product, cart/checkout/account when   */
/*      rendered by WooCommerce's PHP templates)                       */
/*                                                                     */
/*  Cascade policy: same as base.css — specificity wins, never file     */
/*  order. No !important in this file.                                 */
/* ------------------------------------------------------------------ */


/* ================================================================== */
/* 11. WOOCOMMERCE — BUTTONS, BADGES AND NOTICES                        */
/*  Elements that behave identically on classic and block pages.       */
/* ================================================================== */

/* 11.1 Buttons                                                         */
/* WooCommerce ships its own `.woocommerce a.button` styles at equal   */
/* or higher specificity than the global `.button` rule in base.css     */
/* (section 4), so the pill style must be re-asserted inside the       */
/* WooCommerce scope to keep buttons identical everywhere.              */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background-color: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 600;
  transition: background-color .2s;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
}

/* 11.2 Disabled and loading button states                              */
.woocommerce a.button:disabled,
.woocommerce button.button:disabled,
.woocommerce input.button:disabled,
.woocommerce a.button.disabled {
  background-color: var(--contrast-3);
  color: var(--contrast-2);
  cursor: not-allowed;
  transform: none;
}

.woocommerce a.button.loading::after,
.woocommerce button.button.loading::after,
.woocommerce input.button.loading::after {
  margin-left: 8px;
}

/* 11.3 Badges and ratings                                              */
.woocommerce .star-rating span {
  color: var(--accent);
}

.woocommerce .onsale {
  background-color: var(--accent);
  border-radius: 999px;
}

/* 11.4 Notices (success / info / error messages, classic templates)     */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background: #ffffff;
  border: 1px solid var(--contrast-3);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--contrast);
  margin: 0 0 24px;
}

.woocommerce-error {
  border-left-color: var(--danger);
}

.woocommerce-info {
  border-left-color: var(--contrast-2);
}

/* Remove the glyph icon: WooCommerce renders it in ::before, absolutely  */
/* positioned in the space its own asymmetric left padding reserved.     */
/* Our flat notice design uses uniform padding, which put the icon under */
/* the text. The colored left border already carries the meaning.         */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
  display: none;
}

/* Breathing room for the inline action button after the notice text      */
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
  margin-left: 12px;
}


/* ================================================================== */
/* 12. WOOCOMMERCE — CLASSIC TEMPLATES                                  */
/*  Pages rendered by WooCommerce's PHP templates: shop, product,       */
/*  cart/checkout/account when they use shortcodes, order pages...     */
/* ================================================================== */

/* 12.1 Shop page — center title, price and buttons under each image    */
.woocommerce ul.products li.product,
ul.products li.product,
.wc-block-grid__products .wc-block-grid__product {
  text-align: center;
}

/* 12.2 My Account — vertical menu, all items equal width               */
.woocommerce-MyAccount-navigation ul {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  min-width: 180px;
  max-width: 220px;
}

.woocommerce-MyAccount-navigation li {
  width: 100%;
}

.woocommerce-MyAccount-navigation li a {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--base);
  color: var(--contrast);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}

.woocommerce-MyAccount-navigation li a:hover {
  background: var(--contrast-3);
}

.woocommerce-MyAccount-navigation li.is-active a {
  background: var(--accent);
  color: #ffffff;
}

.woocommerce-MyAccount-content p,
.woocommerce-MyAccount-content table {
  margin-top: 0;
}

.woocommerce table.my_account_orders {
  border-collapse: collapse;
}

/* 12.3 Tables (cart, order review, orders list)                        */
.woocommerce table.shop_table,
.woocommerce table.shop_table_responsive,
.woocommerce table.my_account_orders {
  border: 1px solid var(--contrast-3);
  border-radius: 10px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: #ffffff;
}

.woocommerce table.shop_table th,
.woocommerce table.my_account_orders th {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--contrast-2);
  border-bottom: 1px solid var(--contrast-3);
}

.woocommerce table.shop_table td,
.woocommerce table.my_account_orders td {
  padding: 16px;
  border-top: 1px solid var(--contrast-3);
}

.woocommerce table.shop_table tbody tr:first-child td,
.woocommerce table.shop_table tbody tr:first-child th {
  border-top: none;
}

.woocommerce table.shop_table .order-total .woocommerce-Price-amount {
  font-weight: 600;
}

/* 12.4 Classic forms (login, address, coupon)                           */
.woocommerce form .form-row label {
  font-size: 14px;
  font-weight: 500;
  color: var(--contrast);
  margin-bottom: 6px;
}

.woocommerce form .form-row label .required {
  color: var(--danger);
}

/* WooCommerce core styles its form-row inputs at (0,3,2) —               */
/* `.woocommerce form .form-row input.input-text` — which out-ranks the    */
/* global form rule in base.css (section 5). Adding the p element raises   */
/* our rule to (0,3,3), so we win by specificity, never by load order.    */
/* All WooCommerce core templates mark rows as p.form-row.                 */
.woocommerce form p.form-row input.input-text,
.woocommerce form p.form-row textarea,
.woocommerce form p.form-row select {
  width: 100%;
  padding: 12px 20px;
  font-size: 15px;
  font-family: inherit;
  color: var(--contrast);
  background-color: #ffffff;
  border: 1px solid var(--contrast-3);
  border-radius: 10px;
  outline: none;
  box-shadow: none;
  transition: border-color .2s, box-shadow .2s;
}

.woocommerce form p.form-row input.input-text:focus,
.woocommerce form p.form-row textarea:focus,
.woocommerce form p.form-row select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}

.woocommerce .coupon .input-text {
  border-radius: 999px;
  padding: 10px 18px;
  margin-right: 8px;
}

/* 12.5 Classic checkout                                                 */
#customer_details h3,
#order_review_heading {
  font-size: 22px;
}

.wc_payment_methods,
.about_paypal {
  list-style: none;
  padding: 0;
}

.woocommerce-checkout-payment ul.wc_payment_methods li label {
  font-weight: 600;
}

.payment_box {
  background: var(--base);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--contrast-2);
  margin: 10px 0;
}

#place_order {
  width: 100%;
  padding: 16px 28px;
  font-size: 16px;
  margin-top: 16px;
}

/* 12.6 Single product page                                              */
.woocommerce div.product p.price {
  color: var(--contrast);
  font-size: 22px;
}

.woocommerce div.product p.price ins {
  text-decoration: none;
  color: var(--accent);
}

.woocommerce div.product p.price del {
  color: var(--contrast-2);
  opacity: 1;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  color: var(--contrast-2);
}

/* Product tabs — a segmented control: one discreet border forming the
   tab strip, the active segment tinted, real padding around the labels.
   WooCommerce paints its own white box and slanted pseudo-element
   graphics onto the active tab at higher specificity (li.active) —
   both are neutralized below or they show behind the label. */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--contrast-3);
  border-radius: 10px;
  background: #ffffff;
  list-style: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
  display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent;
  border: none;
  border-radius: 0;
  margin: 0;
  padding: 0;
  box-shadow: none;
}

/* Neutralizes WooCommerce's own active-tab styling (white box). Same
   specificity as its `.active` rule; ours loads after, so it wins. */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active::after {
  display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--contrast-2);
  text-decoration: none;
  transition: color .2s, background-color .2s;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--contrast);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  background: var(--base);
  color: var(--contrast);
}

/* 12.7 Pagination — pills                                               */
.woocommerce nav.woocommerce-pagination {
  text-align: center;
}

.woocommerce nav.woocommerce-pagination ul {
  border: none;
}

.woocommerce nav.woocommerce-pagination ul li {
  border: none;
  margin: 0 4px;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--contrast-3);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--contrast);
  text-decoration: none;
  transition: border-color .2s, color .2s, background-color .2s;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* 12.8 Secondary text — breadcrumb, result count, rating link           */
.woocommerce .woocommerce-breadcrumb {
  font-size: 13px;
  color: var(--contrast-2);
}

.woocommerce .woocommerce-breadcrumb a {
  color: var(--contrast-2);
}

.woocommerce .woocommerce-breadcrumb a:hover {
  color: var(--accent);
}

.woocommerce .woocommerce-result-count {
  font-size: 14px;
  color: var(--contrast-2);
}

.woocommerce .woocommerce-review-link {
  font-size: 13px;
  color: var(--contrast-2);
}

/* 12.9 Quantity inputs — classic templates (cart, product page)         */
.woocommerce .quantity .qty,
.woocommerce .quantity input[type="number"] {
  width: 4.5em;
  padding-left: 8px;
  padding-right: 8px;
  text-align: center;
}

/* 12.10 Block pages — keep cart/checkout inside the page padding on       */
/* mobile. The blocks carry the alignwide class; GeneratePress applies   */
/* negative margins equal to the page padding, which cancels it and     */
/* pushes the blocks edge-to-edge on small screens. Neutralize only on   */
/* mobile — the desktop appearance is intentional and stays as is.       */
/* Specificity (0,3,0) beats GeneratePress's `.entry-content .alignwide` */
/* (0,2,0) by rule, not by load order.                                   */
@media (max-width: 768px) {
  .entry-content .wp-block-woocommerce-cart.alignwide,
  .entry-content .wp-block-woocommerce-checkout.alignwide {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
  }
}
