/*
Theme Name:   Customify Child
Theme URI:    https://tourcentr.com/
Description:  Дочерняя тема TourCentr на базе Customify
Author:       TourCentr
Author URI:   https://tourcentr.com/
Template:     customify
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  customify-child
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Onest:wght@300;400;500;600;700&display=swap');

/* =====================================================================
   TourCentr — переопределения Customify
   Палитра: rice / charcoal / terracotta
   Шрифты: Cormorant Garamond (заголовки) + Onest (текст)
   ===================================================================== */

:root{
  --tc-rice-50:#faf8f5;
  --tc-rice-100:#f4efeb;
  --tc-rice-200:#e9e1d6;
  --tc-charcoal-200:#d7d5d0;
  --tc-charcoal-500:#676359;
  --tc-charcoal-700:#393630;
  --tc-charcoal-900:#171614;
  --tc-terracotta-700:#913d26;
  --tc-terracotta-800:#763321;
  --tc-serif:"Cormorant Garamond",Georgia,"Times New Roman",serif;
  --tc-sans:"Onest",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}

/* ---------- Body и заголовки ---------- */
body{
  color:var(--tc-charcoal-700);
  font-family:var(--tc-sans);
  font-weight:400;
  line-height:1.618;
  background:var(--tc-rice-50);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

h1,h2,h3,h4,h5,h6,
.h1,.h2,.h3,.h4,.h5,.h6,
.comments-area .comment-reply-title{
  font-family:var(--tc-serif);
  font-weight:500;
  color:var(--tc-charcoal-900);
  letter-spacing:-0.01em;
}

/* ---------- Ссылки ---------- */
a{color:#252320;transition:color .18s ease-out}
a:hover,a:focus{color:var(--tc-terracotta-700)}

.link-meta,.link-meta a,.color-meta{color:var(--tc-charcoal-500)}
.link-meta a:hover{color:var(--tc-charcoal-900)}

/* ---------- Формы ---------- */
input[type=text],
input[type=email],
input[type=url],
input[type=password],
input[type=search],
input[type=number],
input[type=tel],
input[type=range],
input[type=date],
input[type=month],
input[type=week],
input[type=time],
input[type=datetime],
input[type=datetime-local],
input[type=color],
select,
textarea,
.select2-container .select2-selection--single{
  color:var(--tc-charcoal-900);
  background:var(--tc-rice-50);
  border:1px solid var(--tc-charcoal-200);
  box-shadow:none;
  font-family:var(--tc-sans);
  border-radius:2px;
}
input[type=text]:focus,
input[type=email]:focus,
input[type=url]:focus,
input[type=password]:focus,
input[type=search]:focus,
input[type=number]:focus,
input[type=tel]:focus,
input[type=range]:focus,
input[type=date]:focus,
input[type=month]:focus,
input[type=week]:focus,
input[type=time]:focus,
input[type=datetime]:focus,
input[type=datetime-local]:focus,
input[type=color]:focus,
select:focus,
textarea:focus,
.select2-container .select2-selection--single:focus{
  border-color:#b04f34;
  outline:none;
  background:var(--tc-rice-50);
  box-shadow:0 0 0 3px rgba(176,79,52,.12);
}
::placeholder{color:#8d897f;opacity:1}
label{color:#252320}

/* ---------- Кнопки ---------- */
body:not(.fl-builder-edit) .button,
body:not(.fl-builder-edit) button:not(.menu-mobile-toggle,.components-button,.customize-partial-edit-shortcut-button),
body:not(.fl-builder-edit) input[type=button]:not(.ed_button),
.button:not(.components-button):not(.customize-partial-edit-shortcut-button),
input[type=button]:not(.ed_button),
input[type=reset]:not(.components-button):not(.customize-partial-edit-shortcut-button),
input[type=submit]:not(.components-button):not(.customize-partial-edit-shortcut-button),
.wc-block-cart__submit .wp-element-button{
  color:var(--tc-rice-50);
  background:var(--tc-charcoal-900);
  font-family:var(--tc-sans);
  font-weight:500;
  text-transform:none;
  letter-spacing:.02em;
  border-radius:2px;
  transition:background-color .18s,border-color .18s,color .18s;
}
body:not(.fl-builder-edit) .button:hover,
body:not(.fl-builder-edit) button:not(.menu-mobile-toggle,.components-button,.customize-partial-edit-shortcut-button):hover,
body:not(.fl-builder-edit) input[type=button]:not(.ed_button):hover,
input[type=submit]:not(.components-button):not(.customize-partial-edit-shortcut-button):hover{
  background:var(--tc-terracotta-700);
  color:var(--tc-rice-50);
  box-shadow:none;
}

/* ---------- Хедер ---------- */
.header--row .light-mode{
  background:rgba(250,248,245,.92);
  color:var(--tc-charcoal-700);
  box-shadow:none;
}
.header--row .dark-mode{
  background:var(--tc-charcoal-900);
  color:var(--tc-rice-100);
}
.header-main .light-mode{
  background:rgba(250,248,245,.92);
  box-shadow:0 1px 0 var(--tc-charcoal-200);
}
.header-top .light-mode{background:var(--tc-rice-100)}
.header-top .dark-mode{background:var(--tc-charcoal-900)}
.header-bottom .light-mode{
  background:var(--tc-rice-100);
  box-shadow:0 1px 0 var(--tc-charcoal-200);
}
.header-bottom .dark-mode{background:var(--tc-charcoal-900)}

.site-title,.site-title a,
.site-branding a,.site-branding .site-title{
  font-family:var(--tc-serif);
  font-weight:600;
  letter-spacing:.01em;
  text-transform:none;
  color:var(--tc-charcoal-900);
}
.site-branding .site-description{color:var(--tc-charcoal-500)}

/* Навигация */
.nav-menu-desktop .menu > li > a{
  font-family:var(--tc-sans);
  font-weight:500;
  text-transform:none;
  letter-spacing:0;
  font-size:.95em;
  color:var(--tc-charcoal-700);
}
.nav-menu-desktop .menu > li > a:hover,
.nav-menu-desktop .menu > li.current-menu-item > a,
.nav-menu-desktop .menu > li.current-menu-ancestor > a{
  color:var(--tc-terracotta-700);
}
.nav-menu-desktop .sub-menu{
  background:var(--tc-rice-50);
  border:1px solid var(--tc-charcoal-200);
  box-shadow:0 12px 28px -18px rgba(0,0,0,.35);
  border-radius:2px;
}
.nav-menu-desktop .sub-menu li a{
  color:#4d4a42;
  font-size:.92em;
}
.nav-menu-desktop .sub-menu li a:hover{
  background:var(--tc-rice-100);
  color:var(--tc-charcoal-900);
}

/* Кнопка в шапке */
.customify-builder-btn{
  background:var(--tc-charcoal-900);
  color:var(--tc-rice-50);
  font-family:var(--tc-sans);
  font-weight:500;
  text-transform:none;
  letter-spacing:.02em;
  border-radius:2px;
}
.customify-builder-btn:hover{
  background:var(--tc-terracotta-700);
  color:var(--tc-rice-50);
  box-shadow:none;
}

/* Поиск */
.header-search-modal,
.header-search-form .search-form-fields{
  background:var(--tc-rice-50);
  border-color:var(--tc-charcoal-200);
}

/* Мобильное меню Customify */
.header-menu-sidebar.dark-mode .header-menu-sidebar-bg:before{
  background:rgba(12,11,10,.96);
}
.header-menu-sidebar.dark-mode .nav-menu a,
.header-menu-sidebar.dark-mode .sub-menu a,
.header-menu-sidebar.dark-mode .item--html a,
.header-menu-sidebar.dark-mode .nav-menu .nav-toggle-icon{
  color:rgba(250,248,245,.82);
  font-family:var(--tc-sans);
}

/* ---------- Page titlebar / breadcrumb / cover ---------- */
.page-titlebar{
  background:var(--tc-rice-100);
  border-bottom:1px solid var(--tc-charcoal-200);
  color:#252320;
}
.page-breadcrumb{
  background:var(--tc-rice-50);
  border-bottom:1px solid var(--tc-charcoal-200);
  color:var(--tc-charcoal-500);
}
.page-breadcrumb-list a{color:#4d4a42}
.page-breadcrumb-list a:hover{color:var(--tc-terracotta-700)}

.page-cover:before{background-color:rgba(12,11,10,.45)}
.page-cover-title,.page-cover-tagline{
  color:var(--tc-rice-50);
  font-family:var(--tc-serif);
}

/* ---------- Site content / блог ---------- */
.site-content{background:var(--tc-rice-50)}

.posts-layout .entry-inner{border-bottom:1px solid var(--tc-charcoal-200)}
.posts-layout .readmore-button{
  border:1px solid var(--tc-charcoal-900);
  color:var(--tc-charcoal-900);
  background:transparent;
  font-family:var(--tc-sans);
  text-transform:none;
  letter-spacing:.02em;
  border-radius:2px;
}
.posts-layout .readmore-button:hover{
  background:var(--tc-charcoal-900);
  color:var(--tc-rice-50);
  border-color:var(--tc-charcoal-900);
}

.pagination .nav-links > *{
  border:1px solid var(--tc-charcoal-200);
  color:var(--tc-charcoal-500);
  border-radius:2px;
}
.pagination .nav-links > *:hover,
.pagination .nav-links span{
  border-color:var(--tc-charcoal-900);
  background:var(--tc-charcoal-900);
  color:var(--tc-rice-50);
}

article.comment .comment-post-author{
  background:var(--tc-terracotta-700);
  color:var(--tc-rice-50);
}

/* ---------- Сайдбар / виджеты ---------- */
.widget-area .widget-title,
.widget_block h1,.widget_block h2,.widget_block h3,.widget_block h4{
  font-family:var(--tc-sans);
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:var(--tc-charcoal-900);
  font-size:12px;
}

.widget-area .widget_pages li a,
.widget-area .widget_categories li a,
.widget-area .widget_archive li a,
.widget-area .widget_meta li a,
.widget-area .widget_nav_menu li a,
.widget-area .widget_product_categories li a,
.widget-area .widget_recent_entries li a,
.widget-area .widget_rss li a{
  border-bottom:1px solid var(--tc-charcoal-200);
  color:#4d4a42;
}
.widget-area .widget_pages li a:hover,
.widget-area .widget_categories li a:hover,
.widget-area .widget_archive li a:hover{
  color:var(--tc-terracotta-700);
}

.widget-area .widget ul li.cat-item .count,
.widget-area .widget ul li.woocommerce-widget-layered-nav-list__item .count{
  background:var(--tc-rice-200);
  color:var(--tc-charcoal-500);
}

.tagcloud a{
  border:1px solid #b7b4ac;
  color:var(--tc-charcoal-700);
  border-radius:2px;
}
.tagcloud a:hover{
  border-color:var(--tc-terracotta-700);
  color:var(--tc-terracotta-700);
}

/* ---------- Футер ---------- */
.site-footer{background:var(--tc-rice-100);color:#252320}
.footer--row-inner.light-mode{
  background:var(--tc-rice-100);
  color:var(--tc-charcoal-700);
}
.footer--row-inner.dark-mode{
  background:var(--tc-charcoal-900);
  color:var(--tc-rice-100);
}
.footer-top .light-mode{background:var(--tc-rice-100)}
.footer-main .light-mode{
  background:var(--tc-rice-100);
  border-top:1px solid var(--tc-charcoal-200);
}
.footer-bottom .light-mode{
  background:var(--tc-rice-200);
  border-top:1px solid var(--tc-charcoal-200);
}
.site-footer .widget-title,
.site-footer h1,.site-footer h2,.site-footer h3,.site-footer h4{
  font-family:var(--tc-sans);
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:var(--tc-charcoal-900);
  font-size:12px;
}
.footer-copyright{color:var(--tc-charcoal-500)}

/* ---------- WooCommerce ---------- */
.woocommerce .button.add_to_cart_button,
.woocommerce .button.alt,
.woocommerce .button.added_to_cart,
.woocommerce .button.checkout,
.woocommerce .button.product_type_variable,
.item--wc_cart .cart-icon .cart-qty .customify-wc-total-qty{
  background-color:var(--tc-charcoal-900);
  color:var(--tc-rice-50);
  border-radius:2px;
  text-transform:none;
  letter-spacing:.02em;
  font-weight:500;
}
.woocommerce .button.add_to_cart_button:hover,
.woocommerce .button.alt:hover,
.woocommerce .button.checkout:hover{
  background-color:var(--tc-terracotta-700);
}
.comment-form-rating a,
.star-rating,
.comment-form-rating a:hover,
.star-rating:hover{color:var(--tc-terracotta-700)}
span.onsale{background-color:var(--tc-terracotta-700);color:var(--tc-rice-50)}
.add_to_cart_button{background-color:#252320}

.woocommerce-tabs.wc-tabs-horizontal ul.tabs li.active,
.wc-svg-btn.active,
#review_form{border-color:var(--tc-terracotta-700)}
.wc-svg-btn.active,
.wc-single-tabs ul.tabs li.active a,
.wc-single-tabs .tab-section.active .tab-section-heading a{color:var(--tc-terracotta-700)}

/* ---------- Таблицы / цитаты / код ---------- */
blockquote{
  border-left:3px solid var(--tc-rice-200);
  color:var(--tc-charcoal-700);
  font-family:var(--tc-serif);
  font-style:italic;
  font-weight:400;
  font-size:1.25em;
  line-height:1.5;
}
table th{background:var(--tc-rice-100);color:#252320}
table tbody td{background:var(--tc-rice-50)}
table tbody tr:nth-child(2n) td{background:var(--tc-rice-100)}
pre,code,kbd,tt,var{
  background:var(--tc-rice-100);
  color:#252320;
  border-radius:2px;
}
hr{background-color:var(--tc-charcoal-200)}
mark,ins{background:#faeae4;color:var(--tc-charcoal-900)}
abbr,acronym{border-bottom:1px dotted var(--tc-charcoal-500)}

/* ---------- Скроллбар ---------- */
body::-webkit-scrollbar{width:10px;height:10px}
body::-webkit-scrollbar-track{background:var(--tc-rice-100)}
body::-webkit-scrollbar-thumb{
  background:#b7b4ac;
  border-radius:99px;
  border:2px solid var(--tc-rice-100);
}
body::-webkit-scrollbar-thumb:hover{background:#8d897f}