/* Printopya brand navigation, language controls, and footer */
.pp-language-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.pp-language-switch a {
  color: inherit;
  opacity: .72;
  text-decoration: none;
  transition: opacity .2s ease, color .2s ease;
}
.pp-language-switch a:hover,
.pp-language-switch a.is-active { opacity: 1; }
.pp-language-switch a.is-active { text-decoration: underline; text-underline-offset: 4px; }
.pp-language-switch--top { justify-content: flex-end; color: #fff; }
.pp-language-switch--top > span { color: rgba(255,255,255,.55); }

.pp-brand-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px clamp(16px, 3vw, 42px);
  width: 100%;
  min-height: 76px;
  padding: 10px 0;
  overflow: visible;
  box-sizing: border-box;
}
.pp-brand {
  display: inline-flex;
  flex: 0 1 auto;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-decoration: none !important;
  transition: opacity .18s ease, transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.pp-brand:hover { opacity: .78; transform: translateY(-1px); }
.pp-brand.is-current { background: #f1f3fa; border-color: #dfe4f2; box-shadow: 0 2px 8px rgba(32,47,99,.08); }
.pp-brand img { display: block; width: 140px; max-width: 100%; height: auto; max-height: 52px; object-fit: contain; }
.pp-brand--turkiye img { width: 150px; max-width: 100%; max-height: 59px; }
.pp-brand--blog { gap: 0; }
.pp-brand--blog img { width: 134px; max-width: 134px; }
.pp-brand-blog-script {
  margin-left: 0;
  color: #202f63;
  font-family: 'Caveat', 'Segoe Script', cursive;
  font-size: 30px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-4px) rotate(-7deg);
}

.printopya-footer {
  padding: 46px 0 22px;
  background: #202f63;
  color: #fff;
}
.printopya-footer .pp-footer-grid { row-gap: 30px; }
.printopya-footer .pp-footer-column h3 {
  margin: 0 0 18px;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1.4;
  text-transform: uppercase;
}
.pp-footer-links { margin: 0; padding: 0; list-style: none; }
.pp-footer-links li { margin: 0 0 10px; color: rgba(255,255,255,.82); font-size: 13px; line-height: 1.5; }
.pp-footer-links a { color: rgba(255,255,255,.82); text-decoration: none; transition: color .2s ease; }
.pp-footer-links a:hover { color: #ff4c9a; }
.pp-store-badges { display: grid; gap: 9px; max-width: 205px; }
.pp-store-badge {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 56px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: #fff;
}
.pp-store-badge > span:last-child { display: flex; flex-direction: column; line-height: 1.15; }
.pp-store-badge small { margin-bottom: 4px; color: rgba(255,255,255,.7); font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }
.pp-store-badge strong { color: #fff; font-size: 15px; font-weight: 600; }
.pp-store-icon { display: block; flex: 0 0 27px; width: 27px; height: 27px; }
.pp-play-icon { fill: #fff; }
.pp-apple-icon { fill: #fff; }
.pp-gallery-icon { fill: #ff4c74; color: #ff4c74; }
.pp-etbis-column { text-align: center; }
.pp-etbis-badge { display: inline-flex; justify-content: center; padding: 7px; border-radius: 6px; background: #fff; }
.pp-etbis-badge #ETBIS img { display: block; width: 100px !important; height: 120px !important; }
.pp-etbis-code { margin: 8px 0 0; color: rgba(255,255,255,.86); font-size: 12px; font-weight: 600; }
.printopya-footer hr { margin: 32px 0 20px; border-color: rgba(255,255,255,.2); }
.pp-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-right: 56px; }
.pp-footer-copyright { margin: 0; color: rgba(255,255,255,.85); font-size: 13px; }
.pp-footer-social { margin: 0; }
.pp-footer-social ul { display: flex; align-items: center; gap: 15px; margin: 0; padding: 0; list-style: none; }
.pp-footer-social li { margin: 0; padding: 0; }
.pp-footer-social a { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; }
.pp-footer-social img { display: block; width: 22px; height: 22px; filter: none; border-radius: 4px; transition: opacity .2s ease; }
.pp-footer-social a:hover img { opacity: .72; }
.pp-language-switch--footer { color: #fff; }

@media (max-width: 991px) {
  .pp-brand-switcher { justify-content: center; gap: 6px 18px; min-height: 68px; }
  .pp-footer-etbis-column { text-align: left; }
  .pp-etbis-column { text-align: left; }
}
@media (max-width: 767px) {
  .printopya-footer { padding: 34px 0 18px; }
  .printopya-footer .pp-footer-grid { row-gap: 24px; }
  .printopya-footer .pp-footer-column h3 { margin-bottom: 12px; }
  .pp-store-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  .pp-store-badge { gap: 8px; padding: 7px 9px; }
  .pp-store-badge strong { font-size: 13px; }
  .pp-footer-bottom { flex-wrap: wrap; justify-content: flex-start; gap: 14px 22px; }
  .pp-footer-social { order: 2; }
  .pp-language-switch--footer { order: 1; }
  .pp-footer-bottom { padding-right: 0; }
}
@media (max-width: 420px) {
  .pp-brand-switcher { gap: 4px 8px; min-height: 61px; padding: 7px 0; }
  .pp-brand { padding: 4px 5px; }
  .pp-brand img { width: 112px; max-width: 112px; max-height: 43px; }
  .pp-brand--turkiye img { width: 126px; max-width: 126px; max-height: 50px; }
  .pp-brand--blog img { width: 108px; max-width: 108px; }
  .pp-brand-blog-script { margin-left: 0; font-size: 26px; }
  .pp-store-badges { grid-template-columns: 1fr; }
}

/* Compact brand selector with a route-aware active state and a matching hero transition. */
.pp-header-top-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}
.pp-header-prices {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  transition: opacity .2s ease;
}
.pp-header-prices:hover { color: #fff; opacity: .78; }

.pp-brand-switcher {
  min-height: 74px;
  padding: 7px 0;
  gap: 6px clamp(14px, 2.4vw, 32px);
}
.pp-brand {
  min-height: 58px;
  padding: 4px 10px;
  border-radius: 11px;
  scroll-snap-align: center;
}
.pp-brand:not(.is-current) { opacity: .78; }
.pp-brand.is-current {
  background: #eeebff;
  border-color: #d8d1ff;
  box-shadow: 0 4px 14px rgba(41, 59, 121, .14), inset 0 0 0 1px rgba(255, 255, 255, .68);
}
.pp-brand.is-current img {
  filter: brightness(0) saturate(100%) invert(19%) sepia(27%) saturate(1750%) hue-rotate(196deg) brightness(91%) contrast(94%);
}
.pp-brand img { width: 128px; max-height: 47px; }
.pp-brand--turkiye img { width: 136px; max-height: 50px; }
.pp-brand--blog img { width: 122px; max-width: 122px; }
.pp-brand-blog-script { font-size: 28px; }

#hero_video .opacity-mask {
  background: linear-gradient(180deg,
    rgba(238, 235, 255, .88) 0%,
    rgba(194, 191, 231, .72) 8%,
    rgba(41, 59, 121, .58) 20%,
    rgba(0, 0, 0, .5) 38%,
    rgba(0, 0, 0, .5) 100%) !important;
}

@media (min-width: 1200px) {
  .main_header > .container { position: relative; }
  .main_header > .container > .row > div:last-child { position: static; }
  .main_header > .container > .row .top_tools {
    position: absolute;
    top: 9px;
    right: 0;
    z-index: 5;
  }
}

@media (max-width: 767px) {
  .pp-header-top-actions { gap: 10px; }
  .pp-header-prices { font-size: 11px; }
  .pp-brand-switcher {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 7px 8px;
    gap: 6px 12px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .pp-brand-switcher::-webkit-scrollbar { display: none; }
  .pp-brand { flex: 0 0 auto; }
}

@media (max-width: 420px) {
  .pp-brand-switcher { min-height: 58px; gap: 4px 8px; }
  .pp-brand { min-height: 50px; padding: 3px 6px; }
  .pp-brand img { width: 102px; max-width: 102px; max-height: 39px; }
  .pp-brand--turkiye img { width: 114px; max-width: 114px; max-height: 44px; }
  .pp-brand--blog img { width: 98px; max-width: 98px; }
  .pp-brand-blog-script { font-size: 24px; }
}

@media (max-width: 767px) {
  html[lang="en"] .table.cart-list td:nth-of-type(1)::before { content: "DOCUMENT"; }
  html[lang="en"] .table.cart-list td:nth-of-type(2)::before { content: "COLOR"; }
  html[lang="en"] .table.cart-list td:nth-of-type(3)::before { content: "SIZE"; }
  html[lang="en"] .table.cart-list td:nth-of-type(4)::before { content: "PRINT SIDES"; }
  html[lang="en"] .table.cart-list td:nth-of-type(5)::before { content: "FINISHING"; }
  html[lang="en"] .table.cart-list td:nth-of-type(6)::before { content: "LAYOUT"; }
  html[lang="en"] .table.cart-list td:nth-of-type(7)::before { content: "COPIES"; }
  html[lang="en"] .table.cart-list td:nth-of-type(8)::before { content: "PRICE"; }
}

/* Mobile header, calculator and Pro quote dialog adjustments. */

@media (max-width: 991px) {
  header.version_2 .main_header > .container {
    position: relative;
  }

  header.version_2 .main_header > .container > .row.small-gutters {
    position: absolute !important;
    top: 50%;
    right: 0;
    display: block;
    width: auto;
    margin: 0 !important;
    transform: translateY(-50%);
    z-index: 6;
  }

  header.version_2 .main_header > .container > .row.small-gutters > div {
    width: auto;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
  }

  header.version_2 .main_header ul.top_tools {
    position: static !important;
    top: auto !important;
    right: auto !important;
    display: flex;
    float: none;
    align-items: center;
    gap: 4px;
    width: auto;
    margin: 0;
    padding: 0;
  }

  header.version_2 .main_header ul.top_tools > li {
    float: none;
    margin: 0 !important;
  }

  header.version_2 .main_header ul.top_tools > li > .dropdown-cart > a.cart_bt,
  header.version_2 .main_header ul.top_tools > li > .dropdown-access > a.access_link {
    display: flex;
    width: 44px !important;
    min-width: 44px;
    height: 44px !important;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 9px;
    line-height: 1 !important;
    touch-action: manipulation;
  }

  header.version_2 .main_header ul.top_tools > li > .dropdown-cart > a.cart_bt:focus-visible,
  header.version_2 .main_header ul.top_tools > li > .dropdown-access > a.access_link:focus-visible {
    outline: 3px solid #ed185f;
    outline-offset: 2px;
  }

  header.version_2 .main_header ul.top_tools > li > .dropdown-cart > a.cart_bt strong {
    top: 1px;
    right: 0;
    bottom: auto !important;
    pointer-events: none;
  }

  .pp-brand-switcher {
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    min-height: 64px !important;
    overflow: visible !important;
    padding: 0 100px 0 0 !important;
  }

  .pp-brand-switcher > .pp-brand:not(.pp-brand--turkiye) {
    display: none !important;
  }

  .pp-brand-switcher > .pp-brand--turkiye {
    flex: 0 0 auto;
  }

  .pp-mobile-menu {
    position: relative;
    display: block;
    flex: 0 0 44px;
    order: -1;
  }

  .pp-mobile-menu > summary {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e6f0;
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
    list-style: none;
    touch-action: manipulation;
  }

  .pp-mobile-menu > summary::-webkit-details-marker {
    display: none;
  }

  .pp-mobile-menu > summary::marker {
    content: "";
  }

  .pp-mobile-menu > summary:focus-visible {
    outline: 3px solid #ed185f;
    outline-offset: 2px;
  }

  .pp-mobile-menu-icon {
    display: grid;
    width: 19px;
    gap: 4px;
  }

  .pp-mobile-menu-icon i {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: #202f63;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .pp-mobile-menu[open] .pp-mobile-menu-icon i:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .pp-mobile-menu[open] .pp-mobile-menu-icon i:nth-child(2) {
    opacity: 0;
  }

  .pp-mobile-menu[open] .pp-mobile-menu-icon i:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }

  .pp-mobile-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 100010;
    display: none;
    width: min(320px, calc(100vw - 24px));
    margin: 0;
    padding: 9px;
    border: 1px solid #e2e6f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(32, 47, 99, 0.18);
    list-style: none;
  }

  .pp-mobile-menu[open] .pp-mobile-menu-panel {
    display: block;
  }

  .pp-mobile-menu-panel > li > a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 0 13px;
    border-radius: 8px;
    color: #202f63;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
  }

  .pp-mobile-menu-panel > li > a:hover,
  .pp-mobile-menu-panel > li > a:focus-visible,
  .pp-mobile-menu-panel > li > a[aria-current="page"] {
    background: #f1f3fa;
    color: #202f63;
  }

  .pp-mobile-menu-language {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 8px 8px 0;
    border-top: 1px solid #e9ecf3;
    color: #68769c;
    font-size: 12px;
    font-weight: 700;
  }

  .pp-mobile-menu-language > span {
    flex: 1 1 auto;
  }

  .pp-mobile-menu-language > a {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #202f63;
    text-decoration: none;
  }

  .pp-mobile-menu-language > a.is-active {
    background: #f1f3fa;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

@media (min-width: 992px) {
  .pp-mobile-menu {
    display: none;
  }
}

@media (max-width: 767px) {
  #price-calculator .pc-scroll {
    overflow: visible !important;
    padding-bottom: 0;
  }

  #price-calculator .pc-columns {
    display: none !important;
  }

  #price-calculator .pc-rows {
    display: grid;
    gap: 10px;
  }

  #price-calculator .pc-row {
    display: grid;
    width: 100%;
    min-width: 0 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: end;
    gap: 10px;
    margin: 0;
    padding: 12px;
    box-sizing: border-box;
    background: #f5f6fa;
    border-radius: 9px;
  }

  #price-calculator .pc-row .pc-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
  }

  #price-calculator .pc-row .pc-field label {
    display: block !important;
    margin: 0;
    color: #5d6783;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
  }

  #price-calculator .pc-row .pc-control {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 8px;
    font-size: 13px;
    box-sizing: border-box;
  }

  #price-calculator .pc-row .pc-line-price {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: flex-start;
    padding: 0 9px;
    border-radius: 6px;
    background: #fff;
    text-align: left;
  }

  #price-calculator .pc-row > div:last-child {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  #price-calculator .pc-row .pc-remove {
    width: 44px;
    height: 44px;
  }

  #price-calculator .pc-add {
    min-height: 44px;
  }

  #price-calculator .pc-add-mark {
    width: 44px;
    height: 44px;
  }

  #price-calculator .pc-total {
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

@media (max-width: 360px) {
  #price-calculator .pc-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #price-calculator .pc-row .pc-line-price,
  #price-calculator .pc-row > div:last-child {
    grid-column: 1 / -1;
  }
}

/* The quote layer can receive an inline bottom margin from the global modal
   helper; neutralize it so the fixed overlay continues to cover the viewport. */
html body #teklif-formu {
  margin-bottom: 0 !important;
  box-sizing: border-box;
}

html body #teklif-formu .pro-modal-panel {
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (max-height: 700px) and (min-width: 768px) {
  html body #teklif-formu {
    align-items: flex-start;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  html body #teklif-formu .pro-modal-panel {
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: 0 auto;
  }
}