/* Alap stílusok */
@import url('https://fonts.googleapis.com/css2?family=Henny+Penny&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.leading-tight {
    font-family: "Henny Penny", system-ui;
    font-style: normal;
}

.hero-bg {
    background-image: url('https://placehold.co/1920x1080/e0e0e0/333333?text=Egyedi+Term%C3%A9kek');
    background-size: cover;
    background-position: center;
}

.section-title {
    font-weight: 900;
    font-size: 2.5rem;
    letter-spacing: -0.05em;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3.75rem;
    }
}

/* Animációk */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-close {
    position: absolute;
    top: -1.5rem;
    right: -1.5rem;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
}

@media (max-width: 768px) {
    .modal-close {
        top: 0.5rem;
        right: 1rem;
        color: #333;
        background-color: rgba(255, 255, 255, 0.7);
        border-radius: 50%;
        width: 2rem;
        height: 2rem;
        font-size: 1.5rem;
        line-height: 2rem;
        text-align: center;
    }
}

/* Galéria stílusok */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
    transition: background-color 0.2s ease;
    user-select: none;
    /* Megakadályozza a szöveg kijelölését */
}

.modal-nav:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-nav.prev {
    left: 1.5rem;
    border-radius: 5px 0 0 5px;
}

.modal-nav.next {
    right: 1.5rem;
    border-radius: 0 5px 5px 0;
}

/* ÚJ Galéria Modal Stílusok */
.modal-container {
    display: flex;
    flex-direction: column;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    background-color: #1f2937;
    /* Sötét háttér a sávnak */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-image-wrapper {
    flex-shrink: 1;
    /* Engedi a képet zsugorodni */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Biztosítjuk, hogy a kép ne lógjon ki */
}

#modal-image {
    max-width: 100%;
    /* A magasságot a rendelkezésre álló hely alapján, arányosan állítja be */
    max-height: 85vh;
    /* Hagyunk egy kis helyet a képaláírásnak */
    object-fit: contain;
    /* Megőrzi a képarányt, torzítás nélkül */
    display: block;
}

#modal-caption {
    /* Nincs többé `position: absolute` */
    color: white;
    padding: 1rem 1.5rem;
    text-align: left;
    flex-shrink: 0;
    /* A caption sáv ne zsugorodjon */
    background-color: #1f2937;
    /* Sötét háttér a sávnak */
}

/* Accordion */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.accordion-button svg {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-button svg {
    transform: rotate(45deg);
}

/* Vissza a tetejére gomb */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Süti banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

#cookie-banner.visible {
    transform: translateY(0);
}

/* Sötét Mód stílusok */
.dark body {
    background-color: #111827;
    color: #d1d5db;
}

.dark header {
    background-color: rgba(17, 24, 39, 0.8);
}

.dark #mobile-menu {
    background-color: #1f2937;
}

.dark .text-gray-800 {
    color: #d1d5db;
}

.dark .text-gray-600 {
    color: #9ca3af;
}

.dark .text-gray-500 {
    color: #6b7280;
}

.dark a.hover\:text-blue-600:hover {
    color: #3b82f6;
}

.dark section {
    border-color: #374151;
}

.dark .bg-white {
    background-color: #1f2937;
}

.dark .bg-gray-50 {
    background-color: #111827;
}

.dark .shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

.dark .shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
}

.dark .rounded-full.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.dark .border-gray-300 {
    border-color: #4b5563;
}

.dark input,
.dark textarea {
    background-color: #374151;
    color: #d1d5db;
}

.dark input::placeholder,
.dark textarea::placeholder {
    color: #6b7280;
}

.dark .focus\:ring-blue-500:focus {
    --tw-ring-color: #3b82f6;
}

.dark footer {
    background-color: #000;
}

.filter-btn {
    background-color: #e5e7eb;
    color: #4b5563;
    transition: all 0.2s ease;
}

.filter-btn.active {
    background-color: #1d4ed8;
    color: white;
}

.dark .filter-btn {
    background-color: #374151;
    color: #d1d5db;
}

.dark .filter-btn.active {
    background-color: #2563eb;
    color: white;
}

.product-item {
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.product-item.hidden {
    transform: scale(0.9);
    opacity: 0;
    display: none;
}

.btn-custom {
    background-color: #00539b;
}

.btn-custom:hover {
    background-color: #00427a;
}

@keyframes shimmer {
    0% {
        transform: translateX(-150%) skewX(-30deg);
    }

    100% {
        transform: translateX(150%) skewX(-30deg);
    }
}

.shimmer-effect {
    position: relative;
    /* Fontos a belső elem pozicionálásához */
    overflow: hidden;
    /* Elrejti a csíkot, amikor a gombon kívül van */
}

.shimmer-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 3.5s infinite linear;
}