:root {
  --surface: #ffffff;
  --line: #ececf1;
  --muted: #70707a;
  --accent: #1f9f79;
}

.pl-search-header {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 0;
  border-right: 0;
  margin-top: -24px;
}

.pl-header-main {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0 8px 0 16px;
  height: 44px;
  max-width: 640px;
  width: 100%;
}

.search input {
  width: 100%;
  border: 0;
  outline: none;
  font-size: 14px;
  background: transparent;
}

.search button {
  height: 30px;
  border: 0;
  border-radius: 999px;
  min-width: 62px;
  padding: 0 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.util {
  color: #555;
  font-size: 14px;
  white-space: nowrap;
}

.category-hero {
  margin-top: 22px;
  margin-bottom: 6px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  padding: 18px 18px 14px;
}

.hero-notice {
  margin: 0 0 14px;
  text-align: center;
  color: #7a5a39;
  font-size: 24px;
  background: #f8f1e9;
  border-radius: 10px;
  padding: 11px 14px;
}

.hero-notice__mobile {
  display: none;
}

.category-bubbles {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.bubble-item {
  min-width: 74px;
  display: grid;
  gap: 6px;
  justify-items: center;
}

.bubble-image {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: #f3f3f5;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.bubble-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bubble-placeholder {
  font-weight: 700;
  color: #777;
}

.bubble-item.active .bubble-image {
  border-color: #34343a;
}

.bubble-name {
  font-size: 22px;
  color: #303038;
  text-align: center;
  line-height: 1.15;
}

.main { padding: 24px 0 40px; }

.home-sections {
  display: grid;
  gap: 26px;
  margin-bottom: 28px;
}

.home-section {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(31, 159, 121, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
}

.home-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.home-section__eyebrow {
  margin: 0 0 6px;
  color: #13795b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.home-section__title {
  margin: 0;
  color: #111827;
  font-size: 34px;
  line-height: 1.1;
}

.home-section__meta {
  margin: 0;
  color: #667085;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.product-grid-head:empty {
  display: none;
}

.home-section__grid {
  gap: 16px;
}

.product-grid-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.summary {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.product-grid-head__controls {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.product-sort-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
}

.product-sort-form__label {
  margin: 0;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.product-sort-form__select {
  min-width: 120px;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  outline: none;
}

.product-sort-form__submit {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
}

.product-grid-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #475569;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  cursor: pointer;
}

.product-grid-toggle__icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.product-grid-toggle__icon--one {
  display: none;
}

.product-grid-toggle[data-current-columns="1"] .product-grid-toggle__icon--one {
  display: block;
}

.product-grid-toggle[data-current-columns="1"] .product-grid-toggle__icon--two {
  display: none;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.08);
}

.card-link {
  display: block;
  color: inherit;
}

.card-copy-link {
  display: block;
  color: inherit;
}

.card-copy-link--price {
  flex: 1;
  min-width: 0;
}

.card-like-btn {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: #fff;
  color: #667085;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.card-like-btn:hover {
  transform: translateY(-1px);
}

.card-like-btn:disabled {
  cursor: default;
  transform: none;
}

.card-like-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.card-like-icon path {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 0.16s ease, stroke 0.16s ease;
}

.card-like-btn.is-liked {
  border-color: #f4b5b0;
  background: #fff1f0;
  color: #d92d20;
}

.card-like-btn.is-liked .card-like-icon path {
  fill: currentColor;
}

.grid--home .card-like-btn {
  display: none;
}

.thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #eef2f6;
}

.thumb.placeholder {
  display: grid;
  place-items: center;
  color: #98a2b3;
  font-size: 13px;
}

.info {
  padding: 12px;
  border-top: 2px solid #d7eaf7;
}

.price-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  min-height: 40px;
}

.meta {
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.meta__grade {
  color: #0f766e;
  font-weight: 700;
}

.price {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.status-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.status-on {
  background: #ecfdf3;
  color: #027a48;
}

.status-soldout {
  background: #fef3f2;
  color: #b42318;
}

.empty {
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .pl-header-main {
    height: auto;
    padding: 12px 0;
    justify-content: stretch;
    flex-direction: column;
    align-items: stretch;
  }

  .search {
    max-width: 100%;
  }

  .util {
    width: 100%;
    text-align: right;
  }

  .category-hero {
    margin-top: 14px;
    padding: 12px;
  }

  .hero-notice {
    font-size: 16px;
  }

  .bubble-image {
    width: 60px;
    height: 60px;
  }

  .bubble-name {
    font-size: 13px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-sections {
    gap: 18px;
    margin-bottom: 22px;
  }

  .home-section {
    padding: 18px;
    border-radius: 18px;
  }

  .home-section__title {
    font-size: 26px;
  }

  .price {
    font-size: 19px;
  }

  .product-grid-toggle {
    display: inline-flex;
  }
}

@media (max-width: 520px) {
  .pl-search-header {
    margin-top: -18px;
  }

  .pl-header-main {
    padding: 10px 0;
  }

  .search {
    height: 42px;
    padding: 0 6px 0 12px;
  }

  .search input {
    font-size: 13px;
  }

  .search button {
    min-width: 56px;
    padding: 0 12px;
    font-size: 13px;
  }

  .category-hero {
    margin-top: 12px;
    margin-bottom: 10px;
    padding: 12px 10px 6px;
    border: 0;
    border-radius: 18px;
    background: #fff;
  }

  .hero-notice {
    margin-bottom: 16px;
    padding: 14px 16px;
    text-align: center;
    color: #f08b17;
    font-size: 13px;
    line-height: 1.4;
    background: #fff3e5;
    border-radius: 14px;
    white-space: nowrap;
  }

  .hero-notice__desktop {
    display: none;
  }

  .hero-notice__mobile {
    display: inline;
  }

  .category-bubbles {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px 8px;
    overflow: visible;
    padding-bottom: 2px;
  }

  .bubble-item {
    min-width: 0;
    width: 100%;
    gap: 8px;
  }

  .bubble-image {
    width: min(100%, 66px);
    height: auto;
    aspect-ratio: 1 / 1;
    border: 1px solid #f0f2f5;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    justify-self: center;
  }

  .bubble-name {
    width: 100%;
    font-size: 11px;
    color: #4b5563;
    line-height: 1.3;
    word-break: keep-all;
    overflow-wrap: anywhere;
    letter-spacing: -0.01em;
  }

  .bubble-item.active .bubble-image {
    border-color: #111827;
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.08);
  }

  .main {
    padding: 18px 0 30px;
  }

  .home-sections {
    gap: 16px;
    margin-bottom: 18px;
  }

  .home-section {
    padding: 16px 14px;
    border-radius: 18px;
  }

  .home-section__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
  }

  .home-section__eyebrow {
    margin-bottom: 4px;
    font-size: 11px;
  }

  .home-section__title {
    font-size: 22px;
  }

  .home-section__meta {
    font-size: 13px;
  }

  .product-grid-head {
    flex-wrap: wrap;
    row-gap: 8px;
    margin-bottom: 12px;
  }

  .summary {
    font-size: 14px;
  }

  .product-grid-head__controls {
    width: 100%;
    justify-content: space-between;
  }

  .product-sort-form {
    max-width: calc(100% - 48px);
    flex: 1 1 auto;
  }

  .product-sort-form__label {
    display: none;
  }

  .product-sort-form__select {
    min-width: 0;
    width: 100%;
  }

  .product-grid-toggle {
    width: 36px;
    height: 36px;
  }

  .grid {
    gap: 12px;
  }

  .grid[data-mobile-columns="1"] {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .grid[data-mobile-columns="1"] .card {
    width: min(100%, 320px);
  }

  .card-like-btn {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .card-like-icon {
    width: 17px;
    height: 17px;
  }

  .info {
    padding: 10px;
  }

  .name {
    min-height: 0;
    font-size: 14px;
  }

  .meta {
    margin-top: 6px;
  }

  .price {
    margin-top: 6px;
    font-size: 17px;
  }
}
