/* BasaboMart · home page, rebuilt to match www.basabomart.com
   Measurements and colours taken from the live site at 1440px. */

:root {
  --teal: #0ba0a4;
  --teal-ring: #71c8ca;
  --orange: #f48a42;
  --red: #cc1f1f;
  --ink: #212529;
  --title: #212121;
  --line: #f0f0f0;
  --muted: #999999;
}

*,
::before,
::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

h2,
h3,
h4 {
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1210px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ===== Top bar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 34px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--teal);
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.topbar-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: topbar 60s linear infinite;
}

.topbar-item {
  padding: 0 24px;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}

.topbar-item i {
  margin-right: 4px;
}

.topbar-dot {
  font-size: 12px;
  opacity: 0.8;
}

@keyframes topbar {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .topbar-track {
    animation: none;
  }
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 34px;
  z-index: 39;
  padding: 8px 0;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.header-row {
  display: flex;
  align-items: center;
  height: 84px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 0 0 205px;
  padding-left: 11px;
}

.menu-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--teal);
  font-size: 21.6px;
  cursor: pointer;
}

.logo img {
  display: block;
  width: 125px;
  height: 84px;
  object-fit: contain;
  border-radius: 5px;
}

.search {
  position: relative;
  flex: 0 0 540px;
  margin-left: 10px;
}

.search input {
  width: 100%;
  height: 37px;
  padding: 0 44px 0 14px;
  border: 0;
  border-radius: 5px;
  background: #f0f5ff;
  color: #000;
  font: 14px "Open Sans", sans-serif;
  outline: none;
}

.search input::placeholder {
  color: #757575;
}

.search button {
  position: absolute;
  top: 50%;
  right: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--teal);
  font-size: 18px;
  transform: translateY(-50%);
  cursor: pointer;
}

.header-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex: 1;
}

.hotline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--teal);
  font-weight: 600;
}

.account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #575757;
  font-size: 16px;
}

.account i {
  font-size: 18px;
}

/* ===== Category icons ===== */
.cat-menu {
  display: flex;
  justify-content: center;
  gap: 54px;
  padding: 23px 0 20px;
}

.cat-menu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 88px;
}

.cat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border: 1px solid var(--teal-ring);
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cat-icon img {
  width: 87px;
  height: 87px;
  border-radius: 50%;
  object-fit: cover;
}

.cat-menu a:hover .cat-icon {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(11, 160, 164, 0.25);
}

.cat-text {
  margin-top: 14px;
  color: #1a1a1a;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* ===== Slider ===== */
.slider {
  position: relative;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.6s ease;
}

.slider-track img {
  display: block;
  flex: 0 0 100%;
  width: 100%;
  height: auto;
}

.slider-btn {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15%;
  padding: 0;
  border: 0;
  background: none;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.15s;
}

.slider-btn:hover {
  opacity: 0.9;
}

.slider-btn::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 32px;
  background: no-repeat center / 100% 100%;
}

.slider-btn.prev {
  left: 0;
}

.slider-btn.next {
  right: 0;
}

.slider-btn.prev::before {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.slider-btn.next::before {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* ===== Section header (Weekly Deals / Best Seller) ===== */
.section-container {
  max-width: 1202px;
  margin: 0 auto;
  padding: 24px;
}

.section-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.section-title {
  color: var(--teal);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.see-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
  padding: 6px 16px;
  border: 1px solid var(--teal);
  border-radius: 20px;
  background: #fff;
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: background 0.15s, color 0.15s;
}

.see-more-btn:hover {
  background: var(--teal);
  color: #fff;
}

/* ===== Weekly deals ===== */
.deal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 280px));
  gap: 19px;
  padding: 0 0 0 22px;
}

.deal-card {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  transition: box-shadow 0.2s;
}

.deal-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.deal-image-container {
  position: relative;
}

.deal-timer {
  position: absolute;
  top: 0;
  left: -5px;
  display: flex;
  gap: 2px;
  padding: 4px 6px 0;
  border-radius: 4px;
  background: var(--red);
}

.t-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.t-num {
  min-width: 17px;
  padding: 1px 2px;
  border-radius: 3px;
  background: #fff;
  color: var(--red);
  font-size: 11.52px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.t-lbl {
  color: rgba(255, 255, 255, 0.85);
  font-size: 7.2px;
  font-weight: 700;
  line-height: 1.3;
}

.t-sep {
  color: #fff;
  font-size: 14.4px;
  font-weight: 700;
  line-height: 1;
}

.sale-tag {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 46px;
  padding: 10px 4px 20px;
  border-radius: 6px 6px 50% 50%;
  background: var(--teal);
  color: #fff;
  line-height: 1;
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.25);
}

.sale-percent {
  font-size: 15px;
  font-weight: 900;
}

.sale-off {
  font-size: 9px;
  font-weight: 700;
}

.deal-image {
  display: block;
  width: 100%;
  height: 176px;
  padding-top: 32px;
  object-fit: contain;
}

.deal-title {
  margin: 12px 0 4px;
  overflow: hidden;
  color: var(--title);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deal-price {
  text-align: center;
}

.original-price {
  color: var(--muted);
  font-size: 14px;
  text-decoration: line-through;
}

.current-price {
  margin-left: 6px;
  color: var(--orange);
  font-size: 20px;
  font-weight: 700;
}

.deal-btn-row {
  margin-top: 14px;
  text-align: center;
}

.buy-btn {
  display: inline-block;
  padding: 6px 24px;
  border: 1px solid var(--teal);
  border-radius: 50px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}

.deal-card:hover .buy-btn {
  background: var(--teal);
  color: #fff;
}

/* ===== Category product sections ===== */
.product-section {
  display: grid;
  grid-template-columns: minmax(0, 394fr) minmax(0, 787fr);
  gap: 21px;
  max-width: 1260px;
  margin: 0 auto;
  padding: 48px 32px;
}

.spotlight {
  position: relative;
  display: block;
  height: 500px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.spotlight-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.spotlight:hover .spotlight-img {
  transform: scale(1.03);
}

.spotlight-info-deck {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 9px 15px;
  background: linear-gradient(rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.28) 100%);
}

.spotlight-title {
  color: #fff;
  font-size: 18.4px;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.spotlight-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.spotlight-avatar-stack {
  display: flex;
}

.avatar-ring {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: -6px;
  overflow: hidden;
  border-radius: 50%;
  background: #f8fafc;
}

.avatar-ring img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-more {
  background: var(--teal);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
}

.spotlight-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--teal);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.product-section-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 243px;
  gap: 16px;
}

.product-section-grid.is-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-section-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--teal);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-section-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.product-section-image {
  position: relative;
  display: block;
  height: 144px;
  flex: none;
}

.product-section-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.is-wide .product-section-image img {
  object-fit: contain;
}

.stock-out {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  padding: 6px 0;
  background: rgba(230, 230, 230, 0.85);
  color: #444;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  transform: translateY(-50%);
}

.product-section-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
}

.product-name {
  width: 100%;
  padding: 0 16px;
  overflow: hidden;
  color: #333;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price {
  color: var(--orange);
  font-size: 16px;
  font-weight: 700;
}

.price del {
  margin-left: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.card-action-row {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.product-section-buy-btn {
  display: flex;
  align-items: center;
  padding: 5px 7px;
  border: 1px solid var(--teal);
  border-radius: 25px;
  color: var(--teal);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.product-section-buy-btn:hover {
  background: var(--teal);
  color: #fff;
}

.view-more {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #ddd;
}

.view-more-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  transition: opacity 0.2s, transform 0.4s;
}

.view-more span {
  position: relative;
  color: #fff;
  font-size: 22.4px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.view-more:hover .view-more-image {
  opacity: 0.55;
  transform: scale(1.05);
}

/* ===== Wide ad ===== */
.ad-card {
  display: block;
  max-width: 1202px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  background: #f1f5f9;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.ad-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== Best seller ===== */
.best {
  padding-top: 40px;
  padding-bottom: 20px;
}

.best-arrows {
  display: flex;
  gap: 8px;
  justify-self: end;
}

.best-arrows button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #e3e3e3;
  border-radius: 50%;
  background: #fff;
  color: #333;
  font-size: 11px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.best-arrows button:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.best-viewport {
  overflow: hidden;
  padding: 0 22px;
}

.best-track {
  display: grid;
  grid-auto-columns: calc((100% - 3 * 15px) / 4);
  grid-auto-flow: column;
  column-gap: 15px;
  transition: transform 0.5s ease;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: box-shadow 0.2s;
}

.product-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.badge-container {
  position: relative;
  width: 100%;
}

.product-image {
  display: block;
  width: 100%;
  height: 180px;
  margin-bottom: 11px;
  object-fit: contain;
}

.product-title {
  width: 100%;
  overflow: hidden;
  color: var(--title);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 8px 0 4px;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--teal);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}

.product-rating i {
  font-size: 10px;
}

.product-price {
  color: var(--title);
  font-size: 14px;
  font-weight: 600;
}

.product-delivery {
  margin-top: 4px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 500;
}

.best-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.best-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #cfd8dc;
  cursor: pointer;
}

.best-dots button.on {
  background: var(--teal);
}

/* ===== Footer ===== */
.footer {
  margin-top: 8px;
  padding: 48px 64px 0;
  background: #1a1a1a;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  max-width: 1320px;
  margin: 0 auto;
}

.footer h4 {
  margin-bottom: 18px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer-grid > div > a {
  display: block;
  margin-bottom: 10px;
  color: #cfcfcf;
  font-size: 14px;
}

.footer-grid > div > a:hover {
  color: var(--teal);
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
}

.contact-line img {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  filter: invert(52%) sepia(60%) saturate(560%) hue-rotate(135deg);
}

.contact-line:nth-of-type(2) img {
  filter: invert(1);
}

.contact-line:nth-of-type(3) img {
  filter: none;
}

.social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social img {
  display: block;
  width: 25px;
  height: 25px;
}

.footer-copy {
  max-width: 1320px;
  margin: 40px auto 0;
  padding: 22px 0 26px;
  border-top: 1px solid #333;
  color: #cfcfcf;
  font-size: 13px;
  text-align: center;
}

/* ===== Floating widgets ===== */
.float-cart {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: 74px;
  overflow: hidden;
  border: 1px solid var(--teal);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transform: translateY(-50%);
}

.float-cart-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px 4px;
}

.float-cart-top img {
  width: 34px;
  height: 34px;
}

.float-cart-top small {
  color: #333;
  font-size: 10px;
  font-style: italic;
  font-weight: 600;
}

.float-cart-total {
  padding: 3px 0;
  background: var(--teal);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.float-whatsapp {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 26px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.to-top {
  position: fixed;
  right: 34px;
  bottom: 34px;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(11, 160, 164, 0.25);
}

/* ===== Responsive ===== */
@media (max-width: 1199.98px) {
  .search {
    flex: 1 1 auto;
  }

  .header-links {
    flex: 0 0 auto;
    margin-left: 18px;
  }

  .deal-grid {
    padding: 0;
  }
}

@media (max-width: 991.98px) {
  .header-row {
    height: 64px;
  }

  .logo img {
    width: 100px;
    height: 64px;
  }

  .search,
  .header-links {
    display: none;
  }

  .deal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-section {
    grid-template-columns: minmax(0, 1fr);
    padding: 28px 16px;
  }

  .spotlight {
    height: auto;
    aspect-ratio: 394 / 500;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
  }

  .product-section-grid,
  .product-section-grid.is-wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .best-track {
    grid-auto-columns: calc((100% - 2 * 15px) / 3);
  }

  .footer {
    padding: 40px 24px 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }

  .ad-card {
    margin: 0 16px;
  }
}

@media (max-width: 575.98px) {
  .topbar-item {
    font-size: 14px;
  }

  .cat-menu {
    gap: 28px;
  }

  .cat-menu a,
  .cat-icon {
    width: 72px;
  }

  .cat-icon {
    height: 72px;
  }

  .cat-icon img {
    width: 71px;
    height: 71px;
  }

  .section-container {
    padding: 16px;
  }

  .section-header {
    padding: 10px 12px;
  }

  .section-title {
    font-size: 19px;
  }

  .see-more-btn {
    padding: 4px 10px;
    font-size: 11px;
  }

  .deal-grid {
    gap: 10px;
  }

  .deal-image {
    height: 150px;
  }

  .current-price {
    font-size: 17px;
  }

  .product-section-grid,
  .product-section-grid.is-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .best-viewport {
    padding: 0;
  }

  .best-track {
    grid-auto-columns: calc((100% - 15px) / 2);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .float-whatsapp {
    bottom: 18px;
    left: 18px;
  }

  .to-top {
    right: 22px;
    bottom: 22px;
  }
}
