/*@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300..700&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");*/

@import url("https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,1..1000&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

* {
  margin: 0;
  box-sizing: border-box;
  /*font-family: "Inter", sans-serif !important;*/
  font-family: "Google Sans Flex", sans-serif !important;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  scroll-behavior: smooth;
}

/* Mobile Header */

.mh,
.dh {
  padding: 0 15px 1px;
  color: white;
  background: #005eb8;
  position: sticky;
  top: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.mh {
  top: -85px;
  display: none;
}

.mh-flex,
.dh-flex {
  display: flex;
  flex-wrap: nowrap;
  padding: 12px 0 10px;
}

.mh-menu-icon {
  margin: 5px 0;
}

.mh-logo {
  width: 100%;
  padding: 0 20px;
}

.mh-logo span.logo {
  font-size: 24px;
  font-weight: 700;
  white-space: nowrap;
}

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

span.logo {
  padding-top: 3px !important;
  display: block;
  color: white;
  padding: 10px;
  text-align: center;
  border-radius: 20px 10px;
  background: #005eb8;
  width: 200px;
  position: relative;
  height: 45px;
}
.logo a {
  display: block !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-style: italic;
}

.mh-icons {
  display: flex;
  flex-wrap: nowrap;
  padding: 3px 0;
}

.pi-list,
.pi-user,
.pi-cart,
.pi-sell,
.pi-down {
  height: 25px;
  width: 25px;
  color: white !important;
}

.mh-icons a {
  text-decoration: none;
  color: inherit;
  display: flex;
}

.login-link span {
  padding: 2px;
}

.mh-icons svg {
  margin: 0 3px;
}

.cart-icon {
  position: relative;
  margin-left: 5px;
}

.cart-count {
  background: #f60;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  position: absolute;
  /*box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);*/
  top: -5px;
  right: -5px;
}

.cart-count span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0 !important;
}

.mh-address {
  display: flex;
  flex-wrap: nowrap;
  padding: 0 0 5px;
}

.mh-address svg {
  color: #bbdefb;
  height: 20px;
  width: 20px;
}

.mh-address p {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  padding: 1px 10px;
  color: #bbdefb;
}

.mh-searchbar {
  display: flex;
  flex-wrap: nowrap;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin: 10px 0;
  padding: 5px;
  background: white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.mh-searchbar svg {
  width: 25px;
  height: 25px;
  position: absolute;
  left: 10px;
  top: 12px;
  color: #1976d2;
}

.mh-searchbar input {
  padding: 10px;
  width: 100%;
  margin: 0 0 0 30px;
  border: none;
  font-size: 14px;
}

.mh-searchbar input:focus,
.fps-searchbar input {
  outline: 0;
}

.mh-searchbar input::placeholder {
  color: #757575;
}

/* Desktop Header */

.dh {
  display: none;
}

.dh.scrolled {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.dh-flex {
  width: 90%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 20px;
}

.dh-logo {
  font-size: 28px;
  font-weight: 700;
  width: 200px;
  white-space: nowrap;
  padding: 6px 20px 0 0;
}

.dh_search_bar_wrapper {
  width: 100%;
  margin: 0 10px;
  padding: 5px 0;
}

.dh-searchbar {
  width: 100%;
  border-radius: 5px;
  margin: 0 0;
  height: 40px;
}

.dh-searchbar svg {
  top: 7px;
}

.dh-icons {
  padding: 0 0 20px 30px;
  column-gap: 30px;
}

.dh-cart-link .cart-count {
  left: 17px;
  top: 4px;
}

.dh-cart-link span.cart-text {
  padding-left: 5px;
}

.dh-more-links {
  margin: 0 !important;
  padding: 5px 0 0 !important;
}

.dh-icons a,
.dh-login-link {
  white-space: nowrap;
  margin: 0 auto 0 0;
  display: flex;
  padding: 10px 0 0;
  position: relative;
}

.dh-icons a span {
  padding: 3px 0 0;
}

/* Full Page Search */

.fps-cont {
  background: #f2f2f2;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  z-index: 7 !important;
  display: none;
}

.fps-searchbar {
  display: flex;
  flex-wrap: nowrap;
  padding: 3px 10px;
  background: white;
  border-bottom: 0.5px solid #ccc;
  margin-bottom: 7px;
  position: sticky;
  top: 0;
}

.fps-searchbar svg {
  margin: 10px 0;
  width: 35px;
  height: 25px;
  cursor: pointer;
  fill: grey;
}

.fps-searchbar input {
  font-size: 16px;
  padding: 5px 20px 5px 10px;
  width: 100%;
  border: none;
}

.fps-cont ul {
  padding: 0;
  background: white;
  margin: 2px 0;
  border-bottom: 0.5px solid #ddd;
}

.fps-cont ul a {
  color: inherit;
  text-decoration: none;
}

.fps-cont li {
  display: flex;
  flex-wrap: nowrap;
  padding: 15px 10px;
  border-bottom: 1px solid #f2f2f2;
}

.fps-cont li svg {
  min-width: 23px !important;
  height: 23px;
  color: rgba(2, 6, 12, 0.75);
}

.fps-cont li img {
  min-width: 25px !important;
  height: 30px;
  color: rgba(2, 6, 12, 0.75);
  border-radius: 3px;
  display: block;
  margin: 5px 0;
}

.fps-cont li p {
  width: 100%;
  font-size: 15px;
  padding: 0 10px;
  font-weight: 500;
  color: rgba(2, 6, 12, 0.75) !important;
}

.fps-cont li .bi-arrow-up-left {
  width: 15px;
  height: 15px;
}

.fps-cont li span {
  font-size: 12px;
  display: block;
  padding: 0;
  color: #1976d2 !important;
}

.fps-discover-more {
  margin: 10px 0;
  background: white;
  padding: 10px 10px 30px;
  border-top: 0.5px solid #ddd;
  border-bottom: 0.5px solid #ddd;
}

.fps-discover-more h4 {
  margin: 10px 5px;
  color: rgba(2, 6, 12, 0.75);
  font-weight: 500;
}

.fps-discover-more a {
  box-shadow: rgba(9, 30, 66, 0.25) 0px 1px 1px,
    rgba(9, 30, 66, 0.1) 0px 0px 1px 1px;
  text-decoration: none;
  color: #1976d2;
  font-size: 14px;
  padding: 7px 10px;
  display: inline-block;
  margin: 5px;
  border-radius: 3px;
}

/* Offcanvas Menu */
.offcanvas {
  position: fixed;
  background: rgba(0, 0, 0, 0.3);
  width: 100%;
  height: 100%;
  z-index: 5;
  top: 0;
  left: 100%;
}

.menu-cont {
  width: 250px;
  height: 100%;
  background: white;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  position: fixed;
  left: -250px;
  transition: left 0.3s ease;
}

.menu-cont.show {
  left: 0;
}

.menu-cont a {
  display: flex;
  flex-wrap: nowrap;
  text-decoration: none;
  color: inherit;
}

.menu-cont a span {
  padding: 0 7px;
}

.menu-cont svg {
  width: 20px;
  height: 20px;
  margin: 2px;
}

.menu-header {
  background: #1976d2;
  padding: 15px 10px;
}

.menu-header svg {
  width: 30px;
  height: 30px;
  margin: 5px 3px;
}

.menu-header a {
  color: white;
  font-size: 18px;
  font-weight: 500;
}

.menu-header a span {
  padding: 5px 10px;
}

.menu-cont ul {
  padding: 10px 0;
  border-bottom: 1px solid #ccc;
}

.menu-cont li {
  padding: 15px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.menu-cont li:hover {
  background: #f2f2f2;
}

.help-ul li {
  padding: 10px 15px;
  font-size: 14px;
}

/* Mobile Header */
.fp-header {
  position: sticky;
  padding: 10px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.fp-header svg {
  position: absolute;
  width: 25px;
  height: 25px;
  cursor: pointer;
}

.fp-header span {
  font-weight: 600;
  display: block;
  font-size: 18px;
  text-align: center;
}

.fp-header {
  padding: 15px;
  background: white;
  z-index: 5 !important;
  background: #fff;
  display: flex;
  flex-wrap: nowrap;
  position: sticky;
  top: 0;
  height: 60px;
  margin: 0 !important;
}

.fp-header .title {
  font-weight: 500 !important;
  margin-left: 40px !important;
  margin-right: 90px;
  overflow: hidden;
  max-width: 500px;
  padding: 5px 0 0;
  text-align: left;
}

.fp-header {
  padding: 15px;
}

.fp-header svg {
  position: unset;
  fill: rgba(2, 6, 12, 0.75) !important;
}

.fp-svg {
  top: 20px;
  position: absolute !important;
}

.search-svg {
  position: absolute !important;
  right: 60px;
  top: 20px;
}

.search-div {
  display: flex;
  flex-wrap: nowrap;
  margin-left: 40px;
  margin-right: 90px;
  border-radius: 20px;
  overflow: hidden;
  background: white;
  width: 100%;
  max-width: 500px;
  border: 1px solid #ddd;
}

.search-div svg {
  position: unset;
  margin: 5px 7px;
}

.search-div input {
  padding: 5px;
  width: 100%;
  border: none;
  font-style: italic;
}

.search-div input:focus {
  outline: 0;
}

.m-cart-icon {
  position: absolute !important;
  right: 20px !important;
  top: 20px !important;
}

.m-cart-icon .cart-icon {
  left: 15px;
  color: white !important;
  position: relative !important;
}

.m-cart-icon .cart-count {
  color: white !important;
  border: 2px solid white;
  box-shadow: none !important;
  width: 20px;
  height: 20px;
  top: -7px;
  right: -7px;
  background: #f60;
}

.m-cart-icon span {
  position: absolute;
  margin: 0;
  font-size: 12px;
  font-weight: bold !important;
}

/* Full Page Address Form */

.fp-container {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 5;
  left: -100%;
  transition: left 0.2s ease;
}

.fp-content {
  padding: 20px 20px 100px;
  max-width: 500px;
  margin: 0 auto;
  overflow-y: scroll;
  height: 100%;
}

.inp-grp {
  display: block;
  margin: 0 0 15px;
}

.inp-grp label {
  font-size: 12px;
  display: block;
  margin: 5px 0 3px;
  color: rgba(2, 6, 12, 0.75);
}

.inp-grp label::after {
  content: "*";
  color: red;
  font-size: 14px;
  margin: 0 3px;
}

.inp-grp input {
  padding: 10px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.inp-grp input:focus {
  outline: 0;
}

.address-api-response {
  color: red;
  font-size: 12px;
  margin: 10px 3px 20px;
  font-weight: 500;
  font-style: italic;
}

.save-btn {
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  background: #005eb8;
  color: white;
  font-weight: 500;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  cursor: pointer;
}

.save-btn:hover {
  background: #1976d2;
  transition: background 0.3s ease-in-out;
}

/* Popup Messages */

.cart-msg {
  display: flex;
  background-color: #1976d2;
  color: white;
  padding: 10px;
  width: 200px;
  text-align: center;
  border-radius: 5px;
  position: fixed;
  bottom: 20px;
  right: 20px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  transition: bottom 0.3s ease;
  display: none;
}

.cart-msg svg {
  width: 25px;
  height: 25px;
  fill: white;
}

.cart-msg span {
  padding: 1px 3px;
}

/* Footer */

footer::before {
  border-top: 1px solid #ccc;
  display: block;
  max-width: 90%;
  margin: 20px auto;
  background: red;
  height: 2px;
}

footer {
  padding: 40px 5%;
  background: #595959;
  color: white;
  margin: 0 auto;
}

.about-us p {
  font-size: 14px;
  margin: 5px 0 10px;
  max-width: 700px;
}

.fr-col {
  margin: 40px 0;
}

.fr-col ul {
  padding: 0;
}

.fr-col ul li {
  margin: 10px 0;
  transition: all 3s ease;
}

.fr-col a {
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  display: inline;
  position: relative;
  text-decoration: none !important;
}

.fr-col a:hover {
  text-decoration: none;
}

.fr-col a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 1px;
  background-color: #fff;
  transition: width 0.3s ease;
  z-index: 0;
}

.fr-col a:hover::after {
  width: 100%;
}

.fr-strip {
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  margin: 50px 0 10px;
}

/* Bottom Bar */

.bottom-bar {
  display: flex;
  width: 100%;
  position: fixed;
  bottom: 0;
  background: white;
  padding: 10px 0;
  border-top: 1px solid #f2f2f2;
  z-index: 2;
  transition: bottom 0.35s ease;
}

.bb-link {
  display: block;
  color: rgba(2, 6, 12, 0.75);
  text-decoration: none;
  font-size: 13px;
  text-align: center;
  font-weight: 500;
  width: 25%;
}

.bb-link span {
  font-size: 12px !important;
}

.sell-link {
  position: relative;
}

.bb-link.active,
.bb-link.active svg {
  color: #005eb8;
  fill: #005eb8 !important;
}

.bb-link svg,
.bb-link span {
  display: block;
  text-align: center;
}

.bb-link svg {
  width: 25px;
  margin: auto;
}

#page-overlay {
  position: fixed;
  inset: 0;
  /*background: rgba(255,255,255,0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);*/

  z-index: 99999;
  display: none;
  transition: opacity 0.2s ease;
  opacity: 0;
}

.card-touch {
  transform: scale(0.97);
  transition: transform 0.2s ease;
}

/* smooth rolling animation */
.search_input {
  transition: all 0.35s ease;
}

.placeholder-animate {
  opacity: 0;
  transform: translateY(6px);
}

/* Breakpoints */
@media only screen and (min-width: 992px) {
  body {
    overflow-y: scroll !important;
  }

  .mh,
  .fps-cont {
    display: none;
  }

  .dh,
  .sbrs-cont {
    display: block;
  }

  .fr-flex {
    display: flex;
  }

  .fr-col {
    width: 30%;
  }
}

/* DEFAULT — Auto layout for desktops */
.cards-flex {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* auto for desktop */
  gap: 8px;
  width: 100%;
}

/* Card structure */
.card-link,
.item-card {
  width: 100%;
  display: block;
  margin: 0;
  padding: 0;
}

/* Fix images from expanding grid */
.item-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Prevent long titles from breaking layout */
.item-title {
  word-break: break-word;
}

/* -------------------------------------------
   RESPONSIVE BREAKPOINTS
-------------------------------------------- */

/* Large desktops (1280px–1440px) */
@media (max-width: 1440px) {
  .cards-flex {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Normal laptops (<1280px) */
@media (max-width: 1280px) {
  .cards-flex {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Tablets landscape (<1024px) */
@media (max-width: 1024px) {
  .cards-flex {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablets portrait (<768px) */
@media (max-width: 768px) {
  .cards-flex {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large phones & small tablets (<600px) */
@media (max-width: 600px) {
  body {
    background: white !important;
  }
  .carousel-container {
    background: white;
    border: 1px solid #e6e6e6;
    margin: 10px;
  }

  .carousel-slide {
    width: 100%;
  }

  .slide {
    padding: 0;
  }

  .categories,
  .products,
  .how-it-works {
    background: white;
    border: none;
    margin: 0 10px;
    padding: 10px;
  }
  .cards-flex {
    grid-template-columns: repeat(2, 1fr);
  }
  .for-you::after {
    background: #f2f2f2;
  }
}

/* Small phones (<480px) */
@media (max-width: 480px) {
  .cards-flex {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Extra small phones (<360px) */
@media (max-width: 360px) {
  .cards-flex {
    grid-template-columns: repeat(2, 1fr);
  }
}
