body {
  
  font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
}

a {
  color: #00B7FF;
}

.bg-white {
  background-color: rgba(0, 0, 0, 1);
}

.carousel-text {
  font-size: 1.5rem;
  text-align: center;
  padding: 2rem;
  transition: transform 0.6s ease, opacity 0.6s ease;
  transform: scale(0.95);
  opacity: 0.6;
  border-radius: 12px;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

.carousel-item.active .carousel-text {
  transform: scale(1.05);
  opacity: 1;
}

body {
  background-image: url('/images/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background-color: transparent;
}
header h1 {
  color: #00d4ff;
  font-weight: 700;
}
nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #ccc;
  transition: color 0.3s;
}
nav a:hover {
  color: #00d4ff;
}
.hero {
  min-height: 800px;
  text-align: center;
  padding: 2rem 1rem;
}
.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero_button {
  background: #00d4ff;
  color: #000;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
}
.mockup {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}
.mockup img {
  max-width: 300px;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.2);
}
.settings {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.settings input, .settings button {
  padding: 0.5rem;
  border-radius: 6px;
  border: none;
}
.settings input {
  width: 250px;
}
.settings button {
  background: #00d4ff;
  color: #000;
  cursor: pointer;
}
.gallery {
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}
.gallery img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.navbar-nav .nav-link {
  border: 2px solid transparent;
  border-color: #00b7ff00;
  border-radius: 8px;
  display: inline-block;
  min-width: 100px; /* фикс ширина */
  text-align: center;
  transition: all 0.2s ease-in-out;
  padding: 0.4rem 1rem;
  font-weight: 500;
}
.navbar-nav .nav-link:hover {
  border-color: #00B7FF;
  transition: all 0.3s ease;
  color: #6366F1;
  transform: scale(1.05);
  text-decoration: none;
}
.navbar-nav .nav-link:active {
  color: #10B981;
  transform: scale(0.98);
}

.page-panel {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 16px;
  /*padding: 2rem 2rem;*/
  padding-right: 15px;
  margin: 0rem auto;
  max-width: 960px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
}

.toast{
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1055;
}

.nav-button {
  border: 2px solid transparent;
  border-radius: 8px;
  color: #10B981;
  background-color: #027086;
  padding: 0.4rem 1rem;
  transition: all 0.3s ease;
  text-decoration: none; /* убираем подчёркивание */
}

.nav-button:hover {
  background-color: #00d4ff;
  color: #ffffff;
  transform: scale(1.2);
}

.hero-layer2{
  z-index: 4;
}

.hero-layer3{
  top: 200px;
  width: 200px;
  z-index: 4;
}

.hero-layer4{
  width: 100%;
  height: 600px;
  left: 0;
  top:50px;
  z-index: 3;
}

.hero-layer5{
  position: absolute;
  top: 0px;
  right: 0px;
  width: 230px;
  z-index: 4;
}

.page-panel-s {
  background: linear-gradient(0.45turn, #01d5ff2d, #ebf8e100, #01d5ff2d);
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid rgba(0, 247, 255, 0.164);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
}

.page-panel-l {
  background: linear-gradient(0.45turn, #013043b3, #000000b3, #013043b3);
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid rgba(0, 94, 97, 0.692);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
}

.merch-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.7rem;
}

.merch-icons i {
  display: inline-block;
  font-size: 2rem;          /* увеличиваем размер иконки */
  color: #ffffff;           /* елый цвет */
  transition: transform 0.3s ease, color 0.3s ease, border-color 0.3s ease;;
  cursor: pointer;
  padding: 5px;
  border: 1px solid #fff;
  border-radius: 50%;
}

.merch-icons i:hover {
  transform: scale(1.2)!important;;
  color: #00d4ff;
  border-color: #00d4ff;
}

.form-select {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  transition: border-color 0.2s ease;
  font-size: 0.8rem;
}

.form-select:focus {
  border-color: #00ccff;
  outline: none;
}

.settings-box select,
.settings-box input {

  padding: 0.4rem 0.75rem;
}

input.form-control,
textarea.form-control {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;

  font-size: 0.7rem;
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
}

input.form-control:focus,
textarea.form-control:focus {
  outline: none;
  border-color: #00e0ff;
  box-shadow: 0 0 0 2px rgba(0, 224, 255, 0.3);
  background-color: rgb(255, 255, 255);
}

input.form-control::placeholder,
textarea.form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}


.settings-box button {
  /*font-size: 0.95rem;*/
  padding: 0.4rem 1rem;
  border-radius: 8px;
}

.settings-box .form-select,
.settings-box input {
  margin-bottom: 0.75rem;
}

/* Custom select */
.custom-select-box {
  position: relative;
  width: 100%;
}

.custom-select-box-color {
  position: relative;
  width: 100%;
  text-align: left;
}

.custom-select-trigger {
  width: 100%;
  text-align: left;
  padding: 0.4rem 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 0.7rem;
  cursor: pointer;
}

.custom-select-options {
  display: none;
  position: absolute;
  width: 100%;
  background: #111111ee;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  list-style: none;
  padding: 0;
  margin: 4px 0 0 0;
  z-index: 9999;
  max-height: 200px;
  overflow-y: auto;
}

.custom-select-trigger-color {
  text-align: left;
  padding: 0.1rem 0.4rem;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
}

.custom-select-options-color {
  display: none;
  position: absolute;
  background: #111111ee;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  list-style: none;
  padding: 0;
  margin: 4px 0 0 0;
  z-index: 9999;
  max-height: 200px;
  overflow-y: auto;
}

.custom-select-box.open .custom-select-options {
  display: block;
}

.custom-select-options li {
  padding: 0.5rem 1rem;
  cursor: pointer;
  color: white;
  transition: background 0.2s;
}

.custom-select-options-color li {
  padding: 0.1rem 0.4rem;
  cursor: pointer;
  color: white;
  transition: background 0.2s;
}

.custom-select-options li:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #00d4ff;
}

.custom-select-options-color li:hover{
  background: rgba(255, 255, 255, 0.05);
  color: #00d4ff;
}


.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.70rem;
}

.setting-row label {
  text-align: left;
  min-width: 55px;
  margin-right: 0px;
  color: #ccc;
  font-weight: 500;
}

.setting-row-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.70rem;
}

.setting-row-check label {
  text-align: left;
  min-width: 155px;
  margin-right: 0px;
  color: #ccc;
  font-weight: 500;
}

.custom-select-box {
  flex: 1;
}

#preview-container {
  margin-top: 0.5rem;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center; 
}

.btn-generate {
  background-color: #e63946;
  color: white;
  font-weight: 600;
  margin-top: 7px;
  border: none;
  border-radius: 50px;
  padding: 0.5rem 2rem;
  font-size: 0.75rem;
  box-shadow: 0 0 15px rgba(230, 57, 70, 0.4);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-generate:hover {
  background-color: #ff4d5b;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 77, 91, 0.6);
}

.custom-select-options li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
}

.preview-box {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  border: 1px solid #666;
}

#preview-container img {
  display: inline-block;
  vertical-align: middle;
  height: 90px;
  width: auto;
  object-fit: contain;
}

.form-group label{
  font-size: 13px;
  padding: 2px;
}

.setting-row.align-top label {
  padding-top: 10px;
  align-self: flex-start;
}

.generated-image-wrapper {
  position: relative;
  display: inline-block;
  border-radius: 8px;
  margin:  0 5px 0 5px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  flex: 0 0 auto;
}

/* Горизонтальний скролбар для WebKit (Chrome, Edge, Safari) */
#result-scroll-container::-webkit-scrollbar-track, #result-scroll-container-mobile::-webkit-scrollbar-track {
  background: #1a1a1a; /* Темний фон */
  border-radius: 6px;
}

#result-scroll-container::-webkit-scrollbar-thumb, #result-scroll-container-mobile::-webkit-scrollbar-thumb {
  background: #555; /* Сірий повзунок */
  border-radius: 6px;
  border: 2px solid #1a1a1a; /* Відступи навколо повзунка */
}

#result-scroll-container::-webkit-scrollbar-thumb:hover, #result-scroll-container-mobile::-webkit-scrollbar-thumb:hover {
  background: #888;
}

/* Firefox */
#result-scroll-container, #result-scroll-container-mobile {
  scrollbar-width: thin;
  scrollbar-color: #555 #1a1a1a;
}

.scroll-row {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  scroll-behavior: smooth;
  white-space: nowrap;
  position: relative;
}

.scroll-row::-webkit-scrollbar {
  height: 10px;
}

.scroll-row::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 6px;
}

.scroll-row::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 6px;
  border: 2px solid #1a1a1a;
}

.scroll-row::-webkit-scrollbar-thumb:hover {
  background: #888;
}

.scroll-row {
  scrollbar-width: thin;
  scrollbar-color: #555 #1a1a1a;
}

#result-scroll-container::-webkit-scrollbar, #result-scroll-container-mobile::-webkit-scrollbar {
  height: 8px;
}

#result-scroll-container::-webkit-scrollbar, #result-scroll-container-mobile::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 4px;
}

#result-scroll-container::-webkit-scrollbar-track, #result-scroll-container-mobile::-webkit-scrollbar-track {
  background: #eee;
}

.generated-image {
  width: 180px;
  height: auto;
  border-radius: 8px;
  display: block;
  border: 2px solid #1a1a1a61;
  transition: all 0.2s ease-in-out;
}

@media (max-width: 576px) {
  .generated-image {
    width: 80px;
    height: auto;
    border-radius: 8px;
    display: block;
    border: 2px solid #1a1a1a61;
    transition: all 0.2s ease-in-out;
  }
}

.generated-image:hover {
  cursor: pointer;
  border-color: #00B7FF;
  transition: all 0.3s ease;
}

.image-status-icon{
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 14px;
  background-color: #fff;
  border-radius: 50%;
  padding: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2)";
}

.btn-save-image,
.btn-zoom-image,
.btn-zoom-image_,
.btn-delete-image {
  top: 8px;
  background-color: white;
  border: none;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  z-index: 10;
  opacity: 0.8;
  transition: opacity 0.2s;
  position: absolute;
}

@media (max-width: 576px) {
  .btn-save-image,
  .btn-zoom-image,
  .btn-zoom-image_,
  .btn-delete-image {
  position: static;
  }
}


.btn-save-image:hover,
.btn-zoom-image:hover,
.btn-zoom-image_:hover,
.btn-delete-image:hover {
  opacity: 1;
}

.btn-zoom-image {
  right: 67px;
  color: #283ba7;
  border: 1px solid #283ba7;
}

.btn-zoom-image_ {
  right: 36px;
  color: #283ba7;
  border: 1px solid #283ba7;
}

.btn-save-image {
  right: 36px;
  color: #28a745;
  border: 1px solid #28a745;
}

.btn-delete-image {
  right: 4px;
  color: #dc3545;
  border: 1px solid #dc3545;
}

.scroll-btn {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: #00d4ff;
  font-size: 14px;
  padding: 6px 6px;
  border-radius: 40%;
  cursor: pointer;
  backdrop-filter: blur(4px);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
  transition: all 0.3s ease;
}

.scroll-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
  transform: translateY(-50%) scale(1.1);
}

.scroll-left {
  left: 4px;
}

.scroll-right {
  right: 4px;
}

#result-scroll-container, #result-scroll-container-mobile {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  white-space: nowrap;
  position: relative;
}

#result-scroll-container {
  max-width: 100%;
}

#result-scroll-container-mobile {
    max-width: 400px;
}


#result-container, #result-container-mobile {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
}

#image-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#image-modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
}

.modal-content {
  position: relative;
  z-index: 10000;
}

#modal-image {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

/* === СТИЛІ ДЛЯ ГАЛЕРЕЇ === */

#galleryImageContainer .card {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s ease;
  max-width: 180px;
  margin-bottom: 4px;
}

@media (max-width: 576px) {
  #galleryImageContainer .card {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease;
    max-width: 120px;
    margin-bottom: 4px;
  }
}

#galleryImageContainer .col {
  display: flex;
  justify-content: center;
}

#galleryImageContainer .card:hover {
  transform: translateY(-4px);
}

#galleryImageContainer .card img {
  border-bottom: 1px solid #eee;
  object-fit: cover;
  height: 180px;
  width: 180px;
}

@media (max-width: 576px) {
  #galleryImageContainer .card img  {
    border-bottom: 1px solid #eee;
    object-fit: cover;
    height: 120px;
    width: 120px;
  }
}

#galleryImageContainer .card img:hover {
  cursor: pointer;
}

#galleryImageContainer .card-body {
  padding: 0.75rem;
}

#galleryImageContainer .card-body p {
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  color: #666;
}

#galleryImageContainer .card-body .btn {
  font-size: 0.7rem;
  padding: 0.3rem 0.5rem;
}

#galleryImageContainer .btn-success[disabled] {
  background-color: #ccc !important;
  border-color: #ccc !important;
  color: #444 !important;
  cursor: default;
}

#galleryImageContainer .d-flex.justify-content-between {
  gap: 0.25rem;
  flex-wrap: wrap;
}

.disabled-card {
  opacity: 0.5;
  pointer-events: none; /* блокування кнопок та кліків */
  filter: grayscale(100%);
}

.disable-everything-except-modal .page-panel > *:not(#galleryModal) {
  pointer-events: none !important;
  user-select: none !important;
  opacity: 0.3 !important;
  filter: blur(1px) !important;
}

.disable-everything-except-modal #galleryModal {
  pointer-events: auto !important;
  user-select: auto !important;
  opacity: 1 !important;
  filter: none !important;
  z-index: 1055; /* переконайся, що модалка зверху */
}

.badge-icon[title="Новий"] {
  color: #4caf50;
}
.badge-icon[title="Святковий"] {
  color: #ff9800;
}
.badge-icon[title="Обмежений"] {
  color: #f44336;
}

.color-swatch {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 1px solid #999;
  border-radius: 4px;
  margin: 2px;
}

.setting-price {
  font-size: 16px;
  font-weight: 500;
  padding: 6px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  justify-content: space-between;
}

#merch-price {
  font-weight: 600;
  color: #00e0ff;
}

.setting-order {
  padding: 12px;
}

#order-btn {
  width: 100%;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 600;
  background-color: #00e0ff;
  color: #000;
  border: none;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

#order-btn:hover {
  background-color: #00c5e0;
}

#reset-transform {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#reset-transform:hover {
  background-color: #0056b3;
}
/*////////////*/
@media (max-width: 768px) {
  .mobile-slide-panel {
    position: fixed;
    color: #fff;
    z-index: 9998;
    overflow-y: auto;
    transition: left 0.3s ease;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    backdrop-filter: blur(8px);
    display: none;
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid rgba(0, 247, 255, 0.164);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
  }

  .mobile-slide-panel-merch {
    bottom: 20px;
    background: linear-gradient(0.45turn, #000000ab, #4CAF4C99, #000000ab);
  }

  .mobile-slide-panel-param {
    bottom: 20px;
    background: linear-gradient(0.45turn, #000000ab, #FF980099, #000000ab);
  }

  .mobile-slide-panel-param_AI {
    bottom: 20px;
    background: linear-gradient(0.45turn, #000000ab, #96143fb9, #000000ab);
  }

  .mobile-slide-panel-gallery {
    bottom: 20px;
    background: linear-gradient(0.45turn, #000000ab, #2196F399, #000000ab);
  }

  .mobile-slide-panel-transform {
    bottom: 20px;
    background: linear-gradient(0.45turn, #b700cfab, #2b061899, #940180ab);
    width: 80%;
  }




@media (max-width: 576px){
  .btn{
    font-size: 0.85rem;
  } 
}

  .mobile-slide-panel.visible {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    display: block;
  }


  .mobile-tab-btn {
    position: fixed;
    left: 0;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    font-size: 1.5rem;
    font-family: 'Poppins', sans-serif;
    border: none;
    border-radius: 0 8px 8px 0;
    color: white;
    background-color: rgba(0, 0, 0, 0.3); /* прозорість */
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    width: auto;
    max-width: 85vw;
    white-space: nowrap;
    min-width: 50px;
  }

  .mobile-tab-btn.active {
    background-color: rgba(0, 0, 0, 0.7); /* менш прозора */
    border: 2px solid white;
  }

  .left-tab-btn {
    left: 0;
  }

  .desktop-only {
    display: none !important;
  }

    /* окремі позиції */
  .btn-merch {
    top: 350px;
    background-color: rgba(76, 175, 80, 0.6);
  }

  /* для майбутніх кнопок (якщо додаватимеш) */
  .btn-options {
    top: 400px;
    background-color: rgba(255, 152, 0, 0.6);
  }

  .btn-ai {
    top: 450px;
    background-color: rgba(233, 30, 99, 0.6);
  }

  .btn-gallery {
    top: 500px;
    background-color: rgba(33, 150, 243, 0.6);
  }
  
  .btn-transform {
    top: 550px;
    background-color: rgba(156, 39, 176, 0.6);
  }

  .btn-order {
    top: 600px;
    background-color: rgba(9, 255, 0, 0.6);
  }

  .responsive-title {
    text-align: center;
    top: 0;
    padding: 10px 16px;
  }
  .responsive-title h1 {
    font-size: 1.4em;
  }
  .responsive-title button {
    margin: 12px auto 0;
  }

  .incart{
    position: absolute;
    font-size: 12px;
    left: 12px;
    top: 0px;
  }
}

.table-dark th,
.table-dark td {
  vertical-align: middle;
}
.btn-sm {
  width: 40%;
  height: 22px;
  font-size: 0.75rem;
  padding: 0;
  line-height: 1;
}

#viewer-container{
  width: 70%;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 576px){
  #viewer-container{
    width: 100%;
  }
}

.cart-preview-img {
  max-width: 150px;
  height: auto;
  object-fit: contain;
  border-radius: 0.75rem;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.cart-item {
  display: flex;
  background: #111;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 16px;
  gap: 16px;
  flex-wrap: wrap;
}

.cart-item-left img {
  width: 120px;
  height: auto;
  border-radius: 8px;
}

.cart-item-center {
  flex: 1;
  min-width: 180px;
}

.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-width: auto;
  margin-top: auto;
  margin-bottom: auto;
}

.cart-color {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  border: 1px solid #ccc;
}

.cart-item-right p.text-light {
  font-weight: 500;
}

.quantity-animated {
  animation: pop-scale 0.2s ease;
}

@keyframes pop-scale {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

.cart-qty-btn {
  background: #222;
  border: 1px solid #555;
  color: #fff;
  width: 32px;
  height: 32px;
  font-size: 18px;
  line-height: 1;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-qty-btn:hover {
  background: #444;
  border-color: #888;
}

.quantity {
  display: inline-block;
  min-width: 28px;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  color: #fff;
}

.quantity-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

button.remove-btn {
  color: red;
  transition: opacity 0.2s;
}
button.remove-btn:hover {
  opacity: 0.7;
}

.quantity-block {
  display: flex;
  align-items: center;
  gap: 8px;
}


.btn-finalize {
  top: 650px;
  background-color: rgba(0, 212, 255, 0.6);
}

.nav-link {
  margin-left: 0 !important;
}

#result-wrapper {
  display: none;
}

#result-wrapper.visible {
  display: block;
}

@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
}

.is-invalid {
  border: 1px solid #dc3545 !important;
  background-color: #fff5f5 !important;
}

/* MY */
.right-align {
  margin-left: auto;
}

.but_add_photo {
  font-size: 0.7rem;
  border-color: #ff000028;
}

.photo_text {
  vertical-align: top;
  padding-top: 7px;
}

.but_font_size {
    font-size: 12px;
}

.font_size9 {
    font-size: 9px;
}

.some {
  background-position: right .11rem center;
}
.max_width {
  max-width: 960px;
}
.center{
  margin-left: auto;
  margin-right: auto;
}

.tit {
  color: #a1a1a1;
}

.tit_bg {
  background: #a1a1a1;
}
.p0 {
  padding: 0px;
}

.m0 {
  margin: 0px;
}

.mt6 {
  margin-top: 6px;
}

.ml1_5 {
  margin-left: 1.5em;
}

.p_all15{
  padding: 15px;
}

.p_all5{
  padding: 5px;
}

.mt12 {
  margin-top: 12px;
}

.selectlocal .selectcurrency{
  /* min-width: 100px; фикс ширина */
  text-align: center; 
}

.AiBlock{
  margin-top: 15px;
  background: linear-gradient(0.45turn, #ff01012d, #ebf8e100, #ff01012d);
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid rgba(255, 0, 0, 0.164);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
}

.form_no_block{
  display:inline;
}

.form_fix_p{
  padding: .175rem .55rem;
}

.w600{
  width: 650px;
}
@media (max-width: 576px) {
  .w600 {
    width: 300px; /* автоматично стане w400 на мобілці */
  }
}

.h60{
  height: 60px;
}

.fz07{
  font-size: 0.7rem;
}