/* Alapok */
body {
    margin: 0;
    font-family: 'Abril Fatface', cursive;
    background-color: #f9f7f4;
    color: #333;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: 'Orelega One', cursive;
    font-size: 32px;
    color: #c94c4c; /* Pirosas szín */
}

nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: 'Orelega One', cursive;
    font-size: 18px;
}

nav ul li {
    cursor: pointer;
    transition: color 0.3s ease;
}

nav ul li:hover {
    color: #4c6ec9; /* Kékes szín */
}

.cart-icon {
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cart-icon:hover {
    transform: scale(1.1);
    color: #c94c4c;
}

.hero {
    background-color: #e0d4c0; /* Világosbarnás */
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 64px;
    margin: 0;
}

.filters {
    padding: 20px 50px;
    display: flex;
    justify-content: flex-start;
}

.filter label {
    font-size: 18px;
    margin-right: 10px;
    font-family: 'Orelega One', cursive;
}

.filter select {
    padding: 5px 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Termékek */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    padding: 30px 50px;
    align-items: stretch; /* Ez biztosítja, hogy az elemek ugyanolyan magasak legyenek */
}

.product {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;          /* Új */
    flex-direction: column; /* Új */
    height: 100%;           /* Új */
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.product img {
    width: 100%;
    border-radius: 8px;
}

.product h2 {
    font-family: 'Abril Fatface', cursive;
    font-size: 20px;
    margin: 15px 0 10px 0;
}

.product p {
    font-family: 'Orelega One', cursive;
    font-size: 18px;
    margin: 0 0 15px 0;
}

.product button {
    background-color: #4c6ec9; /* Kék */
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Orelega One', cursive;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.product button:hover {
    background-color: #c94c4c; /* Piros */
    transform: scale(1.05);
}

footer {
    text-align: center;
    padding: 20px 0;
    background-color: #333;
    color: white;
    font-family: 'Orelega One', cursive;
    margin-top: 40px;
}


.cart-container {
    padding: 30px 50px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.cart-item img {
    width: 120px;
    border-radius: 8px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h3 {
    margin: 0 0 10px 0;
    font-family: 'Abril Fatface', cursive;
}

.cart-item-details p {
    margin: 5px 0;
    font-family: 'Orelega One', cursive;
}

.remove-btn {
    background-color: #c94c4c;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.remove-btn:hover {
    background-color: #a33a3a;
}

.cart-summary {
    margin-top: 30px;
    text-align: right;
}

.cart-summary h2 {
    font-family: 'Abril Fatface', cursive;
}

.clear-btn {
    background-color: #4c6ec9;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.clear-btn:hover {
    background-color: #3554a1;
}

/* Alap stílusok */
body {
    margin: 0;
    font-family: 'Orelega One', cursive;
    background-color: #f8f1e7;
    color: #333;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #c6a07e;
    padding: 1rem 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header .logo {
    font-family: 'Abril Fatface', cursive;
    font-size: 2rem;
    cursor: pointer;
    color: #2c3e50;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    font-family: 'Orelega One', cursive;
}

header nav ul li {
    cursor: pointer;
    transition: color 0.3s;
}

header nav ul li:hover {
    color: #e74c3c;
}

.cart-icon {
    cursor: pointer;
    font-size: 1.5rem;
    position: relative;
    transition: transform 0.2s;
}

.cart-icon:hover {
    transform: scale(1.2);
}

.hero {
    background-color: #a2c4d4;
    padding: 4rem 2rem;
    text-align: center;
    color: white;
}

.hero h1 {
    font-family: 'Abril Fatface', cursive;
    font-size: 4rem;
    margin: 0;
}

.filters {
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.product {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Az összes termék ugyanolyan magas legyen */
    display: flex;
    flex-direction: column;
}

.product:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.product img {
    max-width: 100%;
    max-height: 250px; /* Fix maximális magasság */
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}
.product-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px; /* Fix magasság biztosítása */
    margin-bottom: 15px;
}

.product h2 {
    font-family: 'Abril Fatface', cursive;
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.product p {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.product button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.product button:hover {
    background-color: #c0392b;
    transform: scale(1.05);
}

footer {
    background-color: #c6a07e;
    color: white;
    text-align: center;
    padding: 1rem;
    font-family: 'Orelega One', cursive;
}

/* Kosár oldal */
.cart-container {
    padding: 2rem;
}

#cart-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cart-item img {
    width: 80px;
    border-radius: 10px;
}

.cart-summary {
    margin-top: 2rem;
    text-align: right;
}

.clear-btn,
.checkout-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    border-radius: 12px;
    cursor: pointer;
    margin-left: 1rem;
    transition: background-color 0.3s, transform 0.2s;
}

.clear-btn:hover,
.checkout-btn:hover {
    background-color: #c0392b;
    transform: scale(1.05);
}

/* Checkout oldal */
.checkout-container {
    padding: 2rem;
}

.checkout-form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.checkout-form label {
    font-family: 'Orelega One', cursive;
    font-size: 1.1rem;
}

.checkout-form input {
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.checkout-form button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    font-size: 1.2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.checkout-form button:hover {
    background-color: #c0392b;
    transform: scale(1.05);
}

/* Add to existing styles.css */
.view-details {
    background-color: #4c6ec9;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Orelega One', cursive;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
    width: 100%;
}

.view-details:hover {
    background-color: #3a5ab4;
    transform: scale(1.02);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.quantity-controls button {
    background-color: #4c6ec9;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-family: 'Orelega One', cursive;
    transition: background-color 0.3s ease;
}

.quantity-controls button:hover {
    background-color: #3a5ab4;
}

.checkout-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Orelega One', cursive;
    transition: background-color 0.3s ease;
    margin-left: 15px;
}

.checkout-btn:hover {
    background-color: #3e8e41;
}

.filters {
    display: flex;
    gap: 20px;
    padding: 20px 50px;
}

.filter {
    display: flex;
    align-items: center;
}

/* Cart notification */
.cart-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4CAF50;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: slideIn 0.5s ease-out;
}

.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes slideIn {
    from { bottom: -50px; opacity: 0; }
    to { bottom: 30px; opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Cart icon animation */
.animate-bounce {
    animation: bounce 0.5s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.color-options {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.color-option {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.color-option.selected {
    border-color: #333;
    transform: scale(1.1);
    box-shadow: 0 0 0 2px #4c6ec9;
}


.color-option[style*="green"] {
    background-color: #2ecc71 !important;
}

.color-option[style*="yellow"] {
    background-color: #f1c40f !important;
}

.color-option[style*="pink"] {
    background-color: #e84393 !important;
}