/*
 * Pinex storefront — Machic layout with the Pinex logo and colors.
 * Header / footer: resources/theme/partials, home page: resources/views/machic. Classes are prefixed "pxm-".
 */

/* Pinex brand font for headings and menus only (body text, prices and form controls stay on --pxm-font).
   The file has no Mtavruli letters, so text using it must not be uppercased (see "Heading & menu font" in pinex-pages.css). */
@font-face {
    font-family: 'TBC Contractica CAPS';
    src: url('../../../../../themes/ninico/fonts/TBCContracticaCAPS-Medium.woff2') format('woff2'),
        url('../../../../../themes/ninico/fonts/TBCContracticaCAPS-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    --pxm-accent: #D41C92;
    --pxm-accent-dark: #B5157B;
    --pxm-accent-soft: #FCE8F4;
    --pxm-navy: #1E2833;
    --pxm-ink: #1C1A1E;
    --pxm-text: #3E4451;
    --pxm-muted: #8A93A3;
    --pxm-line: #E3E7EC;
    --pxm-line-soft: #EEF1F4;
    --pxm-surface: #F6F7F9;
    --pxm-red: #E5262C;
    --pxm-green: #0E9F4F;
    --pxm-star: #FFB524;
    --pxm-radius: 6px;
    --pxm-font: 'Noto Sans Georgian', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --pxm-font-heading: 'TBC Contractica CAPS', 'Noto Sans Georgian', 'Inter', system-ui, sans-serif;
}

/* Wide page: the empty space left and right of the content is about half of the standard container's
   (1200-1399px screens: was 1140px wide; 1400px and up: was 1290px), never wider than 1600px. */
@media (min-width: 1200px) {
    .container { max-width: min(1600px, calc((100vw + 1140px) / 2)); }
}
@media (min-width: 1400px) {
    .container { max-width: min(1600px, calc((100vw + 1290px) / 2)); }
}

body { font-family: var(--pxm-font); color: var(--pxm-ink); }

.pxm-header, .pxm-home, .pxm-footer { font-family: var(--pxm-font); color: var(--pxm-ink); }
.pxm-header a, .pxm-home a, .pxm-footer a { color: inherit; text-decoration: none; transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
.pxm-header ul, .pxm-home ul, .pxm-footer ul { list-style: none; margin: 0; padding: 0; }
.pxm-home h2, .pxm-home h3, .pxm-home h4, .pxm-home h5, .pxm-footer h4, .pxm-footer h5 { font-family: var(--pxm-font-heading); color: var(--pxm-ink); letter-spacing: 0; text-transform: none; }

/* ---------- Buttons, pills ---------- */
.pxm-btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 34px; border-radius: 55px; background: var(--pxm-accent); border: 1px solid var(--pxm-accent); color: #fff !important; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pxm-btn:hover { background: var(--pxm-accent-dark); border-color: var(--pxm-accent-dark); }
.pxm-btn--sm { height: 32px; padding: 0 22px; font-size: 12px; }

.pxm-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 24px; font-size: 11px; font-weight: 600; line-height: 1; color: #fff; background: var(--pxm-navy); }
.pxm-pill.is-red { background: var(--pxm-red); }
.pxm-pill.is-gray { background: #9AA3AF; }

/* ---------- Header: top bar ---------- */
.pxm-topbar { border-bottom: 1px solid var(--pxm-line-soft); font-size: 12px; }
.pxm-topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 42px; }
.pxm-topbar__links { display: flex; gap: 22px; }
.pxm-topbar__links a { color: var(--pxm-ink); font-weight: 500; }
.pxm-topbar__links a:hover { color: var(--pxm-accent); }
.pxm-topbar__links i { margin-right: 4px; color: var(--pxm-accent); }

/* ---------- Header: logo, search, actions ---------- */
/* Logo left, search in the middle of the page, account/wishlist/cart right. Both side columns get the same minimum
   (room for the account + wishlist + cart block), so the search stays centred and narrows on smaller laptops. */
.pxm-main__inner { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(0, 680px) minmax(320px, 1fr); align-items: center; gap: 40px; height: 90px; }
.pxm-logo { display: inline-flex; align-items: center; flex: 0 0 auto; justify-self: start; }
.pxm-logo img { height: 38px; width: auto; }
.pxm-logo span { font-size: 28px; font-weight: 700; color: var(--pxm-accent); }

.pxm-search { position: relative; display: flex; flex: 1 1 auto; width: 100%; max-width: 680px; justify-self: center; height: 50px; border: 2px solid var(--pxm-navy); border-radius: var(--pxm-radius); background: #fff; }
.pxm-search__cat { position: relative; display: flex; align-items: center; border-right: 1px solid var(--pxm-line); }
.pxm-search__cat select { appearance: none; -webkit-appearance: none; height: 100%; max-width: 170px; padding: 0 34px 0 18px; border: 0; background: transparent; font-size: 13px; font-weight: 500; color: var(--pxm-ink); cursor: pointer; outline: none; }
.pxm-search__cat i { position: absolute; right: 14px; pointer-events: none; font-size: 14px; }
.pxm-search__field { position: relative; flex: 1 1 auto; display: flex; align-items: center; }
.pxm-search__field i { position: absolute; left: 18px; color: var(--pxm-muted); font-size: 16px; }
.pxm-search__field input { width: 100%; height: 100%; border: 0; padding: 0 16px 0 46px; font-size: 14px; color: var(--pxm-ink); background: transparent; outline: none; }
.pxm-search__field input::placeholder { color: var(--pxm-muted); }
.pxm-search__btn { flex: 0 0 auto; height: calc(100% + 4px); margin: -2px -2px -2px 0; padding: 0 28px; border: 0; border-radius: 0 var(--pxm-radius) var(--pxm-radius) 0; background: var(--pxm-navy); color: #fff; font-size: 14px; font-weight: 600; }
.pxm-search__btn:hover { background: var(--pxm-accent); }
.pxm-search .panel--search-result { top: calc(100% + 2px); }
.pxm-search .panel--search-result.active { opacity: 1; visibility: visible; transform: none; }

.pxm-actions { display: flex; align-items: center; gap: 26px; justify-self: end; }
.pxm-action { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: var(--pxm-ink); line-height: 1.1; cursor: pointer; }
.pxm-action > i, .pxm-action__icon > i { font-size: 24px; }
.pxm-action:hover { color: var(--pxm-accent); }
.pxm-header .pxm-action__icon { position: relative; display: inline-flex; }
.pxm-header .pxm-action__text { display: flex; flex-direction: column; text-align: left; }
.pxm-action__text small, .pxm-action__text b { font-family: var(--pxm-font-heading); font-synthesis: none; text-transform: none; }
.pxm-action__text small { font-size: 11px; color: var(--pxm-muted); }
.pxm-action__text b { font-size: 14px; font-weight: 500; }
.pxm-header .header-cart span { position: relative; inset: auto; width: auto; height: auto; border-radius: 0; background: none; color: inherit; font-size: inherit; line-height: inherit; text-align: left; }
.pxm-header .header-cart .pxm-count, .pxm-count { position: absolute; inset: auto; top: -6px; right: -9px; width: auto; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--pxm-accent); color: #fff; font-size: 10px; font-weight: 700; line-height: 18px; text-align: center; }
.pxm-header .header-cart { position: static; margin: 0; font-size: inherit; }

/* ---------- Header: departments + menu ---------- */
.pxm-nav { border-bottom: 1px solid var(--pxm-line-soft); }
.pxm-nav__inner { display: flex; align-items: center; height: 54px; gap: 36px; }

.pxm-dept { position: relative; flex: 0 0 272px; align-self: stretch; z-index: 50; }
.pxm-dept__toggle { display: flex; align-items: center; gap: 14px; width: 100%; height: 100%; padding: 0 20px; border: 0; border-radius: var(--pxm-radius) var(--pxm-radius) 0 0; background: var(--pxm-surface); color: var(--pxm-ink); font-size: 14px; font-weight: 600; text-align: left; }
.pxm-dept__toggle > i:first-child { font-size: 18px; }
.pxm-dept__caret { margin-left: auto; transition: transform .2s ease; }
.pxm-dept.is-open .pxm-dept__caret { transform: rotate(180deg); }
.pxm-dept__menu { position: absolute; top: 100%; left: 0; width: 100%; background: #fff; border: 1px solid var(--pxm-line); border-top: 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s ease; }
.pxm-dept.is-open .pxm-dept__menu, .pxm-dept:not(.is-home):hover .pxm-dept__menu { opacity: 1; visibility: visible; transform: none; }
.pxm-dept__list > li { position: relative; border-bottom: 1px solid var(--pxm-line-soft); }
.pxm-dept__list > li:last-child { border-bottom: 0; }
.pxm-dept__list > li > a { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px 0 18px; font-size: 12.5px; font-weight: 500; color: var(--pxm-ink); }
.pxm-dept__list > li > a > span:not(.pxm-dept__tag) { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pxm-dept__list > li > a:hover { color: var(--pxm-accent); }
.pxm-dept__icon { width: 20px; font-size: 17px; text-align: center; color: var(--pxm-ink); }
.pxm-dept__list > li > a:hover .pxm-dept__icon { color: var(--pxm-accent); }
.pxm-dept__arrow { flex: 0 0 auto; font-size: 13px; color: var(--pxm-muted); }
.pxm-dept__tag { flex: 0 0 auto; padding: 3px 8px; border-radius: 12px; background: var(--pxm-red); color: #fff; font-size: 10px; font-weight: 700; line-height: 1; }
.pxm-dept__sub { position: absolute; top: -1px; left: 100%; min-width: 260px; min-height: calc(100% + 2px); padding: 18px 22px; background: #fff; border: 1px solid var(--pxm-line); box-shadow: 0 12px 30px rgba(17, 24, 39, .08); opacity: 0; visibility: hidden; transform: translateX(6px); transition: all .2s ease; }
.pxm-dept__list > li:hover > .pxm-dept__sub { opacity: 1; visibility: visible; transform: none; }
.pxm-dept__sub-title { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.pxm-dept__sub li a { display: block; padding: 5px 0; font-size: 13px; color: var(--pxm-text); }
.pxm-dept__sub li a:hover { color: var(--pxm-accent); }

.pxm-menu { flex: 1 1 auto; }
.pxm-menu__list { display: flex; align-items: center; gap: 30px; }
.pxm-menu__list > li { position: relative; }
.pxm-menu__list > li > a { display: inline-flex; align-items: center; gap: 7px; height: 54px; font-size: 14px; font-weight: 500; color: var(--pxm-ink); }
.pxm-menu__list > li > a i:not(.pxm-menu__caret) { font-size: 17px; }
.pxm-menu__list > li:hover > a, .pxm-menu__list > li.is-active > a { color: var(--pxm-accent); }
.pxm-menu__caret { font-size: 12px; }
.pxm-menu__sub { position: absolute; top: 100%; left: -20px; z-index: 60; min-width: 240px; padding: 10px 0; background: #fff; border: 1px solid var(--pxm-line); border-radius: 0 0 var(--pxm-radius) var(--pxm-radius); box-shadow: 0 12px 30px rgba(17, 24, 39, .08); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s ease; }
.pxm-menu__list > li:hover > .pxm-menu__sub { opacity: 1; visibility: visible; transform: none; }
.pxm-menu__sub a { display: block; padding: 7px 20px; font-size: 13px; color: var(--pxm-text); }
.pxm-menu__sub a:hover { color: var(--pxm-accent); }
.pxm-menu__sub .pxm-menu__caret { display: none; }

.pxm-nav__promo { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--pxm-ink); }
.pxm-nav__promo-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--pxm-red); color: #fff; font-size: 12px; }
.pxm-nav__promo-text { display: flex; flex-direction: column; line-height: 1.15; }
.pxm-nav__promo-text small { font-size: 10px; color: var(--pxm-muted); }
.pxm-nav__promo-text b { font-size: 13px; font-weight: 600; }
.pxm-nav__promo:hover b { color: var(--pxm-accent); }

/* ---------- Home: hero slider ---------- */
.pxm-home { padding-bottom: 20px; }
.pxm-hero { padding-top: 30px; }
.pxm-hero__grid.has-dept { padding-left: 302px; }
.pxm-slider { position: relative; height: 464px; overflow: hidden; border-radius: 2px; background: var(--pxm-surface); }
.pxm-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s ease; }
.pxm-slide.is-active { opacity: 1; visibility: visible; }
.pxm-slide__content { position: relative; z-index: 2; flex: 0 0 48%; padding: 0 0 20px 60px; }
.pxm-slide__label { display: inline-flex; align-items: center; height: 23px; padding: 0 15px; border-radius: 23px; background: var(--pxm-accent-soft); color: var(--pxm-accent); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.pxm-slide__title { margin: 20px 0 16px; font-size: 30px; line-height: 1.2; }
.pxm-slide__title span { display: block; font-size: 22px; font-weight: 300; }
.pxm-slide__title b { display: block; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pxm-slide__text { margin: 0 0 30px; font-size: 16px; color: var(--pxm-ink); }
.pxm-slide__text b { font-size: 22px; font-weight: 600; color: var(--pxm-red); }
.pxm-slide__media { flex: 1 1 auto; align-self: stretch; display: flex; align-items: center; justify-content: center; padding: 30px 40px 30px 0; }
.pxm-slide__media img { max-width: 100%; max-height: 400px; object-fit: contain; mix-blend-mode: multiply; }
.pxm-slide.is-text .pxm-slide__content { flex-basis: 100%; }
.pxm-slider__dots { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.pxm-slider__dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: #C5CCD6; }
.pxm-slider__dots button.is-active { background: var(--pxm-accent); }

/* ---------- Home: brands ---------- */
.pxm-brands__row { display: grid; grid-template-columns: repeat(6, 1fr); align-items: center; gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--pxm-line-soft); }
.pxm-brands__row img { display: block; max-height: 36px; max-width: 140px; margin: 0 auto; object-fit: contain; filter: grayscale(1); opacity: .55; transition: all .2s ease; }
.pxm-brands__row a:hover img { filter: none; opacity: 1; }

/* ---------- Home: body grid ---------- */
.pxm-body { padding-top: 40px; }
.pxm-body__grid { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 30px; align-items: start; }
.pxm-side { display: flex; flex-direction: column; gap: 40px; }
.pxm-main-col { min-width: 0; }
.pxm-block { margin-top: 40px; }
.pxm-main-col > :first-child { margin-top: 0; }

.pxm-iconboxes { border: 1px solid var(--pxm-line); border-radius: 2px; }
.pxm-iconbox { display: flex; gap: 16px; padding: 22px 20px; }
.pxm-iconbox + .pxm-iconbox { border-top: 1px solid var(--pxm-line); }
.pxm-iconbox > i { flex: 0 0 28px; font-size: 24px; color: var(--pxm-ink); }
.pxm-iconbox h5 { margin: 0 0 6px; font-size: 13px; font-weight: 500; }
.pxm-iconbox p { margin: 0; font-size: 12px; line-height: 1.55; color: var(--pxm-muted); }
.pxm-iconbox p a { color: var(--pxm-accent); }

.pxm-widget__title { margin: 0 0 18px; font-size: 18px; font-weight: 400; }

.pxm-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; margin-bottom: 26px; border-bottom: 1px solid var(--pxm-line-soft); }
.pxm-head__title { margin: 0; font-size: 20px; font-weight: 400; }
.pxm-head__link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--pxm-accent) !important; white-space: nowrap; }
.pxm-head__link:hover { color: var(--pxm-accent-dark) !important; }

/* ---------- Banners ---------- */
.pxm-banner { position: relative; display: flex; align-items: center; overflow: hidden; background: var(--pxm-surface); border-radius: 2px; }
.pxm-banner__content { position: relative; z-index: 2; flex: 0 0 auto; }
.pxm-banner__label { display: block; margin-bottom: 8px; font-size: 10px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--pxm-accent); }
.pxm-banner__title { margin: 0 0 8px; font-size: 26px; font-weight: 600; line-height: 1.2; }
.pxm-banner__title a:hover { color: var(--pxm-accent); }
.pxm-banner__text { margin: 0 0 18px; font-size: 14px; color: var(--pxm-text); }
.pxm-banner__text b.is-red { color: var(--pxm-red); font-weight: 600; }
.pxm-banner__text del { color: var(--pxm-muted); font-size: 13px; }
.pxm-banner__media { display: flex; align-items: center; justify-content: center; }
.pxm-banner__media img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .4s ease; }
.pxm-banner:hover .pxm-banner__media img { transform: scale(1.04); }

.pxm-promos { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.pxm-banner--promo { height: 210px; padding: 0 0 0 30px; }
.pxm-banner--promo .pxm-banner__content { width: 58%; }
.pxm-banner--promo .pxm-banner__title { font-size: 24px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pxm-banner--promo .pxm-banner__media { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; padding: 18px 18px 18px 0; }

.pxm-banner--wide { height: 200px; padding: 0 0 0 46px; }
.pxm-banner--wide .pxm-banner__content { width: 55%; }
.pxm-banner--wide .pxm-banner__media { position: absolute; top: 0; right: 0; bottom: 0; width: 42%; padding: 16px 40px 16px 0; }

.pxm-banner--side { flex-direction: column; align-items: stretch; height: 440px; padding: 34px 26px 0; }
.pxm-banner--side .pxm-banner__title { font-size: 22px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pxm-banner--side .pxm-banner__media { flex: 1 1 auto; min-height: 0; padding: 20px 0 24px; }

.pxm-banner--cat { flex-direction: column; align-items: stretch; height: 360px; padding: 28px 22px 0; }
.pxm-banner--cat .pxm-banner__title { font-size: 22px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pxm-banner--cat .pxm-banner__media { flex: 1 1 auto; min-height: 0; padding: 16px 0 20px; }

/* ---------- Product cards ---------- */
.pxm-grid { display: grid; gap: 30px 30px; }
.pxm-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pxm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.pxm-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.pxm-card__thumb { position: relative; margin-bottom: 16px; }
.pxm-card__img { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; padding: 10px; }
.pxm-card__img img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .35s ease; }
.pxm-card:hover .pxm-card__img img { transform: scale(1.04); }
.pxm-card__badges { position: absolute; top: 0; left: 0; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.pxm-card__wish { position: absolute; top: 0; right: 0; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--pxm-line); background: #fff; color: var(--pxm-ink) !important; font-size: 13px; }
.pxm-card__wish:hover { border-color: var(--pxm-accent); color: var(--pxm-accent) !important; }
.pxm-card__wish .fas { color: var(--pxm-accent); }
.pxm-card__title { margin: 0 0 8px; font-size: 14px; font-weight: 500; line-height: 1.4; min-height: 2.8em; }
.pxm-card__title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pxm-card__title a:hover { color: var(--pxm-accent); }
.pxm-card__buy { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 10px; }
.pxm-card__meta { margin-top: 8px; font-size: 11px; color: var(--pxm-muted); }
.pxm-card__meta .is-green { color: var(--pxm-green); font-weight: 500; }
.pxm-card__stock { margin-top: 4px; font-size: 11px; color: var(--pxm-red); }

.pxm-rating { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.pxm-stars { position: relative; display: inline-block; font-size: 11px; line-height: 1; letter-spacing: 2px; color: #D9DEE5; }
.pxm-stars::before { content: '★★★★★'; }
.pxm-stars span { position: absolute; top: 0; left: 0; overflow: hidden; white-space: nowrap; color: var(--pxm-star); }
.pxm-stars span::before { content: '★★★★★'; }
.pxm-rating__count { color: var(--pxm-ink); font-size: 12px; }

.pxm-price { display: flex; flex-direction: column; line-height: 1.2; }
.pxm-price del { font-size: 14px; color: var(--pxm-muted); }
.pxm-price__now { font-size: 21px; font-weight: 500; color: var(--pxm-ink); }
.pxm-price.is-sale .pxm-price__now { color: var(--pxm-red); }
.pxm-cart-btn { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--pxm-line); border-radius: 5px; background: #fff; color: var(--pxm-accent) !important; font-size: 15px; }
.pxm-cart-btn:hover, .pxm-cart-btn.loading { background: var(--pxm-accent); border-color: var(--pxm-accent); color: #fff !important; }

/* ---------- Deal of the week, trending ---------- */
.pxm-deal { position: relative; padding: 24px 20px 20px; border-radius: var(--pxm-radius); background: #fff; box-shadow: 0 0 0 1px var(--pxm-line-soft), 0 6px 20px rgba(17, 24, 39, .07); text-align: center; }
.pxm-deal .pxm-card__badges { top: 20px; left: 20px; }
.pxm-deal .pxm-card__wish { top: 20px; right: 20px; }
.pxm-deal__img { display: flex; align-items: center; justify-content: center; height: 200px; margin-bottom: 14px; }
.pxm-deal__img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.pxm-deal__title { margin: 0 0 8px; font-size: 13px; font-weight: 500; line-height: 1.45; }
.pxm-deal__title a { color: var(--pxm-accent); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pxm-deal .pxm-rating { justify-content: center; margin-bottom: 8px; }
.pxm-deal .pxm-price { flex-direction: row-reverse; justify-content: center; align-items: baseline; gap: 6px; }
.pxm-deal .pxm-card__meta { padding-bottom: 14px; border-bottom: 1px solid var(--pxm-line-soft); }
.pxm-countdown { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 16px; }
.pxm-countdown span { min-width: 34px; height: 34px; padding: 0 4px; border-radius: 4px; background: var(--pxm-surface); font-size: 13px; font-weight: 600; line-height: 34px; }
.pxm-countdown i { font-style: normal; font-weight: 600; color: var(--pxm-muted); }
.pxm-deal__note { margin: 10px 0 0; font-size: 11px; color: var(--pxm-muted); }

.pxm-mini-list { display: flex; flex-direction: column; gap: 22px; }
.pxm-mini { display: flex; gap: 16px; align-items: center; }
.pxm-mini__img { flex: 0 0 70px; height: 70px; display: flex; align-items: center; justify-content: center; }
.pxm-mini__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pxm-mini__title { margin: 0 0 6px; font-size: 13px; font-weight: 500; line-height: 1.4; }
.pxm-mini__title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pxm-mini__title a:hover { color: var(--pxm-accent); }
.pxm-mini .pxm-price { flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: 6px; }
.pxm-mini .pxm-price__now { font-size: 18px; }
.pxm-mini .pxm-price del { font-size: 13px; }

/* ---------- Latest deals ---------- */
.pxm-deals { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.pxm-deal-row { display: flex; gap: 22px; align-items: center; padding: 22px; border: 1px solid var(--pxm-line); border-radius: var(--pxm-radius); }
.pxm-deal-row__img { position: relative; flex: 0 0 130px; height: 130px; display: flex; align-items: center; justify-content: center; }
.pxm-deal-row__img .pxm-pill { position: absolute; top: 0; left: 0; z-index: 2; }
.pxm-deal-row__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pxm-deal-row__body { flex: 1 1 auto; min-width: 0; }
.pxm-deal-row .pxm-card__title { min-height: 0; }
.pxm-deal-row .pxm-price { flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: 8px; margin-top: 8px; }
.pxm-progress { height: 6px; margin-top: 12px; border-radius: 10px; background: #EEF0F3; overflow: hidden; }
.pxm-progress span { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--pxm-accent), #F05BB8); }
.pxm-deal-row__stock { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: var(--pxm-muted); }
.pxm-deal-row__stock b { color: var(--pxm-ink); }

/* ---------- Coupon / delivery strip ---------- */
.pxm-strip { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 90px; padding: 18px 30px; overflow: hidden; border-radius: 2px; background-color: var(--pxm-navy); background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 18px 18px; color: #fff; }
.pxm-strip h4 { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: #fff !important; }
.pxm-strip p { margin: 0; font-size: 12px; color: rgba(255, 255, 255, .6); }
.pxm-strip__code { display: inline-flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; letter-spacing: .03em; white-space: nowrap; }
.pxm-strip__code i { font-size: 20px; color: #F05BB8; }

/* ---------- Category block ---------- */
.pxm-catblock { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 30px; align-items: start; }
.pxm-catblock__side { display: flex; flex-direction: column; border: 1px solid var(--pxm-line); border-radius: 2px; overflow: hidden; }
.pxm-catblock__side .pxm-banner { border-radius: 0; }
.pxm-catblock__list { padding: 22px 20px; }
.pxm-catblock__list h5 { margin: 0 0 12px; font-size: 13px; font-weight: 600; }
.pxm-catblock__list a { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 12px; color: var(--pxm-muted); }
.pxm-catblock__list a:hover { color: var(--pxm-accent); }

/* ---------- Category cards ---------- */
.pxm-catcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.pxm-catcard { display: flex; gap: 26px; align-items: center; padding: 26px 28px; border: 1px solid var(--pxm-line); border-radius: 2px; }
.pxm-catcard__img { flex: 0 0 110px; height: 110px; display: flex; align-items: center; justify-content: center; }
.pxm-catcard__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pxm-catcard__img i { font-size: 54px; color: var(--pxm-accent); }
.pxm-catcard__body h4 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.pxm-catcard__body h4 a:hover { color: var(--pxm-accent); }
.pxm-catcard__body li a { display: block; padding: 3px 0; font-size: 12px; color: var(--pxm-muted); }
.pxm-catcard__body li a:hover { color: var(--pxm-accent); }
.pxm-catcard__all { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--pxm-accent) !important; }

/* ---------- Footer ---------- */
.pxm-footer { margin-top: 60px; }
.pxm-newsletter { background: var(--pxm-navy); color: #fff; }
.pxm-newsletter__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 46px 0; }
.pxm-newsletter__text h4 { margin: 0 0 6px; font-size: 22px; font-weight: 600; color: #fff !important; }
.pxm-newsletter__text p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .65); }
.pxm-newsletter__text b { color: #F05BB8; font-weight: 500; }
.pxm-newsletter__form { flex: 0 0 440px; }
.pxm-newsletter__form .input-group { display: flex; flex-wrap: nowrap; margin: 0 !important; height: 50px; padding: 0; border-radius: var(--pxm-radius); background: #fff; overflow: hidden; }
.pxm-newsletter__form input[type=email] { flex: 1 1 auto; height: 100%; padding: 0 18px; border: 0 !important; background: #fff; font-size: 13px; color: var(--pxm-ink); outline: none; box-shadow: none !important; }
.pxm-newsletter__form button[type=submit] { flex: 0 0 auto; height: 100%; padding: 0 26px; border: 0; border-radius: 0; background: var(--pxm-accent); color: #fff; font-size: 13px; font-weight: 600; }
.pxm-newsletter__form button[type=submit]:hover { background: var(--pxm-accent-dark); }
.pxm-newsletter__form .newsletter-message { margin-top: 8px; font-size: 12px; color: #fff; }
.pxm-newsletter__form .newsletter-error-message { color: #FFB4B4; }

.pxm-footer__links { padding: 60px 0 40px; background: var(--pxm-surface); }
.pxm-footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.pxm-footer__col h5 { margin: 0 0 22px; font-size: 14px; font-weight: 600; }
.pxm-footer__col li a { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; color: var(--pxm-muted); }
.pxm-footer__col li a:hover { color: var(--pxm-accent); }

.pxm-footer__bottom { padding: 34px 0 30px; background: #fff; }
.pxm-footer__brand { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.pxm-social { display: flex; gap: 8px; }
.pxm-social a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #E9ECF0; color: var(--pxm-ink) !important; font-size: 13px; }
.pxm-social a:hover { background: var(--pxm-accent); color: #fff !important; }
.pxm-footer__tags { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 22px; padding-bottom: 26px; border-bottom: 1px solid var(--pxm-line-soft); font-size: 12px; }
.pxm-footer__tags a { padding: 0 10px; border-right: 1px solid #C9CFD8; line-height: 1.1; }
.pxm-footer__tags a:first-child { padding-left: 0; }
.pxm-footer__tags a:last-child { border-right: 0; }
.pxm-footer__tags a:hover { color: var(--pxm-accent); }
.pxm-footer__copy { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; }
.pxm-footer__copy p { margin: 0; font-size: 11px; color: var(--pxm-muted); }
.pxm-payments { display: flex; gap: 8px; }
.pxm-payments span { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 4px; background: var(--pxm-surface); font-size: 11px; font-weight: 700; color: var(--pxm-navy); }

/* ---------- Responsive ---------- */
@media (max-width: 1399px) {
    .pxm-grid { gap: 26px 20px; }
    .pxm-promos, .pxm-deals { gap: 20px; }
    .pxm-banner--promo .pxm-banner__title { font-size: 20px; }
}

@media (max-width: 1199px) {
    .pxm-hero { padding-top: 16px; }
    .pxm-hero__grid.has-dept { padding-left: 0; }
    .pxm-body__grid { grid-template-columns: minmax(0, 1fr); }
    .pxm-side { order: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
    .pxm-banner--side { height: auto; min-height: 380px; }
    .pxm-catblock { grid-template-columns: 240px minmax(0, 1fr); }
    .pxm-catcards { grid-template-columns: 1fr 1fr; }
    .pxm-footer__cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
    .pxm-slider { height: 380px; }
    .pxm-slide__content { padding-left: 36px; }
    .pxm-slide__title { font-size: 24px; }
    .pxm-slide__title span { font-size: 18px; }
    .pxm-grid--4, .pxm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pxm-promos, .pxm-deals { grid-template-columns: 1fr; }
    .pxm-catblock { grid-template-columns: minmax(0, 1fr); }
    .pxm-catblock__side { display: grid; grid-template-columns: 1fr 1fr; }
    .pxm-catcards { grid-template-columns: 1fr; }
    .pxm-newsletter__inner { flex-direction: column; align-items: stretch; text-align: center; }
    .pxm-newsletter__form { flex-basis: auto; }
}

@media (max-width: 767px) {
    .pxm-slider { height: auto; }
    .pxm-slide { position: relative; display: none; flex-direction: column-reverse; justify-content: flex-end; opacity: 1; visibility: visible; }
    .pxm-slide.is-active { display: flex; }
    .pxm-slide__media { flex: 0 0 200px; width: 100%; padding: 20px 20px 0; }
    .pxm-slide__media img { max-height: 180px; }
    .pxm-slide__content { flex: 0 0 auto; width: 100%; padding: 16px 22px 46px; }
    .pxm-slide.is-text { justify-content: center; }
    .pxm-slide__title { font-size: 20px; margin: 14px 0 10px; }
    .pxm-slide__title span { font-size: 16px; }
    .pxm-slide__text { margin-bottom: 18px; }
    .pxm-slide__text b { font-size: 18px; }
    .pxm-brands__row { grid-template-columns: repeat(3, 1fr); }
    .pxm-body { padding-top: 26px; }
    .pxm-block { margin-top: 32px; }
    .pxm-side { grid-template-columns: 1fr; }
    .pxm-grid--4, .pxm-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
    .pxm-price__now { font-size: 17px; }
    .pxm-price del { font-size: 12px; }
    .pxm-banner--promo, .pxm-banner--wide { height: 170px; padding-left: 20px; }
    .pxm-banner--promo .pxm-banner__title, .pxm-banner--wide .pxm-banner__title { font-size: 18px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .pxm-banner--wide .pxm-banner__content { width: 58%; }
    .pxm-banner--promo .pxm-banner__content { width: 54%; }
    .pxm-banner--wide .pxm-banner__media { padding-right: 16px; }
    .pxm-deal-row { padding: 16px; gap: 14px; }
    .pxm-deal-row__img { flex-basis: 96px; height: 96px; }
    .pxm-strip { flex-direction: column; align-items: flex-start; padding: 20px; }
    .pxm-catblock__side { grid-template-columns: 1fr; }
    .pxm-catcard { padding: 20px; gap: 18px; }
    .pxm-catcard__img { flex-basis: 80px; height: 80px; }
    .pxm-head__title { font-size: 18px; }
    .pxm-footer { margin-top: 40px; }
    .pxm-footer__links { padding: 40px 0 26px; }
    .pxm-footer__brand, .pxm-footer__copy { flex-direction: column; align-items: flex-start; }
    .pxm-payments { flex-wrap: wrap; }
}
