:root {
  --brand: #f85606;
  --muted: #6c757d;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

/* Header */
.topbar {
  color: #fff;
  background-color: var(--brand);
  padding: 0.4rem 0 2rem;
}

.top-menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  margin: 0;
  justify-content: flex-end;
}

.top-menu li {
  list-style: none;
}

.top-menu li a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}

.search-box input {
  border-radius: 30px;
  padding: 0.6rem 1rem;
}

.btn-search {
  border-radius: 30px;
  background-color: #fff;
  color: var(--brand);
  font-weight: 600;
}

.btn-search:hover {
  background-color: #ffe7de;
}

/* Categories */
.categories {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}

.categories a{
    text-decoration: none;
    color: #333;
}

.category-item {
  padding: 0.6rem 0.75rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f3f3f3;
  font-size: 0.95rem;
  transition: background 0.2s;
  cursor: pointer;
}

.category-item:hover {
  background: #fef2ec;
}

.category-item:last-child {
  border-bottom: 0;
}

/* Hero */
.hero img {
  border-radius: 12px;
  width: 100%;
  height: auto;
}

/* Product Card */
.product-card {
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
}

.product-card img.flashImg {
    height: 100px !important;
}

.price {
  font-weight: 700;
  color: #111;
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.9rem;
}

/*flas sale */
.fs-progress {
    background: #ffb6bf;
    border-radius: 2vw;
    font-size: 2.66667vw;
    height: 4vw;
    line-height: 4vw;
    margin: 1.2rem 0 0;
    padding: 1.1rem;
    position: relative;
    width: 24vw;
    opacity:0;
    visibility:hidden;
}
.fs-progress-hot {
    background: url(//img.lazcdn.com/g/tps/imgextra/i2/O1CN01cIQWMd1TPnNYzyvZz_!!6000000002375-2-tps-50-65.png);
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: contain;
    bottom: 0;
    height: 5.73333vw;
    left: -.8vw;
    position: absolute;
    width: 5.73333vw;
    z-index: 5;
}
.fs-progress-val {
    background: #fe4960;
    border-radius: 2vw;
    color: #fff;
    height: 100%;
    left: 0;
    padding-left: 4.8vw;
    position: absolute;
    top: 0;
    white-space: nowrap;
}

/*info*/
.footer-info-section {
  background: #fff;
  border-top: 1px solid #eee;
}

.footer-info-section h6 {
  color: #111;
}

.footer-info-section img {
  height: 35px;
  width: auto;
  object-fit: contain;
  background: #fff;
  padding: 3px;
  border-radius: 4px;
}

.footer-info-section ul li {
  color: #555;
  font-size: 14px;
  margin-bottom: 6px;
  font-family: sans-serif;
}

@media (max-width: 768px) {
  .footer-info-section img {
    height: 24px;
  }
  .fs-progress {
    opacity:1;
    visibility:visible;
    }
}


/* Footer */
.site-footer {
  background: #fff;
  padding: 2rem 0;
  border-top: 1px solid #eee;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .search-box {
    width: 100%;
    margin-top: 10px;
  }
  .top-menu ul {
    justify-content: center;
  }
}

@media (max-width: 768px) {
    .topbar{
        display:none!important;
    }
    #heroCarousel{
        display:none!important;
    }
  .product-card img {
    height: 150px;
  }
  .brand {
    font-size: 1rem;
  }
  .topbar {
    text-align: center;
  }
  footer.site-footer{
      padding: 0;
  }
}
/* Bottom Navigation Bar */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  padding: 6px 0;
  z-index: 9999;
}

.mobile-bottom-nav .nav-item {
  flex: 1;
  text-align: center;
  color: #6c757d;
  font-size: 13px;
  text-decoration: none;
}

.mobile-bottom-nav .nav-item i {
  font-size: 20px;
  display: block;
  margin-bottom: 2px;
}

.mobile-bottom-nav .nav-item.active {
  color: #f85606; /* Daraz orange */
}

.mobile-bottom-nav .nav-item.active i {
  color: #f85606;
}
/* Mobile Daraz Style Section */
.daraz-mobile-home {
    background-image: url(images/bg.jpg);
    background-size: auto;
    background-position: top center;
    background-repeat: no-repeat;
    padding: 20px;
}

/* Search bar */
.mobile-header {
  padding: 0 0 12px;
  display: flex;
  justify-content: center;
}
.mobile-header .search-bar {
  width: 100%;
  display: flex;
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
}
.mobile-header input {
  flex: 1;
  border: none;
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
}
.mobile-header button {
  background: #f85606;
  color: #fff;
  border: none;
  padding: 0 16px;
  font-size: 14px;
}

/* Slider */
#mobileHeroSlider img {
  border-radius: 12px;
  margin-top: 10px;
}

/* Category row (5 per row) */
.category-icons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
  border-radius: 12px;
  margin: 10px 0px 0;
  padding: 10px 0;
}
.category-icons .cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}
.category-icons img {
  width: 45px;
  height: 45px;
  margin-bottom: 5px;
}
.category-icons span {
  font-size: 12px;
  color: #333;
}

/* Responsive visibility */
@media (min-width: 769px) {
  .daraz-mobile-home {
    display: none;
  }
  .carousel-item img {
    height: 25rem;
    width: 100%;
    }
}

/*product view page*/
.product-container {
    max-width: 1180px;
    margin: auto;
    padding: 20px 0;
    background-color: white;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }
    .left-column, .right-column {
      flex: 1;
      min-width: 300px;
    }

    .main-image {
      width: 100%;
      max-height: 400px;
      object-fit: contain;
      margin-bottom: 10px;
      border: 1px solid #ddd;
    }

    .thumbnails {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .thumbnails img {
      width: 60px;
      height: 60px;
      object-fit: cover;
      border: 2px solid transparent;
      cursor: pointer;
      border-radius: 4px;
    }

    .thumbnails img.active {
      border-color: #007bff;
    }

    h2 {
        color: #212121;
        font-size: 22px;
        font-weight: 400;
        margin-top: 10px;
        font-family: sans-serif;
    }

    .price {
      color: #d0021b;
      /*font-size: 24px;*/
      /*margin-top: 10px;*/
    }

    .original-price {
        font-size: 16px;
        margin-left: 10px;
        color: var(--muted);
        text-decoration: line-through;
    }

    .discount {
        font-size: 14px;
        color: #212121;
    }

    .section {
      margin-top: 20px;
    }

    .color-options img {
      width: 40px;
      height: 40px;
      object-fit: cover;
      border: 2px solid transparent;
      border-radius: 5px;
      cursor: pointer;
    }

    .color-options img.active {
      border-color: #007bff;
    }

    .buttons {
      display: flex;
      gap: 10px;
      margin-top: 20px;
    }

    .buttons button {
      flex: 1;
      padding: 12px;
      border: none;
      color: white;
      font-size: 16px;
      cursor: pointer;
    }

    .buy-now {
      background-color: #00aaff;
    }

    .add-to-cart {
      background-color: #ff6600;
    }

    @media (max-width: 768px) {
      .container {
        flex-direction: column;
      }
    }