:root {
    --primary-color: #111;
    --accent-color: #e30613; /* Parkside/Lidl Red */
    --bg-color: #f4f4f6;
    --card-bg: #ffffff;
    --text-color: #333;
    --text-muted: #666;
    --border-color: #e0e0e0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-area h1 span {
    color: var(--accent-color);
    font-weight: 900;
}

.search-bar input {
    width: 350px;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
}

/* Main Layout */
main.container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    main.container {
        grid-template-columns: 1fr;
    }
    .search-bar input {
        width: 100%;
    }
}

/* Sidebar Filters */
.filters h3 {
    margin-bottom: 15px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 15px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--card-bg);
    color: var(--accent-color);
    font-weight: bold;
    padding-left: 20px;
}

/* Products Grid & Cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #eee;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.badge {
    align-self: flex-start;
    background-color: #f0f0f2;
    color: var(--text-muted);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.product-title {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-price {
    font-size: 22px;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.product-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.tech-specs h4 {
    font-size: 14px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 3px;
}

.tech-specs ul {
    list-style-type: none;
}

.tech-specs li {
    font-size: 13px;
    padding: 3px 0;
    color: #444;
}

.tech-specs li::before {
    content: "• ";
    color: var(--accent-color);
    font-weight: bold;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-muted);
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
    font-size: 14px;
}

/* Lidl Plus Styles */
.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
    margin-right: 10px;
    font-weight: normal;
}
.plus-price {
    color: #e30613;
}
.product-desc {
    white-space: normal; /* Επιτρέπει τις αλλαγές γραμμών που έχεις βάλει στην περιγραφή */
}

/* Price History Styles */
.price-history-area {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.history-label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

.history-tags {
    display: flex;
    gap: 5px;
}

.history-tag {
    background-color: #eef2f5;
    color: #555;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #dcdcdc;
    font-weight: 500;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #999;
    z-index: 10;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--accent-color);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 25px;
    }
}

.modal-image img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.modal-details {
    display: flex;
    flex-direction: column;
}

.modal-breadcrumbs {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

.modal-breadcrumbs span {
    margin: 0 5px;
}

.modal-breadcrumbs span:first-child {
    margin-left: 0;
}

#modalTitle {
    font-size: 28px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.modal-price-area {
    margin-bottom: 20px;
}

.modal-price {
    font-size: 32px;
    font-weight: bold;
    color: var(--accent-color);
    margin: 0;
}

.modal-price .old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 20px;
    margin-right: 10px;
}

.modal-price .new-price {
    color: var(--accent-color);
}

.lidl-badge, .lidl-badge-modal {
    background-color: #f0f0f0;
    color: #666;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    width: fit-content;
    margin-bottom: 15px;
}

.modal-description {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-price-history {
    margin-bottom: 20px;
}

.modal-price-history h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 600;
}

.history-tags-modal {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.history-tags-modal span {
    background-color: #eef2f5;
    color: #555;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #dcdcdc;
    font-weight: 500;
}

.modal-specs {
    margin-bottom: 20px;
}

.modal-specs h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 600;
}

.modal-specs ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.modal-specs li {
    font-size: 14px;
    padding: 6px 0;
    color: #555;
}

.modal-specs li::before {
    content: "✓ ";
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 8px;
}

.modal-youtube {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.modal-youtube a {
    color: #ff0000;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.2s;
}

.modal-youtube a:hover {
    opacity: 0.8;
}

/* Updated Product Card Styles */
.product-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: var(--accent-color);
}

.product-image {
    width: 100%;
    height: 250px;
    background-color: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--text-color);
}

.price-area {
    margin-bottom: auto;
}

.product-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-color);
    margin: 0 0 8px 0;
}

.product-price .old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
    margin-right: 8px;
    font-weight: normal;
}

.product-price .new-price {
    color: var(--accent-color);
}

.view-details-btn {
    color: var(--accent-color);
    font-weight: 600;
    text-align: center;
    margin-top: 12px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.product-card:hover .view-details-btn {
    background-color: #efefef;
}