/*
Theme Name: fermas-piens
Text Domain: fermas
*/

/* @font-face {
  font-family: "Feelfree Personal Use";
  src: url("./fonts/FeelfreePersonalUse-Regular.woff2") format("woff2"),
    url("./fonts/FeelfreePersonalUse-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
} */

/* @import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Quicksand:wght@300..700&display=swap"); */
@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&family=Unna:ital,wght@0,400;0,700;1,400;1,700&display=swap");
h1,
h2,
.product-card h3,
.section-title {
  font-family: "Unna", Arial;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
}

a,
span,
p,
h3,
h4 {
  font-family: "Quicksand", Arial;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
}
a {
  color: #777;
}
a:hover {
  color: #77b255;
}

html,
body {
  overflow-x: hidden;
  margin: 0;
  width: 100%;
  max-width: 100vw;
  background-color: #fefefe;
  margin: 0;
}

#homeProductSlider {
  visibility: hidden;
}

/* .site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
} */

#page {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100vh;
}

.site-main {
  flex: 1;
}

.site-footer {
  margin-top: auto;
}
/* * {
  outline: 1px solid red;
} */

/* .container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  justify-content: space-between;
} */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.hero-slider .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.about-section .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
}

@media (max-width: 768px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* hero section */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-slide-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-content h1,
.hero-content p {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* slide optimized pictures */

/* Десктоп */
.slide:nth-child(1) {
  background-image: url("../assets/slides/slide-1.jpg");
}
.slide:nth-child(2) {
  background-image: url("../assets/slides/slide-2.jpg");
}
.slide:nth-child(3) {
  background-image: url("../assets/slides/slide-3.jpg");
}
.slide:nth-child(4) {
  background-image: url("../assets/slides/slide-4.jpg");
}

/* Мобильная версия */
@media (max-width: 768px) {
  .slide:nth-child(1) {
    background-image: url("../assets/slides/slide-1-mobile.jpg");
  }
  .slide:nth-child(2) {
    background-image: url("../assets/slides/slide-2.jpg");
  }
  .slide:nth-child(3) {
    background-image: url("../assets/slides/slide-3-mobile.jpg");
  }
  .slide:nth-child(4) {
    background-image: url("../assets/slides/slide-4-mobile.jpg");
  }
}

.slide picture,
.slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* картинка тянется и обрезается как background-size: cover */
}

/* products catalog */
.product-catalog {
  padding: 20px 0;
  background: #fafafa;
}

.product-catalog h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 10px;
  color: #222;
}

.product-catalog p {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 40px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.product-section {
  margin: 5rem 0;
}
.product-section p {
  text-align: center;
}
.product-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  max-width: 320px;
  width: 100%;
  box-sizing: border-box;
  max-height: 570px;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.product-card a {
  text-decoration: none;
  color: inherit;
}

.product-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
  border-radius: 6px;
  width: 100%;
}

.product-card h3 {
  font-size: 1rem;
  color: #222;
  text-align: left;
  min-height: 40px;
}

.product-card p {
  font-size: 1rem;
  color: #777;
  margin-bottom: 6px;
  text-align: left;
}

.product-card .price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #000;
  margin-bottom: 16px;
  text-align: left;
}

.product-card .button {
  background-color: #77b255;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
  display: flex;
  transition: background 0.3s ease;
  align-items: center;
  justify-content: center;
}

.product-card .button:hover {
  background-color: #333;
}

.center-button {
  text-align: center;
  margin-top: 3rem;
}

.center-button .button {
  background-color: #000;
  color: #fff;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.3s ease;
}

.center-button .button:hover {
  background-color: #222;
}

/* about */

.about-section {
  padding: 100px 0;
  /* background-color: #f9f9f9; */
}

.about-section .container {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.about-image {
  flex: 1 1 45%;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.about-text {
  flex: 1 1 50%;
  max-width: 600px;
}

.about-text h2 {
  font-size: 3rem;
  margin-bottom: 24px;
  color: #222;
  margin-top: -40px;
}

.about-text p {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 32px;
  color: #444;
}

.about-text .button {
  display: inline-block;
  padding: 14px 28px;
  font-size: 1rem;
  background-color: #77b255;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.about-text .button:hover {
  background-color: #333;
}
@media (max-width: 768px) {
  .about-section .container {
    flex-direction: column;
    text-align: center;
  }

  .about-text,
  .about-image {
    max-width: 100%;
  }

  .about-text h2 {
    font-size: 2rem;
  }
}

/* contacts */
.contact-section {
  padding: 100px 0;
  background-color: #f9f9f9;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-form,
.contact-info {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.contact-form {
  flex: 1 1 60%;
}

.contact-info {
  flex: 1 1 26%;
}

.contact-form h2,
.contact-info h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  position: relative;
}

.contact-form h2::after,
.contact-info h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: #222;
  margin-top: 0.5rem;
}

.contact-form form input,
.contact-form form textarea,
.contact-form-select {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
  font-family: inherit;
}
.contact-form form input[type="checkbox"] {
    width: auto !important;
}

.contact-form-select {
  background-color: white;
  cursor: pointer;
  box-sizing: border-box;
}

.contact-form-select:disabled {
  background-color: #f5f5f5;
  color: #666;
  cursor: not-allowed;
}

.contact-form form button {
  padding: 0.75rem 1.5rem;
  background-color: #77b255;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
}

.contact-form form button:hover {
  background-color: #444;
}

.contact-info iframe {
  width: 100%;
  height: 250px;
  border: none;
  margin-bottom: 1rem;
}

.contact-info p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Мобила */
@media (max-width: 768px) {
  .contact-form,
  .contact-info {
    flex: 1 1 100%;
  }
}

/* footer */

.site-footer {
  background: #222;
  padding: 2rem 0;
  font-size: 0.9rem;
  color: #f2f2f2;
  margin-top: auto;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 1.5rem;
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  text-align: center;
}

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

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

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-menu li a {
  text-decoration: none;
  color: #f2f2f2;
  transition: color 0.2s ease;
}

.footer-menu li a:hover {
  color: #f2f2f2;
}

.footer-right a {
  margin-left: 12px;
  text-decoration: none;
  color: #f2f2f2;
  font-weight: 500;
}

.footer-right a:hover {
  color: #000;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1rem;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    text-align: left;
    width: 100%;
  }

  .footer-menu {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-right {
    display: flex;
    gap: 1rem;
  }
}

/* about us */

/*.about-hero {*/
/*  background: url("./assets/about-hero.jpg") center/cover no-repeat;*/
/*  padding: 6rem 2rem;*/
/*  color: white;*/
/*  text-align: center;*/
/*}*/

.about-story .container,
.checkout-delivery .container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  padding: 4rem 2rem;
}

.story-text,
.story-image {
  flex: 1 1 50%;
}

.story-image img {
  width: 100%;
  border-radius: 8px;
}
/* about values */

.container.column {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-values {
  position: relative;
  padding: 10px 0px 70px;
  /* background: url("./assets/about-hero.jpg") center/cover no-repeat; */
  overflow: hidden;
  z-index: 0;
  background-color: #faf9f8;
}

/* .about-values::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(6px);
  background-color: rgba(255, 255, 255, 0.5);
  z-index: 1;
} */

.about-values > * {
  position: relative;
  z-index: 2; /* контент выше затемнения */
}

.section-header {
  margin-bottom: 70px;
}

.section-title {
  font-size: 3.5rem;
  margin-bottom: 10px;
  color: #222;
  /* text-align: center; */
}

.section-divider {
  width: 50px;
  height: 2px;
  background-color: #000;
  margin: 0 auto;
  border-radius: 2px;
}

.values-grid.clean {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 30px;
  width: 100%;
}

.value-box.clean {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.value-box.clean .icon {
  font-size: 36px;
  margin-bottom: 12px;
  color: #000;
}

.value-box.clean span {
  font-size: 1.5rem;
  color: #333;
  font-weight: normal;
  text-align: center;
}

.value-box img {
  border-radius: 12px;
  margin-bottom: 24px;
}

/* cart */

.cart-section {
  padding: 60px 20px;
}

.cart-section h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.5em;
}

.woocommerce-cart-form,
.woocommerce-cart-totals {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.woocommerce table.shop_table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  padding: 10px;
  border: 1px solid #ddd;
}

.woocommerce .actions .button {
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
}

/* menu */

/* --- HEADER --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 16px;
  justify-content: space-between;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-actions a {
  position: relative;
  font-size: 1.2rem;
  text-decoration: none;
  color: #000;
  transition: color 0.3s ease;
}
.header-actions a:hover {
  color: #666;
}

/* Бургер */
.burger {
  cursor: pointer;
  z-index: 0;
  position: relative; /* теперь не абсолютный */
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  flex-shrink: 0;
}

.burger span {
  display: block;
  width: 24px;
  height: 3px;
  background-color: #222;
  transition: all 0.3s ease;
}

.burger-wrapper {
  justify-content: flex-start;
}

/* Стиль кнопки закрытия */
.close-mobile-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10002;
  color: #000;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
/* Overlay меню */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 80%;
  max-width: 320px;
  /* background: #fff; */
  background: #fff;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 24px;
}

.mobile-menu-overlay.open {
  transform: translateX(0);
}

.mobile-menu-overlay.active {
  transform: translateX(0);
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mobile-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

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

.mobile-nav a {
  font-size: 1.2rem;
  color: #222;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.mobile-nav a:hover {
  color: #000;
}

.mobile-extra-links {
  display: flex;
  list-style: none;
  margin: 0rem 0 2rem;
  padding: 0;
}

.mobile-extra-links a {
  font-size: 1.1rem;
  color: #444;
  text-decoration: none;
  font-weight: 600;
}
.mobile-extra-links a:hover {
  color: #000;
}
.mobile-extra-links i {
  font-size: 2.2rem;
}
.facebook-icon {
  color: #1877f2;
}
.instagram-icon {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Затемнение body */
body.menu-open {
  overflow: hidden;
}
/* Языки */
.lang-switcher {
  display: flex;
  gap: 12px;
  margin-top: 0;
}

.lang-switcher a {
  padding: 6px 12px;
  border-radius: 4px;
  background: #f4f4f4;
  color: #222;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.lang-switcher a.active,
.lang-switcher a:hover {
  background: #000;
  color: #fff;
}

/* Корзина */
.cart-link {
  font-weight: bold;
  margin-left: 15px;
  text-decoration: none;
  font-size: 1.1rem;
  color: #000;
  display: flex;
  align-items: center;
  position: relative;
}

.cart-count {
  background: #77b255;
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  padding: 2px 6px;
  position: absolute;
  margin-left: -8px;
  margin-top: -20px;
}

/* Slideout меню */
.slideout-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 2000;
  padding: 80px 20px 20px;
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.05);
}

.slideout-menu.active {
  transform: translateX(0);
}

#page.slideout-open {
  transform: translateX(280px);
}

/* Меню */
.slideout-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.slideout-nav a {
  font-size: 1.2rem;
  color: #111;
  text-decoration: none;
}

.slideout-nav a:hover {
  text-decoration: underline;
}
.logo {
  justify-content: center;
  display: flex;
  /* flex: 1; */
  text-align: center;
}

.logo a {
  display: flex;
  flex-direction: row; /* можно не указывать, это значение по умолчанию */
  align-items: center;
  gap: 8px; /* расстояние между изображением и текстом */
  text-decoration: none;
  color: inherit;
}
.logo a img {
  height: 32px;
  width: auto;
}

.logo a span {
  /* font-size: 1.2rem; */
  font-weight: 600;
}
/* --- Адаптив --- */
@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .logo-wrapper {
    justify-content: center;
  }

  .header-right {
    justify-content: flex-end;
    gap: 10px;
  }
}

.burger-wrapper,
.logo-wrapper,
.header-right {
  flex: 1;
  display: flex;
  align-items: center;
}
.logo-wrapper {
  justify-content: center;
}
.header-right {
  justify-content: right;
}

/* hero section */

.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.slide-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 710px;
  animation: fadeInUp 0.8s ease-out;
  align-content: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 5.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
  color: #fff;
  text-align: center;
  margin-bottom: 60px;
}

@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #fff;
    text-align: center;
    margin-bottom: 60px;
  }
}

.hero-content p {
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
  text-align: left;
}

.hero-content .button {
  display: inline-block;
  width: auto;
  max-width: max-content;
  font-size: 1.2rem;
  padding: 16px 32px;
  background-color: #ffffff;
  color: #000;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.hero-content .button:hover {
  background-color: #f2f2f2;
  color: #000;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🔽 Адаптив */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-content .button {
    font-size: 1rem;
    padding: 12px 24px;
  }
}

/* Общая обёртка caminet */
.account-wrapper {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
}

.account-content {
  display: flex;
  flex: 1 1 65%;
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.woocommerce .col2-set::after,
.woocommerce .col2-set::before,
.woocommerce-page .col2-set::after,
.woocommerce-page .col2-set::before {
  content: " ";
  display: none;
}

.woocommerce-account .addresses .title::after,
.woocommerce-account .addresses .title::before {
  content: " ";

  display: none;
}
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce-MyAccount-navigation ul li {
  margin-bottom: 10px;
}

.woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 10px 15px;
  border-radius: 4px;
  /* background: #f5f5f5; */
  color: #fff;
  font-weight: 500;
  transition: 0.2s;
}

.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
  background: #fff;
  color: #333;
}
.woocommerce-account .woocommerce-MyAccount-navigation {
  float: left;
  width: 100%;
}

/* footer */

.footer-socials-links {
  display: flex;
  list-style: none;
  /* margin: 0rem 0 2rem; */
  padding: 0;
  align-items: end;
  justify-content: end;
}
.footer-socials-links i {
  font-size: 24px;
}

/* login */
.login-page {
  padding: 100px 20px;
  background-color: #f9f9f9;
}

.login-container {
  max-width: 400px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.login-container a {
  color: #77b255;
  text-decoration: none;
  font-weight: bold;
}

.login-container h2 {
  text-align: center;
  margin-bottom: 20px;
}

.login-container label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.login-container input[type="text"],
.login-container input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.login-container input[type="submit"] {
  width: 100%;
  background-color: #222;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.login-container input[type="submit"]:hover {
  background-color: #444;
}
/* register form*/

/* === Register Page Custom Styles === */
.register-page {
  padding: 60px 0;
  background-color: #f6f6f6;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 80vh;
}

.register-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  padding: 40px;
  max-width: 460px;
  width: 100%;
  text-align: center;
}

.register-container h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 30px;
}

/* Error messages */
.error-messages {
  background: #ffecec;
  color: #c00;
  border: 1px solid #e0b4b4;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 20px;
  text-align: left;
}

/* Form styling */
.register-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.register-form label {
  text-align: left;
  font-weight: 600;
  margin-bottom: 4px;
  color: #333;
}

.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="password"] {
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.register-form button[type="submit"] {
  background-color: #77b255;
  color: white;
  border: none;
  padding: 12px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.register-form button[type="submit"]:hover {
  background-color: #333;
}

/* Link below the form */
.register-container p {
  margin-top: 20px;
  font-size: 0.95rem;
}

.register-container a {
  color: #77b255;
  text-decoration: none;
  font-weight: bold;
}

.register-container a:hover {
  text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .register-container {
    padding: 30px 20px;
  }
}

.error-messages p {
  background: #ffd5d5;
  color: #a00000;
  padding: 0.5rem;
  border-radius: 4px;
}

/* === Login Page Custom Styles === */
.login-page {
  padding: 60px 0;
  background-color: #f6f6f6;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 80vh;
}

.login-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  padding: 40px;
  max-width: 460px;
  width: 100%;
  text-align: center;
}

.login-container h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 30px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.login-form label {
  font-weight: 600;
  margin-bottom: 4px;
  color: #333;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.login-form button[type="submit"] {
  background-color: #77b255;
  color: white;
  border: none;
  padding: 12px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}
/* products */

.product-filter {
  margin-bottom: 20px;
}
.category-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}
.category-filter li a {
  background: #eee;
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
}

.products {
  list-style: none;
  padding: 0;
  margin: 0;
}
.product-item {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

/**/
.category-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  list-style: none;
  padding: 0;
}
.category-filter li a {
  padding: 6px 14px;
  background: #eee;
  text-decoration: none;
  border-radius: 4px;
  color: #333;
  transition: 0.2s;
}
.category-filter li a:hover,
.category-filter li a.active {
  background: #77b255;
  color: #fff;
}

.product-grid.single-product {
  display: flex;
  justify-content: center;
}

.product-grid.single-product .product-card {
  max-width: 320px;
  width: 100%;
}
/* subcategodies */
.subcategory-tabs {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
}
.subcategory-tabs li a {
  padding: 6px 14px;
  background: #eee;
  text-decoration: none;
  border-radius: 4px;
  color: #333;
  transition: 0.2s;
}
.subcategory-tabs li a:hover,
.subcategory-tabs li a.active {
  background: #77b255;
  color: #fff;
}

/* products mini catalog*/
.swiper-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}

.swiper-wrapper {
  display: flex;
  align-items: stretch;
  text-align: center;
}

.swiper-slide {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

.product-slide-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  max-width: 300px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.product-slide-card img {
  max-width: 100%;
  border-radius: 6px;
  margin-bottom: 15px;
}

.product-slide-card h3 {
  font-size: 1.2rem;
  margin: 10px 0;
}

.product-slide-card .price {
  font-weight: bold;
  color: #000;
  margin-bottom: 8px;
}

.product-slide-card .button {
  background-color: #77b255;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 10px;
  transition: background 0.3s ease;
}

.product-slide-card .button:hover {
  background-color: #333;
}

.product-slide-card {
  max-width: 320px;
  width: 100%;
  box-sizing: border-box;
}

/* Общий стиль стрелок */

.slider-wrapper {
  padding: 0 30px;
  position: relative;
}

.container,
.slider-wrapper {
  overflow: visible;
}

.swiper-button-prev,
.swiper-button-next {
  width: 42px;
  height: 42px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #333;
  transition: 0.3s ease;
  cursor: pointer;
}

/* Чуть снаружи — выдвигаем за пределы */
.swiper-button-prev {
  left: 10px;
}
.swiper-button-next {
  right: 10px;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background-color: #77b255;
  color: white;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  display: none;
}

.swiper-button-prev::before {
  content: "‹";
}
.swiper-button-next::before {
  content: "›";
}

/* category tabas main*/
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  list-style: none;
  padding: 0;
  justify-content: center;
}

.category-tabs li a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 30px;
  background-color: #f0f0f0;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  transition:
    background 0.2s,
    color 0.2s;
  font-size: 1rem;
  border: 2px solid transparent;
}

.category-tabs li a:hover {
  background-color: #e2e2e2;
  color: #000;
}

.category-tabs li a.active {
  background-color: #77b255;
  color: #fff;
  border-color: #77b255;
}
@media (max-width: 768px) {
  .category-tabs {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 8px;
  }

  .category-tabs li {
    flex: 0 0 auto;
  }
  .product-card {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
}

/* Cart */

/* Основной контейнер корзины */
.cart-section {
  padding: 60px 20px;
}

.cart-section h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.5em;
}

/* Обёртка таблицы */
.woocommerce-cart-form,
.woocommerce-cart-totals {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* Таблица товаров */
.woocommerce table.shop_table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: middle;
}

.woocommerce table.shop_table th {
  background-color: #f8f8f8;
  font-weight: bold;
}

/* Удалить товар */
.woocommerce .product-remove a {
  color: #a00;
  font-weight: bold;
}

.woocommerce .product-remove a:hover {
  color: #000;
}

/* Название товара */
.woocommerce .product-name a {
  font-weight: 600;
  color: #333;
  text-decoration: none;
}

.woocommerce .product-name a:hover {
  color: #77b255;
}

/* Кнопки */
.woocommerce .actions .button,
.woocommerce .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart .coupon button.button {
  background-color: #77b255;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
  border: none;
}

.woocommerce .actions .button:hover,
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-cart .coupon button.button:hover {
  background-color: #333;
}

/* Кнопка «применить купон» рядом с полем */
.woocommerce-cart .coupon {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.woocommerce-cart .coupon input {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  flex: 1;
  min-width: 180px;
}

/* Итоговая сумма */
.woocommerce-cart .cart_totals {
  margin-top: 40px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
}

/* Адаптив */
@media (max-width: 768px) {
  .woocommerce table.shop_table,
  .woocommerce table.shop_table thead,
  .woocommerce table.shop_table tbody,
  .woocommerce table.shop_table th,
  .woocommerce table.shop_table td,
  .woocommerce table.shop_table tr {
    display: block;
  }

  .woocommerce table.shop_table thead {
    display: none;
  }

  .woocommerce table.shop_table td {
    border: none;
    padding: 10px;
  }

  .woocommerce-cart .coupon {
    flex-direction: column;
  }

  .woocommerce .wc-proceed-to-checkout a.checkout-button {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .woocommerce .cart-collaterals .cart_totals,
  .woocommerce .cart-collaterals .cross-sells,
  .woocommerce .cart-collaterals .shipping_calculator,
  .woocommerce-page .cart-collaterals .cart_totals,
  .woocommerce-page .cart-collaterals .cross-sells,
  .woocommerce-page .cart-collaterals .shipping_calculator {
    width: 100%;
    float: none;
    box-sizing: border-box;
    text-align: left;
  }
}

/* Контейнер страницы товара */
.single-product-page {
  padding: 60px 20px;
}

.single-product-page .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Основной блок товара */
.woocommerce div.product {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.06);
  flex-wrap: wrap;
}

/* Галерея слева */
.woocommerce div.product div.images {
  flex: 1 1 45%;
  max-width: 500px;
}

.woocommerce div.product div.images img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

/* Инфо справа */
.woocommerce div.product div.summary {
  flex: 1 1 50%;
  max-width: 600px;
}

.woocommerce div.product h1.product_title {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #222;
}

.woocommerce div.product p.price {
  font-size: 1.6rem;
  color: #000;
  font-weight: bold;
  margin-bottom: 20px;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Кнопка "добавить в корзину" */
.woocommerce div.product form.cart {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.woocommerce div.product form.cart .quantity input {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 70px;
  text-align: center;
}

.woocommerce div.product form.cart button.single_add_to_cart_button {
  background-color: #77b255;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  border: none;
  transition: background 0.3s ease;
}

.woocommerce div.product form.cart button.single_add_to_cart_button:hover {
  background-color: #333;
}

/* Обёртка отзывов */
/* Блок отзывов */
.woocommerce-Reviews {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.05);
  margin-top: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

#review_form .form-submit input.submit {
  background-color: #77b255 !important;
  color: white !important;
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

#review_form .form-submit input.submit:hover {
  background-color: #333 !important;
}

.woocommerce-Reviews h2,
.woocommerce-Reviews h3 {
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: #222;
  font-weight: bold;
}

.woocommerce-Reviews .commentlist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-Reviews .comment {
  background: #fafafa;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 24px;
  border: 1px solid #eee;
  font-size: 0.95rem;
  line-height: 1.5;
}

.woocommerce-Reviews .comment .meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 8px;
}

.woocommerce-Reviews .comment .description {
  color: #333;
  font-size: 1rem;
}

/* Звезды в отзыве */
.woocommerce-Reviews .star-rating {
  color: #77b255;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

/* Форма отправки отзыва */
#review_form_wrapper {
  margin-top: 40px;
}

#review_form label {
  font-weight: bold;
  display: block;
  margin-bottom: 6px;
  color: #333;
}

#review_form input,
#review_form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  box-sizing: border-box;
}

#review_form .stars {
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.2rem;
  font-family: "star";
  display: inline-block;
  margin-bottom: 20px;
}

#review_form .stars a {
  text-decoration: none;
  color: #77b255;
  transition: color 0.2s ease;
  font-weight: normal;
}

@media (max-width: 768px) {
  .woocommerce-Reviews {
    padding: 20px;
  }

  #review_form .form-submit input[type="submit"] {
    width: 100%;
  }
}

@media (max-width: 768px) {
  #review_form .form-submit input.submit {
    width: 100%;
  }
}

#review_form .form-submit input.submit:hover {
  background-color: #333;
}
@font-face {
  font-family: "star";
  src: url("/wp-content/plugins/woocommerce/assets/fonts/star.woff")
    format("woff");
  font-weight: normal;
  font-style: normal;
}
.star-rating {
  overflow: hidden;
  position: relative;
  height: 1em;
  line-height: 1;
  font-size: 1.2em;
  width: 5.4em;
  font-family: "star";
}

.star-rating::before {
  content: "★★★★★";
  opacity: 0.3;
  position: absolute;
  left: 0;
  top: 0;
  color: #000;
}

.star-rating span {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #77b255;
}

.star-rating span::before {
  content: "★★★★★";
  font-family: "star";
}

/* Звезды-оценка в форме */
.comment-form-rating .stars a {
  color: #ccc;
  font-family: "star";
  font-size: 1.5rem;
  transition: color 0.2s ease;
  cursor: pointer;
}

.comment-form-rating .stars a.active {
  color: #77b255;
}

.related.products {
  padding: 60px 0;
}

.related.products h2 {
  /* text-align: center; */
  font-size: 2rem;
  margin-bottom: 40px;
  color: #222;
}

.related.products ul.products {
  display: flex;
  /*flex-wrap: wrap;*/
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}

/* Карточка продукта */
.related.products ul.products li.product {
  /* flex: 1 1 240px; */
  max-width: 300px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  padding: 20px;
  /* text-align: center; */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.related.products ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

/* Изображение */
.related.products li.product img {
  max-width: 220px;
  height: auto;
  margin: 0 auto 16px;
  border-radius: 8px;
}

/* Название */
.related.products .woocommerce-loop-product__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: #222;
  min-height: 48px;
}

/* Звёзды */
.related.products .star-rating {
  color: #77b255;
  font-size: 1rem;
  margin-bottom: 8px;
}

/* Цена */
.related.products .price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #000;
  margin-bottom: 16px;
}

/* Кнопка */
.related.products a.button {
  background-color: #77b255;
  color: white;
  padding: 12px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
  margin-top: auto;
  text-align: center;
}

.related.products a.button:hover {
  background-color: #333;
}

.related.products a.button:hover {
  background-color: #333;
}

.price span bdi {
  font-weight: bold !important;
  font-size: 18px;
}

/* product categories */
/* Сетка продуктов */
.archive.woocommerce ul.products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin: 40px auto;
  padding: 0;
}

/* Карточка продукта */
.archive.woocommerce ul.products li.product {
  flex: 1 1 240px;
  max-width: 300px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  height: 100%;
}

.archive.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

/* Изображение */
.archive.woocommerce ul.products li.product img {
  max-width: 220px;
  height: auto;
  margin: 0 auto 16px;
  border-radius: 8px;
}

/* Название товара */
.archive.woocommerce .woocommerce-loop-product__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #222;
  min-height: 48px;
}

/* Звёзды */
.archive.woocommerce .star-rating {
  color: #77b255;
  font-size: 1rem;
  margin-bottom: 10px;
}

/* Цена */
.archive.woocommerce .price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #000;
  margin-bottom: 16px;
}

/* Кнопка "Pievienot grozam" */
.archive.woocommerce a.button {
  background-color: #77b255;
  color: white;
  padding: 12px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
  margin-top: auto;
}

.archive.woocommerce a.button:hover {
  background-color: #333;
}

.product-category-page {
  padding: 60px 0;
}

.product-category-page .category-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 60px;
  color: #222;
}

.product-category-page .category-description {
  text-align: center;
  color: #777;
  font-size: 1rem;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Сетка карточек */
.custom-product-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* было center — теперь left-align */
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
}
/* Карточка */
.custom-product-card {
  flex: 1 1 240px;
  max-width: 300px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  padding: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.custom-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.custom-product-card img {
  max-width: 220px;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  justify-content: center;
  display: flex;
}

.custom-product-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #222;
  min-height: 48px;
}

.custom-product-card .price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #000;
  margin-bottom: 16px;
}

.custom-product-card .button,
.contact-form form input[type="submit"] {
  background-color: #77b255;
  color: white;
  padding: 12px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
  margin-top: auto;
}

.custom-product-card .button:hover,
.contact-form form input[type="submit"]:hover {
  background-color: #333;
}

/* Звезды (Woo-шрифт star) */
.custom-product-card .star-rating {
  display: inline-block;
  font-family: "star";
  font-size: 1rem;
  height: 1em;
  line-height: 1;
  position: relative;
  overflow: hidden;
  color: #ccc;
  margin-bottom: 10px;
}

.custom-product-card .star-rating span {
  display: block;
  color: #77b255;
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  overflow: hidden;
}

.product-category-page .button {
  text-align: center;
}

/* about page*/

.about-page {
  font-family: inherit;
  color: #333;
  line-height: 1.6;
}

.about-hero {
  position: relative;
  background: url("./assets/about-hero.jpg") center/cover no-repeat;
  /*background-size: cover;*/
  padding: 150px 20px;
  text-align: center;
  color: white;
  overflow: hidden;
}

.about-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* затемнение */
  z-index: 1;
}

.about-hero .hero-content {
  position: relative;
  z-index: 2;
  background: none; /* убираем серый фон, если был */
}

.about-hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.about-story .container {
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 80px 20px;
  flex-wrap: wrap;
}

.about-story .story-text {
  flex: 1;
}

.about-story h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.about-story .story-image {
  flex: 1;
  max-width: 500px;
}

.about-story img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-values {
  background-color: #f7f7f7;
  padding: 60px 20px;
  text-align: center;
}

.about-values h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

/* .about-values .values-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
} */

.about-values .value-box {
  /* background: white; */
  font-weight: bold;
  min-width: 100%;
}

.about-cta {
  padding: 80px 20px;
  text-align: center;
}

.about-cta h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-cta .button {
  background-color: #77b255;
  color: white;
  padding: 14px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.about-cta .button:hover {
  background-color: #5a9142;
}

/* TOS page */

.tos-page {
  font-family: inherit;
  color: #333;
  line-height: 1.7;
}

.tos-hero {
  position: relative;
  background: #2c5f2d;
  padding: 100px 20px;
  text-align: center;
  color: white;
}

.tos-hero h1 {
  font-size: 2.4rem;
  margin: 0;
}

.tos-content {
  padding: 60px 20px;
}

.tos-body {
  max-width: 800px;
  margin: 0 auto;
}

.tos-body h3 {
  font-size: 1.3rem;
  margin: 35px 0 12px;
  color: #2c5f2d;
  border-bottom: 2px solid #e8e8e8;
  padding-bottom: 6px;
}

.tos-body p {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.tos-body a {
  color: #2c5f2d;
  text-decoration: underline;
}

.tos-body a:hover {
  color: #1a3d1b;
}

@media (max-width: 768px) {
  .tos-hero {
    padding: 70px 15px;
  }
  .tos-hero h1 {
    font-size: 1.8rem;
  }
  .tos-content {
    padding: 40px 15px;
  }
}

/* Delivery page */

.delivery-hero {
  position: relative;
  background: url("./assets/slides/slide-2.jpg") center/cover no-repeat;
  /*background-size: cover;*/
  padding: 150px 20px;
  text-align: center;
  color: white;
  overflow: hidden;
}

.delivery-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* затемнение */
  z-index: 1;
}

.delivery-hero .hero-content {
  position: relative;
  z-index: 2;
  background: none; /* убираем серый фон, если был */
}

.delivery-hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

/* Delivery page */

.contacts-hero {
  position: relative;
  background: url("./assets/contacts-hero.jpg") center/cover no-repeat;
  /*background-size: cover;*/
  padding: 150px 20px;
  text-align: center;
  color: white;
  overflow: hidden;
}

.contacts-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* затемнение */
  z-index: 1;
}

.contacts-hero .hero-content {
  position: relative;
  z-index: 2;
  background: none; /* убираем серый фон, если был */
}

.contacts-hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

/* Account */
.account-section {
  padding: 60px 20px;
  background-color: #fefefe;
  font-family: "Quicksand", Arial;
}

.account-header h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.account-nav {
  flex: 1 1 200px;
  background: #77b255;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.account-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.account-nav li {
  margin-bottom: 15px;
}

.account-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.account-nav a:hover,
.account-nav .is-active a {
  background-color: #d4edda;
  color: #155724;
}

/* Dashboard */

.account-heading {
  font-size: 28px;
  margin-bottom: 10px;
}

.account-welcome {
  margin-bottom: 30px;
  font-size: 16px;
}

.account-options {
  font-size: 18px;
}

.account-links {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.account-links li {
  margin-bottom: 10px;
}

.account-links a {
  color: #3b3b3b;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.account-links a:hover {
  color: #77b255;
}

.account-links i {
  margin-right: 8px;
}

/* orders */

.woocommerce-account .woocommerce-orders-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.woocommerce-account .woocommerce-orders-table thead th {
  background: #f3f3f3;
  padding: 12px 16px;
  font-weight: 700;
  border-bottom: 2px solid #ddd;
  text-align: left;
}

.woocommerce-account .woocommerce-orders-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  min-height: 50px;
}

.woocommerce-account .woocommerce-orders-table tbody tr:hover {
  background-color: #f9f9f9;
}

.woocommerce-account .order-actions .button {
  padding: 8px 14px;
  background-color: #2d6a4f;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
}
.woocommerce-account .woocommerce-orders-table tbody th a {
  color: grey;
}

.woocommerce-account .order-actions .button:hover {
  background-color: #1b4332;
}

.account-content .woocommerce-info {
  background-color: #ffffff;
  border: transparent;
  padding: 0;
  margin: 0;
  border-radius: 12px;
  box-shadow: none;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #333;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
}

.account-content .woocommerce-info::before,
.account-content .woocommerce-info::after {
  content: "";
  display: none;
}

.account-content .woocommerce-info a {
  background-color: #6bae4f;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.account-content .woocommerce-info a:hover {
  background-color: #5a9c44;
}

.woocommerce-info .button {
  margin-top: 20px;
}

/*adresses*/
.woocommerce-Addresses {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.woocommerce-Address {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 24px 28px;
  flex: 1 1 45%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.woocommerce-Address-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.woocommerce-Address-title h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.woocommerce-Address .edit {
  background-color: #6bae4f;
  color: #fff;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.woocommerce-Address .edit:hover {
  background-color: #5a9c44;
}

.woocommerce-Address address {
  font-style: normal;
  color: #444;
  line-height: 1.6;
  margin: 0;
}

.billing-form-wrapper {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  max-width: 700px;
  margin: 0 auto;
  margin-top: 40px;
  margin-bottom: 60px;
}

.billing-form-wrapper h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
  font-family: "Unna", serif;
}

.woocommerce-address-fields__field-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.woocommerce-address-fields__field-wrapper p.form-row {
  flex: 1 1 48%;
  margin: 0;
}

.woocommerce-address-fields__field-wrapper p.form-row.form-row-wide {
  flex: 1 1 100%;
}

.woocommerce-address-fields__field-wrapper label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  color: #333;
}

.woocommerce-address-fields__field-wrapper input,
.woocommerce-address-fields__field-wrapper select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: "Quicksand", sans-serif;
  box-sizing: border-box;
}

.woocommerce-address-fields__field-wrapper select {
  background-color: #fff;
}

.woocommerce-address-fields__field-wrapper .select2-container {
  width: 100% !important;
}

.woocommerce-address-fields p button.button {
  background-color: #77b255;
  color: #fff;
  padding: 12px 24px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.woocommerce-address-fields p button.button:hover {
  background-color: #333;
}

@media (max-width: 768px) {
  .woocommerce-address-fields__field-wrapper p.form-row {
    flex: 1 1 100%;
  }
}

/* WooCommerce Notices */
/* .woocommerce-notices-wrapper {
  margin: 20px auto;
  max-width: 700px;
  padding: 0 20px;
} */
.woocommerce-error li,
.woocommerce-info li,
.woocommerce-message li {
  list-style: none outside !important;
  padding-left: 30px !important;
  margin-left: 0 !important;
}
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
  list-style: none;
  padding: 16px 16px 16px 60px;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 20px;
  font-family: "Quicksand", sans-serif;
  line-height: 1.6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  border-left: 4px solid;
}

.woocommerce-error {
  background-color: #ffecec;
  border-color: #e74c3c;
  color: #a00000;
}

.woocommerce-message {
  background-color: #e9f9e3;
  border-color: #77b255;
  color: #2e7d32;
}

.woocommerce-info {
  background-color: #eef6fb;
  border-color: #3498db;
  color: #2176bd;
}

.woocommerce-error li,
.woocommerce-message li,
.woocommerce-info li {
  margin-bottom: 8px;
}

.woocommerce-error li:last-child,
.woocommerce-message li:last-child,
.woocommerce-info li:last-child {
  margin-bottom: 0;
}

/* Focusable for screen readers */
.woocommerce-error[tabindex="-1"],
.woocommerce-message[tabindex="-1"],
.woocommerce-info[tabindex="-1"] {
  outline: none;
}

.woocommerce-EditAccountForm.edit-account {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.woocommerce-EditAccountForm.edit-account p.form-row {
  margin: 0;
}

.woocommerce-EditAccountForm.edit-account fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.woocommerce-EditAccountForm.edit-account legend {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 60px;
  margin-bottom: 10px;
  color: #333;
  font-family: "Unna", serif;
}

.woocommerce-EditAccountForm.edit-account input[type="text"],
.woocommerce-EditAccountForm.edit-account input[type="email"],
.woocommerce-EditAccountForm.edit-account input[type="password"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: "Quicksand", sans-serif;
  box-sizing: border-box;
}

.woocommerce-EditAccountForm.edit-account label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  color: #333;
}

.woocommerce-EditAccountForm.edit-account em {
  display: block;
  font-size: 0.85rem;
  color: #777;
  margin-top: 6px;
}

.woocommerce-EditAccountForm.edit-account button.button {
  background-color: #77b255;
  color: white;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.woocommerce-EditAccountForm.edit-account button.button:hover {
  background-color: #333;
}

.product-card[style*="display: none"] {
  display: none !important;
}

.product-card[style*="display: block"] {
  display: block !important;
}

.swiper-container {
  width: 100%;
  height: 100%;
}

.swiper-wrapper {
  display: flex;
}

.swiper-slide {
  flex-shrink: 0;
}
/* Единая высота карточек и предсказуемые картинки */
.product-grid {
  grid-auto-rows: 1fr;
}
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.product-card .price,
.product-card .button {
  margin-top: auto;
}

/* Чтобы место под sub-tabs не прыгало */
#subCategoryTabs {
  min-height: 48px;
}
#subCategoryTabs.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/* саб-вкладки: центр и в строку */
.subcategory-tabs {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  justify-content: center; /* центрируем */
  flex-wrap: wrap; /* одна строка с переносом при нехватке */
}

.subcategory-tabs li a {
  padding: 8px 16px;
  background: #eee;
  text-decoration: none;
  border-radius: 30px;
  color: #333;
  font-weight: 600;
  transition: 0.2s;
  border: 2px solid transparent;
  white-space: nowrap; /* держим в одну строку */
}

.subcategory-tabs li a:hover,
.subcategory-tabs li a.active {
  background: #77b255;
  color: #fff;
  border-color: #77b255;
}

/* на очень узких экранах разрешим горизонтальный скролл, чтобы точно не ломалось */
@media (max-width: 480px) {
  .subcategory-tabs {
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    padding-bottom: 6px;
  }
  .subcategory-tabs li {
    flex: 0 0 auto;
  }
  .about-story .container {
    flex-direction: column;
  }
}

/* Основной блок доставки */
.delivery-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.delivery-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.delivery-map {
  flex: 1;
  min-width: 300px;
}

.delivery-map img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.delivery-info {
  flex: 1;
}

.delivery-info h2 {
  font-size: 26px;
  margin-bottom: 15px;
  color: #333;
}

.delivery-info h3 {
  font-size: 20px;
  margin-top: 25px;
  margin-bottom: 10px;
  color: #555;
}

.delivery-list {
  list-style: disc;
  /* padding-left: 20px; */
  margin-bottom: 20px;
}

.delivery-list li {
  font-size: 16px;
  margin-bottom: 5px;
}

.delivery-info p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* ===== Адаптив ===== */
@media (max-width: 991px) {
  .delivery-wrapper {
    flex-direction: column;
  }
  .delivery-map,
  .delivery-info {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .about-hero {
    padding: 50px 15px;
  }
  .about-hero .section-title {
    font-size: 28px;
  }
  .about-hero .section-subtitle {
    font-size: 16px;
  }
}

/* Контейнер карты и списка */
.delivery-map-section .delivery-map-wrap {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  align-items: stretch;
}

/* Левая панель */
.delivery-sidebar {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.delivery-side-title {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 18px;
  color: #111827;
}

.delivery-desc {
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

/* Список пунктов */
.delivery-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100vh - 240px);
  overflow-y: auto;
  padding-right: 4px;
}

.delivery-item {
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.delivery-item:hover {
  background: #f3f4f6;
}

.delivery-item.is-active {
  border-color: #fb923c;
  background: #fff7ed;
}

/* Карта */
.delivery-map {
  width: 100%;
  min-height: 550px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Скроллбар */
.delivery-list::-webkit-scrollbar {
  width: 6px;
}
.delivery-list::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}
.delivery-list::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Мобильная адаптация */
@media (max-width: 900px) {
  .delivery-map-section .delivery-map-wrap {
    grid-template-columns: 1fr;
  }
  .delivery-list {
    max-height: 240px;
  }
}
.delivery-map-section {
  padding: 60px 0;
}

.delivery-item .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.delivery-item .name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.delivery-item .badge {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2ff;
  border: 1px solid #e5e7eb;
  color: #1f2937;
}

/* 404 Page */
.notfound-hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: url("./assets/404-bg.jpg") center/cover no-repeat;
  overflow: hidden;
}

.notfound-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
}

.notfound-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 20px;
}

.notfound-content h1 {
  font-size: 4rem;
  margin-bottom: 15px;
}

.notfound-content p {
  font-size: 1.3rem;
  margin-bottom: 30px;
}

.notfound-content .buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.notfound-content .button {
  padding: 12px 28px;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.notfound-content .button:hover {
  background: #009245;
  color: #fff;
}

/* ========================================
   SIMPLE CHECKOUT PAGE STYLES
   ======================================== */

/* Main wrapper and container */
.simple-checkout-wrapper {
  background-color: #fefefe;
  min-height: 100vh;
  padding: 2rem 0;
}

.simple-checkout-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 20px;
}

.simple-checkout-title {
  font-family: "Unna", Arial;
  font-weight: 700;
  color: #2c5530;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

/* Card components */
.simple-checkout .card {
  background: white;
  border: 2px solid #2c5530;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(44, 85, 48, 0.1);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.simple-checkout .card-header {
  background: linear-gradient(135deg, #2c5530 0%, #1a3d1f 100%);
  color: white;
  padding: 1.25rem;
  border-bottom: none;
}

.simple-checkout .card-header h3 {
  font-family: "Unna", Arial;
  font-weight: 700;
  margin: 0;
  font-size: 1.4rem;
}

.simple-checkout .card-body {
  padding: 1.5rem;
}

/* Form elements */
.simple-checkout .form-group {
  margin-bottom: 1.25rem;
}

.simple-checkout .form-group label {
  font-family: "Quicksand", Arial;
  font-weight: 600;
  color: #2c5530;
  margin-bottom: 0.5rem;
  display: block;
  font-size: 1rem;
}

.simple-checkout .form-control {
  font-family: "Quicksand", Arial;
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #2c5530;
  border-radius: 8px;
  font-size: 16px;
  background: white;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.simple-checkout .form-control:focus {
  border-color: #1a3d1f;
  outline: none;
  box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.15);
  background: #f8f9fa;
}

.simple-checkout .form-control::placeholder {
  color: #6c757d;
  font-style: italic;
}

/* District selection special styling */

/* Order summary styling */
.simple-checkout .order-summary {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
}

.simple-checkout .order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
}

.simple-checkout .order-item:last-child {
  border-bottom: none;
}

.simple-checkout .order-item span {
  font-family: "Quicksand", Arial;
}

.simple-checkout .order-total {
  background: #2c5530;
  color: white;
  padding: 1rem;
  margin: 1rem -1rem -1rem -1rem;
  border-radius: 0 0 8px 8px;
}

.simple-checkout .order-total .order-item {
  border-bottom: none;
  font-weight: 700;
  font-size: 1.2rem;
}

.simple-checkout #delivery-fee {
  font-weight: 600;
  color: #2c5530;
}

/* Submit button */
.simple-checkout .btn-primary {
  font-family: "Quicksand", Arial;
  background: linear-gradient(135deg, #2c5530 0%, #1a3d1f 100%);
  border: none;
  color: white;
  padding: 1rem 3rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(44, 85, 48, 0.3);
}

.simple-checkout .btn-primary:hover {
  background: linear-gradient(135deg, #1a3d1f 0%, #0f2912 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 85, 48, 0.4);
}

.simple-checkout .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(44, 85, 48, 0.3);
}

/* Layout utilities */
.simple-checkout .row {
  display: flex;
  gap: 1rem;
  margin: 0 -0.5rem;
}

.simple-checkout .col-md-6 {
  flex: 1;
  padding: 0 0.5rem;
}

/* Alert styling */
.simple-checkout .alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-family: "Quicksand", Arial;
  font-weight: 600;
}

.simple-checkout .alert-success {
  background: #d4edda;
  color: #155724;
  border: 2px solid #c3e6cb;
}

.simple-checkout .alert-danger {
  background: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
}

/* Utility classes */
.simple-checkout .text-center {
  text-align: center;
}

.simple-checkout .mb-2 {
  margin-bottom: 0.5rem;
}

.simple-checkout .mb-3 {
  margin-bottom: 1rem;
}

.simple-checkout .mb-4 {
  margin-bottom: 1.5rem;
}

.simple-checkout .d-flex {
  display: flex;
}

.simple-checkout .justify-content-between {
  justify-content: space-between;
}

.simple-checkout .h5 {
  font-size: 1.25rem;
  font-weight: 600;
}

/* Responsive design */
@media (max-width: 768px) {
  .simple-checkout-container {
    padding: 0 12px;
  }

  .simple-checkout-title {
    font-size: 2rem;
  }

  .simple-checkout .card-body {
    padding: 1rem;
  }

  .simple-checkout .btn-primary {
    width: 100%;
    padding: 1rem;
  }

  .simple-checkout .row {
    flex-direction: column;
    gap: 0;
  }

  .simple-checkout .col-md-6 {
    padding: 0;
  }
}

/* Контейнер действий */
.woocommerce-account
  .woocommerce-orders-table
  td.woocommerce-orders-table__cell-order-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-start;
  align-items: center;
}

/* Кнопки */
.woocommerce-button.button {
  flex: 1 1 auto;
  text-align: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
  transition: background 0.3s ease;
  margin: 0; /* убираем лишние отступы, теперь gap */
}

/* Оплатить */
.woocommerce-button.button.pay {
  background-color: #77b255;
}
.woocommerce-button.button.pay:hover {
  background-color: #333;
}

/* Просмотр */
.woocommerce-button.button.view {
  background-color: #3498db;
}
.woocommerce-button.button.view:hover {
  background-color: #2176bd;
}

/* Отмена */
.woocommerce-button.button.cancel {
  background-color: #e74c3c;
}
.woocommerce-button.button.cancel:hover {
  background-color: #a00000;
}
.order_details .button {
  margin: 0 4px;
}

/* 📱 Планшеты */
@media (max-width: 768px) {
  .woocommerce-button.button {
    min-width: auto; /* чуть свободнее */
    font-size: 0.8rem;
    padding: 8px 10px;
  }
}

/* 📱 Телефоны */
@media (max-width: 480px) {
  .woocommerce-account
    .woocommerce-orders-table
    td.woocommerce-orders-table__cell-order-actions {
    flex-wrap: wrap; /* если совсем узко — переносим */
  }
  .woocommerce-account .woocommerce-orders-table .woocommerce-button.button {
    flex: 1 1 100%; /* каждая занимает строку */
  }
}

/* === View Order Header (номер, дата, статус) === */
.woocommerce-order > p {
  background: #fff;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
  font-size: 1rem;
  color: #333;
  font-weight: 500;
}
.woocommerce-order > p .order-number {
  color: #77b255;
  font-weight: 700;
  background: none;
  padding: 0;
}
.woocommerce-order > p .order-date {
  color: #222;
  font-weight: 600;
  background: none;
  padding: 0;
}
.woocommerce-order > p .order-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  background: #ffeaea;
  color: #c62828;
}

/* Completed / Processing / On-hold (вариации цветов статусов) */
.woocommerce-order > p .order-status.status-processing {
  background: #e9f9e3;
  color: #2e7d32;
}
.woocommerce-order > p .order-status.status-completed {
  background: #e3f2fd;
  color: #1565c0;
}
.woocommerce-order > p .order-status.status-on-hold {
  background: #fff8e1;
  color: #ff8f00;
}

/* Заголовки секций */
.woocommerce-order-details__title,
.woocommerce-column__title {
  font-family: "Unna", serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 14px;
}

/* Таблица заказанных товаров */
.woocommerce-table--order-details {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.woocommerce-table--order-details th {
  background: #fafafa;
  font-weight: 700;
  color: #333;
  padding: 14px 16px;
}
.woocommerce-table--order-details td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f1f1;
  color: #333;
}
.woocommerce-table--order-details tfoot th {
  text-align: left;
}

/* Адреса */
.woocommerce-customer-details {
  margin-top: 24px;
}
.woocommerce-customer-details address {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  line-height: 1.6;
  font-style: normal;
  color: #444;
}
.woocommerce-customer-details p {
  margin: 4px 0 0;
  color: #555;
  font-size: 0.95rem;
}

/* === ACCOUNT → VIEW ORDER (детали заказа) === */

/* Контейнер */
.account-content {
  font-family: "Quicksand", Arial, sans-serif;
  color: #222;
}
.account-content > p {
  background: #fff;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  margin: 0 0 24px;
  line-height: 1.6;
}

/* mark: убираем желтый по умолчанию и стилизуем каждый тип */
.account-content p mark {
  background: none;
  padding: 0;
  color: inherit;
}

/* № заказа — аккуратный акцент */
.account-content p .order-number {
  display: inline-block;
  font-weight: 800;
  color: #77b255;
  border: 2px solid #77b255;
  border-radius: 10px;
  padding: 0 8px;
  line-height: 1.4;
}

/* Дата — мягкий чип */
.account-content p .order-date {
  display: inline-block;
  font-weight: 700;
  color: #2b2b2b;
  background: #f5f7f9;
  border-radius: 8px;
  padding: 2px 8px;
}

/* Статус — бейдж с цветами по классам (см. JS ниже) + дефолт нейтральный */
.account-content p .order-status {
  display: inline-block;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f1f1f1;
  color: #333;
  text-transform: capitalize;
  letter-spacing: 0.2px;
}
.account-content p .order-status.is-processing {
  background: #e9f9e3;
  color: #2e7d32;
}
.account-content p .order-status.is-completed {
  background: #e3f2fd;
  color: #1565c0;
}
.account-content p .order-status.is-onhold {
  background: #fff8e1;
  color: #ff8f00;
}
.account-content p .order-status.is-cancelled {
  background: #ffeaea;
  color: #c62828;
}

/* Заголовки секций */
.woocommerce-order-details__title,
.woocommerce-column__title {
  font-family: "Unna", serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 14px;
  color: #1d1d1d;
}

/* Таблица деталей заказа — карточка */
.woocommerce-table.woocommerce-table--order-details.shop_table.order_details {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  margin: 0 0 20px;
}
.woocommerce-table--order-details thead th {
  background: #fafafa;
  color: #333;
  font-weight: 800;
  padding: 14px 16px;
  border-bottom: 2px solid #eee;
  text-align: left;
}
.woocommerce-table--order-details tbody td,
.woocommerce-table--order-details tfoot td,
.woocommerce-table--order-details tfoot th {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f1f1;
  vertical-align: top;
  color: #2b2b2b;
}
.woocommerce-table--order-details .product-total,
.woocommerce-table--order-details tfoot td {
  text-align: right;
}

/* Линки товара — явный акцент и нормальный hover/focus */
.woocommerce-table__product-name a {
  color: #111;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
  text-underline-offset: 3px;
}
.woocommerce-table__product-name a:hover {
  color: #77b255;
  border-bottom-color: #77b255;
}
.woocommerce-table__product-name a:focus-visible {
  outline: 2px solid #77b255;
  outline-offset: 2px;
  border-bottom-color: transparent;
}

/* Кол-во — вторично */
.woocommerce-table__line-item .product-quantity {
  color: #666;
  font-weight: 700;
  margin-left: 4px;
}

/* Суммы — ровные табличные цифры */
.woocommerce-Price-amount {
  font-weight: 800;
  letter-spacing: 0.2px;
}
.woocommerce-Price-amount bdi {
  font-variant-numeric: tabular-nums;
}
.woocommerce-Price-currencySymbol {
  opacity: 0.9;
}

/* Итого (последняя строка футера) — жирнее и с верхней границей */
.woocommerce-table--order-details tfoot tr:last-child td,
.woocommerce-table--order-details tfoot tr:last-child th {
  font-size: 1.05rem;
  font-weight: 800;
  border-bottom: 0;
  border-top: 2px solid #eee;
  padding-top: 16px;
}

/* Адрес — карточка */
.woocommerce-customer-details {
  margin-top: 24px;
}
.woocommerce-customer-details address {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  line-height: 1.7;
  font-style: normal;
  color: #444;
}
.woocommerce-customer-details p {
  margin: 6px 0 0;
  color: #555;
  font-size: 0.95rem;
}

/* Адаптив */
@media (max-width: 768px) {
  .woocommerce-table.woocommerce-table--order-details.shop_table.order_details {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .woocommerce-table--order-details .product-total,
  .woocommerce-table--order-details tfoot td {
    text-align: left;
  }
}

.product-slide {
  box-sizing: border-box;
}

.product-card {
  width: 100%;
  max-width: 280px; /* ограничение ширины, чтобы кнопки и текст не ломались */
  margin: 0 auto; /* центрируем внутри слайда */
}

.woocommerce-product-gallery__image {
  margin-top: 24px;
}
