/* Shop listing and the shared product card. Simple, gentle motion only. */

@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Shop header and tools ---------- */
.shop-head {
  margin-bottom: 26px;
  animation: cardIn .6s ease both;
}
.shop-head h1 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.08;
}
.shop-head p {
  margin: 10px 0 0;
  font-size: 1.05rem;
}

.shop-tools {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
  animation: cardIn .6s .08s ease both;
}
.searchbox {
  position: relative;
  max-width: 620px;
}
.searchbox svg {
  position: absolute;
  left: 20px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: var(--accent3);
  pointer-events: none;
}
.searchbox input {
  width: 100%;
  height: 54px;
  padding: 0 22px 0 52px;
  border: 1px solid var(--stroke-strong);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  box-shadow: var(--shadow-soft);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.searchbox input::placeholder {
  color: #8a9aa4;
}
.searchbox input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 62, 155, .14);
}

.chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip-btn {
  flex: none;
  padding: 10px 18px;
  border: 1px solid var(--stroke-strong);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.chip-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 62, 155, .4);
}
.chip-btn.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), #ff7ab8);
  box-shadow: 0 8px 20px rgba(255, 62, 155, .3);
}

.shop-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.shop-meta__clear {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 800;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Grid ---------- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}
.shop-foot {
  margin-top: 40px;
  text-align: center;
}

.shop-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 64px 20px;
  text-align: center;
  border-radius: 28px;
  background: #fff;
  border: 1px dashed var(--stroke-strong);
  animation: cardIn .5s ease both;
}
.shop-empty h2 {
  margin: 8px 0 0;
}
.shop-empty p {
  margin: 0 0 14px;
}
.shop-empty__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: rgba(255, 62, 155, .1);
}
.shop-empty__icon svg {
  width: 28px;
  height: 28px;
}

.pcard-skeleton {
  height: 390px;
  border-radius: 26px;
}

/* ---------- Product card (shop, home, related) ---------- */
.pcard {
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-soft);
  animation: cardIn .55s ease both;
  animation-delay: calc(var(--i, 0) * 50ms);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pcard:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 52px rgba(58, 139, 149, .2);
}
.pcard__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / .92;
  overflow: hidden;
  background: linear-gradient(160deg, #ffe9f3, #e4f7f3);
}
.pcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.pcard:hover .pcard__media img {
  transform: scale(1.06);
}
.pcard__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: rgba(58, 139, 149, .5);
}
.pcard__cat {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}
.pcard__sold {
  position: absolute;
  inset: auto 12px 12px auto;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: rgba(29, 41, 48, .82);
}
.pcard__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 18px 18px;
}
.pcard__title {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.pcard__title a:hover {
  color: var(--accent);
}
.pcard__desc {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}
.pcard__price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.pcard__add {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ff7ab8);
  box-shadow: 0 8px 18px rgba(255, 62, 155, .3);
  transition: transform .2s ease, background .3s ease, box-shadow .2s ease;
}
.pcard__add svg {
  width: 20px;
  height: 20px;
}
.pcard__add:hover:not(:disabled) {
  transform: scale(1.1);
  box-shadow: 0 12px 24px rgba(255, 62, 155, .4);
}
.pcard__add.is-added {
  background: linear-gradient(135deg, #22c55e, #66d0bc);
  box-shadow: 0 8px 18px rgba(34, 197, 94, .3);
}
.pcard__add:disabled {
  cursor: not-allowed;
  background: #c9d3d9;
  box-shadow: none;
}

/* Pagination */
.pagination {
  margin: 44px 0 0;
}

@media (max-width: 640px) {
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .pcard__body { padding: 14px; }
  .pcard__desc { display: none; }
  .pcard__title { min-height: 0; font-size: 1rem; }
  .pcard__price { font-size: 1.05rem; }
  .pcard__add { width: 40px; height: 40px; }
}
@media (max-width: 380px) {
  .shop-grid { grid-template-columns: 1fr; }
}

/* Soft fade on the right edge so the category chips scroll off gracefully */
.chips {
  mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
}

/* ---------- Product detail ---------- */
.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.crumbs a:hover {
  color: var(--accent);
}
.crumbs span {
  opacity: .5;
}

.pd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.pd__media {
  position: sticky;
  top: 110px;
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(160deg, #ffe3f0, #dff5f1);
  box-shadow: 0 28px 60px rgba(58, 139, 149, .2);
  animation: cardIn .6s ease both;
}
.pd__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.pd__media:hover img {
  transform: scale(1.04);
}
.pd__placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: rgba(58, 139, 149, .5);
}
.pd__info {
  animation: cardIn .6s .1s ease both;
}
.pd__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.pd__chip {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent3);
  background: rgba(58, 139, 149, .1);
}
.pd__stock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #15803d;
}
.pd__stock i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}
.pd__stock.is-out {
  color: var(--danger);
}
.pd__stock.is-out i {
  background: var(--danger);
}
.pd__info h1 {
  margin: 16px 0 0;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.08;
}
.pd__desc {
  margin: 16px 0 0;
  max-width: 52ch;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
}
.pd__price {
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--accent);
}
.pd__buy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}
.qty {
  display: inline-flex;
  align-items: center;
  height: 54px;
  border: 1px solid var(--stroke-strong);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.qty button {
  width: 48px;
  height: 100%;
  border: 0;
  background: none;
  font: inherit;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.qty button:hover:not(:disabled) {
  color: var(--accent);
  background: rgba(255, 62, 155, .08);
}
.qty button:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.qty span {
  min-width: 34px;
  text-align: center;
  font-weight: 800;
}
.pd__add {
  flex: 1;
  min-width: 190px;
}
.pd__add:disabled {
  cursor: not-allowed;
  opacity: .6;
}
.pd__perks {
  display: grid;
  gap: 12px;
  margin: 30px 0 26px;
  padding: 22px 0 0;
  list-style: none;
  border-top: 1px solid var(--stroke-strong);
}
.pd__perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 600;
}
.pd__perks svg {
  flex: none;
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 12px;
  color: var(--accent3);
  background: rgba(58, 139, 149, .1);
}

.pd__skeleton-media {
  aspect-ratio: 1 / 1;
  border-radius: 32px;
}
.pd__skeleton-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 860px) {
  .pd {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pd__media {
    position: static;
  }
}

/* ---------- Cart ---------- */
.cart2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}
.cart2__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cart2__list > .link {
  margin-top: 8px;
}
.crow {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto 110px 40px;
  align-items: center;
  gap: 18px;
  padding: 14px 18px 14px 14px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-soft);
  animation: cardIn .5s ease both;
  animation-delay: calc(var(--i, 0) * 60ms);
}
.crow__img {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(160deg, #ffe9f3, #e4f7f3);
  font-size: 12px;
  font-weight: 800;
  color: rgba(58, 139, 149, .6);
}
.crow__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.crow__main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.crow__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.3;
}
.crow__name:hover {
  color: var(--accent);
}
.crow__each {
  font-size: 13px;
  color: var(--muted);
}
.qty--sm {
  height: 44px;
}
.qty--sm button {
  width: 38px;
  font-size: 1.1rem;
}
.qty--sm span {
  min-width: 26px;
}
.crow__total {
  text-align: right;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
}
.crow__remove {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.crow__remove svg {
  width: 18px;
  height: 18px;
}
.crow__remove:hover {
  color: var(--danger);
  background: rgba(227, 91, 79, .1);
}

.cart2__summary {
  position: sticky;
  top: 110px;
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  animation: cardIn .5s .1s ease both;
}
.cart2__summary h2 {
  margin: 0 0 18px;
  font-size: 1.3rem;
}
.cart2__row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  color: var(--muted);
  font-weight: 600;
}
.cart2__row--total {
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--stroke-strong);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
}
.cart2__checkout {
  width: 100%;
  margin-top: 22px;
}
.cart2__note {
  margin: 14px 0 0;
  font-size: 13px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 900px) {
  .cart2 {
    grid-template-columns: 1fr;
  }
  .cart2__summary {
    position: static;
  }
}
@media (max-width: 640px) {
  .crow {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 12px 14px;
  }
  .crow__img { width: 72px; height: 72px; grid-row: span 2; }
  .crow__remove { grid-column: 3; grid-row: 1; }
  .crow__main { grid-column: 2; grid-row: 1; }
  .qty--sm { grid-column: 2; grid-row: 2; justify-self: start; }
  .crow__total { grid-column: 3; grid-row: 2; text-align: right; }
}

/* ---------- About ---------- */
.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: 64px;
  padding: 36px 0 24px;
}
.about-hero__copy > * {
  animation: cardIn .7s ease both;
}
.about-hero__copy > *:nth-child(2) { animation-delay: .08s; }
.about-hero__copy > *:nth-child(3) { animation-delay: .16s; }
.about-hero__copy > *:nth-child(4) { animation-delay: .24s; }
.about-hero h1 {
  margin: 22px 0 0;
  max-width: 13ch;
  font-size: clamp(2.6rem, 4.8vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.about-hero .lead {
  margin: 22px 0 0;
  max-width: 46ch;
  font-size: 1.1rem;
}

.about-hero__art {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, 200px);
  gap: 18px;
  width: min(100%, 480px);
  margin-left: auto;
}
.about-photo {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(160deg, #ffe3f0, #dff5f1);
  box-shadow: 0 22px 48px rgba(58, 139, 149, .2);
  animation: cardIn .7s ease both;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.about-photo:hover img {
  transform: scale(1.05);
}
.about-photo--1 { grid-row: span 2; animation-delay: .1s; border-radius: 28px 28px 28px 110px; }
.about-photo--2 { animation-delay: .2s; border-radius: 28px 110px 28px 28px; }
.about-photo--3 { animation-delay: .3s; }
.about-photo--fallback { grid-column: span 2; grid-row: span 2; }

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 12%;
  right: 12%;
  border-top: 2px dashed rgba(255, 62, 155, .3);
}
.step {
  position: relative;
  text-align: center;
  padding: 0 8px;
}
.step__num {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ff7ab8);
  box-shadow: 0 12px 26px rgba(255, 62, 155, .32), 0 0 0 8px #fff7fb;
}
.step__icon {
  display: block;
  width: 24px;
  height: 24px;
  margin: 22px auto 0;
  color: var(--accent3);
}
.step__icon svg {
  width: 100%;
  height: 100%;
}
.step h3 {
  margin: 10px 0 0;
  font-size: 1.15rem;
}
.step p {
  margin: 8px auto 0;
  max-width: 24ch;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

@media (max-width: 980px) {
  .about-hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-hero__art {
    margin: 0 auto;
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 36px;
  }
  .steps::before {
    display: none;
  }
}
@media (max-width: 560px) {
  .about-hero__art {
    grid-template-rows: repeat(2, 150px);
    gap: 12px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
}
