/* GEODOMAS Shop — katalogas / kategorijos */

.gd-shop-hero {
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--paper, #f3eee6);
  line-height: 0;
}

.gd-shop-hero .rs-p-wp-fix {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
}

/* RevSlider valdo plotį/aukštį — neperrašom wrapper matmenų. */
.gd-shop-hero rs-sbg-px,
.gd-shop-hero rs-sbg-wrap,
.gd-shop-hero rs-sbg {
  width: 100%;
  height: 100%;
}

.gd-shop-hero img.rev-slidebg,
.gd-shop-hero rs-sbg img.tp-rs-img {
  object-fit: cover !important;
  object-position: center center !important;
}

.gd-shop-hero + .gd-shop-shell {
  padding-top: 0;
  margin-top: 0;
}

.gd-shop-archive {
  margin-top: 0;
}

.gd-shop-archive .gd-shop-header {
  margin-bottom: 28px;
}

.gd-shop-archive .gd-shop-header h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.2vw, 48px);
  color: var(--forest);
  margin: 0 0 10px;
  line-height: 1.08;
}

.gd-shop-archive-intro {
  margin: 0 0 28px;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.gd-shop-archive .woocommerce-breadcrumb {
  margin-bottom: 18px;
}

.gd-shop-archive .woocommerce-result-count,
.gd-shop-archive .woocommerce-ordering {
  margin-bottom: 18px;
}

.gd-shop-archive .woocommerce-ordering select {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 14px;
}

.gd-shop-archive .woocommerce-before-shop-loop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

/* CloudFW loop konteineris — 2 stulpelių tinklelis */
.gd-shop-archive .ui-row.row,
.gd-shop-archive .gd-shop-loop {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  margin: 0;
}

.gd-shop-archive .ui-row.row::before,
.gd-shop-archive .ui-row.row::after,
.gd-shop-archive .gd-shop-loop::before,
.gd-shop-archive .gd-shop-loop::after {
  display: none;
  content: none;
}

.gd-shop-archive .gd-shop-section-title--products {
  grid-column: 1 / -1;
  margin: 28px 0 4px;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--forest);
  line-height: 1.15;
}

.gd-shop-archive .gd-shop-archive-3d {
  grid-column: 1 / -1;
  margin: 20px 0 8px;
}

.gd-shop-archive .gd-shop-archive-3d .gd-live-3d-chrome {
  grid-template-columns: auto auto;
  justify-content: space-between;
}

/* Kategorijų kortelės — foto kairėje, tekstas dešinėje */
.gd-shop-archive .gd-cat-card {
  display: flex;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.gd-shop-archive .gd-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(201, 146, 63, .35);
}

.gd-shop-archive .gd-cat-card__link {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  min-height: 100%;
  text-decoration: none !important;
  color: inherit;
}

.gd-shop-archive .gd-cat-card__media {
  flex: 0 0 42%;
  max-width: 42%;
  min-height: 180px;
  overflow: hidden;
  background: var(--paper-2);
}

.gd-shop-archive .gd-cat-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  margin: 0;
}

.gd-shop-archive .gd-cat-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 18px 20px;
  min-width: 0;
}

.gd-shop-archive .gd-cat-card__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--forest);
}

.gd-shop-archive .gd-cat-card__count {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--gold);
}

.gd-shop-archive .gd-cat-card__excerpt {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Senas CloudFW markup — slepiame jei dar liko */
.gd-shop-archive .category-container,
.gd-shop-archive .category-grid,
.gd-shop-archive .category-container > style,
.gd-shop-archive .ui-column.product .ui--content-box,
.gd-shop-archive .ui--quickview-button,
.gd-shop-archive .ui--content-box-overlay {
  display: none !important;
}

/* Produktų kortelės */
.gd-shop-archive .gd-product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  background: var(--white);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-md);
  overflow: visible;
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.gd-shop-archive .gd-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(201, 146, 63, .35);
}

.gd-shop-archive .gd-product-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--paper-2);
  text-decoration: none !important;
}

.gd-shop-archive .gd-product-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: 0;
  transition: transform .3s ease;
}

.gd-shop-archive .gd-product-card:hover .gd-product-card__media img {
  transform: scale(1.03);
}

.gd-shop-archive .gd-product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.gd-shop-archive .gd-product-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  position: relative;
  padding: 16px 18px 24px;
  padding-right: 42%;
  min-height: 118px;
}

.gd-shop-archive .gd-product-card__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 700;
  line-height: 1.25;
}

.gd-shop-archive .gd-product-card__title a {
  color: var(--forest);
  text-decoration: none !important;
}

.gd-shop-archive .gd-product-card__title a:hover {
  color: var(--gold);
}

.gd-shop-archive .gd-product-card__price {
  margin: 0;
  color: var(--gold);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.2;
}

.gd-shop-archive .gd-product-card__price del {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  margin-right: 6px;
}

.gd-shop-archive .gd-product-card__price ins {
  text-decoration: none;
}

.gd-shop-archive .gd-product-card__actions {
  position: absolute;
  right: -10px;
  bottom: -14px;
  z-index: 3;
  margin: 0;
  padding: 0;
}

.gd-shop-archive .gd-product-card__actions .button,
.gd-shop-archive .gd-product-card__actions .add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 138px;
  min-height: 44px;
  padding: 11px 22px 11px 18px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px 18px 18px 999px;
  background: linear-gradient(135deg, #67b595 0%, #4f9478 52%, #45886d 100%);
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    0 14px 28px rgba(47, 107, 84, .22),
    inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: background .22s ease, transform .22s ease, box-shadow .22s ease, color .22s ease;
}

.gd-shop-archive .gd-product-card__actions .button:hover,
.gd-shop-archive .gd-product-card__actions .add_to_cart_button:hover {
  background: linear-gradient(135deg, #f0cc78 0%, #ddb45a 48%, #c9923f 100%);
  border-color: rgba(255, 255, 255, .42);
  color: #102019 !important;
  transform: translateY(-2px) translateX(3px);
  box-shadow:
    0 16px 34px rgba(201, 146, 63, .28),
    inset 0 1px 0 rgba(255, 255, 255, .34);
}

.gd-shop-archive .gd-product-card__actions .added_to_cart {
  display: inline-flex;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--forest);
  text-decoration: none !important;
}

.gd-shop-archive ul.products {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.gd-shop-archive ul.products::before,
.gd-shop-archive ul.products::after {
  display: none;
  content: none;
}

.gd-shop-archive ul.products li.product,
.gd-shop-archive ul.products li.product-category {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  background: var(--white);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.gd-shop-archive ul.products li.product:hover,
.gd-shop-archive ul.products li.product-category:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(201, 146, 63, .35);
}

.gd-shop-archive ul.products li.product a.woocommerce-LoopProduct-link,
.gd-shop-archive ul.products li.product-category > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none !important;
  color: inherit;
}

.gd-shop-archive ul.products li.product img,
.gd-shop-archive ul.products li.product-category img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
}

.gd-shop-archive ul.products li.product .woocommerce-loop-product__title,
.gd-shop-archive ul.products li.product-category .woocommerce-loop-category__title,
.gd-shop-archive ul.products li.product-category h2 {
  padding: 16px 18px 6px;
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--forest);
  text-align: left;
}

.gd-shop-archive ul.products li.product .price {
  display: block;
  padding: 0 18px 16px;
  margin-top: auto;
  color: var(--gold);
  font-weight: 800;
  font-size: 17px;
}

.gd-shop-archive ul.products li.product .button,
.gd-shop-archive ul.products li.product .added_to_cart {
  margin: 0 16px 16px;
  align-self: flex-start;
}

.gd-shop-archive ul.products li.product .onsale {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--gold);
  color: var(--deep);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.gd-shop-archive .mark,
.gd-shop-archive ul.products li.product-category .count {
  display: inline-flex;
  margin: 0 18px 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

/* CloudFW legacy aprašymai kortelėse — slepiame */
.gd-shop-archive ul.products li.product-category .term-description,
.gd-shop-archive ul.products li.product .term-description,
.gd-shop-archive ul.products .ui--section,
.gd-shop-archive ul.products .fullwidth-content,
.gd-shop-archive ul.products .ui-row {
  display: none !important;
}

.gd-shop-archive .term-description:not(ul.products .term-description) {
  display: none;
}

.gd-shop-archive .woocommerce-pagination {
  margin-top: 36px;
}

.gd-shop-archive .woocommerce-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.gd-shop-archive .woocommerce-pagination a,
.gd-shop-archive .woocommerce-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  text-decoration: none;
}

.gd-shop-archive .woocommerce-pagination .current {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}

@media (max-width: 720px) {
  .gd-shop-archive .ui-row.row,
  .gd-shop-archive .gd-shop-loop {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gd-shop-archive .gd-cat-card__link {
    flex-direction: column;
  }

  .gd-shop-archive .gd-cat-card__media {
    flex: none;
    max-width: none;
    width: 100%;
    min-height: 0;
  }

  .gd-shop-archive .gd-cat-card__media img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .gd-shop-archive ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .gd-shop-archive ul.products li.product .woocommerce-loop-product__title,
  .gd-shop-archive ul.products li.product-category h2 {
    font-size: 15px;
    padding: 12px 12px 4px;
  }

  .gd-shop-archive .gd-product-card__body {
    padding-right: 34%;
    min-height: 108px;
  }

  .gd-shop-archive .gd-product-card__actions {
    right: -6px;
    bottom: -10px;
  }

  .gd-shop-archive .gd-product-card__actions .button,
  .gd-shop-archive .gd-product-card__actions .add_to_cart_button {
    min-width: 124px;
    min-height: 40px;
    padding: 10px 16px 10px 14px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .gd-shop-archive ul.products {
    grid-template-columns: 1fr;
  }
}
