/* NOI-NOI PAINTS — shop.css (shop, product, cart, checkout, admin). Same teal/silver palette, EB Garamond, rounded cards. */
.page-hero {
  background: linear-gradient(135deg, var(--teal), var(--teal-dk));
  color: #fff;
  text-align: center;
  padding: 2.6rem 1.25rem 2.2rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -5% -26px -5%;
  height: 52px;
  background: #fff;
  border-radius: 50% 50% 0 0/100% 100% 0 0;
}
.page-hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.15;
}
.page-hero p {
  max-width: 640px;
  margin: 0.5rem auto 0;
  opacity: 0.95;
}
.shop-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.6rem 1.25rem 4rem;
}
.badge-sold {
  display: inline-block;
  background: var(--dark);
  color: #fff;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.cart-link {
  position: relative;
}
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  margin-left: 0.25rem;
  background: var(--teal);
  color: #fff;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}
.cart-count[hidden] {
  display: none;
}
.shop-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 2rem;
  align-items: start;
}
.filters {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border-bottom: 5px solid var(--teal);
  padding: 1.1rem 1.2rem 1.3rem;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow: auto;
}
.filters h2 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.f-group {
  border-top: 1px solid var(--silver-lt);
  padding: 0.75rem 0 0.35rem;
}
.f-group > summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.15rem 0 0.45rem;
}
.f-group > summary::-webkit-details-marker {
  display: none;
}
.f-group > summary::after {
  content: "+";
  color: var(--teal);
  font-size: 1.2rem;
}
.f-group[open] > summary::after {
  content: "–";
}
.f-opt {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.28rem 0;
  cursor: pointer;
  font-size: 0.98rem;
  line-height: 1.3;
}
.f-opt input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--teal);
  flex: none;
}
.f-opt .n {
  margin-left: auto;
  color: #7a8383;
  font-size: 0.85rem;
}
.f-more {
  background: none;
  border: 0;
  color: var(--teal-dk);
  font-weight: 700;
  cursor: pointer;
  padding: 0.3rem 0;
}
.price-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.price-row input {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--silver);
  border-radius: var(--radius);
  font-size: 1rem;
}
.f-clear {
  background: none;
  border: 0;
  color: var(--teal-dk);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
}
.f-close,
.f-open {
  display: none;
}
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}
.search-box {
  flex: 1 1 260px;
  display: flex;
  gap: 0.5rem;
}
.search-box input,
.shop-toolbar select,
.quick-find input {
  padding: 0.65rem 0.9rem;
  border: 2px solid var(--silver);
  border-radius: var(--radius);
  font-size: 1rem;
  background: #fff;
  color: var(--dark);
  min-height: 44px;
}
.search-box input {
  flex: 1;
  min-width: 0;
}
.search-box input:focus,
.shop-toolbar select:focus,
.quick-find input:focus,
.price-row input:focus {
  outline: 3px solid rgba(32, 178, 170, 0.35);
  border-color: var(--teal);
}
.result-count {
  color: var(--mid);
  margin-bottom: 0.6rem;
  min-height: 1.5em;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--silver-lt);
  border: 1px solid var(--silver);
  color: var(--dark);
  font-size: 0.95rem;
  cursor: pointer;
}
.chip:hover {
  background: #fff;
  border-color: var(--teal);
}
.chip .x {
  color: var(--teal-dk);
  font-weight: 700;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0 auto 1.6rem;
  max-width: 900px;
}
.chip-row a {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--teal);
  color: var(--teal-dk);
  font-weight: 700;
  font-size: 0.95rem;
}
.chip-row a:hover {
  background: var(--teal);
  color: #fff;
}
.quick-find {
  display: flex;
  gap: 0.5rem;
  max-width: 560px;
  margin: 0 auto 1rem;
}
.quick-find input {
  flex: 1;
  min-width: 0;
}
.shop-card {
  position: relative;
}
.shop-img {
  position: relative;
}
.ribbon {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.ribbon.sold {
  background: var(--dark);
}
.shop-card.is-sold .shop-img img {
  filter: grayscale(0.55);
  opacity: 0.8;
}
.shop-meta {
  color: #6b7676;
  font-size: 0.88rem;
  line-height: 1.35;
}
.shop-title a {
  color: inherit;
}
.shop-title a:hover {
  color: var(--teal-dk);
}
.empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 3rem 1.5rem;
  background: #fff;
  border-radius: 12px;
  border: 2px dashed var(--teal);
}
.empty h3 {
  margin-bottom: 0.4rem;
}
.empty p {
  color: var(--mid);
  margin-bottom: 1rem;
}
.pager {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.pager button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.9rem;
  border-radius: var(--radius);
  border: 2px solid var(--teal);
  background: #fff;
  color: var(--teal-dk);
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
}
.pager button[aria-current="page"] {
  background: var(--teal);
  color: #fff;
}
.pager button:disabled {
  opacity: 0.4;
  cursor: default;
}
.crumbs {
  font-size: 0.95rem;
  color: var(--mid);
  margin-bottom: 1rem;
}
.pd {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2.4rem;
  align-items: start;
}
.pd-gallery {
  position: sticky;
  top: 90px;
}
.pd-main {
  background: #fff;
  padding: 12px;
  border: 3px solid var(--silver);
  border-radius: 6px;
  box-shadow: var(--shadow);
  text-align: center;
}
.pd-main img {
  margin: 0 auto;
  max-height: 72vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.pd-thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}
.pd-thumb {
  width: 78px;
  height: 78px;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 8px;
  background: var(--silver-lt);
  overflow: hidden;
  cursor: pointer;
}
.pd-thumb.on,
.pd-thumb:hover {
  border-color: var(--teal);
}
.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-kind {
  color: var(--teal-dk);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.pd-info h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin: 0.2rem 0 0.5rem;
}
.pd-price {
  font-size: 1.9rem;
  color: var(--teal-dk);
  font-weight: 700;
  margin-bottom: 1rem;
}
.pd-buy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 0.4rem;
}
.pd-buy .btn-primary,
.pd-buy .btn-secondary {
  min-height: 48px;
  padding: 0.8rem 2rem;
}
.pd-qty select {
  padding: 0.55rem 0.6rem;
  border: 2px solid var(--silver);
  border-radius: var(--radius);
  font-size: 1rem;
  margin-left: 0.3rem;
}
.pd-status {
  flex-basis: 100%;
  min-height: 1.4em;
  font-weight: 700;
  color: var(--teal-dk);
}
.pd-status.err {
  color: #b3261e;
}
.pd-low {
  color: #8a5a00;
  font-weight: 700;
  min-height: 1.2em;
}
.pd-specs {
  margin: 1.2rem 0;
  border-top: 1px solid var(--silver);
}
.pd-specs > div {
  display: flex;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--silver-lt);
}
.pd-specs dt {
  width: 110px;
  flex: none;
  color: #6b7676;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  padding-top: 0.2rem;
}
.pd-desc p {
  margin-bottom: 0.9rem;
}
.pd-assure {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: 1rem;
  color: var(--mid);
  font-size: 0.95rem;
}
.pd-assure li::before {
  content: "✓ ";
  color: var(--teal);
  font-weight: 700;
}
.pd-note {
  margin: 0.6rem 0 1rem;
  color: var(--mid);
}
.related {
  margin-top: 3.5rem;
}
.related h2 {
  text-align: center;
  margin-bottom: 1.4rem;
  font-size: 1.7rem;
}
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
  gap: 2rem;
  align-items: start;
}
.cart-lines {
  display: grid;
  gap: 1rem;
}
.cart-line {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 1rem;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.9rem;
  border-bottom: 4px solid var(--teal);
}
.cart-line img {
  width: 110px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--silver-lt);
}
.cart-line h3 {
  font-size: 1.1rem;
  line-height: 1.3;
}
.cart-line .issue {
  color: #b3261e;
  font-weight: 700;
  font-size: 0.95rem;
}
.cart-line .sub {
  color: var(--mid);
  font-size: 0.92rem;
}
.cart-line .line-price {
  text-align: right;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--teal-dk);
}
.cart-actions {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}
.cart-actions select {
  padding: 0.35rem 0.5rem;
  border: 2px solid var(--silver);
  border-radius: 6px;
  font-size: 0.98rem;
}
.link-btn {
  background: none;
  border: 0;
  color: #b3261e;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: underline;
  padding: 0.3rem 0;
  min-height: 32px;
}
.summary {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border-bottom: 5px solid var(--teal);
  padding: 1.3rem;
  position: sticky;
  top: 90px;
}
.summary h2 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}
.summary .row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
}
.summary .total {
  border-top: 2px solid var(--silver);
  margin-top: 0.5rem;
  padding-top: 0.8rem;
  font-size: 1.3rem;
  font-weight: 700;
}
.summary label {
  display: block;
  font-weight: 700;
  margin: 0.8rem 0 0.3rem;
}
.summary select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 2px solid var(--silver);
  border-radius: var(--radius);
  font-size: 1rem;
  background: #fff;
  min-height: 44px;
}
.summary .btn-primary {
  width: 100%;
  margin-top: 1rem;
  min-height: 50px;
  font-size: 1.05rem;
}
.summary .btn-primary[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.free-ship {
  color: var(--teal-dk);
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 0.3rem;
}
.fine {
  color: #6b7676;
  font-size: 0.85rem;
  margin-top: 0.8rem;
  line-height: 1.5;
}
.summary .err {
  color: #b3261e;
  font-weight: 700;
}
.ts-wrap {
  margin-top: 0.8rem;
}
.notice {
  background: #fff8e6;
  border: 1px solid #f0d58a;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  color: #6b4e00;
}
.thanks {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border-bottom: 6px solid var(--teal);
  padding: 2.4rem 1.6rem;
}
.thanks .done-ref {
  margin: 1rem auto;
}
.thanks ul {
  list-style: none;
  margin: 1rem 0;
  text-align: left;
}
.thanks li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--silver-lt);
}
.policy {
  max-width: 780px;
  margin: 0 auto;
}
.policy h2 {
  margin: 1.6rem 0 0.5rem;
  font-size: 1.5rem;
  color: var(--teal-dk);
}
.policy p,
.policy li {
  margin-bottom: 0.6rem;
}
.policy ul {
  padding-left: 1.3rem;
}
.policy table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.6rem 0 1rem;
}
.policy td,
.policy th {
  border-bottom: 1px solid var(--silver);
  padding: 0.5rem 0.6rem;
  text-align: left;
}
.admin-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.4rem 1.25rem 4rem;
}
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.tabs button {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  border: 2px solid var(--teal);
  background: #fff;
  color: var(--teal-dk);
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
}
.tabs button[aria-selected="true"] {
  background: var(--teal);
  color: #fff;
}
.a-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.2rem;
  margin-bottom: 1.2rem;
}
.a-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.a-table th,
.a-table td {
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--silver-lt);
  text-align: left;
  vertical-align: middle;
}
.a-table img {
  width: 56px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
}
.a-table .st {
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--silver-lt);
}
.st.active,
.st.paid {
  background: #d8f3f1;
  color: var(--teal-dk);
}
.st.shipped {
  background: #e1ecff;
  color: #234a9a;
}
.st.refunded,
.st.draft {
  background: #fff1d6;
  color: #7a5200;
}
.a-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.1rem;
}
.a-form .full {
  grid-column: 1/-1;
}
.a-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}
.a-form input[type="text"],
.a-form input[type="number"],
.a-form select,
.a-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 2px solid var(--silver);
  border-radius: var(--radius);
  font-size: 1rem;
  background: #fff;
}
.a-form textarea {
  min-height: 130px;
  resize: vertical;
}
.a-form input:focus,
.a-form select:focus,
.a-form textarea:focus {
  outline: 3px solid rgba(32, 178, 170, 0.35);
  border-color: var(--teal);
}
.a-form .hint {
  font-size: 0.85rem;
  color: #6b7676;
  font-weight: 400;
}
.a-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}
.a-check input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--teal);
}
.img-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.img-item {
  width: 130px;
  background: var(--silver-lt);
  border-radius: 10px;
  padding: 0.4rem;
  text-align: center;
}
.img-item img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 6px;
}
.img-item button {
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--teal-dk);
  font-size: 0.85rem;
  padding: 0.15rem 0.3rem;
}
.img-item .rm {
  color: #b3261e;
}
.a-msg {
  padding: 0.7rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-weight: 700;
}
.a-msg.ok {
  background: #d8f3f1;
  color: var(--teal-dk);
}
.a-msg.err {
  background: #fde4e1;
  color: #b3261e;
}
.order-card {
  border-bottom: 4px solid var(--teal);
}
.order-card h3 {
  font-size: 1.15rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.order-card pre {
  font-family: inherit;
  white-space: pre-wrap;
  background: var(--silver-lt);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  margin: 0.5rem 0;
}
.ship-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.6rem;
}
.ship-form input {
  padding: 0.5rem 0.7rem;
  border: 2px solid var(--silver);
  border-radius: var(--radius);
  font-size: 1rem;
}
@media (max-width: 960px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .f-open {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0 1rem;
    border: 2px solid var(--teal);
    background: #fff;
    color: var(--teal-dk);
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
  }
  .filters {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(92vw, 380px);
    max-height: none;
    z-index: 300;
    border-radius: 0 14px 14px 0;
    transform: translateX(-105%);
    transition: transform 0.28s ease;
    padding-bottom: 6rem;
    visibility: hidden;
  }
  .filters.open {
    transform: none;
    visibility: visible;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.45);
  }
  .f-close {
    display: inline-flex;
    background: none;
    border: 0;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: var(--dark);
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }
  .f-apply {
    position: fixed;
    left: 0;
    bottom: 0;
    width: min(92vw, 380px);
    padding: 0.8rem 1rem;
    background: #fff;
    border-top: 2px solid var(--silver);
    z-index: 301;
  }
  .f-apply .btn-primary {
    width: 100%;
    min-height: 48px;
  }
  .pd {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .pd-gallery,
  .summary {
    position: static;
  }
  .cart-layout {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 961px) {
  .f-apply {
    display: none;
  }
}
@media (max-width: 640px) {
  .shop-wrap {
    padding: 1.1rem 0.9rem 3rem;
  }
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }
  .shop-body {
    padding: 0.7rem 0.75rem 0.9rem;
  }
  .shop-title {
    font-size: 0.98rem;
  }
  .shop-btn {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
  .shop-meta {
    font-size: 0.8rem;
  }
  .cart-line {
    grid-template-columns: 84px 1fr;
  }
  .cart-line img {
    width: 84px;
    height: 72px;
  }
  .cart-line .line-price {
    grid-column: 2;
    text-align: left;
  }
  .a-form {
    grid-template-columns: 1fr;
  }
  .a-table {
    display: block;
    overflow-x: auto;
  }
  .pd-main {
    padding: 8px;
  }
  .pd-buy .btn-primary {
    flex: 1 1 100%;
  }
  .quick-find {
    flex-direction: column;
  }
}
@media (max-width: 380px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .filters {
    transition: none;
  }
}
