/* Custom app layer — mobile-first. Theme tokens live on :root in style.css. */
:root {
  --app-danger: #dc3545;
  --app-danger-hover: #bb2d3b;
  --app-success: #198754;
  --app-warning: #fd7e14;
  --app-surface: #f8f9fa;
  --app-border: #e9ecef;
  --app-muted: #6c757d;
  --app-muted-hover: #5a6268;
  --app-space-xs: 0.5rem;
  --app-space-sm: 0.75rem;
  --app-space-md: 1rem;
  --app-radius: 0.5rem;
}

.is-hidden {
  display: none !important;
}

.is-clickable,
.enamad-logo {
  cursor: pointer;
}

.dir-ltr {
  direction: ltr;
}

.sidebar {
  background-image: url("../images/background/bg3.f8bdd2f5206c.png");
}

.search-page-form.search-input {
  flex-wrap: nowrap;
  align-items: center;
}

.search-page-form .search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  padding: 0 var(--app-space-sm);
  cursor: pointer;
  color: inherit;
  line-height: 1;
}

.search-page-form .search-icon:disabled {
  opacity: 0.6;
  cursor: default;
}

.active-filters {
  padding: var(--app-space-sm);
  background: var(--app-surface);
  border-radius: var(--app-radius);
  border: 1px solid var(--app-border);
}

.active-filters .badge {
  cursor: pointer;
}

.active-filters .remove-filter {
  cursor: pointer;
}

.dz-timeline.style-2.order-status-timeline {
  border-color: var(--app-warning);
}

.dz-timeline.style-2 .order-status-event .timeline-tilte {
  color: var(--app-warning);
}

.dz-timeline.style-2 .order-status-event::after {
  background-color: var(--app-warning);
}

.dz-timeline.style-2 .order-status-event--failed .timeline-tilte,
.dz-timeline.style-2 .order-status-event--canceled .timeline-tilte {
  color: var(--app-danger);
}

.dz-timeline.style-2 .order-status-event--failed::after,
.dz-timeline.style-2 .order-status-event--canceled::after {
  background-color: var(--app-danger);
}

.dz-timeline.style-2 .order-status-event--completed .timeline-tilte,
.dz-timeline.style-2 .order-status-event--processing .timeline-tilte {
  color: var(--app-success);
}

.dz-timeline.style-2 .order-status-event--completed::after,
.dz-timeline.style-2 .order-status-event--processing::after {
  background-color: var(--app-success);
}

.clear-filters {
  background: var(--app-muted);
  color: #fff;
}

.logout-link,
.logout-link span,
.logout-link i,
.logout-link .dz-icon,
.logout-link .dz-icon i,
.logout-link .dz-inner .title {
  color: var(--app-danger) !important;
}

.logout-link .dz-icon svg,
.logout-link .dz-icon svg path {
  fill: var(--app-danger);
  stroke: var(--app-danger);
}

.dz-banner .banner-bg {
  background-image: none;
}

.dz-banner .banner-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.dz-category-card .category-image {
  background-image: none;
  background-color: var(--primary-light);
}

.progress-bar--full {
  width: 99%;
}

.profile-area .content-box span {
  white-space: nowrap;
}

@media (min-width: 48rem) {
  .active-filters {
    padding: var(--app-space-md);
  }

  .search-page-form .search-icon {
    padding: 0 var(--app-space-md);
  }
}

.cart-qty-form {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  margin-inline-end: 0.35rem;
}

.cart-qty-form .btn {
  min-width: 2rem;
  padding-inline: 0.4rem;
}

.cart-qty-value {
  min-width: 1.75rem;
  text-align: center;
  font-weight: 600;
}

#cart-body .cart-box {
  overflow: visible;
  padding-inline-end: 0.85rem;
}

#cart-body .cart-box .cart-footer {
  gap: 0.5rem;
}

.add-to-cart-slot {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex: 0 0 auto;
  min-width: 0;
}

.add-to-cart-error {
  font-size: 0.75rem;
  color: var(--app-danger);
  text-align: end;
}

.add-to-cart-success {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  flex: 0 0 auto;
  min-width: 0;
}

.add-to-cart-success-text {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}

.add-to-cart-success .btn {
  white-space: nowrap;
  font-size: 0.85rem;
  padding-inline: 0.75rem;
}

.search-htmx-indicator {
  text-align: center;
  padding: var(--app-space-sm);
  color: var(--app-muted);
}

.footer .total-cart,
#cart-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--app-space-sm);
  min-width: 0;
}

.footer .total-cart .price-area,
#cart-footer-inner .price-area {
  width: auto;
  flex: 1 1 0;
  min-width: 0;
}

.footer .total-cart .price-area .price,
#cart-footer-inner .price-area .price {
  font-size: 0.95rem;
  line-height: 1.35;
  margin-bottom: 0.15rem;
}

.footer .total-cart .price-area .price del,
#cart-footer-inner .price-area .price del {
  font-size: 0.75rem;
  font-weight: 400;
}

.footer .total-cart .price-currency,
#cart-footer-inner .price-currency {
  font-size: 0.7em;
  font-weight: 500;
}

.footer .total-cart .btn,
.footer .total-cart form,
#cart-footer-inner .btn {
  flex: 0 0 auto;
}

.footer .total-cart .btn,
#cart-footer-inner .btn {
  white-space: nowrap;
  font-size: 0.85rem;
  padding-inline: 0.75rem;
}

.filter-choice-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  width: 100%;
}

.filter-choice-hint {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  color: var(--app-muted);
}

.filter-choice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--app-border);
  border-radius: 0.75rem;
  background: #fff;
  cursor: pointer;
}

.filter-choice-input {
  position: absolute;
  inset-inline-start: 0.75rem;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.filter-choice-text {
  flex: 1;
  text-align: start;
  font-size: 0.95rem;
  color: inherit;
}

.filter-choice-check {
  flex-shrink: 0;
  font-size: 1.15rem;
  color: var(--primary);
  opacity: 0;
}

.filter-choice:has(.filter-choice-input:checked) {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, #fff);
}

.filter-choice:has(.filter-choice-input:checked) .filter-choice-text {
  font-weight: 600;
}

.filter-choice:has(.filter-choice-input:checked) .filter-choice-check {
  opacity: 1;
}

.filter-choice:has(.filter-choice-input:focus-visible) {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.product-detail-page {
  --product-gallery-footer: 6.25rem;
  padding-bottom: calc(var(--product-gallery-footer) + env(safe-area-inset-bottom, 0px));
}

.product-detail-page .dz-product-preview {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--app-surface);
  height: calc(100vh - var(--headheight, 50px) - var(--product-gallery-footer));
  height: calc(100dvh - var(--headheight, 50px) - var(--product-gallery-footer) - env(safe-area-inset-bottom, 0px));
}

.product-detail-page .dz-product-preview .product-detail-swiper-2 {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.product-detail-page .dz-product-preview .product-detail-swiper-2 .swiper-wrapper,
.product-detail-page .dz-product-preview .product-detail-swiper-2 .swiper-slide,
.product-detail-page .dz-product-preview .product-detail-swiper-2 .dz-media {
  height: 100%;
}

.product-detail-page .dz-product-preview .product-detail-swiper-2 .dz-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-detail-page .dz-product-preview .product-detail-swiper {
  position: relative;
  inset: auto;
  z-index: 2;
  flex: 0 0 auto;
  padding: 0.5rem 0.75rem 0.75rem;
  background: var(--bg-white);
}

.product-detail-page .dz-product-preview .product-detail-swiper .swiper-slide {
  width: 3.5rem;
  cursor: pointer;
}

.product-detail-page .dz-product-preview .product-detail-swiper .dz-media {
  height: 3.5rem;
  border-radius: 0.4rem;
}

.product-detail-page .dz-product-preview .product-detail-swiper .dz-media:after {
  pointer-events: none;
}

.product-detail-page .dz-product-preview .product-detail-swiper .dz-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-page .dz-product-detail .detail-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 0.35rem;
  margin-bottom: 1.15rem;
}

.product-detail-page .dz-product-detail .detail-content h5 {
  margin: 0;
  line-height: 1.45;
}

.product-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
}

.product-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.55rem 0.28rem 0.4rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 12%, #fff);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.product-category-chip .icon {
  font-size: 0.95rem;
}

.product-category-chip .icon-chevron-left {
  font-size: 0.8rem;
  opacity: 0.85;
}

.product-sku {
  margin: 0;
  font-size: 0.75rem;
  color: var(--app-muted);
}

.product-detail-page .dz-product-detail .detail-content .badge {
  margin: 0;
}

@media (hover: hover) {
  .active-filters .badge:hover {
    background-color: var(--app-danger);
  }

  .clear-filters:hover {
    background: var(--app-muted-hover);
    color: #fff;
  }

  .filter-choice:hover {
    border-color: var(--primary);
    background: var(--app-surface);
  }

  .product-category-chip:hover {
    text-decoration: underline;
    background: color-mix(in srgb, var(--primary) 20%, #fff);
  }
}

.payment-result-page {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
}

.payment-result-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.payment-result-logo {
    width: 100px;
    height: 60px;
    margin: 0 auto 25px;
}

.payment-result-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 32px;
}

.payment-result-icon--success {
    color: #198754;
    background: #e9f7ef;
}

.payment-result-icon--failed {
    color: #dc3545;
    background: #fdecec;
}

.payment-result-title {
    margin-bottom: 10px;
    font-weight: 600;
}

.payment-result-title--success {
    color: #198754;
}

.payment-result-title--failed {
    color: #dc3545;
}

.payment-result-description {
    color: #666;
    line-height: 1.9;
    margin-bottom: 25px;
}

.payment-result-info {
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.payment-result-info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 15px;
}

.payment-result-info-item + .payment-result-info-item {
    border-top: 1px solid #eee;
}

.payment-result-info-item span {
    color: #777;
}

.payment-result-info-item strong {
    color: #333;
    font-weight: 600;
}

.payment-result-note {
    color: #777;
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 20px;
}

.payment-result-button {
    margin-top: 10px;
}
