.gc-page {
  padding: 24px 12px 56px;
}

.gc-title {
  margin-bottom: 16px;
}

.gc-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.gc-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #eee;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  flex: 0 0 auto;
  text-decoration: none;
}

.gc-crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  font-size: 0.92rem;
}

.gc-crumbs__sep {
  color: #b0b0b0;
}

.gc-crumbs__link {
  color: #666;
  text-decoration: none;
  white-space: nowrap;
}

.gc-crumbs__link:hover {
  color: #1a1a1a;
}

.gc-crumbs__current {
  color: #1a1a1a;
  font-weight: 650;
  white-space: nowrap;
}

.gc-tags {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 18px;
  padding-bottom: 4px;
}

.gc-tag {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #ececec;
  padding: 6px 12px;
  font-size: 0.86rem;
  color: #1a1a1a;
  text-decoration: none;
}

.gc-tag.is-active,
.gc-tag:hover {
  border-color: var(--pp-accent, #913d45);
  color: var(--pp-accent, #913d45);
}

.gc-tags--card {
  margin-top: 14px;
  flex-wrap: wrap;
  overflow: visible;
}

.gc-rail-wrap {
  position: relative;
  margin-bottom: 8px;
}

.gc-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 4px 2px 12px;
}

.gc-rail::-webkit-scrollbar {
  display: none;
}

.gc-rail__nav {
  position: absolute;
  top: 42px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

.gc-rail__nav--prev { left: -6px; }
.gc-rail__nav--next { right: -6px; }
.gc-rail__nav[hidden] { display: none; }

.gc-rail--products .gc-rail__item,
.gc-rail__item {
  flex: 0 0 220px;
  scroll-snap-align: start;
  min-width: 0;
}

.gc-cat {
  flex: 0 0 92px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  text-align: center;
}

.gc-cat__photo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  object-fit: cover;
  background: #f3f3f5;
}

.gc-cat__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
}

.gc-cat__name {
  font-size: 0.78rem;
  line-height: 1.2;
  max-width: 92px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gc-section {
  margin-top: 22px;
}

.gc-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.gc-section__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.gc-section__title--static {
  margin-bottom: 12px;
}

.gc-section__all {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
}

.gc-empty {
  color: #8a8a8a;
  margin: 8px 0 16px;
}

.gc-more {
  display: block;
  margin: 18px auto 0;
  min-width: 180px;
}

.gc-tile-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f3f5;
  color: #1a1a1a;
  font-size: 2rem;
  font-weight: 700;
}

.gc-tile-sub {
  margin-top: 2px;
  font-size: 0.75rem;
  color: #8a8a8a;
}

.gc-tile.pp-product-card {
  overflow: visible;
  container-type: inline-size;
}

.gc-card-cart {
  position: absolute;
  z-index: 5;
  right: 10px;
  top: calc(100cqi - 46px);
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #913d45;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gc-card-cart i {
  font-size: 0.95rem;
}

.gc-card-cart:hover {
  color: #6d2c33;
}

.gc-card-cart:disabled {
  opacity: 0.6;
  cursor: default;
}

.gc-tile .bulma-cake-image {
  position: relative;
}

#gc-variant-modal.bulma-is-active {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 1100;
}

.gc-variant-modal__card {
  width: min(420px, calc(100% - 24px));
  max-height: calc(100vh - 48px);
  margin: 0;
  overflow: auto;
}

.gc-variant-modal__name {
  margin: 0 0 12px;
  font-weight: 700;
}

.gc-variant-modal__submit {
  margin-top: 16px;
}

.gc-variant-modal__submit:disabled {
  opacity: 0.45;
}

.gc-card {
  display: grid;
  grid-template-columns: minmax(240px, 420px) 1fr;
  gap: 28px;
  align-items: start;
}

.gc-gallery {
  position: relative;
}

.gc-gallery__main,
.gc-gallery__fallback {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  background: #f3f3f5;
}

.gc-gallery__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
}

.gc-gallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
}

.gc-gallery__thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border-radius: 10px;
  border: 2px solid transparent;
  background: none;
  cursor: pointer;
  flex: 0 0 auto;
}

.gc-gallery__thumb.is-active {
  border-color: var(--pp-accent, #913d45);
}

.gc-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.gc-gallery__share {
  position: absolute;
  top: 12px;
  right: 12px;
}

.gc-card__path {
  margin: 0 0 6px;
  color: #8a8a8a;
  font-size: 0.88rem;
}

.gc-card__name {
  margin: 0 0 8px;
  font-size: 1.7rem;
  line-height: 1.25;
}

.gc-card__price {
  margin: 0 0 16px;
  font-size: 1.35rem;
  font-weight: 800;
}

.gc-card__place {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: -8px 0 16px;
  color: #5c5c5c;
  font-size: 0.92rem;
  line-height: 1.4;
}

.gc-card__place i {
  margin-top: 0.15rem;
}

.gc-variants {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 16px;
}

.gc-variant {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  cursor: pointer;
}

.gc-variant input {
  margin: 0;
}

.gc-variant span {
  flex: 1;
}

.gc-variant:has(input:checked) {
  border-color: #913d45;
}

.gc-details {
  margin-top: 10px;
}

.gc-description {
  margin-top: 18px;
  line-height: 1.5;
}

.gc-description p { margin: 0 0 8px; }
.gc-description p:last-child { margin-bottom: 0; }
.gc-description ul,
.gc-description ol { margin: 8px 0; padding-left: 20px; }
.gc-description a { text-decoration: underline; }

#gc-product-card-modal.bulma-is-active {
  display: flex;
  position: fixed;
  inset: 0;
  width: auto;
  height: auto;
  z-index: 1000;
  cursor: default;
  overscroll-behavior: none;
}

#gc-product-card-modal .bulma-modal-background {
  cursor: default;
}

#gc-product-card-modal [data-gc-loading],
#gc-product-card-modal [data-gc-body] {
  display: none !important;
}

#gc-product-card-modal.gc-modal--loading [data-gc-loading],
#gc-product-card-modal.bulma-is-active:not(.gc-modal--loading) [data-gc-body] {
  display: block !important;
}

.gc-modal__card {
  width: min(920px, calc(100% - 24px));
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.gc-skeleton {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 8px;
}

.gc-skeleton__photo,
.gc-skeleton__line {
  background: linear-gradient(90deg, #f2f2f4 25%, #e6e6ea 37%, #f2f2f4 63%);
  background-size: 400% 100%;
  animation: gcShimmer 1.2s ease infinite;
  border-radius: 12px;
}

.gc-skeleton__photo {
  aspect-ratio: 1;
}

.gc-skeleton__lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}

.gc-skeleton__line { height: 14px; }
.gc-skeleton__line--title { height: 24px; width: 70%; }
.gc-skeleton__line--price { width: 40%; }
.gc-skeleton__line--short { width: 55%; }

@keyframes gcShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

@media (max-width: 768px) {
  .gc-card,
  .gc-skeleton {
    grid-template-columns: 1fr;
  }

  .gc-rail__nav {
    display: none;
  }
}
