/*
 Theme Name: Custom Models Theme
 Author: Fansmodelsdb
 Version: 1.0
*/
:root {
  --main-color: #ee5b2b;
}
body {
  margin: 0;
  font-family: 'Sora', sans-serif;
  background: #fdfdfb!important;
  color: #626d84;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6{
  color: #1d2330!important;
  font-family: 'Sora', sans-serif;
}

.header {
  background: #fff;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1;
}
.logged-in .header{
  top: 32px;
}
.header .container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.header .logo img{
  width: 170px;
}
.header .logo span, .footer-logo span{
  font-size: 20px;
  font-weight: 700;
}
.header .logo a, .footer-logo a{
  text-decoration: none;
}
.logo-text-default{
  color: #1d2330;
}
.logo-text-orange{
  color: var(--main-color);
}
.logo-text-blue{
  color: #19a1e6;
}



/* Меню горизонтальное */
.header .nav-menu li {
  background-color: #f0ede680;
  padding: 10px 4px;
  margin-right: 0;
}

.header .nav-menu li:first-child {
  border-radius: 9999px 0 0 9999px;
}

.header .nav-menu li:nth-last-child(3) {
  border-radius: 0 9999px 9999px 0;
}
.header .nav-menu li:nth-last-child(2) {
  margin-left: auto;
  border-radius: 20px 0 0 20px;
}
.header .nav-menu li:last-child {
  border-radius: 0 20px 20px 0;
}

.nav-menu li {
  margin-right: 4px;
  position: relative;
}

.nav-menu li a {
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  color: #1d2330;
  padding: 8px 11px;
  transition: color 0.3s;
  border-radius: 9999px;
  font-size: 15px;
}

.nav-menu li a:hover{
  color: #fff;
  background-color: var(--main-color);
}
.nav-menu li.current-menu-item > a{
  color: #fff;
  background-color: #ee5b2b;
}
.nav-menu li.current-lang > a{
  color: #fff;
  background-color: #19a1e6;
}
.nav-menu li.lang-item a:hover{
  background-color: #19a1e6;
}
/* Для подменю */
.nav-menu li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  list-style: none;
  padding: 10px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  min-width: 180px;
}

.nav-menu li:hover > ul {
  display: block;
}

.nav-menu li ul li {
  margin: 0;
}

.nav-menu li ul li a {
  padding: 8px 15px;
  display: block;
  color: #333;
}

.nav-menu li ul li a:hover {
  background-color: #f8f8f8;
  color: #ff3366;
}

/* Адаптив */
@media (max-width: 768px) {
  .nav-menu {
    display: none; /* будем добавлять кнопку для открытия */
  }
}


/* ---------- Burger button ---------- */
.burger-btn {
  display: none;
  width: 32px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 1002;
}

.burger-btn span {
  display: block;
  height: 3px;
  background: var(--main-color);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 50%;
  height: 100vh;
  background: #fafafa;
  z-index: 2001;
  padding: 30px 20px;
  transition: right 0.3s ease;
  overflow-y: auto;
  border-left: 1px solid #4d4d4d85 !important;
}
.mobile-menu .pll-parent-menu-item > a{
  display: none;
}
.mobile-menu .pll-parent-menu-item .sub-menu{
  list-style: none;
  padding: 0;
  display: flex;
  gap: 20px;
  align-items: center;
}
.mobile-menu.active {
  width: 60%;
  right: 0;
}

.mobile-nav li {
  margin-bottom: 20px;
}

.mobile-nav a {
  font-size: 18px;
  text-decoration: none;
  color: #1d2330;
}

/* ---------- Close button ---------- */
.mobile-menu-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 26px;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  color: #1d2330;
}

/* ---------- Overlay ---------- */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 1000;
}

.mobile-menu-overlay.active {
  opacity: 1;
  height: 100vh;
  visibility: visible;
}

.desktop-menu{
  width: 100%;
}
.desktop-menu .lang-item {
  margin-left: auto;
}
.desktop-menu li:last-child{
  margin: unset;
}
/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .desktop-menu {
    display: none;
  }
  .menu-wrap{
    justify-content: end;
  }

  .burger-btn {
    display: block;
  }
}

.main-content {
  margin: 60px auto 0;
  background-color: #fdfdfb;
  padding: 30px 15px 0;
}
.main-content h1{
  font-size: 60px;
}
@media(max-width: 900px){
  .main-content h1{
    font-size: 35px;
  }
}
.main-content p{
  color: #a3a3a3;
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.model-card {
  border-radius: 12px!important;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
  border: none;
  transition: .3s all;
  background-color: transparent!important;
}
.model-card:hover .card-img-top {
  transform: scaleX(1.05) scaleY(1.05);
}
.model-card:hover{
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
}
.model-image-wrap{
  height: 430px;
  overflow: hidden;
}
.model-card:hover{
  border-color: #e9206380!important;
}

.model-card .card-image {
  width: 100%;
  height: 0;
  padding-bottom: 140%;
  background-size: cover;
  background-position: center;
}

.model-card .card-body {
  padding: 15px;
  text-align: left;
  background-color: #fff;
}

.model-card .model-name {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.2;
}

.model-card .model-price {
  color: #e63946;
  font-size: 16px;
  font-weight: 600;
}

.card-title{
  font-size: 18px;
  font-weight: 600;
}
.main-content .card-nickname{
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #19a1e6;
}
.main-content .card-price{
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: #16a34a;
}
#models-load-more, #models-load-more-city{
  font-size: 14px;
  padding: 10px 25px;
  border-color: var(--main-color);
  background-color: transparent;
  border-width: 2px;
  border-radius: 9999px;
  color: var(--main-color);
  font-weight: bold;
  transition: .3s;
}
#models-load-more:hover, #models-load-more-city:hover{
  color: #fff;
  background-color: #ee5b2be6;
  border-color: #ee5b2be6;
}
.model-card .subscribe-btn{
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 7px 25px;
  border: none;
  font-weight: 600;
  transition: .3s;
  width: 100%;
  border-radius: 10px;
  background-color: var(--main-color);
}
.model-card .subscribe-btn svg{
  width: 16px;
  height: 16px;
}
.model-card .subscribe-btn:hover, .model-card .subscribe-btn:active{
   background-color: #ee5b2be6;
}
.card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.top-likes{
  position: absolute;
  top: 12px;
  right: 12px;
  color: #ee5b2b;
  background-color: #fff;
  font-size: 12px;
  border-radius: 9999px;
  padding: 5px 10px;
}
.top-likes svg{
  color: #ee5b2b;
  width: 12px;
  height: 12px;
  fill: #ee5b2b;
}
.card-details svg{
  width: 14px;
  height: 14px;
  color: #ee5b2b;
}
.card-details span{
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #626d84;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f0ede680;
  border-radius: 999999px;
  padding: 4px 11px;
}
.content-block{
  position: relative;
  background-color: #f8f7f3;
  padding: 64px 0;
}
.content-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background: #f8f7f3;
  z-index: 0;
}
.content-block *{
  position: relative;
}
.content-block h2{
  color: #1d2330;
  font-size: 24px;
  line-height: 32px;
  margin-bottom: 24px;
}
.content-block p, .content-block ul li{
  font-size: 14px;
  line-height: 22px;
  font-family: 'DM Sans', sans-serif;
  color: #626d84;
}
footer {
  background: #fff;
  padding: 32px 15px;
  text-align: center;
}

footer .made-text svg{
  fill: #ee5b2b;
  color: #ee5b2b!important;
}
.footer-wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e3dc;
}
@media(max-width: 767px){
  .footer-wrap{
    text-align: center;
    justify-content: center;
    gap: 25px;
  }
}
.footer-logo img {
  max-height: 60px;
  width: 190px;
}
.footer-copy {
  color: #a3a3a3;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
}
.made-text{
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.made-text svg{
  width: 13px;
  height: 13px;
}
.footer-menu ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}
.footer-menu a {
  color: #626d84!important;
  text-decoration: none;
  font-size: 14px;
}
.footer-menu .nav-menu li.current-menu-item > a, .footer-menu .nav-menu li.current-lang > a{
  background: none;
}
.footer-menu a:hover, .footer-menu .nav-menu li.current-lang > a{
  color: var(--main-color) !important;
  background: none!important;
}
.footer-menu .lang-item{
  display: none;
}
.footer-menu .pll-parent-menu-item{
  display: none;
}

@media(max-width: 900px){
  .models-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 600px){
  .models-grid {
    grid-template-columns: 1fr;
  }
}

.card-img-top {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: top;
  transition: .3s;
}

@media (max-width: 768px) {
  .card-img-top {
    height: 250px;
  }
}

.model-stats-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  display: flex;
  gap: 10px;
}

.model-stats-overlay .stat-item {
  background: rgba(0, 0, 0, 0.65);
  color: white;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.price-badge {
  background: #f8f9fa;
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
}

/* Language switcher dropdown chevron */
.pll-parent-menu-item > a {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pll-parent-menu-item > a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -2px;
  transition: transform 0.2s ease;
}
.pll-parent-menu-item:hover > a::after{
  margin-top: 4px;
  transform: rotate(-135deg);
}