/*
Theme Name: Honnomushi
Theme URI: https://honnomushicatbooks.lunagramstudio.hu
Author: Honnomushi Cat Bookshop
Description: Honnomushi Cat Bookshop egyedi téma – japán/koreai könyvesbolt webshop
Version: 1.0.0
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: honnomushi
Tags: woocommerce, custom-theme, bookshop
*/

/* ================================================
   GOOGLE FONTS
   ================================================ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;1,9..144,400;1,9..144,600&family=Raleway:ital,wght@0,400;0,600;1,400;1,600&display=swap');

/* ================================================
   FONTS
   ================================================ */
@font-face {
    font-family: 'Monolineboho';
    src: url('/wp-content/themes/honnomushi/fonts/Monolineboho.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
/* ================================================
   CSS VÁLTOZÓK
   ================================================ */
:root {
    /* Színek */
    --white:        #FFFEFD;
    --navy:         #020F59;
    --red:          #F73C4F;
    --pink-light:   #FFEBF5;
    --coral:        #F15B57;
    --mint:         #C8F0D8;
    --green:        #20BF55;

    /* Funkcionális színek */
    --body-bg:      #FFFEFD;
    --body-txt:     #020F59;
    --primary:      #F73C4F;
    --secondary:    #020F59;
    --accent:       #F7C0D7;
    --success:      #20BF55;

    /* Tipográfia */
    --font-display: 'Fraunces', serif;
    --font-body:    'Raleway', sans-serif;

    /* Méretek */
    --radius:       1.5rem;
    --radius-sm:    0.5rem;
    --radius-pill:  999px;

    /* Viewport alapú tipográfia */
    --h1:           clamp(2rem, 4vw, 3.4375rem);     /* ~55px */
    --h2:           clamp(1.75rem, 3.2vw, 2.75rem);  /* ~44px */
    --h3:           clamp(1.25rem, 2vw, 1.5rem);      /* ~24px */
    --lead:         clamp(1.1rem, 2.2vw, 2rem);       /* ~32px */
    --body-size:    clamp(0.875rem, 1.2vw, 1.25rem);  /* 14-20px */
    --small:        0.85rem;

    /* Spacing */
    --gap:          40px;
    --section-gap:  clamp(3rem, 6vw, 6rem);
}

/* ================================================
   RESET ALAP
   ================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--body-size);
    font-weight: 400;
    line-height: 1.7;
    color: var(--body-txt);
    background-color: var(--pink-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--coral);
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* ================================================
   TIPOGRÁFIA
   ================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--navy);
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

h1 {
    font-size: var(--h1);
    margin-bottom: 0.5em;
}

h2 {
    font-size: var(--h2);
    margin-bottom: 0.5em;
}

h3 {
    font-size: var(--h3);
    margin-bottom: 0.4em;
}

/* Lead paragraph — mindig h1/h2 alatt */
.lead,
h1 + p,
h2 + p {
    font-family: var(--font-body);
    font-size: var(--lead);
    font-weight: 600;
    font-style: italic;
    line-height: 1.4;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

strong {
    font-weight: 600;
}

/* ================================================
   GOMBOK
   ================================================ */
.btn,
.button,
input[type="submit"],
button[type="submit"] {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-body);
    font-size: var(--body-size);
    font-weight: 600;
    color: var(--white);
    background-color: var(--red);
    border: 2px solid var(--red);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

.btn:hover,
.button:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
    background-color: var(--navy);
    border-color: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(247, 60, 79, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--red);
    border: 2px solid var(--red);
}

.btn-outline:hover {
    background: var(--red);
    color: var(--white);
}

.btn-navy {
    background: var(--navy);
    border-color: var(--navy);
}

.btn-navy:hover {
    background: var(--red);
    border-color: var(--red);
}

/* ================================================
   FORM ELEMEK
   ================================================ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--white);
    border: 1px solid var(--pink-light);
    border-radius: var(--radius-sm);
    color: var(--navy);
    font-family: var(--font-body);
    font-size: var(--body-size);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(247, 60, 79, 0.15);
}

/* ================================================
   LAYOUT — KONTÉNEREK
   ================================================ */
.content-box {
    max-width: 1672px;
    margin: 0 auto;
    padding: 0 40px;
}

.narrow {
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
}

.section {
    padding: var(--section-gap) 0;
}

/* ================================================
   HEADER
   ================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--pink-light);
    box-shadow: 0 2px 12px rgba(2, 15, 89, 0.06);
}

.site-header .content-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
    gap: 2rem;
}

.site-logo img {
    max-height: 48px;
    width: auto;
}

/* Főmenü */
.main-navigation ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-navigation ul li a {
    font-family: var(--font-body);
    font-size: var(--small);
    font-weight: 600;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0;
    position: relative;
}

.main-navigation ul li a::after {
    content: '';
    display: block;
    height: 2px;
    background: var(--red);
    width: 0;
    position: absolute;
    bottom: -2px;
    left: 0;
    transition: width 0.3s ease;
}

.main-navigation ul li a:hover::after,
.main-navigation ul li.current-menu-item a::after {
    width: 100%;
}

.main-navigation ul li a:hover {
    color: var(--red);
}

/* Header ikonok (search, account, cart) */
.header-icons {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header-icons a {
    color: var(--navy);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.header-icons a:hover {
    color: var(--red);
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
    background: var(--navy);
    color: var(--white);
    padding: 4rem 0 2rem 0;
}

.site-footer a {
    color: var(--pink-light);
    font-size: var(--small);
    line-height: 2;
}

.site-footer a:hover {
    color: var(--white);
}

.site-footer h3,
.site-footer h4 {
    color: var(--white);
    font-size: var(--small);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 3rem;
    padding-top: 1.5rem;
    font-size: var(--small);
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ================================================
   KÁRTYÁK
   ================================================ */
.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--pink-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(2, 15, 89, 0.1);
}

.card img {
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

.card:hover img {
    transform: scale(1.04);
}

/* ================================================
   BADGE-EK
   ================================================ */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: var(--small);
    font-weight: 600;
    line-height: 1.4;
}

.badge-red {
    background: var(--red);
    color: var(--white);
}

.badge-navy {
    background: var(--navy);
    color: var(--white);
}

.badge-mint {
    background: var(--mint);
    color: var(--navy);
}

.badge-pink {
    background: var(--pink-light);
    color: var(--navy);
}

/* ================================================
   SHORTCUT PILL-EK (kategória gyorslinkek)
   ================================================ */
.shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.shortcut-pill {
    display: inline-block;
    padding: 0.4rem 1.25rem;
    border: 1.5px solid var(--navy);
    border-radius: var(--radius-pill);
    font-size: var(--small);
    font-weight: 600;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.3s ease;
}

.shortcut-pill:hover,
.shortcut-pill.active {
    background: var(--navy);
    color: var(--white);
}

/* ================================================
   WOOCOMMERCE ALAPOK
   ================================================ */
.woocommerce mark {
    background: none;
    color: var(--red);
    font-weight: 600;
}

/* Termék ár */
.woocommerce .price,
.price {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--navy);
    font-size: 1.1rem;
}

/* Add to cart gomb */
.woocommerce .single_add_to_cart_button,
.woocommerce button.button.alt {
    background: var(--red) !important;
    color: var(--white) !important;
    border-radius: var(--radius-pill) !important;
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.75rem !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.woocommerce .single_add_to_cart_button:hover,
.woocommerce button.button.alt:hover {
    background: var(--navy) !important;
    transform: translateY(-2px);
}

/* ================================================
   ANIMÁCIÓK
   ================================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.fade-up {
    animation: fadeUp 0.6s ease forwards;
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* ================================================
   SEGÉDOSZTÁLYOK
   ================================================ */
.text-center  { text-align: center; }
.text-red     { color: var(--red); }
.text-navy    { color: var(--navy); }
.bg-pink      { background-color: var(--pink-light); }
.bg-mint      { background-color: var(--mint); }
.bg-navy      { background-color: var(--navy); }
.italic       { font-style: italic; }
.uppercase    { text-transform: uppercase; }

/* ================================================
   RESZPONZÍV
   ================================================ */
@media only screen and (max-width: 1200px) {
    :root {
        --gap: 24px;
    }
}

@media only screen and (max-width: 768px) {
    :root {
        --gap: 16px;
    }

    .content-box {
        padding: 0 16px;
    }

    .site-header .content-box {
        flex-wrap: wrap;
    }

    .main-navigation {
        display: none; /* mobil menü JS-sel jön majd */
    }
}

@media only screen and (max-width: 480px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
/* ================================================
   OLDAL STRUKTÚRA — FOOTER ALUL
   ================================================ */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#page-content {
    flex: 1;
}

/* ============================================
   DRASZTIKUS WOOCOMMERCE KÉPMÉRET-BLOKKOLÁS ÉS EGYEDI ELOSZLÁS
   ============================================ */

/* Brutálisan felülírjuk a WooCommerce összes globális kép-szabályát a footer-en belül */
.woocommerce .site-footer .footer-illustration img,
.woocommerce-page .site-footer .footer-illustration img,
body.woocommerce-page .footer-illustration img {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto; /* Alaphelyzetbe állítjuk az arányokat */
    max-height: none !important;
    position: absolute !important;
    bottom: 0 !important; /* Fixen a sötétkék sáv tetejére ültetjük őket */
    transform: none !important;
    float: none !important;
    display: block !important;
}

/* Fixáljuk a Napot külön, hogy véletlenül se nyúlhasson el és lejjebb menjen */
body.woocommerce-page .footer-illustration img.footer-illus-sun,
.woocommerce .footer-illustration .footer-illus-sun {
    right: 12% !important;
    bottom: -60px !important;
    height: 150px !important;
    width: 150px !important;
}

/* Fixáljuk a Torii kaput */
body.woocommerce-page .footer-illustration img.footer-illus-torii,
.woocommerce .footer-illustration .footer-illus-torii {
    left: 8% !important;
    height: 150px !important; /* Frissítve a megadott 150px-re */
    width: auto !important;
}

/* Kényszerítjük az egyedi virágosztályokat, hogy tartsák meg a magasságukat */
body.woocommerce-page .footer-illustration img.footer-illus-flower,
.woocommerce .footer-illustration .footer-illus-flower {
    width: auto !important;
}

/* BIZTOSÍTJUK A TE EGYEDI POZÍCIÓIDAT ÉS MAGASSÁGAIDAT 
   WOOCOMMERCE ALATT IS (!IMPORTANT SZABÁLYOKKAL)
-------------------------------------------------- */

/* Bal oldal - torii előtt sűrűbb */
.woocommerce .fl-1, .woocommerce-page .fl-1 { left: 1% !important; height: 75px !important; }
.woocommerce .fl-2, .woocommerce-page .fl-2 { left: 6% !important; height: 60px !important; }
.woocommerce .fl-12, .woocommerce-page .fl-12 { right: 38% !important; height: 70px !important; }

/* Torii után - középen sűrű */
.woocommerce .fl-3, .woocommerce-page .fl-3 { left: 19% !important; height: 80px !important; }
.woocommerce .fl-13, .woocommerce-page .fl-13 { left: 22% !important; height: 50px !important; }
.woocommerce .fl-4, .woocommerce-page .fl-4 { left: 25% !important; height: 60px !important; }
.woocommerce .fl-14, .woocommerce-page .fl-14 { left: 28% !important; height: 80px !important; }
.woocommerce .fl-5, .woocommerce-page .fl-5 { left: 34% !important; height: 85px !important; }
.woocommerce .fl-15, .woocommerce-page .fl-15 { left: 36% !important; height: 60px !important; }
.woocommerce .fl-6, .woocommerce-page .fl-6 { left: 40% !important; height: 65px !important; }
.woocommerce .fl-16, .woocommerce-page .fl-16 { left: 44% !important; height: 75px !important; }
.woocommerce .fl-7, .woocommerce-page .fl-7 { left: 48% !important; height: 80px !important; }
.woocommerce .fl-17, .woocommerce-page .fl-17 { right: 32% !important; height: 81px !important; }
.woocommerce .fl-8, .woocommerce-page .fl-8 { left: 56% !important; height: 60px !important; }

/* Nap előtt - bal oldal */
.woocommerce .fl-18, .woocommerce-page .fl-18 { right: 28% !important; height: 70px !important; }
.woocommerce .fl-20, .woocommerce-page .fl-20 { right: 23% !important; height: 75px !important; }

/* Nap után - jobb oldal */
.woocommerce .fl-11, .woocommerce-page .fl-11 { right: 7% !important; height: 65px !important; }
.woocommerce .fl-10, .woocommerce-page .fl-10 { right: 2% !important; height: 55px !important; }

/* Kimaradt fl-19 békén hagyva (opcionális alapméret) */
.woocommerce .fl-19, .woocommerce-page .fl-19 { height: 65px !important; }