/*
 Theme Name: GeneratePress Child
 Theme URI: https://kutyablog.hu
 Description: A child theme for GeneratePress.
 Author: KutyaBlog
 Author URI: https://kutyablog.hu
 Template: generatepress
 Version: 1.0
*/

/* Itt kezdődnek a gyereksablon egyedi stílusai */
/* 404 oldal keresőmező beállítása */
.wp-block-search__input {
  background-color: #f7f7f7!important; /* háttérszín – tetszés szerint módosítható */
  border: 2px solid #0066cc!important;    /* keret vastagság, szín */
  border-radius: 8px;        /* lekerekítés – opcionális */
  padding: 8px 12px;         /* belső margó */
  color: #333;               /* betűszín */
}

.wp-block-search__button {
  background-color: #444;     /* gomb háttérszíne */
  color: #fff;                /* gomb szöveg színe */
  border: none;               /* nincs keret */
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}

.wp-block-search__button:hover {
  background-color: #222;     /* gomb hover színe */
}
/* END 404 oldal keresőmező beállítása */
/*--------------------*/
/* Kategória a GP kategóriákhoz */

/* --- Középre igazító segédosztályok --- */
.kozepre,
.kozepre2 {
  display: flex;
  align-items: center;
  justify-content: center;
}
.kozepre { height: 80px; }
.kozepre2 { height: 180px; }
.kozepre p,
.kozepre2 p { margin-bottom: 0px; }

/* --- Gombok (régebbi kategória-váltó funkcióhoz) --- */
.category-button {
  background-color: var(--alapszin);
  color: white;
  border: none;
  padding: 10px 16px;
  margin: 4px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}
.category-button:hover {
  background-color: #005e8a;
}

/* --- GP alapértelmezett kategória cím elrejtése --- */
.category .page-header { 
  display: none; 
}

/* --- Kategória fejléc --- */
.category-header {
    text-align: center;
    margin: 3rem 0 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f9fafb 0%, #f0f4f0 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e0e7e0;
}

.category-title {
    font-size: 2.2rem;
    color: #2c5f2d;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.category-description {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
    margin-top: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

/* --- GRID elrendezés --- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    width: 100%;
}

/* --- Kártyák --- */
.post-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* --- Kiemelt kép --- */
.post-thumbnail {
    overflow: hidden;
}
.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}
.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

/* --- Kártya szöveg --- */
.post-content {
    padding: 1.5rem;
}

.entry-title {
    font-size: 1.4rem;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}
.entry-title a {
    color: #2c5f2d;
    text-decoration: none;
    transition: color 0.3s;
}
.entry-title a:hover {
    color: #1a3c1a;
}

.entry-summary {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* --- Meta adatok --- */
.entry-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #777;
    flex-wrap: wrap;
}
.post-date,
.post-categories {
    padding: 4px 10px;
    background: #f1f8f1;
    border-radius: 20px;
    font-weight: 500;
}

/* Olvass tovább gomb (csak a mi gombunk!) */
body.category .custom-read-more {
    display: inline-block;
    padding: 12px 24px;
    background: #2c5f2d;
    color: white !important;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 2px solid #2c5f2d;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-top: 10px;
    transition: all 0.3s ease;
}

body.category .custom-read-more:hover {
    background: white;
    color: #2c5f2d !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* GP által generált gombok elrejtése (ha maradna nyoma) */
body.category .entry-summary .read-more,
body.category .entry-summary .read-more {
    display: none !important;
}


/* END Kategória a GP kategóriákhoz */

/* Termékoldal alap szélesítés */
.single-product .site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Kép és tartalom közti tér */
.single-product .product .summary,
.single-product .product .images {
    margin-top: 20px;
}

/* Woo kosárba gomb szín */
.single-product .single_add_to_cart_button {
    background-color: #6e4b33;
    color: #fff;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 6px;
    border: none;
}

.single-product .single_add_to_cart_button:hover {
    background-color: #8a5f42;
}

/* Rövid leírás olvashatóbbá tétele */
.single-product .woocommerce-product-details__short-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Termékkép szélesség optimalizálás */
.single-product div.images img {
    max-width: 450px;
    border-radius: 8px;
}

/* PayPal gomb elegánsabb megjelenés */
#ppcp-messages, .ppcp-button-wrapper {
    margin-top: 10px;
}

.ppcp-button-wrapper {
    max-width: 280px;
}

/* Kategória link formázása */
.product_meta a {
    color: #6e4b33;
    font-weight: 600;
}

.product_meta a:hover {
    color: #8a5f42;
}

/* Terméknév szebbé tétele */
.single-product .product_title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}


