/* Stop horizontal scroll on mobile */
html,
body {
  overflow-x: hidden;
}

/* All images scale inside screen */
img {
  max-width: 100%;
  height: auto;
}

/* Rows don't break out */
.row {
  margin-left: 0;
  margin-right: 0;
}

/* Category cards shrink inside */
.browse-thrift-category .thrift-category {
  max-width: 100%;
  box-sizing: border-box;
}

/* Headings wrap properly */
h1,
h2,
h3,
h4,
h5 {
  word-wrap: break-word;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: "Instrument Serif", serif;
}

.hero-heading,
h1,
h2,
h3,
em {
  font-family: "Instrument Serif", serif;
  font-weight: 500; /* Shopify ka weight */
  line-height: 1.2;
  letter-spacing: 1px; /* Shopify ke hisaab se adjust */
}

.main {
  position: relative;
  padding: 40px 20px; /* spacing from left/right */
  width: 100%;
}
.TODir_heading {
  font-family: "Instrument Serif", serif;
  /* font-style: italic; */
  font-style: normal;
  font-size: 50px;
  font-weight: 500;
  letter-spacing: -0.5px;
  text-transform: capitalize;
}

.main .row {
  height: 100%; /* make row take full height */
}

.main .col-md-7 {
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical center */
}

.main .image-col {
  background: url("https://swag.thriftops.com/assets/images/login-banner/7.jpg")
    no-repeat center center;
  background-size: cover;
  border-radius: 8px;
  min-height: 300px; /* adjust height as needed */
}

/* Large heading style */
.TODir_heading {
  font-family: "Instrument Serif", serif;
  /* font-style: italic; */
  font-style: normal;
  font-size: 50px;
  font-weight: 500;
  letter-spacing: -0.5px;
  text-transform: capitalize;
  margin-bottom: 20px;
  line-height: 1.2;
}
.tod-search .input-group-text {
  background: #fff;
  border-right: 0;
  height: 48px;
  border-radius: 0px;
}
.tod-search .form-control {
  border-left: 0;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  height: 48px;
  border-radius: 0px;
}
.btn-search {
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  background: #b71c1c;
  color: white;
  border: none;
  border-radius: 0; /* rounded only on right side */
  padding: 0 20px;
  height: 48px;
  white-space: nowrap;
}

.tod-what-wrapper {
  flex: 1.5; /* so it takes proper space inside input group */
  border-radius: 0px;
}
#whatDropdown {
  left: 0;
  right: 0; /* full width of "What" input including icon */
}
#whatDropdown .list-group-item {
  cursor: pointer;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  height: 48px;
  display: flex;
  align-items: center;
}
.tod-icons {
  display: flex;
  align-items: center;
  justify-content: center;
}
.tod-icon-link {
  text-decoration: none;
}
.tod-icon-circle {
  background-color: #f4f9f8;
  width: 60px;
  height: 60px;

  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b71c1c;
  font-size: 22px;
  transition: all 0.3s ease;
}
.tod-icon-circle:hover {
  background: #b71c1c;
  color: white;
}

/* Medium devices (tablet) */
@media (max-width: 992px) {
  .main {
    padding: 30px 16px;
  }

  .main .image-col {
    display: none; /* hide image */
  }
  .main .col-md-7 {
    width: 100%; /* pura row occupy kare */
    max-width: 800px; /* optional: readability ke liye limit */
    margin: 0 auto; /* center horizontally */
    text-align: center; /* text bhi center ho */
  }

  em {
    font-size: 60px;
  }
  .TODir_heading {
    font-size: 36px;
    text-align: center;
  }

  .tod-search {
    margin-top: 20px;
  }

  .tod-icons {
    justify-content: center;
    gap: 16px;
  }

  .tod-icon-circle {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }
  .thrift-category {
    width: auto !important;
  }
}

/* Small devices (phones) */
@media (max-width: 576px) {
  .main {
    padding: 24px 14px;
  }
  em {
    font-size: 50px;
  }
  .TODir_heading {
    font-size: 30px;
    text-align: center;
    margin-bottom: 16px;
  }

  .tod-search {
    margin-top: 16px;
  }

  .tod-icons {
    justify-content: space-between;
    flex-wrap: nowrap; /* keep in one line */
    gap: 10px;
  }

  .tod-icon-circle {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }
  .thrift-category {
    width: auto !important;
  }
}

/* Extra Small devices (very small phones, <400px) */
@media (max-width: 400px) {
  em {
    font-size: 40px;
  }
  .TODir_heading {
    font-size: 25px;
    line-height: 1.3;
  }

  .tod-icons {
    justify-content: center;
    flex-wrap: wrap; /* ab allow karenge wrap */
    gap: 5px;
  }

  .tod-icon-circle {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }
  .thrift-category {
    width: auto !important;
  }
}

.featured-in h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: #333;
}

.featured-logo {
  max-height: 60px;
  object-fit: contain;
}
.exc_listing p {
  color: #7f7f7f;
}
.exc_listing a {
  text-decoration: none;
  color: #b71c1c;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  transition: color 0.3s ease;
}
.exc_listing a:hover {
  text-decoration: underline;
}

/* Card Hover Effect */
.featured-dispensaries .card-hover {
  transition: all 0.3s ease-in-out;
  overflow: hidden; /* image zoom ko crop karega */
  border: none;
  border-radius: 8px;
}

.featured-dispensaries .card-hover:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Image Styling */
.featured-dispensaries .card-img-top {
  padding: 10px; /* sab side se padding */
  border-radius: 12px;
  transition: transform 0.4s ease-in-out;
}

/* Hover par image zoom */
.featured-dispensaries .card-hover:hover .card-img-top {
  transform: scale(0.95); /* zoom in */
}

/* Title Style */
.card-title {
  text-decoration: none;
  font-weight: 900;
  line-height: 20px;
  width: 100%;
  text-overflow: ellipsis;
  margin: 25px 0 25px 0;
  white-space: nowrap;
  overflow: hidden;
}

/* Category Style */
.card-category {
  letter-spacing: 0;
  color: #c2c4d6;
  font-size: 13px;
  line-height: 17px;
  font-weight: normal;
  margin: 0;
}

/* 2-line Summary */
.card-text {
  letter-spacing: 0;
  color: var(--s-color);
  font-size: 13px;
  font-weight: 500;
  line-height: 24px;
  font-family: var(--font1);
  text-decoration: none;

  display: -webkit-box;
  -webkit-line-clamp: 2; /* sirf 2 line dikhayega */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Scoped styling only for thrift categories */
.browse-thrift-category .thrift-category {
  display: block;
  background: #fff;
  width: 200px;
  padding: 26px;
  margin: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  color: inherit;
  text-decoration: none;
}

.browse-thrift-category .thrift-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.browse-thrift-category .thrift-category i {
  font-size: 28px;
  color: #b71c1c; /* theme color */
  margin-bottom: 15px;
  display: block;
  text-align: left;
}

.browse-thrift-category h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  text-overflow: ellipsis;
  overflow: hidden;
}

.browse-thrift-category p {
  font-size: 13px;
  line-height: 20px;
  margin: 0;
  color: #555;
}

/* Container styling */
.how-it-works .work-step-card {
  position: relative;
  background: #fff;
  width: 250px;
  padding: 40px 20px 20px 20px;
  margin: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.3s ease;
}

.how-it-works .work-step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Step number circle */
.how-it-works .step-circle {
  position: absolute;
  top: -25px; /* half outside */
  left: 20%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #dce6d8; /* theme color */
  color: #b71c1c;
  font-weight: bold;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* Headings */
.how-it-works h4 {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 600;
}

/* Description */
.how-it-works p {
  font-size: 13px;
  line-height: 20px;
  margin: 0;
  color: #555;
}
