/**
 * Theme Name:     GeneratePress Child
 * Author:         Tom Usborne
 * Template:       generatepress
 * Text Domain:	   generatepress-child
 * Description:    GeneratePress is a lightweight WordPress theme built with a focus on speed and usability. Performance is important to us, which is why a fresh GeneratePress install adds less than 10kb (gzipped) to your page size. We take full advantage of the block editor (Gutenberg), which gives you more control over creating your content. If you use page builders, GeneratePress is the right theme for you. It is completely compatible with all major page builders, including Beaver Builder and Elementor. Thanks to our emphasis on WordPress coding standards, we can boast full compatibility with all well-coded plugins, including WooCommerce. GeneratePress is fully responsive, uses valid HTML/CSS, and is translated into over 25 languages by our amazing community of users. A few of our many features include 60+ color controls, powerful dynamic typography, 5 navigation locations, 5 sidebar layouts, dropdown menus (click or hover), and 9 widget areas. Learn more and check out our powerful premium version at https://generatepress.com
 */



/* Основен CTA бутон */
.btn-primary {
  display: inline-block;
  background: #e1ede3;
	border:2px solid #e1ede3;
  color: #1c1c1c;
  font-weight: 600;
  border-radius: 50px;
  padding: 12px 28px;
  text-decoration: none;
  transition: background 0.25s ease, border 0.25s ease;
}

.btn-primary:hover {
  background: transparent;
  
	border:2px solid #e1ede3;
	color:#e1ede3;
}

/* Вторичен бутон */
.btn-secondary {
  background: transparent;
  border: 2px solid #b1c400;
  color: #b1c400;
}

.btn-secondary:hover {
  background: #b1c400;
  color: #fff;
}

/* Fade in animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.benefits-list li{
	color:grey;
}

/* About photos */

.gs-photo-pair {
  position: relative;
  display: block;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
  object-fit: cover;
  width: 90%;
}

.gs-photo img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  display: block;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Горната снимка – малко по-голяма */
.gs-photo-top {
  width: 80%;
  z-index: 1;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius:20px;
  overflow:hidden;
  position: relative;
}

/* Долната снимка – по-малка и изместена вдясно */
.gs-photo-bottom {
  width: 65%;
  margin-left: auto;
  margin-top: -50%;
  z-index: 1;
  border-radius:20px;
  border: solid 15px #ffff;
  position: relative;
	overflow:hidden;
}

.gs-photo-bottom:before, .gs-photo-top:before{
	content:'';
	width: 200%;
	height: 0%;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%) rotate(45deg);
	display: block;
	position: absolute;
	background:  rgba(255, 255, 255, 0.3);
	opacity: 1;
	transition: all 300ms linear;
}

.gs-photo-bottom:hover:before, .gs-photo-top:hover:before{
		
	height:250%;
background:transparent;
}

/* ГРИД */
.gs-products {
  --gap: 1.5rem;
  --radius: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
}

/* КАРТА */
.product-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  overflow: hidden;
}

.product {
  display: block;
  position: relative;
}

/* махаме стандартния маркер на <summary> */
.product > summary {
  list-style: none;
  cursor: default;
  position: relative;
}
.product > summary::-webkit-details-marker { display: none; }

/* МЕДИЯ */
.product-media img{
  width: 100%;
  height: auto;
  display: block;
}

/* ИМЕТО ПОД СНИМКАТА */
.product-name{
  margin: .75rem 1rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
  text-align: center;
}

/* ДОП. ТЕКСТ – overlay по подразбиране (за десктоп) */
.product-info{
  position: absolute;
  inset: 0.5rem;
  background: rgba(255,255,255,.96);
  padding: 1rem;
  border-radius: calc(var(--radius) - .5rem);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
  overflow: auto;
}

.product-info p{
	font-size:14px;
}

/* ХОВЪР НА ДЕСКТОП */
@media (hover:hover) and (pointer:fine){
  .product-card:hover .product-info{
    opacity: 1;
    transform: translateY(0);
  }
}

/* ПЛЮСЧЕ – показва се само на мобилно като индикатор, че има още инфо */
.mobile-plus{
  /* display: none; */
}

 .mobile-plus{
    display: inline-flex;
    position: absolute;
    top: .6rem;
    right: .6rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #b1c400;
    color: #fff;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1;
  }

/* МОБИЛЕН РЕЖИМ: текстът се отваря под снимката при клик (details[open]) */
@media (max-width: 768px){
  .product-info{
    position: static;
    opacity: 1;
    transform: none;
    background: #f9fbf7;
    margin: 0 1rem 1rem;
    border-radius: 12px;
    display: none; /* скрито по подразбиране */
  }
  .product[open] .product-info{
    display: block; /* показва се при тап върху картата */
  }

  /* Правим summary кликаем и добавяме плюс в горния десен ъгъл */
  .product > summary{
    cursor: pointer;
    padding-right: 2rem; /* място за плюсчето */
  }
  .mobile-plus{
    display: inline-flex;
    position: absolute;
    top: .6rem;
    right: .6rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #b1c400;
    color: #fff;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1;
  }
  /* завъртаме плюсчето на “–” при отворено състояние */
  .product[open] .mobile-plus{
    transform: rotate(45deg);
    transition: transform .2s ease;
  }
}

