:root {
  --shop-primary: #003f87;
  --shop-primary-strong: #002f68;
  --shop-accent: #18a9d5;
  --shop-ink: #1a1c1e;
  --shop-muted: #62676f;
  --shop-line: #dfe4eb;
  --shop-soft: #f4f7fb;
  --shop-white: #ffffff;
}
.kase-subgroup-heading{display:none!important}.kase-subgroup-actions{margin-top:0}

.shop-main {
  min-height: calc(100vh - 80px);
  padding-top: 80px;
  background:
    radial-gradient(circle at 85% 5%, rgba(24, 169, 213, 0.08), transparent 28rem),
    #f8fafc;
}

.shop-container {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
}

.shop-hero {
  padding: 4rem 0 2.5rem;
}

.shop-kicker,
.shop-label {
  color: var(--shop-primary);
  font: 700 0.72rem/1rem Inter, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shop-title {
  max-width: 760px;
  margin: 0.55rem 0 0.9rem;
  color: var(--shop-ink);
  font: 800 clamp(2.25rem, 5vw, 4rem)/1.02 Manrope, sans-serif;
  letter-spacing: -0.04em;
}

.shop-lead {
  max-width: 720px;
  margin: 0;
  color: var(--shop-muted);
  font: 400 1rem/1.75 Inter, sans-serif;
}

.catalog-slider {
  position: relative;
  padding-top: 2rem;
  padding-bottom: 2.2rem;
}

.catalog-slides {
  position: relative;
  height: 390px;
  overflow: hidden;
  border-radius: 24px;
  background: #003f87;
  box-shadow: 0 24px 65px rgba(0, 47, 104, 0.2);
}

.catalog-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  height: 100%;
  min-height: 0;
  overflow: hidden;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateX(3%);
  transition:
    opacity 550ms ease,
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 550ms ease;
  pointer-events: none;
}

.catalog-slide.is-active {
  position: absolute;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.catalog-slide-primary {
  background:
    radial-gradient(circle at 65% 20%, rgba(25, 201, 236, 0.25), transparent 25rem),
    linear-gradient(125deg, #002e68 0%, #004a9f 58%, #0388bb 100%);
}

.catalog-slide-cyan {
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.2), transparent 22rem),
    linear-gradient(125deg, #026e98 0%, #08a7cb 58%, #00c4d8 100%);
}

.catalog-slide-dark {
  background:
    radial-gradient(circle at 72% 10%, rgba(17, 169, 213, 0.3), transparent 23rem),
    linear-gradient(125deg, #101b2d 0%, #082c52 56%, #004d82 100%);
}

.catalog-slide::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -150px;
  right: 31%;
  width: 350px;
  height: 350px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.catalog-slide-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 3.4rem 2rem 4.2rem 4.2rem;
}

.catalog-slide-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
  color: #9cecff;
  font: 700 0.72rem/1rem Inter, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.catalog-slide-kicker::before {
  content: "";
  width: 30px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.catalog-slide h1,
.catalog-slide h2 {
  max-width: 690px;
  margin: 0;
  color: #fff;
  font: 800 clamp(2.35rem, 4vw, 4.25rem)/1.02 Manrope, sans-serif;
  letter-spacing: -0.045em;
}

.catalog-slide p {
  max-width: 650px;
  margin: 1rem 0 1.55rem;
  color: rgba(255, 255, 255, 0.82);
  font: 400 0.98rem/1.65 Inter, sans-serif;
}

.catalog-slide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.78rem 1.15rem;
  border-radius: 10px;
  background: #fff;
  color: var(--shop-primary-strong);
  font: 750 0.82rem/1rem Inter, sans-serif;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 24, 55, 0.17);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.catalog-slide-button:hover {
  color: var(--shop-primary);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 24, 55, 0.25);
}

.catalog-slide-button .material-symbols-outlined {
  font-size: 1.1rem;
}

.catalog-slide-visual {
  position: relative;
  z-index: 1;
  min-height: 390px;
  overflow: hidden;
  clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%);
}

.catalog-slide-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 54, 119, 0.5), transparent 36%),
    linear-gradient(0deg, rgba(0, 34, 76, 0.12), transparent 45%);
}

.catalog-slide-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 7s ease;
}

.catalog-slide.is-active .catalog-slide-visual img {
  transform: scale(1.11);
}

.catalog-slider-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(0, 31, 72, 0.42);
  color: #fff;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.catalog-slider-arrow:hover {
  background: rgba(0, 31, 72, 0.78);
  transform: translateY(-50%) scale(1.05);
}

.catalog-slider-previous {
  left: 2.6rem;
}

.catalog-slider-next {
  right: 2.6rem;
}

.catalog-slider-dots {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 3.45rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transform: translateX(-50%);
}

.catalog-slider-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 220ms ease, background-color 220ms ease;
}

.catalog-slider-dots button.is-active {
  width: 26px;
  background: #fff;
}

.shop-toolbar {
  position: sticky;
  z-index: 25;
  top: 80px;
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(2, minmax(180px, 0.7fr));
  gap: 0.75rem;
  margin-bottom: 1.4rem;
  padding: 1rem;
  border: 1px solid rgba(223, 228, 235, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 45px rgba(0, 47, 104, 0.08);
  backdrop-filter: blur(18px);
}

.shop-field {
  position: relative;
}

.shop-field .material-symbols-outlined {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  color: #7a818a;
  font-size: 1.15rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.shop-input,
.shop-select,
.shop-quantity {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--shop-line);
  border-radius: 10px;
  background: var(--shop-white);
  color: var(--shop-ink);
  font: 500 0.9rem/1.2rem Inter, sans-serif;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.shop-input {
  padding: 0.8rem 0.9rem 0.8rem 3rem !important;
}

.shop-select {
  padding: 0.8rem 2.25rem 0.8rem 0.9rem;
}

.shop-input:focus,
.shop-select:focus,
.shop-quantity:focus {
  border-color: var(--shop-primary);
  box-shadow: 0 0 0 3px rgba(0, 63, 135, 0.12);
}

.kase-subgroup-picker{margin:16px 0 18px;padding:16px 18px;border:1px solid #d5e2f1;border-radius:16px;background:linear-gradient(135deg,#f7fbff,#edf5ff)}.kase-subgroup-heading strong,.kase-subgroup-heading span{display:block}.kase-subgroup-heading strong{color:#123e6d;font-size:17px}.kase-subgroup-heading span{margin-top:4px;color:#64748b;font-size:13px}.kase-subgroup-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:13px}.kase-subgroup-button{min-height:42px;padding:9px 15px;border:1px solid #bcd0e7;border-radius:999px;background:#fff;color:#164b80;font:inherit;font-size:13px;font-weight:800;cursor:pointer;transition:.2s ease}.kase-subgroup-button:hover,.kase-subgroup-button.is-active{border-color:#0b63ce;background:#0b63ce;color:#fff;box-shadow:0 5px 12px rgba(11,99,206,.18)}
.shop-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
  color: var(--shop-muted);
  font: 500 0.86rem/1.25rem Inter, sans-serif;
}

.shop-results-bar strong {
  color: var(--shop-ink);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: 1.5rem;
}

.product-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--shop-line);
  border-radius: 16px;
  background: var(--shop-white);
  box-shadow: 0 8px 28px rgba(31, 40, 51, 0.055);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card:hover {
  border-color: rgba(0, 63, 135, 0.28);
  box-shadow: 0 18px 44px rgba(0, 47, 104, 0.12);
  transform: translateY(-4px);
}

.product-card-image-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--shop-soft);
}

.product-card-image {
  width: 100%;
  height: 100%;
  /* Ürün görselinin tamamını koru; geniş banner görselleri kartta kırpılmasın. */
  object-fit: contain;
  object-position: center;
  padding: 0.45rem;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card-image {
  transform: none;
}

.product-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.product-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.product-badge {
  overflow: hidden;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  background: #e7efff;
  color: var(--shop-primary);
  font: 700 0.66rem/0.9rem Inter, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-code {
  flex: none;
  color: #7a818a;
  font: 600 0.67rem/0.9rem ui-monospace, SFMono-Regular, Consolas, monospace;
}

.product-card-title {
  margin: 0 0 0.55rem;
  color: var(--shop-ink);
  font: 750 1.05rem/1.32 Manrope, sans-serif;
  letter-spacing: -0.01em;
}

.product-card-title a {
  color: inherit;
  text-decoration: none;
}

.product-description {
  display: -webkit-box;
  min-height: 3.75rem;
  overflow: hidden;
  margin: 0 0 0.9rem;
  color: var(--shop-muted);
  font: 400 0.78rem/1.55 Inter, sans-serif;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-card-footer {
  margin-top: auto;
}

.product-price {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--shop-primary);
  font: 800 1rem/1.25rem Manrope, sans-serif;
}

.product-price.is-pending {
  color: #5c6470;
  font-size: 0.86rem;
}

.product-net-price {
  display: block;
  margin: -0.5rem 0 0.7rem;
  color: var(--shop-muted);
  font: 500 0.68rem/1.1rem Inter, sans-serif;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0.5rem;
}

.shop-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 9px;
  font: 700 0.76rem/1rem Inter, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.shop-button-primary {
  background: var(--shop-primary);
  color: #fff;
}

.shop-button-primary:hover {
  background: var(--shop-primary-strong);
}

.shop-button-secondary {
  border-color: var(--shop-line);
  background: #fff;
  color: var(--shop-ink);
}

.shop-button-secondary:hover {
  border-color: var(--shop-primary);
  color: var(--shop-primary);
}

.shop-button .material-symbols-outlined {
  font-size: 1rem;
}

.shop-load-more-wrap {
  padding: 0 0 4rem;
  text-align: center;
}

.shop-load-more {
  min-width: 190px;
}

.shop-empty {
  grid-column: 1 / -1;
  padding: 4rem 1.5rem;
  border: 1px dashed #c8d0db;
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.shop-empty .material-symbols-outlined {
  color: var(--shop-primary);
  font-size: 2.5rem;
}

.shop-empty h2 {
  margin: 0.65rem 0 0.35rem;
  color: var(--shop-ink);
  font: 750 1.4rem/1.5 Manrope, sans-serif;
}

.shop-empty p {
  margin: 0;
  color: var(--shop-muted);
  font: 400 0.9rem/1.5 Inter, sans-serif;
}

.product-detail-wrap {
  padding: 3.2rem 0 5rem;
}

.shop-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
  color: #777e88;
  font: 500 0.78rem/1rem Inter, sans-serif;
}

.shop-breadcrumb a {
  color: var(--shop-primary);
  text-decoration: none;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.94fr);
  gap: 2.5rem;
  padding: 1.4rem;
  border: 1px solid var(--shop-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 47, 104, 0.09);
}

.product-detail-media {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.8rem;
}

.product-gallery-main {
  position: relative;
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background: var(--shop-soft);
}

.product-gallery-main > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.product-gallery-main > img:focus-visible {
  outline: 3px solid var(--shop-blue);
  outline-offset: -3px;
}

body.product-image-modal-open {
  overflow: hidden;
}

.product-image-modal[hidden] {
  display: none;
}

.product-image-modal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  padding: clamp(1rem, 3vw, 2rem);
  place-items: center;
  background: rgba(3, 15, 32, 0.68);
  backdrop-filter: blur(3px);
}

.product-image-modal-frame {
  position: relative;
  display: grid;
  width: min(720px, calc(100vw - 6rem));
  max-height: 72vh;
  padding: 10px;
  place-items: center;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.product-image-modal-frame > img {
  display: block;
  width: 100%;
  max-height: calc(72vh - 20px);
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
}

.product-image-modal-close {
  position: absolute;
  z-index: 2;
  top: -18px;
  right: -18px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 47, 104, 0.9);
  cursor: pointer;
}

.product-image-modal-close:hover,
.product-image-modal-close:focus-visible {
  background: var(--shop-blue);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.product-image-modal-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 47, 104, 0.84);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.product-image-modal-arrow-left {
  left: 22px;
}

.product-image-modal-arrow-right {
  right: 22px;
}

.product-image-modal-arrow:hover,
.product-image-modal-arrow:focus-visible {
  background: var(--shop-blue);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .product-image-modal-frame {
    width: calc(100vw - 2rem);
    max-height: 72vh;
  }

  .product-image-modal-frame > img {
    max-height: calc(72vh - 20px);
  }

  .product-image-modal-close {
    top: 8px;
    right: 8px;
  }

  .product-image-modal-arrow {
    width: 42px;
    height: 42px;
  }

  .product-image-modal-arrow-left {
    left: 16px;
  }

  .product-image-modal-arrow-right {
    right: 16px;
  }
}

.product-gallery-arrow {
  position: absolute;
  z-index: 1;
  top: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  transform: translateY(-50%);
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 47, 104, 0.72);
  box-shadow: 0 8px 24px rgba(0, 47, 104, 0.2);
  cursor: pointer;
}

.product-gallery-arrow:hover,
.product-gallery-arrow:focus-visible {
  background: var(--shop-blue);
}

.product-gallery-arrow.is-previous {
  left: 1rem;
}

.product-gallery-arrow.is-next {
  right: 1rem;
}

.product-gallery-thumbnails {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.15rem;
}

.product-gallery-thumbnail {
  width: 88px;
  height: 72px;
  flex: 0 0 88px;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--shop-soft);
  cursor: pointer;
}

.product-gallery-thumbnail[aria-current="true"] {
  border-color: var(--shop-blue);
  box-shadow: 0 0 0 2px rgba(0, 78, 162, 0.14);
}

.product-gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-info {
  padding: 1rem 0.75rem 1rem 0;
}

.product-detail-category {
  display: inline-flex;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #e7efff;
  color: var(--shop-primary);
  font: 700 0.7rem/0.95rem Inter, sans-serif;
}

.product-detail-title {
  margin: 0.8rem 0 0.45rem;
  color: var(--shop-ink);
  font: 800 clamp(2rem, 4vw, 3.4rem)/1.02 Manrope, sans-serif;
  letter-spacing: -0.04em;
}

.product-detail-code {
  margin: 0 0 1.2rem;
  color: #777e88;
  font: 600 0.78rem/1.1rem ui-monospace, SFMono-Regular, Consolas, monospace;
}

.product-detail-description {
  margin: 0 0 1.4rem;
  color: var(--shop-muted);
  font: 400 0.95rem/1.7 Inter, sans-serif;
}

.product-option {
  margin: 1rem 0;
}

.product-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 0.8rem;
  margin: 1rem 0;
}

.product-options-grid .product-option {
  min-width: 0;
  margin: 0;
}

.product-options-grid.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.product-standard-measure,
.product-fixed-quantity {
  margin: 0.85rem 0 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--shop-border);
  border-radius: 0.75rem;
  background: var(--shop-soft);
  color: var(--shop-muted);
  font-size: 0.92rem;
}

.product-standard-measure strong,
.product-fixed-quantity strong {
  color: var(--shop-ink);
}

.product-options-grid.has-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-option label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--shop-ink);
  font: 700 0.78rem/1.1rem Inter, sans-serif;
}

.product-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.product-color-swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--shop-line);
  border-radius: 10px;
  background: var(--shop-white);
  color: var(--shop-ink);
  font: 600 0.86rem/1.1rem Inter, sans-serif;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.product-color-swatch:hover,
.product-color-swatch.is-selected {
  border-color: var(--shop-primary);
  background: #f1f7ff;
  box-shadow: 0 0 0 3px rgba(0, 63, 135, 0.1);
}

.product-color-dot {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 1.25rem;
  border-radius: 50%;
  background: var(--swatch-color, #64748b);
  border: 1px solid rgba(15, 23, 42, 0.22);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.product-color-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Ölçü + gövde rengi aynı sırada, kartuş/mürekkep rengi alt satırda görünür. */
.product-options-grid:has(.product-option-cartridge) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-options-grid .product-option-cartridge {
  grid-column: 1 / -1;
}

/* Ölçü tek başına üst sırada; gövde renkleri kendi satırında yatay dizilir. */
.product-options-grid.has-body-color .product-option-measure,
.product-options-grid.has-body-color .product-option-body-color {
  grid-column: 1 / -1;
}

.product-options-grid.has-body-color .product-option-body-color .product-color-swatches {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

/* Sınıf JavaScript'ten geç gelse bile düzen bozulmasın: ölçü üstte,
   gövde rengi yatay; kartuş/mürekkep seçimi en alta taşınır. */
.product-options-grid:has(.product-option-body-color) .product-option-measure,
.product-options-grid:has(.product-option-body-color) .product-option-body-color {
  grid-column: 1 / -1;
}

.product-options-grid:has(.product-option-body-color) .product-option-body-color .product-color-swatches {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

.product-color-swatch:disabled,
.product-color-swatch.is-sold-out {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
}

.product-color-swatch:disabled:hover,
.product-color-swatch.is-sold-out:hover {
  border-color: var(--shop-line);
  background: var(--shop-white);
}

.product-dimension-panel,
.product-order-extras {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--shop-line);
  border-radius: 14px;
  background: #fff;
}

.product-dimension-panel[hidden] {
  display: none;
}

.product-dimension-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  color: var(--shop-ink);
  font: 700 0.8rem/1.2rem Inter, sans-serif;
}

.product-dimension-heading span {
  color: var(--shop-muted);
  text-align: right;
  font-size: 0.7rem;
  font-weight: 500;
}

.product-dimension-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.product-dimension-grid label,
.product-order-note {
  display: grid;
  gap: 0.4rem;
  color: var(--shop-ink);
  font: 700 0.75rem/1rem Inter, sans-serif;
}

.product-dimension-grid .shop-input,
.product-order-note .shop-input {
  padding-left: 0.9rem !important;
}

.product-area-summary {
  margin: 0.65rem 0 0;
  color: var(--shop-primary);
  font: 700 0.76rem/1.2rem Inter, sans-serif;
}

.product-area-summary.is-error,
.product-upload-feedback.is-error {
  color: #b42318;
}

.product-order-extras {
  display: grid;
  gap: 0.9rem;
  background: var(--shop-soft);
}

.product-order-note textarea {
  min-height: 78px;
  resize: vertical;
}

.product-upload-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem 0.8rem;
  align-items: center;
  padding-top: 0.9rem;
  border-top: 1px solid var(--shop-line);
}

.product-upload-copy {
  display: grid;
  gap: 0.2rem;
  color: var(--shop-ink);
  font: 700 0.78rem/1.1rem Inter, sans-serif;
}

.product-upload-copy span {
  color: var(--shop-muted);
  font-size: 0.68rem;
  font-weight: 500;
}

.product-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.product-file-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--shop-primary);
  border-radius: 9px;
  color: var(--shop-primary);
  background: #fff;
  cursor: pointer;
  font: 750 0.75rem/1rem Inter, sans-serif;
}

.product-file-button:hover,
.product-file-input:focus-visible + .product-upload-feedback + .product-file-button {
  color: #fff;
  background: var(--shop-primary);
}

.product-file-button .material-symbols-outlined {
  font-size: 1.15rem;
}

.product-upload-feedback {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--shop-muted);
  font: 500 0.68rem/1.15rem Inter, sans-serif;
}

.product-upload-feedback.is-success {
  color: #087443;
  font-weight: 650;
}

.product-upload-feedback a {
  color: var(--shop-primary);
  font-weight: 700;
}

.product-buy-panel {
  margin-top: 1.4rem;
  padding: 1.2rem;
  border: 1px solid var(--shop-line);
  border-radius: 14px;
  background: var(--shop-soft);
}

.product-buy-price {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--shop-primary);
  font: 800 1.45rem/1.5rem Manrope, sans-serif;
}

.product-buy-price + .product-net-price {
  margin: -0.55rem 0 0.9rem;
  font-size: 0.75rem;
}

.product-buy-actions {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 0.7rem;
}

.product-buy-actions .shop-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.shop-quantity {
  padding: 0.75rem;
  text-align: center;
}

.related-products {
  padding: 3.2rem 0 0;
}

.related-products h2,
.cart-title {
  margin: 0 0 1.2rem;
  color: var(--shop-ink);
  font: 800 1.8rem/2rem Manrope, sans-serif;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 1.25rem;
  padding-bottom: 5rem;
}

.cart-items,
.cart-summary {
  border: 1px solid var(--shop-line);
  border-radius: 18px;
  background: #fff;
}

.cart-items {
  overflow: hidden;
}

.cart-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--shop-line);
}

.cart-item:last-child {
  border-bottom: 0;
}

.cart-item img {
  width: 112px;
  height: 90px;
  border-radius: 10px;
  object-fit: cover;
}

.cart-item h3 {
  margin: 0 0 0.3rem;
  color: var(--shop-ink);
  font: 750 1rem/1.25rem Manrope, sans-serif;
}

.cart-item p {
  margin: 0.18rem 0;
  color: var(--shop-muted);
  font: 400 0.76rem/1.2rem Inter, sans-serif;
}

.cart-item .cart-item-price {
  margin-top: 0.55rem;
  color: var(--shop-primary);
  font-weight: 750;
}

.cart-item-file {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: #087443 !important;
  font-weight: 650 !important;
}

.cart-item-file .material-symbols-outlined {
  font-size: 1rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.cart-qty-button,
.cart-remove {
  border: 1px solid var(--shop-line);
  background: #fff;
  color: var(--shop-ink);
  cursor: pointer;
}

.cart-qty-button {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.cart-remove {
  align-self: start;
  padding: 0.45rem;
  border-radius: 8px;
}

.cart-remove:hover {
  border-color: #c62828;
  color: #c62828;
}

.cart-summary {
  position: sticky;
  top: 104px;
  height: fit-content;
  padding: 1.3rem;
}

.cart-summary h2 {
  margin: 0 0 0.5rem;
  color: var(--shop-ink);
  font: 800 1.3rem/1.5rem Manrope, sans-serif;
}

.cart-summary-note {
  margin: 0 0 1rem;
  color: var(--shop-muted);
  font: 400 0.8rem/1.45 Inter, sans-serif;
}

.cart-total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 0.75rem;
  align-items: baseline;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--shop-line);
  border-radius: 12px;
  background: var(--shop-soft);
  color: var(--shop-ink);
  font: 600 0.78rem/1.2rem Inter, sans-serif;
}

.cart-total strong {
  color: var(--shop-primary);
  text-align: right;
  font: 800 0.92rem/1.2rem Manrope, sans-serif;
}

.cart-total small {
  grid-column: 1 / -1;
  color: var(--shop-muted);
  font-weight: 500;
}

.cart-form {
  display: grid;
  gap: 0.75rem;
}

.cart-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--shop-ink);
  font: 700 0.75rem/1rem Inter, sans-serif;
}

.field-optional {
  color: var(--shop-muted);
  font-weight: 500;
}

.cart-form textarea {
  min-height: 92px;
  resize: vertical;
  padding: 0.8rem 0.9rem;
}

.cart-form .shop-input {
  padding-left: 0.9rem !important;
}

.cart-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 0.35rem;
}

.checkout-feedback {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(198, 40, 40, 0.22);
  border-radius: 9px;
  color: #a01818;
  background: #fff4f4;
  font: 600 0.76rem/1.3rem Inter, sans-serif;
}

.checkout-security-note {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0.15rem 0 0;
  color: var(--shop-muted);
  font: 500 0.7rem/1.15rem Inter, sans-serif;
}

.checkout-security-note .material-symbols-outlined {
  color: var(--shop-primary);
  font-size: 1rem;
}

.shop-toast {
  position: fixed;
  z-index: 220;
  right: 1.2rem;
  bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: min(360px, calc(100vw - 2rem));
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: #132238;
  color: #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  font: 600 0.82rem/1.25rem Inter, sans-serif;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.shop-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.shop-toast .material-symbols-outlined {
  color: #58d68d;
}

.header-cart-link {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #dfe4eb;
  border-radius: 9px;
  color: var(--shop-primary);
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.header-cart-link:hover {
  border-color: var(--shop-primary);
  background: #f4f7fb;
}

.header-cart-link .material-symbols-outlined {
  font-size: 1.3rem;
}

.header-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #d62d20;
  color: #fff;
  font: 800 0.62rem/1 Inter, sans-serif;
}

.product-information {
  margin-top: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--shop-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(0, 47, 104, 0.08);
}

.product-information-tabs {
  padding: 0 1.4rem;
  border-bottom: 1px solid var(--shop-line);
  background: #f6f9fc;
}

.product-information-tab {
  margin-bottom: -1px;
  padding: 1rem 0.35rem 0.9rem;
  border: 0;
  border-bottom: 3px solid var(--shop-blue);
  color: var(--shop-primary);
  background: transparent;
  font: 800 0.82rem/1rem Manrope, sans-serif;
  letter-spacing: 0.08em;
}

.product-information-panel {
  padding: 1.8rem;
}

.product-information-panel > h2 {
  margin: 0;
  color: var(--shop-text);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.2;
}

.product-information-intro {
  max-width: 920px;
  margin: 0.75rem 0 0;
  color: var(--shop-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.product-information-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.35rem 0;
}

.product-information-summary > div {
  min-width: 0;
  padding: 1rem;
  border: 1px solid #dce6f0;
  border-radius: 12px;
  background: #f7faff;
}

.product-information-summary dt {
  margin: 0 0 0.35rem;
  color: var(--shop-primary);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-information-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--shop-text);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.55;
}

.product-information-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.product-information-section {
  padding: 1.2rem;
  border: 1px solid #e1e8f0;
  border-radius: 14px;
  background: #fff;
}

.product-information-section h3 {
  margin: 0 0 0.8rem;
  color: var(--shop-text);
  font-size: 1rem;
}

.product-information-section ul {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding-left: 1.15rem;
  color: var(--shop-muted);
}

.product-information-section li {
  padding-left: 0.2rem;
  line-height: 1.6;
}

.product-information-section li::marker {
  color: var(--shop-blue);
}

.product-information-note {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding: 1rem;
  border-radius: 12px;
  background: #eef5ff;
  color: #254461;
  font-size: 0.9rem;
  line-height: 1.6;
}

.product-information-note .material-symbols-outlined {
  flex: 0 0 auto;
  color: var(--shop-primary);
  font-size: 1.25rem;
}

@media (max-width: 850px) {
  .product-information-summary,
  .product-information-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .product-information {
    border-radius: 14px;
  }

  .product-information-tabs {
    padding: 0 1rem;
  }

  .product-information-panel {
    padding: 1.1rem;
  }
}

@media (max-width: 560px) {
  .product-options-grid {
    grid-template-columns: 1fr;
  }

  .product-options-grid.has-three {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .header-cart-link {
    display: inline-flex;
  }
}

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

@media (max-width: 850px) {
  .catalog-slide {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  }

  .catalog-slide-content {
    padding: 3rem 1.5rem 3.8rem 3rem;
  }

  .catalog-slider-previous {
    left: 1.7rem;
  }

  .catalog-slider-next {
    right: 1.7rem;
  }

  .shop-toolbar {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .shop-toolbar .shop-field:first-child {
    grid-column: 1 / -1;
  }

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

  .product-detail,
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .product-gallery-main {
    min-height: 390px;
  }

  .product-detail-info {
    padding: 0.5rem;
  }

  .cart-summary {
    position: static;
  }
}

@media (max-width: 560px) {
  .shop-main {
    padding-top: 72px;
  }

  .catalog-slider {
    width: min(100% - 1rem, 1240px);
    padding-top: 1rem;
    padding-bottom: 1.5rem;
  }

  .catalog-slides,
  .catalog-slide {
    height: 500px;
    min-height: 0;
  }

  .catalog-slide {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) 190px;
  }

  .catalog-slide-content {
    padding: 2.5rem 1.4rem 1.1rem;
  }

  .catalog-slide h1,
  .catalog-slide h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .catalog-slide p {
    margin: 0.8rem 0 1.15rem;
    font-size: 0.88rem;
  }

  .catalog-slide-visual {
    min-height: 190px;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
  }

  .catalog-slider-arrow {
    top: auto;
    bottom: 2.35rem;
    width: 38px;
    height: 38px;
    transform: none;
  }

  .catalog-slider-arrow:hover {
    transform: scale(1.05);
  }

  .catalog-slider-previous {
    left: 1rem;
  }

  .catalog-slider-next {
    right: 1rem;
  }

  .catalog-slider-dots {
    bottom: 2.95rem;
  }

  .shop-hero {
    padding: 2.7rem 0 1.7rem;
  }

  .shop-toolbar {
    grid-template-columns: 1fr;
  }

  .shop-toolbar .shop-field:first-child {
    grid-column: auto;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    display: flex;
    flex-direction: column;
  }

  .product-card-image-link {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    background: #f4f7fb;
  }

  .product-card-image {
    padding: 0.5rem;
    object-fit: contain;
    object-position: center;
  }

  .product-card:hover .product-card-image {
    transform: none;
  }

  .product-card-body {
    padding: 0.85rem;
  }

  .product-actions {
    grid-template-columns: 1fr;
  }

  .product-description {
    min-height: 3.5rem;
    -webkit-line-clamp: 3;
  }

  .product-detail {
    padding: 0.75rem;
    gap: 1.2rem;
  }

  .product-gallery-main {
    min-height: 0;
    aspect-ratio: 4 / 3;
    background: #f4f7fb;
  }

  .product-gallery-main > img {
    padding: 0.5rem;
    object-fit: contain;
    object-position: center;
  }

  .product-gallery-thumbnail img {
    object-fit: contain;
  }

  .product-buy-actions {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .product-dimension-heading,
  .product-upload-panel {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .product-dimension-heading {
    display: grid;
  }

  .product-dimension-heading span {
    text-align: left;
  }

  .product-upload-feedback {
    grid-column: 1;
  }

  .cart-item {
    grid-template-columns: 82px minmax(0, 1fr) auto;
    gap: 0.7rem;
  }

  .cart-item img {
    width: 82px;
    height: 74px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-slide,
  .catalog-slide-visual img {
    transition: none;
  }
}
