:root {
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --tsc-yellow: #f4a300;
  --tsc-dark: #3c3c3c;
  --tsc-whatsapp: #25d366;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-size: clamp(0.95rem, 1vw, 1.1rem);
  overflow-x: hidden;
}

.store-page {
  overflow-x: hidden;
}

.store-page .container {
  width: 90%;
  max-width: 95rem;
  margin-inline: auto;
}

/* ===== Store Hero ===== */
.store-hero {
  background: linear-gradient(180deg, #f8f9fa, #ffffff);
  padding-top: 5vh;
  padding-bottom: 5vh;
}

.store-hero__content {
  max-width: 52rem;
}

.store-hero__badge {
  display: inline-block;
  background-color: rgba(244, 163, 0, 0.12);
  color: var(--tsc-yellow);
  border: 0.08rem solid rgba(244, 163, 0, 0.25);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.store-hero__title {
  color: var(--tsc-dark);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.store-hero__text {
  color: #5a5a5a;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.8;
  max-width: 44rem;
  margin-bottom: 1.5rem;
}

.store-hero__text + .store-hero__text {
  margin-top: -0.6rem;
  margin-bottom: 1.25rem;
  color: #6a6a6a;
  font-size: clamp(0.98rem, 1.15vw, 1.05rem);
  padding-inline-start: 0.6rem;
  border-inline-start: 0.2rem solid rgba(244, 163, 0, 0.45);
}

.store-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero side card in store: keep icon decorative without covering content */
.store-hero-side-card .top-service-content {
  position: relative;
  z-index: 2;
  padding: 0;
}

.store-hero-side-card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  min-height: 22rem;
  display: flex;
  align-items: center;
}

.store-hero-side-card h5 {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
}

.store-hero-side-card p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.store-hero .top-service-side-image.store-hero-side-image {
  left: 50%;
  right: auto;
  top: 50%;
  transform: translate(-50%, -50%) !important;
  width: auto !important;
  height: auto !important;
  max-width: 92% !important;
  max-height: 92% !important;
  opacity: 0.075;
  pointer-events: none;
  z-index: 1;
}

/* ===== Sections ===== */
.store-filters-section,
.store-products-section,
.store-cta {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.store-section-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.store-section-heading__eyebrow {
  color: #6c757d;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.store-section-heading__title {
  margin: 0;
  color: var(--tsc-yellow);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
}

.store-section-heading__logo {
  width: clamp(8rem, 14vw, 12rem);
  height: auto;
  margin-inline-start: auto;
  object-fit: contain;
}

/* ===== Filters ===== */
.store-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store-subfilters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.store-filter-btn {
  min-width: 0;
}

/* ===== Product Cards ===== */
.product-card {
  border-radius: 1.25rem;
  overflow: hidden;
  border: none;
  background: #fff;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

.product-card__image-wrap {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f8f9fa;
}

.product-card__image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
}

.product-card__tag {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  background-color: var(--tsc-yellow);
  color: #000;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.1rem;
}

.product-card__title {
  margin: 0;
  color: var(--tsc-dark);
  font-size: clamp(1.1rem, 1.3vw, 1.4rem);
  font-weight: 700;
}

.product-card__text {
  margin: 0;
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.6;
  color: #5e5e5e;
  flex-grow: 1;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.product-card__price {
  font-weight: 700;
  color: var(--tsc-dark);
}

.product-card__btn {
  flex: 0 0 auto;
}

.product-card__add-btn {
  flex: 0 0 auto;
}

.product-card__add-btn.is-added {
  background-color: #0a8e3f !important;
  border-color: #0a8e3f !important;
  color: #ffffff !important;
}

.store-empty-state {
  text-align: center;
  font-weight: 600;
  color: #666;
  margin-top: 2rem;
}

/* ===== CTA ===== */
.store-cta__box {
  background: linear-gradient(180deg, #f8f9fa, #ffffff);
  border-radius: 1.25rem;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.store-cta__eyebrow {
  color: #6c757d;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.store-cta__title {
  color: var(--tsc-dark);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.store-cta__text {
  color: #5a5a5a;
  line-height: 1.8;
  margin: 0;
  max-width: 40rem;
}

.store-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ===== Accessibility compatibility ===== */
a:focus-visible,
button:focus-visible {
  outline: 0.18rem solid var(--tsc-yellow);
  outline-offset: 0.18rem;
}

/* ===== Tablet ===== */
@media (max-width: 62rem) {
  .store-section-heading__logo {
    width: clamp(6rem, 18vw, 9rem);
  }
}

/* ===== Mobile ===== */
@media (max-width: 48rem) {
  body {
    padding-bottom: 5rem;
  }

  .store-hero {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .store-hero__title {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
    line-height: 1.25;
    text-align: center;
  }

  .store-hero__text {
    text-align: center;
    font-size: 1rem;
  }

  .store-hero__actions {
    flex-direction: column;
  }

  .store-hero__actions .btn {
    width: 100%;
  }

  .store-section-heading {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }

  .store-hero-side-card {
    min-height: 19rem;
    padding: 1.4rem;
  }

  .store-section-heading__logo {
    margin-inline-start: 0;
    width: clamp(6rem, 30vw, 9rem);
  }

  .store-hero .top-service-side-image.store-hero-side-image {
    left: 50%;
    right: auto;
    top: 50%;
    transform: translate(-50%, -50%) !important;
    width: auto !important;
    max-width: 90% !important;
    max-height: 90% !important;
  }

  .store-hero-side-card .top-service-content {
    padding-top: 0;
    text-align: initial;
  }

  .store-filters {
    flex-direction: row;
    justify-content: space-between;
  }

  .store-filter-btn {
    flex: 0 0 calc(50% - 0.375rem);
    max-width: calc(50% - 0.375rem);
  }

  .store-subfilters .store-filter-btn {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .product-card__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .product-card__btn {
    width: 100%;
  }

  .store-cta__box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 1.5rem;
  }

  .store-cta__actions {
    flex-direction: column;
  }

  .store-cta__actions .btn {
    width: 100%;
  }

  .product-card__tag {
    font-size: 0.78rem;
    padding: 0.28rem 0.65rem;
  }
}

/* ===== Extra Small ===== */
@media (max-width: 36rem) {
  .store-page .container {
    width: min(100% - 1.5rem, 95rem);
  }

  #productsGrid {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
  }

  .store-search {
    min-width: 0;
  }

  .store-filter-btn,
  .store-subfilters .store-filter-btn {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .product-item {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .product-card__body {
    gap: 0.55rem;
    padding: 0.75rem;
  }

  .product-card__title {
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .product-card__text {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .product-card__price {
    font-size: 0.85rem;
  }

  .product-card__btn,
  .product-card__add-btn {
    width: 100%;
  }

  .product-card__tag {
    top: 0.55rem;
    right: 0.55rem;
    max-width: calc(100% - 1.1rem);
    overflow-wrap: anywhere;
    font-size: 0.7rem;
    line-height: 1.2;
  }
}


.store-search {
  flex: 1 1 min(100%, 22rem);
  min-width: 16rem;
  max-width: 32rem;
}

.store-search input {
  width: 100%;
}

@media (max-width: 48rem) {
  .store-search {
    width: 100%;
    max-width: 100%;
  }
}

@media (min-width: 64rem) {
  .store-section-heading {
    align-items: center;
  }

  .store-search {
    min-width: 24rem;
    max-width: 48rem;
    align-self: flex-start;
    margin-top: 1.65rem;
  }
}
