/*
Theme Name: Festoon
Theme URI: https://creative-converting.com/
Author: Creative Converting
Author URI: https://creative-converting.com/about
Description: A classic catalog theme for party tableware: bunting motif, five plate colors, wide product grids and a printable product page.
Version: 1.87.1810
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: festoon
Tags: blog, one-column, two-columns, right-sidebar, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
*/

@font-face {
  font-family: 'Rubik';
  src: url('assets/fonts/rubik.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Figtree';
  src: url('assets/fonts/figtree.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
  font-style: normal;
}

:root {
  --blue: #2b56b8;
  --blue-d: #1c3d8a;
  --red: #d5232c;
  --pink: #d31f74;
  --yellow: #f2c40c;
  --orange: #e8622a;
  --ink: #16181d;
  --ink-2: #4d525e;
  --ink-3: #767c8a;
  --line: #e3e0d9;
  --paper: #faf8f5;
  --card: #ffffff;
  --ac: var(--blue);
  --wrap: 1180px;
  --r: 14px;
  --shadow: 0 1px 2px rgba(22,24,29,.06), 0 8px 24px rgba(22,24,29,.06);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: 'Rubik', 'Figtree', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: 2.15rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin: .3em 0; }

a { color: var(--blue-d); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--red); }

img { max-width: 100%; height: auto; display: block; }

button { font: inherit; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* --- Классы ядра ------------------------------------------------------- */
.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--card);
  padding: .7em 1.2em;
  border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { left: 0; }
.site { min-height: 100vh; display: flex; flex-direction: column; }
.site-content { flex: 1 0 auto; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignwide { max-width: var(--wrap); }

.ft-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* --- Шапка -------------------------------------------------------------- */
.ft-hd {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.ft-hd-in {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  flex-wrap: wrap;
}
.site-branding { margin: 12px 0; }
.site-title { margin: 0; font-size: 1.34rem; line-height: 1.1; }
.site-title a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: 'Rubik', Arial, sans-serif;
  font-weight: 700;
}
.site-title a:hover { color: var(--blue-d); }
.ft-word { letter-spacing: -.02em; }
/* Знак сайта: три флажка гирлянды. Рисуются, а не грузятся. */
.ft-logo { display: inline-flex; gap: 3px; align-items: flex-start; }
.ft-logo i {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 17px solid var(--blue);
}
.ft-logo i:nth-child(2) { border-top-color: var(--red); margin-top: 4px; }
.ft-logo i:nth-child(3) { border-top-color: var(--yellow); }
.site-description {
  margin: 2px 0 0;
  font-size: .82rem;
  color: var(--ink-3);
  max-width: 34em;
}

/* --- Меню --------------------------------------------------------------- */
.ft-nav { margin-left: auto; }
.ft-nav .menu {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.ft-nav .menu > li > a {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
}
.ft-nav .menu > li > a:hover { background: var(--paper); color: var(--ink); }
.ft-nav .current-menu-item > a,
.ft-nav .current-menu-ancestor > a { color: var(--blue-d); background: #eef2fc; }
.ft-nav .menu-item-has-children { position: relative; }
.ft-nav .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  margin-left: 7px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}
.ft-nav .sub-menu {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 40;
}
.ft-nav .menu-item-has-children:hover > .sub-menu,
.ft-nav .menu-item-has-children:focus-within > .sub-menu { display: block; }
.ft-nav .sub-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink-2);
  font-size: .95rem;
}
.ft-nav .sub-menu a:hover { background: var(--paper); color: var(--ink); }
.ft-burger { display: none; }

/* --- Гирлянда ----------------------------------------------------------- */
/* Полоска флажков: два наклонных градиента дают ряд треугольников. */
.ft-bunting {
  height: 18px;
  background:
    repeating-linear-gradient(135deg, var(--blue) 0 9px, transparent 9px 18px),
    repeating-linear-gradient(45deg, var(--blue) 0 9px, transparent 9px 18px);
  background-color: transparent;
  background-size: 36px 18px;
  background-position: 0 0;
  opacity: .9;
}
.ft-bunting.b2 {
  background:
    repeating-linear-gradient(135deg, var(--red) 0 9px, transparent 9px 18px),
    repeating-linear-gradient(45deg, var(--red) 0 9px, transparent 9px 18px);
  background-size: 36px 18px;
}

/* --- Герой -------------------------------------------------------------- */
.ft-hero { background: var(--card); border-bottom: 1px solid var(--line); }
.ft-hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 44px 0 48px; }
.ft-hero h1 { font-size: 2.6rem; margin-bottom: .35em; }
.ft-hero p.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 34em; }
.ft-hero-shot {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.ft-hero-shot img { width: 100%; aspect-ratio: 14 / 9; object-fit: cover; object-position: center 42%; }
.ft-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.ft-facts li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .88rem;
  color: var(--ink-2);
  margin: 0;
}
.ft-facts b { color: var(--ink); font-weight: 600; }

/* --- Секции ------------------------------------------------------------- */
.ft-sec { padding: 46px 0; }
.ft-sec.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ft-sec-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.ft-sec-hd h2 { margin: 0; }
.ft-sec-hd p { margin: .35em 0 0; color: var(--ink-3); font-size: .95rem; }
.ft-more { font-weight: 600; white-space: nowrap; font-size: .95rem; }

/* --- Полки -------------------------------------------------------------- */
.ft-shelves { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.ft-shelf {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ac);
  border-radius: var(--r);
  padding: 16px;
  margin: 0;
}
.ft-shelf a { text-decoration: none; color: var(--ink); font-weight: 600; font-family: 'Rubik', Arial, sans-serif; }
.ft-shelf a:hover { color: var(--ac); }
.ft-shelf span { display: block; color: var(--ink-3); font-size: .85rem; font-weight: 400; margin-top: 4px; }
.ft-c1 { --ac: var(--blue); }
.ft-c2 { --ac: var(--red); }
.ft-c3 { --ac: var(--pink); }
.ft-c4 { --ac: var(--orange); }
.ft-c5 { --ac: #1a8a5a; }

/* --- Сетка товаров ------------------------------------------------------ */
.ft-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; }
.ft-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0;
  transition: box-shadow .15s ease, transform .15s ease;
}
.ft-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.ft-card-shot { display: block; background: #fff; border-bottom: 1px solid var(--line); }
.ft-card-shot img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; padding: 10px; }
.ft-card-body { padding: 14px 15px 0; flex: 1 0 auto; }
.ft-kind {
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ac);
  font-weight: 600;
  margin: 0 0 6px;
}
.ft-card h3 { font-size: 1rem; line-height: 1.32; margin: 0 0 8px; }
.ft-card h3 a { color: var(--ink); text-decoration: none; }
.ft-card h3 a:hover { color: var(--blue-d); }
.ft-card p.ft-blurb { font-size: .9rem; color: var(--ink-2); margin: 0 0 10px; }
.ft-meta { padding: 0 15px; margin-top: auto; }
.ft-price { font-family: 'Rubik', Arial, sans-serif; font-weight: 700; font-size: 1.28rem; }
.ft-was { color: var(--ink-3); text-decoration: line-through; font-size: .92rem; margin-left: 7px; font-weight: 400; }
.ft-pack { color: var(--ink-3); font-size: .86rem; }
.ft-rate { font-size: .86rem; color: var(--ink-2); display: flex; align-items: center; gap: 6px; margin: 6px 0 0; }
.ft-stars { color: var(--yellow); letter-spacing: 1px; font-size: .95rem; }
.ft-chip {
  display: inline-block;
  font-size: .76rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 10px;
  background: #fff4ec;
  color: #a34310;
  border: 1px solid #f6d6c1;
}
.ft-acts { display: flex; gap: 8px; padding: 12px 15px 15px; }
.ft-buy, .ft-look {
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: .93rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  flex: 1;
}
.ft-buy { background: var(--blue); color: #fff; }
.ft-buy:hover { background: var(--blue-d); }
.ft-look { background: var(--card); color: var(--ink-2); border-color: var(--line); }
.ft-look:hover { border-color: var(--ink-3); color: var(--ink); }

/* --- Хлебные крошки ----------------------------------------------------- */
.ft-crumbs { padding: 16px 0 0; font-size: .86rem; color: var(--ink-3); }
.ft-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ft-crumbs li { margin: 0; }
.ft-crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line); }

/* --- Страница рубрики --------------------------------------------------- */
.ft-page-hd { padding: 20px 0 28px; }
.ft-page-hd h1 { margin-bottom: .25em; }
.ft-page-hd p { color: var(--ink-2); max-width: 46em; margin: 0; }
.ft-count { color: var(--ink-3); font-size: .92rem; margin-top: 10px !important; }

/* --- Карточка товара ---------------------------------------------------- */
.ft-pdp { display: grid; grid-template-columns: 470px 1fr; gap: 40px; padding: 20px 0 10px; align-items: start; }
.ft-pdp-shot { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.ft-pdp-shot img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.entry-title { font-size: 2rem; }
.ft-buybox {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ac);
  border-radius: var(--r);
  padding: 18px 20px;
  margin: 20px 0;
}
.ft-buybox .ft-price { font-size: 1.9rem; }
.ft-buybox .ft-buy { display: inline-block; flex: none; padding: 12px 26px; font-size: 1rem; margin-top: 12px; }
.ft-buybox .ft-note { font-size: .82rem; color: var(--ink-3); margin: 10px 0 0; }
.ft-spec { border-collapse: collapse; width: 100%; margin: 0 0 20px; font-size: .95rem; }
.ft-spec th, .ft-spec td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ft-spec th { width: 38%; color: var(--ink-3); font-weight: 600; }
.ft-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.ft-tags li { margin: 0; }
.ft-tags a {
  display: inline-block;
  font-size: .84rem;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  text-decoration: none;
  color: var(--ink-2);
}
.ft-tags a:hover { border-color: var(--ac); color: var(--ac); }

/* --- Стена цветов ------------------------------------------------------- */
/* Плашка красится инлайновой переменной --sw: цвет у каждой метки свой и приходит
   из снимков, в таблице стилей его быть не может. */
.ft-wall { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }
.ft-wall li { margin: 0; }
.ft-wall a {
  display: block; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; height: 100%;
}
.ft-wall a:hover { border-color: var(--ac); }
.ft-sw { display: block; height: 74px; background: var(--sw, #ccc);
  border-bottom: 1px solid rgba(22,24,29,.10); }
.ft-wall-n { display: block; padding: 9px 12px 0; font-weight: 600; font-size: .9rem; }
.ft-wall-c { display: block; padding: 1px 12px 11px; color: var(--ink-3); font-size: .8rem; }
.ft-note-sm { color: var(--ink-3); font-size: .86rem; margin: 16px 0 0; max-width: 52em; }

/* --- Таблицы данных ----------------------------------------------------- */
.ft-tw { overflow-x: auto; }
.ft-table { width: 100%; border-collapse: collapse; font-size: .93rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.ft-table th, .ft-table td { padding: 9px 13px; text-align: left; border-bottom: 1px solid var(--line); }
.ft-table thead th { font-size: .76rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.ft-table tbody th { font-weight: 600; }
.ft-table td { color: var(--ink-2); }
.ft-table tbody tr:last-child th, .ft-table tbody tr:last-child td { border-bottom: 0; }
.ft-table tfoot th, .ft-table tfoot td { border-top: 2px solid var(--line); border-bottom: 0; }
.ft-table tfoot td:last-child { color: var(--ink); }

/* --- Планировщик -------------------------------------------------------- */
.ft-plan { display: grid; grid-template-columns: 260px 1fr; gap: 26px; align-items: start; }
.ft-plan-in { background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px 20px; }
.ft-fld { margin: 0 0 16px; }
.ft-fld:last-child { margin-bottom: 0; }
.ft-fld label, .ft-fld legend { display: block; font-size: .78rem; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 6px; padding: 0; }
.ft-fld input[type="number"] {
  width: 100%; font: inherit; font-size: 1.05rem; padding: 8px 11px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink);
}
.ft-fld input[type="number"]:focus { outline: 2px solid var(--ac); outline-offset: 1px; }
.ft-plan fieldset { border: 0; margin: 0 0 16px; padding: 0; }
.ft-plan fieldset label { display: flex; align-items: center; gap: 7px; margin-bottom: 3px;
  font-size: .92rem; letter-spacing: 0; text-transform: none; color: var(--ink-2); font-weight: 400; }
.ft-plan fieldset input { accent-color: var(--ac); }
.ft-plan-out { min-width: 0; overflow-x: auto; }

@media (max-width: 860px) {
  .ft-plan { grid-template-columns: 1fr; }
}

/* --- Текст -------------------------------------------------------------- */
.entry-content { max-width: 46em; }
.entry-content h2 { margin-top: 1.5em; }
.entry-content h3 { margin-top: 1.4em; }
.ft-lede { font-size: 1.1rem; color: var(--ink-2); }
.ft-notes { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; margin: 24px 0; }
.ft-notes h2 { margin-top: 0; font-size: 1.15rem; }
.ft-notes ul { margin: 0; padding-left: 1.15em; }
.ft-notes li { color: var(--ink-2); font-size: .96rem; }

/* --- Подвал ------------------------------------------------------------- */
.ft-ft { background: var(--card); border-top: 1px solid var(--line); margin-top: 50px; padding: 40px 0 26px; }
.ft-cols { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 34px; }
.ft-ft .widget-title { font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .9em; }
.ft-ft .menu { list-style: none; margin: 0; padding: 0; columns: 2; }
.ft-ft .widget_text .menu { columns: 1; }
.ft-ft .menu li { margin: 0 0 7px; }
.ft-ft .menu a { color: var(--ink-2); text-decoration: none; font-size: .93rem; }
.ft-ft .menu a:hover { color: var(--blue-d); text-decoration: underline; }
.ft-ft .textwidget p { font-size: .9rem; color: var(--ink-2); }
.ft-ft .ft-disc { font-size: .84rem; color: var(--ink-3); }
.site-info {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-info p { font-size: .84rem; color: var(--ink-3); margin: 0; }

/* --- Мелкие экраны ------------------------------------------------------ */
@media (max-width: 1080px) {
  .ft-grid { grid-template-columns: repeat(3, 1fr); }
  .ft-shelves { grid-template-columns: repeat(3, 1fr); }
  .ft-pdp { grid-template-columns: 380px 1fr; gap: 28px; }
}
@media (max-width: 860px) {
  .ft-hero-in { grid-template-columns: 1fr; gap: 26px; padding: 30px 0 34px; }
  .ft-hero h1 { font-size: 2.05rem; }
  .ft-pdp { grid-template-columns: 1fr; }
  .ft-cols { grid-template-columns: 1fr 1fr; }
  .ft-burger {
    display: block;
    margin-left: auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 11px;
    cursor: pointer;
  }
  .ft-burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }
  .ft-nav { margin-left: auto; width: 100%; }
  .ft-hd-in { padding-bottom: 6px; }
  .ft-nav .menu { display: none; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 10px; }
  .ft-nav.open .menu { display: flex; }
  .ft-nav .menu > li > a { padding: 11px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .ft-nav .sub-menu {
    position: static;
    display: block;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 14px;
    min-width: 0;
  }
  .ft-nav .menu-item-has-children > a::after { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .ft-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ft-shelves { grid-template-columns: repeat(2, 1fr); }
  .ft-cols { grid-template-columns: 1fr; gap: 24px; }
  .ft-sec { padding: 32px 0; }
  h1, .ft-hero h1 { font-size: 1.75rem; }
  .entry-title { font-size: 1.6rem; }
  .ft-sec-hd { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ft-acts { flex-direction: column; }
  .ft-card-body { padding: 12px 12px 0; }
  .ft-meta, .ft-acts { padding-left: 12px; padding-right: 12px; }
}

@media print {
  .ft-nav, .ft-ft, .ft-crumbs, .ft-acts, .ft-buy, .skip-link, .ft-bunting { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .ft-pdp { grid-template-columns: 1fr 1fr; }
}
