

/*
Theme Name: Absoft
Author: Andrej Burmek
Author URI: www.firmaWeb.sk
Description: Špecifická téma o dodavani plotov a brán.
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}







.absoft-homepage {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 80px 20px 50px;

  background:
    radial-gradient(circle at top left, rgba(0, 191, 255, 0.35), transparent 30%),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.35), transparent 35%),
    radial-gradient(circle at bottom, rgba(59, 130, 246, 0.25), transparent 40%),
    linear-gradient(135deg, #021024 0%, #03203d 35%, #0b3b82 70%, #2563eb 100%);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
}

.absoft-homepage::before {
  content: "";
  position: absolute;

  width: 700px;
  height: 700px;

  background: rgba(0, 191, 255, 0.16);

  border-radius: 50%;

  filter: blur(120px);

  top: -220px;
  left: -180px;

  animation: absoftFloat 8s ease-in-out infinite;
}

.absoft-homepage::after {
  content: "";
  position: absolute;

  width: 600px;
  height: 600px;

  background: rgba(37, 99, 235, 0.18);

  border-radius: 50%;

  filter: blur(120px);

  bottom: -180px;
  right: -120px;

  animation: absoftFloat 10s ease-in-out infinite alternate;
}

.absoft-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.08),
      rgba(0,0,0,0.22)
    );

  z-index: 1;
}

.absoft-container {
  position: relative;
  z-index: 2;

  max-width: 980px;

  padding: 48px 34px;

  border-radius: 34px;

  background: rgba(255,255,255,0.08);

  border: 1px solid rgba(255,255,255,0.14);

  backdrop-filter: blur(18px);

  box-shadow:
    0 30px 90px rgba(0,0,0,0.28);
}

.absoft-badge {
  display: inline-block;

  padding: 10px 18px;

  border-radius: 999px;

  border: 1px solid rgba(255,255,255,0.18);

  background: rgba(255,255,255,0.08);

  color: #ffffff;

  font-size: 14px;

  margin-bottom: 24px;

  letter-spacing: 0.5px;
}

.absoft-title {
  font-size: clamp(32px, 5vw, 62px);

  line-height: 1.1;

  font-weight: 900;

  margin-bottom: 26px;

  color: #ffffff;

  text-shadow:
    0 8px 30px rgba(0,0,0,0.35);

  max-width: 920px;

  margin-left: auto;
  margin-right: auto;
}

.absoft-text {
  color: rgba(255,255,255,0.92);

  font-size: clamp(16px, 1.6vw, 20px);

  line-height: 1.8;

  max-width: 760px;

  margin: 0 auto 36px;

  text-shadow:
    0 4px 20px rgba(0,0,0,0.25);
}

.absoft-enter-btn {
  display: inline-block;

  text-decoration: none;

  border: none;

  cursor: pointer;

  padding: 18px 54px;

  border-radius: 999px;

  font-size: 20px;

  font-weight: 900;

  background:
    linear-gradient(135deg, #FFD700, #ffb300);

  color: #111827;

  box-shadow:
    0 18px 45px rgba(255, 208, 0, 0.45);

  transition: 0.3s ease;
}

.absoft-enter-btn:hover {
  transform:
    translateY(-4px)
    scale(1.03);

  box-shadow:
    0 28px 65px rgba(255, 208, 0, 0.55);
}

.absoft-image-wrap {
  position: relative;
  z-index: 2;

  width: min(380px, 85vw);

  margin-top: 40px;
}

.absoft-image {
  width: 100%;

  display: block;

  border-radius: 28px;

  object-fit: cover;

  box-shadow:
    0 30px 80px rgba(0,0,0,0.4);
}

@keyframes absoftFloat {

  0% {
    transform:
      translateY(0px)
      translateX(0px);
  }

  50% {
    transform:
      translateY(25px)
      translateX(18px);
  }

  100% {
    transform:
      translateY(0px)
      translateX(0px);
  }

}

@media (max-width: 768px) {

  .absoft-homepage {
    padding-top: 50px;
    padding-bottom: 40px;
  }

  .absoft-container {
    padding: 34px 22px;
    border-radius: 28px;
  }

  .absoft-title {
    font-size: 36px;
  }

  .absoft-text {
    font-size: 16px;
  }

  .absoft-enter-btn {
    width: 100%;
    max-width: 320px;
  }

  .absoft-image-wrap {
    width: 88vw;
  }

}

/********* DOPYTY */
.absoft-dopyty-page {
  min-height: 100vh;
  
  background: linear-gradient(135deg, #021024, #063b8a, #2563eb);
  color: white;
    padding: 60px 20px 60px;
}

.absoft-dopyty-header {
  max-width: 900px;
  margin: 0 auto 35px;
  text-align: center;
}

.absoft-dopyty-header h1 {
  font-size: clamp(34px, 5vw, 58px);
  margin-bottom: 12px;
}

.absoft-dopyty-header p {
  color: rgba(255,255,255,.85);
  font-size: 18px;
}

.absoft-dopyty-box {
  max-width: 1050px;
  margin: 0 auto;
  background: white;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
}

.absoft-dopyt-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid #e5e7eb;
  color: #111827;
}

.absoft-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.absoft-dopyt-text p {
  margin: 0 0 6px;
  font-size: 17px;
}

.absoft-dopyt-text span {
  font-size: 14px;
  color: #6b7280;
}

.absoft-dopyt-side {
  display: flex;
  align-items: center;
  gap: 10px;
}

.absoft-time {
  font-size: 14px;
  color: #9ca3af;
  min-width: 45px;
}

.absoft-call,
.absoft-recommend-btn {
  border: none;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  font-size: 14px;
}

.absoft-call {
  background: #2563eb;
  color: white;
}

.absoft-recommend-btn {
  background: #ffd700;
  color: #111827;
}

.absoft-empty {
  color: #111827;
  padding: 30px;
  text-align: center;
}

.absoft-write-bar {
  position: relative;
  margin: 35px auto 0;
  left: auto;
  bottom: auto;
  transform: none;

  width: min(900px, calc(100% - 30px));

  display: grid;
  grid-template-columns: 1fr 120px 140px;
  gap: 10px;

  background: white;
  padding: 14px;
  border-radius: 22px;

  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.absoft-write-bar input {
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 14px;
  font-size: 15px;
}

.absoft-gdpr {
  color: #111827;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.absoft-write-bar button {
  border: none;
  border-radius: 14px;
  padding: 14px 22px;
  background: #2563eb;
  color: white;
  font-weight: 900;
  cursor: pointer;
}

@media(max-width: 900px) {
  .absoft-write-bar {
    position: static;
    transform: none;
    margin: 30px auto 0;
    grid-template-columns: 1fr;
  }

  .absoft-dopyt-item {
    grid-template-columns: 46px 1fr;
  }

  .absoft-dopyt-side {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}
/********* Nové css dopyty */

.absoft-dopyty-box,
.absoft-write-bar {
  max-width: 760px;
}

.absoft-dopyt-item {
  grid-template-columns: 50px 1fr auto;
  border-radius: 24px;
}

.absoft-write-bar {
  grid-template-columns: 1fr 180px 140px;
}

.absoft-write-bar input {
  min-width: 0;
}

.absoft-call {
  display: none;
}

.absoft-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.absoft-modal.active {
  display: flex;
}

.absoft-modal-card {
  width: min(430px, 100%);
  background: #fff;
  color: #111827;
  border-radius: 24px;
  padding: 28px;
  position: relative;
  box-shadow: 0 30px 90px rgba(0,0,0,.35);
}

.absoft-modal-card h2 {
  margin-bottom: 12px;
}

.absoft-modal-card p {
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 18px;
}

.absoft-modal-card input {
  width: 100%;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
}

.absoft-modal-check {
  display: flex;
  gap: 8px;
  font-size: 14px;
  margin: 10px 0 18px;
}

.absoft-modal-card button:not(.absoft-modal-close) {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 15px;
  background: #2563eb;
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.absoft-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 30px;
  cursor: pointer;
}

@media(max-width: 800px) {
  .absoft-write-bar {
    grid-template-columns: 1fr;
    max-width: calc(100% - 30px);
  }

  .absoft-dopyty-box {
    max-width: calc(100% - 30px);
  }
}


/* Kolonka pridat dopyt */

.absoft-write-bar {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);

  width: min(900px, calc(100% - 30px));

  display: grid;

  grid-template-columns:
    1fr
    120px
    140px;

  gap: 10px;

  background: white;

  padding: 14px;

  border-radius: 22px;

  box-shadow:
    0 20px 60px rgba(0,0,0,.35);

  z-index: 20;
}

.absoft-write-bar input[name="text_dopytu"] {
  font-size: 16px;
  font-weight: 600;
}

.absoft-write-bar input[name="meno"] {
  max-width: 120px;
  text-align: center;
}

/*css modal odporúčam */

.absoft-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.absoft-modal.active {
  display: flex;
}

.absoft-modal-card {
  width: min(460px, 100%);
  background: white;
  color: #111827;
  border-radius: 24px;
  padding: 28px;
  position: relative;
  box-shadow: 0 30px 90px rgba(0,0,0,.35);
}

.absoft-modal-card h2 {
  margin-bottom: 12px;
}

.absoft-modal-info {
  font-size: 14px;
  line-height: 1.5;
  color: #4b5563;
  background: #f3f4f6;
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 16px;
}

.absoft-modal-card textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #d1d5db;
  font-size: 15px;
  margin-bottom: 12px;
}

.absoft-modal-send,
.absoft-whatsapp-btn {
  width: 100%;
  display: block;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 14px;
  padding: 15px;
  font-weight: 900;
  cursor: pointer;
}

.absoft-modal-send {
  background: #2563eb;
  color: white;
  margin-bottom: 10px;
}

.absoft-whatsapp-btn {
  background: #25D366;
  color: white;
}

.absoft-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 30px;
  cursor: pointer;
}

/* pridaj dopyt kolonka*/
.absoft-write-bar {
  position: relative !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;

  width: min(900px, calc(100% - 30px));
  max-width: 760px;

  margin: 35px auto 0 !important;

  display: grid;
  grid-template-columns: 1fr 120px 140px;
  gap: 10px;

  background: white;
  padding: 14px;
  border-radius: 22px;

  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  z-index: 5;
}

.absoft-dopyty-box {
  margin-bottom: 0 !important;
}

.absoft-dopyty-page {
  padding-bottom: 80px !important;
}

/* mobil */
@media(max-width: 800px) {
  .absoft-write-bar {
    grid-template-columns: 1fr;
  }

  .absoft-write-bar input[name="meno"] {
    max-width: 100%;
  }
}

/* Uprava gpr checkbox*/

.absoft-modal-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 20px;
  font-size: 14px;
  line-height: 1.4;
}

.absoft-modal-check input[type="checkbox"] {
  margin: 0;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.absoft-modal-check span {
  color: #374151;
}

.absoft-modal-check a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.absoft-modal-check a:hover {
  text-decoration: underline;
}
/**************** Tričko *****************/

.shirt-editor {
  max-width: 1300px;
  margin: 40px auto;
  font-family: Arial, sans-serif;
}

.editor-toolbar {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.editor-toolbar button {
  padding: 16px 28px;
  border: 2px solid #ff3f6c;
  border-radius: 14px;
  background: white;
  font-size: 16px;
  cursor: pointer;
}

.editor-main {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: start;
}

.shirt-preview {
  position: relative;
  min-height: 650px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

#shirtImage {
  max-width: 620px;
  width: 100%;
  user-select: none;
  pointer-events: none;
}

.print-area {
  position: absolute;
  top: 180px;
  width: 220px;
  height: 280px;
  border: 1px dashed rgba(0,0,0,0.25);
}

.print-item {
  position: absolute;
  left: 50px;
  top: 50px;
  max-width: 160px;
  cursor: move;
  user-select: none;
}

.print-text {
  font-size: 28px;
  font-weight: bold;
  color: #111;
}

.editor-options h3 {
  margin: 16px 0 10px;
}

.colors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
  gap: 12px;
  width: 100%;
}

.color {
  width: 100%;
  max-width: 58px;
  aspect-ratio: 1 / 1;
}

.color.active {
  border: 3px solid #ff3f6c;
}

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

.size {
  padding: 16px;
  background: white;
  border: 1px solid #ddd;
  font-size: 18px;
  cursor: pointer;
  border-radius: 8px;
}

.size.active {
  background: linear-gradient(135deg, #ff3f8e, #ff7043);
  color: white;
}

.buy-btn {
  width: 100%;
  margin-top: 30px;
  padding: 18px;
  background: #ef3b2d;
  color: white;
  border: 0;
  border-radius: 6px;
  font-size: 20px;
  cursor: pointer;
}


/*********** konfigurator myšou a v mobile, ťahanie textu a obrázku */

.print-item {
  position: absolute;
  cursor: move;
  user-select: none;
  touch-action: none;
}

.print-item.selected {
  outline: 2px dashed #ff3f6c;
  outline-offset: 4px;
}

.resize-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  right: -10px;
  bottom: -10px;
  background: #ff3f6c;
  border: 2px solid white;
  border-radius: 50%;
  cursor: nwse-resize;
  z-index: 9999;
}

/* */
.print-image-wrapper img {
  width: 100%;
  display: block;
  pointer-events: none;
}

.print-image-wrapper {
  position: absolute;
  max-width: none !important;
}

.print-image-wrapper img {
  width: 100%;
  max-width: none !important;
}

/* delete handle */

.delete-handle {
    position: absolute;
    top: -12px;
    left: -12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e53935;
    color: white;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
}
/* ohraničenie text img */

.print-area {
  overflow: hidden;
}

/* Fonty a farba */

.text-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.text-modal.active {
  display: flex;
}

.text-modal-box {
  background: #fff;
  width: 320px;
  padding: 22px;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.text-modal-box h3 {
  margin-bottom: 15px;
  font-size: 22px;
  color: #111;
}

.text-modal-box input,
.text-modal-box select {
  width: 100%;
  padding: 11px;
  margin-bottom: 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
}

.text-modal-box label {
  display: block;
  margin-bottom: 6px;
  color: #333;
  font-weight: 600;
}

.text-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.text-modal-actions button {
  flex: 1;
  padding: 11px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
}

#cancelTextBtn {
  background: #ddd;
  color: #111;
}

#confirmTextBtn {
  background: #ff3f6c;
  color: #fff;
}


  /*********** FIX TRIČKO + POTLAČOVÁ PLOCHA ***********/

.shirt-editor,
.shirt-editor * {
  box-sizing: border-box;
}

.shirt-preview {
  position: relative;
  width: 100%;
  min-height: 650px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;

  --shirt-width: min(620px, 90vw);
}

#shirtImage {
  width: var(--shirt-width);
  max-width: var(--shirt-width);
  user-select: none;
  pointer-events: none;
}

.print-area {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  top: calc(var(--shirt-width) * 0.29);
  width: calc(var(--shirt-width) * 0.36);
  height: calc(var(--shirt-width) * 0.45);

  border: 1px dashed rgba(0,0,0,0.28);
  overflow: hidden;
}

/* MOBIL */
@media (max-width: 900px) {

  .shirt-editor {
    width: 100%;
    margin: 20px auto;
    padding: 0 10px;
  }

  .editor-main {
    display: block;
  }

  .editor-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
  }

  .editor-toolbar button {
    width: 100%;
    padding: 14px 8px;
    font-size: 15px;
  }

  .editor-toolbar button:first-child {
    grid-column: 1 / -1;
    max-width: 260px;
    margin: 0 auto;
  }

  .shirt-preview {
    --shirt-width: min(380px, 94vw);
    height: calc(var(--shirt-width) * 1.25);
    min-height: calc(var(--shirt-width) * 1.25);
  }

  .editor-options {
    margin-top: 20px;
  }

  .colors {
    display: grid;
    grid-template-columns: repeat(5, 58px);
    gap: 14px;
  }

  .sizes {
    grid-template-columns: repeat(3, 1fr);
  }

  .buy-btn {
    font-size: 18px;
    padding: 16px;
    margin-bottom: 30px;
  }
  /* pohyb s prstom, obrázy a text na potlačovú plochu */
    .print-image-wrapper {
    max-width: 95% !important;
    min-width: 40px;
  }

  .resize-handle {
    width: 20px;
    height: 20px;
    right: 2px;
    bottom: 2px;
  }

  .delete-handle {
    width: 22px;
    height: 22px;
    top: 2px;
    left: 2px;
  }
  /* Bodka zmenšovania obrázka v pravo hore */
    .resize-handle {
    width: 24px;
    height: 24px;
    right: 4px;
    top: 4px;
    bottom: auto;
  }

  .delete-handle {
    width: 24px;
    height: 24px;
    left: 4px;
    top: 4px;
  }

  .print-image-wrapper {
    max-width: 96% !important;
  }
  /* body textu mimo ramika */
  .resize-handle {
    width: 24px;
    height: 24px;

    right: -12px;
    top: -12px;

    bottom: auto;
  }

  .delete-handle {
    width: 24px;
    height: 24px;

    left: -12px;
    top: -12px;
  }
  .print-item.selected {
  outline: 2px dashed #ff3f6c;
  outline-offset: 8px;
}
}

@media (max-width: 380px) {
  .shirt-editor {
    padding: 0 8px;
  }

  .colors {
    grid-template-columns: repeat(4, 1fr);
  }

  .color {
    max-width: 54px;
  }
}