/* ========================================
   SZISZI SHOP - Premium Modern Design
   Hungarian Flag Theme: Red #CE2939 | White | Green #3a6644
======================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

:root {
    --red: #CE2939;
    --red-dark: #a8202e;
    --red-light: rgba(206, 41, 57, 0.1);
    --green: #3a6644;
    --green-dark: #2c4f34;
    --green-light: rgba(58, 102, 68, 0.1);
    --white: #ffffff;
    --cream: #fdf8f4;
    --text: #1c1c1e;
    --text-muted: #6b6b70;
    --border: rgba(0, 0, 0, 0.08);
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 16px 40px rgba(206, 41, 57, 0.18);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    /* Hungarian flag: RED on top, WHITE middle, GREEN on bottom (vertical flag stripes) */
    --flag-stripe: linear-gradient(to bottom, var(--red) 33.3%, var(--white) 33.3% 66.6%, var(--green) 66.6%);
    /* For thin horizontal accent bars: use solid red (primary Hungarian symbol) */
    --accent-red: var(--red);
    --accent-green: var(--green);
    --rounded: 14px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================
   HEADER
======================================== */
header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

/* RED top stripe — Hungarian flag */
header::before {
    content: '';
    display: block;
    height: 6px;
    background: var(--red);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

/* GREEN bottom stripe — Hungarian flag */
header::after {
    content: '';
    display: block;
    height: 5px;
    background: var(--green);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container img {
    height: 56px;
    cursor: pointer;
    transition: var(--transition);
    /* Blend white box away against white header — works on any white-bg image */
    mix-blend-mode: multiply;
}

.logo-container img:hover {
    transform: scale(1.05);
}

/* Hungarian flag centered above hero title */
.hero-flag {
    display: flex;
    flex-direction: column;
    width: 60px;
    height: 40px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 0 auto 1.4rem;
}

.flag-red {
    flex: 1;
    background: #CE2939;
}

.flag-white {
    flex: 1;
    background: #ffffff;
}

.flag-green {
    flex: 1;
    background: #3a6644;
}


nav ul {
    display: flex;
    list-style: none;
    gap: 1.8rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 3px;
    transition: var(--transition);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--red);
}

nav a:hover::after {
    width: 100%;
}

#language-select {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    background: white;
    color: var(--text);
    transition: var(--transition);
}

#language-select:hover {
    border-color: var(--red);
}

.cart-icon {
    font-size: 1.4rem;
    color: var(--green);
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.cart-icon:hover {
    color: var(--red);
    transform: scale(1.1);
}

#cart-count {
    position: absolute;
    top: -9px;
    right: -12px;
    background: var(--red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 20px;
    min-width: 18px;
    text-align: center;
    border: 2px solid white;
}

/* ========================================
   HERO SLIDER
======================================== */
.hero-slider {
    position: relative;
    height: 78vh;
    min-height: 520px;
    overflow: hidden;
    background: #1a1a1a;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.2) 60%,
            rgba(58, 102, 68, 0.3) 100%);
}

.hero-content-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    width: min(85%, 780px);
}

.hero-content-overlay h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.5px;
}

.hero-content-overlay p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.92;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.3px;
}

/* No flag block in hero */
.hero-content-overlay::after {
    display: none;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--red);
    border-color: var(--red);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    opacity: 0;
    transition: opacity 0.2s;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(206, 41, 57, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(206, 41, 57, 0.45);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(58, 102, 68, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(58, 102, 68, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: white;
}

.small-btn {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    margin-top: 0.8rem;
    border-radius: 20px;
}

/* ========================================
   SECTION SHARED
======================================== */
.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text);
    position: relative;
    letter-spacing: -0.5px;
}

/* Simple elegant red accent line under section titles */
.section-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    background: var(--red);
    margin: 14px auto 0;
    border-radius: 4px;
}

/* ========================================
   PRODUCTS
======================================== */
.products-section {
    padding: 5rem 0;
    background: var(--cream);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: white;
    border-radius: var(--rounded);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--flag-stripe);
    z-index: 1;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card.sold-out {
    opacity: 0.75;
}

.product-card.sold-out::after {
    content: 'SOLD OUT';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: var(--red);
    color: white;
    padding: 0.4rem 1rem;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 2px;
    border-radius: 4px;
    z-index: 5;
    box-shadow: 0 2px 12px rgba(206, 41, 57, 0.4);
}

.product-image {
    height: 220px;
    overflow: hidden;
    background: var(--cream);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-info {
    padding: 1.2rem;
    text-align: center;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text);
    line-height: 1.3;
}

.product-price {
    color: var(--red);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.3px;
}

/* ========================================
   MODAL
======================================== */
.modal {
    display: flex;
    visibility: hidden;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.modal:not(.hidden) {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    width: 92%;
    max-width: 820px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--flag-stripe);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px) scale(0.97);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--red);
    background: var(--red-light);
}

.modal-body {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.modal-image {
    flex: 1;
    min-width: 260px;
    border-radius: 12px;
    overflow: hidden;
}

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

.modal-info {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.modal-info h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text);
    line-height: 1.2;
}

.modal-price {
    font-size: 1.8rem;
    color: var(--red);
    font-weight: 800;
    margin: 0.5rem 0;
}

/* ========================================
   ABOUT SECTION
======================================== */
.about-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, white 0%, var(--cream) 100%);
    text-align: center;
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--flag-stripe);
}

.editable-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px dashed transparent;
    transition: border 0.3s, background 0.3s;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.editable-content:focus {
    outline: none;
    border-color: var(--green);
    background: #f0faf3;
}

.editable-content p+p {
    margin-top: 1rem;
}

/* ========================================
   CONTACT SECTION
======================================== */
.contact-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--cream) 0%, white 100%);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--flag-stripe);
}

.contact-form {
    max-width: 640px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border: 1.5px solid #e5e5ea;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    background: var(--cream);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
    background: white;
    box-shadow: 0 0 0 3px rgba(206, 41, 57, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* ========================================
   ADMIN SECTION
======================================== */
.admin-section {
    background: #1a1a2e;
    color: white;
    padding: 3rem 0;
    border-top: 4px solid transparent;
    border-image: var(--flag-stripe) 1;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.admin-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    background: linear-gradient(135deg, #fff, #e0c8b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.admin-panel {
    background: rgba(255, 255, 255, 0.06);
    padding: 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.admin-panel h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.6rem;
}

.color-picker-group {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.color-picker-group label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Hero text admin inputs */
.hero-text-group {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
}

.admin-text-input {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.admin-text-input:focus {
    outline: none;
    border-color: var(--red);
}

.admin-label-spaced {
    margin-top: 6px;
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

/* Hero image items */
.hero-image-item {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.hero-image-input {
    flex: 1;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: white;
    font-size: 0.8rem;
}

.hero-image-remove {
    background: var(--red);
    color: white;
    border: none;
    cursor: pointer;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition);
}

.hero-image-remove:hover {
    background: var(--red-dark);
}

/* ========================================
   PRODUCT ADMIN CONTROLS
======================================== */
.admin-controls {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.7rem;
    background: linear-gradient(135deg, #f8f8f8, #f0f0f0);
    border-bottom: 1px solid #eee;
    gap: 4px;
}

.admin-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.78rem;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
}

.admin-btn.delete {
    color: var(--red);
}

.admin-btn.delete:hover {
    background: var(--red-light);
}

.admin-btn.edit {
    color: #3a8cf0;
}

.admin-btn.edit:hover {
    background: rgba(58, 140, 240, 0.1);
}

.admin-btn.sold-out-toggle {
    color: #d97706;
}

.admin-btn.sold-out-toggle:hover {
    background: rgba(217, 119, 6, 0.1);
}

/* ========================================
   ADMIN LOGIN MODAL
======================================== */
.admin-login-content {
    max-width: 400px !important;
    text-align: center;
}

.admin-login-content h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.admin-login-content input {
    width: 100%;
    padding: 0.8rem 1.1rem;
    border: 1.5px solid #e5e5ea;
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.2s;
}

.admin-login-content input:focus {
    outline: none;
    border-color: var(--red);
}

/* ========================================
   FOOTER
======================================== */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    text-align: center;
    padding: 3rem 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--flag-stripe);
}

footer p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.social-links {
    margin-top: 1.2rem;
}

.social-links a {
    color: white;
    font-size: 1.4rem;
    margin: 0 12px;
    transition: var(--transition);
    opacity: 0.7;
}

.social-links a:hover {
    color: var(--red);
    opacity: 1;
    transform: translateY(-3px);
    display: inline-block;
}

/* ========================================
   UTILITY
======================================== */
.hidden {
    display: none !important;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .hero-slider {
        height: 60vh;
        min-height: 400px;
    }

    .hero-content-overlay h1 {
        font-size: 1.8rem;
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-content {
        padding: 1.8rem;
    }

    nav ul {
        gap: 0.8rem;
    }

    nav a {
        font-size: 0.85rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .contact-form {
        padding: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-content-overlay h1 {
        font-size: 1.5rem;
    }

    .hero-content-overlay p {
        font-size: 0.9rem;
    }

    .slider-btn {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.65rem 1.4rem;
        font-size: 0.88rem;
    }
}