/*******************************************************/
/* product detail page */
.item-desc {
  white-space: pre-line;
  overflow-wrap: break-word;
  word-break: break-word;
}

.main-img-wrapper {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  overflow: hidden;
}

.main-product-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.thumb-product-swiper .swiper-slide {
  width: 70px !important;
  height: 70px !important;
}

.thumb-img-wrapper {
  width: 100%;
  height: 100%;
  border: 1px solid #eee;
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px;
}

.thumb-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-product-swiper .swiper-slide-thumb-active .thumb-img-wrapper {
  border-color: #0d6efd;
}


/* brand carousel */
.dz-swiper-center .swiper-wrapper{
 justify-content: center;
}
.dz-brand-swiper {
  padding: 24px 0;
}

.brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: var(--card-bg, #fff);
  border-radius: 8px;
  border: 1px solid var(--border-color, #eee);
}

.brand-logo {
  width: 100%;
  height: 48px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.6;
  transition: filter 0.2s, opacity 0.2s;
}

.brand-item:hover .brand-logo {
  filter: grayscale(0);
  opacity: 1;
}
/*******************************************************/

/*******************************************************/
/* product card */
.product-img-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1; /* perfect square, change to 3/4 for portrait */
  overflow: hidden;
  border-radius: 8px;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.3s ease;
}

.shop-card:hover .product-img-wrapper img {
  transform: scale(1.04);
}
/*******************************************************/

/*******************************************************/
/* homepage banner css */
/* Banner slide wrapper */
.banner-slide-link {
  display: block;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  height: 160px; /* back to original height */
}

/* Image always fills, crops gracefully */
.banner-media {
  position: absolute;
  inset: 0;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%; /* slightly above center — catches faces/products better than dead center */
  transition: transform 0.4s ease;
}

.banner-slide-link:hover .banner-img {
  transform: scale(1.04); /* subtle zoom on hover */
}

/* Gradient scrim — bottom-heavy so text is always readable */
.banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    transparent 100%
  );
}

.banner-item {
  position: relative;
  overflow: hidden;
}

.banner-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.1) 100%
  );
  z-index: 1;
}

/* Content pinned to bottom */
.banner-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.banner-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 12px;
  color: #fff;
}

.banner-name {
  color: #fff;
  font-size: 13px;
  margin-bottom: 6px;
  -webkit-line-clamp: 1; /* 1 line only at this height */
  text-shadow: 0 2px 4px rgba(0,0,0,.5);
}

.banner-price {
  color: #fff !important;
  text-shadow: 0 2px 4px rgba(0,0,0,.5);
  font-size: 14px;
}

/* ── Landing page: full-width hero + showcase ── */
.home-page {
  width: 100%;
}

.home-hero {
  width: 100%;
  margin-top: 50px;
}

.home-hero-banner,
.home-hero .dz-banner {
  width: 100%;
}

.hero-slide-link {
  display: block;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  height: 220px;
}

.hero-slide-link .banner-img {
  object-position: center center;
}

.hero-scrim {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.35) 45%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

.hero-content {
  padding: 20px 24px 28px;
  max-width: 1320px;
  margin: 0 auto;
  left: 0;
  right: 0;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-title {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  max-width: 720px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-footer {
  gap: 16px;
}

.hero-price {
  color: #fff !important;
  font-size: 18px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-btn {
  color: #fff !important;
  padding: 8px 20px;
  font-weight: 600;
  border-radius: 8px;
}

.hero-swiper-pagination {
  bottom: 16px !important;
}

.home-content {
  margin-top: 0 !important;
}

.home-container {
  max-width: 1320px;
  padding-top: 32px;
  padding-bottom: 32px;
}

.home-section {
  margin-bottom: 40px;
}

.home-section:last-child {
  margin-bottom: 0;
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.showcase-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  color: var(--title, #1a1a1a);
}

.showcase-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

.showcase-link:hover {
  text-decoration: underline;
}

.showcase-card {
  display: block;
  position: relative;
  height: 180px;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.showcase-card__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.showcase-card:hover .showcase-card__image {
  transform: scale(1.06);
}

.showcase-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.15) 60%);
}

.showcase-card__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  color: #fff;
  z-index: 1;
}

.showcase-card__title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 4px;
  color: #fff;
  line-height: 1.3;
}

.showcase-card__cta {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

/* ── Desktop: remove mobile shell / phone box ── */
@media (min-width: 992px) {
  .page-wrapper {
    max-width: none;
    margin: 0;
    box-shadow: none;
    border-radius: 0;
  }

  .container,
  .header-container,
  .home-container {
    max-width: 1320px;
  }

  .header-container {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .header-content {
    display: flex;
    align-items: center;
    gap: 24px;
  }

  .header-desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    margin-right: auto;
  }

  .header-desktop-nav__link {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--title, #1a1a1a);
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
  }

  .header-desktop-nav__link:hover,
  .header-desktop-nav__link.active {
    color: var(--primary);
    background: var(--rgba-primary-1, rgba(0, 150, 136, 0.08));
  }

  .menubar-area.footer-fixed {
    display: none !important;
  }

  .home-page .p-b80,
  .page-content.p-b80 {
    padding-bottom: 40px !important;
  }

  .hero-slide-link {
    height: 420px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-content {
    padding: 40px 48px 48px;
  }

  .hero-price {
    font-size: 24px;
  }

  .hero-btn {
    padding: 10px 28px;
    font-size: 15px;
  }

  .showcase-card {
    height: 220px;
  }

  .showcase-title {
    font-size: 28px;
  }

  .trending-swiper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (min-width: 1200px) {
  .hero-slide-link {
    height: 480px;
  }

  .hero-title {
    font-size: 42px;
  }
}

@media (max-width: 991px) {
  .header-desktop-nav {
    display: none;
  }
}
/*******************************************************/

/*******************************************************/
/* replacing swal css */
.swal2-popup {
  width: 400px !important;
}

/* .swal2-icon {
  width: 4rem !important;
  height: 4rem !important;
  margin-bottom: 0.5rem !important;
}

.swal2-icon .swal2-icon-content {
  font-size: 2rem !important;
} */

.swal2-title {
  font-size: 1rem !important;
  font-weight: 600 !important;
}

.swal2-html-container {
  font-size: 0.875rem !important;
  color: #6c757d !important;
}

.swal2-confirm,
.swal2-cancel {
  font-size: 0.875rem !important;
  padding: 0.4rem 1.2rem !important;
}
/*******************************************************/

/* FilterBar */
.offcanvas.offcanvas-bottom.show{
  z-index: 999999;
}
.filter-btn.active {
  border-color: var(--primary);
  color: var(--primary);
}

.offcanvas-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 20px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  color: var(--title);
  font-weight: 400;
  font-family: var(--font-family-title);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.offcanvas-option.active {
  background: var(--rgba-primary-1);
  color: var(--primary);
  font-weight: 600;
}

/*******************************************************/
/* sidebar brand */
.sidebar-brand {
  display: block;
  text-decoration: none;
}

.sidebar-logo {
  max-width: 140px;
  height: auto;
}

/*******************************************************/
/* search page — original theme input with light visibility tweak */
.search-input .input-group {
  background: var(--bg-white, #fff);
  border: 1px solid var(--border-color, #e8e8e8);
  border-radius: 10px;
  overflow: hidden;
}

.search-input .form-control {
  background-color: transparent !important;
  border: 0 !important;
  padding: 12px 15px;
  font-size: 15px;
  color: var(--title, #1a1a1a);
}

.search-input .form-control::placeholder {
  color: #9aa0a6;
}

.search-input .form-control:focus {
  box-shadow: none;
}

.search-input .input-group .btn-close {
  display: block !important;
  opacity: 0.65;
}

/*******************************************************/
/* product detail footer */
.product-footer-actions .cart-handle,
.product-footer-actions .product-whatsapp-btn {
  display: flex;
  align-items: center;
  padding: 0;
}

.product-footer-actions .cart-handle img,
.product-footer-actions .product-whatsapp-btn img {
  height: 40px;
  width: auto;
  border-radius: 10px;
}

.product-footer-actions .btn-catalog {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: var(--rgba-primary-1, rgba(0, 150, 136, 0.08));
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.product-footer-actions .btn-catalog:hover {
  background: var(--primary);
  color: #fff;
}

.product-footer-actions .btn-catalog .icon {
  font-size: 15px;
}

.product-footer-actions .btn-wishlist {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  color: var(--title, #333);
  background: #fff;
  white-space: nowrap;
  transition: color 0.2s;
}

.product-footer-actions .btn-wishlist .icon {
  font-size: 15px;
}

.product-footer-actions .btn-wishlist svg {
  flex-shrink: 0;
}

.product-detail-bookmark {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
}

.dz-product-preview {
  position: relative;
}

.product-detail-bookmark__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  color: var(--primary);
}

.product-detail-bookmark__btn.active {
  color: #e53935;
}

/*******************************************************/
/* about us page */
.about-logo {
  max-width: 180px;
  height: auto;
}

.about-hero-image {
  overflow: hidden;
}

.about-hero-image img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}

.about-description {
  color: var(--body-color, #6c757d);
  line-height: 1.7;
  white-space: pre-line;
  margin-bottom: 0;
}

.category-swiper .category-btn {
  border: none;
  cursor: pointer;
}

/*******************************************************/
/* category explorer page */
.category-page-container {
  max-width: 960px;
}

.category-explorer__hero {
  margin-bottom: 20px;
}

.category-explorer__eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.category-explorer__title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  color: var(--title, #2f2f2f);
  line-height: 1.2;
}

.category-explorer__subtitle {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--body-color, #6c757d);
}

.category-explorer__search {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border-color, #e8e8e8);
  border-radius: 14px;
  padding: 0 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.category-explorer__search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--rgba-primary-1);
}

.category-explorer__search .icon-search {
  color: #9aa0a6;
  font-size: 18px;
  margin-right: 10px;
}

.category-explorer__search input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  padding: 14px 0;
  font-size: 15px;
  color: var(--title, #2f2f2f);
}

.category-explorer__clear {
  border: 0;
  background: var(--light, #eaeaea);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--title);
  padding: 0;
}

.category-explorer__letters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.category-explorer__letter {
  border: 1px solid var(--border-color, #e8e8e8);
  background: #fff;
  color: var(--title, #2f2f2f);
  font-size: 12px;
  font-weight: 700;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.category-explorer__letter:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.category-explorer__letter.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.category-explorer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.category-tile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border-color, #e8e8e8);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  animation: categoryTileIn 0.45s ease both;
}

.category-tile:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 10px 24px rgba(13, 119, 94, 0.12);
}

.category-tile:hover .category-tile__arrow {
  transform: translateX(4px);
  background: var(--primary);
  color: #fff;
}

.category-tile:hover .category-tile__hint {
  opacity: 1;
  transform: translateY(0);
}

.category-tile__mono {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--tile-bg);
  color: var(--tile-fg);
  flex-shrink: 0;
}

.category-tile__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.category-tile__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--title, #2f2f2f);
  line-height: 1.3;
}

.category-tile__hint {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  opacity: 0.55;
  transform: translateY(2px);
  transition: opacity 0.2s, transform 0.2s;
}

.category-tile__arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--light, #eaeaea);
  color: var(--title);
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.category-explorer__empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--body-color, #6c757d);
}

.category-explorer__empty .icon {
  font-size: 40px;
  display: block;
  margin-bottom: 12px;
  opacity: 0.45;
}

@keyframes categoryTileIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 576px) {
  .category-explorer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 992px) {
  .category-explorer__title {
    font-size: 34px;
  }

  .category-explorer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .category-tile {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-tile,
  .category-tile:hover,
  .category-tile__arrow,
  .category-tile__hint,
  .category-explorer__letter {
    animation: none;
    transition: none;
  }
}