.add-product-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-family: Arial, sans-serif;
}

.add-product-form form p {
    margin-bottom: 20px;
}

.add-product-form input[type="text"],
.add-product-form input[type="number"],
.add-product-form textarea,
.add-product-form select {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.add-product-form input:focus,
.add-product-form textarea:focus,
.add-product-form select:focus {
    border-color: #00b894;
    outline: none;
}

.apf-file {
    margin-top: 10px;
    margin-bottom: 10px;
}

.add-product-form .checkbox-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.add-product-form .checkbox-tags label {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f3f3f3;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    margin: 0px;
}

.apf-submit {
    width: 100%;
    background-color: #00b894;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
}

.apf-submit:hover {
    background-color: #01856b;
}

.apf-submit:active {
    transform: scale(0.97);
}
.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.preview-thumb {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ccc;
    cursor: pointer;
}

.preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-btn-new-product {
    position: absolute;
    top: 0px;
    right: 0px;
    background: #ff6b6b;
    color: white;
    font-size: 16px;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.image-modal-new-product {
    display: none;
    position: fixed;
    z-index: 20000;
    inset: 0;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.image-modal-new-product.show {
    display: flex;
}

.modal-content-img-new-product {
    display: block;
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 8px;
    object-fit: contain;
    margin: 0;
}

.close-modal-new-product {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 20001;
}

.pin-block {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    margin-top: 10px;
}

.pin-label {
    margin: 0;
    padding: 0;
}

.pin-block input[type="checkbox"] {
    transform: scale(1.4);
    margin-right: 16px;
}

.close-modal-new-product:hover {
    color: #ff6b6b;
}

/* страница добавления товара с топбаром как у новостей */
.add-product-page{
  max-width: 760px;
  margin: 0 auto;
}

/* шапка */
.product-add-topbar{
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.title-new-product {
    display: block;
}

.phone-privacy-field {
    margin-bottom: 20px;
}

.phone-input-wrap {
    position: relative;
}

.phone-input-wrap input[type="text"] {
    padding-right: 88px; /* место под глаз и вопросик */
}

.phone-input-actions {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.phone-privacy-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0;
}

.phone-privacy-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.eye-icon {
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #8b8b8b;
    transition: color 0.2s ease, transform 0.2s ease;
}

.phone-privacy-toggle:hover .eye-icon {
    transform: scale(1.08);
}

.phone-privacy-help {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0 0 15px 0;
    cursor: pointer;
    color: #8b8b8b;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-privacy-help:hover {
    color: #00b894;
}

.phone-privacy-toggle input:not(:checked) ~ .eye-open {
    display: flex;
}

.phone-privacy-toggle input:checked ~ .eye-closed {
    display: flex;
    color: #00b894;
}

@media screen and (max-width: 768px) {
    .add-product-form {
        max-width: 768px;
        margin: 0px auto;
        padding: 5px 30px 30px 30px;
        background-color: #fff;
        border-radius: 0px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        font-family: Arial, sans-serif;
    }
    .title-new-product {
        display: none;
    }
