/* Custom Modern Palette */
:root {
    --bg-main: #e2e8f0;
    --bg-card: #ffffff;
    --primary: #4f46e5;      /* Premium Indigo */
    --primary-hover: #4338ca;
    --text-main: #0f172a;    /* Deep Slate */
    --text-muted: #64748b;   /* Muted Slate */
    --border-color: #e2e8f0;
    --accent-red: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Elegant Top Sticky Header */
.main-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.2rem 4rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-nav {
    justify-self: start;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
    text-decoration: none;
    justify-self: center;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links li a:hover, .nav-links li a.active {
    color: var(--primary);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    justify-self: end;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.lang-btn.active, .lang-btn:hover {
    color: var(--text-main);
}

.slash {
    color: var(--border-color);
}

/* Layout Container */
.container {
    flex: 1;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-section {
    width: 100%;
}

.hidden {
    display: none !important;
}

/* Hero Section */
.hero-banner {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-banner h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.hero-banner p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Catalog Card Grid */
.products-grid {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    width: 300px;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.product-image {
    width: 100%;
    height: 220px;
    background-color: #f1f5f9;
    border-radius: 10px;
    margin-bottom: 1.2rem;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.product-card small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Notice Styling */
.shop-notice {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    border-left: 4px solid var(--primary);
}

.notice-icon {
    font-size: 1.3rem;
}

.notice-content {
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.6;
}

.notice-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.notice-content a:hover {
    text-decoration: underline;
}

/* Premium Product Details Subpage */
.product-detail-card {
    display: flex;
    gap: 4rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    align-items: center;
}

.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 360px;
}

.main-display-box {
    width: 100%;
    height: 340px;
    background-color: #f1f5f9;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.main-display-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.thumbnails-grid {
    display: flex;
    gap: 0.6rem;
}

.thumb {
    flex: 1;
    height: 75px;
    background: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb:hover, .thumb.active {
    border-color: var(--primary);
}

.brand-badge {
    display: inline-block;
    background: #e0e7ff;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.detail-info-box h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.detail-price {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0.5rem 0 1.5rem 0;
}

.detail-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Select Fields Configuration */
.configurator-options {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.selector-field {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.selector-field label {
    width: 120px;
    flex-shrink: 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.selector-field .input-group {
    display: flex;
    gap: 0.75rem;
    flex: 1;
}

.radio-group {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    color: var(--text-main);
    cursor: pointer;
}

.radio-option input[type="radio"] {
    width: auto;
    accent-color: var(--primary);
    cursor: pointer;
}

.engraving-fields {
    padding-left: 0.5rem;
    border-left: 3px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#quantity-input {
    max-width: 120px;
}

select, input, textarea {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-main);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

select {
    max-width: 220px;
}

select:focus, input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* UI Buttons Component */
.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 32px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s, transform 0.1s;
}

.btn:hover {
    background: var(--primary-hover);
}

.btn:active {
    transform: scale(0.98);
}

.btn-block {
    width: 100%;
}

.back-link-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.back-link-btn:hover {
    color: var(--text-main);
}

a.back-link-btn {
    display: inline-block;
    text-decoration: none;
}

/* Contact Module Layout */
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.contact-card h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: center;
}

.contact-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.5;
}

.spam-alert {
    display: block;
    margin-top: 0.8rem;
    color: var(--accent-red);
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.2rem;
}

/* Info Module Card (Warranty / Policy) */
.info-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 24px; padding: 3rem; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05); }
.info-card h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 1.5rem; border-bottom: 2px solid var(--bg-main); padding-bottom: 0.6rem; }
.info-card h3 { margin: 1.8rem 0 0.6rem 0; font-size: 1.25rem; color: var(--primary); font-weight: 700; }
.info-card h4 { margin: 1.8rem 0 0.6rem 0; font-size: 1.25rem; color: var(--primary); font-weight: 700; }
.info-card h5 { margin: 1.8rem 0 0.6rem 0; font-size: 1.25rem; color: var(--primary); font-weight: 700; }
.info-card h6 { margin: 1.8rem 0 0.6rem 0; font-size: 1.25rem; color: var(--primary); font-weight: 700; }
.info-card p { color: var(--text-muted); font-size: 1rem; line-height: 1.6; }

/* Site Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    padding: 1.2rem 2rem;
    text-align: center;
}

.site-footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .main-header {
        padding: 1.2rem 2rem;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 0.8rem;
    }

    .header-nav { grid-column: 1; grid-row: 2; }
    .logo { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
    .lang-switcher { grid-column: 2; grid-row: 2; }

    .product-detail-card { flex-direction: column; padding: 2rem; }
    .gallery-container { width: 100%; }

    .products-grid {
        flex-direction: column; /* Mobilon egymás alá rakja a termékkártyákat, nem egymás mellé */
        align-items: center;
        gap: 1.5rem;
    }
    
    .selector-field {
        flex-direction: column; /* A termékoldalon a beállítások (pl. mennyiség, felirat) egymás alá kerülnek */
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .selector-field label {
        width: 100%;
    }
}