:root {
  --ink: #1B1F23;
  --paper: #FBF8F3;
  --line: #E4DFD3;
  --accent: #c9a84c;
  /* WhatsApp-ish deep green */
  --accent-soft: #E7F3EC;
  --price: #B5532A;
  /* terracotta for price */
  --muted: #6B6258;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

header {
  padding: 28px 20px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 5;
}

header h1 {
  margin: 0 0 4px;
  font-size: 26px;
  letter-spacing: 0.2px;
}

header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

#status {
  padding: 16px 20px;
  color: var(--muted);
  font-size: 14px;
}

/* 
  #debugBox{
    margin: 0 20px 16px;
    padding: 12px 14px;
    background: #FFF6E5;
    border: 1px solid #E8CFA0;
    border-radius: 8px;
    font-family: monospace;
    font-size: 12px;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 260px;
    overflow: auto;
    color: #5a4a2a;
  } */

#grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 30px;
  row-gap: 10px;
  padding: 18px 20px 100px;
  max-width: 100%;
  margin: 0 auto;
}

.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  position: relative;
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}

.card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.card .row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
}

.card .imgwrap {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 8px;
  background: #F1EDE3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.card .noimg {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  line-height: 1.3;
}

.card .info {
  flex: 1;
  min-width: 0;
}

.card .name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 3px;
}

.card .price {
  font-size: 14px;
  font-weight: 700;
  color: var(--price);
  margin: 0;
}

.selectBtn {
  flex: 0 0 auto;
  border: 1.5px solid var(--accent);
  background: #fff;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}

.card.selected .selectBtn {
  background: var(--accent);
  color: #fff;
}

/* footer{
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 10;
  } */

footer .count {
  font-size: 14px;
  color: var(--muted);
}

footer .count strong {
  color: var(--ink);
}

.cart-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 1000;
}

#enquireBtn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity .15s ease, transform .1s ease;
}

#enquireBtn:disabled {
  background: #C9C2B4;
  cursor: not-allowed;
}

#enquireBtn:not(:disabled):hover {
  opacity: 0.92;
}

#enquireBtn:not(:disabled):active {
  transform: scale(0.98);
}

.empty,
.error {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
}

.error {
  color: var(--price);
}

@media (max-width: 600px) {
  #grid {
    grid-template-columns: 1fr;
    padding: 14px 14px 100px;
  }

  .card .imgwrap {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
  }

  .card .name {
    font-size: 14px;
  }

  header h1 {
    font-size: 21px;
  }
}

/* Skeleton Loader */

.skeleton-product {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  margin-bottom: 15px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
}

.skeleton-img,
.skeleton-line {
  background: linear-gradient(90deg,
      #f0f0f0 25%,
      #e0e0e0 50%,
      #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite linear;
}

.skeleton-img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  flex-shrink: 0;
}

.skeleton-content {
  flex: 1;
}

.skeleton-line {
  height: 14px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.skeleton-line.short {
  width: 60%;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* hero  */
.wholesale-hero {
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 8%;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, #111, #292929);
  color: #c9a84c;
}


.hero-text {
  max-width: 620px;
  z-index: 2;
  
}


.hero-badge {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 30px;
  /* background: #C9A84C; */
  border: 1px solid #ffffff40;
  margin-bottom: 25px;
  font-size: 14px;
  
}


.hero-title {
  font-size: 58px;
  line-height: 1.1;
  margin-bottom: 25px;
}


.hero-title em {
  color: #d6a85c;
  font-style: normal;
}



.hero-desc {
  font-size: 18px;
  line-height: 1.7;
  color: #ddd;
}



.hero-buttons {
  display: flex;
  gap: 20px;
  margin: 35px 0;
}



.primary-btn,
.outline-btn {
  padding: 15px 30px;
  border-radius: 40px;
  cursor: pointer;
  font-size: 16px;
  transition: .3s;
}


.primary-btn {
  background: #d6a85c;
  border: none;
}


.primary-btn:hover {
  transform: translateY(-3px);
}



.outline-btn {
  background: transparent;
  color: white;
  border: 1px solid white;
}



.hero-info {
  display: flex;
  gap: 30px;
}


.info-box {
  border-left: 2px solid #d6a85c;
  padding-left: 18px;
}


.info-box h3 {
  font-size: 28px;
  margin: 0;
}


.info-box p {
  margin: 5px 0;
  color: #ccc;
}




.hero-visual {
  position: relative;
  width: 420px;
  height: 420px;
}



.main-card {
  width: 320px;
  height: 320px;
  border-radius: 30px;
  background: #ffffff15;
  backdrop-filter: blur(15px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
  box-shadow: 0 20px 50px #0005;
}



.circle-icon {
  font-size: 90px;
}



.floating-card {
  position: absolute;
  background: #C9A84C;
  color: #2c3d19;
  padding: 15px 25px;
  border-radius: 30px;
  box-shadow: 0 15px 30px #0004;
  animation: float 3s infinite;
}


.card-one {
  top: 30px;
  right: 0;
}


.card-two {
  left: 0;
  bottom: 80px;
}


.card-three {
  right: 20px;
  bottom: 20px;
}



@keyframes float {

  50% {
    transform: translateY(-15px);
  }

}



@media(max-width:900px) {

  .wholesale-hero {
    flex-direction: column;
    text-align: center;
  }


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


  .hero-info,
  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }


  .hero-visual {
    margin-top: 50px;
  }

}

/* check box css */
.checkboxWrap{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:30px;
}

.productCheckbox{
  width:22px;
  height:22px;
  cursor:pointer;
  accent-color: var(--accent);
}