/* AMNESIA SAFE STYLES v8.0 - CLEANED (No Breakout) */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* 0. ALAPOK */
body { font-family: 'Poppins', sans-serif; }
.home .site-breadcrumbs, .home #breadcrumbs, .elementor-widget-ha-breadcrumbs { display: none !important; }
button:focus { outline: none; }
img { object-position: top center; max-width: 100%; height: auto; }
.elementor-widget-shortcode { margin: 0; line-height: normal; }

/* 1. HEADER & MENÜ */
.am-header-wrap { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.03); width: 100%; z-index: 999; position: relative; }
.am-top-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; border-bottom: 1px solid #f0f0f0; height: 80px; }
.am-top-links { display: flex; gap: 10px; align-items: center; margin-left: 100px; }
.am-badge-link { text-decoration: none; font-weight: 700; font-size: 14px; text-transform: uppercase; padding: 6px 12px; border-radius: 4px; transition: .3s; }
.am-link-sale { background: #000; color: #fff !important; }
.am-link-new { background: #000; color: #fff !important; }
.am-logo img { height: 50px; width: auto; display: block; }
.am-top-icons { display: flex; gap: 15px; align-items: center; }

/* Ikonok */
.am-icon-btn, a.am-icon-btn { color: #000 !important; background: transparent !important; padding: 0 !important; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 0 !important; cursor: pointer; }
.am-icon-btn svg { width: 24px !important; height: 24px !important; fill: #000 !important; display: block; }
.am-cart-count { position: absolute; top: 0; right: 0; background: #ff0000; color: #fff; font-size: 10px; font-weight: 700; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* Menü */
.am-bottom-bar { background: #000; text-align: center; width: 100%; padding:12px; font-size:18px !important;}
.am-main-menu { list-style: none; font-size: 18px !important; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; }
.am-main-menu a { display: block; padding: 7px 8px; color: #fff; text-decoration: none; text-transform: uppercase; font-weight: 600; font-size: 18px; letter-spacing: 0.5px; transition: .3s; }
.am-main-menu a:hover { background: #333; }

/* Mobil Header */
.am-mob-header { display: none; padding: 10px 15px; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid #eee; }

@media (max-width: 1024px) {
    .am-top-links { margin-left: 0; }
    .am-top-bar, .am-bottom-bar { display: none; }
    .am-mob-header { display: flex; }
}

/* Mobil Menü Overlay */
button.am-menu-trigger { background: transparent !important; border: none !important; padding: 0 !important; width: auto !important; height: auto !important; }
.am-menu-trigger svg { width: 28px !important; height: 28px !important; fill: #000 !important; }
.am-menu-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #000; color: #fff; z-index: 999999; transform: translateY(-100%); transition: transform 0.4s ease-in-out; display: flex; flex-direction: column; }
.am-menu-overlay.open { transform: translateY(0); }
.am-menu-header { padding: 20px 30px; display: flex; justify-content: flex-end; }
button.am-menu-close { background: transparent !important; border: 2px solid #fff !important; color: #fff !important; width: 40px !important; height: 40px !important; border-radius: 50% !important; display: flex !important; align-items: center !important; justify-content: center !important; padding: 0 !important; }
.am-menu-scroll { flex: 1; overflow-y: auto; padding: 20px 30px 60px; text-align: center; }
.am-menu-scroll ul { list-style: none; padding: 0; margin: 0; }
.am-menu-scroll li { margin-bottom: 15px; opacity: 0; transform: translateY(20px); transition: 0.4s; }
.am-menu-overlay.open li { opacity: 1; transform: translateY(0); }
.am-menu-scroll a { color: #fff; text-decoration: none; font-size: 18px; font-weight: 600; text-transform: uppercase; }
.am-menu-scroll .sub-menu { display: none; padding-top: 10px; }
.am-menu-scroll .sub-menu a { font-size: 14px; color: #ccc; text-transform: none; }
.am-sub-arrow { display: inline-block; margin-left: 10px; color: #fff; cursor: pointer; }
.am-sub-arrow.active { transform: rotate(180deg); }
.am-mob-account { margin-top: 30px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,0.3); display: flex; flex-direction: column; gap: 15px; }
.am-mob-account a { font-size: 16px; font-weight: 500; color: #ccc; display: flex; align-items: center; justify-content: center; gap: 8px; }
.am-mob-account a svg { width: 18px; height: 18px; fill: currentColor; }

/* 2. HERO SLIDER */
.am-hero-wrap { width: 100%; position: relative; overflow: hidden; background: #000; }
.am-h-grid { display: grid; grid-template-columns: repeat(4, 1fr); height: 85vh; min-height: 600px; width: 100%; background: #000; }
.am-h-tile { position: relative; overflow: hidden; background: #000; height: 100%; width: 100%; }
.am-h-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: opacity 800ms ease; z-index: 1; display: block; }
.am-h-img.next { z-index: 2; opacity: 0; }
.am-h-img.active { zindex: 1; opacity: 1; }
.am-h-over { position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; justify-content: center; align-items: center; background: rgba(0,0,0,0.25); text-align: center; padding: 15px; }
.am-h-over h2 { color: #fff; font-size: 2vw; margin: 0 0 15px; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,0.5); line-height: 1.2; }
.am-h-btn { background: #fff; color: #000; padding: 10px 20px; font-weight: 700; text-decoration: none; border-radius: 4px; font-size: 14px; }

/* Mobil nézet */
.am-h-mob { display: none; height: 100vh; position: relative; overflow: hidden; background: #000; }
.am-mob-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s; pointer-events: none; }
.am-mob-slide.active { opacity: 1; z-index: 5; pointer-events: auto; }
.am-h-dots { position: absolute; bottom: 30px; width: 100%; display: flex; justify-content: center; gap: 8px; z-index: 20; }
.am-h-dot { width: 10px; height: 10px; background: rgba(255,255,255,0.5); border-radius: 50%; cursor: pointer; }
.am-h-dot.active { background: #fff; transform: scale(1.2); }

@media (max-width: 768px) {
    .am-h-grid { display: none !important; height: 0 !important; }
    .am-h-mob { display: block !important; }
}
@media (min-width: 769px) {
    .am-h-grid { display: grid !important; }
    .am-h-mob { display: none !important; height: 0 !important; }
}

/* 3. TERMÉKEK GRID */
.amnesia-grid-wrap, .amnesia-grid, .am-grid, #amnesia-product-list, #amnesia-sale-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 20px 0;
    background: transparent;
}

.amnesia-product, .amnesia-product-sale, .am-card {
    background: #fff; text-align: center; position: relative; overflow: hidden; border-radius: 6px; padding: 15px; box-shadow: 0 0 10px rgba(0,0,0,.05); transition: all .3s ease;
}
.amnesia-product:hover, .amnesia-product-sale:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,.1); }
.amnesia-product a, .amnesia-product-sale a { display: block; position: relative; overflow: hidden; }
.amnesia-product img, .amnesia-product-sale img { width: 100%; height: auto; display: block; transition: opacity .4s ease; }
.amnesia-product img.second-image, .amnesia-product-sale img.second-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; z-index: 2; }
.amnesia-product:hover img.first-image, .amnesia-product-sale:hover img.first-image { opacity: 0; }
.amnesia-product:hover img.second-image, .amnesia-product-sale:hover img.second-image { opacity: 1; }

.amnesia-badges { position: absolute; top: 10px; left: 10px; z-index: 10; pointer-events: none; }
.am-badge { display: inline-block; padding: 6px 10px; border-radius: 4px; font-weight: 700; font-size: 12px; line-height: 1; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15); margin-right: 5px; }
.am-badge-new { background: #000; }
.am-badge-discount { background: #ff0000; animation: am-blink 1.2s infinite ease-in-out; }
@keyframes am-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

.product-category { font-size: 12px; color: #fff; background: #000; padding: 3px 8px; display: inline-block; border-radius: 4px; margin-bottom: 8px; margin-top: 10px; text-transform: uppercase; }
.product-title { margin: 5px 0; line-height: 1.35; }
.product-title a { font-size: 15px; color: #000; text-decoration: none; font-weight: 600; transition: color .2s; }
.product-title a:hover { color: #555; text-decoration: underline; }
.price { font-size: 16px; color: #000; font-weight: 700; margin-bottom: 10px; display: block; }
.am-stars, .woocommerce-product-rating { color: #f5c518; font-size: 14px; margin: 5px 0; min-height: 18px; }
.button, .am-loop-add-to-cart { background: #000; color: #fff; padding: 10px 20px; font-size: 14px; border-radius: 8px; text-decoration: none; display: inline-block; transition: background .3s; border: none; cursor: pointer; margin-top: 5px; }
.button:hover, .am-loop-add-to-cart:hover { background: #333; color: #fff; }

.am-tabs { display: flex; flex-wrap: wrap; justify-content: center; margin: 0 0 30px; gap: 10px; }
.am-tabs button { background: #000; color: #fff; padding: 8px 20px; border: none; border-radius: 4px; font-weight: 600; cursor: pointer; transition: background .3s, transform .2s; }
.am-tabs button.active, .am-tabs button:hover { background: #333; transform: scale(1.05); }

.am-load-more-wrap {
    text-align: center !important;
    width: 100% !important;
    display: block !important;
    margin: 30px 0 10px !important;
    grid-column: 1 / -1;
}
.am-load-more {
    background-color: transparent !important;
    border: 2px solid #000 !important;
    color: #000 !important;
    padding: 12px 30px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border-radius: 4px !important;
    display: inline-block !important;
}
.am-load-more:hover {
    background-color: #000 !important;
    color: #fff !important;
}

/* Reszponzivitás */
@media (max-width: 1024px) {
    .amnesia-grid, .am-grid, #amnesia-product-list, #amnesia-sale-list { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
    .amnesia-grid, .am-grid, #amnesia-product-list, #amnesia-sale-list { grid-template-columns: 1fr !important; gap: 20px !important; }
}

/* Alapból rejtjük a 8. felettieket CSS-ből is, hogy ne villanjanak be */
#amnesia-product-list > .amnesia-product:nth-child(n+9),
#amnesia-sale-list > .amnesia-product-sale:nth-child(n+9) { display: none; }

/* 4. FOOTER */
.am-footer { background: #000; color: #fff; padding: 50px 20px; text-align: center; }
.am-footer-logo { height: 40px; margin-bottom: 30px; filter: invert(1); }
.am-footer-links { margin-bottom: 20px; }
.am-footer-links a { color: #fff; text-decoration: none; margin: 0 15px; font-size: 13px; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; }
.am-footer-links a:hover { color: #999; }
.am-footer-copy { color: #555; font-size: 12px; margin-top: 30px; }

/* BLOG CÍM */
.am-post-title a {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    color: #000 !important;
    text-decoration: none !important;
    text-transform: none !important;
    margin-bottom: 15px !important;
    display: block !important;
}
.am-post-title a:hover {
    color: #333 !important;
    text-decoration: underline !important;
}

/* Régi téma fejléc elrejtése, hogy csak az új látszódjon */
header#site-header,
header#masthead,
.site-header,
.elementor-location-header {
    display: none !important;
}

/* Eltünteti a gyári OceanWP Page Header-t (a szürke sávot a cím mögött) */
.page-header,
.oceanwp-page-header,
header#site-header,
#site-header {
    display: none !important;
}

/* A fehér csík igazítása */
#top-bar {
    padding: 0px !important;
    background-color: #fff !important;
    border-bottom: none !important;
}/* --- AMNESIA AJAX TITLE VILLANÁS FIX (FINAL v1.0) --- */

.amnesia-product .product-title a,
.amnesia-product-sale .product-title a {
    color: #000 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.2s ease !important;
}

/* Minden állapot lefedése, hogy AJAX betöltéskor se legyen lila villanás */
.amnesia-product .product-title a:visited,
.amnesia-product-sale .product-title a:visited,
.amnesia-product .product-title a:focus,
.amnesia-product-sale .product-title a:focus,
.amnesia-product .product-title a:active,
.amnesia-product-sale .product-title a:active {
    color: #000 !important;
}

.amnesia-product .product-title a:hover,
.amnesia-product-sale .product-title a:hover {
    color: #555 !important;
    text-decoration: underline !important;
}

