* {
  font-family: Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

:root {
  --color1: #fff;
  --color2: #000;
  --min-cart: 280px;
  --card: #ffffff;
}

body {
  position: relative;
}


@keyframes scrollUp {
  from { transform: rotate(-30deg) translateY(0); }
  to   { transform: rotate(-30deg) translateY(-150px); }
}

body::before {
  content: '';
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: -1;
  background: url('IMG/Untitled (7).png') center / 150px space;
  opacity: 0.03;
  animation: scrollUp 3s linear infinite;
  will-change: transform;
  pointer-events: none;
  backface-visibility: hidden;
}

@media (min-width: 650px) {
  body::before {
    background: none;
    animation: none; 
  }
}

.section {
  margin-top: 100px;
  padding: 18px;
}

.sectionS {
  min-height: calc(100vh - 135px);
}

.grid-wrap {
  /*--gcols: repeat(auto-fill, minmax(var(--min-cart), 1fr));
  */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--min-cart), 1fr));
  /*var(--gcols);*/
  gap: 18px;
}

/*
.grid-wrap[data-cols="1"] {
  grid-template-columns: repeat(1, minmax(var(--min-cart), 1fr));
}
.grid-wrap[data-cols="2"] {
  grid-template-columns: repeat(2, minmax(var(--min-cart), 1fr));
}
.grid-wrap[data-cols="3"] {
  grid-template-columns: repeat(3, minmax(var(--min-cart), 1fr));
}
.grid-wrap[data-cols="4"] {
  grid-template-columns: repeat(4, minmax(var(--min-cart), 1fr));
}
*/

.cart {
  background: var(--color1);
  border-radius: 14px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 380px;
}

.img-frame {
  height: 190px;
  background: var(--color1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.img-frame img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color2);
  color: var(--color1);
  padding: 6px 8px;
  font-size: 12px;
  border-radius: 8px;
}

.cart-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  background: linear-gradient(0deg, #FCFCFF 90%, #FFFFFF 100%);
}

.meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.meta .title {
  font-size: 16px;
  font-weight: 700;
}

.meta .price {
  text-align: right;
  font-weight: 700;
}

.muted {
  color: var(--color2);
  font-size: 13px;
}

.muted {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
  line-clamp: 2;
  line-height: 1.4;
  max-height: calc(1.4em * 2);
  margin: 0 0 1rem 0;
}

.muted.fancy {
  position: relative;
}

.muted.fancy::after {
  content: '';
  position: absolute;
  right: 0.25rem;
  bottom: 0;
  background: white;
  padding-left: 0.25rem;
  font-weight: 600;
}

.stats {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--color2);
}

.progress-wrap {
  margin-top: 6px;
}

.progress-bar {
  height: 8px;
  background: #eef2f4;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar>span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #aaa, #000);
  transition: width .5s ease;
}

.progress-note {
  font-size: 12px;
  color: var(--color2);
  margin-top: 6px;
}

.actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  align-items: center;
}

.btn {
  border: 0;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  background: transparent;
  border: 1px solid #E0E0E0;
}

.btn.primary {
  background: var(--color2);
  color: var(--color1);
  flex: 1;
}

.btn.ghost {
  background: transparent;
  color: var(--color2);
  min-width: 88px;
  border-radius: 10px;
}

.cart-footer {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-footer {
  flex: 1;
}


/* ============ Floating cart ============ */
.floating-cart {
  position: fixed;
  right: 18px;
  bottom: 30px;
  z-index: 1200;
  background: #111;
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  display: flex;
  gap: 10px;
  border: none;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
  transition: transform .18s
}

.floating-cart .count {
  background: #ff3b3b;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 800;
  color: #fff
}

/* ============ Overlay modals ============ */
.overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .45);
  z-index: 1250;
  padding: 100px 20px 0px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.overlay.show {
  display: flex
}

.modal {
  background: #fff;
  border-radius: 12px;
  max-width: 920px;
  width: 100%;
  max-height: 75vh;
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  transform: translateY(12px);
  opacity: 0;
  transition: all .22s
}

.overlay.show .modal {
  transform: none;
  opacity: 1
}

.modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}

.modal header strong {
  font-size: 1.8rem;
}

.modal .body {
  padding: 14px
}

.modal .footer {
  display: block;
  padding: 12px 18px;
  border-top: 1px solid #eee;
  position: sticky;
  bottom: 0;
  background: #fff;
  z-index: 10;
}

/* cart list */
.cart-list {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.cart-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #f0f0f0
}

.cart-item img {
  width: 72px;
  height: 56px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff
}

.qty-control {
  display: flex;
  gap: 8px;
  align-items: center
}

.qty-control button {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer
}

/* checkout summary */
.summary {
  border: 1px dashed #eee;
  padding: 12px;
  border-radius: 8px;
  margin-top: 12px
}

label {
  display: block;
  margin: 8px 0 6px;
  font-weight: 700
}

input[type=text],
input[type=tel],
textarea {
  width: calc(100% - 21px);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd
}

/* whatsapp button style */
.wa-btn,
.btnSm {
  all: unset;
  display: block;
  gap: 8px;
  text-align: center;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: #25D366;
  color: #fff;
  font-weight: 800;
  animation: pulse-once 0.8s ease-in-out 2;
}

.aObtn {
  color: #168AFF;
  display: block;
  text-align: center;
}

.aObtn.hide {
  display: none;
}

.aObtn:hover {
  text-decoration: underline;
}

.sBtnCon {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.btnSm {
  background: #fef;
  animation: none;
  margin: 5px;
  flex: 1 1 280px;
}

.messenger {
  background: linear-gradient(215deg,
      rgb(255, 143, 178) 10%,
      rgb(167, 151, 255) 50%,
      rgb(0, 229, 255) 150%);
  position: relative;
}

.messages {
  background: #FFD72C;
}

.mail {
  background: #EA4335;
}

.phone {
  background: #8D5695;
}

@keyframes pulse-once {
  0% {
    transform: scale(1);
  }
  
  50% {
    transform: scale(1.05);
  }
  
  /* বড় হওয়ার মাপ */
  100% {
    transform: scale(1);
  }
}

#es-messenger-send.copy-mode {
  background: #333;
}

/* copy popup inside */
#es-messenger-send .copy-box {
  position: absolute;
  left: 50%;
  top: -45px;
  transform: translateX(-50%);
  background: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  font-size: 13px;
  white-space: nowrap;
  animation: fadeIn 0.25s ease;
}

#es-messenger-send .copy-btn {
  margin-left: 8px;
  padding: 4px 8px;
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
  
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
/* call popup inside */
#es-phone-send {
  position: relative;
}

/* loading state */
#es-phone-send.loading {
  pointer-events: none;
  opacity: 0.7;
}

#es-phone-send.loading::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

/* modal state */
#es-phone-send.call-mode {
  z-index: 9999;
}

/* disable scroll background */
body.call-modal-open {
  overflow: hidden;
}

/* call popup */
#es-phone-send .call-box {
  position: absolute;
  left: 50%;
  top: -12px;
  transform: translate(-50%, -100%);
  min-width: 210px;
  background: rgba(255, 255, 255, 0.98);
  color: #111;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.06);
  animation: callPop 0.18s ease-out;
}

/* text */
#es-phone-send .call-title {
  font-size: 15px;
  font-weight: 700;
}

#es-phone-send .call-subtitle {
  font-size: 12px;
  color: #666;
  margin-top: 3px;
}

/* button */
#es-phone-send .call-btn {
  display: block;
  margin-top: 10px;
  padding: 9px 12px;
  width: 100%;
  background: #1f9d55;
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  box-sizing: border-box;
}

/* close button */
#es-phone-send .close-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 25px;
  height: 25px;
  border: none;
  border-radius: 50%;
  background: #eee;
  cursor: pointer;
  font-size: 16px;
  line-height: 22px;
}

/* animations */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes callPop {
  from {
    opacity: 0;
    transform: translate(-50%, -90%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -100%);
  }
}

.remove-btn {
  color: #ff000077;
  border-color: #ff000050;
  background: #ff000010;
}

.close {
  background: #fff;
}

.showB {
  display: block;
  height: 60vh;
  background: url('/IMG/No_results_found_for_search.webp') no-repeat center/ contain;
  opacity: .1;
}

.dInfo {
  color: #000;
  padding: 3px 8px 3px 8px;
  transform: translateY(2px);
}

/* Floating popup created by JS */
.info-popup {
  position: fixed;
  z-index: 9999;
  min-width: 260px;
  max-width: 360px;
  background: var(--card);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 0 7px rgba(0, 0, 0, .2);
  border: 1px solid rgba(15, 23, 42, 0.04);
  transform-origin: top right;
  animation: pop .2s ease forwards
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px
}

.info-title {
  font-weight: 700;
  font-size: 0.95rem
}

.info-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 10px
}

.zone {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0
}

label.zone-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer
}

label.zone-item input {
  accent-color: var(--accent)
}

label.zone-item:hover {
  background: #f8fafc
}

.zone-meta {
  display: flex;
  flex-direction: column
}

.zone-name {
  font-weight: 600
}

.zone-price {
  font-size: 0.85rem;
  color: var(--muted)
}

.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  gap: 8px
}

.selected-price {
  font-weight: 700
}

/* small screen center modal fallback.*/
@media (max-width:420px) {
  .info-popup {
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) scale(1) !important;
    min-width: 88%;
    max-width: 92%
  }
}

.tooltip-wrapper {
  position: relative;
  display: inline-block;
}

.dynamic-tooltip {
  position: absolute;
  bottom: 150%;
  left: 110%;
  transform: translateX(-50%) scale(0);
  transform-origin: center bottom;
  background-color: #2c3e50;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  min-width: 180px;
  max-width: 250px;
  text-align: center;
  line-height: 1.4;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.3, 1.5, 0.7, 1),
    transform 0.35s cubic-bezier(0.3, 1.5, 0.7, 1),
    visibility 0.35s;
}

.tooltip-arrow {
  width: 0;
  height: 0;
  border-top: 16px solid #2c3e50;
  border-right: 16px solid transparent;
  position: absolute;
  bottom: -15px;
  left: calc(40% + 10px);
  transform: translateX(-50%);
}

.dynamic-tooltip.visible {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  visibility: visible;
}

#load_box {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0px auto;
  height: 100px;
  width: 200px;
  top: 20%;
}

.ball {
  position: absolute;
  bottom: 0px;
  display: block;
  height: 0px;
  width: 0px;
  border: 10px solid black;
  border-radius: 50%;
  bottom: 10px;
  float: left;
  -webki-animation: bounce 3.5s infinite;
  -moz-animation: bounce 3.5s infinite;
  -ms-animation: bounce 3.5s infinite;
  -o-animation: bounce 3.5s infinite;
  animation: bounce 3.5s infinite;
}


.ball:nth-child(2) {
  margin-left: 30%;
  -webkit-animation-delay: 0.5s;
  -moz-animation-delay: 0.5s;
  -ms-animation-delay: 0.5s;
  -o-animation-delay: 0.5s;
  animation-delay: 0.5s;
}

.ball:nth-child(3) {
  margin-left: 60%;
  -webkit-animation-delay: 1s;
  -moz-animation-delay: 1s;
  -ms-animation-delay: 1s;
  -o-animation-delay: 1s;
  animation-delay: 1s;
}

.ball:nth-child(4) {
  margin-left: 89%;
  -webkit-animation-delay: 1.5s;
  -moz-animation-delay: 1.5s;
  -ms-animation-delay: 1.5s;
  -o-animation-delay: 1.5s;
  animation-delay: 1.5s;
}


@-webkit-keyframes bounce {
  0% {
    margin-bottom: 0px;
  }
  50% {
    margin-bottom: 50px;
  }
  100% {
    margin-bottom: 0px;
  }
}

@-moz-keyframes bounce {
  0% {
    margin-bottom: 0px;
  }
  50% {
    margin-bottom: 50px;
  }
  100% {
    margin-bottom: 0px;
  }
}

@-o-keyframes bounce {
  0% {
    margin-bottom: 0px;
  }
  50% {
    margin-bottom: 50px;
  }
  100% {
    margin-bottom: 0px;
  }
}

@-ms-keyframes bounce {
  0% {
    margin-bottom: 0px;
  }
  50% {
    margin-bottom: 50px;
  }
  100% {
    margin-bottom: 0px;
  }
}

@-keyframes bounce {
  0% {
    margin-bottom: 0px;
  }
  50% {
    margin-bottom: 50px;
  }
  100% {
    margin-bottom: 0px;
  }
}


  #es-back-to-cart,
#es-save-address {
  padding: 10px;
  border-radius: 8px;
  text-transform: uppercase;
  border: 1px solid #ddd
}

#es-save-address {
  order: 2;
}

#es-back-to-cart {
  order: 1;
}

.summary>div:nth-of-type(2) , .summary>div:nth-of-type(1) {
  background: #F1F1F1;
  border-radius: 3px;
  align-items: center;
  padding-left: 10px;
  padding-right: 10px;
  height: 26px;
  text-transform: capitalize;
}
