/* ============================================================
   LOLLIBUY PRODUCT PAGE — BASE LAYOUT
   Clean, optimized, premium version
============================================================ */

.lolli-single-product-container {
    width: min(1300px, 92%);
    margin: 40px auto 90px;
}

/* Две колонки: галерея + информация */
.lolli-product-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;

    background: #1a1a25;
    padding: 36px;
    border-radius: 28px;
    box-shadow: 0 0 45px rgba(255,120,220,.25);
}

@media (max-width: 960px) {
    .lolli-product-wrapper {
        grid-template-columns: 1fr;
        padding: 22px;
        gap: 28px;
    }
}

/* ============================================================
   PRODUCT SUMMARY (правый блок)
============================================================ */

.lolli-product-summary {
    background: #1a1a25;
    padding: 28px 30px;
    border-radius: 26px;
    box-shadow: 0 0 22px rgba(255,120,220,.25);

    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Название товара */
.lolli-product-inner h1.product_title {
    font-size: 30px;
    font-weight: 800;
    color: #ffd8f8;
    text-shadow: 0 0 14px rgba(255,120,220,.4);
    margin-bottom: 10px;
}

.woocommerce-product-rating {
    color:#fff708;
}

/* ============================================================
   PRICE
============================================================ */

.single-product .price {
    color: #ffd9b0 !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    margin: 10px 0 20px;
}

/* ============================================================
   LINKS (общее поведение)
============================================================ */

.lolli-product-summary a,
.lolli-product-tabs a,
.woocommerce div.product a,
.product_meta a,
.woocommerce-review-link {
    color: #ffbdf5 !important;
    font-weight: 600;
    text-decoration: none;
    transition: .25s ease;
}

.lolli-product-summary a:hover,
.lolli-product-tabs a:hover,
.product_meta a:hover {
    color: #ff7cd8 !important;
    text-shadow: 0 0 10px rgba(255,120,220,.6);
}

/* ============================================================
   PRODUCT META — SKU, категории, метки
============================================================ */

.lolli-product-meta {
    margin-top: 15px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,120,220,.25);

    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lolli-product-meta > span {
    font-size: 14px;
    color: #dcdcea;
}

.lolli-product-meta > span a {
    background: rgba(255,120,220,.15);
    padding: 3px 8px;
    border-radius: 8px;
    color: #ffb4f4;
}

.lolli-product-meta > span a:hover {
    color: #ff7cd8;
}

/* ============================================================
   GALLERY — GLOW + КВАДРАТНАЯ + PREMIUM LOOK
============================================================ */

.lolli-product-gallery {
    background:
        radial-gradient(circle at 30% 10%, rgba(255,140,240,.25), transparent 60%),
        radial-gradient(circle at 85% 70%, rgba(180,120,255,.35), transparent 60%),
        #141421;

    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 0 40px rgba(255,120,220,.45);
    position: relative;
    overflow: hidden;
}

/* Лёгкая рамка */
.lolli-product-gallery::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.05);
    pointer-events: none;
}

/* Центровка структуры WooCommerce */
.woocommerce-product-gallery,
.woocommerce-product-gallery__wrapper {
    width: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Делаем КВАДРАТНУЮ область */
.woocommerce-product-gallery__image {
    aspect-ratio: 1 / 1 !important;
    width: 100%;
    max-width: 600px;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Картинка */
.woocommerce-product-gallery__image img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    border-radius: 20px;
    z-index: 2;
}

/* Mobile gallery */
@media (max-width: 600px) {
    .lolli-product-gallery {
        padding: 20px;
    }

    .woocommerce-product-gallery__image {
        max-width: 420px;
    }
}

/* ============================================================
   VARIATIONS — PREMIUM SWATCHES (КНОПКИ ВЫБОРА)
============================================================ */

/* Обёртка вариантов */
.variable-items-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-top: 6px;
}

/* Скрываем дефолтный select, если плагин активен */
.variations select {
    display: none !important;
}

/* Сам "свотч"-кнопка */
.button-variable-item,
.variable-item.button-variable-item,
.wvs-style-squared.button-variable-item {
    min-width: 90px !important;
    height: 44px !important;
    padding: 0 18px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: #1a1a25 !important;
    border: 1px solid rgba(255,120,220,.35) !important;
    color: #ffd8f8 !important;

    border-radius: 14px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1 !important;

    cursor: pointer !important;
    transition: .25s ease !important;
    box-shadow: 0 0 12px rgba(255,120,220,.12) !important;

    margin: 4px 4px !important;
}

/* Ховер */
.button-variable-item:hover:not(.disabled) {
    background: #ff7cd8 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}

/* Активный вариант */
.button-variable-item.selected,
.button-variable-item.active,
.button-variable-item.selected:not(.disabled) {
    background: linear-gradient(90deg,#ff7dd1,#b067ff) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 0 24px rgba(255,120,220,.4) !important;
    transform: scale(1.06) !important;
}

/* Отключенный */
.button-variable-item.disabled {
    opacity: .45 !important;
    filter: grayscale(.8) !important;
    cursor: not-allowed !important;
}

/* Лейбл атрибута */
.variations tr {
    display: block;
    margin-bottom: 18px;
}

.variations td.label {
    display: block;
    margin-bottom: 6px;
    color: #ffd8f8;
    font-weight: 700;
    font-size: 15px;
}

/* Ссылка "Очистить" */
a.reset_variations {
    color: #ffb4f4 !important;
    background: rgba(255,120,220,0.08);
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 6px;
}

a.reset_variations:hover {
    background: #ff7cd8 !important;
    color: white !important;
}

/* ============================================================
   QUANTITY — + / - и поле
============================================================ */

.quantity {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 10px 0 8px;
}

.quantity input.qty {
    width: 70px !important;
    height: 42px !important;

    background: #202028 !important;
    border: 1px solid #3a3a4a !important;
    color: #fff !important;
    text-align: center !important;
    font-size: 16px !important;

    border-radius: 12px !important;
}

/* Кнопки +/- (если используются) */
.quantity .plus,
.quantity .minus {
    width: 40px !important;
    height: 42px !important;

    background: #2b2b39 !important;
    border: 1px solid #3a3a4a !important;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px !important;
    color: #ffd8f8 !important;

    border-radius: 12px !important;
    cursor: pointer !important;
    transition: .2s ease;
}

.quantity .plus:hover,
.quantity .minus:hover {
    background: #ff7cd8 !important;
    color: #000 !important;
}

/* Убираем системные спиннеры у input[type=number] */
.quantity input[type="number"]::-webkit-inner-spin-button,
.quantity input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.quantity input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ============================================================
   ADD TO CART BUTTON
============================================================ */

.single_add_to_cart_button {
    background: #ffffff !important;
    color: #000 !important;

    padding: 14px 20px !important;
    border-radius: 16px !important;

    font-size: 18px !important;
    font-weight: 800 !important;
    width: 100%;

    transition: .25s ease;
    border: none !important;
    box-shadow: 0 0 18px rgba(255,255,255,.18);
}

.single_add_to_cart_button:hover {
    background: #ff7cd8 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 0 26px rgba(255,120,220,.7);
}

/* ============================================================
   PRODUCT TABS — GLOW STYLE (вариант #2)
============================================================ */

.lolli-product-tabs {
    width: min(1300px, 92%);
    margin: 50px auto 100px;
}

/* Список вкладок */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 16px;
    border: none;
}

/* Одна вкладка */
.woocommerce div.product .woocommerce-tabs ul.tabs li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;

    background: #1a1a25;
    border: 1px solid rgba(255,120,220,.35);
    border-radius: 14px;

    padding: 10px 22px !important;

    font-size: 16px;
    font-weight: 700;
    color: #ffd8f8;

    cursor: pointer;
    transition: .25s ease;

    box-shadow: 0 0 16px rgba(255,120,220,.15);
    position: relative;
}

/* Ховер */
.woocommerce div.product .woocommerce-tabs ul.tabs li:hover {
    background: #ff7cd8;
    color: #fff;
    transform: translateY(-2px);
}

/* Активная вкладка */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background: linear-gradient(90deg,#ff7dd1,#b067ff);
    color: #fff !important;
    border-color: transparent;
    transform: scale(1.05);
    box-shadow: 0 0 26px rgba(255,120,220,.45);
}

/* Убираем псевдоэлементы Woo */
.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
    display: none !important;
    content: none !important;
}

/* Контент табов */
.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel {
    background: #1a1a25;
    padding: 26px 30px;
    border-radius: 22px;
    box-shadow: 0 0 28px rgba(255,120,220,.25);
    color: #e8e1f0;
    font-size: 15px;
    line-height: 1.6;
}

/* Заголовки внутри табов */
.woocommerce-Tabs-panel h2,
.woocommerce-Tabs-panel h3,
.woocommerce-Tabs-panel h4 {
    color: #ffd8f8;
    text-shadow: 0 0 10px rgba(255,120,220,.3);
    margin-top: 14px;
    margin-bottom: 10px;
}

/* Текст */
.woocommerce-Tabs-panel p {
    color: #f5eaff;
    opacity: .95;
    margin-bottom: 12px;
}

/* Списки */
.woocommerce-Tabs-panel ul {
    padding-left: 20px;
}

.woocommerce-Tabs-panel li {
    margin-bottom: 6px;
}

/* ============================================================
   REVIEWS LIST — СТИЛЬ ОТЗЫВОВ
============================================================ */

#reviews {
    margin-top: 40px;
}

#reviews #comments {
    margin-bottom: 34px;
}

#reviews #comments h2 {
    font-size: 20px;
    color: #ffd8f8;
    margin-bottom: 16px;
    font-weight: 700;
}

#reviews #comments ol.commentlist {
    padding: 0;
    margin: 0;
}

#reviews #comments ol.commentlist li {
    list-style: none;
    background: #181822;
    padding: 18px 20px;
    margin-bottom: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255,120,220,.25);
    box-shadow: 0 0 12px rgba(255,120,220,.15);
}

#reviews .comment_container {
    display: flex;
    gap: 14px;
}

#reviews .comment_container img.avatar {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    object-fit: cover;
    box-shadow: 0 0 16px rgba(255,120,220,.4);
}

#reviews .comment-text .meta {
    font-size: 14px;
    color: #ffd8f8;
    font-weight: 600;
    margin-bottom: 6px;
}

#reviews .star-rating span {
    color: #ffe179 !important;
}

#reviews .star-rating {
    margin-bottom: 10px;
}

#reviews .description p {
    color: #f5eaff;
    opacity: .9;
}

/* ============================================================
   REVIEW FORM (ADD REVIEW)
============================================================ */

#review_form_wrapper {
    background: #1a1a25;
    padding: 26px 30px;
    border-radius: 22px;
    box-shadow: 0 0 28px rgba(255,120,220,.25);
}

#review_form #respond .comment-reply-title {
    color: #ffd8f8;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
}

#review_form input,
#review_form textarea {
    width: 100%;
    background: #202028;
    border: 1px solid rgba(255,120,220,.25);
    border-radius: 12px;
    padding: 12px 14px;
    color: #fff;
    font-size: 15px;
}

#review_form textarea {
    height: 130px;
    resize: vertical;
}

#review_form input:focus,
#review_form textarea:focus {
    border-color: #ff9ce9;
    box-shadow: 0 0 12px rgba(255,120,220,.4);
}

#review_form #submit {
    margin-top: 10px;
    background: #fff;
    color: #000;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: .2s ease;
    border: none;
}

#review_form #submit:hover {
    background: #ff7cd8;
    color: #fff;
}

/* ============================================================
   WOOCOMMERCE MESSAGES — PREMIUM GLOW
============================================================ */

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    position: relative;
    padding: 24px !important;
    margin: 20px auto;
    border-radius: 16px;

    background: rgba(30, 8, 50, 0.6);
    color: #fff !important;

    border: 2px solid #ff4bd1 !important;
    box-shadow: 0 0 25px rgba(255, 77, 215, 0.6);
    backdrop-filter: blur(6px);

    font-size: 16px;
    line-height: 1.5;
}

/* Иконка */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    display: inline-block;
    content: "💫";
    font-size: 20px;
    margin-right: 40px;
    position: relative;
    top: 2px;
}

/* Ссылка внутри */
.woocommerce-message a.button,
.woocommerce-info a.button,
.woocommerce-error a.button {
    display: inline-block;
    padding: 6px 16px;
    margin-left: 16px;
    border-radius: 12px;

    background: #ffffff;
    color: #8a00c7 !important;

    font-weight: 600;
    text-decoration: none !important;
    border: none;

    box-shadow: 0 0 10px rgba(255,255,255,0.6);
    transition: 0.2s;
}

.woocommerce-message a.button:hover {
    background: #ffe6fd;
    box-shadow: 0 0 18px rgba(255, 160, 239, 0.8);
}

/* ============================================================
   RELATED PRODUCTS — GRID
============================================================ */

.related.products {
    margin-top: 60px;
}

.related.products h2 {
    font-size: 22px;
    font-weight: 800;
    color: #ffd8f8;
    margin-bottom: 22px;
}

.related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 1000px) {
    .related.products ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .related.products ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .related.products ul.products {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* ============================================================
   MOBILE FIXES — ЛЕГКАЯ ПОДЧИСТКА
============================================================ */

@media (max-width: 600px) {
    .lolli-product-summary {
        padding: 22px;
    }

    .single-product .price {
        font-size: 20px !important;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs li {
        font-size: 14px;
        padding: 8px 14px !important;
    }

    .woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel {
        padding: 18px 20px;
    }

    #reviews .comment_container img.avatar {
        width: 42px;
        height: 42px;
    }

    #reviews #comments ol.commentlist li {
        padding: 14px 16px;
    }

    #review_form_wrapper {
        padding: 20px 22px;
    }
}
