/*
Theme name: Pulsar.uz
*/

/* ====== ОСНОВА СТИЛЯ НА ОСНОВЕ БРЕНДБУКА PULSAR ====== */
:root {
    --color-red: #E3281E;
    --color-dark: #2D3438;
    --color-white: #ffffff;
    --color-bg: #faf7f2;
    --gradient-red: linear-gradient(135deg, #8F1811, #E3281E);
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  .alignright {
    float: right;
    margin-left: 15px;
    margin-bottom: 15px;
  }

  .alignleft {
    float: left;
    margin-right: 15px;
    margin-bottom: 15px;
  }

  body, html {
    margin: 0;
    padding: 0;
    color: var(--color-dark);
    scroll-behavior: smooth;
    background: linear-gradient(to right, rgba(163, 18, 18, 0.9), rgba(217, 36, 36, 0.9));
  }

  img {
    max-width: 100%;
  }

  ul li {
    list-style-type: disc;
    list-style-position: inside;
  }

  #app {
    background-image: url("images/bg2.png");
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: top left;
    background-size: auto 100%;
  }

  .header {
    padding-top: 1rem;
    padding-bottom: 1rem;
    /*background: linear-gradient(to right, rgba(163, 18, 18, 0.9), rgba(217, 36, 36, 0.9));*/
  }

  .header > .container > .row {
    align-items: center;
  }

  .pd {
    padding: 40px 0;
  }

  /* ====== ЛОГО ====== */

  .logo {
    display: inline-block;
    vertical-align: middle;
    width: 100%;
    text-align: center;
  }

  .logo-inner {
    display: block;
  }
  
  .logo img {
    display: inline-block;
    width: 200px;
  }

  /* ====== НАВИГАЦИЯ ====== */
  .menu {
    width: 100%;
    color: 333;
    border-radius: .5rem;
    text-align: center;
    margin-top: 1cap;
  }
  
  .menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-block;
    vertical-align: middle;
  }
  
  .menu > ul > li {
    position: relative;
    display: inline-block;
    margin-right: 24px;
  }
  
  .menu ul li ul {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    padding: 10px 0;
    width: 220px;
    z-index: 1001;
  }
  
  .menu ul li:hover ul {
    display: block;
  }
  
  .menu ul li ul li {
    padding: 8px 16px;
    white-space: nowrap;
    text-align: left;
    background: var(--color-white);
    background: #fff;
  }
  
  .menu > ul > li > a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: color 0.3s;
    padding: 10px;
    display: block;
    position: relative;
  }

  .menu li ul li {
    list-style-type: none;
  }

  .menu li ul li a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
    text-align: left;
  }

  .menu > ul > li > a:hover:after {
    width: 100%;
    height: 2px;
    background: var(--gradient-red);
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    right: 0;
  }
  
  .menu .actions {
    display: flex;
    gap: 12px;
  }
  
  .menu .btn {
    padding: 6px 14px;
    border: 2px solid var(--color-red);
    background: transparent;
    border-radius: 0;
    cursor: pointer;
    font-weight: bold;
    color: var(--color-dark);
    transition: all 0.3s ease;
  }
  
  .menu .btn:hover {
    background: var(--color-red);
    color: white;
  }

  /* ====== Content ====== */

  .text-block {
    width: 1140px;
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  }

	.text-block p:last-child {
		margin-bottom: 0;
	}

  .text-block:after {
    content: "";
    display: block;
    clear: both;
  }

  .text-block.text-block-large {
    width: 100%;
  }

  .text-block h3 {
    margin-bottom: 30px;
    font-size: 24px;
  }

  .text-block h3 a {
    color: #333;
  }

  .text-block p {
    font-size: 16px;
    line-height: 21px;
    margin-bottom: 30px;
  }

  .text-block ul {
    margin-bottom: 30px;
  }

  .text-block li {
    font-size: 16px;
    line-height: 21px;
    margin-bottom: 10px;
  }

  .text-block li ul {
    margin-bottom: 0;
    padding-left: 20px;
    padding-top: 10px;
  }
  
  /* ====== HERO ====== */
  .hero {
    height: auto;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
  }

  .hero img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
  }
  
  .hero h1 {
    font-size: 3rem;
    background: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    border-left: 8px solid var(--color-red);
  }

  .intro {
    position: absolute;
    color: #333;
    text-align: left;
  }

    .intro {
        position: absolute;
        color: #333;
        text-align: left;
        top: 250px;
        right: 0;
        width: 65%;
        padding-right: 30px;
    }

    .intro p {
        font-size: 16px;
        margin-bottom: 10px;
    }
  
  /* ====== СЕКЦИИ ====== */
  
  .section-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    color: #fff;
  }
  
  .section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: var(--gradient-red);
    display: block;
    margin: 16px auto 0;
    border-radius: 2px;
  }
/*
  .bg {
    background-image: url("images/bg.png");
    background-size: auto 100%;
    background-repeat: no-repeat;
  }

  .bg:nth-child(2n) {
    background-image: url(images/bg2.png);
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: top right;
  }
*/
  /* ====== GRID ====== */
  .grid {
    display: grid;
    gap: 24px;
  }

  #products-categories h3 {
    font-size: 34px;
    margin-bottom: 15px;
  }

  .product-block:hover .category-image {
    background-size: 110% auto;
  }

  .category-image {
    width: 100%;
    height: 250px;
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
    transition: all 0.6s ease;
  }

  .product-text {
    padding-left: 15px;
  }

  .product-text p {
    margin-bottom: 15px;
  }

  .product-block {
    background: #fff;
    padding: 10px;
    margin-bottom: 20px;
  }



  .more-link {
    padding: 10px 15px;
    background: linear-gradient(to right, #a31212, #d92424, #e73333);
    border-radius: 0;
    color: #fff;
    text-decoration: none;
    display: inline-block;
  }

  /* ====== CARD ====== */
  .card-block {
    padding-bottom: 30px;
  }

  .card {
    background: var(--color-white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
    border-left: 4px solid var(--color-red);
  }
  
  .card:hover {
    transform: translateY(-6px);
  }
  
  .card img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  
  .card h3 {
    padding: 15px;
    font-size: 1.1rem;
    color: var(--color-dark);
    text-align: center;
  }
  
  .card p {
    padding: 0 16px 16px;
    font-size: 0.95rem;
    color: #555;
  }
  
  .card a {
    color: inherit;
    text-decoration: none;
  }

  .hint {
    padding: 6px 11px;
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(to right, #a31212, #d92424, #e73333);
    border-radius: 0;
    color: #fff;
    font-size: 14px;
  }
  
  /* ====== FOOTER ====== */
  footer {
    background: linear-gradient(to right, #a31212, #d92424, #e73333);
    color: #fff;
    font-size: 0.9rem;
    box-shadow: 0 0 5px #333;
    margin-top: 30px;
  }
  
  footer .footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 60px 20px;
  }
  
  footer .footer-top strong {
    color: var(--color-white);
  }
  
  footer .footer-bottom {
    border-top: 1px solid #444;
    padding: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #fff;
  }

  footer h4 {
    font-size: 18px;
    margin-bottom: 15px;
  }
  
  footer ul li {
    list-style-type: none;
  }

  footer ul li a {
    color: #fff;
    font-size: 16px;
    padding: 4px 0;
    display: block;
  }

  footer p {
    color: #fff;
    font-size: 16px;
    padding: 4px 0;
    display: block;
  }

  img.align-left {
    float: left;
    margin-right: 15px;
    margin-bottom: 15px;
    max-width: 300px;
  }

  .slider img {
    display: block;
    width: 100%;
    height: 480px;
    object-fit: cover;
  }

  .slider .owl-item:after {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(to right, rgba(163, 18, 18, 0.4), rgba(217, 36, 36, 0.2));
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .phone.mobile {
    display: none;
  }

  @media screen and (max-width: 768px) {
    .menu > ul > li {
        width: 100%;
        margin-right: 0;
    }

    .lang-item span {
      font-size: 0;
    }

    .phone.mobile {
      display: block;
      margin-bottom: 10px;
    }

    .phone.desktop {
      display: none;
    }

    .menu ul li ul {
      display: none!important;
    }

    .menu > ul > li > a {
        padding: 10px 0;
        display: block;
    }

    .product-text {
      padding-left: 0;
    }
  }



  /* Ночной режим — переключается по классу .dark-mode на body */
body.dark-mode {
  background: #111;
  color: #333;
}

body.dark-mode a {
  color: #ffc107;
}

body.dark-mode .header {
  background-color: #1a1a1a;
  border-bottom: 1px solid #333;
}

body.dark-mode .section-title, 
body.dark-mode .menu > ul > li > a,
body.dark-mode .lang-btn {
  color: #fff;
}

/* Кнопки переключения */
.top-controls {
  padding: 10px 20px;
}

.lang-btn, .dark-toggle {
  background: none;
  border: 1px solid #ccc;
  color: #fff;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 6px;
  transition: 0.3s;
  display: inline-block;
}

.lang-btn:hover, .dark-toggle:hover {
  background: #ddd;
}

body.dark-mode .lang-btn:hover, 
body.dark-mode .dark-toggle:hover {
  background: #333;
  color: #fff;
}


.top-controls {
  gap: 10px;
}

.dark-toggle,
.lang-btn {
  background: none;
  border: 1px solid #ccc;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.dark-toggle:hover,
.lang-btn:hover {
  background: #f0f0f0;
}

body.dark-mode .dark-toggle:hover,
body.dark-mode .lang-btn:hover {
  background: #333;
  color: #fff;
}

.phone, .language-switcher, div.search {
  display: inline-block;
  margin: 0 6px;
}

.lang-item {
  list-style-type: none;
  background: none;
    border: 1px solid #ccc;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    text-align: left;
    display: inline-block;
}

.lang-item.current-lang {
  background: #fff;
}

.lang-item a {
  color: #fff;
  text-decoration: none;
}

.lang-item.current-lang a {
  color: #333;
}

.phone a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
  background: #fff;
  border: 1px solid #ccc;
  padding: 5px 10px;
  border-radius: 6px;
  display: inline-block;
}

.search-input {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  min-width: 120px;
  transition: 0.3s ease;
}

.search-submit {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fff;
}

.search-input:focus {
  outline: none;
  border-color: #999;
}

body.dark-mode .search-input {
  background: #222;
  color: #fff;
  border-color: #444;
}

.header-left {
  text-align: left;
}

.header-right {
  text-align: right;
}


@media screen and (max-width: 768px) {
  .header-left, .header-right {
    text-align: center;
  }

  .logo-inner img {
    max-width: 250px;
  }

  div.search {
    margin-top: 20px;
  }
}

.image-top-right  {
  position: relative;
}

.image-top-right img:last-child {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 100px;
}

p.custom-gallery-caption {
  margin: 0;
  position: absolute;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 14px;
}

.custom-image-gallery-wrapper {
  position: relative;
}

.custom-image-gallery-wrapper img {
  display: block;
}