:root {
  --page-content: 1120px;
  --page-light: #f0f0f0;
  --page-gray: #aaaaaa;
  --page-border: #dddddd;
}

.page-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: -3px;
  color: #222;
  font-size: 9px;
}

.page-breadcrumbs a {
  display: inline-flex;
  align-items: center;
}

.page-breadcrumbs > a:first-child {
  width: 13px;
  height: 13px;
}

.page-breadcrumbs svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-breadcrumb-chevron {
  width: 7px !important;
  height: 7px !important;
}

.page-title {
  margin: 11px 0 35px;
  text-align: center;
  font-size: 27px;
}

.product-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.product-image {
  position: relative;
}

.product-card .favorite-button {
  z-index: 2;
}

.product-card .product-name-link {
  display: block;
}

.product-card.is-favorite .favorite-button {
  color: #111;
}

.product-card.is-favorite .favorite-button svg {
  fill: currentColor;
}

/* ===== Produkt ===== */
.product-view-main {
  padding-bottom: 48px;
}

.product-view-grid {
  display: grid;
  grid-template-columns: 560px minmax(0, 1fr);
  gap: 47px;
  margin-top: 34px;
}

.product-gallery {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 15px;
}

.product-thumbnails {
  display: grid;
  align-content: start;
  gap: 13px;
}

.product-thumbnail {
  width: 66px;
  height: 66px;
  border: 0;
  border-radius: 7px;
  background: var(--page-gray);
}

.product-thumbnail.is-active {
  box-shadow: 0 0 0 2px #444;
}

.product-main-image {
  min-height: 466px;
  border-radius: 8px;
  background: var(--page-gray);
}

.product-detail-panel {
  padding-top: 4px;
}

.product-seller {
  margin: 0 0 11px;
  font-size: 11px;
}

.product-detail-title {
  max-width: 390px;
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.05;
}

.product-lead {
  max-width: 420px;
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 1.55;
}

.product-availability {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  font-size: 10px;
}

.product-availability::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #33b983;
}

.product-detail-panel label {
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 700;
}

.product-engraving {
  width: 100%;
  height: 35px;
  padding: 0 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: 0;
}

.product-prices {
  margin-top: 25px;
}

.product-old-price {
  display: block;
  color: #aaa;
  text-decoration: line-through;
  font-size: 13px;
}

.product-new-price {
  display: block;
  margin-top: 3px;
  font-size: 27px;
  font-weight: 500;
}

.product-buy-row {
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  gap: 13px;
  margin-top: 24px;
}

.product-quantity {
  width: 50px;
  height: 45px;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-align: center;
}

.product-buy-button {
  border: 0;
  border-radius: 5px;
  background: #000;
  color: #fff;
}

.product-main-favorite {
  display: grid;
  place-items: center;
  border: 1px solid #bbb;
  border-radius: 50%;
  background: #fff;
}

.product-main-favorite svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.product-main-favorite.is-favorite svg {
  fill: currentColor;
}

.gift-card-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 27px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.gift-card-button svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.gift-card-field {
  max-width: 430px;
  margin-top: 12px;
}

.gift-card-field textarea {
  width: 100%;
  min-height: 75px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  resize: vertical;
}

.product-tabs {
  width: min(720px, 100%);
  margin: 48px auto 0;
}

.product-tab-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #ddd;
}

.product-tab-button {
  padding: 14px;
  border: 0;
  background: transparent;
  color: #ccc;
  font-weight: 700;
}

.product-tab-button.is-active {
  color: #111;
}

.product-tab-panel {
  padding-top: 30px;
}

.product-description-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: center;
  gap: 45px;
  margin-bottom: 30px;
}

.product-description-block.reverse {
  grid-template-columns: 1fr 280px;
}

.product-description-image {
  height: 184px;
  border-radius: 7px;
  background: var(--page-gray);
}

.product-description-block p {
  font-size: 11px;
  line-height: 1.6;
}

.product-related {
  margin-top: 38px;
}

.product-related .section-title {
  margin-bottom: 21px;
}

/* ===== Blog lista ===== */
.blog-list-main {
  padding-bottom: 45px;
}

.blog-filter-line {
  margin: -20px auto 18px;
  text-align: center;
  font-size: 10px;
}

.blog-filter-line a {
  text-decoration: underline;
}

.blog-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 48px;
  font-size: 10px;
}

.blog-tag {
  padding: 5px 10px;
  border: 1px solid #aaa;
  border-radius: 3px;
  background: #fff;
}

.blog-list {
  width: min(870px, 100%);
  margin-inline: auto;
}

.blog-list-entry {
  display: grid;
  grid-template-columns: 370px 1fr;
  align-items: center;
  gap: 92px;
  margin-bottom: 28px;
}

.blog-list-image {
  height: 360px;
  border-radius: 8px;
  background: var(--page-gray);
}

.blog-list-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 13px;
  font-size: 9px;
}

.blog-list-meta a {
  text-decoration: underline;
}

.blog-list-entry h2 {
  margin: 0 0 29px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 400;
}

.blog-list-entry p {
  margin: 0 0 26px;
  font-size: 10px;
  line-height: 1.65;
}

.blog-read-more {
  font-size: 10px;
}

.simple-pagination {
  display: flex;
  justify-content: center;
  gap: 13px;
  margin: 24px 0 0;
  font-size: 10px;
}

/* ===== Wpis blogowy ===== */
.article-main {
  padding-bottom: 50px;
}

.article-header {
  width: min(720px, 100%);
  margin: 5px auto 35px;
  text-align: center;
}

.article-title {
  margin: 0 auto 10px;
  font-size: 28px;
  line-height: 1.2;
}

.article-meta {
  font-size: 9px;
}

.article-meta a {
  text-decoration: underline;
}

.article-tags {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 14px;
  font-size: 9px;
}

.article-content {
  width: min(730px, 100%);
  margin-inline: auto;
}

.article-content > p {
  margin: 0 0 24px;
  font-size: 10px;
  line-height: 1.72;
}

.article-products {
  margin: 40px 0 50px;
}

.article-products h2,
.related-articles h2 {
  margin: 0 0 19px;
  text-align: center;
  font-size: 14px;
}

.article-media-block {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 45px;
  align-items: center;
  margin: 45px 0;
}

.article-media-image {
  height: 330px;
  border-radius: 7px;
  background: var(--page-gray);
}

.article-media-block p {
  font-size: 10px;
  line-height: 1.65;
}

.related-articles {
  width: min(820px, 100%);
  margin: 50px auto 0;
}

.related-article-row {
  display: grid;
  grid-template-columns: 330px 1fr;
  align-items: center;
  gap: 80px;
  margin-bottom: 25px;
}

.related-article-image {
  height: 310px;
  border-radius: 7px;
  background: var(--page-gray);
}

/* ===== Logowanie ===== */
.auth-main {
  min-height: 455px;
  padding-bottom: 55px;
}

.auth-title {
  margin: 12px 0 55px;
  text-align: center;
  font-size: 25px;
}

.login-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 72px;
}

.auth-column h2 {
  margin: 0 0 19px;
  font-size: 18px;
}

.auth-column p {
  min-height: 73px;
  margin: 0 0 23px;
  font-size: 11px;
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 15px;
}

.form-control {
  width: 100%;
  height: 39px;
  padding: 0 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: 0;
}

.form-control:focus,
.form-textarea:focus {
  border-color: #1d96ff;
  box-shadow: 0 0 0 1px #1d96ff;
}

.black-button {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 7px;
  background: #000;
  color: #fff;
}

.social-login-list {
  display: grid;
  gap: 15px;
  margin-top: 42px;
}

.social-login {
  height: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #ddd;
  border-radius: 7px;
  background: #fff;
  color: #4d596b;
}

.social-dot {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
}

/* ===== Rejestracja / konto ===== */
.form-page-main {
  padding-bottom: 66px;
}

.form-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}

.form-section {
  margin-bottom: 43px;
}

.form-section h2 {
  margin: 0 0 24px;
  font-size: 17px;
  font-weight: 500;
}

.labelled-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 10px;
}

.labelled-row.required label::before {
  content: "*";
  color: #e23b3b;
}

.form-textarea {
  width: 100%;
  min-height: 125px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: 0;
  resize: vertical;
}

.choice-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 0 15px 122px;
  font-size: 10px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 18px;
  font-size: 10px;
  line-height: 1.55;
}

.form-submit-wrap {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.form-submit-wrap .black-button {
  width: 330px;
}

.form-feedback {
  min-height: 18px;
  margin-top: 13px;
  text-align: center;
  font-size: 10px;
}

/* ===== Konto ===== */
.account-main {
  min-height: 520px;
  padding-bottom: 55px;
}

.account-tabs {
  width: min(640px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 27px auto 43px;
  border-bottom: 1px solid #ddd;
}

.account-tab {
  padding: 15px;
  color: #ccc;
  text-align: center;
  font-weight: 700;
}

.account-tab.is-active {
  color: #111;
}

.account-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 105px;
}

.account-save {
  width: 280px;
  margin: 20px auto 0;
}

/* ===== Zamówienia ===== */
.orders-list {
  width: min(650px, 100%);
  margin: 0 auto;
}

.order-row {
  display: grid;
  grid-template-columns: 145px 1fr 40px;
  align-items: center;
  min-height: 130px;
  padding: 20px 0;
  border-bottom: 1px solid #ddd;
}

.order-meta {
  font-size: 10px;
  line-height: 1.65;
}

.order-meta strong {
  display: block;
  font-size: 11px;
}

.order-thumbnails {
  display: flex;
  gap: 20px;
}

.order-thumb {
  width: 62px;
  height: 62px;
  border-radius: 7px;
  background: var(--page-gray);
}

.order-eye {
  width: 25px;
  height: 25px;
  border: 0;
  background: transparent;
}

.order-eye svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

/* ===== Ulubione ===== */
.favorites-main {
  min-height: 520px;
  padding-bottom: 55px;
}

.favorites-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.favorites-empty {
  padding: 70px 20px;
  border-radius: 9px;
  background: var(--page-light);
  text-align: center;
}

.favorites-empty h2 {
  margin: 0 0 10px;
}

.favorites-empty p {
  margin: 0 0 20px;
  color: #555;
}

.favorites-empty a {
  display: inline-flex;
  height: 37px;
  align-items: center;
  justify-content: center;
  padding: 0 25px;
  border-radius: 7px;
  background: #d2d2d2;
}

/* ===== Responsive ===== */
@media (max-width: 950px) {
  .product-view-grid {
    grid-template-columns: 1fr 1fr;
  }
  .product-gallery {
    grid-template-columns: 55px 1fr;
  }
  .product-thumbnail {
    width: 55px;
    height: 55px;
  }
  .blog-list-entry {
    grid-template-columns: 310px 1fr;
    gap: 45px;
  }
  .login-grid {
    gap: 35px;
  }
  .form-page-grid,
  .account-edit-grid {
    gap: 45px;
  }
}

@media (max-width: 800px) {
  .product-view-grid,
  .login-grid,
  .form-page-grid,
  .account-edit-grid {
    grid-template-columns: 1fr;
  }
  .product-gallery {
    max-width: 610px;
  }
  .blog-list-entry,
  .related-article-row {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .blog-list-image {
    height: 280px;
  }
  .article-media-block {
    grid-template-columns: 1fr 1fr;
  }
  .favorites-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .auth-column p {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .product-view-grid {
    margin-top: 22px;
  }
  .product-gallery {
    grid-template-columns: 1fr;
  }
  .product-thumbnails {
    grid-template-columns: repeat(4, 1fr);
    order: 2;
  }
  .product-thumbnail {
    width: 100%;
    height: 55px;
  }
  .product-main-image {
    min-height: 340px;
  }
  .product-buy-row {
    grid-template-columns: 50px 1fr 45px;
  }
  .product-description-block,
  .product-description-block.reverse,
  .blog-list-entry,
  .related-article-row,
  .article-media-block {
    grid-template-columns: 1fr;
  }
  .product-description-block.reverse .product-description-image {
    order: -1;
  }
  .blog-list-image,
  .related-article-image {
    height: 250px;
  }
  .article-media-image {
    height: 270px;
  }
  .labelled-row {
    grid-template-columns: 1fr;
  }
  .choice-row {
    margin-left: 0;
  }
  .account-tabs {
    font-size: 11px;
  }
  .order-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .favorites-grid {
    grid-template-columns: 1fr;
  }
}

.button-link {
  display: flex;
  align-items: center;
  justify-content: center;
}
