/* PodarokTut: аудит 30.11.2026. Использует токены pt_redesign (--pt-*), без правки темы. */

/* ---------- Меню каталога: стрелки и «+ / −» вместо лишних узлов ---------- */
#menu #menu-list i.arrow::after, #menu-mobile-ns i.arrow::after, .menu-list-dropdown i.arrow::after {
	content: ""; display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg);
}
#menu #menu-list > li .toggle-child::before { content: "+"; font-size: 20px; line-height: 1; }
#menu #menu-list > li .toggle-child.open::before { content: "−"; }

/* ---------- Шапка и подвал на всю ширину, переключатель языка ---------- */
#pt-hdr, footer.pt-footer { width: 100%; max-width: none; }
.pt-announce .pt-lang > span { background: var(--pt-ink, #1D1B22) !important; color: #fff !important; }
.pt-announce .pt-lang > a { background: transparent !important; color: #6B6876 !important; }
/* кнопка «Наверх» не накрывает нижнюю строку подвала */
.pt-footer__bottom { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
.pt-footer__legal { padding-bottom: 16px; font-size: 13px; color: rgba(255, 255, 255, .6); }

/* ---------- Главная: hero ---------- */
.pt-hero__title .pt-hero__brand { white-space: nowrap; font-size: .6em; font-weight: 600; color: var(--pt-muted, #6B6876); }
.pt-hero__sub { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--pt-coral-ink, #E02A36); }
.pt-hero .pt-hero__art.pt-hero__art--grid { display: none; min-height: 0; background: none; }
.pt-hero .pt-hero__card .pt-hero__title { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.1; }
@media (min-width: 992px) {
	.pt-hero__card.pt-hero__card--grid { grid-template-columns: 1.15fr .85fr; align-items: center; background: linear-gradient(120deg, var(--pt-coral-soft, #FFECEC) 0%, #fff 62%); }
	.pt-hero .pt-hero__art.pt-hero__art--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 28px 40px 28px 0; max-width: 520px; width: 100%; justify-self: end; }
	.pt-hero__art--grid a { display: block; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--pt-shadow, 0 8px 24px -16px rgba(29, 27, 34, .3)); }
	.pt-hero__art--grid img { width: 100%; height: 100%; object-fit: contain; display: block; }
}
/* «Підібрати подарунок»: ровная сетка из 8 карточек */
.pt-gift-home .pt-gp-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 992px) { .pt-gift-home .pt-gp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pt-gift-home .pt-gp-grid > .pt-gp-card { width: auto !important; max-width: none !important; }

/* ---------- Карточки товаров: один вид с блоком «Новинки» ---------- */
.container-module .product-thumb, .product-layout .product-thumb { border-radius: var(--pt-r, 16px); }
.container-module .product-thumb .product-name a, .product-layout .product-thumb .product-name a { font-size: 14px; font-weight: 600; line-height: 1.3; }

/* категории и поиск: «В обране» рядом с корзиной */
.product-layout .product-thumb .actions { display: flex; align-items: center; gap: 8px; }
#content .product-layout .product-thumb .actions .addit-action { display: flex !important; position: static !important; opacity: 1 !important; visibility: visible !important; transform: none !important; margin: 0; padding: 0; background: none; box-shadow: none; width: auto; }
#content .product-layout .product-thumb .actions .addit-action .wishlist { display: block !important; position: static !important; opacity: 1 !important; visibility: visible !important; }
#content .product-layout .product-thumb .actions .addit-action .btn-wishlist { display: flex !important; align-items: center; justify-content: center; width: 40px; height: 40px; min-width: 40px; padding: 0; border: 1px solid var(--pt-line2, #DCD9E2); border-radius: var(--pt-r-sm, 12px) !important; background: #fff; box-shadow: none; opacity: 1; visibility: visible; }
@media (max-width: 767px) {
	.product-layout.product-grid .product-thumb .list-right-block { flex-wrap: wrap; gap: 6px; }
	#content .product-layout.product-grid .product-thumb .actions { width: 100%; }
	#content .product-layout.product-grid .product-thumb .actions .cart { flex: 1; }
	#content .product-layout.product-grid .product-thumb .actions .cart .btn { width: 100% !important; max-width: none; }
	#content .product-layout.product-grid .product-thumb .actions .addit-action .btn-wishlist { width: 38px; height: 38px; min-width: 38px; }
}

/* ---------- Карточка товара ---------- */
/* код и артикул — сразу под ценой и наличием */
#product > .top-info-product:not(.stock_rating_line) { order: 2; margin: 0 0 4px; width: 100%; display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: 13px; color: var(--pt-muted, #6B6876); }
#product > .top-info-product:not(.stock_rating_line) .info-product { margin: 0; }
#product > .pt-pay { order: 5; width: 100%; }
#product > .pt-tg { order: 6; }
#product > .pt-ship { order: 7; }
.pt-pay { margin: 4px 0 10px; padding: 12px 14px; border: 1px solid var(--pt-line, #ECEAF0); border-radius: var(--pt-r, 16px); background: #fff; font-size: 14px; }
.pt-pay__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pt-pay__list li { padding: 6px 12px; border-radius: 999px; background: var(--pt-bg, #FAFAFC); border: 1px solid var(--pt-line, #ECEAF0); font-weight: 600; }
.pt-pay__note { margin: 8px 0 0; font-size: 13px; color: var(--pt-muted, #6B6876); }
.pt-pay__msg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.pt-pay__msg a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border-radius: var(--pt-r-sm, 12px); color: #fff !important; font-weight: 700; text-decoration: none !important; }
.pt-pay__viber { background: #6B58D6; }
.pt-pay__tg { background: #1F7FB5; }
.pt-review-login { margin: 0; padding: 12px 15px; font-size: 15px; }
.pt-review-login a { text-decoration: underline !important; font-weight: 700; }

/* ---------- «Купити в 1 клік» ---------- */
#modal-quickorder .panel-body > .form-group { grid-column: 1 / -1; float: none; width: 100%; max-width: 100%; flex: 0 0 100%; }
#modal-quickorder #quickorder_btn .btn-quickorder-one { background-color: var(--pt-coral-ink, #E02A36) !important; border-color: var(--pt-coral-ink, #E02A36) !important; color: #fff !important; }
#modal-quickorder #quickorder_btn .btn-quickorder-one:hover { background-color: var(--pt-coral, #FF3B47) !important; border-color: var(--pt-coral, #FF3B47) !important; }

/* ---------- «Товар додано в кошик» ---------- */
#modal-addcart .modal-body { position: relative; padding-top: 46px; }
#modal-addcart .pt-added__close { position: absolute; top: 6px; right: 8px; width: 40px; height: 40px; border: 0; border-radius: 50% !important; background: var(--pt-bg, #F4F3F7); font-size: 26px; line-height: 1; color: var(--pt-ink, #1D1B22); cursor: pointer; }
.pt-added { margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--pt-line, #ECEAF0); border-radius: var(--pt-r-sm, 12px); text-align: left; }
.pt-added__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pt-added__qty { display: inline-flex; align-items: center; gap: 4px; }
.pt-added__qty button { width: 40px; height: 40px; border: 1px solid var(--pt-line2, #DCD9E2); border-radius: 10px !important; background: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.pt-added__qty button:disabled { opacity: .4; cursor: default; }
.pt-added__qty b { min-width: 34px; text-align: center; font-size: 16px; }
.pt-added__sum { margin-top: 8px; font-size: 18px; font-weight: 800; }
.pt-added__total { font-size: 13px; color: var(--pt-muted, #6B6876); }
