﻿/* Magic Garden commerce layer on LeafLife tokens
   Accent lock: heading green. Radius: 15-20px (match LeafLife).
   No second accent. Light theme locked. */

:root {
  --mg-radius: 20px;
  --mg-radius-sm: 12px;
  --mg-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --mg-surface: #ffffff;
  --mg-elevated: var(--gray-color);
  --mg-border: var(--gray-color);
  --mg-text: var(--heading-color);
  --mg-muted: var(--body-color);
}

.cs_btn.cs_style_1 {
  border-radius: var(--mg-radius-sm);
  transition: color 0.25s var(--mg-ease), background-color 0.25s var(--mg-ease),
    transform 0.25s var(--mg-ease);
}
.cs_btn.cs_style_1:hover {
  border-radius: var(--mg-radius-sm);
}
.cs_btn.cs_style_1:active {
  transform: translateY(1px) scale(0.99);
}
.cs_btn.cs_style_1:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Missing LeafLife scale used on PDP / artist headings */
.cs_fs_48 {
  font-size: 48px;
  line-height: 1.15;
}
@media (max-width: 991px) {
  .cs_fs_48 {
    font-size: 36px;
  }
}
@media (max-width: 575px) {
  .cs_fs_48 {
    font-size: 28px;
  }
}

/* ----- Header cart badge ----- */
.mg_header_cart {
  position: relative;
}
.mg_header_cart_count {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--heading-color);
  color: var(--white-color);
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ----- Header account menu ----- */
.mg_overlay_search {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 500px;
}
.mg_overlay_search .cs_header_form_input {
  padding-inline: 50px 20px;
  border-radius: var(--mg-radius-sm);
}
.mg_overlay_search .cs_header_form_btn {
  right: auto;
  left: auto;
  inset-inline-start: 0;
}
.mg_search_results {
  position: absolute;
  top: calc(100% + 12px);
  inset-inline: 0;
  z-index: 100;
  max-height: min(70vh, 22rem);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgb(55 72 54 / 14%);
  border-radius: var(--mg-radius-sm);
  background: var(--mg-surface);
  box-shadow: 0 20px 54px rgb(31 43 31 / 24%);
}
.mg_search_empty {
  margin: 0;
  padding: 16px;
  color: var(--body-color);
  font-size: 14px;
  line-height: 1.6;
}
.mg_search_group + .mg_search_group {
  border-top: 1px solid rgb(55 72 54 / 10%);
}
.mg_search_group_title {
  margin: 0;
  padding: 10px 12px 5px;
  color: var(--body-color);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mg_search_group ul {
  margin: 0;
  padding: 0 0 5px;
  list-style: none;
}
.mg_search_result {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--heading-color);
  text-align: start;
  text-decoration: none;
  transition: background-color 0.2s var(--mg-ease);
}
.mg_search_result:hover,
.mg_search_result:focus-visible {
  outline: none;
  background: var(--gray-color);
}
.mg_search_result_title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.mg_search_result_subtitle {
  color: var(--body-color);
  font-size: 12px;
  line-height: 1.4;
}

.mg_account_menu {
  position: relative;
}
.mg_account_menu > summary {
  list-style: none;
  cursor: pointer;
}
.mg_account_menu > summary::-webkit-details-marker {
  display: none;
}
.mg_account_menu[open] > summary,
.mg_account_menu > summary:hover {
  background: rgb(249 251 243 / 12%);
}
.mg_account_menu > summary:focus-visible {
  outline: 2px solid var(--white-color);
  outline-offset: 2px;
}
.mg_account_dropdown {
  position: absolute;
  top: calc(100% + 14px);
  inset-inline-end: 0;
  z-index: 120;
  width: 280px;
  overflow: hidden;
  border: 1px solid rgb(55 72 54 / 12%);
  border-radius: var(--mg-radius-sm);
  background: var(--mg-surface);
  box-shadow: 0 24px 60px rgb(31 43 31 / 20%);
  color: var(--mg-text);
}
.mg_account_dropdown::before {
  position: absolute;
  top: -7px;
  inset-inline-end: 14px;
  width: 14px;
  height: 14px;
  border-top: 1px solid rgb(55 72 54 / 12%);
  border-inline-start: 1px solid rgb(55 72 54 / 12%);
  background: inherit;
  content: "";
  transform: rotate(45deg);
}
.mg_account_identity,
.mg_account_guest {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 18px 20px 14px;
}
.mg_account_identity strong,
.mg_account_guest strong {
  overflow: hidden;
  color: var(--heading-color);
  font-size: 15px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mg_account_identity span,
.mg_account_guest span {
  overflow: hidden;
  color: var(--body-color);
  font-size: 12px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mg_account_links {
  padding: 6px;
  border-top: 1px solid rgb(55 72 54 / 10%);
}
.mg_account_links a,
.mg_account_logout {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--heading-color);
  font-family: var(--body-font);
  font-size: 14px;
  font-weight: 600;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--mg-ease), color 0.2s var(--mg-ease);
}
.mg_account_links a i,
.mg_account_logout i {
  width: 18px;
  color: var(--body-color);
  text-align: center;
}
.mg_account_links a:hover,
.mg_account_links a:focus-visible,
.mg_account_logout:hover,
.mg_account_logout:focus-visible {
  outline: none;
  background: var(--gray-color);
  color: var(--heading-color);
}
.mg_account_dropdown form {
  padding: 6px;
  border-top: 1px solid rgb(55 72 54 / 10%);
}
@media (max-width: 575px) {
  .mg_account_dropdown {
    width: min(280px, calc(100vw - 24px));
  }
}

/* ----- Softer home feature surfaces ----- */
.mg_project_card {
  overflow: hidden;
  border: 1px solid rgb(55 72 54 / 10%);
  border-radius: 24px;
  background: var(--gray-color);
  box-shadow: 0 24px 64px rgb(55 72 54 / 10%);
}
.mg_project_card .cs_card_thumb {
  margin-bottom: 0 !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.55s var(--mg-ease);
}
.mg_project_card .cs_card_info {
  min-height: 132px;
  align-items: center;
  padding: 24px 28px 26px;
}
.mg_project_card .cs_card_info_list p {
  margin-bottom: 4px !important;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mg_project_card:hover .cs_card_thumb {
  transform: scale(1.015);
}
.mg_collection_features {
  row-gap: 24px;
}
.mg_collection_features > [class*="col-"] {
  display: flex;
}
.mg_collection_feature {
  width: 100%;
  min-height: 190px;
  padding: 24px;
  border: 1px solid rgb(55 72 54 / 10%);
  border-radius: var(--mg-radius);
  background: var(--gray-color);
  color: var(--heading-color);
  box-shadow: 0 16px 40px rgb(55 72 54 / 7%);
  transition: transform 0.28s var(--mg-ease), box-shadow 0.28s var(--mg-ease);
}
.mg_collection_feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgb(55 72 54 / 12%);
}
/* Keep titles/body readable on mint cards â€” never inherit page white text */
.mg_collection_feature h3,
.mg_collection_feature h3.cs_fs_24,
.mg_collection_feature .cs_iconbox_icon,
.mg_collection_feature .cs_iconbox_icon i {
  color: #374836 !important;
}
.mg_collection_feature p,
.mg_collection_feature p.cs_fs_20,
.mg_collection_feature p.mb-0 {
  color: rgb(55 72 54 / 72%) !important;
}
.mg_collection_feature.cs_iconbox.cs_style_1 .cs_iconbox_icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--mg-surface);
  color: var(--heading-color);
}
.mg_collection_feature.cs_iconbox.cs_style_1 .cs_iconbox_icon::before {
  border-radius: inherit;
  background: var(--mg-surface);
}
.mg_collection_feature .cs_iconbox_icon img {
  position: relative;
  z-index: 2;
}
.mg_collection_story .cs_card.cs_style_1 {
  height: 620px;
}
.mg_collection_story .cs_card.cs_style_1 .cs_card_subtitle,
.mg_collection_story .cs_card.cs_style_1.active .cs_card_subtitle {
  height: auto;
  max-width: 42ch;
}
@media (max-width: 991px) {
  .mg_project_card .cs_card_info {
    min-height: auto;
    padding: 22px 24px 24px;
  }
  .mg_collection_story .cs_card.cs_style_1 {
    height: 420px;
    min-height: 420px;
  }
  .mg_collection_story .cs_card.cs_style_1 .cs_card_tags {
    width: auto;
    max-width: calc(100% - 40px);
  }
}
@media (max-width: 575px) {
  .mg_project_card {
    border-radius: 18px;
  }
  .mg_project_card .cs_card_info {
    padding: 20px;
  }
  .mg_collection_feature {
    min-height: auto;
    padding: 20px;
    border-radius: 16px;
  }
  .mg_collection_features {
    row-gap: 18px;
  }
  .mg_collection_story .cs_card.cs_style_1 {
    height: 360px;
    min-height: 360px;
  }
}

/* ----- Product grid ----- */
.mg_product_grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 28px;
}
@media (max-width: 991px) {
  .mg_product_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}
@media (max-width: 575px) {
  .mg_product_grid {
    grid-template-columns: 1fr;
  }
}

.mg_product_card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.35s var(--mg-ease);
}
.mg_product_card:hover {
  transform: translateY(-4px);
}
.mg_product_card:active {
  transform: translateY(-2px) scale(0.99);
}

.mg_wishlist_card_slot {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 3;
}

.mg_wishlist_toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: var(--heading-color);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.mg_wishlist_toggle--card {
  width: 40px;
  height: 40px;
  border-radius: 999px;
}
.mg_wishlist_toggle--pdp {
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--mg-radius, 8px);
  font-weight: 700;
}
.mg_wishlist_toggle:hover {
  transform: translateY(-1px);
}
.mg_wishlist_toggle.is-active {
  color: #c0392b;
  border-color: rgba(192, 57, 43, 0.25);
  background: rgba(255, 245, 245, 0.98);
}

.mg_header_wishlist {
  position: relative;
}

.mg_product_media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--mg-radius);
  overflow: hidden;
  background: var(--gray-color);
  margin-bottom: 18px;
}
.mg_product_media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--mg-ease);
}
.mg_product_card:hover .mg_product_media img {
  transform: scale(1.04);
}

.mg_product_badge {
  position: absolute;
  top: 14px;
  left: auto;
  inset-inline-start: 14px;
  z-index: 2;
  padding: 6px 12px;
  background: var(--white-color);
  color: var(--heading-color);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
}

.mg_product_wish {
  position: absolute;
  top: 14px;
  right: auto;
  inset-inline-end: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgb(249 251 243 / 92%);
  color: var(--heading-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s var(--mg-ease), transform 0.2s var(--mg-ease);
}
.mg_product_wish:hover {
  background: var(--white-color);
}
.mg_product_wish:active {
  transform: scale(0.96);
}

.mg_product_meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.mg_product_artist {
  font-size: 13px;
  color: var(--body-color);
  margin: 0;
  letter-spacing: 0.02em;
}
.mg_product_title {
  font-size: 20px;
  margin: 0;
  line-height: 1.35;
  font-family: var(--heading-font);
}
.mg_product_title a {
  color: var(--heading-color);
  text-decoration: none;
}
.mg_product_title a:hover {
  opacity: 0.75;
}
.mg_product_footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}
.mg_product_price {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading-color);
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.mg_product_price s {
  font-weight: 500;
  font-size: 14px;
  color: var(--body-color);
  margin-inline-end: 6px;
}
.mg_add_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--heading-color);
  background: transparent;
  color: var(--heading-color);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s var(--mg-ease), color 0.25s var(--mg-ease),
    transform 0.2s var(--mg-ease), border-color 0.25s var(--mg-ease);
}
.mg_add_btn:hover {
  background: var(--heading-color);
  color: var(--white-color);
}
.mg_add_btn:active {
  transform: scale(0.98);
}
.mg_add_btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

/* ----- Shop toolbar ----- */
.mg_shop_toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--gray-color);
  margin-bottom: 40px;
}
.mg_shop_filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.mg_filter_chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--gray-color);
  background: transparent;
  color: var(--heading-color);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--mg-ease), border-color 0.25s var(--mg-ease);
}
.mg_filter_chip:hover,
.mg_filter_chip.is-active {
  background: var(--heading-color);
  border-color: var(--heading-color);
  color: var(--white-color);
}
.mg_shop_count {
  margin: 0;
  font-size: 14px;
  color: var(--body-color);
}

/* ----- Product detail ----- */
.mg_pdp {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 991px) {
  .mg_pdp {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.mg_pdp_gallery {
  display: grid;
  gap: 16px;
}
.mg_pdp_main {
  aspect-ratio: 4 / 5;
  border-radius: var(--mg-radius);
  overflow: hidden;
  background: var(--gray-color);
}
.mg_pdp_main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mg_pdp_thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.mg_pdp_thumbs button {
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: var(--mg-radius-sm);
  overflow: hidden;
  padding: 0;
  background: var(--gray-color);
  cursor: pointer;
}
.mg_pdp_thumbs button.is-active,
.mg_pdp_thumbs button:hover {
  border-color: var(--heading-color);
}
.mg_pdp_thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mg_pdp_artist {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  text-decoration: none;
  color: var(--heading-color);
}
.mg_pdp_artist img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.mg_pdp_price {
  font-size: 28px;
  font-weight: 700;
  color: var(--heading-color);
  margin: 16px 0 24px;
  font-variant-numeric: tabular-nums;
}
.mg_variant_row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.mg_variant {
  min-width: 48px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--gray-color);
  border-radius: var(--mg-radius-sm);
  background: transparent;
  color: var(--heading-color);
  font-weight: 600;
  cursor: pointer;
}
.mg_variant.is-active {
  border-color: var(--heading-color);
  background: var(--heading-color);
  color: var(--white-color);
}
.mg_qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--gray-color);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 24px;
}
.mg_qty button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--heading-color);
  font-size: 18px;
  cursor: pointer;
}
.mg_qty span {
  min-width: 36px;
  text-align: center;
  font-weight: 700;
  color: var(--heading-color);
  font-variant-numeric: tabular-nums;
}
.mg_pdp_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.mg_pdp_actions .cs_btn {
  min-width: 180px;
  text-align: center;
}

/* ----- Cart ----- */
.mg_cart_layout {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 991px) {
  .mg_cart_layout {
    grid-template-columns: 1fr;
  }
}
.mg_cart_row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-color);
  align-items: center;
}
@media (max-width: 575px) {
  .mg_cart_row {
    grid-template-columns: 84px 1fr;
  }
  .mg_cart_row_aside {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}
.mg_cart_thumb {
  width: 110px;
  aspect-ratio: 1;
  border-radius: var(--mg-radius-sm);
  overflow: hidden;
  background: var(--gray-color);
}
@media (max-width: 575px) {
  .mg_cart_thumb {
    width: 84px;
  }
}
.mg_cart_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mg_cart_title {
  font-size: 18px;
  margin: 0 0 4px;
}
.mg_cart_title a {
  color: var(--heading-color);
  text-decoration: none;
}
.mg_cart_sub {
  margin: 0;
  font-size: 14px;
}
.mg_cart_remove {
  border: 0;
  background: transparent;
  color: var(--body-color);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin-top: 8px;
}
.mg_cart_summary {
  padding: 28px;
  background: var(--gray-color);
  border-radius: var(--mg-radius);
  position: sticky;
  top: 100px;
}
.mg_summary_row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--heading-color);
}
.mg_summary_row.total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgb(55 72 54 / 18%);
  font-size: 20px;
  font-weight: 700;
}
.mg_cart_summary .cs_btn {
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

/* ----- Checkout ----- */
.mg_checkout_grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}
@media (max-width: 991px) {
  .mg_checkout_grid {
    grid-template-columns: 1fr;
  }
}
.mg_form_block {
  margin-bottom: 28px;
}
.mg_form_block label {
  display: block;
  margin-bottom: 8px;
  color: var(--heading-color);
  font-weight: 600;
  font-size: 14px;
}
.mg_form_block input,
.mg_form_block select,
.mg_form_block textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--gray-color);
  border-radius: var(--mg-radius-sm);
  background: var(--mg-surface);
  color: var(--mg-text);
  font-family: var(--body-font);
  font-size: 16px;
  transition: border-color 0.2s var(--mg-ease);
}
.mg_form_block input:focus,
.mg_form_block select:focus,
.mg_form_block textarea:focus {
  outline: 2px solid var(--heading-color);
  outline-offset: 1px;
  border-color: var(--heading-color);
}
.mg_form_block textarea {
  min-height: 120px;
  resize: vertical;
}
.mg_form_hint {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--body-color);
}
.mg_form_action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--heading-color);
  border-radius: var(--mg-radius-sm);
  background: transparent;
  color: var(--heading-color);
  font-family: var(--body-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s var(--mg-ease), background-color 0.2s var(--mg-ease),
    border-color 0.2s var(--mg-ease), transform 0.2s var(--mg-ease);
}
.mg_form_action span {
  font-size: 20px;
  font-weight: 400;
  line-height: 0;
  transform: translateY(-1px);
}
.mg_form_action:hover {
  background: var(--heading-color);
  color: var(--white-color);
}
.mg_form_action:active {
  transform: translateY(1px) scale(0.99);
}
.mg_form_action:focus-visible {
  outline: 2px solid var(--heading-color);
  outline-offset: 3px;
}

/* ----- Contact CTA ----- */
.mg_contact_cta {
  isolation: isolate;
  min-height: clamp(380px, 48vw, 520px) !important;
  overflow: hidden;
}
.mg_contact_cta::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(180deg, rgb(10 18 11 / 8%) 20%, rgb(10 18 11 / 78%) 100%);
}
.mg_contact_cta_content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: clamp(8px, 1.5vw, 20px);
}
.mg_contact_cta .cs_arrow_btn {
  z-index: 1;
}
.mg_contact_cta_title {
  max-width: 18ch;
  margin: 0 0 14px;
  color: #f9fbf3;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.mg_contact_cta_text {
  max-width: 62ch;
  margin: 0;
  color: rgb(249 251 243 / 84%);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.75;
  text-wrap: pretty;
}
@media (max-width: 575px) {
  .mg_contact_cta {
    min-height: 430px !important;
  }
  .mg_contact_cta_content {
    padding: 0;
  }
}

.mg_pay_option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--gray-color);
  border-radius: var(--mg-radius-sm);
  margin-bottom: 10px;
  cursor: pointer;
  color: var(--heading-color);
}
.mg_pay_option.is-active {
  border-color: var(--heading-color);
  background: rgb(55 72 54 / 4%);
}

/* ----- Artists ----- */
.mg_artist_grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
@media (max-width: 991px) {
  .mg_artist_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575px) {
  .mg_artist_grid {
    grid-template-columns: 1fr;
  }
}
.mg_artist_card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.mg_artist_photo {
  aspect-ratio: 3 / 4;
  border-radius: var(--mg-radius);
  overflow: hidden;
  background: var(--gray-color);
  margin-bottom: 16px;
}
.mg_artist_photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--mg-ease);
}
.mg_artist_card:hover .mg_artist_photo img {
  transform: scale(1.05);
}
.mg_artist_name {
  margin: 0 0 4px;
  font-size: 22px;
  color: var(--heading-color);
}
.mg_artist_role {
  margin: 0;
  font-size: 14px;
}

.mg_artist_hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 991px) {
  .mg_artist_hero {
    grid-template-columns: 1fr;
  }
}
.mg_artist_hero_photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--mg-radius);
  overflow: hidden;
  background: var(--gray-color);
}
.mg_artist_hero_photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----- Public artist profile ----- */
.mg_header_light_surface {
  background: rgb(235 241 229 / 94%);
  border-bottom: 1px solid rgb(55 72 54 / 20%);
  box-shadow: 0 12px 34px rgb(55 72 54 / 8%);
  backdrop-filter: blur(18px);
}
.mg_header_light_surface .cs_nav .cs_nav_list > li > a,
.mg_header_light_surface .cs_header_icon_btn,
.mg_header_light_surface .cs_heading_color,
.mg_header_light_surface .mg_brand_name {
  color: #263525 !important;
}
.mg_header_light_surface .mg_brand_mark {
  color: #496448 !important;
  filter: drop-shadow(0 5px 10px rgb(55 72 54 / 14%));
}
.mg_header_light_surface .mg_brand_leaf_vein {
  stroke: #e8efe3;
}
.mg_header_light_surface .cs_nav .cs_nav_list > li > a.active {
  color: #1d2d1c !important;
  box-shadow: inset 0 -2px #718b67;
}
.mg_header_light_surface .mg_pref_switch {
  border-color: rgb(55 72 54 / 20%);
  background: rgb(255 255 255 / 46%);
}
.mg_header_light_surface .mg_pref_btn {
  color: #3f4f3d;
}
.mg_header_light_surface .mg_pref_btn:hover {
  color: #263525;
  background: rgb(55 72 54 / 10%);
}
.mg_header_light_surface .mg_pref_btn.is-active,
.mg_header_light_surface .mg_pref_btn[aria-pressed="true"] {
  background: #374836;
  color: #ffffff;
}
.mg_header_light_surface .cs_menu_toggle span,
.mg_header_light_surface .cs_menu_toggle span::before,
.mg_header_light_surface .cs_menu_toggle span::after {
  background: #263525;
}
@media (max-width: 1199px) {
  .mg_header_light_surface .cs_nav_list_wrap .cs_nav_list a {
    color: #f9fbf3 !important;
  }
}
.mg_artist_profile_page {
  background: #f5f7f0;
}
.mg_artist_profile_hero {
  padding: 152px 0 96px;
  background:
    radial-gradient(circle at 14% 24%, rgb(132 157 117 / 22%), transparent 32%),
    radial-gradient(circle at 88% 72%, rgb(205 220 193 / 58%), transparent 36%),
    linear-gradient(135deg, #f8f8f2 0%, #edf3e8 48%, #f4f0e4 100%);
  border-bottom: 1px solid rgb(55 72 54 / 10%);
}
.mg_artist_profile_breadcrumb {
  margin-bottom: 44px;
}
.mg_artist_profile_breadcrumb a {
  color: #61705f;
  opacity: 1;
}
.mg_artist_profile_breadcrumb .active {
  color: #263525;
  font-weight: 600;
}
.mg_artist_profile_hero .mg_artist_hero {
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(40px, 7vw, 96px);
}
.mg_artist_profile_hero .mg_artist_hero_photo {
  width: 100%;
  max-width: 480px;
  justify-self: start;
  border-radius: 24px;
  border: 8px solid rgb(255 255 255 / 58%);
  outline: 1px solid rgb(55 72 54 / 14%);
  box-shadow: 0 30px 70px rgb(55 72 54 / 16%);
}
.mg_artist_profile_content {
  max-width: 680px;
}
.mg_artist_profile_eyebrow {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 7px 11px;
  border: 1px solid rgb(55 72 54 / 14%);
  border-radius: 7px;
  background: rgb(221 232 213 / 82%);
  color: #30432e;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mg_artist_profile_content h1 {
  margin: 0 0 24px;
  color: var(--heading-color);
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.mg_artist_profile_bio {
  max-width: 62ch;
  color: var(--body-color);
  font-size: 18px;
  line-height: 1.8;
}
.mg_artist_profile_bio > :last-child {
  margin-bottom: 0;
}
.mg_artist_profile_actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin-top: 34px;
}
.mg_artist_profile_socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--mg-border);
  list-style: none;
  font-size: 14px;
  font-weight: 600;
}
.mg_artist_profile_socials a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.mg_artist_works,
.mg_artist_join {
  padding: 88px 0 96px;
}
.mg_artist_works {
  background:
    radial-gradient(circle at 85% 18%, rgb(255 255 255 / 52%), transparent 30%),
    linear-gradient(180deg, #dfe9d8 0%, #ebf1e6 100%) !important;
}
.mg_artist_join {
  background:
    radial-gradient(circle at 12% 70%, rgb(211 225 201 / 45%), transparent 30%),
    #f7f8f2;
}
.mg_artist_section_heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  justify-content: space-between;
  align-items: end;
  gap: 28px 64px;
  margin-bottom: 48px;
}
.mg_artist_section_heading h2,
.mg_artist_join h2 {
  margin: 0;
  color: #2b3d2a;
  -webkit-text-fill-color: #2b3d2a;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.mg_artist_section_heading p,
.mg_artist_works .mg_blog_date,
.mg_artist_works > .container > .mg_blog_grid > p {
  color: #4a5c48;
  -webkit-text-fill-color: #4a5c48;
}
.mg_artist_section_heading p {
  max-width: 50ch;
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
}
.mg_artist_works .mg_blog_title {
  color: #2b3d2a;
  -webkit-text-fill-color: #2b3d2a;
}
.mg_artist_join p {
  max-width: 52ch;
  margin: 18px 0 32px;
  color: #4a5c48;
  -webkit-text-fill-color: #4a5c48;
  font-size: 17px;
  line-height: 1.7;
}
@media (max-width: 991px) {
  .mg_artist_profile_hero {
    padding: 124px 0 72px;
  }
  .mg_artist_profile_breadcrumb {
    margin-bottom: 32px;
  }
  .mg_artist_profile_hero .mg_artist_hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .mg_artist_profile_hero .mg_artist_hero_photo {
    max-width: 560px;
  }
  .mg_artist_section_heading {
    grid-template-columns: 1fr;
    align-items: start;
  }
}
@media (max-width: 575px) {
  .mg_artist_profile_hero {
    padding: 104px 0 60px;
  }
  .mg_artist_profile_breadcrumb {
    margin-bottom: 24px;
    font-size: 13px;
  }
  .mg_artist_profile_hero .mg_artist_hero {
    gap: 30px;
  }
  .mg_artist_profile_hero .mg_artist_hero_photo {
    border-radius: var(--mg-radius-sm);
  }
  .mg_artist_profile_content h1 {
    margin-bottom: 18px;
    font-size: clamp(36px, 12vw, 48px);
  }
  .mg_artist_profile_bio {
    font-size: 16px;
    line-height: 1.75;
  }
  .mg_artist_profile_actions {
    margin-top: 28px;
  }
  .mg_artist_works,
  .mg_artist_join {
    padding: 64px 0 70px;
  }
  .mg_artist_section_heading {
    margin-bottom: 34px;
  }
}

/* ----- Home: featured products strip ----- */
.mg_home_products .mg_product_grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 24px;
}
.mg_home_products .mg_product_media {
  margin-bottom: 16px;
}
.mg_home_products .mg_product_title {
  font-size: 18px;
}
.mg_home_products .mg_product_footer {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.mg_home_products .mg_add_btn {
  width: 100%;
  background: var(--heading-color);
  color: var(--white-color);
  border-color: var(--heading-color);
}
.mg_home_products .mg_add_btn:hover {
  background: transparent;
  color: var(--heading-color);
}
.mg_home_products > .container > .cs_fs_20 {
  color: var(--body-color);
  max-width: 48rem;
}
.mg_home_products_lead {
  color: var(--body-color);
  max-width: 48rem;
}
@media (max-width: 1199px) {
  .mg_home_products .mg_product_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575px) {
  .mg_home_products .mg_product_grid {
    grid-template-columns: 1fr;
  }
}

/* ----- FAQ compact ----- */
.mg_faq_item {
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-radius-sm);
  padding: 16px 20px;
  background: var(--mg-surface);
  margin-bottom: 12px;
}
.mg_faq_item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--mg-text);
  font-family: var(--heading-font);
}
.mg_faq_item summary::-webkit-details-marker {
  display: none;
}
.mg_faq_item p {
  margin: 12px 0 0;
  max-width: 65ch;
  font-size: 16px;
  color: var(--mg-muted);
}

/* ----- Alerts / editor surfaces (themeable) ----- */
.mg_alert {
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  margin-bottom: 16px;
}
.mg_alert p {
  margin: 0;
}
.mg_alert p + p {
  margin-top: 4px;
}
.mg_alert--success {
  border-color: #3d6b45;
  background: #eef6ef;
  color: #2f5a36;
}
.mg_alert--warn {
  border-color: #d4a017;
  background: #fff8e8;
  color: #6b4e00;
}
.mg_alert--error {
  border-color: #c45c5c;
  background: #fff5f5;
  color: #8a2f2f;
}
.mg_alert .mg_form_hint {
  color: inherit;
}
.mg_editor_surface {
  min-height: 280px;
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-radius-sm);
  overflow: hidden;
  background: var(--mg-surface);
}
.mg_editor_surface--tall {
  min-height: 320px;
}
.mg_form_error {
  color: #8a2f2f;
}

/* ----- Auth ----- */
.mg_auth_wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px;
  border: 1px solid rgb(55 72 54 / 10%);
  border-radius: var(--mg-radius);
  background: var(--gray-color);
  box-shadow: 0 24px 60px rgb(55 72 54 / 8%);
}
.mg_auth_wrap--wide {
  max-width: 680px;
}
.mg_auth_intro {
  max-width: 52ch;
  margin-bottom: 32px;
}
.mg_auth_intro p {
  margin-bottom: 0;
}
.mg_auth_form_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}
.mg_auth_form_grid .mg_form_block--full {
  grid-column: 1 / -1;
}
.mg_password_control {
  position: relative;
}
.mg_password_control input {
  padding-inline-end: 52px;
}
.mg_password_toggle {
  position: absolute;
  top: 50%;
  inset-inline-end: 12px;
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--body-color);
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 0.2s var(--mg-ease), background-color 0.2s var(--mg-ease);
}
.mg_password_toggle:hover,
.mg_password_toggle:focus-visible {
  background: rgb(55 72 54 / 8%);
  color: var(--heading-color);
}
.mg_password_toggle:focus-visible {
  outline: 2px solid var(--heading-color);
  outline-offset: 1px;
}
.mg_password_meter {
  height: 6px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(55 72 54 / 12%);
}
.mg_password_meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #a34848;
  transition: width 0.3s var(--mg-ease), background-color 0.3s var(--mg-ease);
}
.mg_password_meter span[data-strength="weak"] {
  width: 33%;
}
.mg_password_meter span[data-strength="medium"] {
  width: 66%;
  background: #9a710f;
}
.mg_password_meter span[data-strength="strong"] {
  width: 100%;
  background: #3d6b45;
}
.mg_auth_actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.mg_auth_actions .mg_pay_option {
  padding: 0;
  border: 0;
  background: transparent;
}
.mg_auth_actions > a {
  color: var(--heading-color);
  font-size: 14px;
  font-weight: 600;
}
.mg_auth_submit {
  min-height: 52px;
}
.mg_auth_submit [wire\:loading] {
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mg_auth_links {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgb(55 72 54 / 12%);
  text-align: center;
}
.mg_auth_links a {
  color: var(--heading-color);
  font-weight: 600;
}
@media (max-width: 991px) {
  .mg_auth_page_heading {
    min-height: 300px;
  }
  .mg_auth_section {
    padding-block: 56px;
  }
  .mg_auth_section > .cs_height_100 {
    display: none;
  }
  .mg_auth_wrap {
    padding: 28px;
  }
}
@media (max-width: 575px) {
  .mg_auth_page_heading {
    min-height: 240px;
  }
  .mg_auth_section {
    padding-block: 36px;
  }
  .mg_auth_wrap {
    padding: 22px 18px;
    border-radius: var(--mg-radius-sm);
  }
  .mg_auth_form_grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .mg_auth_form_grid .mg_form_block--full {
    grid-column: auto;
  }
  .mg_auth_actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ----- Blog teaser on home ----- */
.mg_blog_grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
@media (max-width: 991px) {
  .mg_blog_grid {
    grid-template-columns: 1fr;
  }
}
.mg_blog_card a {
  text-decoration: none;
  color: inherit;
  display: block;
}
.mg_blog_thumb {
  aspect-ratio: 16 / 10;
  border-radius: var(--mg-radius);
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--gray-color);
}
.mg_blog_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--mg-ease);
}
.mg_blog_card:hover .mg_blog_thumb img {
  transform: scale(1.04);
}
.mg_blog_date {
  font-size: 13px;
  margin: 0 0 6px;
}
.mg_blog_title {
  font-size: 22px;
  margin: 0;
  color: var(--heading-color);
}

/* ----- Blog article ----- */
.mg_blog_article {
  overflow: hidden;
  border: 1px solid var(--mg-border, var(--gray-color));
  border-radius: 24px;
  background: var(--mg-surface, #fff);
  box-shadow: 0 24px 60px rgb(55 72 54 / 8%);
}
.mg_blog_article .mg_blog_article_media {
  margin-bottom: 0;
  border-radius: 0;
}
.mg_blog_article .mg_blog_article_media img {
  display: block;
  border-radius: 0;
}
.mg_blog_article .mg_blog_article_content {
  padding: clamp(26px, 4vw, 44px);
  border-radius: 0 0 23px 23px;
}
@media (max-width: 575px) {
  .mg_blog_article {
    border-radius: 16px;
  }
  .mg_blog_article .mg_blog_article_content {
    border-radius: 0 0 15px 15px;
  }
}

/* ----- Blog listing cards ----- */
.mg_blog_post_card {
  overflow: hidden;
  border-radius: var(--mg-radius);
  background: transparent;
}
.mg_blog_post_media {
  display: block;
  aspect-ratio: 16 / 10;
  width: 100%;
  margin-bottom: 0 !important;
  border-radius: var(--mg-radius) var(--mg-radius) 0 0;
  overflow: hidden;
  background: var(--gray-color);
}
.mg_blog_post_media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0 !important;
  transition: transform 0.6s var(--mg-ease);
}
.mg_blog_post_card:hover .mg_blog_post_media img {
  transform: scale(1.03);
}
.mg_blog_post_body {
  margin-top: 0 !important;
  padding: 28px 28px 30px;
  border-radius: 0 0 var(--mg-radius) var(--mg-radius);
  background: var(--mg-surface, #fff);
  border: 1px solid var(--mg-border, var(--gray-color));
  border-top: 0;
}
.mg_blog_post_body .cs_post_title {
  font-size: clamp(26px, 3vw, 36px) !important;
  line-height: 1.25;
}
.mg_blog_post_body .cs_post_sub_title {
  color: var(--mg-muted, var(--body-color));
}
@media (max-width: 767px) {
  .mg_blog_post_media {
    aspect-ratio: 4 / 3;
  }
  .mg_blog_post_body {
    padding: 22px 20px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mg_product_card,
  .mg_product_media img,
  .mg_artist_photo img,
  .mg_blog_thumb img,
  .mg_add_btn,
  .mg_filter_chip,
  .mg_project_card .cs_card_thumb,
  .mg_collection_feature {
    transition: none !important;
  }
  .mg_product_card:hover,
  .mg_product_card:hover .mg_product_media img,
  .mg_artist_card:hover .mg_artist_photo img,
  .mg_blog_card:hover .mg_blog_thumb img,
  .mg_project_card:hover .cs_card_thumb,
  .mg_collection_feature:hover {
    transform: none;
  }
}

/* ----- Header locale + theme ----- */
/* ----- Brand (Magic Garden) ----- */
.mg_brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  max-width: 100%;
  overflow: visible;
}
.mg_brand_mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--white-color);
  line-height: 0;
  flex-shrink: 0;
  overflow: visible;
}
.mg_brand_mark svg {
  display: block;
  width: 40px;
  height: 40px;
  overflow: visible;
}
.cs_site_header .cs_site_branding.mg_brand {
  overflow: visible;
}
.mg_brand_name {
  display: block;
  font-family: var(--heading-font);
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--white-color);
  white-space: nowrap;
}
.mg_brand_img {
  display: block;
  max-height: 40px;
  width: auto;
}
.cs_site_header .mg_brand_name,
.cs_site_header .mg_brand_mark,
.mg_brand--footer .mg_brand_name,
.mg_brand--footer .mg_brand_mark {
  color: var(--white-color);
}
html[data-theme="dark"] .cs_site_header .mg_brand_name,
html[data-theme="dark"] .cs_site_header .mg_brand_mark,
html[data-theme="dark"] .mg_brand--footer .mg_brand_name,
html[data-theme="dark"] .mg_brand--footer .mg_brand_mark {
  color: var(--mg-night-cream, #f9fbf3);
}

/* Keep brand / nav / prefs from colliding on dense headers */
@media (min-width: 1200px) {
  .cs_site_header.cs_style_1 .cs_main_header_in {
    flex-wrap: nowrap;
    gap: 16px;
  }
  .cs_site_header.cs_style_1 .cs_main_header_left {
    flex: 0 0 auto;
  }
  .cs_site_header.cs_style_1 .cs_main_header_center {
    flex: 1 1 auto;
    min-width: 0;
  }
  .cs_site_header.cs_style_1 .cs_main_header_right {
    flex: 0 0 auto;
    gap: 18px;
  }
  .cs_site_header.cs_style_1 .cs_nav .cs_nav_list {
    justify-content: center;
    column-gap: clamp(16px, 2.2vw, 36px);
  }
  .cs_site_header.cs_style_1 .cs_nav .cs_nav_list > li {
    margin-right: 0;
  }
  html[dir="rtl"] .cs_site_header.cs_style_1 .cs_nav .cs_nav_list > li {
    margin-left: 0;
  }
}

.mg_header_prefs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-inline-end: 8px;
  flex-shrink: 0;
}
.mg_pref_switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgb(249 251 243 / 14%);
  border: 1px solid rgb(249 251 243 / 22%);
}
.mg_pref_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgb(249 251 243 / 82%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s var(--mg-ease), color 0.25s var(--mg-ease);
}
.mg_pref_btn:hover {
  color: #f9fbf3;
  background: rgb(249 251 243 / 10%);
}
.mg_pref_btn.is-active,
.mg_pref_btn[aria-pressed="true"] {
  background: #f9fbf3;
  color: #374836;
}
.mg_pref_btn.is-active:hover,
.mg_pref_btn[aria-pressed="true"]:hover {
  background: #f9fbf3;
  color: #374836;
}

/* ----- Artist Studio ----- */
.mg_studio_nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  padding: 8px;
  background: var(--gray-color);
  border-radius: 999px;
}
.mg_studio_nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--heading-color);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.mg_studio_nav a.is-active,
.mg_studio_nav a:hover {
  background: var(--heading-color);
  color: var(--white-color);
}

/* Account profile / password tabs (same pill language as studio nav) */
.mg_account_tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 32px;
  padding: 6px;
  background: var(--gray-color);
  border-radius: 999px;
}
.mg_account_tabs button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--heading-color);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  box-shadow: none;
}
.mg_account_tabs button:hover {
  background: color-mix(in srgb, var(--heading-color) 10%, transparent);
}
.mg_account_tabs button.is-active {
  background: var(--heading-color);
  color: var(--white-color);
}
.mg_account_tabs button:focus-visible {
  box-shadow: 0 0 0 2px var(--heading-color);
}

.mg_studio_stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
@media (max-width: 991px) {
  .mg_studio_stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.mg_studio_stat {
  padding: 24px;
  background: var(--gray-color);
  border-radius: var(--mg-radius);
}
.mg_studio_stat strong {
  display: block;
  font-size: 32px;
  color: var(--heading-color);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin-bottom: 6px;
}
.mg_studio_stat span {
  font-size: 14px;
  color: var(--body-color);
}
.mg_table_wrap {
  overflow-x: auto;
  border-radius: var(--mg-radius);
  background: var(--mg-surface);
  border: 1px solid var(--mg-border);
}
.mg_table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.mg_table th,
.mg_table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--gray-color);
  color: var(--heading-color);
  vertical-align: middle;
}
.mg_table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--body-color);
  font-weight: 700;
}
.mg_table tr:last-child td {
  border-bottom: 0;
}
.mg_status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--gray-color);
  font-size: 12px;
  font-weight: 700;
  color: var(--heading-color);
}
.mg_status.is-live {
  background: rgb(55 72 54 / 12%);
}
.mg_follower_row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-color);
}
.mg_follower_row img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--gray-color);
}
.mg_follower_row h4 {
  margin: 0 0 2px;
  font-size: 16px;
}
.mg_follower_row p {
  margin: 0;
  font-size: 13px;
}

/* ----- Collection detail ----- */
.mg_collection_hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}
@media (max-width: 991px) {
  .mg_collection_hero {
    grid-template-columns: 1fr;
  }
}
.mg_collection_cover {
  aspect-ratio: 4 / 3;
  border-radius: var(--mg-radius);
  overflow: hidden;
  background: var(--gray-color);
}
.mg_collection_cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mg_collection_meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 20px 0 28px;
  font-size: 15px;
  color: var(--heading-color);
  font-weight: 600;
}

/* ----- Order confirmation ----- */
.mg_confirm {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.mg_confirm_icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--gray-color);
  color: var(--heading-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.mg_confirm_card {
  text-align: left;
  padding: 28px;
  background: var(--gray-color);
  border-radius: var(--mg-radius);
  margin-top: 32px;
}
.mg_confirm_card .mg_summary_row {
  margin-bottom: 10px;
}

/* ----- Dark mode (Forest Night) -----
   Keep --white-color / --heading-color as brand utilities
   (used for BOTH text and backgrounds). Surfaces use --mg-* tokens. */
html[data-theme="dark"] {
  color-scheme: dark;
  --mg-night-bg: #0f1410;
  --mg-night-surface: #171d16;
  --mg-night-elevated: #1c241c;
  --mg-night-border: #2a342a;
  --mg-night-text: #e8efe4;
  --mg-night-muted: rgb(232 239 228 / 68%);
  --mg-night-cream: #f9fbf3;

  --gray-color: var(--mg-night-elevated);
  --border-color: var(--mg-night-border);
  --body-color: var(--mg-night-muted);
  --mg-surface: var(--mg-night-surface);
  --mg-elevated: var(--mg-night-elevated);
  --mg-border: var(--mg-night-border);
  --mg-text: var(--mg-night-text);
  --mg-muted: var(--mg-night-muted);

  background-color: var(--mg-night-bg);
}
html[data-theme="dark"] body {
  background-color: var(--mg-night-bg);
  color: var(--mg-muted);
}

/* Readable headings on dark page (skip forced white / gradient / button text) */
html[data-theme="dark"] h1:not(.cs_white_color):not(.cs_gradient_color_1),
html[data-theme="dark"] h2:not(.cs_white_color):not(.cs_gradient_color_1),
html[data-theme="dark"] h3:not(.cs_white_color):not(.cs_gradient_color_1),
html[data-theme="dark"] h4:not(.cs_white_color),
html[data-theme="dark"] h5:not(.cs_white_color),
html[data-theme="dark"] h6:not(.cs_white_color),
html[data-theme="dark"] .cs_section_title:not(.cs_white_color),
html[data-theme="dark"] .cs_heading_color:not(.cs_btn):not(.cs_arrow_btn),
html[data-theme="dark"] .cs_secondary_font:not(.cs_white_color):not(.cs_gradient_color_1) {
  color: var(--mg-night-text);
}
html[data-theme="dark"] p:not(.cs_white_color):not(.cs_opacity_7_5) {
  color: var(--mg-night-muted);
}
html[data-theme="dark"] a:not(.cs_btn):not(.cs_white_color):not(.mg_add_btn):not(.mg_pref_btn):not(.cs_arrow_btn) {
  color: inherit;
}

/* Shell surfaces */
html[data-theme="dark"] .cs_gray_bg,
html[data-theme="dark"] .cs_white_bg:not(.cs_btn):not(.cs_header_icon_btn):not(.cs_arrow_btn) {
  background-color: var(--mg-night-elevated) !important;
}
html[data-theme="dark"] .cs_site_header,
html[data-theme="dark"] .cs_site_header.cs_sticky_header.cs_sticky_active,
html[data-theme="dark"] .cs_site_header.cs_style_1.cs_sticky_active,
html[data-theme="dark"] .cs_footer,
html[data-theme="dark"] .cs_preloader {
  background: var(--mg-night-bg);
}
html[data-theme="dark"] .mg_header_light_surface {
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}
html[data-theme="dark"] .mg_header_light_surface .cs_nav .cs_nav_list > li > a,
html[data-theme="dark"] .mg_header_light_surface .cs_header_icon_btn,
html[data-theme="dark"] .mg_header_light_surface .cs_heading_color,
html[data-theme="dark"] .mg_header_light_surface .mg_brand_name {
  color: var(--mg-night-text) !important;
}
html[data-theme="dark"] .mg_header_light_surface .mg_brand_mark {
  color: var(--mg-night-text) !important;
  filter: none;
}
html[data-theme="dark"] .mg_header_light_surface .mg_brand_leaf_vein {
  stroke: #1a2418;
}
html[data-theme="dark"] .mg_header_light_surface .cs_nav .cs_nav_list > li > a.active {
  color: var(--mg-night-cream) !important;
  box-shadow: inset 0 -2px var(--mg-night-cream);
}
html[data-theme="dark"] .mg_artist_profile_page {
  background: var(--mg-night-bg);
}
html[data-theme="dark"] .mg_artist_profile_hero {
  background: var(--mg-night-bg);
  border-bottom: 0;
}
html[data-theme="dark"] .mg_artist_profile_hero .mg_artist_hero_photo {
  border: 0;
  outline: 0;
  box-shadow: none;
}
html[data-theme="dark"] .mg_artist_profile_eyebrow {
  display: block;
  margin-bottom: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--mg-night-text);
}
html[data-theme="dark"] .mg_artist_join {
  background: var(--mg-night-bg);
}
html[data-theme="dark"] .mg_artist_works {
  background: var(--mg-night-elevated) !important;
}
html[data-theme="dark"] .mg_artist_section_heading h2,
html[data-theme="dark"] .mg_artist_join h2,
html[data-theme="dark"] .mg_artist_works .mg_blog_title {
  color: var(--mg-night-text);
  -webkit-text-fill-color: var(--mg-night-text);
}
html[data-theme="dark"] .mg_artist_section_heading p,
html[data-theme="dark"] .mg_artist_works .mg_blog_date,
html[data-theme="dark"] .mg_artist_works > .container > .mg_blog_grid > p,
html[data-theme="dark"] .mg_artist_join p {
  color: var(--mg-night-muted);
  -webkit-text-fill-color: var(--mg-night-muted);
}
html[data-theme="dark"] .mg_artist_profile_breadcrumb a {
  color: var(--mg-night-muted);
}
html[data-theme="dark"] .mg_artist_profile_breadcrumb .active {
  color: var(--mg-night-text);
}
html[data-theme="dark"] .cs_preloader_text {
  color: var(--mg-night-text);
}

/* After first boot, keep SPA (wire:navigate) from re-showing the LeafLife preloader */
html.mg-booted .cs_preloader {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html[data-theme="dark"] .cs_main_header .cs_nav_list > li > a,
html[data-theme="dark"] .cs_header_icon_btn,
html[data-theme="dark"] .cs_site_header .cs_heading_color,
html[data-theme="dark"] .cs_menu_toggle,
html[data-theme="dark"] .cs_footer a,
html[data-theme="dark"] .cs_footer_widget_title,
html[data-theme="dark"] .cs_footer p {
  color: var(--mg-night-text);
}
html[data-theme="dark"] .cs_footer a:hover {
  color: var(--mg-night-cream);
}
html[data-theme="dark"] .cs_menu_toggle span,
html[data-theme="dark"] .cs_menu_toggle span:before,
html[data-theme="dark"] .cs_menu_toggle span:after {
  background: var(--mg-night-text);
}

/* Mobile drawer / dropdown menus */
@media (max-width: 1199px) {
  html[data-theme="dark"] .cs_nav .cs_nav_list_wrap,
  html[data-theme="dark"] .cs_nav .cs_nav_list,
  html[data-theme="dark"] .cs_nav .cs_nav_list ul {
    background: var(--mg-night-bg);
  }
  html[data-theme="dark"] .cs_nav .cs_nav_list a {
    color: var(--mg-night-text);
  }
  html[data-theme="dark"] .cs_nav .cs_nav_list a:hover {
    color: var(--mg-night-cream);
  }
}
@media (min-width: 1200px) {
  html[data-theme="dark"] .cs_nav .cs_nav_list ul {
    background: var(--mg-night-elevated);
    border-color: var(--mg-night-border);
  }
  html[data-theme="dark"] .cs_nav .cs_nav_list ul a {
    color: var(--mg-night-text);
  }
  html[data-theme="dark"] .cs_nav .cs_nav_list ul a:hover {
    background: var(--mg-night-surface);
    color: var(--mg-night-cream);
  }
}

html[data-theme="dark"] .mg_pref_switch {
  background: rgb(232 239 228 / 10%);
  border-color: rgb(232 239 228 / 18%);
}
html[data-theme="dark"] .mg_pref_btn {
  color: rgb(232 239 228 / 78%);
}
html[data-theme="dark"] .mg_pref_btn:hover {
  color: var(--mg-night-text);
  background: rgb(232 239 228 / 10%);
}
html[data-theme="dark"] .mg_pref_btn.is-active,
html[data-theme="dark"] .mg_pref_btn[aria-pressed="true"],
html[data-theme="dark"] a.mg_pref_btn.is-active,
html[data-theme="dark"] a.mg_pref_btn[aria-pressed="true"] {
  background: var(--mg-night-cream);
  color: var(--mg-night-bg) !important;
}
html[data-theme="dark"] .mg_pref_btn.is-active:hover,
html[data-theme="dark"] .mg_pref_btn[aria-pressed="true"]:hover,
html[data-theme="dark"] a.mg_pref_btn.is-active:hover {
  background: var(--mg-night-cream);
  color: var(--mg-night-bg) !important;
}

/* Hero + photo page headings: always light type on photo */
html[data-theme="dark"] .cs_hero.cs_style_1 {
  color: var(--mg-night-cream);
}
html[data-theme="dark"] .cs_hero.cs_style_1 .cs_hero_title.cs_gradient_color_1 {
  background: -webkit-linear-gradient(45deg, #e1ece3, #f9fbf3 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[data-theme="dark"] .cs_hero.cs_style_1 .cs_hero_subtitle,
html[data-theme="dark"] .cs_hero.cs_style_1 .cs_white_color,
html[data-theme="dark"] .cs_hero.cs_style_1 .cs_btn.cs_style_2,
html[data-theme="dark"] .cs_hero.cs_style_1 .cs_opacity_7_5,
html[data-theme="dark"] .cs_hero.cs_style_1 p {
  color: var(--mg-night-cream) !important;
  -webkit-text-fill-color: var(--mg-night-cream);
}
html[data-theme="dark"] .cs_hero.cs_style_1 .cs_btn.cs_style_1.cs_white_bg {
  background-color: var(--mg-night-cream) !important;
  color: #374836 !important;
  -webkit-text-fill-color: #374836;
}
html[data-theme="dark"] .breadcrumb,
html[data-theme="dark"] .breadcrumb a {
  color: rgb(249 251 243 / 80%);
}
html[data-theme="dark"] .cs_page_heading .cs_page_title,
html[data-theme="dark"] .cs_page_heading .cs_white_color,
html[data-theme="dark"] .cs_page_heading h1,
html[data-theme="dark"] .cs_page_heading h2 {
  color: var(--mg-night-cream) !important;
}

/* Forms / tables / inputs */
html[data-theme="dark"] .mg_table_wrap,
html[data-theme="dark"] .mg_form_block input,
html[data-theme="dark"] .mg_form_block select,
html[data-theme="dark"] .mg_form_block textarea,
html[data-theme="dark"] .cs_form_field,
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: var(--mg-night-surface);
  border-color: var(--mg-night-border);
  color: var(--mg-night-text);
}
html[data-theme="dark"] .mg_form_block input:focus,
html[data-theme="dark"] .mg_form_block select:focus,
html[data-theme="dark"] .mg_form_block textarea:focus,
html[data-theme="dark"] .cs_form_field:focus {
  outline-color: var(--mg-night-cream);
  border-color: var(--mg-night-cream);
}
html[data-theme="dark"] .mg_form_block label,
html[data-theme="dark"] .mg_table th,
html[data-theme="dark"] .mg_table td {
  color: var(--mg-night-text);
}
html[data-theme="dark"] .mg_form_hint {
  color: var(--mg-night-muted);
}
html[data-theme="dark"] .mg_form_action {
  border-color: var(--mg-night-text);
  color: var(--mg-night-text);
}
html[data-theme="dark"] .mg_form_action:hover {
  border-color: var(--mg-night-cream);
  background: var(--mg-night-cream);
  color: var(--mg-night-bg);
}
html[data-theme="dark"] .mg_form_action:focus-visible {
  outline-color: var(--mg-night-cream);
}
html[data-theme="dark"] .mg_pay_option {
  border-color: var(--mg-night-border);
  color: var(--mg-night-text);
  background: var(--mg-night-surface);
}
html[data-theme="dark"] .mg_pay_option.is-active {
  border-color: var(--mg-night-cream);
  background: rgb(232 239 228 / 8%);
}
html[data-theme="dark"] .mg_filter_chip {
  border-color: var(--mg-night-border);
  color: var(--mg-night-text);
  background: transparent;
}
html[data-theme="dark"] .mg_filter_chip:hover,
html[data-theme="dark"] .mg_filter_chip.is-active {
  background: var(--mg-night-cream);
  color: var(--mg-night-bg);
  border-color: var(--mg-night-cream);
}

html[data-theme="dark"] .mg_account_dropdown {
  border-color: var(--mg-night-border);
  background: var(--mg-night-elevated);
  color: var(--mg-night-text);
  box-shadow: 0 24px 60px rgb(0 0 0 / 38%);
}
html[data-theme="dark"] .mg_search_results {
  border-color: var(--mg-night-border);
  background: var(--mg-night-elevated);
  box-shadow: 0 24px 60px rgb(0 0 0 / 38%);
}
html[data-theme="dark"] .mg_search_group + .mg_search_group {
  border-color: var(--mg-night-border);
}
html[data-theme="dark"] .mg_search_empty,
html[data-theme="dark"] .mg_search_group_title,
html[data-theme="dark"] .mg_search_result_subtitle {
  color: var(--mg-night-muted);
}
html[data-theme="dark"] .mg_search_result {
  color: var(--mg-night-text);
}
html[data-theme="dark"] .mg_search_result:hover,
html[data-theme="dark"] .mg_search_result:focus-visible {
  background: var(--mg-night-surface);
}
html[data-theme="dark"] .mg_account_dropdown::before {
  border-color: var(--mg-night-border);
}
html[data-theme="dark"] .mg_account_identity strong,
html[data-theme="dark"] .mg_account_guest strong,
html[data-theme="dark"] .mg_account_links a,
html[data-theme="dark"] .mg_account_logout {
  color: var(--mg-night-text);
}
html[data-theme="dark"] .mg_account_identity span,
html[data-theme="dark"] .mg_account_guest span,
html[data-theme="dark"] .mg_account_links a i,
html[data-theme="dark"] .mg_account_logout i {
  color: var(--mg-night-muted);
}
html[data-theme="dark"] .mg_account_links,
html[data-theme="dark"] .mg_account_dropdown form {
  border-color: var(--mg-night-border);
}
html[data-theme="dark"] .mg_account_links a:hover,
html[data-theme="dark"] .mg_account_links a:focus-visible,
html[data-theme="dark"] .mg_account_logout:hover,
html[data-theme="dark"] .mg_account_logout:focus-visible {
  background: var(--mg-night-surface);
  color: var(--mg-night-cream);
}
html[data-theme="dark"] .mg_project_card {
  border-color: var(--mg-night-border);
  background: var(--mg-night-elevated);
  box-shadow: 0 24px 64px rgb(0 0 0 / 22%);
}
html[data-theme="dark"] .mg_project_card .cs_card_info,
html[data-theme="dark"] .mg_project_card .cs_card_info h3 {
  color: var(--mg-night-cream) !important;
}
html[data-theme="dark"] .mg_collection_feature,
html[data-theme="dark"] .cs_iconbox.mg_collection_feature {
  border-color: rgb(55 72 54 / 16%);
  /* Mint surface stays; ink text for contrast on dark pages */
  background: #e1ece3 !important;
  color: #374836 !important;
  box-shadow: 0 16px 40px rgb(0 0 0 / 18%);
}
html[data-theme="dark"] .mg_collection_feature h3,
html[data-theme="dark"] .mg_collection_feature h3.cs_fs_24,
html[data-theme="dark"] .mg_collection_feature .cs_iconbox_icon,
html[data-theme="dark"] .mg_collection_feature .cs_iconbox_icon i {
  color: #374836 !important;
}
html[data-theme="dark"] .mg_collection_feature p,
html[data-theme="dark"] .mg_collection_feature p.cs_fs_20,
html[data-theme="dark"] .mg_collection_feature p.mb-0 {
  color: rgb(55 72 54 / 72%) !important;
}
html[data-theme="dark"] .mg_collection_feature.cs_iconbox.cs_style_1 .cs_iconbox_icon,
html[data-theme="dark"] .mg_collection_feature.cs_iconbox.cs_style_1 .cs_iconbox_icon::before {
  background: #ffffff !important;
  color: #374836 !important;
}
html[data-theme="dark"] .mg_collection_feature:hover {
  box-shadow: 0 22px 48px rgb(0 0 0 / 24%);
}

/* Commerce cards */
html[data-theme="dark"] .mg_product_wish {
  background: rgb(15 20 16 / 90%);
  color: var(--mg-night-text);
}
html[data-theme="dark"] .mg_product_wish:hover {
  background: var(--mg-night-cream);
  color: var(--mg-night-bg);
}
html[data-theme="dark"] .mg_cart_summary,
html[data-theme="dark"] .mg_auth_wrap,
html[data-theme="dark"] .mg_confirm_card,
html[data-theme="dark"] .cs_post_info,
html[data-theme="dark"] .mg_blog_post_body,
html[data-theme="dark"] .mg_studio_nav,
html[data-theme="dark"] .mg_studio_stat,
html[data-theme="dark"] .mg_faq_item {
  background: var(--mg-night-elevated);
}
html[data-theme="dark"] .mg_blog_post_body {
  border-color: var(--mg-night-border);
  color: var(--mg-night-text);
}
html[data-theme="dark"] .mg_blog_article {
  border-color: var(--mg-night-border);
  background: var(--mg-night-elevated);
  box-shadow: 0 24px 60px rgb(0 0 0 / 24%);
}
html[data-theme="dark"] .mg_blog_post_media {
  background: var(--mg-night-surface);
}
html[data-theme="dark"] .mg_blog_post_body .cs_post_title a,
html[data-theme="dark"] .mg_blog_post_body .cs_btn.cs_style_2 {
  color: var(--mg-night-cream);
}
html[data-theme="dark"] .mg_blog_post_body .cs_post_sub_title,
html[data-theme="dark"] .mg_blog_post_body .cs_post_meta {
  color: var(--mg-night-muted);
}
html[data-theme="dark"] .mg_cart_row {
  border-color: var(--mg-night-border);
}
html[data-theme="dark"] .mg_cart_title a,
html[data-theme="dark"] .mg_summary_row,
html[data-theme="dark"] .mg_product_card,
html[data-theme="dark"] .mg_artist_card,
html[data-theme="dark"] .mg_blog_card,
html[data-theme="dark"] .mg_product_title a,
html[data-theme="dark"] .mg_product_price,
html[data-theme="dark"] .mg_artist_name,
html[data-theme="dark"] .mg_blog_title,
html[data-theme="dark"] .mg_pdp_price,
html[data-theme="dark"] .mg_variant,
html[data-theme="dark"] .mg_qty button,
html[data-theme="dark"] .mg_qty span,
html[data-theme="dark"] .mg_shop_count,
html[data-theme="dark"] .mg_collection_meta {
  color: var(--mg-night-text);
}
html[data-theme="dark"] .mg_product_artist,
html[data-theme="dark"] .mg_product_price s,
html[data-theme="dark"] .mg_home_products > .container > .cs_fs_20,
html[data-theme="dark"] .mg_home_products_lead,
html[data-theme="dark"] .mg_blog_date,
html[data-theme="dark"] .mg_artist_role,
html[data-theme="dark"] .mg_cart_sub,
html[data-theme="dark"] .mg_cart_remove,
html[data-theme="dark"] .mg_pdp_artist {
  color: var(--mg-night-muted);
}
html[data-theme="dark"] .mg_add_btn,
html[data-theme="dark"] .mg_wishlist_toggle,
html[data-theme="dark"] .mg_variant,
html[data-theme="dark"] .mg_qty button {
  border-color: var(--mg-night-text);
  color: var(--mg-night-text);
  background: transparent;
}
html[data-theme="dark"] .mg_wishlist_toggle.is-active {
  color: #ff8a80;
  border-color: rgba(255, 138, 128, 0.35);
  background: rgba(255, 138, 128, 0.08);
}
html[data-theme="dark"] .mg_add_btn:hover,
html[data-theme="dark"] .mg_variant.is-active {
  background: var(--mg-night-cream);
  color: var(--mg-night-bg);
  border-color: var(--mg-night-cream);
}
html[data-theme="dark"] .mg_home_products .mg_add_btn {
  background: var(--mg-night-cream);
  color: var(--mg-night-bg);
  border-color: var(--mg-night-cream);
}
html[data-theme="dark"] .mg_home_products .mg_add_btn:hover {
  background: transparent;
  color: var(--mg-night-cream);
}
html[data-theme="dark"] .mg_product_badge {
  background: var(--mg-night-cream);
  color: var(--mg-night-bg);
}
html[data-theme="dark"] .mg_product_media,
html[data-theme="dark"] .mg_pdp_main,
html[data-theme="dark"] .mg_pdp_thumbs button,
html[data-theme="dark"] .mg_cart_thumb,
html[data-theme="dark"] .mg_artist_photo,
html[data-theme="dark"] .mg_blog_thumb,
html[data-theme="dark"] .mg_collection_cover {
  background: var(--mg-night-elevated);
  box-shadow: 0 0 0 1px rgb(232 239 228 / 8%);
}
html[data-theme="dark"] .mg_pdp_thumbs button.is-active,
html[data-theme="dark"] .mg_pdp_thumbs button:hover {
  box-shadow: 0 0 0 2px var(--mg-night-cream);
}

/* Buttons style 2 on dark pages */
html[data-theme="dark"] .cs_btn.cs_style_2:not(.cs_white_color) {
  color: var(--mg-night-text);
}
html[data-theme="dark"] .cs_btn.cs_style_1.cs_heading_bg {
  background-color: var(--mg-night-cream);
  color: var(--mg-night-bg);
}
html[data-theme="dark"] .cs_btn.cs_style_1.cs_heading_bg.cs_white_color {
  color: var(--mg-night-bg) !important;
  -webkit-text-fill-color: var(--mg-night-bg);
}
html[data-theme="dark"] .cs_btn.cs_style_1.cs_heading_bg:hover {
  opacity: 0.92;
}

/* Studio */
html[data-theme="dark"] .mg_studio_nav a {
  color: var(--mg-night-text) !important;
}
html[data-theme="dark"] .mg_studio_nav a.is-active,
html[data-theme="dark"] .mg_studio_nav a:hover {
  background: var(--mg-night-cream) !important;
  color: var(--mg-night-bg) !important;
}
html[data-theme="dark"] .mg_studio_nav a.is-active:hover {
  background: var(--mg-night-cream) !important;
  color: var(--mg-night-bg) !important;
}
html[data-theme="dark"] .mg_account_tabs {
  background: var(--mg-night-elevated, #1a211c);
}
html[data-theme="dark"] .mg_account_tabs button {
  color: var(--mg-night-text) !important;
  background: transparent;
  border: 0;
  box-shadow: none;
}
html[data-theme="dark"] .mg_account_tabs button:hover {
  background: color-mix(in srgb, var(--mg-night-cream) 12%, transparent);
}
html[data-theme="dark"] .mg_account_tabs button.is-active {
  background: var(--mg-night-cream) !important;
  color: var(--mg-night-bg) !important;
}
html[data-theme="dark"] .mg_account_tabs button:focus-visible {
  box-shadow: 0 0 0 2px var(--mg-night-cream);
}
html[data-theme="dark"] .mg_studio_stat strong {
  color: var(--mg-night-text);
}
html[data-theme="dark"] .mg_studio_stat span,
html[data-theme="dark"] .mg_status {
  color: var(--mg-night-muted);
}
html[data-theme="dark"] .mg_status {
  background: var(--mg-night-surface);
}
html[data-theme="dark"] .mg_status.is-live {
  background: rgb(232 239 228 / 12%);
  color: var(--mg-night-text);
}
html[data-theme="dark"] .mg_follower_row {
  border-color: var(--mg-night-border);
}
html[data-theme="dark"] .mg_follower_row h4 {
  color: var(--mg-night-text);
}

html[data-theme="dark"] .mg_shop_toolbar {
  border-color: var(--mg-night-border);
  color: var(--mg-night-text);
}
html[data-theme="dark"] .mg_confirm_icon {
  background: var(--mg-night-elevated);
  color: var(--mg-night-cream);
}
html[data-theme="dark"] .mg_auth_links a {
  color: var(--mg-night-cream);
}

/* Alerts / editor */
html[data-theme="dark"] .mg_alert--success {
  border-color: #4f7a56;
  background: rgb(79 122 86 / 18%);
  color: #c5e0c8;
}
html[data-theme="dark"] .mg_alert--warn {
  border-color: #b8942a;
  background: rgb(184 148 42 / 16%);
  color: #f0dfa0;
}
html[data-theme="dark"] .mg_alert--error {
  border-color: #c45c5c;
  background: rgb(196 92 92 / 16%);
  color: #f0b4b4;
}
html[data-theme="dark"] .mg_editor_surface {
  background: var(--mg-night-surface);
  border-color: var(--mg-night-border);
}
html[data-theme="dark"] .mg_form_error {
  color: #f0b4b4;
}

/* LeafLife leftover light surfaces (never wipe photo cards / bg-filed) */
html[data-theme="dark"] .cs_card:not(.cs_style_1):not(.cs_bg_filed),
html[data-theme="dark"] .cs_post.cs_style_1.cs_type_1,
html[data-theme="dark"] .cs_team_member.cs_style_1,
html[data-theme="dark"] .cs_video_popup-container,
html[data-theme="dark"] blockquote,
html[data-theme="dark"] .cs_post.cs_style_1 blockquote {
  background-color: var(--mg-night-elevated) !important;
  color: var(--mg-night-text);
}
html[data-theme="dark"] .cs_card.cs_style_1.cs_bg_filed {
  /* keep data-src / JS background-image; only soft fallback under image */
  background-color: var(--heading-color);
}
html[data-theme="dark"] .cs_card.cs_style_1 .cs_card_title,
html[data-theme="dark"] .cs_card.cs_style_1 .cs_card_subtitle {
  color: var(--mg-night-cream);
}
html[data-theme="dark"] .cs_arrow_btn.cs_white_bg,
html[data-theme="dark"] .cs_card.cs_style_1 .cs_arrow_btn {
  background-color: var(--mg-night-cream) !important;
  color: #374836 !important;
}
html[data-theme="dark"] .cs_arrow_btn.cs_white_bg svg,
html[data-theme="dark"] .cs_card.cs_style_1 .cs_arrow_btn svg,
html[data-theme="dark"] .cs_arrow_btn.cs_white_bg path,
html[data-theme="dark"] .cs_card.cs_style_1 .cs_arrow_btn path {
  fill: currentColor;
  color: #374836;
}
html[data-theme="dark"] .cs_post.cs_style_1 .cs_post_title a,
html[data-theme="dark"] .cs_post.cs_style_1 h3,
html[data-theme="dark"] .cs_team_member.cs_style_1 .cs_team_member_info {
  color: var(--mg-night-text);
}
html[data-theme="dark"] .cs_accordion .cs_accordian,
html[data-theme="dark"] .cs_iconbox:not(.mg_collection_feature),
html[data-theme="dark"] .cs_testimonial {
  background: var(--mg-night-elevated);
  color: var(--mg-night-text);
}

html[data-theme="dark"] .cs_toast,
html[data-theme="dark"] .mg_toast.is-success {
  color: #fff;
}

@media (max-width: 575px) {
  /* Single-row header: prefs live in the drawer on small screens */
  .cs_site_header.cs_style_1 .cs_main_header_in {
    height: 72px;
    align-items: center;
  }
  .cs_site_header.cs_style_1 .cs_main_header_left {
    position: relative;
    top: auto;
    inset-inline-start: auto;
    max-width: calc(100% - 210px);
  }
  .cs_site_header.cs_style_1 .cs_main_header_right {
    position: relative;
    top: auto;
    inset-inline: auto;
    width: auto;
    height: auto;
    padding: 0;
    justify-content: flex-end;
  }
  .cs_header_icon_btns {
    width: auto;
    justify-content: flex-end;
    gap: 4px;
  }
  .cs_site_header.cs_style_1 .cs_menu_toggle {
    top: 50%;
    margin-top: -15px;
  }
}

/* RTL shell */
html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] .mg_product_footer,
html[dir="rtl"] .mg_summary_row,
html[dir="rtl"] .mg_cart_row,
html[dir="rtl"] .mg_shop_toolbar,
html[dir="rtl"] .mg_shop_controls,
html[dir="rtl"] .mg_checkout_grid,
html[dir="rtl"] .mg_collection_meta,
html[dir="rtl"] .cs_footer_row {
  direction: rtl;
}
html[dir="rtl"] .cs_nav_list,
html[dir="rtl"] .mg_studio_nav {
  direction: rtl;
}
html[dir="rtl"] .mg_artist_profile_content h1,
html[dir="rtl"] .mg_artist_section_heading h2,
html[dir="rtl"] .mg_artist_join h2 {
  letter-spacing: 0;
}
html[dir="rtl"] .mg_table th,
html[dir="rtl"] .mg_table td {
  text-align: right;
}
html[dir="rtl"] .mg_header_prefs {
  margin-inline: 0 4px;
}
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] .cs_section_title,
html[dir="rtl"] .cs_page_title,
html[dir="rtl"] .cs_nav_list,
html[dir="rtl"] .cs_btn {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  letter-spacing: 0;
}
html[dir="rtl"] .text-uppercase,
html[dir="rtl"] .mg_product_badge,
html[dir="rtl"] .mg_add_btn,
html[dir="rtl"] .mg_pref_btn,
html[dir="rtl"] .mg_table th,
html[dir="rtl"] .mg_search_group_title,
html[dir="rtl"] .mg_project_card .cs_card_info_list p {
  letter-spacing: 0;
  text-transform: none;
}
html[dir="rtl"] .breadcrumb {
  direction: rtl;
  padding-right: 0;
}
html[dir="rtl"] .breadcrumb-item + .breadcrumb-item {
  padding-right: 14px;
  padding-left: 0;
}
html[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before {
  float: right;
  margin-right: 0;
  margin-left: 14px;
}
html[dir="rtl"] .cs_header_form .cs_header_form_input {
  padding-right: 50px;
  padding-left: 20px;
  text-align: right;
}
html[dir="rtl"] .cs_header_form .cs_header_form_btn {
  right: 0;
  left: auto;
}
html[dir="rtl"] .cs_text_widget p {
  padding-right: 32px;
  padding-left: 0;
  border-right: 2px solid var(--heading-color);
  border-left: 0;
}
html[dir="rtl"] .cs_newsletter.cs_style_1 .cs_newsletter_input {
  padding-right: 24px;
  padding-left: 80px;
  text-align: right;
}
html[dir="rtl"] .cs_newsletter.cs_style_1 .cs_newsletter_btn {
  right: auto;
  left: 24px;
}
html[dir="rtl"] .cs_footer_row .cs_footer_col:first-child {
  padding-right: 0;
  padding-left: 12px;
}
html[dir="rtl"] .cs_hero.cs_style_1 .cs_hero_funfact_wrap,
html[dir="rtl"] .cs_hero.cs_style_1 .cs_hero_box {
  right: auto;
  left: 0;
}
html[dir="rtl"] .cs_hero.cs_style_1 .cs_hero_box_btn {
  right: auto;
  left: 16px;
}
html[dir="rtl"] .cs_circle_group {
  padding-right: 10px;
  padding-left: 0;
}
html[dir="rtl"] .cs_circle_group > * {
  margin-right: -10px;
  margin-left: 0;
}
html[dir="rtl"] .cs_card.cs_style_1 .cs_arrow_btn {
  right: auto;
  left: 24px;
}
html[dir="rtl"] .cs_slider_arrows.cs_style_3 .cs_right_arrow {
  right: auto;
  left: 0;
  padding-right: 0;
  padding-left: 32px;
}
html[dir="rtl"] .cs_img_box.cs_style_1 {
  padding-right: 0;
  padding-left: 56px;
}
html[dir="rtl"] .cs_img_box.cs_style_2 {
  margin-right: 0;
  margin-left: -20px;
}
html[dir="rtl"] .cs_right_sidebar {
  padding-right: 40px;
  padding-left: 0;
}
html[dir="rtl"] .cs_post.cs_style_1 blockquote {
  border-right: 5px solid var(--heading-color);
  border-left: 0;
  border-radius: 15px 0 0 15px;
}
html[dir="rtl"] .cs_post.cs_style_1 blockquote small {
  padding-right: 35px;
  padding-left: 0;
}
html[dir="rtl"] .cs_post.cs_style_1 blockquote small::before {
  right: 0;
  left: auto;
}
html[dir="rtl"] .cs_accordians.cs_style_1 {
  margin-right: 60px;
  margin-left: 0;
}
html[dir="rtl"] .cs_accordian_toggle {
  right: auto;
  left: 0;
}
html[dir="rtl"] .mg_confirm_card {
  text-align: right;
}
html[dir="rtl"] .cs_arrow_btn svg,
html[dir="rtl"] .cs_newsletter_btn svg,
html[dir="rtl"] .cs_slider_arrows svg,
html[dir="rtl"] .mg_account_links .fa-arrow-right-to-bracket,
html[dir="rtl"] .mg_account_logout .fa-arrow-right-from-bracket,
html[dir="rtl"] .fa-arrow-up-right-from-square {
  transform: scaleX(-1);
}
html[dir="rtl"] .fadeInLeft {
  animation-name: fadeInRight;
}
html[dir="rtl"] .fadeInRight {
  animation-name: fadeInLeft;
}
@media (min-width: 1200px) {
  html[dir="rtl"] .cs_site_branding + .cs_nav {
    margin-right: 80px;
    margin-left: 0;
  }
  html[dir="rtl"] .cs_nav .cs_nav_list > li {
    margin-right: 0;
    margin-left: 48px;
  }
  html[dir="rtl"] .cs_nav .cs_nav_list > li:last-child {
    margin-left: 0;
  }
  html[dir="rtl"] .cs_nav .cs_nav_list > li > ul {
    right: 0;
    left: auto;
  }
  html[dir="rtl"] .cs_nav .cs_nav_list ul ul {
    right: 100%;
    left: auto;
  }
}
@media (min-width: 992px) {
  html[dir="rtl"] .offset-lg-1 {
    margin-right: 8.33333333%;
    margin-left: 0;
  }
}
@media (max-width: 1400px) and (min-width: 1200px) {
  html[dir="rtl"] .cs_site_branding + .cs_nav {
    margin-right: 40px;
  }
}
@media (max-width: 1199px) {
  html[dir="rtl"] .cs_site_header.cs_style_1 .cs_main_header_right {
    padding-right: 0;
    padding-left: 0;
    padding-inline: 0;
    margin-inline-end: 48px;
  }
  html[dir="rtl"] .cs_site_header.cs_style_1 .cs_menu_toggle {
    right: auto;
    left: 0;
    z-index: 40;
  }
  html[dir="rtl"] .cs_nav .cs_nav_list_wrap {
    right: -100vw;
    left: auto;
  }
  html[dir="rtl"] .cs_nav .cs_nav_list_wrap.cs_active {
    right: 0;
    left: auto;
  }
  html[dir="rtl"] .cs_nav .cs_nav_list ul {
    padding-right: 15px;
    padding-left: 0;
  }
  html[dir="rtl"] .cs_munu_dropdown_toggle {
    right: auto;
    left: 0;
    justify-content: flex-start;
  }
  html[dir="rtl"] .cs_newsletter.cs_style_1 .cs_newsletter_input {
    padding-right: 20px;
    padding-left: 70px;
  }
  html[dir="rtl"] .cs_newsletter.cs_style_1 .cs_newsletter_btn {
    right: auto;
    left: 11px;
  }
  html[dir="rtl"] .cs_img_box.cs_style_1 {
    padding-left: 0;
  }
}
@media (max-width: 991px) {
  html[dir="rtl"] .cs_right_sidebar {
    padding-right: 0;
  }
  html[dir="rtl"] .cs_accordians.cs_style_1 {
    margin-right: 0;
  }
}
@media (max-width: 575px) {
  html[dir="rtl"] .cs_site_header.cs_style_1 .cs_main_header_right {
    padding-left: 0;
  }
  html[dir="rtl"] .cs_text_widget p {
    padding-right: 15px;
  }
  html[dir="rtl"] .cs_card.cs_style_1 .cs_arrow_btn {
    right: auto;
    left: 20px;
  }
}

/* ----- Toast notifications (LeafLife, no Tailwind) ----- */
.mg_toast {
  position: fixed;
  top: 96px;
  inset-inline-end: 24px;
  z-index: 12000;
  min-width: 260px;
  max-width: 360px;
  padding: 16px 18px;
  border-radius: var(--mg-radius, 12px);
  background: var(--heading-color);
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.mg_toast.is-error {
  background: #8a2f2f;
}
.mg_toast.is-success {
  background: #374836;
}
.mg_toast.is-hiding {
  opacity: 0;
  transform: translateY(8px);
}
.mg_toast_inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.mg_toast_msg {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}
.mg_toast_close {
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.8;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
}
.mg_toast_close:hover {
  opacity: 1;
}

/* ----- Mobile polish: overflow, touch, density ----- */
html {
  overflow-x: clip;
}
body {
  overflow-x: clip;
}

/* Prefs: bar on desktop, drawer on tablet/phone */
.mg_header_prefs--drawer {
  display: none;
}
@media (max-width: 1199px) {
  /* LeafLife pads the right cluster over the hamburger; that padding steals taps */
  .cs_site_header.cs_style_1 .cs_main_header_right {
    padding-right: 0 !important;
    padding-inline-end: 0 !important;
    margin-inline-end: 48px;
    position: relative;
    z-index: 1;
  }
  html[dir="rtl"] .cs_site_header.cs_style_1 .cs_main_header_right {
    padding-left: 0 !important;
    padding-inline-start: 0 !important;
  }
  .cs_site_header.cs_style_1 .cs_menu_toggle {
    z-index: 40;
    pointer-events: auto;
    cursor: pointer;
  }
  .mg_header_prefs--bar {
    display: none !important;
  }
  .mg_header_prefs--drawer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 20px 15px 28px;
    padding-top: 16px;
    border-top: 1px solid rgb(55 72 54 / 12%);
  }
  .mg_header_prefs--drawer .mg_pref_switch {
    width: 100%;
    justify-content: stretch;
    background: rgb(55 72 54 / 6%);
    border-color: rgb(55 72 54 / 12%);
  }
  .mg_header_prefs--drawer .mg_pref_btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    height: 44px;
    font-size: 12px;
    color: var(--heading-color);
  }
  .mg_header_prefs--drawer .mg_pref_btn.is-active,
  .mg_header_prefs--drawer .mg_pref_btn[aria-pressed="true"] {
    background: var(--heading-color);
    color: var(--white-color);
  }
  html[data-theme="dark"] .mg_header_prefs--drawer {
    border-top-color: var(--mg-night-border);
  }
  html[data-theme="dark"] .mg_header_prefs--drawer .mg_pref_switch {
    background: rgb(232 239 228 / 8%);
    border-color: rgb(232 239 228 / 16%);
  }
  html[data-theme="dark"] .mg_header_prefs--drawer .mg_pref_btn {
    color: var(--mg-night-text);
  }
  html[data-theme="dark"] .mg_header_prefs--drawer .mg_pref_btn.is-active,
  html[data-theme="dark"] .mg_header_prefs--drawer .mg_pref_btn[aria-pressed="true"] {
    background: var(--mg-night-cream);
    color: var(--mg-night-bg);
  }
}

@media (max-width: 991px) {
  .cs_gap_x_40 {
    margin-left: 0;
    margin-right: 0;
  }
  .cs_gap_x_40 > * {
    padding-left: 0;
    padding-right: 0;
  }
  .cs_gap_x_20 {
    margin-left: 0;
    margin-right: 0;
  }
  .cs_gap_x_20 > * {
    padding-left: 0;
    padding-right: 0;
  }

  .cs_hero.cs_style_1 .cs_hero_in {
    min-height: min(100dvh, 640px);
    padding: 120px 0 48px;
  }

  .cs_page_heading.cs_style_1,
  .cs_hero.cs_style_1 {
    position: relative;
    isolation: isolate;
  }
  .cs_page_heading.cs_style_1::before,
  .cs_hero.cs_style_1::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgb(20 28 22 / 55%) 0%, rgb(20 28 22 / 28%) 42%, rgb(20 28 22 / 48%) 100%);
  }
  .cs_page_heading.cs_style_1 > .container,
  .cs_hero.cs_style_1 > .container,
  .cs_hero.cs_style_1 .cs_hero_in {
    position: relative;
    z-index: 1;
  }

  .cs_page_heading.cs_style_1 {
    min-height: 300px;
    padding: 118px 0 36px;
  }
  .cs_page_heading.cs_style_1 .breadcrumb {
    margin-bottom: 12px;
    text-shadow: 0 1px 8px rgb(0 0 0 / 35%);
  }
  .cs_page_heading.cs_style_1 .cs_page_title {
    text-shadow: 0 2px 18px rgb(0 0 0 / 28%);
  }

  .mg_shop_toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }
  .mg_shop_filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    margin-inline: -4px;
    padding: 2px 4px 6px;
    max-width: 100%;
  }
  .mg_shop_filters::-webkit-scrollbar {
    display: none;
  }
  .mg_shop_filters .mg_filter_chip {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 44px;
  }

  .mg_shop_controls {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 28px !important;
  }
  .mg_shop_controls > input[type="search"],
  .mg_shop_controls > .mg_filter_chip:has(input[type="number"]),
  .mg_shop_controls > button {
    grid-column: 1 / -1;
  }
  .mg_shop_controls > input[type="search"],
  .mg_shop_controls > select,
  .mg_shop_controls > .mg_filter_chip {
    width: 100%;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 44px;
  }

  .mg_pdp_actions .cs_btn {
    min-width: 0;
    flex: 1 1 calc(50% - 6px);
  }

  .mg_toast {
    top: calc(80px + env(safe-area-inset-top, 0px));
    inset-inline: 12px;
    inset-inline-end: 12px;
    min-width: 0;
    max-width: none;
    width: auto;
  }

  .breadcrumb {
    flex-wrap: wrap;
    row-gap: 4px;
    max-width: 100%;
  }
  .breadcrumb-item,
  .breadcrumb-item a,
  .breadcrumb-item.active {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: min(100%, 18rem);
  }

  .cs_header_icon_btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
  .cs_header_icon_btn svg {
    width: 20px;
    height: 20px;
  }
  .cs_site_header.cs_style_1 .cs_main_header_in {
    height: 80px;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .cs_site_header.cs_style_1 .cs_main_header_left {
    flex: 1 1 auto;
    min-width: 0;
  }
  .cs_site_header.cs_style_1 .cs_main_header_center {
    flex: 0 0 auto;
  }
  .cs_site_header.cs_style_1 .cs_main_header_right {
    flex: 0 0 auto;
    /* margin (not padding) so the empty gap does not steal hamburger clicks */
    padding-inline-end: 0;
    margin-inline-end: 44px;
    gap: 8px;
    height: auto;
    position: relative;
    z-index: 1;
  }
  .cs_site_header.cs_style_1 .cs_menu_toggle {
    z-index: 40;
    pointer-events: auto;
  }
  .cs_site_header .mg_brand--header {
    max-width: 100%;
    min-width: 0;
  }
  .cs_site_header .mg_brand_name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 575px) {
  .cs_hero.cs_style_1 .cs_hero_in {
    min-height: min(100dvh, 560px);
    padding: 104px 0 40px;
  }
  .cs_hero.cs_style_1 .cs_hero_btns {
    gap: 12px;
    width: 100%;
  }
  .cs_hero.cs_style_1 .cs_hero_btns .cs_btn.cs_style_1 {
    flex: 1 1 auto;
    text-align: center;
    justify-content: center;
  }

  .cs_page_heading.cs_style_1 {
    min-height: 248px;
    padding: 100px 0 28px;
  }
  .cs_page_heading.cs_style_1 .breadcrumb {
    margin-bottom: 14px;
  }
  .cs_page_heading.cs_style_1 .cs_page_title.cs_fs_80,
  .cs_fs_80 {
    font-size: clamp(32px, 9vw, 40px);
    line-height: 1.12;
    text-wrap: balance;
  }

  .cs_site_header.cs_style_1 .cs_main_header_in {
    height: 72px;
    padding-block: 0;
    flex-wrap: nowrap;
  }
  .cs_site_header.cs_style_1 .cs_main_header_left {
    max-width: none;
  }
  .cs_header_icon_btns {
    gap: 2px;
  }
  .cs_header_icon_btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }
  .cs_header_icon_btn svg {
    width: 18px;
    height: 18px;
  }
  /* Prefer full brand when space allows; truncate instead of wrapping the bar */
  .cs_site_header .mg_brand_name {
    max-width: none;
  }

  .mg_pdp_actions {
    flex-direction: column;
  }
  .mg_pdp_actions .cs_btn {
    flex: 1 1 auto;
    width: 100%;
  }
  .mg_pdp_thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .mg_shop_controls {
    grid-template-columns: 1fr;
  }

  .mg_account_dropdown {
    inset-inline-end: 0;
    width: min(300px, calc(100vw - 24px));
  }

  .breadcrumb-item,
  .breadcrumb-item a,
  .breadcrumb-item.active {
    max-width: min(100%, 14rem);
  }

  .cs_footer_row,
  .cs_footer .row {
    row-gap: 28px;
  }
}

@media (max-width: 360px) {
  .cs_site_header .mg_brand_text {
    display: none;
  }
  .cs_header_icon_btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}