/*
 * Aswaf Frontend CSS
 *
 * Entry point only. The frontend styles are split by responsibility under
 * assets/css/frontend/. Keep these imports in order because later files
 * intentionally override earlier shared rules.
 */

@import url("./frontend/00-foundation.css?v=9.8.69");
@import url("./frontend/01-product-detail.css?v=9.8.69");
@import url("./frontend/02-checkout-form.css?v=9.8.69");
@import url("./frontend/03-group-order-cart.css?v=9.8.69");
@import url("./frontend/04-payment-cart.css?v=9.8.69");
@import url("./frontend/05-account-orders.css?v=9.8.69");
@import url("./frontend/06-archive-gallery-cart.css?v=9.8.69");
@import url("./frontend/07-shop-shortcodes.css?v=9.8.69");
@import url("./frontend/08-theme-alignment.css?v=9.8.69");
@import url("./frontend/09-group-pages.css?v=9.8.69");

/* ASW bundles */
.asw-product-bundle-components {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid rgba(200, 168, 74, .24);
  border-radius: 8px;
  background: #fffdf5;
  direction: rtl;
}

.asw-product-bundle-components h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 800;
}

.asw-product-bundle-components ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.asw-product-bundle-components li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #eee3c0;
  border-radius: 7px;
  background: #fff;
}

.asw-bundle-customizer {
  display: grid;
  gap: 12px;
}

.asw-bundle-customizer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.asw-bundle-customizer__kicker {
  display: inline-flex;
  margin-bottom: 4px;
  color: #0f766e;
  font-size: .7rem;
  font-weight: 900;
}

.asw-bundle-customizer__head p {
  margin: 0;
  color: #666;
  font-size: .78rem;
  line-height: 1.65;
}

.asw-bundle-customizer__badge {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 58px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 8px;
  background: #f7fffd;
  color: #0f766e;
}

.asw-bundle-customizer__badge strong {
  font-size: 1.15rem;
  font-weight: 950;
  line-height: 1;
}

.asw-bundle-customizer__badge span {
  margin-top: 4px;
  color: #55716d;
  font-size: .65rem;
  font-weight: 800;
}

.asw-bundle-customizer__list {
  display: grid;
  gap: 8px;
}

.asw-bundle-customizer__item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid rgba(17, 24, 39, .1);
  border-radius: 8px;
  background: #fff;
  transition: opacity .18s ease, background .18s ease, border-color .18s ease;
}

.asw-bundle-customizer__item.is-removed {
  opacity: .58;
  background: #fafafa;
}

.asw-bundle-customizer__image {
  display: block;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 8px;
  background: #f3f4f6;
}

.asw-bundle-customizer__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asw-bundle-customizer__copy {
  min-width: 0;
}

.asw-bundle-customizer__copy h4 {
  margin: 0 0 6px;
  color: #111827;
  font-size: .88rem;
  font-weight: 900;
  line-height: 1.35;
}

.asw-bundle-customizer__copy h4 a {
  color: inherit;
  text-decoration: none;
}

.asw-bundle-customizer__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: #666;
  font-size: .72rem;
  font-weight: 800;
}

.asw-bundle-customizer__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 7px;
  border-radius: 6px;
  background: #f5f6f7;
}

.asw-bundle-customizer__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.asw-bundle-customizer__qty {
  display: inline-grid !important;
  grid-template-columns: 34px 48px 34px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  width: 124px !important;
  min-width: 124px !important;
  max-width: 124px !important;
  min-height: 40px !important;
  padding: 3px !important;
  border: 1px solid rgba(17, 24, 39, .12) !important;
  border-radius: 8px !important;
  background: #fff !important;
  direction: ltr !important;
  box-sizing: border-box !important;
}

.asw-bundle-customizer__qty button,
.asw-bundle-customizer__qty input {
  box-sizing: border-box !important;
  min-width: 0 !important;
  min-height: 34px !important;
  margin: 0 !important;
  color: #111827 !important;
  font: inherit !important;
  font-weight: 900 !important;
  text-align: center !important;
  line-height: 1 !important;
}

.asw-bundle-customizer__qty button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: #f3f4f6 !important;
  font-size: 1rem !important;
  cursor: pointer !important;
  appearance: none !important;
}

.asw-bundle-customizer__qty button:hover {
  background: #e8fbf7 !important;
  color: #0f766e !important;
}

.asw-bundle-customizer__qty input {
  display: block !important;
  width: 48px !important;
  height: 34px !important;
  max-width: 48px !important;
  padding: 0 !important;
  border: 1px solid rgba(17, 24, 39, .12) !important;
  border-radius: 7px !important;
  background: #fff !important;
  box-shadow: none !important;
  font-size: .9rem !important;
  direction: ltr !important;
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

.asw-bundle-customizer__qty input::-webkit-outer-spin-button,
.asw-bundle-customizer__qty input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.asw-bundle-customizer__remove {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(185, 28, 28, .14);
  border-radius: 7px;
  background: #fff;
  color: #b91c1c;
  font: inherit;
  font-size: .72rem;
  font-weight: 900;
  cursor: pointer;
}

.asw-bundle-customizer__item.is-removed .asw-bundle-customizer__remove {
  border-color: rgba(15, 118, 110, .18);
  color: #0f766e;
}

.asw-bundle-customizer__item.is-removed .asw-bundle-customizer__qty {
  pointer-events: none;
}

.asw-bundle-customizer__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.asw-bundle-customizer__summary > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(17, 24, 39, .09);
  border-radius: 8px;
  background: #fff;
}

.asw-bundle-customizer__summary span {
  display: block;
  margin-bottom: 4px;
  color: #666;
  font-size: .68rem;
  font-weight: 800;
}

.asw-bundle-customizer__summary strong {
  display: block;
  color: #111827;
  font-size: .92rem;
  font-weight: 950;
}

.asw-bundle-customizer__summary .is-final {
  border-color: rgba(15, 118, 110, .18);
  background: #f7fffd;
}

.asw-bundle-customizer__summary .is-final strong {
  color: #0f766e;
}

@media (max-width: 640px) {
  .asw-bundle-customizer__head {
    flex-direction: column;
  }

  .asw-bundle-customizer__item {
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: start;
  }

  .asw-bundle-customizer__image {
    width: 58px;
    height: 58px;
  }

  .asw-bundle-customizer__controls {
    grid-column: 1 / -1;
    justify-content: space-between;
    width: 100%;
  }

  .asw-bundle-customizer__qty {
    width: 124px !important;
    min-width: 124px !important;
    max-width: 124px !important;
  }

  .asw-bundle-customizer__summary {
    grid-template-columns: 1fr;
  }
}

.asw-bundle-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, .1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.asw-bundle-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, .26);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .1);
}

.asw-bundle-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / .78;
  overflow: hidden;
  background: #f5f6f7;
}

.asw-bundle-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.asw-bundle-card:hover .asw-bundle-card__media img {
  transform: scale(1.04);
}

.asw-bundle-card__type,
.asw-bundle-card__discount {
  position: absolute;
  top: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: .68rem;
  font-weight: 900;
  line-height: 1;
}

.asw-bundle-card__type {
  right: 10px;
  background: rgba(255, 255, 255, .92);
  color: #0f766e;
  border: 1px solid rgba(15, 118, 110, .16);
}

.asw-bundle-card__discount {
  left: 10px;
  background: #ef4444;
  color: #fff;
}

.asw-bundle-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 9px;
  padding: 12px;
}

.asw-bundle-card__meta {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.asw-bundle-card__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 6px;
  background: #f4f5f6;
  color: #555;
  font-size: .66rem;
  font-weight: 800;
}

.asw-bundle-card__meta .is-in-stock {
  background: #ecfdf5;
  color: #0f766e;
}

.asw-bundle-card__meta .is-out-stock {
  background: #fef2f2;
  color: #b91c1c;
}

.asw-bundle-card__title {
  margin: 0;
  font-size: .92rem;
  font-weight: 900;
  line-height: 1.35;
}

.asw-bundle-card__title a {
  color: inherit;
  text-decoration: none;
}

.asw-bundle-card__desc {
  margin: -2px 0 0;
  color: #666;
  font-size: .74rem;
  line-height: 1.55;
}

.asw-bundle-card__components {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.asw-bundle-card__components span {
  display: inline-flex;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid rgba(15, 118, 110, .12);
  border-radius: 6px;
  background: #f8fffd;
  color: #36524f;
  font-size: .67rem;
  font-weight: 800;
}

.asw-bundle-card__price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.asw-bundle-card__price {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.asw-bundle-card__price small {
  color: #8a8a8a;
  font-size: .68rem;
  font-weight: 700;
  text-decoration: line-through;
}

.asw-bundle-card__price strong {
  color: #111827;
  font-size: .92rem;
  font-weight: 950;
}

.asw-bundle-card__saving {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 6px;
  background: #fff7ed;
  color: #9a4b08;
  font-size: .67rem;
  font-weight: 900;
}

.asw-bundle-card__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.asw-bundle-card__cta,
.asw-bundle-card__details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 7px;
  font-size: .75rem;
  font-weight: 900;
  text-decoration: none !important;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.asw-bundle-card__cta {
  gap: 6px;
  border: 0;
  background: #0f766e;
  color: #fff !important;
  padding: 0 10px;
}

.asw-bundle-card .asw-sh-pcard-atc {
  position: static !important;
  width: auto !important;
  height: auto !important;
  min-height: 36px !important;
  inset: auto !important;
  opacity: 1 !important;
  transform: none !important;
  border-radius: 7px !important;
}

.asw-bundle-card__cta svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.asw-bundle-card__cta:hover {
  background: #115e59;
  color: #fff !important;
}

.asw-bundle-card__cta.adding {
  pointer-events: none;
  opacity: .72;
}

.asw-bundle-card__cta.added {
  background: #16a34a;
}

.asw-bundle-card__cta--ghost,
.asw-bundle-card__details {
  border: 1px solid rgba(17, 24, 39, .1);
  background: #fff;
  color: #555 !important;
  padding: 0 10px;
}

.asw-bundle-card__details:hover,
.asw-bundle-card__cta--ghost:hover {
  border-color: rgba(15, 118, 110, .24);
  color: #0f766e !important;
}

@media (max-width: 560px) {
  .asw-bundle-card__body {
    padding: 9px;
    gap: 7px;
  }

  .asw-bundle-card__title {
    font-size: .78rem;
  }

  .asw-bundle-card__desc {
    display: none;
  }

  .asw-bundle-card__components span:nth-child(n+3) {
    display: none;
  }

  .asw-bundle-card__actions {
    grid-template-columns: 1fr;
  }
}
