@import url('https://fonts.googleapis.com/css2?family=Licorice&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
    --sage: #97a575;
    --sage-dark: #5c6b44;
    --sage-light: #eef0e6;
    --cream: #f7f6f1;
    --text-dark: #33362b;
    --text-muted: rgba(91, 106, 67, 0.62);
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    color: var(--text-dark);
    background: var(--white);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}



h1, h2, h3 {
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-weight: 500;
    margin: 0 0 16px;
}

h2 {
    font-size: 48px;
}

.logo {
    font-family: "Licorice", cursive;
    font-style: italic;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.1;
}

.logo small {
    display: block;
    font-family: "Montserrat", sans-serif;
    font-style: normal;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

/* Header */
.site-header-container {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    width: 100%;
    background-color: #fff;
}
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-nav {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.site-nav a.active {
    color: var(--sage-dark);
    font-weight: 600;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switch {
    display: flex;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.lang-switch a {
    color: var(--text-muted);
    padding: 2px 4px;
}

.lang-switch a.active {
    color: var(--sage-dark);
    border-bottom: 2px solid var(--sage-dark);
}

.cart-link {
    position: relative;
    font-size: 1.3rem;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--sage-dark);
    color: var(--white);
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 999px;
}

/* Decorative leaf/branch motif - each sage section gets its own placement/size/
   density (not a single repeated pattern) so adjacent sections don't visually
   blend into one another. Contact section uses a real cropped-from-the-mockup
   background image instead (see .contact-section below), not a synthetic SVG. */

.hero {
    margin-top: 80px;
}
.hero,
.category-teaser {
    position: relative;
    /*overflow: hidden;*/
}
.hero_container {
    margin: auto;
    display: flex;
    align-items: center;
    gap: 100px;
    max-width: 1200px;
    width: 100%;
}
.hero > *{
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-main {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 32px;
    flex-direction: column;
}
.container-main h1 {
    font-size: 52px;
}

.container-main-p {
    max-width: 600px;
}
.row th, .row td {
    width: 25%;
}
.row-last-td {
    text-align: end !important;
}
.cart-table{
    width:100%;
    border-collapse:collapse;
}

.cart-table th,
.cart-table td{
    padding:16px;
    border-bottom:1px solid #ddd;
}
/*.hero::before {*/
/*    content: '';*/
/*    position: absolute;*/
/*    top: 0;*/
/*    right: -15px;*/
/*    width: 260px;*/
/*    height: 190px;*/
/*    background: url('images/leaf-branch.svg') no-repeat center / contain;*/
/*    opacity: 0.7;*/
/*    pointer-events: none;*/
/*}*/

/*.category-teaser::before,*/
/*.category-teaser::after {*/
/*    content: '';*/
/*    position: absolute;*/
/*    width: 175px;*/
/*    height: 130px;*/
/*    background: url('images/leaf-branch-small.svg') no-repeat center / contain;*/
/*    opacity: 0.55;*/
/*    pointer-events: none;*/
/*}*/

/*.category-teaser::before {*/
/*    top: 0;*/
/*    left: -12px;*/
/*}*/

/*.category-teaser::after {*/
/*    bottom: 0;*/
/*    right: -12px;*/
/*    transform: rotate(180deg);*/
/*}*/

/* Hero */
.hero {
    background: var(--sage);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px;
    padding: 48px 24px;
    color: var(--white);
}

.hero-image {
    flex: 1 1 320px;
    max-width: 350px;
    border: 8px solid var(--white);
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
}

.hero-text h1 {
    color: var(--white);
    font-size: 64px;
    line-height: 50px;
}
.hero-text-top {
    white-space: nowrap;
}
.hero-h1-2 {
    padding-left: 50px;
}
.hero-text p {
    max-width: 600px;
    font-size: 24px;
}
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--white);
    color: var(--sage-dark);
}

.btn-dark {
    background: var(--sage-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--sage-dark);
    color: var(--sage-dark);
}

/* Section */
.section {
    padding: 64px 24px;
}

.section-alt {
    background: var(--sage-light);
}

.about-grid {
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.about-grid img {
    width: 500px;
    max-width: 40%;
}

.about-grid .about-text {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    font-size: 24px;
}

/* Category teaser */

/* The sage band is a fixed-height ::before, not the section's own background/height -
   the section itself sizes to its real content (h2 + however many category cards),
   so it works the same whether there are 2 categories or a full row of them (e.g.
   once the levendula category is reactivated) instead of relying on a fixed height
   tuned for exactly 2 cards. See .contact-section below, which used to need a fixed
   margin-top to avoid the old absolutely-positioned cards overlapping it - no longer
   necessary now that this section takes up real, content-driven space in the flow. */
.category-teaser {
    position: relative;
    color: var(--white);
    text-align: center;
}
.category-teaser::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: var(--sage);
    z-index: 0;
}
.category-teaser .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 80px 24px 64px;
}
.category-teaser h2 {
    color: var(--white);
}

.category-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin: auto;
    padding-top: 40px;
    width: 100%;
}

.category-card img,
.category-card-placeholder {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border: 10px solid #fff;
}

.category-card-placeholder {
    background: var(--sage-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    box-sizing: border-box;
}

.category-card h3 {
    color: var(--sage-dark);
    margin: 16px 0 8px;
}
.category-card a  {
    font-size: 24px;
}
.category-card a span {
    background: var(--sage-dark) !important;
    margin-top: 15px;
}
.contact-section {
    background: var(--sage) url('/images/contact-bg.png') no-repeat center center / cover;
    color: var(--white);
    padding: 64px 24px;
    min-height: 420px;
    display: flex;
    align-items: center;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}
.contact-content-top {
    max-width: 50%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.contact-content-top p, .contact-content-top a{
    font-size: 24px;
}
.contact-content-top a {
    display: flex !important;
    gap: 15px;
    align-items: center;
}
.contact-section h2 {
    color: var(--white);
}

.contact-info a {
    display: block;
    margin-top: 8px;
}

/* Footer */
.site-footer {
    padding: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid #eee;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
}

.site-footer ul {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
}

/* Products page */
.products-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding: 32px 24px;
    max-width: 1200px;
    margin: 80px auto;
}

.category-sidebar {
    flex: 0 0 220px;
    background: var(--sage);
    min-height: 100vh;
    color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    position: sticky;
    top: 100px;
    left: 0;
}

.category-sidebar .group-title {
    padding: 16px 20px 8px;
    font-weight: 600;
    font-size: 0.95rem;
}
.group-title {
    background: var(--text-muted);
}
.category-sidebar a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.category-sidebar a:hover,
.category-sidebar a.active {
    background: rgba(255, 255, 255, 0.2);
}

/* A category with its own subcategories renders as a non-clickable subtitle instead of a
   link (only leaf categories can hold products) - indentation compounds naturally per
   nesting level since each level just adds its own padding-left. */
.category-sidebar-nested {
    padding-left: 14px;
}
.category-sidebar .group-subtitle {
    padding: 8px 20px 2px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.8;
}

.product-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 28px;
}

.product-card {
    text-align: center;
}

.product-card .image-wrap {
    background: var(--sage-light);
    aspect-ratio: 1;
    overflow: hidden;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    padding: 0 24px;
}
.image-container img{
    width: 49%;
    min-width: 400px;
}
.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card h4 {
    margin: 12px 0 4px;
    font-size: 1rem;
}

.product-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.product-price {
    font-weight: 600;
    margin-bottom: 10px;
}

.product-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.unavailable-badge {
    display: inline-block;
    background: #c0644a;
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

/* Product detail */
.product-detail {
    display: flex;
    /*flex-wrap: wrap;*/
    gap: 40px;
    padding: 40px 24px;
    max-width: 1200px;
    margin: 100px auto;
}

.product-detail-images {
    flex: 1 1 380px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-detail-info {
    flex: 1 1 380px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* th:text escapes HTML but renders the text as one line-wrapped run by default -
   pre-line makes the browser respect the line/paragraph breaks the admin typed
   into the description textarea, without needing to inject any HTML. */
.product-description {
    white-space: pre-line;
}

/* Cart page */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
}

.cart-table th,
.cart-table td {
    text-align: left;
    padding: 12px 8px;
    border-bottom: 1px solid #eee;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.form-grid label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.form-grid input,
.form-grid textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
}

.form-grid textarea {
    grid-column: 1 / -1;
    min-height: 100px;
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-success {
    background: #e4efe0;
    color: var(--sage-dark);
}

.alert-error {
    background: #fbe6e2;
    color: #a13d2a;
}

.empty-state {
    text-align: center;
    padding: 48px 0;
    color: var(--text-muted);
}

/*MOBILE NAVIGATION*/
.hamburger {
    display: none;
    border: none;
    background: none;
}
.navbar__mobile{
    display: none;
}
.displayNone {
    display: none;
}
.mobile-menu {
    position: fixed;
    inset: 0;
    background: #97a575;
    transform: translateX(100%);
    display: flex;
    flex-direction: column;
    gap: 36px;
    align-items: center;
    justify-content: space-between;
    z-index: 9;
    padding: 24px;
}
.mobile-menu-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.mobile-menu-top {
    color: #fff;
}
.mobile-menu-top .logo small {
    color: rgba(255, 255, 255, 0.57);
}

.mobile-menu-bottom {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding: 16px;
    align-items: center;
    font-size: 28px;
}
.mobile-menu-bottom li {
    list-style: none;
}
.mobile-menu-bottom a {
    color: #fff;
}

.mobile-menu-icons {
    padding-bottom: 47px;
    color: #fff;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 16px;
}
.cart-link-mobile {
    position: relative;
    font-size: 1.3rem;
    color: #fff;
}

.cart-badge-mobile {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--sage-dark);
    color: var(--white);
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 999px;
}
.close {
    width: 32px;
}
tbody {
    background: #fff;
}
.form {
    text-align: right;
}
.datas-form .form-grid {
    display: flex;
    flex-wrap: wrap;
}
.datas-form .form-grid div {
    width: 100%;
}
.datas-form .form-grid textarea {
    min-height: 300px;
}
#rolam,
#kapcsolat {
    scroll-margin-top: 80px;
}
.container-thanks {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;

}
.container-thanks h1 {
    font-size: 56px;
}
.container-thanks p {
    max-width: 600px;
}
.thanks-bg {
    background-image: url('/images/thanks-bg.jpg');
    background-position: center;
    background-size: cover;
    height: 400px;
    width: 100%;
    margin-top: 30px;
}
@media (max-width: 1018px) {
    .hero_container {
        margin: auto;
        display: flex;
        align-items: center;
        gap: 50px;
        max-width: 1200px;
    }
}
@media (max-width: 960px) {
    .hero_container .hero-text-top {
        margin: auto;
    }
    .hero_container .hero-text-top h1 {
        font-size: 50px;
        line-height: .7;
    }
    h2 {
        font-size: 38px;
    }
    .hero_container .hero-text p, .about-grid .about-text, .contact-content-top p, .contact-content-top a {
        font-size: 18px;
    }


}
@media (max-width: 866px) {
  .hero_container {
      flex-direction: column-reverse;
      padding-top: 0;
  }
    .hero-image {
        display: none;
    }
    .hero-image-mobile {
        background-image: url("/images/welcome.jpg");
        background-repeat: no-repeat;
        background-size: cover;
        max-width: 100% !important;
        width: 100%;
        height: 500px;
    }
    .hero-text a {
        margin-left: auto;
    }
}
@media (max-width: 863px) {
    .image-container {
        padding: 0 24px;
    }
    .image-container img{
        width: 100%;
    }
}
@media (max-width: 800px) {
    .desktop {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .navbar__mobile{
        display: block;
    }
    .lang-switch a {
        padding: 2px 4px;
    }

    .lang-switch a.active {
        color: #fff;
        border-bottom: 2px solid var(--sage-dark);
    }
}
@media (max-width: 760px) {

    .product-detail {
        display: flex;
        flex-direction: column-reverse;
        gap: 30px;
        padding: 0 24px;
        margin: 150px auto 16px auto;
    }

    .product-detail-info {
        flex: 1 1 0px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

}
@media (max-width: 748px) {
    .about-grid {
        flex-direction: column;
    }
    .about-grid img{
        max-width: 100%;
        min-width: 100%;
    }
    .about-grid .about-text {
        max-width: 100%;
    }
    .category-grid {
        flex-direction: column;
    }
    .contact-content {
        flex-direction: column;
    }
    .contact-content-top {
        max-width: 100%;
    }

}
@media (max-width: 720px) {
    .products-layout {
        flex-direction: column;
    }

    .category-sidebar {
        flex: none;
        width: 100%;
        position: static;
        height: auto;
        /*padding: 10px 0;*/
    }
    .category-sidebar-bottom {
        display: flex;
        flex-wrap: wrap;
    }

    .site-footer {
       flex-direction: column;

    }
}
@media (max-width: 470px) {
    .top h1 {
        font-size: 38px;
    }
    .container-thanks h1 {
        font-size: 46px;
    }
}
@media (max-width: 444px) {
    .hero_container .hero-text-top h1 {
        font-size: 40px;
    }
    .image-container img{
        min-width: 100%;
    }
    .site-footer {
        text-align: center;

    }
    .site-footer ul {
        justify-content:  center;
    }
}
@media (max-width: 370px) {
    .hero_container .hero-text-top h1 {
        font-size: 38px;
    }
    .hero-h1-2 {
        padding-left: 20px;
    }
}

/* Mobil */
@media(max-width:768px){

    .cart-table thead{
        display:none;
    }

    .cart-table,
    .cart-table tbody,
    .cart-table tr,
    .cart-table td{
        display:block;
        width:100%;
    }

    .cart-table tr{
        margin-bottom:20px;
        border:1px solid #ddd;
        border-radius:10px;
        padding:12px;
    }

    .cart-table td{
        display:flex;
        justify-content:space-between;
        align-items:center;
        border:none;
        padding:10px 0;
    }

    .cart-table td::before{
        content:attr(data-label);
        font-weight:bold;
        margin-right:20px;
    }

    .cart-table td:last-child{
        justify-content:flex-end;
    }

    .cart-table td:last-child::before{
        display:none;
    }
}