/* ===============================
   Prices from shopping platforms
   =============================== */

/* component-local box-sizing */
.store-price-container,
.store-price-container * {
  box-sizing: border-box;
}

/* variables for quick tuning */
:root {
  --psp-border: rgba(16,24,40,0.06);
  --psp-radius: 12px;
  --psp-gap: 1.25rem;
  --psp-accent: #7B5FB4;
  --psp-cta-bg: #000;
  --psp-cta-color: #fff;
  --psp-muted-red: #b91c1c;
  --psp-muted-red-bg: #fee2e2;
}

/* ---------- Desktop / default ---------- */
.store-price-container{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--psp-gap);
  padding: 0.5rem 1rem;
  border: 1px solid var(--psp-border);
  border-radius: var(--psp-radius);
  max-width: 720px;
  margin: 0.1rem auto;
  min-height: 84px;
  background: #fff;
}

/* Brand logo */
.store-brand-logo{
  flex: 0 0 20%;
  max-width: 20%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}
.store-brand-logo img{
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Price block: keep price + badge grouped */
.store-price{
  flex: 1 1 30%;
  max-width: 30%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0; /* allow children to shrink safely */
}

/* main price — responsive using clamp() */
.store-price .price{
  font-family: "Roboto", Sans-serif;
  font-size: clamp(1rem, 1.9vw, 1.5rem); /* scales between 1rem and 1.5rem */
  font-weight: 700;
  line-height: 1;
  color: #000000;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* truncate long content */
  flex: 0 1 auto;
}

/* out-of-stock badge — responsive sizing and padding */
.store-price .out-of-stock {
  display: inline-block;
  font-size: clamp(.72rem, 1.5vw, .75rem);
  font-weight: 600;
  color: var(--psp-muted-red);
  background: var(--psp-muted-red-bg);
  padding: calc(4px + 0.15vw) calc(8px + 0.2vw);
  border-radius: 8px;
  opacity: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 0;
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Button block */
.store-button{
  font-family: "Roboto", Sans-serif;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

/* CTA button */
.store-button .go-to-store{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: clamp(.28rem, .9vw, .35rem) clamp(.8rem, 1.5vw, 1rem);
  background: var(--psp-cta-bg);
  color: var(--psp-cta-color);
  text-decoration: none !important;
  border: solid 2px var(--psp-cta-bg);
  border-radius: 15px;
  font-weight: 600;
  font-size: clamp(.82rem, 1.6vw, .85rem);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
  white-space: nowrap;
  min-height: 40px;
  min-width: 88px; /* keep tappable */
  justify-content: center;
}

/* small chevron pseudo-element */
.store-button .go-to-store::after{
  content: '›';
  font-weight: 700;
  font-size: 1.05rem;
  opacity: .95;
  transform: translateX(0);
  transition: transform .12s ease;
}

/* hover / focus */
.store-button .go-to-store:hover,
.store-button .go-to-store:focus{
  color: var(--psp-accent);
  border-color: var(--psp-accent);
  transform: scale(0.98);
}
.store-button .go-to-store:hover::after,
.store-button .go-to-store:focus::after{
  transform: translateX(4px);
}
.store-button .go-to-store:focus-visible{
  box-shadow: 0 0 0 4px rgba(0,102,255,0.12);
  border-radius: 10px;
}

/* ---------- Tablet-ish (tighten) ---------- */
@media (max-width: 900px) {
  .store-price-container{
    gap: .9rem;
    padding: .6rem .9rem;
    min-height: 72px;
  }

  .store-brand-logo{
    flex: 0 0 25%;
    max-width: 25%;
    height: 34px;
    padding: 6px;
  }

  .store-price{
    max-width: 30% /* allow space for CTA; adjust if CTA width changes */
  }

  .store-price .price{ font-size: clamp(1rem, 2.5vw, 1.3rem); }
  .store-button .go-to-store{ padding: .1rem .9rem; font-size: .75rem; min-width: 88px; }
}

/* ---------- Mobile: logo + price side-by-side, CTA on right column ---------- */
@media (max-width: 600px) {
  .store-price-container{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .6rem;
    padding: .75rem;
    min-height: 64px;
  }

  .store-brand-logo{
    flex: 0 0 25%;
    max-width: 25%;
    height: 34px;
    padding: 6px;
  }

  .store-price{
    flex: 1 1 auto;
    max-width: 30%;
    order: 1;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding-left: .25rem;
    min-width: 0;
    overflow: hidden;
  }

  .store-price .price{
    font-size: clamp(1.2rem, 2.2vw, 1.2rem);
    font-weight: 700;
  }

  .store-price .out-of-stock{
    font-size: clamp(.7rem, 1.6vw, .85rem);
    padding: 6px 8px;
  }

  .store-button{
    order: 2;
    flex: 0 0 auto;
    align-self: stretch;
    display: flex;
    align-items: center;
  }

  .store-button .go-to-store{
    padding: .1rem .85rem;
    border-radius: 12px;
    font-size: clamp(.85rem, 1.8vw, .95rem);
    min-width: 72px;
    box-shadow: 0 8px 20px rgba(3,102,214,0.08);
  }
}

/* ---------- Very small phones: CTA stacks full width below ---------- */
@media (max-width: 479px) {
  .store-price-container{
    flex-wrap: wrap;
    padding: .6rem;
  }

  .store-price {
     justify-content: flex-end;
     max-width: fit-content;
  }
  .store-brand-logo{ flex: 0 0 30%; max-width: 30%; height: 52px;}
  .store-price .price{ font-size: clamp(1.1rem, 2.4vw, 1.2rem);}
  .store-price .out-of-stock{
    font-size: clamp(.6rem, 1.6vw, .85rem);
    padding: 6px 8px;
  }

  .store-button{
    order: 3;
    width: 100%;
    margin-left: 0;
    margin-top: .2rem;
    justify-content: center;
  }
  .store-button .go-to-store{
    width: 100%;
    padding: .5rem 1rem;
    font-size: .95rem;
    border-radius: 10px;
    min-width: 0;
  }
}

@media (max-width: 329px) {
  
  .store-brand-logo{ flex: 0 0 35%; max-width: 35%; height: 52px;}
  .store-price .price{ font-size: clamp(.9rem, 2.4vw, 1.2rem);}
  .store-price .out-of-stock{
    font-size: clamp(.5rem, 1.6vw, .85rem);
  }

  .store-button .go-to-store{
    padding: .2rem 1rem;
  }
}



/* end of file */
