* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* NORMÁL NAVBAR (minden más oldalra) */
body:not(.admin-layout) .navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

body:not(.admin-layout) .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

body:not(.admin-layout) .nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 1rem 0;
}

body:not(.admin-layout) .nav-links {
    display: flex;
    gap: 1rem;
}

body:not(.admin-layout) .nav-link {
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    transition: background 0.3s;
}

body:not(.admin-layout) .nav-link:hover,
body:not(.admin-layout) .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
}

body:not(.admin-layout) .main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* ADMIN OLDALSÓ NAVBAR - IKONOKKAL + TOOLTIP */
body.admin-layout {
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
}

body.admin-layout .navbar {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    width: 80px;
    min-height: 100vh;
    box-shadow: 4px 0 20px rgba(0,0,0,0.3);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: width 0.3s ease;
    overflow: hidden;
}

body.admin-layout .navbar:hover {
    width: 280px;
}

body.admin-layout .nav-container {
    padding: 2rem 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 280px;
}

body.admin-layout .nav-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    text-align: center;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
}

body.admin-layout .navbar:hover .nav-logo {
    opacity: 1;
}

body.admin-layout .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 0 1.5rem;
    flex: 1;
}

body.admin-layout .nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
}

body.admin-layout .nav-link .link-text {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

body.admin-layout .navbar:hover .nav-link .link-text {
    opacity: 1;
    transform: translateX(0);
}

body.admin-layout .nav-link .nav-icon {
    font-size: 1.4rem;
    min-width: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

body.admin-layout .nav-link:hover .nav-icon {
    transform: scale(1.2);
}

body.admin-layout .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

body.admin-layout .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

body.admin-layout .nav-link.active::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 70%;
    background: #ff6b6b;
    border-radius: 0 4px 4px 0;
}

/* TOOLTIP - ha nincs hover a navbar-on */
body.admin-layout .nav-link::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

body.admin-layout .nav-link:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(15px);
}

body.admin-layout .navbar:hover .nav-link::after {
    display: none;
}

/* Navbar footer - vissza gomb */
.nav-footer {
    margin-top: auto;
    padding: 1.5rem;
    border-top: 2px solid rgba(255,255,255,0.1);
}

.logout-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* ADMIN FŐ TARTALOM - navbar mellett */
body.admin-layout .main-content {
    margin-left: 80px;
    padding: 2rem 3rem;
    width: calc(100% - 80px);
    max-width: none;
    background: #f8f9fa;
    min-height: 100vh;
    transition: margin-left 0.3s ease, width 0.3s ease;
}

body.admin-layout .navbar:hover ~ .main-content {
    margin-left: 280px;
    width: calc(100% - 280px);
}

/* SZAKASZOK KEZELÉSE */
.admin-section {
    display: none;
}

.admin-section.active-section {
    display: block;
}

.admin-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    border-left: 4px solid #667eea;
}

.admin-card h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f8f9fa;
}

/* Reszponzív design adminnak */
@media (max-width: 1024px) {
    body.admin-layout .navbar {
        width: 280px;
    }
    
    body.admin-layout .navbar:hover {
        width: 280px;
    }
    
    body.admin-layout .nav-logo,
    body.admin-layout .nav-link .link-text {
        opacity: 1;
        transform: translateX(0);
    }
    
    body.admin-layout .nav-link::after {
        display: none;
    }
    
    body.admin-layout .main-content {
        margin-left: 280px;
        width: calc(100% - 280px);
    }
    
    body.admin-layout .navbar:hover ~ .main-content {
        margin-left: 280px;
        width: calc(100% - 280px);
    }
}

@media (max-width: 768px) {
    body.admin-layout .navbar {
        width: 70px;
    }
    
    body.admin-layout .navbar:hover {
        width: 70px;
    }
    
    body.admin-layout .nav-logo {
        font-size: 0;
        padding: 1rem;
    }
    
    body.admin-layout .nav-logo::after {
        content: "A";
        font-size: 1.4rem;
        font-weight: 800;
        background: linear-gradient(45deg, #ff6b6b, #ffd93d);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    body.admin-layout .nav-link .link-text {
        display: none;
    }
    
    body.admin-layout .nav-link {
        padding: 1.2rem;
        justify-content: center;
        border-radius: 8px;
    }
    
    body.admin-layout .nav-link .nav-icon {
        font-size: 1.3rem;
        margin: 0;
    }
    
    body.admin-layout .main-content {
        margin-left: 70px;
        width: calc(100% - 70px);
        padding: 1rem;
    }
    
    body.admin-layout .navbar:hover ~ .main-content {
        margin-left: 70px;
        width: calc(100% - 70px);
    }
}

/* KÖZÖS STÍLUSOK */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 3rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 200px;
    background: #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.product-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #e74c3c;
    margin: 0.5rem 0;
}

.add-to-cart {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.add-to-cart:hover {
    background: #219a52;
}

/* BLOG STÍLUSOK A FŐOLDALRA */
.latest-blogs {
    margin: 4rem 0;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.blog-post-card:hover {
    transform: translateY(-5px);
}

.blog-post-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-content {
    padding: 1.5rem;
}

.blog-post-title {
    font-size: 1.25rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.blog-post-excerpt {
    color: #7f8c8d;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-meta {
    color: #95a5a6;
    font-size: 0.9rem;
    border-top: 1px solid #ecf0f1;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
}

.read-more-btn {
    background: #3498db;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.read-more-btn:hover {
    background: #2980b9;
}

.no-blogs {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 2rem;
}

/* TERMÉK OLDAL STÍLUSOK */
.category-filters {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.filter-btn {
    background: #ecf0f1;
    border: 2px solid #bdc3c7;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background: #d5dbdb;
    border-color: #95a5a6;
}

.filter-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.products-section {
    margin-top: 2rem;
}

/* Termék kártya finomítások a termék oldalon */
.product-card .product-image {
    position: relative;
    overflow: hidden;
}

.product-card .product-image img {
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.product-description {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    height: 60px;
    overflow: hidden;
}

.no-products {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 3rem;
    grid-column: 1 / -1;
}

/* ADMIN STÍLUSOK */
.admin-section {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-form {
    max-width: 800px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #3498db;
    outline: none;
}

.form-group select {
    background: white;
}

.image-preview {
    margin-top: 1rem;
    max-width: 300px;
}

.image-preview img {
    max-width: 100%;
    border-radius: 4px;
}

.blog-list {
    display: grid;
    gap: 1.5rem;
}

.blog-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.blog-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.blog-item img {
    max-width: 200px;
    margin: 1rem 0;
    border-radius: 4px;
}

.blog-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.delete-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.delete-btn:hover {
    background: #c0392b;
}

/* ADMIN TERMÉK STÍLUSOK */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.admin-product-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
}

.admin-product-card h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.product-details {
    color: #7f8c8d;
    margin: 0.5rem 0;
}

.product-category-badge {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin: 0.5rem 0;
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.edit-btn {
    background: #f39c12;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.edit-btn:hover {
    background: #d35400;
}

/* LOGIN OLDAL STÍLUSOK */
.login-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Arial', sans-serif;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}

.login-card h1 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.login-card p {
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.login-form {
    text-align: left;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.login-form .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.login-form .form-group input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-form .cta-button {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
    padding: 14px;
    font-size: 1.1rem;
}

.login-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ecf0f1;
}

.login-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.login-footer a:hover {
    color: #764ba2;
}

/* ERROR STÍLUSOK */
.error-message {
    background: #ffeaa7;
    color: #e17055;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #e17055;
    display: none;
}

.error-message.show {
    display: block;
}

.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.image-preview img {
    max-width: 150px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.delete-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.3s;
}

.delete-btn:hover {
    background: #c0392b;
}

.delete-product-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.3s;
}

.delete-product-btn:hover {
    background: #c0392b;
}

.upload-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}


.blog-image-group {
   width: 100%;
    max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.main-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.preview-item {
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preview-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 6px;
}

.preview-item .filename {
  font-size: 0.85rem;
  color: #2c3e50;
  text-align: center;
  word-break: break-word;
}

.remove-btn {
  margin-top: 6px;
  background: #e74c3c;
  color: #fff;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
}

.remove-btn:hover {
  background: #c0392b;
}

.toast {
  visibility: hidden;
  min-width: 200px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 10px;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  transition: visibility 0s, opacity 0.5s ease-in-out;
  opacity: 0;
}
.toast.show {
  visibility: visible;
  opacity: 1;
}

/* style.css - ÚJ STÍLUSOK AZ ALKATEGÓRIÁKHOZ */

.subcategory-filters {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #ecf0f1; /* Elválasztó vonal */
}

.subcategory-filters h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #34495e;
}

.sub-filter-buttons {
    /* Az alkategória gombok sora */
    padding-left: 1.5rem; /* Kicsit beljebb kezdődnek */
}

.sub-filter-buttons .filter-btn {
    /* Kis méret csökkentés a subcategory gomboknak */
    padding: 8px 15px;
    font-size: 0.8rem;
    background: #f8f9fa; /* Világosabb háttér */
    border-color: #e9ecef;
}

.sub-filter-buttons .filter-btn:hover {
    background: #e2e6ea;
}

.sub-filter-buttons .filter-btn.active {
    background: #2980b9; /* Enyhén eltérő kék árnyalat a fő kategóriáktól */
    color: white;
    border-color: #2980b9;
}

/* Termékkártyán a kategória kiírásának frissítése */
.product-meta .product-category {
    font-size: 0.8rem;
    color: #666;
    background: #f1f1f1;
    padding: 2px 8px;
    border-radius: 4px;
}

.edit-product-btn {
    background: #8e44ad;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.edit-product-btn:hover {
    background: #732d91;
}

@media (max-width: 600px) {
  .admin-actions {
    flex-direction: column;
    gap: 0.5rem;
  }}

  /* KÉP ELŐNÉZET STÍLUSOK AZ ADMIN FELÜLETEN */

.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Növelt gap a jobb elrendezésért */
    margin-top: 15px;
}

/* Egyedi konténerek a képeknek és a kiválasztott fájloknak */
.preview-item, .selected-file-item {
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Előnézeti kép (mentett kép szerkesztéskor) */
.preview-item {
    flex-direction: column;
    padding: 10px;
    width: 160px; /* Fix szélesség */
    text-align: center;
}

.preview-item img {
    max-width: 100%;
    height: 100px; /* Fix magasság, hogy egységes legyen */
    object-fit: contain; /* Tartalmazza a teljes képet */
    border-radius: 4px;
    margin-bottom: 8px;
}

/* Kiválasztott fájl nevének megjelenítése (ÚJ képek listája) */
.selected-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%; /* Teljes szélességű sáv */
    padding: 8px 10px;
    margin-bottom: 5px;
}
.selected-file-item span {
    font-size: 0.9rem;
    margin-right: 15px;
    color: #34495e;
}

/* Törlés gomb stílus (Mentett és Új képekre is) */
.remove-saved-image-btn, .remove-file-btn, .product-remove-btn {
    background: #e74c3c; /* Piros */
    color: white;
    border: none;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s;
    white-space: nowrap; /* Megakadályozza a törést */
}

.remove-saved-image-btn:hover, .remove-file-btn:hover, .product-remove-btn:hover {
    background: #c0392b;
}

/* Kiemelés, ha valami nincs kiválasztva */
.selected-file-item small {
    display: block;
    color: #95a5a6;
    margin-top: 5px;
}

/* =========================================================
   LISTA ELŐNÉZET KÉP MÉRETEK (Blog + Termék listák)
   Ezek nélkül lesznek túl nagyok a képek!
   ========================================================= */

/* A Blog kártya kép konténere */
.blog-card .blog-images {
    display: flex;
    gap: 8px;
    margin: 8px 0;
}

/* Kiemelt stílus: A listákban használt képek (Termék és Blog) */
.preview-thumb {
    width: 80px;      /* Fix szélesség */
    height: 80px;     /* Fix magasság */
    object-fit: cover; /* Kitölti a területet, de nem torzít */
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* A Terméklista kártyáin a kép (ha van) */
.admin-product-card img.preview-thumb {
    margin: 10px 0;
    display: block;
}

/* =========================================================
   ŰRLAP ELŐNÉZET KÉP MÉRETEK (szerkesztéskor az űrlapon)
   ========================================================= */

.image-preview {
    display: flex; 
    flex-wrap: wrap;
    gap: 15px; 
    margin-top: 15px;
    min-height: 50px; 
}

.preview-item {
    padding: 10px;
    width: 160px; /* Fix szélesség */
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex; 
    flex-direction: column;
    align-items: center;
}

.preview-item img {
    max-width: 100%;
    height: 100px; /* Fix magasság, hogy egységes legyen */
    object-fit: contain; 
    border-radius: 4px;
    margin-bottom: 8px;
}