* { box-sizing: border-box; }
:root {
    --red: #8b1e3f;
    --red-dark: #68142e;
    --dark: #242424;
    --muted: #6f6a6b;
    --light: #f7f4f3;
    --border: #e8e1e3;
    --shadow: 0 10px 28px rgba(55, 26, 35, .08);
}
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--dark);
    background: #fff;
    line-height: 1.55;
}
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 12px rgba(0,0,0,.03);
}
.header-inner {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand-logo { display: flex; align-items: center; max-width: 330px; }
.brand-logo img { display: block; width: 100%; height: auto; max-height: 92px; object-fit: contain; }
.header-slogan { color: var(--red); font-weight: 700; text-align: center; font-size: .95rem; max-width: 320px; }
.header-nav { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:14px; }
.header-link { color: var(--red); text-decoration: none; font-weight: 700; padding: 10px 0; }
.header-link:hover { color: var(--red-dark); }
.hero { background: linear-gradient(135deg, #f8e9ee 0%, #fff 72%); padding: 58px 0 54px; }
.eyebrow { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin: 0 0 10px; }
h1, h2, h3 { line-height: 1.2; }
.hero h1 { max-width: 720px; font-size: clamp(2rem, 5vw, 3.5rem); margin: 12px 0; color: var(--red); }
.hero-text { max-width: 620px; font-size: 1.08rem; color: #514b4d; margin-bottom: 0; }
.content { padding: 46px 0 76px; }
.section-heading { margin-bottom: 22px; }
.section-heading h2 { margin: 0 0 6px; font-size: 1.8rem; }
.section-heading p { margin: 0; color: var(--muted); }
.category-panel { background: #faf7f8; border: 1px solid var(--border); border-radius: 18px; padding: 20px; margin-bottom: 30px; }
.category-panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.category-panel-heading h3 { margin: 0; color: var(--red); font-size: 1.2rem; }
.category-panel-heading span { color: var(--muted); font-size: .9rem; }
.categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 10px; margin: 0; }
.category-tile { display: flex; flex-direction: column; gap: 3px; border: 1px solid #dcd3d6; border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--dark); background: #fff; transition: .18s ease; }
.category-tile strong { font-size: .98rem; }
.category-tile span { color: var(--muted); font-size: .8rem; }
.category-tile.active, .category-tile:hover { background: var(--red); color: #fff; border-color: var(--red); transform: translateY(-1px); }
.category-tile.active span, .category-tile:hover span { color: #fff; opacity: .88; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; align-items: start; }
.product-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 15px 34px rgba(55, 26, 35, .13); }
.product-card img, .image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    display: block;
    background: var(--light);
    padding: 12px;
}
.image-placeholder { display: grid; place-items: center; color: #888; }
.product-body { padding: 20px 20px 22px; }
.product-category { color: var(--red); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.product-body h3 { margin: 7px 0 13px; font-size: 1.16rem; }
.product-details { border-top: 1px solid #eee7e9; padding-top: 12px; }
.product-details summary { cursor: pointer; color: var(--red); font-weight: 700; font-size: .92rem; list-style-position: inside; }
.product-details summary:hover { color: var(--red-dark); }
.product-description { margin-top: 12px; color: #4d484a; font-size: .96rem; }
.site-footer { background: #2d2527; color: #fff; padding: 32px 0; }
.site-footer p { margin-bottom: 0; color: #ddd; }
.empty-state { padding: 32px; background: var(--light); border-radius: 12px; text-align: center; }
.admin-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 40px 0 70px; }
.admin-panel { border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.admin-form { display: grid; gap: 16px; }
.admin-form label { display: grid; gap: 6px; font-weight: 700; }
input, textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #ccc; border-radius: 8px; }
textarea { resize: vertical; }
.button { display: inline-block; border: 0; border-radius: 8px; padding: 11px 16px; background: var(--red); color: #fff; font-weight: 700; cursor: pointer; text-decoration: none; }
.button.secondary { background: #777; }
.notice { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; }
.notice.error { background: #ffe9e9; color: #8d1e1e; }
.notice.success { background: #e9f8ed; color: #17652d; }
.admin-list { display: grid; gap: 10px; }
.admin-item { display: flex; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; }
.admin-item span { display: block; color: #777; font-size: .9rem; }
.admin-actions { display: flex; flex-direction: column; gap: 4px; white-space: nowrap; }
.admin-actions a { color: var(--red); }
.small { font-size: .85rem; color: #666; }
.narrow { max-width: 560px; padding-top: 50px; }
@media (max-width: 900px) { .product-grid, .admin-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
    .header-inner { flex-wrap: wrap; justify-content: center; padding: 14px 0; }
    .brand-logo { max-width: 270px; }
    .header-nav { order: 4; justify-content: center; gap: 10px; }
    .header-slogan { order: 3; width: 100%; max-width: none; font-size: .85rem; }
    .hero { padding: 44px 0; }
}
@media (max-width: 560px) {
    .product-grid, .admin-layout { grid-template-columns: 1fr; }
    .product-card img, .image-placeholder { aspect-ratio: 5 / 4; }
    .product-body { padding: 18px; }
    .content { padding-top: 34px; }
}

.product-gallery { background: var(--light); padding: 12px; }
.product-card img.gallery-main { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; display: block; padding: 0; background: transparent; }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.gallery-thumb { width: 58px; height: 46px; padding: 3px; border: 1px solid #ddd; border-radius: 7px; background: #fff; cursor: pointer; }
.gallery-thumb.active { border: 2px solid var(--red); padding: 2px; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.admin-photo-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.admin-photo-list img { width: 90px; height: 70px; object-fit: contain; border: 1px solid var(--border); border-radius: 6px; background: var(--light); }

.gallery-main.js-lightbox-image { cursor: zoom-in; }
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(20, 14, 16, .88);
}
.lightbox.open { display: flex; }
.lightbox-image {
    max-width: min(1100px, 94vw);
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 12px 50px rgba(0,0,0,.35);
    background: #fff;
}
.lightbox-close {
    position: absolute;
    top: 16px;
    right: 22px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
}
body.lightbox-open { overflow: hidden; }
@media (max-width: 560px) {
    .lightbox { padding: 18px; }
    .lightbox-image { max-width: 96vw; max-height: 82vh; }
    .lightbox-close { top: 8px; right: 14px; font-size: 36px; }
}

.info-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.info-card { border:1px solid var(--border); border-radius:18px; padding:26px; background:#fff; box-shadow:var(--shadow); }
.info-card h2 { margin-top:0; color:var(--red); }
.info-card p { margin:0 0 18px; }
.info-card ul { margin:0; padding-left:22px; }
.map-card { margin-top:24px; }
@media (max-width:700px) { .info-grid { grid-template-columns:1fr; } .info-card { padding:20px; } }


/* Kiemelt Elérhetőség / Információk menüpont */
.header-link.info-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 16px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--red), #b52d54);
    box-shadow: 0 5px 14px rgba(139,30,63,.22);
    border: 1px solid rgba(139,30,63,.15);
}
.header-link.info-link::before { content: "☎"; font-size: .95em; }
.header-link.info-link:hover { color: #fff; background: linear-gradient(135deg, var(--red-dark), var(--red)); transform: translateY(-1px); }
.info-hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 38px 34px;
    margin-bottom: 28px;
    color: #fff;
    background: radial-gradient(circle at 90% 10%, rgba(255,255,255,.2), transparent 35%), linear-gradient(135deg, #68142e, #a9254b 65%, #d34b70);
    box-shadow: 0 16px 36px rgba(105,20,46,.18);
}
.info-hero h1 { margin: 5px 0 10px; font-size: clamp(2rem, 5vw, 3.25rem); }
.info-hero p { margin: 0; max-width: 650px; color: rgba(255,255,255,.9); font-size: 1.08rem; }
.info-hero .eyebrow { color: #ffe4ec; margin: 0; }
.info-card { transition: transform .18s ease, box-shadow .18s ease; }
.info-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(55,26,35,.12); }
.info-card h2 { display: flex; align-items: center; gap: 10px; }
.info-card h2::before { content: ""; display: inline-block; width: 7px; height: 27px; border-radius: 8px; background: var(--red); }
.map-card { background: linear-gradient(135deg, #fff, #fbf1f4); }
@media (max-width:700px) {
 .header-link.info-link { padding: 9px 12px; }
 .info-hero { padding: 28px 22px; border-radius: 18px; }
}

.news-section { padding: 18px 0 4px; }
.news-heading { text-align:center; margin-bottom:18px; }
.news-heading h2 { margin:5px 0; color:var(--red); font-size:clamp(1.8rem,4vw,2.5rem); }
.news-heading p { margin:0; color:var(--muted); }
.news-slider { position:relative; min-height:150px; border-radius:24px; overflow:hidden; background:linear-gradient(135deg,#68142e,#b52d54); box-shadow:0 16px 34px rgba(105,20,46,.18); color:#fff; }
.news-slide { display:none; grid-template-columns:minmax(0, .9fr) minmax(0,1.1fr); min-height:180px; }
.news-slide.active { display:grid; }
.news-image-wrap { min-height:180px; background:rgba(255,255,255,.12); }
.news-image-wrap img { width:100%; height:100%; object-fit:cover; display:block; }
.news-copy { padding:24px 34px 34px; align-self:center; }
.news-date { font-size:.8rem; text-transform:uppercase; letter-spacing:.08em; color:#ffdce6; font-weight:700; }
.news-copy h3 { margin:8px 0 12px; font-size:clamp(1.15rem,2.4vw,1.75rem); }
.news-copy p { margin:0; color:rgba(255,255,255,.92); font-size:.95rem; }
.news-arrow { position:absolute; top:50%; transform:translateY(-50%); border:0; width:42px; height:42px; border-radius:50%; background:rgba(255,255,255,.2); color:#fff; font-size:34px; line-height:1; cursor:pointer; }
.news-arrow:hover { background:rgba(255,255,255,.35); } .news-prev{left:14px}.news-next{right:14px}
.news-dots { position:absolute; bottom:14px; left:0; right:0; display:flex; justify-content:center; gap:8px; }
.news-dot { width:10px; height:10px; padding:0; border:0; border-radius:50%; background:rgba(255,255,255,.45); cursor:pointer; } .news-dot.active{background:#fff}
.news-admin-panel { grid-column:1 / -1; }
.news-admin-image { max-width:220px; max-height:140px; object-fit:cover; border-radius:10px; border:1px solid var(--border); }
.inline-action { display:inline; } .text-button { border:0; background:none; color:var(--red); text-decoration:underline; cursor:pointer; font:inherit; padding:0; }
@media(max-width:700px){ .news-slide,.news-slide.active{grid-template-columns:1fr}.news-image-wrap{min-height:110px;max-height:150px}.news-copy{padding:20px 22px 36px}.news-slider{border-radius:18px}.news-arrow{width:36px;height:36px;font-size:28px} }


/* Főmenü: függőleges elrendezés és Bútoraink almenük */
.header-inner {
    align-items: flex-start;
}
.header-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 250px;
    margin-left: auto;
}
.header-link {
    display: block;
    width: 100%;
    box-sizing: border-box;
}
.nav-dropdown {
    position: relative;
    width: 100%;
}
.furniture-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-caret {
    font-size: 0.9em;
    margin-left: 12px;
}
.nav-submenu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 5px 0 0 18px;
    padding: 8px 0 8px 14px;
    border-left: 3px solid #b0182b;
}
.nav-submenu a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    color: #333;
    background: #f7f7f7;
    text-decoration: none;
    font-size: 0.94rem;
    transition: background .2s ease, color .2s ease;
}
.nav-submenu a:hover,
.nav-submenu a:focus {
    background: #b0182b;
    color: #fff;
}
@media (max-width: 760px) {
    .header-inner {
        align-items: stretch;
    }
    .header-nav {
        width: 100%;
        min-width: 0;
        margin-left: 0;
        margin-top: 14px;
    }
    .nav-submenu {
        margin-left: 8px;
    }
}

@media (max-width: 600px) { .category-panel { padding: 14px; } .category-panel-heading { display: block; } .category-panel-heading span { display: block; margin-top: 3px; } .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); } .category-tile { padding: 10px; } }

/* Végleges fejléc- és mobilnézet-javítás */
.header-slogan, .header-nav { display: none !important; }
.footer-info-link { display: inline-block; margin-top: 10px; color: #fff; font-weight: 700; text-decoration: none; }
.footer-info-link:hover { text-decoration: underline; }


/* Cookie-tájékoztató */
.cookie-notice {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 10000;
  background: #fff;
  color: #222;
  border: 1px solid #e6d6dc;
  border-left: 5px solid #9b2348;
  border-radius: 14px;
  box-shadow: 0 10px 35px rgba(40, 12, 25, .18);
}
.cookie-notice[hidden], .cookie-settings[hidden] { display: none; }
.cookie-notice-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 18px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.cookie-notice-text { flex: 1; }
.cookie-notice-text strong { color: #8f2042; font-size: 1.05rem; }
.cookie-notice-text p { margin: 5px 0 6px; line-height: 1.45; font-size: .94rem; }
.cookie-notice-text a { color: #8f2042; font-weight: 700; }
.cookie-accept {
  border: 0;
  border-radius: 999px;
  background: #9b2348;
  color: #fff;
  padding: 11px 22px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-accept:hover { background: #7f1c3b; }
.cookie-settings {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  border: 1px solid #9b2348;
  background: #fff;
  color: #9b2348;
  border-radius: 999px;
  padding: 8px 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(40, 12, 25, .12);
}
@media (max-width: 600px) {
  .cookie-notice { left: 10px; right: 10px; bottom: 10px; }
  .cookie-notice-inner { padding: 14px; display: block; }
  .cookie-notice-text p { font-size: .88rem; }
  .cookie-accept { width: 100%; margin-top: 10px; }
}

/* Lightbox képlapozás */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 64px;
    border: 0;
    border-radius: 10px;
    background: #c1122f;
    color: #fff;
    font-size: 48px;
    line-height: 1;
    cursor: pointer;
}
.lightbox-arrow:hover { background: #8f0d20; }
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }
.lightbox-arrow[hidden] { display: none; }
@media (max-width:560px) {
    .lightbox-arrow { width: 38px; height: 52px; font-size: 38px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}


/* Görgethető Facebook-ajánló a slideshow alatt */
.facebook-promo { margin-top: 24px; margin-bottom: 24px; }
.facebook-promo-inner { display: flex; align-items: center; gap: 20px; padding: 24px 28px; border-radius: 18px; background: linear-gradient(135deg, #1877f2, #145dcc); color: #fff; box-shadow: 0 10px 28px rgba(24,119,242,.20); }
.facebook-promo-icon { display: grid; place-items: center; flex: 0 0 58px; width: 58px; height: 58px; border-radius: 50%; background: #fff; color: #1877f2; font: 700 42px/1 Arial, sans-serif; }
.facebook-promo-copy { flex: 1; }
.facebook-promo-copy .eyebrow { color: rgba(255,255,255,.78); }
.facebook-promo-copy h2 { margin: 4px 0 6px; color: #fff; }
.facebook-promo-copy p { margin: 0; color: rgba(255,255,255,.92); }
.facebook-promo-button { display: inline-block; padding: 12px 18px; border-radius: 999px; background: #fff; color: #145dcc; font-weight: 700; text-decoration: none; white-space: nowrap; }
.facebook-promo-button:hover { background: #eef5ff; }
@media (max-width: 700px) {
  .facebook-promo-inner { flex-wrap: wrap; padding: 22px; }
  .facebook-promo-button { width: 100%; text-align: center; }
}

/* A lightbox-kép ujj- és egérhúzással is lapozható. */
.lightbox-image {
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
}
.lightbox-image:active { cursor: grabbing; }


/* Vissza a lap tetejére gomb */
.back-to-top-wrap { text-align: center; padding: 24px 16px 12px; }
.back-to-top { display: inline-block; padding: 11px 22px; border-radius: 999px; background: #9b2348; color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 5px 16px rgba(155,35,72,.22); transition: background .2s ease, transform .2s ease; }
.back-to-top:hover { background: #7f1c3b; transform: translateY(-2px); }
.back-to-top:focus-visible { outline: 3px solid #f3b3c8; outline-offset: 3px; }
