/*
Theme Name: A-Pant by TAG PERFECT
Theme URI: https://tagperfect.eu
Description: Child theme of Shoptimizer
Author: Andrei Stserbo
Author URI: https://tagperfect.eu
Template: shoptimizer
Version: 1.1.7
*/

/* FULL-WIDTH PAGE CONTAINER */
#page {
  max-width: 100%;
}

:root {
  --carbon: #252627;
  --cayenne: #F45D01;
  --baltic: #1A5974;
  --bone: #DAD2BC;
  --parchment: #F5F1ED;
}

/* TOP MENU */
.top-menu-separator {
  opacity: 0.3;
}

.top-bar-container {
  display: inline-flex;
  align-items: center;
  flex-direction: row;
  gap: 1rem;
}

.top-bar-item-wrap {
  display: flex;
  align-items: center;
  gap: 0.2rem
}

.top-bar-container svg {
  height: 1rem;
  width: 1rem;
  margin: 0;
}

/* LANG */
span.tgp-right-widget {
  display: flex;
  gap: 1rem;
}

@media (max-width: 1100px) {
  span.tgp-right-widget>span.tgp-right-menu {
    display: none;
  }
}

span.tgp-lang {
  display: flex;
  align-items: center;
}

.tgp-mob-lang svg {
  width: 18px;
  height: 18px;
}

/* STICKY PRODUCT SUMMARY */
@media (min-width: 993px) {
  .single-product.header-4 {
    overflow-x: clip;
  }

  .single-product .product-details-wrapper {
    overflow: visible !important;
    display: flex;
    flex-wrap: wrap;
  }

  .single-product .product .woocommerce-product-gallery,
  .single-product .product .images {
    float: none;
  }

  .single-product .product .summary {
    float: none;
    position: sticky !important;
    top: 80px;
    align-self: flex-start;
  }
}

/* PRODUCT ATTRIBUTES ROW */
.product-attributes-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

/* FOOTER */
.site-footer .widget p,
.site-footer .widget li {
  font-size: clamp(0.6875rem, 0.66rem + 0.15vw, 0.8125rem);
  line-height: 1.5;
}

/* FORM: UPLOAD FIELD */
/* ======================================================
   PREMIUM UPLOAD FIELD — ELEMENTOR FORM
   ====================================================== */

/* 1. Базовая раскладка: label сверху, поле ниже */
.elementor-field-type-upload {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

/* 2. Label */
.elementor-field-type-upload .elementor-field-label {
  font-size: 15px;
  font-weight: 500;
  color: #1f2933;
}

/* 3. Прячем дефолтный вид input */
.elementor-field-type-upload input[type="file"] {
  font-size: 0;
  padding: 0;
  border: none;
  background: none;
  width: 100%;
}

/* 4. Делаем upload зоной-карточкой */
.elementor-field-type-upload input[type="file"]::file-selector-button {
  width: 100%;
  height: 160px;
  border: 2px dashed #1A5974;
  border-radius: 2rem;
  background: #F5F1ED;
  cursor: pointer;

  font-size: 16px;
  font-weight: 500;
  color: #1f2933;

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

  transition: background 0.25s ease, border-color 0.25s ease, transform 0.1s ease;
}

/* 5. Hover эффект */
.elementor-field-type-upload input[type="file"]::file-selector-button:hover {
  background: #f1f5f9;
  border-color: #8abbd6;
}

/* 6. Active (клик) */
.elementor-field-type-upload input[type="file"]::file-selector-button:active {
  transform: scale(0.99);
}

/* 7. Подсказка под полем */
.elementor-field-type-upload::after {
  content: "JPG, PNG, HEIC · kuni 5 fotot · max 25 MB";
  font-size: 0.7rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

/* ===== FILE LIST ===== */
.upload-file-list {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.upload-file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f1f5f9;
  font-size: 13px;
  color: #1f2933;
}

/* thumbnail */
.upload-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: #e5e7eb;
}

.elementor-field-textual.elementor-field,
select.elementor-field-textual.elementor-size-md option {
  padding: 1.5rem 2rem;
}

/* ===== FILE ITEM WITH REMOVE ===== */
.upload-file {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 36px 8px 12px;
  border-radius: 10px;
  background: #f1f5f9;
  font-size: 13px;
  color: #1f2933;
}

/* remove button */
.upload-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #374151;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.upload-remove:hover {
  background: #ef4444;
  color: #fff;
}

/* ======================================================
   MOBILE UPLOAD MODE
   ====================================================== */
@media (max-width: 768px) {

  /* Upload зона — ниже и компактнее */
  .elementor-field-type-upload input[type="file"]::file-selector-button {
    height: 120px;
    font-size: 15px;
    border-radius: 2rem;
  }

  /* Список файлов — в колонку */
  .upload-file-list {
    flex-direction: column;
    gap: 10px;
  }

  /* Карточка файла — крупнее */
  .upload-file {
    padding: 10px 44px 10px 12px;
    min-height: 64px;
    font-size: 14px;
  }

  /* Превью — крупнее */
  .upload-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
  }

  /* Кнопка удаления — больше, под палец */
  .upload-remove {
    width: 28px;
    height: 28px;
    font-size: 18px;
    line-height: 28px;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
  }

  /* Подсказка */
  .elementor-field-type-upload::after {
    font-size: 12px;
    line-height: 1.4;
  }
}

@media (max-width: 640px) {
  .e-form__indicators__indicator__label {
    display: none;
  }
}

.woocommerce .price {
  margin: 0;
}

@media (min-width: 993px) {
  .theme-shoptimizer.single-product div.product .summary {
    top: 7rem !important;
  }
}

.mobile-extra .widget h4 {
  font-size: 1rem;
}


.esto-calculator {
  margin-top: 4rem;
  font-size: 1rem;
}

/* OVERSIZE SHIPPING NOTICE */
.apant-oversize-notice {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--cayenne);
  background: var(--parchment);
  color: var(--carbon);
  font-size: 0.95rem;
  line-height: 1.5;
  border-radius: 4px;
}