/* ============================================================
   hamvasbela.hu — COMPLETE Saját CSS  (original + fixes)
   Paste this as the WHOLE Saját CSS (select all, delete, paste).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Merriweather:wght@300;400;700&display=swap');

/* ---------- YOUR ORIGINAL STYLES (restored) ---------- */
:root {
    /* Color Palette */
    --bg-paper: #f5f3f0;
    --bg-white: #ffffff;
    --text-main: #3a3a3a;
    --text-heading: #5a4a3a;
    --accent-gold: #8b735b;
    --accent-gold-dark: #6b5a4a; /* For Hover */
    --accent-gold-access: #76604a; /* Link color (Improved contrast) */
    
    /* Typography */
    --font-body: 'Merriweather', serif;
    --font-heading: 'Playfair Display', serif;
}

/* General Styles */
* {
    box-sizing: border-box; 
    /* Font-family removed from here for performance and icon compatibility */
}

body {
    font-family: var(--font-body);
    line-height: 1.8;
    color: var(--text-main);
    background-color: var(--bg-paper);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased; /* Improves serif font display */
}

/* Links & Interaction (Accessibility Focus added) */
a {
    transition: all 0.3s ease;
    color: var(--accent-gold-access); /* Uses high-contrast color */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: var(--accent-gold-dark);
}

/* Add Focus states for keyboard accessibility (WCAG) */
a:focus, button:focus, input:focus {
    outline: 2px dashed var(--accent-gold);
    outline-offset: 4px;
}

/* Paragraphs and Lists */
p {
    margin: 0 0 25px;
    font-size: 18px;
    line-height: 1.8;
    font-weight: 400;
    letter-spacing: 0.3px;
    color: var(--text-main);
}

li {
    color: var(--text-main);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.8;
}

strong {
    font-weight: 700;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-heading);
}

h1 {
    font-size: 48px;
    line-height: 1.2;
}

h2 {
    font-size: 36px;
    line-height: 1.3;
}

h3 {
    font-size: 28px;
    color: var(--accent-gold);
}

h4 {
    font-size: 24px;
    color: var(--text-main);
}

/* Title Styles */
#body_title h1,
#title_content {
    color: var(--text-heading);
    text-align: center;
    font-size: 48px;
    margin-top: 100px;
    margin-bottom: 100px;
    line-height: 1.3;
    text-transform: none;
}

/* Buttons and Forms (Unified Styling) */
.btn-primary,
input[type=submit],
input[type=button],
input[type=reset],
button,
#page_artdet_inquire a, /* Inquiry link */
.page_page_blog_next a, /* Blog navigation */
.page_page_blog_back a { /* Blog navigation */
    background: var(--accent-gold);
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-family: var(--font-body); /* Ensures button text matches body font */
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease;
    border-radius: 4px;
    display: inline-block;
}

input[type=submit]:hover,
input[type=button]:hover,
input[type=reset]:hover,
button:hover,
#page_artdet_inquire a:hover,
.page_page_blog_next a:hover, 
.page_page_blog_back a:hover {
    background: var(--accent-gold-dark);
    text-decoration: none;
}

/* Specific Overrides for Engine Elements */
button.box_search_button:hover {
    background: var(--accent-gold);
}

.box_cart_itemlist .box_cart_button input {
    background: var(--accent-gold);
}

label {
    padding-right: 10px;
    padding-left: 7px;
    font-size: 16px;
    color: var(--text-main);
}

/* Header and Navigation */
.page_page_blog_header > div {
    align-items: center;
    display: flex;
    color: var(--accent-gold);
    font-size: 32px;
}

#mainmenu > li > a {
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font-body);
    color: var(--text-heading);
}

#mainmenu > li.menu_item_plus > ul > li a {
    font-size: 15px;
    font-family: var(--font-body);
    color: var(--text-heading);
}

.catmenu_lvl2 a {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-heading);
}

/* Blog and Article Styles */
.page_page_blog_title h1,
.page_page_blog_title a {
    color: var(--text-heading);
}

.page_artlist_name a {
    color: var(--text-main);
    line-height: 21px;
}

.page_artdet_1_name h1 {
    margin-bottom: 70px;
    margin-top: 0px;
}

.page_artdet_param_value {
    font-weight: 400;
}

/* Layout and Containers */
#container,
#header_bottom_wrap,
#header_bottom,
#partners {
    background-color: var(--bg-paper);
}

#newsletter_wrap {
    margin-top: 200px;
}

#partners {
    padding: 40px 0;
}

/* Footer */
.footer_menu ul li a {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 2;
    color: var(--text-heading);
}

.footer_menu ul li a:hover {
    color: var(--accent-gold);
}

/* Custom Content Styles (The "reading mode" box) */
.custom-content .reading-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--bg-white);
    box-shadow: 0 4px 20px rgba(90, 74, 58, 0.1); /* Soft, themed shadow */
    border-radius: 8px;
}

.custom-content .reading-content p {
    margin: 0 0 25px;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-main);
    text-align: justify;
    hyphens: auto; /* Required for good justified text */
}

.custom-content .reading-content p + p {
    margin-top: 1.5em;
}

.badge {
    display: inline-block;
    background-color: #f8d7da;
    color: #721c24;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    border: 1px solid #f5c6cb;
    font-family: sans-serif;
}

/* Media Queries */

/* Mobile (up to 768px) */
@media screen and (max-width: 768px) {
    .slider-pro p.sp-layer { 
        display: none !important; /* Hides slider text on mobile */
    }

    #body_title h1,
    #title_content {
        font-size: 32px;
        margin: 40px 0; /* Reduced margin for mobile */
    }

    .page_content_item {
        padding: 0 20px;
    }

    /* Adjust text size for mobile reading */
    p { font-size: 16px; } 
}

/* Tablet (Intermediate step: 601px to 1024px) */
@media only screen and (min-width: 601px) and (max-width: 1024px) {
    .page_content_item {
        padding: 0 40px; /* Moderate padding */
    }
}

/* Desktop (1025px and up) */
@media only screen and (min-width: 1025px) {
    .page_content_item {
        text-align: justify;
        clear: both;
        padding: 0 100px; /* Large padding for large screens only */
    }
}


/* ---------- FIXES (override the above where needed) ---------- */
/* ============================================================
   hamvasbela.hu — CSS fixes  (2026-12)
   #1 must be the VERY FIRST line of your Saját CSS (above :root).
   #2–#6 can be appended at the end.
   ============================================================ */

/* 1) LOAD THE FONTS  — your CSS asks for Playfair Display + Merriweather,
   but they were never loaded, so the whole site falls back to plain serif.
   Put this line at the very TOP of the Saját CSS panel. */

/* 2) Basket "MEGRENDELÉS" button — proper shape + correct hover */
.box_cart_itemlist .box_cart_button input{
  background: var(--accent-gold);
  color:#fff;
  border:0;
  width:100%;
  padding:14px 24px;
  border-radius:6px;
  font-family: var(--font-body);
  font-size:14px;
  font-weight:700;
  letter-spacing:1.5px;
  text-transform:uppercase;
  cursor:pointer;
  box-shadow:0 4px 14px rgba(139,115,91,.28);
  transition: background .25s ease, transform .1s ease, box-shadow .25s ease;
}
.box_cart_itemlist .box_cart_button input:hover{
  background: var(--accent-gold-dark);   /* this fixes the wrong hover colour */
  transform: translateY(-1px);
  box-shadow:0 6px 18px rgba(139,115,91,.35);
}

/* 3) Stop your styled button-links from getting underlined on hover */
#page_artdet_inquire a:hover,
.page_page_blog_next a:hover,
.page_page_blog_back a:hover{ text-decoration:none; }

/* 4) Tame the huge fixed gaps (they leave big empty bands, esp. on mobile) */
#body_title h1, #title_content{ margin-top:60px; margin-bottom:60px; }
#newsletter_wrap{ margin-top:90px; }
.page_artdet_1_name h1{ margin-bottom:40px; }
@media (max-width:768px){
  #body_title h1, #title_content{ margin:32px 0; }
  #newsletter_wrap{ margin-top:48px; }
  .page_artdet_1_name h1{ margin-bottom:24px; }
}

/* 5) Badge should match the serif identity (was sans-serif) */
.badge{ font-family:'Merriweather',serif; }

/* 6) OPTIONAL — if justified text looks gappy in Hungarian, uncomment: */
/* .custom-content .reading-content p{ text-align:left; hyphens:none; } */

/* ============================================================
   hamvasbela.hu — sitewide fixes, part 2  (2026-12)
   Append these at the END of your Saját CSS.
   ============================================================ */

/* 1) MAIN MENU — was 12–13px Open Sans. Covers BOTH menu systems the
   theme uses (desktop #mainmenu and the responsive menu). */
#mainmenu > li > a,
#responsive_cat_menu_content .ul_level_0 > li > a{
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  letter-spacing: .5px !important;
  color: var(--text-heading) !important;
}

/* 2) MINI-CART DROPDOWN — was gold text on a gold panel (button vanished).
   Make it a clean white panel with dark text; the gold button now stands out. */
.box_cart_itemlist{
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  box-shadow: 0 14px 34px rgba(90,74,58,.18) !important;
}
.box_cart_itemlist,
.box_cart_itemlist a,
.box_cart_itemlist div,
.box_cart_itemlist span{ color: var(--text-main) !important; }
.box_cart_itemlist .box_cart_price,
.box_cart_itemlist .box_cart_price_label,
.box_cart_itemlist .text_color_fault{ color: var(--accent-gold-dark) !important; font-weight: 700 !important; }
.box_cart_itemlist .box_cart_button input{ color: #fff !important; }   /* keep button label white */

/* 3) PRODUCT GRID — bigger title, bigger price sitting closer beneath it */
#body .page_artlist_name_3 a.page_artlist_name_link{
  font-size: 20px !important;
  font-weight: 600 !important;
  color: var(--text-heading) !important;
  line-height: 1.3 !important;
}
.page_artlist_price{
  font-size: 17px !important;
  font-weight: 700 !important;
  color: var(--text-heading) !important;
  margin-top: 6px !important;
  padding-top: 6px !important;
}

/* 4) FOOTER — links were 11px and low-contrast */
.footer_menu a,
[class*="footer_menu"] a{
  font-size: 13px !important;
  color: var(--text-heading) !important;
  letter-spacing: .4px !important;
}
.footer_menu a:hover,
[class*="footer_menu"] a:hover{ color: var(--accent-gold) !important; }
.footer_menu strong,
[class*="footer_menu"] strong{ font-family: var(--font-heading) !important; }

/* menu link colour — make sure it wins on BOTH menu systems */
body #mainmenu > li > a,
body #responsive_cat_menu_content .ul_level_0 > li > a,
#responsive_cat_menu_content a.resp_clickable{ color: var(--text-heading) !important; }

/* ============================================================
   hamvasbela.hu — round-3 polish
   Paste at the VERY END of your Saját CSS, then Save.
   ============================================================ */

/* inline links in body copy should match the text around them
   (fixes the small "Hamvas Béla Kiskönyvtár" link in the description) */
p a, li a{ font-size: inherit !important; }

/* product grid: title in Playfair and larger, price larger */
body #body .page_artlist_name_3 a.page_artlist_name_link{
  font-family: var(--font-heading) !important;
  font-size: 22px !important;
}
#body .page_artlist_price{ font-size: 18px !important; }

/* mini-cart button: the theme forces a fixed height that pushes the
   "Megrendelés" label to the bottom — let it size to its content */
.box_cart_itemlist .box_cart_button input{
  height: auto !important;
  line-height: 1.2 !important;
  vertical-align: middle !important;
}

/* ============================================================
   hamvasbela.hu — round-4: left-column product lists
   (TOP termékek / Termékajánló / Utoljára megnézett)
   Paste at the VERY END of your Saját CSS, then Save.
   ============================================================ */

body .element_name a.product_link_promo,
body .element_name a{
  font-size: 15px !important;
  color: var(--text-heading) !important;
  font-family: var(--font-body) !important;
  line-height: 1.4 !important;
}
.element_price{
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--text-heading) !important;
}

/* ============================================================
   hamvasbela.hu — round-5: top account links
   (Belépés / Profil / Kedvencek)
   Paste at the VERY END of your Saját CSS, then Save.
   ============================================================ */

#header_menu .list-inline{ text-align:right !important; margin:0 !important; padding:0 !important; }
#header_menu .list-inline-item{
  font-size:13px !important;
  line-height:1.4 !important;
  margin:0 0 0 24px !important;
  vertical-align:middle !important;
}
#header_top #header_menu .list-inline-item a{
  font-size:13px !important;
  letter-spacing:.6px !important;
  text-transform:uppercase !important;
  color:var(--text-heading) !important;
  font-family:var(--font-body) !important;
  transition:color .2s ease !important;
}
#header_top #header_menu .list-inline-item a:hover{ color:var(--accent-gold) !important; }