body {
    background: #0f172a;
    margin: 0;
    padding: 20px;
    font-family: Arial, sans-serif;
    color: #fff;
}

.market-container {
    max-width: 1100px;
    margin: auto;
}

.market-title {
    text-align: center;
    color: #ffae42;
    margin-bottom: 25px;
    font-size: 28px;
    text-shadow: 0 0 10px #ff7b00;
}


.market-item {
    background: #1e293b;
    border: 1px solid #ff7b00;
    border-radius: 10px;
    box-shadow: 0 0 12px #ff7b00aa;
    padding: 12px;
    transition: 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.market-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 20px #ff7b00ee;
}

.market-info {
    margin-top: 10px;
}

.market-category {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
}

.market-name {
    margin: 5px 0;
    font-size: 18px;
    color: #fff;
}

.market-price {
    font-size: 16px;
    color: #ffae42;
    font-weight: bold;
}

.market-btn {
    margin-top: 12px;
    display: block;
    text-align: center;
    padding: 10px;
    background: #ff7b00;
    color: #000;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.2s;
}

.market-btn:hover {
    background: #ffa64d;
}
/* VIEW PAGE */
.view-container {
    max-width: 1000px;
    margin: auto;
    padding: 20px;
}

.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    color: #ffae42;
    text-decoration: none;
    font-weight: bold;
}

.view-box {
    display: flex;
    gap: 25px;
    background: #1e293b;
    border: 1px solid #ff7b00;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 15px #ff7b00aa;
}

.view-image img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #ff7b00;
}

.view-info {
    flex: 1;
}

.view-name {
    font-size: 28px;
    margin: 0 0 10px;
    color: #fff;
}

.view-category {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 10px;
}

.view-price {
    font-size: 22px;
    color: #ffae42;
    font-weight: bold;
    margin-bottom: 15px;
}

.view-description {
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.deliver-btn {
    display: inline-block;
    padding: 12px 20px;
    background: #ff7b00;
    color: #000;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.2s;
}

.deliver-btn:hover {
    background: #ffa64d;
}
/* SUCCESS MESSAGE */
.success-box {
    background: #0f3d0f;
    border: 1px solid #00ff55;
    color: #b6ffce;
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 0 12px #00ff55aa;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: successFade 0.5s ease-out;
}

.success-box i {
    color: #00ff55;
    font-size: 20px;
}

@keyframes successFade {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.market-thumb {
    width: 300px;
    height: 230px;
    overflow: hidden;
    border-radius: 8px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.market-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* crop χωρίς παραμόρφωση */
    display: block;
    border-radius: 8px;
}
.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.popup-content {
    background: #111;
    border: 2px solid #ff6600;
    padding: 25px 40px;
    border-radius: 10px;
    text-align: center;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    box-shadow: 0 0 20px #ff6600;
    animation: popIn 0.3s ease-out;
}

.popup-content h2 {
    color: #ff6600;
    margin-bottom: 10px;
}

.popup-content button {
    margin-top: 15px;
    padding: 10px 25px;
    background: #ff6600;
    border: none;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 0 10px #ff6600;
}

.popup-content button:hover {
    background: #ff7f2a;
}

@keyframes popIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.edit-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff7b00;
    color: #000;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 16px;
    box-shadow: 0 0 10px #ff7b00aa;
    text-decoration: none;
    z-index: 10;
}

.market-thumb {
    position: relative;
}

.market-delete-btn {
    display: inline-block;
    padding: 8px 14px;
    background: #ff0033;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 0 8px #ff0033, 0 0 15px #ff0033;
    transition: 0.25s ease-in-out;
}

.market-delete-btn:hover {
    background: #ff1a4d;
    box-shadow: 0 0 12px #ff1a4d, 0 0 20px #ff1a4d;
    transform: translateY(-2px);
}

.market-item {
    position: relative;
}

.market-thumb {
    position: relative;
}

.market-badge-new {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff0066;
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 0 10px #ff0066;
    z-index: 10;
}

.view-permissions {
    margin-top: 20px;
    padding: 15px;
    background: #121826;
    border: 2px solid #ffa500;
    border-radius: 8px;
}

.view-permissions h3 {
    margin-bottom: 10px;
    color: #ffa500;
}

.perm-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.perm-item {
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.perm-yes {
    color: #00ff88;
    font-weight: bold;
}

.perm-no {
    color: #ff4444;
    font-weight: bold;
}

.perm-item i {
    color: #ffa500;
}
