/* PieMy UI audit, 2026-10-08. Keep the existing bakery palette and controls. */
body.piemy-site:not(.modal-open):not(.piemy-menu-open):not(.pf-kitchens-open):not([data-cart-open]) {
  overflow-x: clip !important;
  overflow-y: visible !important;
}

/* Catalog: no filter rail, no empty column, keep native sorting. */
body.piemy-site #product-category .pf-category-layout.piemy-no-sidebar {
  display: block !important;
  width: calc(100% - 48px) !important;
  max-width: 1220px !important;
  padding-top: 25px !important;
}
body.piemy-site #product-category .pf-category-layout > #content {
  float: none !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.piemy-site #product-category .pf-category-tools {
  display: flex !important;
  align-items: center;
  justify-content: flex-end !important;
  min-height: 52px;
  margin: 0 0 22px !important;
}
body.piemy-site #product-category .pf-product-grid {
  width: 100% !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
body.piemy-site #product-category .pf-product-section {min-width:0}
body.piemy-site #product-product #buy-container .button--heart {display:none !important}
body.piemy-site #product-product #buy-container #button-cart {width:100% !important}

/* Account: Lobster's unified flow, PieMy colors and spacing. */
body.piemy-site .piemy-shell {
  width: calc(100% - 48px);
  max-width: 1120px;
  margin: 0 auto;
}
body.piemy-site .piemy-account-hero {
  padding: 44px 0;
  border-bottom: 1px solid var(--pm-line);
  background: var(--pm-light);
  color: var(--pm-ink);
}
body.piemy-site .piemy-eyebrow {
  margin: 0 0 10px;
  color: var(--pm-deep);
  font: 600 13px/1.3 PiemyCommons, Arial, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}
body.piemy-site .piemy-account-hero h1 {
  margin: 0;
  color: var(--pm-ink);
  font: 400 clamp(32px, 4vw, 52px)/1.1 PiemyBlacker, Georgia, serif;
}
body.piemy-site .piemy-account-hero p:last-child {
  max-width: 610px;
  margin: 12px 0 0;
  color: var(--pm-muted);
  font-size: 17px;
}
body.piemy-site .piemy-auth__content {padding-top:35px;padding-bottom:70px}
body.piemy-site .piemy-auth--unified .piemy-auth__content {max-width:680px}
body.piemy-site .piemy-auth__card {
  max-width:680px;
  margin:0 auto;
  padding:32px;
  border:1px solid var(--pm-line);
  border-radius:22px;
  background:#fff;
  box-shadow:0 10px 32px rgba(37,51,47,.05);
}
body.piemy-site .piemy-auth__card h2,
body.piemy-site .piemy-account-card__head h2 {
  margin:0 0 22px;
  color:var(--pm-ink);
  font:400 clamp(26px,3vw,37px)/1.15 PiemyBlacker, Georgia, serif;
}
body.piemy-site .piemy-auth__card label {
  display:block;
  margin:0 0 6px;
  color:var(--pm-ink);
  font:500 15px PiemyCommons, Arial, sans-serif;
}
body.piemy-site .piemy-auth__card .form-group {margin-bottom:17px}
body.piemy-site .piemy-auth__card .form-control,
body.piemy-site.pf-account-redesign .form-control {
  width:100%;
  min-height:48px !important;
  padding:11px 15px !important;
  border:1px solid var(--pm-line) !important;
  border-radius:12px !important;
  background:#fff !important;
  color:var(--pm-ink) !important;
  box-shadow:none !important;
}
body.piemy-site .piemy-auth__card .form-control:focus,
body.piemy-site.pf-account-redesign .form-control:focus {
  border-color:var(--pm-brand) !important;
  box-shadow:0 0 0 3px rgba(86,195,189,.18) !important;
}
body.piemy-site .piemy-auth__actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:16px;
  margin-top:23px;
}
body.piemy-site .piemy-auth__forgotten {color:var(--pm-deep);font-size:15px}
body.piemy-site .piemy-button,
body.piemy-site .piemy-auth__card .piemy-button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  min-height:48px;
  padding:11px 23px;
  border:1px solid var(--pm-brand);
  border-radius:30px;
  background:var(--pm-brand);
  color:#183c38;
  font:600 16px PiemyCommons, Arial, sans-serif;
  cursor:pointer;
}
body.piemy-site .piemy-button--soft {border-color:var(--pm-line);background:var(--pm-light)}
body.piemy-site .piemy-auth__hint {margin:18px 0 0;color:var(--pm-muted);font-size:14px;line-height:1.5}
body.piemy-site.piemy-dialog-open {overflow:hidden !important}
body.piemy-site .piemy-register-dialog[hidden] {display:none !important}
body.piemy-site .piemy-register-dialog {position:fixed;inset:0;z-index:10050;display:grid;place-items:center;padding:16px}
body.piemy-site .piemy-register-dialog__backdrop {position:absolute;inset:0;background:rgba(18,45,42,.58)}
body.piemy-site .piemy-register-dialog__panel {
  position:relative;z-index:1;width:min(100%,510px);padding:30px;
  border:1px solid var(--pm-line);border-radius:22px;background:#fff;
  box-shadow:0 20px 70px rgba(37,51,47,.18);
}
body.piemy-site .piemy-register-dialog__panel h2 {margin:0 30px 12px 0;font:400 32px/1.1 PiemyBlacker,Georgia,serif}
body.piemy-site .piemy-register-dialog__panel > p:not(.piemy-eyebrow) {color:var(--pm-muted);font-size:15px;overflow-wrap:anywhere}
body.piemy-site .piemy-register-dialog__close {position:absolute;right:16px;top:12px;border:0;background:transparent;color:var(--pm-ink);font-size:28px}
body.piemy-site .piemy-register-dialog__actions {display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
body.piemy-site .piemy-register-dialog__actions button {flex:1 1 150px}

/* Existing order, password and wishlist pages use the same account navigation. */
body.piemy-site.pf-account-redesign .pf-account-nav {display:block !important;width:100% !important;margin:0 0 20px !important}
body.piemy-site.pf-account-redesign .pf-account-nav__grid {display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px !important}
body.piemy-site.pf-account-redesign .pf-account-nav__item {
  display:flex !important;flex-direction:column;justify-content:center;min-height:76px;
  padding:14px;border:1px solid var(--pm-line) !important;border-radius:16px !important;
  background:var(--pm-light) !important;color:var(--pm-ink) !important;
}
body.piemy-site.pf-account-redesign .pf-account-nav__item.is-active {border-color:var(--pm-brand) !important;background:var(--pm-mint) !important}
body.piemy-site.pf-account-redesign .pf-account-nav__item strong {font:500 18px PiemyCommons,Arial,sans-serif}
body.piemy-site.pf-account-redesign .pf-account-nav__item small {color:var(--pm-muted);font-size:13px}
body.piemy-site.pf-account-redesign .pf-account-nav__logout {display:inline-flex;margin:14px 0 0;color:var(--pm-deep);font-size:14px}
body.piemy-site.pf-page-profile .piemy-account-card__head {margin:0 0 20px;padding:0 0 18px;border-bottom:1px solid var(--pm-line)}
body.piemy-site.pf-page-profile .piemy-account-card__head h2 {margin-bottom:6px}
body.piemy-site.pf-page-profile .piemy-account-card__head span {color:var(--pm-muted)}
body.piemy-site.pf-page-profile .pf-page-content {max-width:1120px !important;margin:0 auto !important;padding:32px 0 65px !important}
body.piemy-site.pf-page-profile .profile-body {padding:26px !important;border:1px solid var(--pm-line);border-radius:20px;background:#fff}
body.piemy-site.pf-account-redesign .pf-page-content {max-width:1120px !important;margin-left:auto !important;margin-right:auto !important}
body.piemy-site.pf-account-redesign #content {min-width:0 !important}

@media (max-width: 991.98px) {
  body.piemy-site #product-category .pf-product-grid {grid-template-columns:repeat(3,minmax(0,1fr)) !important}
}
@media (max-width: 767.98px) {
  body.piemy-site #product-category .pf-category-layout.piemy-no-sidebar {width:calc(100% - 32px) !important;padding-top:18px !important}
  body.piemy-site #product-category .pf-product-grid {grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:23px 13px !important}
  body.piemy-site .piemy-shell {width:calc(100% - 32px)}
  body.piemy-site .piemy-account-hero {padding:28px 0}
  body.piemy-site .piemy-auth__content {padding-top:20px;padding-bottom:90px}
  body.piemy-site .piemy-auth__card {padding:23px 19px;border-radius:18px}
  body.piemy-site .piemy-auth__actions {display:flex;flex-direction:column;align-items:stretch}
  body.piemy-site .piemy-auth__actions .piemy-auth__forgotten {order:2;text-align:center}
  body.piemy-site .piemy-auth__actions .piemy-button {width:100%}
  body.piemy-site.pf-account-redesign .pf-account-nav__grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  body.piemy-site.pf-page-profile .pf-page-content {padding:20px 0 92px !important}
  body.piemy-site.pf-page-profile .profile-body {padding:19px !important}
}
@media (max-width: 360px) {
  body.piemy-site.pf-account-redesign .pf-account-nav__item {padding:10px}
  body.piemy-site.pf-account-redesign .pf-account-nav__item strong {font-size:16px}
}

/* Restore a clear cart layout while preserving the existing quantity actions. */
body.piemy-site #checkout-cart {width:calc(100% - 48px);max-width:1220px;margin:0 auto 65px;padding:0}
body.piemy-site #checkout-cart #content {float:none;width:100%;min-width:0}
body.piemy-site #checkout-cart h1 {margin:25px 0;color:var(--pm-ink);font:400 clamp(30px,3vw,40px)/1.2 PiemyBlacker,Georgia,serif}
body.piemy-site #checkout-cart .table-responsive {margin:0;border:1px solid var(--pm-line);border-radius:20px;background:#fff;box-shadow:0 8px 28px rgba(37,51,47,.05);overflow:hidden}
body.piemy-site #checkout-cart form .table {width:100%;margin:0;border:0;table-layout:fixed}
body.piemy-site #checkout-cart form .table td {height:auto;padding:18px;vertical-align:middle;border-color:var(--pm-line);color:var(--pm-ink)}
body.piemy-site #checkout-cart form .table thead td {padding:14px 18px;background:var(--pm-light);font-weight:600}
body.piemy-site #checkout-cart form .table td:first-child {width:110px}
body.piemy-site #checkout-cart form .table td:nth-child(2) {width:40%;font-weight:600}
body.piemy-site #checkout-cart form .table td:nth-child(3) {display:none}
body.piemy-site #checkout-cart form .table td:nth-child(4) {width:175px}
body.piemy-site #checkout-cart form .table td:nth-child(5),
body.piemy-site #checkout-cart form .table td:nth-child(6) {width:18%}
body.piemy-site #checkout-cart form .table td a {color:var(--pm-deep)}
body.piemy-site #checkout-cart form .table tbody td:first-child:not(:has(img))::after {content:'PIEMY';display:grid;place-items:center;width:72px;height:72px;margin:auto;border-radius:14px;background:var(--pm-light);color:var(--pm-deep);font:600 15px PiemyCommons,Arial,sans-serif;letter-spacing:.08em}
body.piemy-site #checkout-cart form .table tbody td:first-child img {width:72px;height:72px;object-fit:cover;border:0;border-radius:14px;padding:0}
body.piemy-site #checkout-cart form .table tbody td:nth-child(4) .input-group {display:flex;align-items:center;gap:8px;max-width:none !important}
body.piemy-site #checkout-cart form .table tbody td:nth-child(4) .inc_dec_qty {display:inline-flex;align-items:center;flex:none;max-width:none !important;top:auto !important;border:1px solid var(--pm-line);border-radius:22px;overflow:hidden}
body.piemy-site #checkout-cart .inc_dec_qty .btn {width:32px;height:34px;padding:0;background:var(--pm-light);border:0}
body.piemy-site #checkout-cart .inc_dec_qty .qty_box {width:36px;height:34px !important;border:0;outline:0}
body.piemy-site #checkout-cart form .table tbody td:nth-child(4) .btn-danger {width:36px !important;height:36px;border:1px solid var(--pm-line);border-radius:50% !important;background:#fff;color:var(--pm-deep)}
body.piemy-site #checkout-cart .old_table,body.piemy-site #checkout-cart .total_div .table {max-width:400px;margin:18px 0 18px auto;border:0}
body.piemy-site #checkout-cart .old_table td,body.piemy-site #checkout-cart .total_div td {padding:11px 14px;border-color:var(--pm-line)}
body.piemy-site #checkout-cart .buttons {display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-top:10px}
body.piemy-site #checkout-cart .buttons .pull-left,body.piemy-site #checkout-cart .buttons .pull-right {float:none !important}
body.piemy-site #checkout-cart .buttons .btn {min-height:46px;padding:11px 18px;border-radius:28px}
body.piemy-site #checkout-cart .buttons .btn-primary {border-color:var(--pm-brand);background:var(--pm-brand);color:#183c38}
@media(max-width:767.98px) {
  body.piemy-site #checkout-cart {width:calc(100% - 32px);margin-bottom:95px}
  body.piemy-site #checkout-cart .table-responsive {overflow:visible;border:0;box-shadow:none;background:transparent}
  body.piemy-site #checkout-cart form .table,body.piemy-site #checkout-cart form .table tbody,body.piemy-site #checkout-cart form .table tr {display:block;width:100%}
  body.piemy-site #checkout-cart form .table thead {display:none}
  body.piemy-site #checkout-cart form .table tr {display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px 15px;margin:0 0 12px;padding:15px;border:1px solid var(--pm-line);border-radius:17px;background:#fff}
  body.piemy-site #checkout-cart form .table td {display:block;width:auto !important;padding:0 !important;border:0 !important;text-align:left !important}
  body.piemy-site #checkout-cart form .table td:nth-child(3),body.piemy-site #checkout-cart form .table td:nth-child(5) {display:none}
  body.piemy-site #checkout-cart form .table td:first-child {grid-row:1 / span 2;grid-column:1}
  body.piemy-site #checkout-cart form .table td:nth-child(2) {grid-column:2;align-self:center}
  body.piemy-site #checkout-cart form .table td:nth-child(4) {grid-column:1 / -1}
  body.piemy-site #checkout-cart form .table td:nth-child(6) {grid-column:1 / -1;font-size:18px;font-weight:600}
  body.piemy-site #checkout-cart .buttons {flex-direction:column-reverse}
  body.piemy-site #checkout-cart .buttons .btn {display:block;width:100%;text-align:center}
}
