/* Site glue for the new design: things the React prototype didn't need
   (real links instead of buttons, native dialogs, account, currency, toasts, cookie banner). */

.skip-link,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  width: auto;
  height: auto;
  clip: auto;
  padding: 12px 18px;
  background: #211e25;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  border-radius: 3px;
}
:focus-visible {
  outline: 3px solid #8b55a5;
  outline-offset: 3px;
}

/* Header: the design styles <button>; the site uses links */
.header nav a {
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
}
.header nav a:hover,
.header nav a[aria-current="page"] {
  color: #e95e52;
}
.nav-actions {
  gap: 4px;
}
.nav-actions > a,
.nav-actions > .bag,
.nav-actions summary {
  position: relative;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-actions > a,
.nav-actions > button,
.nav-actions summary {
  min-width: 44px;
  min-height: 44px;
}
.header .logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.nav-actions a:hover,
.nav-actions button:hover,
.nav-actions summary:hover {
  color: #e95e52;
}
.nav-badge {
  position: absolute;
  background: #fa7161;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  top: 2px;
  right: 0;
  display: grid;
  place-items: center;
}
.bag span[hidden],
.nav-badge[hidden] {
  display: none;
}
.country-select select {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  border: 1px solid #1c1b1b30;
  border-radius: 3px;
  background: transparent;
  padding: 6px 4px;
  color: inherit;
  cursor: pointer;
}
.account-menu {
  position: relative;
}
.account-menu summary {
  list-style: none;
  cursor: pointer;
}
.account-menu summary::-webkit-details-marker {
  display: none;
}
.account-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  min-width: 230px;
  background: #fffaf4;
  border: 1px solid #251d28;
  border-radius: 10px;
  box-shadow: 6px 6px 0 #251d2822;
  padding: 16px 18px;
  display: grid;
  gap: 4px;
  z-index: 40;
}
.account-menu-panel small {
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #77706c;
}
.account-menu-panel strong {
  font-size: 13px;
  overflow-wrap: anywhere;
  margin-bottom: 8px;
}
.account-menu-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 0;
  border-top: 1px solid #e0d8d0;
}
.account-menu-panel a:hover {
  color: #e95e52;
}
.mobile-nav[hidden] {
  display: none !important;
}
.mobile-nav a {
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  border-bottom: 1px solid #ddd;
}
@media (max-width: 740px) {
  .country-select,
  .nav-search {
    display: none !important;
  }
}

/* Native <dialog> resets for the cart drawer and privacy dialogs */
dialog.drawer-backdrop {
  padding: 0;
  border: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  background: transparent;
  color: inherit;
}
dialog.drawer-backdrop::backdrop {
  background: #1118;
}
dialog.privacy-dialog {
  color: inherit;
  margin: auto;
  width: min(620px, calc(100% - 44px));
  max-height: 90dvh;
  overflow-y: auto;
  background: #fffaf4;
  border: 1px solid #251d28;
  border-radius: 16px;
  padding: 38px;
  box-shadow: 10px 10px 0 #251d2822;
}
dialog.privacy-dialog::backdrop {
  background: #251d2888;
}
.cart-item-placeholder {
  width: 70px;
  height: 70px;
  border-radius: 6px;
  background: #faf0e4;
  display: grid;
  place-items: center;
  color: #d192f4;
  font-size: 26px;
  flex-shrink: 0;
}
.cart-item-end {
  margin-left: auto;
  display: grid;
  justify-items: end;
  gap: 10px;
}
.cart-remove {
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #5f5854;
}
.cart-remove:hover {
  color: #e95e52;
}

/* Toasts (PartyPacks.showToast / showToast) */
.mpp-toast-container {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1100;
  display: grid;
  gap: 10px;
  max-width: min(360px, calc(100vw - 36px));
}
.mpp-toast {
  background: #211e25;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  padding: 14px 18px;
  border-radius: 4px;
  border-left: 4px solid #d192f4;
  box-shadow: 6px 6px 0 #251d2822;
}
.mpp-toast--success {
  border-left-color: #8fb46a;
}
.mpp-toast--warning {
  border-left-color: #fcce75;
}
.mpp-toast--danger {
  border-left-color: #fa7161;
}

/* Footer additions */
#newsletterMessage[data-type="success"] {
  color: #b9d99a;
}
#newsletterMessage[data-type="danger"] {
  color: #f0a69f;
}
.footer-cards,
.footer-socials {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-cards img {
  display: inline-block;
  object-fit: contain;
  background: #fff;
  border-radius: 3px;
  padding: 2px;
}

/* Cookie banner */
.mpp-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1080;
  background: #29232d;
  color: #fff;
  box-shadow: 0 -6px 24px #0003;
  padding: 22px 5%;
}
.mpp-cookie-banner[hidden] {
  display: none;
}
.mpp-cookie-banner__inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}
.mpp-cookie-banner .eyebrow {
  color: #fcce75;
}
.mpp-cookie-banner__title {
  font-size: 24px;
  margin: 8px 0;
}
.mpp-cookie-banner__desc {
  font-size: 13px;
  line-height: 1.7;
  color: #cbc5cc;
  margin: 0;
  max-width: 760px;
}
.mpp-cookie-banner__desc a,
.mpp-cookie-link-btn {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: inherit;
  display: inline-block;
  padding: 11px 0;
  margin: -11px 0;
}
.mpp-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}
.mpp-cookie-banner__actions button {
  padding: 14px 18px;
  gap: 10px;
}
.btn-on-dark {
  border-color: #ffffff90;
  color: #fff;
}
.btn-on-dark:hover {
  background: #fff;
  color: #211e25;
}
.mpp-cookie-settings-btn {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 1070;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #29232d;
  color: #fcce75;
  box-shadow: 4px 4px 0 #251d2833;
  display: grid;
  place-items: center;
}
.mpp-cookie-settings-btn[hidden],
body.mpp-cookie-banner-visible .mpp-cookie-settings-btn {
  display: none;
}
.mpp-cookie-settings-btn:hover {
  background: #e95e52;
  color: #fff;
}
@media (max-width: 740px) {
  .mpp-cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .mpp-cookie-banner__actions button {
    flex: 1 1 auto;
  }
}

/* Pages still on Bootstrap + the old styles.css: keep the new shell looking right */
body.legacy-page {
  padding-top: 0;
}
.header,
.mobile-nav {
  color: #1c1b1b;
}
.footer-brand h2,
.mpp-cookie-banner__title {
  color: #fff;
}
.privacy-dialog h2 {
  color: #1c1b1b;
}

/* Product card: real links + wishlist button */
.product-media {
  position: relative;
}
.product-image {
  display: block;
}
.product-image picture {
  display: contents;
}
.product-image-empty {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 54px;
  color: #d192f4;
}
.card-wish {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #222;
  transition: background 0.2s, color 0.2s;
}
.card-wish:hover {
  background: #f7d36e;
}
.card-wish[aria-pressed="true"] {
  color: #e95e52;
}
.card-wish[aria-pressed="true"] svg {
  fill: currentColor;
}
.product-title-row h3 a:hover {
  color: #e95e52;
}
a.category-card,
a.photo-sticker {
  display: block;
  color: inherit;
}

/* Catalog: filter chips are links; one GET form for search/type/price/sort */
.filter-row a {
  border: 1px solid #d7cac4;
  padding: 11px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 800;
}
.filter-row a:hover {
  border-color: #262127;
}
.filter-row a.active {
  background: #262127;
  color: #fff;
  border-color: #262127;
}
.catalog-filters {
  flex-wrap: wrap;
}
.catalog-filters label:not(.search-input) {
  display: flex;
}
.catalog-filters select {
  height: 42px;
}
.catalog-search-btn {
  padding: 0 18px;
  height: 42px;
}
.catalog-count a {
  color: #262127;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.empty-state a {
  text-decoration: underline;
}
.catalog-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0 6% 70px;
  margin-top: -50px;
}
.catalog-pagination a,
.catalog-pagination span {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #d7cac4;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 800;
}
.catalog-pagination a:hover {
  border-color: #262127;
}
.catalog-pagination [aria-current="page"] {
  background: #262127;
  border-color: #262127;
  color: #fff;
}
.catalog-pagination span[aria-hidden] {
  border: 0;
  min-width: 0;
  padding: 0 2px;
}
@media (max-width: 740px) {
  .catalog-filters {
    width: 100%;
  }
  .catalog-filters .search-input {
    flex: 1 1 100%;
  }
  .catalog-filters .search-input input {
    width: 100%;
  }
  .catalog-filters label:not(.search-input) {
    flex: 1 1 30%;
  }
  .catalog-filters select {
    width: 100%;
  }
}

/* Pack page additions: thumbnails, themes, live reviews */
.product-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
}
.product-thumb {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border: 1px solid #d7cac4;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
}
.product-thumb img {
  width: 100%;
  height: 100%;
}
.product-thumb[aria-pressed="true"] {
  border: 2px solid #251d28;
}
.product-full-description p {
  font-size: 16px;
  line-height: 1.85;
}
.product-themes {
  font-size: 14px;
  color: #554f4d;
}
.product-item-icon svg {
  stroke-width: 1.3;
}
.product-actions [aria-pressed="true"] {
  color: #e95e52;
}
.product-actions [aria-pressed="true"] svg {
  fill: currentColor;
}
.review-summary {
  margin-top: 30px;
  display: grid;
  gap: 22px;
}
.review-average strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.06em;
}
.review-average small {
  display: block;
  font-size: 12px;
  color: #6e6763;
  margin-top: 6px;
}
.review-stars {
  color: #d7cac4;
  letter-spacing: 2px;
  font-size: 16px;
}
.review-stars .on {
  color: #e9a23b;
}
.review-bars > div {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}
.review-bar {
  height: 8px;
  background: #e4d9cd;
  border-radius: 8px;
  overflow: hidden;
}
.review-bar span {
  display: block;
  height: 100%;
  background: #251d28;
}
.review-list {
  display: grid;
  gap: 16px;
  align-content: start;
}
.review-item {
  padding: 26px;
  border: 1px solid #251d28;
  background: #fffaf4;
  border-radius: 12px;
}
.review-item header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.review-item header > div {
  flex: 1;
  min-width: 0;
}
.review-item header strong,
.review-item header small {
  display: block;
}
.review-item header small {
  font-size: 11px;
  color: #77706c;
  margin-top: 2px;
}
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #d7aef6;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}
.review-item h3 {
  font-size: 19px;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}
.review-item p {
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 0;
}
.review-helpful {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 12px;
  font-size: 12px;
  color: #6e6763;
}
.review-replies {
  margin-top: 14px;
  border-top: 1px solid #e0d8d0;
  padding-top: 12px;
}
.review-replies summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  gap: 6px;
  align-items: center;
}
.review-reply {
  margin-top: 12px;
  padding-left: 14px;
  border-left: 3px solid #d7aef6;
}
.review-reply small {
  margin-left: 8px;
  font-size: 11px;
  color: #77706c;
}
.review-more {
  font-size: 12px;
  color: #6e6763;
}

/* Wishlist page */
.wishlist-grid {
  padding-top: 50px;
}
.wishlist-empty {
  grid-column: 1 / -1;
  padding: 40px 0 20px;
}
