/* ============================================================
   Kitchen Corner - shop (cart button, cart drawer, product cards,
   product page). Loaded on every page for the header cart.
   ============================================================ */

/* ---------- header cart button ---------- */
.ga-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--ga-accent);
  border-radius: 100px;
  padding: 12px;
  font-size: 24px;
  line-height: 1;
  color: #fff;
  transition: background-color 0.3s;
}
.ga-cart-btn svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
}
.ga-cart-btn:hover {
  background-color: var(--ga-green);
}
.ga-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--ga-green-deep);
  color: #fff;
  font-family: var(--ga-font);
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}
.ga-cart-count[hidden] {
  display: none;
}
@media (max-width: 767px) {
  .ga-header-right {
    gap: 12px;
  }
  .ga-cart-btn {
    font-size: 20px;
  }
}

/* ---------- shared bits ---------- */
.ga-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
}
.ga-price {
  font-family: var(--ga-font);
  font-weight: 600;
  color: var(--ga-green-deep);
}
.ga-price del {
  font-weight: 400;
  color: #8a8a8a;
}
.ga-price ins {
  text-decoration: none;
}
.ga-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 5px 10px;
  border-radius: 100px;
  background: var(--ga-accent);
  color: #fff;
  font-family: var(--ga-font);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}
.ga-badge--muted {
  background: #5d5d5d;
}

.ga-qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #c9d8bf;
  border-radius: 100px;
  background: #fff;
  overflow: hidden;
}
.ga-qty button {
  width: 44px;
  font-size: 20px;
  line-height: 1;
  color: var(--ga-green-deep);
  transition: background-color 0.2s;
}
.ga-qty button:hover:not(:disabled) {
  background-color: #eef7e7;
}
.ga-qty button:disabled {
  color: #b9b9b9;
  cursor: not-allowed;
}
.ga-qty input {
  width: 48px;
  border: 0;
  text-align: center;
  font: inherit;
  font-weight: 600;
  color: var(--ga-ink);
  background: transparent;
  -moz-appearance: textfield;
  appearance: textfield;
}
.ga-qty input::-webkit-outer-spin-button,
.ga-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.ga-qty--sm button {
  width: 32px;
  height: 32px;
  font-size: 17px;
}
.ga-qty--sm input {
  width: 34px;
  font-size: 15px;
}

.ga-shop-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 60px 0;
  text-align: center;
  font-size: 18px;
}

/* ---------- product cards ---------- */
.ga-pcard-link {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.ga-pcard-media {
  position: relative;
}
.ga-pcard.ga-is-oos .ga-pcard-media img {
  opacity: 0.6;
}
.ga-pcard .ga-pcard-foot {
  padding-bottom: 0;
}
.ga-pcard-buy {
  margin-top: auto; /* line up across a row when names wrap */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 0 10px 10px;
}
.ga-pcard-opts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.ga-pcard-size {
  min-width: 0;
  max-width: 62%;
  padding: 8px 30px 8px 14px;
  border: 1px solid #c9d8bf;
  border-radius: 100px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23215836' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center / 11px 8px;
  font-family: var(--ga-font);
  font-size: 14px;
  color: var(--ga-ink);
  text-overflow: ellipsis;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.ga-pcard-size:focus-visible {
  outline: 2px solid var(--ga-green-dark);
  outline-offset: 2px;
}
.ga-pcard-onesize {
  font-family: var(--ga-font);
  font-size: 14px;
  color: #6b6b6b;
}
.ga-pcard-buy .ga-price {
  font-size: 20px;
}
.ga-pcard-buy .ga-price del {
  font-size: 16px;
}
.ga-pcard-add {
  flex-shrink: 0;
  padding: 12px 18px;
  border-radius: 100px;
  background-color: var(--ga-accent);
  color: #fff;
  font-family: var(--ga-font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  transition: background-color 0.2s;
}
.ga-pcard-add:hover:not(:disabled) {
  background-color: var(--ga-green-dark);
}
.ga-pcard-add.ga-is-added {
  background-color: var(--ga-green-deep);
}
.ga-pcard-add:disabled {
  background-color: #cfcfcf;
  color: #5d5d5d;
  cursor: not-allowed;
}
@media (max-width: 767px) {
  .ga-pcard-link {
    gap: 10px;
  }
  .ga-pcard-buy {
    gap: 8px;
    padding: 0 0 10px;
  }
  .ga-pcard-opts {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .ga-pcard-size {
    max-width: none;
    padding: 7px 28px 7px 10px;
    font-size: 13px;
  }
  .ga-pcard-buy .ga-price {
    font-size: 16px;
  }
  .ga-pcard-buy .ga-price del {
    font-size: 13px;
  }
  .ga-pcard-add {
    padding: 10px 12px;
    font-size: 14px;
  }
  .ga-badge {
    top: 8px;
    left: 8px;
    font-size: 11px;
  }
}

/* no photo yet: brand logo on the card's soft background */
.ga-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 160px;
  aspect-ratio: 683 / 1024;
}
.ga-pcard-media .ga-noimg {
  height: 450px;
  aspect-ratio: auto;
}
.ga-noimg img {
  width: 55%;
  max-width: 220px;
  height: auto !important;
  object-fit: contain !important;
  opacity: 0.35;
}
.ga-cart-thumb .ga-noimg {
  width: 72px;
  height: 96px;
  min-height: 0;
}
.ga-cart-thumb .ga-noimg img {
  width: 80%;
}
@media (max-width: 767px) {
  .ga-pcard-media .ga-noimg {
    height: auto;
    aspect-ratio: 683 / 1024;
  }
}

/* loading skeleton */
.ga-pcard--skel .ga-pcard-media {
  height: 450px;
}
.ga-skel-line {
  height: 18px;
  margin: 0 10px;
  border-radius: 6px;
  background: #e6efe0;
}
.ga-skel-line--short {
  width: 40%;
}
.ga-pcard--skel .ga-pcard-media,
.ga-skel-line {
  animation: ga-skel 1.4s ease-in-out infinite;
}
@keyframes ga-skel {
  50% {
    opacity: 0.55;
  }
}
@media (max-width: 767px) {
  .ga-pcard--skel .ga-pcard-media {
    height: 240px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ga-pcard--skel .ga-pcard-media,
  .ga-skel-line {
    animation: none;
  }
}

/* ---------- cart drawer ---------- */
.ga-cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.ga-cart {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  width: 420px;
  max-width: 100vw;
  background: #fff;
  font-family: var(--ga-font);
  color: var(--ga-ink);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s;
}
body.ga-cart-open {
  overflow: hidden;
}
body.ga-cart-open .ga-cart-overlay {
  opacity: 1;
  visibility: visible;
}
body.ga-cart-open .ga-cart {
  transform: none;
  visibility: visible;
}
@media (prefers-reduced-motion: reduce) {
  .ga-cart,
  .ga-cart-overlay {
    transition: none;
  }
}

.ga-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e7e7e7;
}
.ga-cart-head h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--ga-green-deep);
}
.ga-cart-x {
  display: inline-flex;
  padding: 6px;
  margin-right: -6px;
  border-radius: 50%;
  color: #555;
}
.ga-cart-x:hover {
  background: #f1f1f1;
}
.ga-cart-x svg {
  width: 22px;
  height: 22px;
}

.ga-cart-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 24px;
}
.ga-cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid #eeeeee;
}
.ga-cart-item:last-child {
  border-bottom: 0;
}
.ga-cart-thumb {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #f1f1f1;
}
.ga-cart-thumb img {
  width: 72px;
  height: 96px;
  object-fit: cover;
}
.ga-cart-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.ga-cart-name {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}
.ga-cart-name:hover {
  color: var(--ga-green-dark);
}
.ga-cart-variant {
  font-size: 14px;
  font-weight: 500;
  color: var(--ga-green-dark);
}
.ga-cart-unit {
  font-size: 14px;
  color: #6b6b6b;
}
.ga-cart-oos {
  font-size: 14px;
  font-weight: 600;
  color: #b3261e;
}
.ga-cart-item.ga-is-oos .ga-cart-thumb img {
  opacity: 0.5;
}
.ga-cart-line {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-size: 16px;
}
.ga-cart-remove {
  font-size: 13px;
  color: #6b6b6b;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ga-cart-remove:hover {
  color: #b3261e;
}

.ga-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 60px 0;
  font-size: 17px;
  text-align: center;
}

.ga-cart-foot {
  padding: 20px 24px 24px;
  border-top: 1px solid #e7e7e7;
  background: #f8fff1;
}
.ga-cart-foot[hidden] {
  display: none;
}
.ga-cart-sub {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
}
.ga-cart-sub strong {
  color: var(--ga-green-deep);
}
.ga-cart-note {
  margin: 4px 0 16px;
  font-size: 14px;
  color: #6b6b6b;
}
.ga-cart-checkout {
  width: 100%;
  padding: 16px 24px;
  border-radius: 100px;
  font-size: 17px;
  font-weight: 500;
}
.ga-cart-msg {
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
  color: var(--ga-green-deep);
}
@media (max-width: 767px) {
  .ga-cart-head,
  .ga-cart-foot {
    padding-inline: 16px;
  }
  .ga-cart-body {
    padding-inline: 16px;
  }
}

/* ---------- product page ---------- */
.ga-pdp {
  background-color: #f8fff1;
}
.ga-pdp-inner {
  flex-direction: column;
  gap: 30px;
  padding-block: 140px 60px;
}
.ga-pdp-inner[aria-busy="true"] {
  min-height: 70vh;
}
.ga-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--ga-font);
  font-size: 15px;
  color: #6b6b6b;
}
.ga-crumbs a:hover {
  color: var(--ga-green-dark);
}
.ga-crumbs [aria-current] {
  color: var(--ga-ink);
}
.ga-pdp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}
.ga-pdp-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ga-pdp-main {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  background-image: radial-gradient(at center center, #f7f7f7 0%, #f1f1f1 100%);
}
.ga-pdp-main img {
  width: 100%;
  aspect-ratio: 2 / 3;
  max-height: 780px;
  object-fit: cover;
}
.ga-pdp-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}
.ga-pdp-thumb {
  flex: 0 0 auto;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
}
.ga-pdp-thumb.ga-is-active {
  border-color: var(--ga-accent);
}
.ga-pdp-thumb img {
  width: 72px;
  height: 96px;
  object-fit: cover;
}

.ga-pdp-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: var(--ga-font);
  font-size: 17px;
}
@media (min-width: 1025px) {
  .ga-pdp-info {
    position: sticky;
    top: 30px;
  }
}
.ga-pdp-cat {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ga-green-dark);
}
.ga-pdp-title {
  font-size: 46px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ga-green-deep);
}
.ga-pdp-price .ga-price {
  font-size: 28px;
}
.ga-pdp-price .ga-price del {
  font-size: 20px;
}
.ga-pdp-stock {
  font-size: 15px;
  font-weight: 600;
  color: var(--ga-green-dark);
}
.ga-pdp-stock.ga-is-oos {
  color: #b3261e;
}
.ga-pdp-short {
  color: var(--ga-body-text);
}
.ga-pdp-sizes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ga-pdp-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--ga-ink);
}
.ga-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ga-size {
  min-width: 74px;
  padding: 11px 18px;
  border: 1px solid #c9d8bf;
  border-radius: 100px;
  background: #fff;
  font-family: var(--ga-font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  color: var(--ga-ink);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.ga-size:hover {
  border-color: var(--ga-accent);
}
.ga-size[aria-checked="true"] {
  border-color: var(--ga-green-deep);
  background: var(--ga-green-deep);
  color: #fff;
}
.ga-size:focus-visible {
  outline: 2px solid var(--ga-green-dark);
  outline-offset: 2px;
}
.ga-size.ga-is-oos {
  color: #9a9a9a;
  text-decoration: line-through;
}
.ga-size.ga-is-oos[aria-checked="true"] {
  background: #8a8a8a;
  border-color: #8a8a8a;
  color: #fff;
}
.ga-pdp-pack {
  font-size: 15px;
  color: #6b6b6b;
}
.ga-pdp-pack[hidden] {
  display: none;
}
.ga-pdp-stock .ga-is-oos {
  color: #b3261e;
}
.ga-pdp-buy {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 6px 0;
}
.ga-pdp-buy .ga-qty {
  height: 54px;
}
.ga-pdp-add {
  flex: 1 1 200px;
  padding: 18px 28px;
  border-radius: 100px;
  font-size: 17px;
  font-weight: 500;
}
.ga-pdp-add.ga-is-added {
  background-color: var(--ga-green-deep);
}
.ga-pdp-desc {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid #dfe9d6;
  color: var(--ga-body-text);
}
.ga-pdp-desc h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--ga-ink);
}
.ga-pdp-desc ul {
  list-style: disc;
  padding-left: 22px;
}
.ga-pdp-desc li + li {
  margin-top: 4px;
}

.ga-related[hidden] {
  display: none;
}
.ga-related-inner {
  flex-direction: column;
  gap: 20px;
  padding-block: 20px 60px;
}
.ga-related-title {
  font-family: var(--ga-font);
  font-size: 34px;
  font-weight: 600;
  color: var(--ga-green-deep);
}
.ga-related {
  background-color: #f8fff1;
}

@media (max-width: 1024px) {
  .ga-pdp-grid {
    gap: 36px;
  }
  .ga-pdp-title {
    font-size: 36px;
  }
}
@media (max-width: 767px) {
  .ga-pdp-inner {
    padding-block: 110px 30px;
    gap: 20px;
  }
  .ga-pdp-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .ga-pdp-main {
    border-radius: 10px;
  }
  .ga-pdp-main img {
    max-height: 70vh;
  }
  .ga-pdp-title {
    font-size: 30px;
  }
  .ga-pdp-price .ga-price {
    font-size: 24px;
  }
  .ga-related-title {
    font-size: 26px;
  }
  .ga-related .ga-pgrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- order confirmed (thank-you) page ---------- */
.ga-confirm {
  background-color: #f8fff1;
}
.ga-confirm-inner {
  justify-content: center;
  padding-block: 150px 80px;
}
.ga-confirm-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 620px;
  padding: 48px 40px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(33, 88, 54, 0.08);
  font-family: var(--ga-font);
  text-align: center;
}
.ga-confirm-icon {
  color: var(--ga-accent);
}
.ga-confirm-icon svg {
  width: 72px;
  height: 72px;
}
.ga-confirm-title {
  font-size: 38px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ga-green-deep);
}
.ga-confirm-meta {
  padding: 8px 18px;
  border-radius: 100px;
  background: #eef7e7;
  font-size: 16px;
  color: var(--ga-ink);
}
.ga-confirm-meta[hidden],
.ga-confirm-meta [hidden] {
  display: none;
}
.ga-confirm-text {
  max-width: 480px;
  font-size: 17px;
  color: var(--ga-body-text);
}
.ga-confirm-cta {
  margin-top: 8px;
  padding: 16px 44px;
  border-radius: 100px;
  font-size: 17px;
  font-weight: 500;
}
.ga-confirm-help {
  font-size: 14px;
  color: #6b6b6b;
}
.ga-confirm-help a {
  color: var(--ga-green-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 767px) {
  .ga-confirm-inner {
    padding-block: 110px 40px;
  }
  .ga-confirm-card {
    padding: 36px 20px;
    border-radius: 14px;
  }
  .ga-confirm-title {
    font-size: 28px;
  }
  .ga-confirm-cta {
    width: 100%;
  }
}
